@ornikar/kitt-universal 24.4.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +11 -11
- package/dist/index-metro.es.android.js +5 -17
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +5 -17
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +4 -16
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +5 -17
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index.es.js +5 -17
- package/dist/index.es.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +29 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [25.0.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@24.4.0...@ornikar/kitt-universal@25.0.0) (2024-05-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* upgrade to expo 50 OSE-7994 (#2337)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* upgrade to expo 50 OSE-7994 ([#2337](https://github.com/ornikar/kitt/issues/2337)) ([ad76e86](https://github.com/ornikar/kitt/commit/ad76e865857c7480dcc8e07e8c60e768bee8901c))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [24.4.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@24.3.1...@ornikar/kitt-universal@24.4.0) (2024-05-17)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIzG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,WAAW,gBAAgB,CAAC,IAAI,GAAG,KAAK;IAC5C,QAAQ,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC3C,GAAG,EAAE,gBAAgB,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,iBAAS,eAAe,CAAC,IAAI,SAAS,GAAG,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACnF,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAqB,EAAE,WAAkB,EAAE,SAAgB,EAAE,SAAS,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,EACrH,GAAG,EAAE,GAAG,CAAC,gBAAgB,CAAC,GACzB,SAAS,CA6BX;AAED,iBAAS,wBAAwB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAE7D;AAED,eAAO,MAAM,WAAW;;MAEnB,WAAW,sBAAsB,CAAC;UAAY,+BAA+B;CAAE,CAAC"}
|
|
@@ -210,9 +210,9 @@ export declare namespace Typography {
|
|
|
210
210
|
numberOfLines?: number | undefined;
|
|
211
211
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
212
212
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
213
|
+
minimumFontScale?: number | undefined;
|
|
213
214
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
214
215
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
215
|
-
minimumFontScale?: number | undefined;
|
|
216
216
|
suppressHighlighting?: boolean | undefined;
|
|
217
217
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
218
218
|
selectable?: boolean | undefined;
|
|
@@ -393,9 +393,9 @@ export declare namespace Typography {
|
|
|
393
393
|
numberOfLines?: number | undefined;
|
|
394
394
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
395
395
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
396
|
+
minimumFontScale?: number | undefined;
|
|
396
397
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
397
398
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
398
|
-
minimumFontScale?: number | undefined;
|
|
399
399
|
suppressHighlighting?: boolean | undefined;
|
|
400
400
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
401
401
|
selectable?: boolean | undefined;
|
|
@@ -576,9 +576,9 @@ export declare namespace Typography {
|
|
|
576
576
|
numberOfLines?: number | undefined;
|
|
577
577
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
578
578
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
579
|
+
minimumFontScale?: number | undefined;
|
|
579
580
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
580
581
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
581
|
-
minimumFontScale?: number | undefined;
|
|
582
582
|
suppressHighlighting?: boolean | undefined;
|
|
583
583
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
584
584
|
selectable?: boolean | undefined;
|
|
@@ -759,9 +759,9 @@ export declare namespace Typography {
|
|
|
759
759
|
numberOfLines?: number | undefined;
|
|
760
760
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
761
761
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
762
|
+
minimumFontScale?: number | undefined;
|
|
762
763
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
763
764
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
764
|
-
minimumFontScale?: number | undefined;
|
|
765
765
|
suppressHighlighting?: boolean | undefined;
|
|
766
766
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
767
767
|
selectable?: boolean | undefined;
|
|
@@ -942,9 +942,9 @@ export declare namespace Typography {
|
|
|
942
942
|
numberOfLines?: number | undefined;
|
|
943
943
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
944
944
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
945
|
+
minimumFontScale?: number | undefined;
|
|
945
946
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
946
947
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
947
|
-
minimumFontScale?: number | undefined;
|
|
948
948
|
suppressHighlighting?: boolean | undefined;
|
|
949
949
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
950
950
|
selectable?: boolean | undefined;
|
|
@@ -1125,9 +1125,9 @@ export declare namespace Typography {
|
|
|
1125
1125
|
numberOfLines?: number | undefined;
|
|
1126
1126
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
1127
1127
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
1128
|
+
minimumFontScale?: number | undefined;
|
|
1128
1129
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
1129
1130
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
1130
|
-
minimumFontScale?: number | undefined;
|
|
1131
1131
|
suppressHighlighting?: boolean | undefined;
|
|
1132
1132
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1133
1133
|
selectable?: boolean | undefined;
|
|
@@ -1308,9 +1308,9 @@ export declare namespace Typography {
|
|
|
1308
1308
|
numberOfLines?: number | undefined;
|
|
1309
1309
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
1310
1310
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
1311
|
+
minimumFontScale?: number | undefined;
|
|
1311
1312
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
1312
1313
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
1313
|
-
minimumFontScale?: number | undefined;
|
|
1314
1314
|
suppressHighlighting?: boolean | undefined;
|
|
1315
1315
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1316
1316
|
selectable?: boolean | undefined;
|
|
@@ -1491,9 +1491,9 @@ export declare namespace Typography {
|
|
|
1491
1491
|
numberOfLines?: number | undefined;
|
|
1492
1492
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
1493
1493
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
1494
|
+
minimumFontScale?: number | undefined;
|
|
1494
1495
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
1495
1496
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
1496
|
-
minimumFontScale?: number | undefined;
|
|
1497
1497
|
suppressHighlighting?: boolean | undefined;
|
|
1498
1498
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1499
1499
|
selectable?: boolean | undefined;
|
|
@@ -1674,9 +1674,9 @@ export declare namespace Typography {
|
|
|
1674
1674
|
numberOfLines?: number | undefined;
|
|
1675
1675
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
1676
1676
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
1677
|
+
minimumFontScale?: number | undefined;
|
|
1677
1678
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
1678
1679
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
1679
|
-
minimumFontScale?: number | undefined;
|
|
1680
1680
|
suppressHighlighting?: boolean | undefined;
|
|
1681
1681
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1682
1682
|
selectable?: boolean | undefined;
|
|
@@ -1857,9 +1857,9 @@ export declare namespace Typography {
|
|
|
1857
1857
|
numberOfLines?: number | undefined;
|
|
1858
1858
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
1859
1859
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
1860
|
+
minimumFontScale?: number | undefined;
|
|
1860
1861
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
1861
1862
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
1862
|
-
minimumFontScale?: number | undefined;
|
|
1863
1863
|
suppressHighlighting?: boolean | undefined;
|
|
1864
1864
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1865
1865
|
selectable?: boolean | undefined;
|
|
@@ -2040,9 +2040,9 @@ export declare namespace Typography {
|
|
|
2040
2040
|
numberOfLines?: number | undefined;
|
|
2041
2041
|
onTextLayout?: ((event: import("react-native").NativeSyntheticEvent<import("react-native").TextLayoutEventData>) => void) | undefined;
|
|
2042
2042
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
2043
|
+
minimumFontScale?: number | undefined;
|
|
2043
2044
|
adjustsFontSizeToFit?: boolean | undefined;
|
|
2044
2045
|
dynamicTypeRamp?: "body" | "caption2" | "caption1" | "footnote" | "subheadline" | "callout" | "headline" | "title3" | "title2" | "title1" | "largeTitle" | undefined;
|
|
2045
|
-
minimumFontScale?: number | undefined;
|
|
2046
2046
|
suppressHighlighting?: boolean | undefined;
|
|
2047
2047
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
2048
2048
|
selectable?: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSprin
|
|
|
10
10
|
import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, Text as Text$1, useWindowDimensions, PixelRatio } from 'react-native';
|
|
11
11
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
12
12
|
import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
13
|
-
import { BottomSheetScrollView, BottomSheetView,
|
|
13
|
+
import { BottomSheetScrollView, BottomSheetView, BottomSheetModal, BottomSheetHandle, BottomSheetBackdrop, useBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
14
14
|
import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
15
15
|
import { parse } from '@twemoji/parser';
|
|
16
16
|
import * as WebBrowser from 'expo-web-browser';
|
|
@@ -2980,19 +2980,11 @@ function BottomSheetComp({
|
|
|
2980
2980
|
}, ref) {
|
|
2981
2981
|
const Wrapper = useMemo(() => hasScrollView ? BottomSheetScrollView : BottomSheetView, [hasScrollView]);
|
|
2982
2982
|
const theme = useTheme();
|
|
2983
|
-
const initialSnapPoints = useMemo(() => ['CONTENT_HEIGHT'], []);
|
|
2984
|
-
const {
|
|
2985
|
-
animatedHandleHeight,
|
|
2986
|
-
animatedSnapPoints,
|
|
2987
|
-
animatedContentHeight,
|
|
2988
|
-
handleContentLayout
|
|
2989
|
-
} = useBottomSheetDynamicSnapPoints(initialSnapPoints);
|
|
2990
2983
|
return /*#__PURE__*/jsx(BottomSheetModal, {
|
|
2991
2984
|
ref: ref,
|
|
2992
2985
|
enablePanDownToClose: true,
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
handleHeight: animatedHandleHeight,
|
|
2986
|
+
enableDynamicSizing: true,
|
|
2987
|
+
snapPoints: ['100%'],
|
|
2996
2988
|
handleIndicatorStyle: {
|
|
2997
2989
|
width: 40,
|
|
2998
2990
|
height: 4,
|
|
@@ -3005,15 +2997,11 @@ function BottomSheetComp({
|
|
|
3005
2997
|
appearsOnIndex: 0,
|
|
3006
2998
|
disappearsOnIndex: -1
|
|
3007
2999
|
})) : null,
|
|
3008
|
-
contentHeight: animatedContentHeight,
|
|
3009
3000
|
onDismiss: onDismiss,
|
|
3010
|
-
children: ({
|
|
3011
|
-
data
|
|
3012
|
-
}) => /*#__PURE__*/jsx(SafeAreaView, {
|
|
3001
|
+
children: props => /*#__PURE__*/jsx(SafeAreaView, {
|
|
3013
3002
|
edges: ['bottom'],
|
|
3014
|
-
onLayout: handleContentLayout,
|
|
3015
3003
|
children: /*#__PURE__*/jsx(Wrapper, {
|
|
3016
|
-
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, data)) : Content
|
|
3004
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3017
3005
|
})
|
|
3018
3006
|
})
|
|
3019
3007
|
});
|