@ornikar/kitt-universal 2.5.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/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 -851
- 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 +1113 -598
- 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 -9
- 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,64 +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
|
-
_ref.bounces;
|
|
1744
|
-
var props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1745
|
-
|
|
1746
|
-
return /*#__PURE__*/React.createElement(PrimitiveView, _extends({
|
|
1747
|
-
ref: ref
|
|
1748
|
-
}, props), /*#__PURE__*/React.createElement(PrimitiveView, {
|
|
1749
|
-
style: contentContainerStyle
|
|
1750
|
-
}, children));
|
|
1751
|
-
});
|
|
1752
|
-
|
|
1753
|
-
var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
1748
|
+
var BodyView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1754
1749
|
displayName: "Body__BodyView",
|
|
1755
1750
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
1756
1751
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -1762,10 +1757,14 @@ var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1762
1757
|
});
|
|
1763
1758
|
function ModalBody(_ref3) {
|
|
1764
1759
|
var children = _ref3.children;
|
|
1765
|
-
return /*#__PURE__*/
|
|
1760
|
+
return /*#__PURE__*/jsx(ScrollView, {
|
|
1761
|
+
children: /*#__PURE__*/jsx(BodyView, {
|
|
1762
|
+
children: children
|
|
1763
|
+
})
|
|
1764
|
+
});
|
|
1766
1765
|
}
|
|
1767
1766
|
|
|
1768
|
-
var FooterView = /*#__PURE__*/styled(
|
|
1767
|
+
var FooterView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1769
1768
|
displayName: "Footer__FooterView",
|
|
1770
1769
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
1771
1770
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -1777,12 +1776,14 @@ var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1777
1776
|
});
|
|
1778
1777
|
function ModalFooter(_ref3) {
|
|
1779
1778
|
var children = _ref3.children;
|
|
1780
|
-
return /*#__PURE__*/
|
|
1779
|
+
return /*#__PURE__*/jsx(FooterView, {
|
|
1780
|
+
children: children
|
|
1781
|
+
});
|
|
1781
1782
|
}
|
|
1782
1783
|
|
|
1783
1784
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
1784
1785
|
|
|
1785
|
-
var HeaderView = /*#__PURE__*/styled(
|
|
1786
|
+
var HeaderView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1786
1787
|
displayName: "Header__HeaderView",
|
|
1787
1788
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
1788
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) {
|
|
@@ -1792,21 +1793,21 @@ var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1792
1793
|
var theme = _ref2.theme;
|
|
1793
1794
|
return theme.kitt.colors.separator;
|
|
1794
1795
|
});
|
|
1795
|
-
var LeftIconView = /*#__PURE__*/styled(
|
|
1796
|
+
var LeftIconView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1796
1797
|
displayName: "Header__LeftIconView",
|
|
1797
1798
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
1798
1799
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
1799
1800
|
var theme = _ref3.theme;
|
|
1800
1801
|
return theme.kitt.spacing * 2;
|
|
1801
1802
|
});
|
|
1802
|
-
var RightIconView = /*#__PURE__*/styled(
|
|
1803
|
+
var RightIconView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1803
1804
|
displayName: "Header__RightIconView",
|
|
1804
1805
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
1805
1806
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
1806
1807
|
var theme = _ref4.theme;
|
|
1807
1808
|
return theme.kitt.spacing * 2;
|
|
1808
1809
|
});
|
|
1809
|
-
var TitleView = /*#__PURE__*/styled(
|
|
1810
|
+
var TitleView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1810
1811
|
displayName: "Header__TitleView",
|
|
1811
1812
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
1812
1813
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -1820,16 +1821,23 @@ function ModalHeader(_ref6) {
|
|
|
1820
1821
|
children = _ref6.children;
|
|
1821
1822
|
var onClose = useContext(OnCloseContext);
|
|
1822
1823
|
var isIconLeft = !!left;
|
|
1823
|
-
return /*#__PURE__*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
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
|
+
});
|
|
1830
1838
|
}
|
|
1831
1839
|
|
|
1832
|
-
var ModalView = /*#__PURE__*/styled(
|
|
1840
|
+
var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1833
1841
|
displayName: "Modal__ModalView",
|
|
1834
1842
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
1835
1843
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -1839,7 +1847,7 @@ var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1839
1847
|
var theme = _ref2.theme;
|
|
1840
1848
|
return theme.kitt.spacing * 4;
|
|
1841
1849
|
});
|
|
1842
|
-
var ContentView = /*#__PURE__*/styled(
|
|
1850
|
+
var ContentView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1843
1851
|
displayName: "Modal__ContentView",
|
|
1844
1852
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
1845
1853
|
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
@@ -1855,18 +1863,24 @@ function Modal(_ref5) {
|
|
|
1855
1863
|
onClose = _ref5.onClose,
|
|
1856
1864
|
onEntered = _ref5.onEntered,
|
|
1857
1865
|
onExited = _ref5.onExited;
|
|
1858
|
-
return /*#__PURE__*/
|
|
1859
|
-
value: onClose
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
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
|
+
});
|
|
1870
1884
|
}
|
|
1871
1885
|
Modal.Header = ModalHeader;
|
|
1872
1886
|
Modal.Body = ModalBody;
|
|
@@ -1881,56 +1895,19 @@ function Notification(_ref) {
|
|
|
1881
1895
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
1882
1896
|
top = _useSafeAreaInsets.top;
|
|
1883
1897
|
|
|
1884
|
-
return /*#__PURE__*/
|
|
1898
|
+
return /*#__PURE__*/jsx(Message, {
|
|
1885
1899
|
noRadius: true,
|
|
1886
1900
|
type: type,
|
|
1887
1901
|
centeredText: centeredText,
|
|
1888
1902
|
insets: {
|
|
1889
1903
|
top: top
|
|
1890
1904
|
},
|
|
1891
|
-
onDismiss: onDelete
|
|
1892
|
-
|
|
1905
|
+
onDismiss: onDelete,
|
|
1906
|
+
children: children
|
|
1907
|
+
});
|
|
1893
1908
|
}
|
|
1894
1909
|
|
|
1895
|
-
var
|
|
1896
|
-
var children = _ref.children,
|
|
1897
|
-
className = _ref.className,
|
|
1898
|
-
href = _ref.href,
|
|
1899
|
-
hrefAttrs = _ref.hrefAttrs,
|
|
1900
|
-
onPress = _ref.onPress;
|
|
1901
|
-
|
|
1902
|
-
if (href != null) {
|
|
1903
|
-
return /*#__PURE__*/React.createElement("a", _extends({
|
|
1904
|
-
ref: ref,
|
|
1905
|
-
href: href
|
|
1906
|
-
}, hrefAttrs, {
|
|
1907
|
-
className: className,
|
|
1908
|
-
onClick: createPressClickHandler(onPress),
|
|
1909
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
1910
|
-
}), children);
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
1914
|
-
ref: ref,
|
|
1915
|
-
role: "button",
|
|
1916
|
-
className: className,
|
|
1917
|
-
tabIndex: onPress ? 0 : -1,
|
|
1918
|
-
onClick: createPressClickHandler(onPress),
|
|
1919
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
1920
|
-
}, children);
|
|
1921
|
-
});
|
|
1922
|
-
var PrimitiveLink = /*#__PURE__*/styled(PrimitiveLinkWithClassName).withConfig({
|
|
1923
|
-
displayName: "PrimitiveLinkweb__PrimitiveLink",
|
|
1924
|
-
componentId: "kitt-universal__sc-24w4og-0"
|
|
1925
|
-
})(["", " background-color:transparent;color:inherit;font:inherit !important;list-style:none;text-align:inherit;text-decoration:none;", ";", ";"], textResetMixin, function (_ref2) {
|
|
1926
|
-
var selectable = _ref2.selectable;
|
|
1927
|
-
return selectable == null ? undefined : "user-select: ".concat(selectable ? 'text' : 'none');
|
|
1928
|
-
}, function (_ref3) {
|
|
1929
|
-
var onPress = _ref3.onPress;
|
|
1930
|
-
return onPress ? 'cursor: pointer;' : undefined;
|
|
1931
|
-
});
|
|
1932
|
-
|
|
1933
|
-
var Flex = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
1910
|
+
var Flex = /*#__PURE__*/styled$1(View).withConfig({
|
|
1934
1911
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
1935
1912
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
1936
1913
|
}
|
|
@@ -1987,7 +1964,7 @@ var useStoryBlockColor = function (color) {
|
|
|
1987
1964
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
1988
1965
|
return color || storyBlockColor;
|
|
1989
1966
|
};
|
|
1990
|
-
var StyledStoryBlockView = /*#__PURE__*/styled(
|
|
1967
|
+
var StyledStoryBlockView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1991
1968
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
1992
1969
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
1993
1970
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -1998,20 +1975,23 @@ var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1998
1975
|
function StoryBlock(_ref2) {
|
|
1999
1976
|
var children = _ref2.children,
|
|
2000
1977
|
background = _ref2.background;
|
|
2001
|
-
return /*#__PURE__*/
|
|
2002
|
-
background: background
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
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
|
+
});
|
|
2008
1988
|
}
|
|
2009
1989
|
|
|
2010
|
-
var StoryTitleContainer = /*#__PURE__*/styled(
|
|
1990
|
+
var StoryTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
2011
1991
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
2012
1992
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
2013
1993
|
})(["margin-bottom:30px;"]);
|
|
2014
|
-
var StorySubTitleContainer = /*#__PURE__*/styled(
|
|
1994
|
+
var StorySubTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
2015
1995
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
2016
1996
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
2017
1997
|
})(["margin-bottom:10px;"]);
|
|
@@ -2019,24 +1999,30 @@ function StoryTitle(_ref) {
|
|
|
2019
1999
|
var color = _ref.color,
|
|
2020
2000
|
children = _ref.children,
|
|
2021
2001
|
numberOfLines = _ref.numberOfLines;
|
|
2022
|
-
return /*#__PURE__*/
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
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
|
+
});
|
|
2028
2011
|
}
|
|
2029
2012
|
|
|
2030
2013
|
function StoryTitleLevel2(_ref2) {
|
|
2031
2014
|
var color = _ref2.color,
|
|
2032
2015
|
children = _ref2.children,
|
|
2033
2016
|
numberOfLines = _ref2.numberOfLines;
|
|
2034
|
-
return /*#__PURE__*/
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
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
|
+
});
|
|
2040
2026
|
}
|
|
2041
2027
|
|
|
2042
2028
|
StoryTitleLevel2.displayName = 'StoryTitle.Level2';
|
|
@@ -2045,13 +2031,16 @@ function StoryTitleLevel3(_ref3) {
|
|
|
2045
2031
|
var color = _ref3.color,
|
|
2046
2032
|
children = _ref3.children,
|
|
2047
2033
|
numberOfLines = _ref3.numberOfLines;
|
|
2048
|
-
return /*#__PURE__*/
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
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
|
+
});
|
|
2055
2044
|
}
|
|
2056
2045
|
|
|
2057
2046
|
StoryTitleLevel3.displayName = 'StoryTitle.Level3';
|
|
@@ -2060,13 +2049,16 @@ function StoryTitleLevel4(_ref4) {
|
|
|
2060
2049
|
var color = _ref4.color,
|
|
2061
2050
|
children = _ref4.children,
|
|
2062
2051
|
numberOfLines = _ref4.numberOfLines;
|
|
2063
|
-
return /*#__PURE__*/
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
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
|
+
});
|
|
2070
2062
|
}
|
|
2071
2063
|
|
|
2072
2064
|
StoryTitleLevel4.displayName = 'StoryTitle.Level3';
|
|
@@ -2074,7 +2066,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
2074
2066
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
2075
2067
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
2076
2068
|
|
|
2077
|
-
var StoryContainer$1 = /*#__PURE__*/styled(
|
|
2069
|
+
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView).withConfig({
|
|
2078
2070
|
displayName: "Story__StoryContainer",
|
|
2079
2071
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
2080
2072
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -2082,67 +2074,86 @@ function Story(_ref) {
|
|
|
2082
2074
|
var title = _ref.title,
|
|
2083
2075
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
2084
2076
|
children = _ref.children;
|
|
2085
|
-
return /*#__PURE__*/
|
|
2086
|
-
contentContainerStyle: contentContainerStyle
|
|
2087
|
-
|
|
2077
|
+
return /*#__PURE__*/jsxs(StoryContainer$1, {
|
|
2078
|
+
contentContainerStyle: contentContainerStyle,
|
|
2079
|
+
children: [/*#__PURE__*/jsx(StoryTitle, {
|
|
2080
|
+
children: title
|
|
2081
|
+
}), children]
|
|
2082
|
+
});
|
|
2088
2083
|
}
|
|
2089
2084
|
|
|
2090
|
-
var _excluded$2 = ["title", "
|
|
2091
|
-
_excluded2 = ["title", "
|
|
2092
|
-
_excluded3 = ["title", "
|
|
2093
|
-
|
|
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({
|
|
2094
2093
|
displayName: "StorySection__StyledSection",
|
|
2095
2094
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
2096
2095
|
})(["margin-bottom:32px;"]);
|
|
2097
2096
|
function StorySection(_ref) {
|
|
2098
|
-
var title = _ref.title
|
|
2099
|
-
_ref.
|
|
2100
|
-
var children = _ref.children,
|
|
2097
|
+
var title = _ref.title,
|
|
2098
|
+
children = _ref.children,
|
|
2101
2099
|
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
2102
2100
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
2103
2101
|
|
|
2104
2102
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
2105
|
-
return /*#__PURE__*/
|
|
2103
|
+
return /*#__PURE__*/jsxs(StyledSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2104
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
2105
|
+
children: title
|
|
2106
|
+
}), children]
|
|
2107
|
+
}));
|
|
2106
2108
|
}
|
|
2107
|
-
var StyledSubSection = /*#__PURE__*/styled(
|
|
2109
|
+
var StyledSubSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2108
2110
|
displayName: "StorySection__StyledSubSection",
|
|
2109
2111
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
2110
2112
|
})(["margin-bottom:16px;"]);
|
|
2111
2113
|
|
|
2112
2114
|
function SubSection(_ref2) {
|
|
2113
|
-
var title = _ref2.title
|
|
2114
|
-
_ref2.
|
|
2115
|
-
var children = _ref2.children,
|
|
2115
|
+
var title = _ref2.title,
|
|
2116
|
+
children = _ref2.children,
|
|
2116
2117
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
2117
2118
|
|
|
2118
|
-
return /*#__PURE__*/
|
|
2119
|
+
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2120
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
2121
|
+
children: title
|
|
2122
|
+
}), children]
|
|
2123
|
+
}));
|
|
2119
2124
|
}
|
|
2120
2125
|
|
|
2121
|
-
var StyledBlockSection = /*#__PURE__*/styled(
|
|
2126
|
+
var StyledBlockSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2122
2127
|
displayName: "StorySection__StyledBlockSection",
|
|
2123
2128
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
2124
2129
|
})(["margin-bottom:16px;"]);
|
|
2125
2130
|
|
|
2126
2131
|
function BlockSection(_ref3) {
|
|
2127
|
-
var title = _ref3.title
|
|
2128
|
-
_ref3.
|
|
2129
|
-
var children = _ref3.children,
|
|
2132
|
+
var title = _ref3.title,
|
|
2133
|
+
children = _ref3.children,
|
|
2130
2134
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
2131
2135
|
|
|
2132
|
-
return /*#__PURE__*/
|
|
2136
|
+
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2137
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
2138
|
+
children: title
|
|
2139
|
+
}), children]
|
|
2140
|
+
}));
|
|
2133
2141
|
}
|
|
2134
2142
|
|
|
2135
|
-
var StyledDemoSection = /*#__PURE__*/styled(
|
|
2143
|
+
var StyledDemoSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2136
2144
|
displayName: "StorySection__StyledDemoSection",
|
|
2137
2145
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
2138
2146
|
})(["margin-bottom:64px;"]);
|
|
2139
2147
|
|
|
2140
2148
|
function DemoSection(_ref4) {
|
|
2141
2149
|
var children = _ref4.children;
|
|
2142
|
-
return /*#__PURE__*/
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2150
|
+
return /*#__PURE__*/jsx(StyledDemoSection, {
|
|
2151
|
+
children: /*#__PURE__*/jsx(StorySection, {
|
|
2152
|
+
internalIsDemoSection: true,
|
|
2153
|
+
title: "Demo",
|
|
2154
|
+
children: children
|
|
2155
|
+
})
|
|
2156
|
+
});
|
|
2146
2157
|
}
|
|
2147
2158
|
|
|
2148
2159
|
StorySection.SubSection = SubSection;
|
|
@@ -2161,33 +2172,36 @@ function StoryContainer(_ref) {
|
|
|
2161
2172
|
title = _ref.title,
|
|
2162
2173
|
platform = _ref.platform;
|
|
2163
2174
|
if (platform === 'native') return null;
|
|
2164
|
-
return /*#__PURE__*/
|
|
2175
|
+
return /*#__PURE__*/jsx(StorySection.BlockSection, {
|
|
2165
2176
|
testID: state,
|
|
2166
|
-
title: title
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2177
|
+
title: title,
|
|
2178
|
+
children: /*#__PURE__*/jsx("div", {
|
|
2179
|
+
className: state ? "kitt-".concat(state) : undefined,
|
|
2180
|
+
children: children
|
|
2181
|
+
})
|
|
2182
|
+
});
|
|
2170
2183
|
}
|
|
2171
2184
|
|
|
2172
2185
|
function StoryDecorator(storyFn, context) {
|
|
2173
|
-
return /*#__PURE__*/
|
|
2174
|
-
title: context.name
|
|
2175
|
-
|
|
2186
|
+
return /*#__PURE__*/jsx(Story, {
|
|
2187
|
+
title: context.name,
|
|
2188
|
+
children: storyFn()
|
|
2189
|
+
});
|
|
2176
2190
|
}
|
|
2177
2191
|
|
|
2178
|
-
var SmallScreenRow = /*#__PURE__*/styled(
|
|
2192
|
+
var SmallScreenRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2179
2193
|
displayName: "StoryGrid__SmallScreenRow",
|
|
2180
2194
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
2181
2195
|
})(["flex-direction:column;margin:0;"]);
|
|
2182
|
-
var SmallScreenCol = /*#__PURE__*/styled(
|
|
2196
|
+
var SmallScreenCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2183
2197
|
displayName: "StoryGrid__SmallScreenCol",
|
|
2184
2198
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
2185
2199
|
})(["padding:8px 0 16px;"]);
|
|
2186
|
-
var FlexRow = /*#__PURE__*/styled(
|
|
2200
|
+
var FlexRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2187
2201
|
displayName: "StoryGrid__FlexRow",
|
|
2188
2202
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
2189
2203
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
2190
|
-
var FlexCol = /*#__PURE__*/styled(
|
|
2204
|
+
var FlexCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2191
2205
|
displayName: "StoryGrid__FlexCol",
|
|
2192
2206
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
2193
2207
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -2205,14 +2219,22 @@ function StoryGridRow(_ref) {
|
|
|
2205
2219
|
var breakpointValue = breakpoint === 'small' ? 480 : 768;
|
|
2206
2220
|
|
|
2207
2221
|
if (width < breakpointValue) {
|
|
2208
|
-
return /*#__PURE__*/
|
|
2209
|
-
|
|
2210
|
-
|
|
2222
|
+
return /*#__PURE__*/jsx(SmallScreenRow, {
|
|
2223
|
+
children: Children.map(children, function (child) {
|
|
2224
|
+
return /*#__PURE__*/jsx(SmallScreenCol, {
|
|
2225
|
+
children: child
|
|
2226
|
+
});
|
|
2227
|
+
})
|
|
2228
|
+
});
|
|
2211
2229
|
}
|
|
2212
2230
|
|
|
2213
|
-
return /*#__PURE__*/
|
|
2214
|
-
|
|
2215
|
-
|
|
2231
|
+
return /*#__PURE__*/jsx(FlexRow, {
|
|
2232
|
+
children: Children.map(children, function (child) {
|
|
2233
|
+
return /*#__PURE__*/jsx(FlexCol, {
|
|
2234
|
+
children: child
|
|
2235
|
+
});
|
|
2236
|
+
})
|
|
2237
|
+
});
|
|
2216
2238
|
}
|
|
2217
2239
|
|
|
2218
2240
|
function StoryGridCol(_ref2) {
|
|
@@ -2226,10 +2248,13 @@ function StoryGridCol(_ref2) {
|
|
|
2226
2248
|
return null;
|
|
2227
2249
|
}
|
|
2228
2250
|
|
|
2229
|
-
return /*#__PURE__*/
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
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
|
+
});
|
|
2233
2258
|
}
|
|
2234
2259
|
|
|
2235
2260
|
var StoryGrid = {
|
|
@@ -2237,7 +2262,7 @@ var StoryGrid = {
|
|
|
2237
2262
|
Col: StoryGridCol
|
|
2238
2263
|
};
|
|
2239
2264
|
|
|
2240
|
-
var Container = /*#__PURE__*/styled(
|
|
2265
|
+
var Container = /*#__PURE__*/styled$1(View).withConfig({
|
|
2241
2266
|
displayName: "Tag__Container",
|
|
2242
2267
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2243
2268
|
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
@@ -2291,13 +2316,15 @@ function Tag(_ref6) {
|
|
|
2291
2316
|
type = _ref6$type === void 0 ? 'default' : _ref6$type,
|
|
2292
2317
|
_ref6$variant = _ref6.variant,
|
|
2293
2318
|
variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
|
|
2294
|
-
return /*#__PURE__*/
|
|
2319
|
+
return /*#__PURE__*/jsx(Container, {
|
|
2295
2320
|
type: type,
|
|
2296
|
-
variant: variant
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2321
|
+
variant: variant,
|
|
2322
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
2323
|
+
base: "body-xsmall",
|
|
2324
|
+
color: getLabelColor(type, variant),
|
|
2325
|
+
children: label
|
|
2326
|
+
})
|
|
2327
|
+
});
|
|
2301
2328
|
}
|
|
2302
2329
|
|
|
2303
2330
|
var lateOceanColorPalette = {
|
|
@@ -2406,6 +2433,7 @@ var colorsLateOceanTheme = {
|
|
|
2406
2433
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2407
2434
|
separator: lateOceanColorPalette.black100,
|
|
2408
2435
|
hover: lateOceanColorPalette.black100,
|
|
2436
|
+
black: lateOceanColorPalette.black1000,
|
|
2409
2437
|
uiBackground: lateOceanColorPalette.black25,
|
|
2410
2438
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
2411
2439
|
overlay: {
|
|
@@ -2591,6 +2619,15 @@ var tagLateOceanTheme = {
|
|
|
2591
2619
|
}
|
|
2592
2620
|
};
|
|
2593
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
|
+
|
|
2594
2631
|
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2595
2632
|
return Math.round(fontSize * lineHeightMultiplier);
|
|
2596
2633
|
};
|
|
@@ -2707,27 +2744,236 @@ var theme = {
|
|
|
2707
2744
|
shadows: shadowsLateOceanTheme,
|
|
2708
2745
|
fullScreenModal: fullScreenModalLateOceanTheme,
|
|
2709
2746
|
iconButton: iconButton,
|
|
2710
|
-
listItem: listItemLateOceanTheme
|
|
2747
|
+
listItem: listItemLateOceanTheme,
|
|
2748
|
+
tooltip: tooltip
|
|
2711
2749
|
};
|
|
2712
2750
|
|
|
2713
|
-
function
|
|
2714
|
-
|
|
2715
|
-
|
|
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
|
+
}));
|
|
2716
2808
|
}
|
|
2717
2809
|
|
|
2718
|
-
var
|
|
2719
|
-
|
|
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'
|
|
2720
2841
|
};
|
|
2721
2842
|
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
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;
|
|
2725
2864
|
}
|
|
2726
2865
|
|
|
2727
|
-
|
|
2866
|
+
if (originalPosition === 'bottom') {
|
|
2867
|
+
return offsetMiddlewareData.y < 0 ? 'top' : originalPosition;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
return originalPosition;
|
|
2728
2871
|
}
|
|
2729
2872
|
|
|
2730
|
-
|
|
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({
|
|
2731
2977
|
displayName: "TypographyEmoji__StyledTypographyEmoji",
|
|
2732
2978
|
componentId: "kitt-universal__sc-1if5guu-0"
|
|
2733
2979
|
})(["align-self:center;", ""], function (_ref) {
|
|
@@ -2738,58 +2984,79 @@ var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
|
|
|
2738
2984
|
});
|
|
2739
2985
|
function TypographyEmoji(_ref2) {
|
|
2740
2986
|
var emoji = _ref2.emoji,
|
|
2741
|
-
|
|
2742
|
-
|
|
2987
|
+
base = _ref2.base,
|
|
2988
|
+
small = _ref2.small,
|
|
2989
|
+
medium = _ref2.medium,
|
|
2990
|
+
large = _ref2.large;
|
|
2743
2991
|
var theme = /*#__PURE__*/useTheme();
|
|
2744
|
-
var
|
|
2745
|
-
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;
|
|
2746
2996
|
|
|
2747
2997
|
if ((process.env.NODE_ENV !== "production")) {
|
|
2748
2998
|
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
2749
2999
|
}
|
|
2750
3000
|
|
|
2751
|
-
return /*#__PURE__*/
|
|
3001
|
+
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
2752
3002
|
size: parseInt(fontSize.slice(0, -2), 10),
|
|
2753
3003
|
emoji: emoji
|
|
2754
3004
|
});
|
|
2755
3005
|
}
|
|
2756
3006
|
|
|
2757
3007
|
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
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({
|
|
2763
3017
|
displayName: "TypographyLink__StyledLink",
|
|
2764
3018
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
2765
|
-
})(["text-decoration:", ";", ""], function (_ref) {
|
|
2766
|
-
var noUnderline = _ref
|
|
2767
|
-
return noUnderline ? 'none' : 'underline';
|
|
3019
|
+
})(["text-decoration:", ";", ";", ";"], function (_ref) {
|
|
3020
|
+
var $noUnderline = _ref.$noUnderline;
|
|
3021
|
+
return $noUnderline ? 'none' : 'underline';
|
|
2768
3022
|
}, function (_ref2) {
|
|
2769
|
-
var disabled = _ref2
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
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, ";");
|
|
2773
3030
|
});
|
|
2774
|
-
function TypographyLink(
|
|
2775
|
-
var children =
|
|
2776
|
-
disabled =
|
|
2777
|
-
noUnderline =
|
|
2778
|
-
href =
|
|
2779
|
-
hrefAttrs =
|
|
2780
|
-
onPress =
|
|
2781
|
-
otherProps = _objectWithoutProperties(
|
|
2782
|
-
|
|
2783
|
-
return /*#__PURE__*/
|
|
2784
|
-
accessibilityRole: "none"
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
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
|
+
}));
|
|
2793
3060
|
}
|
|
2794
3061
|
|
|
2795
3062
|
function matchWindowSize(currentWidth, _ref) {
|
|
@@ -2861,9 +3128,10 @@ function useKittTheme() {
|
|
|
2861
3128
|
function KittThemeProvider(_ref) {
|
|
2862
3129
|
var children = _ref.children;
|
|
2863
3130
|
var theme = useKittTheme();
|
|
2864
|
-
return /*#__PURE__*/
|
|
2865
|
-
theme: theme
|
|
2866
|
-
|
|
3131
|
+
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
3132
|
+
theme: theme,
|
|
3133
|
+
children: children
|
|
3134
|
+
});
|
|
2867
3135
|
}
|
|
2868
3136
|
var KittThemeDecorator = makeDecorator({
|
|
2869
3137
|
name: 'ThemeDecorator',
|
|
@@ -2871,17 +3139,9 @@ var KittThemeDecorator = makeDecorator({
|
|
|
2871
3139
|
wrapper: function wrapper(storyFn, context, _ref2) {
|
|
2872
3140
|
_ref2.options;
|
|
2873
3141
|
_ref2.parameters;
|
|
2874
|
-
return /*#__PURE__*/
|
|
2875
|
-
|
|
2876
|
-
});
|
|
2877
|
-
|
|
2878
|
-
var SafeAreaProviderDecorator = makeDecorator({
|
|
2879
|
-
name: 'SafeAreaProviderDecorator',
|
|
2880
|
-
parameterName: 'safeAreaProvider',
|
|
2881
|
-
wrapper: function wrapper(storyFn, context, _ref) {
|
|
2882
|
-
_ref.options;
|
|
2883
|
-
_ref.parameters;
|
|
2884
|
-
return /*#__PURE__*/React.createElement(SafeAreaProvider, null, storyFn(context));
|
|
3142
|
+
return /*#__PURE__*/jsx(KittThemeProvider, {
|
|
3143
|
+
children: storyFn(context)
|
|
3144
|
+
});
|
|
2885
3145
|
}
|
|
2886
3146
|
});
|
|
2887
3147
|
|
|
@@ -2892,8 +3152,10 @@ function MatchWindowSize(_ref) {
|
|
|
2892
3152
|
|
|
2893
3153
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
2894
3154
|
if (!match) return null;
|
|
2895
|
-
return /*#__PURE__*/
|
|
3155
|
+
return /*#__PURE__*/jsx(Fragment$1, {
|
|
3156
|
+
children: children
|
|
3157
|
+
});
|
|
2896
3158
|
}
|
|
2897
3159
|
|
|
2898
|
-
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 };
|
|
2899
3161
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|