@ornikar/kitt-universal 9.12.2 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +16 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +7 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/useBottomSheet.d.ts +4 -0
- package/dist/definitions/BottomSheet/useBottomSheet.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts +15 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts.map +1 -0
- package/dist/definitions/Tag/Tag.d.ts +1 -1
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +1 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +2 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/bottomSheet.d.ts +10 -0
- package/dist/definitions/themes/late-ocean/bottomSheet.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +125 -7
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +125 -7
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +125 -7
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +65 -5
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +113 -4
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +64 -3
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +26 -3
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +26 -3
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +26 -3
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +26 -3
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +26 -3
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +26 -3
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +8 -2
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Text as Text$1, View as View$2, ScrollView as ScrollView$1, Pressable as Pressable$2, Image as Image$1, Input, NativeBaseProvider, extendTheme } from 'native-base';
|
|
4
4
|
import _extends from '@babel/runtime/helpers/extends';
|
|
5
|
-
import { forwardRef, useContext, createContext, cloneElement, useState, useRef, useEffect,
|
|
5
|
+
import { forwardRef, useContext, createContext, cloneElement, useState, useRef, useEffect, useMemo, Children, Fragment } from 'react';
|
|
6
6
|
import { styled } from '@linaria/react';
|
|
7
7
|
import { Pressable as Pressable$1, View as View$1, useWindowDimensions, Image, StyleSheet, ScrollView as ScrollView$2, Linking, Modal as Modal$1, Text as Text$2 } from 'react-native';
|
|
8
8
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
@@ -1057,6 +1057,38 @@ function Avatar(_ref6) {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
+
function BottomSheetComponent() {
|
|
1061
|
+
// noop
|
|
1062
|
+
return null;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComponent);
|
|
1066
|
+
|
|
1067
|
+
BottomSheet.View = function () {
|
|
1068
|
+
return null;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
function useBottomSheet() {
|
|
1072
|
+
var ref = useRef(null);
|
|
1073
|
+
return ref;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
function useStaticBottomSheet(Content) {
|
|
1077
|
+
var bottomSheetRef = useRef(null);
|
|
1078
|
+
var BottomSheetMemoized = useMemo(function () {
|
|
1079
|
+
return function (props) {
|
|
1080
|
+
return /*#__PURE__*/jsx(BottomSheet, _objectSpread(_objectSpread({}, props), {}, {
|
|
1081
|
+
ref: bottomSheetRef,
|
|
1082
|
+
children: Content
|
|
1083
|
+
}));
|
|
1084
|
+
};
|
|
1085
|
+
}, [Content]);
|
|
1086
|
+
return {
|
|
1087
|
+
bottomSheetRef: bottomSheetRef,
|
|
1088
|
+
BottomSheet: BottomSheetMemoized
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1060
1092
|
var Container$3 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
1061
1093
|
displayName: "Card__Container",
|
|
1062
1094
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
@@ -1892,6 +1924,17 @@ var avatar = {
|
|
|
1892
1924
|
}
|
|
1893
1925
|
};
|
|
1894
1926
|
|
|
1927
|
+
var spacing = 4;
|
|
1928
|
+
|
|
1929
|
+
var bottomSheet = {
|
|
1930
|
+
container: {
|
|
1931
|
+
padding: spacing * 4
|
|
1932
|
+
},
|
|
1933
|
+
handle: {
|
|
1934
|
+
backgroundColor: lateOceanColorPalette.black200
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1895
1938
|
var button = {
|
|
1896
1939
|
borderRadius: 30,
|
|
1897
1940
|
borderWidth: {
|
|
@@ -2112,7 +2155,8 @@ var typography = {
|
|
|
2112
2155
|
'primary-light': colors.primaryLight,
|
|
2113
2156
|
accent: colors.accent,
|
|
2114
2157
|
success: colors.success,
|
|
2115
|
-
danger: colors.danger
|
|
2158
|
+
danger: colors.danger,
|
|
2159
|
+
warning: colors.warning
|
|
2116
2160
|
},
|
|
2117
2161
|
types: {
|
|
2118
2162
|
headers: {
|
|
@@ -2291,8 +2335,6 @@ var fullScreenModal = {
|
|
|
2291
2335
|
}
|
|
2292
2336
|
};
|
|
2293
2337
|
|
|
2294
|
-
var spacing = 4;
|
|
2295
|
-
|
|
2296
2338
|
var highlight = {
|
|
2297
2339
|
borderRadius: {
|
|
2298
2340
|
base: spacing * 5
|
|
@@ -2458,6 +2500,18 @@ var tag = {
|
|
|
2458
2500
|
borderWidth: 1,
|
|
2459
2501
|
borderColor: colors.danger
|
|
2460
2502
|
}
|
|
2503
|
+
},
|
|
2504
|
+
warn: {
|
|
2505
|
+
fill: {
|
|
2506
|
+
backgroundColor: colors.warning,
|
|
2507
|
+
borderWidth: 0,
|
|
2508
|
+
borderColor: colors.transparent
|
|
2509
|
+
},
|
|
2510
|
+
outline: {
|
|
2511
|
+
backgroundColor: colors.transparent,
|
|
2512
|
+
borderWidth: 1,
|
|
2513
|
+
borderColor: colors.warning
|
|
2514
|
+
}
|
|
2461
2515
|
}
|
|
2462
2516
|
};
|
|
2463
2517
|
|
|
@@ -2502,6 +2556,7 @@ var theme = {
|
|
|
2502
2556
|
avatar: avatar,
|
|
2503
2557
|
breakpoints: breakpoints,
|
|
2504
2558
|
button: button,
|
|
2559
|
+
bottomSheet: bottomSheet,
|
|
2505
2560
|
card: card,
|
|
2506
2561
|
choices: choices,
|
|
2507
2562
|
dialogModal: dialogModal,
|
|
@@ -5133,6 +5188,11 @@ var getLabelColor = function (type, variant) {
|
|
|
5133
5188
|
return variant === 'outline' ? 'danger' : 'black';
|
|
5134
5189
|
}
|
|
5135
5190
|
|
|
5191
|
+
case 'warn':
|
|
5192
|
+
{
|
|
5193
|
+
return variant === 'outline' ? 'warning' : 'black';
|
|
5194
|
+
}
|
|
5195
|
+
|
|
5136
5196
|
case 'primary':
|
|
5137
5197
|
{
|
|
5138
5198
|
return 'primary';
|
|
@@ -5572,5 +5632,5 @@ function MatchWindowSize(_ref) {
|
|
|
5572
5632
|
return children;
|
|
5573
5633
|
}
|
|
5574
5634
|
|
|
5575
|
-
export { Actions, Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Highlight, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
5635
|
+
export { Actions, Avatar, BottomSheet, Button, Card, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Highlight, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useBottomSheet, useKittTheme, useMatchWindowSize, useStaticBottomSheet, useStoryBlockColor, withTheme };
|
|
5576
5636
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|