@expo/ui 58.0.15 → 58.0.17
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 +21 -0
- package/android/build.gradle +6 -6
- package/android/src/main/java/expo/modules/ui/CarouselView.kt +2 -1
- package/android/src/main/java/expo/modules/ui/DatePickerView.kt +15 -5
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +3 -0
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +2 -2
- package/android/src/main/java/expo/modules/ui/RNHostView.kt +95 -0
- package/android/src/main/java/expo/modules/ui/SliderView.kt +21 -9
- package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +1 -1
- package/android/src/main/java/expo/modules/ui/VerticalSliderView.kt +23 -14
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +8 -1
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +13 -1
- package/android/src/main/java/expo/modules/ui/menu/ExposedDropdownMenuView.kt +1 -0
- package/build/NativeTreeContext.d.ts +10 -0
- package/build/NativeTreeContext.js +25 -0
- package/build/NativeTreeContext.js.map +1 -0
- package/build/community/bottom-sheet/BottomSheet.ios.js +11 -4
- package/build/community/bottom-sheet/BottomSheet.ios.js.map +1 -1
- package/build/community/menu/MenuView.android.js +6 -0
- package/build/community/menu/MenuView.android.js.map +1 -1
- package/build/jetpack-compose/Carousel/index.d.ts +7 -2
- package/build/jetpack-compose/Carousel/index.js.map +1 -1
- package/build/jetpack-compose/DatePicker/index.d.ts +20 -0
- package/build/jetpack-compose/DatePicker/index.js.map +1 -1
- package/build/jetpack-compose/DropdownMenu/index.d.ts +8 -1
- package/build/jetpack-compose/DropdownMenu/index.js.map +1 -1
- package/build/jetpack-compose/Host/index.js +8 -2
- package/build/jetpack-compose/Host/index.js.map +1 -1
- package/build/jetpack-compose/RNHostView/index.js +5 -1
- package/build/jetpack-compose/RNHostView/index.js.map +1 -1
- package/build/swift-ui/Chart/index.d.ts +10 -0
- package/build/swift-ui/Chart/index.js.map +1 -1
- package/build/swift-ui/Host/index.js +8 -2
- package/build/swift-ui/Host/index.js.map +1 -1
- package/build/swift-ui/RNHostView.js +5 -1
- package/build/swift-ui/RNHostView.js.map +1 -1
- package/build/swift-ui/modifiers/presentationModifiers.d.ts +17 -1
- package/build/swift-ui/modifiers/presentationModifiers.js +4 -2
- package/build/swift-ui/modifiers/presentationModifiers.js.map +1 -1
- package/build/types.d.ts +27 -0
- package/build/types.js +1 -1
- package/build/types.js.map +1 -1
- package/build/universal/BottomSheet/index.android.js +26 -18
- package/build/universal/BottomSheet/index.android.js.map +1 -1
- package/build/universal/BottomSheet/index.ios.js +20 -12
- package/build/universal/BottomSheet/index.ios.js.map +1 -1
- package/build/universal/ListItem/ListItem.android.js +5 -2
- package/build/universal/ListItem/ListItem.android.js.map +1 -1
- package/ios/ChartView.swift +7 -4
- package/ios/DataListForEachView.swift +1 -0
- package/ios/GridView.swift +1 -0
- package/ios/HostView.swift +27 -4
- package/ios/Modifiers/PresentationModifiers.swift +20 -4
- package/ios/NamespaceView.swift +1 -0
- package/ios/RNHostView.swift +19 -4
- package/ios/SlotView.swift +1 -0
- package/ios/TabView/TabView.swift +2 -0
- package/ios/ToolbarView.swift +2 -1
- package/ios/UIBaseView.swift +13 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.15/expo.modules.ui-58.0.15-sources.jar → 58.0.17/expo.modules.ui-58.0.17-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.15/expo.modules.ui-58.0.15.module → 58.0.17/expo.modules.ui-58.0.17.module} +26 -26
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.15/expo.modules.ui-58.0.15.pom → 58.0.17/expo.modules.ui-58.0.17.pom} +5 -5
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.17/expo.modules.ui-58.0.17.pom.sha512 +1 -0
- package/package.json +2 -2
- package/prebuilds/output/debug/xcframeworks/ExpoUI.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoUI.tar.gz +0 -0
- package/src/NativeTreeContext.tsx +31 -0
- package/src/community/bottom-sheet/BottomSheet.ios.tsx +7 -6
- package/src/community/menu/MenuView.android.tsx +12 -2
- package/src/jetpack-compose/Carousel/index.tsx +7 -2
- package/src/jetpack-compose/DatePicker/index.tsx +20 -0
- package/src/jetpack-compose/DropdownMenu/index.tsx +12 -1
- package/src/jetpack-compose/Host/index.tsx +6 -2
- package/src/jetpack-compose/RNHostView/index.tsx +3 -1
- package/src/swift-ui/Chart/index.tsx +10 -0
- package/src/swift-ui/Host/index.tsx +6 -2
- package/src/swift-ui/RNHostView.tsx +3 -1
- package/src/swift-ui/modifiers/presentationModifiers.ts +18 -2
- package/src/types.ts +28 -0
- package/src/universal/BottomSheet/index.android.tsx +23 -12
- package/src/universal/BottomSheet/index.ios.tsx +20 -9
- package/src/universal/ListItem/ListItem.android.tsx +7 -2
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.15/expo.modules.ui-58.0.15.pom.sha512 +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["community/bottom-sheet/BottomSheet.ios.tsx"],"sourcesContent":[null],"names":["useCallback","useEffect","useImperativeHandle","useMemo","useRef","useState","useWindowDimensions","View","StyleSheet","BottomSheet","NativeBottomSheet","Group","Host","RNHostView","interactiveDismissDisabled","presentationBackground","presentationDetents","presentationDragIndicator","presentationSizing","BottomSheetContext","BottomSheetInternalContext","SheetScrollContextReset","parseSnapPoint","useBottomSheet","extractBackgroundColor","style","undefined","flat","flatten","color","backgroundColor","snapPointToDetent","point","parsed","type","fraction","value","height","detentsAreEqual","a","b","findDetentIndex","detents","detent","findIndex","d","findNearestDetentIndex","position","nearestIndex","nearestDist","Infinity","forEach","i","pValue","dValue","dist","Math","abs","props","ref","snapPoints","snapPointsProp","index","indexProp","onChange","onClose","onDismiss","enablePanDownToClose","enableDynamicSizing","handleComponent","backgroundStyle","children","width","isPresented","setIsPresented","currentIndex","setCurrentIndex","max","currentIndexRef","closedRef","onChangeRef","current","onCloseRef","onDismissRef","length","map","selectedDetent","fitToContents","internalContextValue","fireCloseCallbacks","clampedIndex","min","handlePresentedChange","presented","handleDetentChange","newIndex","methods","snapToIndex","close","snapToPosition","expand","collapse","forceClose","present","dismiss","modifiers","bg","selection","onSelectionChange","Provider","pointerEvents","onIsPresentedChange","matchContents","paddingTop","flexGrow"],"mappings":";AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC/F,SAASC,mBAAmB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,eAAe;AAGrE,SAASC,eAAeC,iBAAiB,QAAQ,6BAA6B;AAC9E,SAASC,KAAK,QAAQ,uBAAuB;AAC7C,SAASC,IAAI,QAAQ,sBAAsB;AAC3C,SAASC,UAAU,QAAQ,4BAA4B;AACvD,SAEEC,0BAA0B,EAC1BC,sBAAsB,EACtBC,mBAAmB,EACnBC,yBAAyB,EACzBC,kBAAkB,QACb,iDAAiD;AACxD,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,YAAY;AAC3E,SAASC,uBAAuB,QAAQ,uBAAuB;AAE/D,SAASC,cAAc,QAAQ,UAAU;AAEzC,SAASC,cAAc,QAAQ,YAAY;AAE3C,kBAAkB;AAElB,SAASC,uBAAuBC,KAA2B;IACzD,IAAI,CAACA,OAAO,OAAOC;IACnB,MAAMC,OAAOnB,WAAWoB,OAAO,CAACH;IAChC,MAAMI,QAAQF,MAAMG;IACpB,OAAO,OAAOD,UAAU,WAAWA,QAAQH;AAC7C;AAEA,SAASK,kBAAkBC,KAAsB;IAC/C,MAAMC,SAASX,eAAeU;IAC9B,OAAOC,OAAOC,IAAI,KAAK,aAAa;QAAEC,UAAUF,OAAOG,KAAK;IAAC,IAAI;QAAEC,QAAQJ,OAAOG,KAAK;IAAC;AAC1F;AAEA,SAASE,gBAAgBC,CAAqB,EAAEC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N,YAAY;YAC3BO,SAASN;QACX;IACF,GAAG;QAACxD;KAAQ;IAEZxC,oBAAoByD,KAAK,IAAMqC,SAAS;QAACA;KAAQ;IAEjD,MAAMS,YAAYtG,QAAQ;QACxB,MAAMuG,KAAKlF,uBAAuB8C;QAClC,OAAO;eACDiB,gBAEA;gBAACrE,mBAAmB;
|
|
1
|
+
{"version":3,"sources":["community/bottom-sheet/BottomSheet.ios.tsx"],"sourcesContent":[null],"names":["useCallback","useEffect","useImperativeHandle","useMemo","useRef","useState","useWindowDimensions","View","StyleSheet","BottomSheet","NativeBottomSheet","Group","Host","RNHostView","interactiveDismissDisabled","presentationBackground","presentationDetents","presentationDragIndicator","presentationSizing","BottomSheetContext","BottomSheetInternalContext","SheetScrollContextReset","parseSnapPoint","useBottomSheet","extractBackgroundColor","style","undefined","flat","flatten","color","backgroundColor","snapPointToDetent","point","parsed","type","fraction","value","height","detentsAreEqual","a","b","findDetentIndex","detents","detent","findIndex","d","findNearestDetentIndex","position","nearestIndex","nearestDist","Infinity","forEach","i","pValue","dValue","dist","Math","abs","props","ref","snapPoints","snapPointsProp","index","indexProp","onChange","onClose","onDismiss","enablePanDownToClose","enableDynamicSizing","handleComponent","backgroundStyle","children","width","isPresented","setIsPresented","currentIndex","setCurrentIndex","max","currentIndexRef","closedRef","onChangeRef","current","onCloseRef","onDismissRef","length","map","selectedDetent","fitToContents","internalContextValue","fireCloseCallbacks","clampedIndex","min","handlePresentedChange","presented","handleDetentChange","newIndex","methods","snapToIndex","close","snapToPosition","expand","collapse","forceClose","present","dismiss","modifiers","bg","fitted","horizontal","vertical","selection","onSelectionChange","Provider","pointerEvents","onIsPresentedChange","matchContents","paddingTop","flexGrow"],"mappings":";AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC/F,SAASC,mBAAmB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,eAAe;AAGrE,SA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CAACqD;eACxBuC,KAAK;gBAAC3F,uBAAuB2F;aAAI,GAAG,EAAE;SAC3C;IACH,GAAG;QACDnB;QACA7C;QACA4C;QACAQ;QACAzB;QACAF;QACAG;KACD;IAED,qBACE,KAAClD,2BAA2B4F,QAAQ;QAAC5E,OAAOoD;kBAC1C,cAAA,KAACrE,mBAAmB6F,QAAQ;YAAC5E,OAAO4D;sBAClC,cAAA,KAACpF;gBAAKa,OAAO;oBAAEsB,UAAU;oBAAYyB;gBAAM;gBAAGyC,eAAc;0BAC1D,cAAA,KAACvG;oBACC+D,aAAaA;oBACbyC,qBAAqBtB;oBACrB1B,WAAWuB;oBACXF,eAAeA;8BACf,cAAA,KAAC5E;wBAAM8F,WAAWA;kCAChB,cAAA,KAAC5F;4BAAWsG,eAAe5B,gBAAgB;gCAAEsB,UAAU;4BAAK,IAAI;sCAM9D,cAAA,KAACtG;gCACCkB,OACE8D,gBACI;oCAAE6B,YAAY/C,oBAAoB,OAAO,KAAK;gCAAE,IAChD;oCAAEgD,UAAU;oCAAGhF,QAAQ;oCAAG+E,YAAY/C,oBAAoB,OAAO,KAAK;gCAAE;0CAE9E,cAAA,KAAChD;8CAAyBkD;;;;;;;;;AAS5C"}
|
|
@@ -9,6 +9,10 @@ import { Icon } from '../../jetpack-compose/Icon';
|
|
|
9
9
|
import { RNHostView } from '../../jetpack-compose/RNHostView';
|
|
10
10
|
import { Text as ComposeText } from '../../jetpack-compose/Text';
|
|
11
11
|
import { useMaterialColors } from '../../jetpack-compose/colors';
|
|
12
|
+
// Clipped popups drop the status bar offset, so edge-to-edge menus near the bottom detach from the anchor.
|
|
13
|
+
const POPUP_PROPERTIES = {
|
|
14
|
+
clippingEnabled: false
|
|
15
|
+
};
|
|
12
16
|
function actionId(action) {
|
|
13
17
|
return action.id ?? action.title;
|
|
14
18
|
}
|
|
@@ -64,6 +68,7 @@ function MenuActionItem({ action, onPressAction, dismissAll, destructiveColor })
|
|
|
64
68
|
return /*#__PURE__*/ _jsxs(DropdownMenu, {
|
|
65
69
|
expanded: submenuExpanded,
|
|
66
70
|
onDismissRequest: ()=>setSubmenuExpanded(false),
|
|
71
|
+
properties: POPUP_PROPERTIES,
|
|
67
72
|
children: [
|
|
68
73
|
/*#__PURE__*/ _jsx(DropdownMenu.Trigger, {
|
|
69
74
|
children: /*#__PURE__*/ _jsxs(DropdownMenuItem, {
|
|
@@ -175,6 +180,7 @@ function MenuActionItem({ action, onPressAction, dismissAll, destructiveColor })
|
|
|
175
180
|
children: /*#__PURE__*/ _jsxs(DropdownMenu, {
|
|
176
181
|
expanded: expanded,
|
|
177
182
|
onDismissRequest: dismissAll,
|
|
183
|
+
properties: POPUP_PROPERTIES,
|
|
178
184
|
children: [
|
|
179
185
|
/*#__PURE__*/ _jsx(DropdownMenu.Trigger, {
|
|
180
186
|
children: /*#__PURE__*/ _jsx(RNHostView, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["community/menu/MenuView.android.tsx"],"sourcesContent":[null],"names":["React","Pressable","View","HorizontalDivider","DropdownMenu","DropdownMenuItem","Host","Icon","RNHostView","Text","ComposeText","useMaterialColors","actionId","action","id","title","makeEvent","nativeEvent","event","buildElementColors","destructiveColor","isDestructive","attributes","destructive","textColor","titleColor","undefined","leadingIconColor","disabledTextColor","disabledLeadingIconColor","MenuActionItem","onPressAction","dismissAll","submenuExpanded","setSubmenuExpanded","useState","hidden","subactions","displayInline","state","image","imageColor","leadingIconSource","elementColors","length","map","sub","expanded","onDismissRequest","Trigger","enabled","disabled","onClick","LeadingIcon","source","size","tint","Items","TrailingIcon","MenuView","props","ref","actions","colorScheme","onOpenMenu","onCloseMenu","shouldOpenOnLongPress","style","children","testID","setExpanded","expandedRef","useRef","open","useCallback","current","useImperativeHandle","show","error","matchContents","onPress","onLongPress","android_disableSound","focusable","accessible"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAE/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,YAAY,QAAQ,qCAAqC;AAClE,SACEC,gBAAgB,QAEX,sDAAsD;AAC7D,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,QAAQC,WAAW,QAAQ,6BAA6B;AACjE,SAASC,iBAAiB,QAAQ,+BAA+B;
|
|
1
|
+
{"version":3,"sources":["community/menu/MenuView.android.tsx"],"sourcesContent":[null],"names":["React","Pressable","View","HorizontalDivider","DropdownMenu","DropdownMenuItem","Host","Icon","RNHostView","Text","ComposeText","useMaterialColors","POPUP_PROPERTIES","clippingEnabled","actionId","action","id","title","makeEvent","nativeEvent","event","buildElementColors","destructiveColor","isDestructive","attributes","destructive","textColor","titleColor","undefined","leadingIconColor","disabledTextColor","disabledLeadingIconColor","MenuActionItem","onPressAction","dismissAll","submenuExpanded","setSubmenuExpanded","useState","hidden","subactions","displayInline","state","image","imageColor","leadingIconSource","elementColors","length","map","sub","expanded","onDismissRequest","properties","Trigger","enabled","disabled","onClick","LeadingIcon","source","size","tint","Items","TrailingIcon","MenuView","props","ref","actions","colorScheme","onOpenMenu","onCloseMenu","shouldOpenOnLongPress","style","children","testID","setExpanded","expandedRef","useRef","open","useCallback","current","useImperativeHandle","show","error","matchContents","onPress","onLongPress","android_disableSound","focusable","accessible"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAE/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,YAAY,QAAQ,qCAAqC;AAClE,SACEC,gBAAgB,QAEX,sDAAsD;AAC7D,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,QAAQC,WAAW,QAAQ,6BAA6B;AACjE,SAASC,iBAAiB,QAAQ,+BAA+B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+46,13 @@ export type CarouselCommonConfig = {
|
|
|
46
46
|
};
|
|
47
47
|
export interface HorizontalCenteredHeroCarouselProps extends CarouselCommonConfig {
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
49
|
+
* The width that the large item aims for in dp. The carousel picks the arrangement whose large
|
|
50
|
+
* item width is closest to this value, so the final width can differ.
|
|
51
|
+
* When unspecified, one large item fills the viewport beside two small items.
|
|
52
|
+
*/
|
|
53
|
+
preferredItemWidth?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Use `preferredItemWidth` instead. The value is now a preferred width, not a maximum.
|
|
51
56
|
*/
|
|
52
57
|
maxItemWidth?: number;
|
|
53
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/Carousel/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","transformProps","props","modifiers","restProps","undefined","createCarouselComponent","viewName","NativeView","CarouselComponent","HorizontalCenteredHeroCarousel","HorizontalMultiBrowseCarousel","HorizontalUncontainedCarousel"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,+BAA+B,QAAQ,qBAAqB;AAkDrE,SAASC,eAA2DC,KAAQ;IAC1E,MAAM,EAAEC,SAAS,EAAE,GAAGC,WAAW,GAAGF;IACpC,OAAO;QACLC;QACA,GAAIA,YAAYH,gCAAgCG,aAAaE,SAAS;QACtE,GAAGD,SAAS;IACd;AACF;AAEA,SAASE,wBACPC,QAAgB;IAEhB,MAAMC,aAAqCT,kBAAkB,UAAUQ;IACvE,OAAO,SAASE,kBAAkBP,KAAQ;QACxC,qBAAO,KAACM;YAAY,GAAGP,eAAeC,MAAM;;IAC9C;AACF;
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/Carousel/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","transformProps","props","modifiers","restProps","undefined","createCarouselComponent","viewName","NativeView","CarouselComponent","HorizontalCenteredHeroCarousel","HorizontalMultiBrowseCarousel","HorizontalUncontainedCarousel"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,+BAA+B,QAAQ,qBAAqB;AAkDrE,SAASC,eAA2DC,KAAQ;IAC1E,MAAM,EAAEC,SAAS,EAAE,GAAGC,WAAW,GAAGF;IACpC,OAAO;QACLC;QACA,GAAIA,YAAYH,gCAAgCG,aAAaE,SAAS;QACtE,GAAGD,SAAS;IACd;AACF;AAEA,SAASE,wBACPC,QAAgB;IAEhB,MAAMC,aAAqCT,kBAAkB,UAAUQ;IACvE,OAAO,SAASE,kBAAkBP,KAAQ;QACxC,qBAAO,KAACM;YAAY,GAAGP,eAAeC,MAAM;;IAC9C;AACF;AA2BA;;;CAGC,GACD,OAAO,MAAMQ,iCACXJ,wBACE,sCACA;AAuBJ;;;CAGC,GACD,OAAO,MAAMK,gCACXL,wBAA4D,qCAAqC;AAanG;;;CAGC,GACD,OAAO,MAAMM,gCACXN,wBAA4D,qCAAqC,CAEnG,YAAY"}
|
|
@@ -81,6 +81,10 @@ export type TimePickerElementColors = {
|
|
|
81
81
|
/** The color of clock dial numbers when selected or overlapping the selector. */
|
|
82
82
|
clockDialSelectedContentColor?: ColorValue;
|
|
83
83
|
/** The color of clock dial numbers when unselected. */
|
|
84
|
+
clockDialContentColor?: ColorValue;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use `clockDialContentColor` instead.
|
|
87
|
+
*/
|
|
84
88
|
clockDialUnselectedContentColor?: ColorValue;
|
|
85
89
|
/** The color of the clock dial selector (hand). */
|
|
86
90
|
selectorColor?: ColorValue;
|
|
@@ -89,18 +93,34 @@ export type TimePickerElementColors = {
|
|
|
89
93
|
/** The background color of the selected AM/PM period. */
|
|
90
94
|
periodSelectorSelectedContainerColor?: ColorValue;
|
|
91
95
|
/** The background color of the unselected AM/PM period. */
|
|
96
|
+
periodSelectorContainerColor?: ColorValue;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Use `periodSelectorContainerColor` instead.
|
|
99
|
+
*/
|
|
92
100
|
periodSelectorUnselectedContainerColor?: ColorValue;
|
|
93
101
|
/** The text color of the selected AM/PM period. */
|
|
94
102
|
periodSelectorSelectedContentColor?: ColorValue;
|
|
95
103
|
/** The text color of the unselected AM/PM period. */
|
|
104
|
+
periodSelectorContentColor?: ColorValue;
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Use `periodSelectorContentColor` instead.
|
|
107
|
+
*/
|
|
96
108
|
periodSelectorUnselectedContentColor?: ColorValue;
|
|
97
109
|
/** The background color of the selected hour/minute segment. */
|
|
98
110
|
timeSelectorSelectedContainerColor?: ColorValue;
|
|
99
111
|
/** The background color of the unselected hour/minute segment. */
|
|
112
|
+
timeSelectorContainerColor?: ColorValue;
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Use `timeSelectorContainerColor` instead.
|
|
115
|
+
*/
|
|
100
116
|
timeSelectorUnselectedContainerColor?: ColorValue;
|
|
101
117
|
/** The text color of the selected hour/minute segment. */
|
|
102
118
|
timeSelectorSelectedContentColor?: ColorValue;
|
|
103
119
|
/** The text color of the unselected hour/minute segment. */
|
|
120
|
+
timeSelectorContentColor?: ColorValue;
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated Use `timeSelectorContentColor` instead.
|
|
123
|
+
*/
|
|
104
124
|
timeSelectorUnselectedContentColor?: ColorValue;
|
|
105
125
|
};
|
|
106
126
|
export interface DateTimePickerProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/DatePicker/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","convertSelectableDates","selectableDates","start","getTime","end","convertTimestampToDate","timestamp","Date","transformDateTimePickerProps","props","modifiers","variant","initialDate","elementColors","color","rest","initialDateTimestamp","undefined","onDateSelected","nativeEvent","date","DatePickerNativeView","DateTimePicker","transformDateRangePickerProps","initialStartDate","initialEndDate","onDateRangeSelected","DateRangePickerNativeView","DateRangePicker","nativeProps","DatePickerDialogNativeView","DatePickerDialog","onDismissRequest","DateRangePickerDialogNativeView","DateRangePickerDialog","confirmButtonLabel","dismissButtonLabel","TimePickerDialogNativeView","TimePickerDialog"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,+BAA+B,QAAQ,qBAAqB;
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/DatePicker/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","convertSelectableDates","selectableDates","start","getTime","end","convertTimestampToDate","timestamp","Date","transformDateTimePickerProps","props","modifiers","variant","initialDate","elementColors","color","rest","initialDateTimestamp","undefined","onDateSelected","nativeEvent","date","DatePickerNativeView","DateTimePicker","transformDateRangePickerProps","initialStartDate","initialEndDate","onDateRangeSelected","DateRangePickerNativeView","DateRangePicker","nativeProps","DatePickerDialogNativeView","DatePickerDialog","onDismissRequest","DateRangePickerDialogNativeView","DateRangePickerDialog","confirmButtonLabel","dismissButtonLabel","TimePickerDialogNativeView","TimePickerDialog"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,+BAA+B,QAAQ,qBAAqB;AAoNrE,SAASC,uBAAuBC,eAG/B;IACC,IAAI,CAACA,iBAAiB,OAAO;IAC7B,OAAO;QACLC,OAAOD,gBAAgBC,KAAK,GAAGD,gBAAgBC,KAAK,CAACC,OAAO,KAAK;QACjEC,KAAKH,gBAAgBG,GAAG,GAAGH,gBAAgBG,GAAG,CAACD,OAAO,KAAK;IAC7D;AACF;AAEA,SAASE,uBAAuBC,SAAwB;IACtD,OAAOA,aAAa,OAAO,OAAO,IAAIC,KAAKD;AAC7C;AAEA,SAASE,6BAA6BC,KAA0B;IAC9D,MAAM,EAAEC,SAAS,EAAEC,OAAO,EAAEC,WAAW,EAAEX,eAAe,EAAEY,aAAa,EAAEC,KAAK,EAAE,GAAGC,MAAM,GAAGN;IAE5F,8CAA8C;IAC9C,MAAMO,uBAAuBJ,cAAc,IAAIL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ACxCX,MAAMS,cAAc,GAAG,IAAIX,KAAKa;QAClC;QACAY;QACA,GAAInB,iBAAiB,OAAO;YAAEA;QAAc,IAAII,SAAS;IAC3D;IACA,qBAAO,KAACoB;QAA4B,GAAGR,WAAW;;AACpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle, ColorValue } from 'react-native';
|
|
3
|
-
import type { ModifierConfig } from '../../types';
|
|
3
|
+
import type { ModifierConfig, PopupProperties } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Props of the `DropdownMenu` component.
|
|
6
6
|
*/
|
|
@@ -37,6 +37,12 @@ export interface DropdownMenuProps {
|
|
|
37
37
|
* @platform android
|
|
38
38
|
*/
|
|
39
39
|
shadowElevation?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Properties for the popup window of the dropdown menu.
|
|
42
|
+
*
|
|
43
|
+
* @platform android
|
|
44
|
+
*/
|
|
45
|
+
properties?: PopupProperties;
|
|
40
46
|
/**
|
|
41
47
|
* Optional styles to apply to the `DropdownMenu`.
|
|
42
48
|
*/
|
|
@@ -79,3 +85,4 @@ declare namespace DropdownMenu {
|
|
|
79
85
|
}
|
|
80
86
|
export { DropdownMenu };
|
|
81
87
|
export { DropdownMenuItem } from './DropdownMenuItem';
|
|
88
|
+
export type { PopupProperties };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/DropdownMenu/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContent","createViewModifierEventListener","MenuNativeView","SlotNativeView","Items","props","slotName","children","tag","Trigger","Preview","DropdownMenu","modifiers","restProps","style","undefined","DropdownMenuItem"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,gBAAgB,QAAQ,gCAAgC;AAEjE,SAASC,+BAA+B,QAAQ,qBAAqB;AAErE,MAAMC,iBAAuDH,kBAC3D,UACA;AAGF,2DAA2D;AAC3D,MAAMI,iBAGDJ,kBAAkB,UAAU;
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/DropdownMenu/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContent","createViewModifierEventListener","MenuNativeView","SlotNativeView","Items","props","slotName","children","tag","Trigger","Preview","DropdownMenu","modifiers","restProps","style","undefined","DropdownMenuItem"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,gBAAgB,QAAQ,gCAAgC;AAEjE,SAASC,+BAA+B,QAAQ,qBAAqB;AAErE,MAAMC,iBAAuDH,kBAC3D,UACA;AAGF,2DAA2D;AAC3D,MAAMI,iBAGDJ,kBAAkB,UAAU;AA0EjC;;;CAGC,GACD,OAAO,SAASK,MAAMC,KAA8B;IAClD,oGAAoG;IACpG,qBACE,KAACF;QAAeG,UAAS;kBACvB,cAAA,KAACN;sBAAkBK,MAAME,QAAQ;;;AAGvC;AACAH,MAAMI,GAAG,GAAG;AAEZ;;CAEC,GACD,OAAO,SAASC,QAAQJ,KAA8B;IACpD,qBAAO;kBAAGA,MAAME,QAAQ;;AAC1B;AACAE,QAAQD,GAAG,GAAG;AAEd;;CAEC,GACD,OAAO,SAASE,QAAQL,KAA8B;IACpD,qBAAO;AACT;AAEA,SAASM,aAAaN,KAAwB;IAC5C,MAAM,EAAEO,SAAS,EAAE,GAAGC,WAAW,GAAGR;IACpC,qBACE,KAACH;QACCY,OAAOT,MAAMS,KAAK;QAClBF,WAAWA;QACV,GAAIA,YAAYX,gCAAgCW,aAAaG,SAAS;QACtE,GAAGF,SAAS;kBACZR,MAAME,QAAQ;;AAGrB;AAEAI,aAAaF,OAAO,GAAGA;AACvBE,aAAaD,OAAO,GAAGA;AACvBC,aAAaP,KAAK,GAAGA;AAErB,SAASO,YAAY,GAAG;AACxB,SAASK,gBAAgB,QAAQ,qBAAqB"}
|
|
@@ -2,12 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { requireNativeView } from 'expo';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import { I18nManager, useColorScheme as useRNColorScheme } from 'react-native';
|
|
5
|
+
import { NativeTreeContext, useWarnIfNestedHost } from '../../NativeTreeContext';
|
|
5
6
|
import { TextInputHostProvider, useTextInputHostRef } from '../../keyboard';
|
|
6
7
|
import { useMergeRefs } from '../../utils/useMergeRefs';
|
|
7
8
|
import { getMaterialColors, HostPaletteContext } from '../colors';
|
|
8
9
|
const HostNativeView = requireNativeView('ExpoUI', 'HostView');
|
|
9
10
|
export function Host(props) {
|
|
10
|
-
const { matchContents, modifiers, onLayoutContent, layoutDirection, colorScheme, seedColor, ref, ...restProps } = props;
|
|
11
|
+
const { matchContents, modifiers, onLayoutContent, layoutDirection, colorScheme, seedColor, ref, children, ...restProps } = props;
|
|
11
12
|
const schemeString = colorScheme === 'light' || colorScheme === 'dark' ? colorScheme : undefined;
|
|
12
13
|
const systemScheme = useRNColorScheme();
|
|
13
14
|
const resolvedScheme = schemeString ?? (systemScheme === 'dark' ? 'dark' : 'light');
|
|
@@ -20,6 +21,7 @@ export function Host(props) {
|
|
|
20
21
|
]);
|
|
21
22
|
const hostRef = useTextInputHostRef();
|
|
22
23
|
const mergedRef = useMergeRefs(ref, hostRef);
|
|
24
|
+
useWarnIfNestedHost('Jetpack Compose');
|
|
23
25
|
return /*#__PURE__*/ _jsx(HostPaletteContext.Provider, {
|
|
24
26
|
value: palette,
|
|
25
27
|
children: /*#__PURE__*/ _jsx(TextInputHostProvider, {
|
|
@@ -33,7 +35,11 @@ export function Host(props) {
|
|
|
33
35
|
seedColor: seedColor,
|
|
34
36
|
onLayoutContent: onLayoutContent,
|
|
35
37
|
layoutDirection: layoutDirection ?? (I18nManager.getConstants().isRTL ? 'rightToLeft' : 'leftToRight'),
|
|
36
|
-
ref: mergedRef
|
|
38
|
+
ref: mergedRef,
|
|
39
|
+
children: /*#__PURE__*/ _jsx(NativeTreeContext.Provider, {
|
|
40
|
+
value: true,
|
|
41
|
+
children: children
|
|
42
|
+
})
|
|
37
43
|
})
|
|
38
44
|
})
|
|
39
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/Host/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","useMemo","I18nManager","useColorScheme","useRNColorScheme","TextInputHostProvider","useTextInputHostRef","useMergeRefs","getMaterialColors","HostPaletteContext","HostNativeView","Host","props","matchContents","modifiers","onLayoutContent","layoutDirection","colorScheme","seedColor","ref","restProps","schemeString","undefined","systemScheme","resolvedScheme","palette","scheme","hostRef","mergedRef","Provider","value","matchContentsVertical","vertical","matchContentsHorizontal","horizontal","getConstants","isRTL"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AACzC,SAASC,OAAO,QAAkB,QAAQ;AAC1C,SAKEC,WAAW,EACXC,kBAAkBC,gBAAgB,QAC7B,eAAe;AAEtB,SAASC,qBAAqB,EAAEC,mBAAmB,QAAQ,iBAAiB;AAC5E,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,iBAAiB,EAAEC,kBAAkB,QAAQ,YAAY;AAoElE,MAAMC,
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/Host/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","useMemo","I18nManager","useColorScheme","useRNColorScheme","NativeTreeContext","useWarnIfNestedHost","TextInputHostProvider","useTextInputHostRef","useMergeRefs","getMaterialColors","HostPaletteContext","HostNativeView","Host","props","matchContents","modifiers","onLayoutContent","layoutDirection","colorScheme","seedColor","ref","children","restProps","schemeString","undefined","systemScheme","resolvedScheme","palette","scheme","hostRef","mergedRef","Provider","value","matchContentsVertical","vertical","matchContentsHorizontal","horizontal","getConstants","isRTL"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AACzC,SAASC,OAAO,QAAkB,QAAQ;AAC1C,SAKEC,WAAW,EACXC,kBAAkBC,gBAAgB,QAC7B,eAAe;AAEtB,SAASC,iBAAiB,EAAEC,mBAAmB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-runtime";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import { requireNativeView } from 'expo';
|
|
4
|
+
import { NativeTreeContext } from '../../NativeTreeContext';
|
|
4
5
|
import { PresentedContentContext, useIsPresentedInOwnWindow } from '../../PresentedContentContext';
|
|
5
6
|
import { resolveMatchContents } from '../../utils/matchContents';
|
|
6
7
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
@@ -32,7 +33,10 @@ export function RNHostView(props) {
|
|
|
32
33
|
key: `${nativeProps.matchContentsHorizontal}-${nativeProps.matchContentsVertical}`
|
|
33
34
|
}, /*#__PURE__*/ _jsx(PresentedContentContext.Provider, {
|
|
34
35
|
value: false,
|
|
35
|
-
children:
|
|
36
|
+
children: /*#__PURE__*/ _jsx(NativeTreeContext.Provider, {
|
|
37
|
+
value: false,
|
|
38
|
+
children: props.children
|
|
39
|
+
})
|
|
36
40
|
}));
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["jetpack-compose/RNHostView/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","createViewModifierEventListener","NativeRNHostView","transformProps","props","layoutRoot","modifiers","matchContents","restProps","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","undefined","expoInternalSizeFromChildren","RNHostView","nativeProps","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,gCAAgC;AAEnG,SAASC,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,+BAA+B,QAAQ,qBAAqB;AAqCrE,MAAMC,
|
|
1
|
+
{"version":3,"sources":["jetpack-compose/RNHostView/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","NativeTreeContext","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","createViewModifierEventListener","NativeRNHostView","transformProps","props","layoutRoot","modifiers","matchContents","restProps","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","undefined","expoInternalSizeFromChildren","RNHostView","nativeProps","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAIzC,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,gCAAgC;AAEnG,SAASC,oBAAoB,QAAQ,4BAA4B;AAEjE,SAASC,+BAA+B,QAAQ,qBAAqB;AAqCrE,MAAMC,mBAAqDN,kBACzD,UACA;AAGF,SAASO,eAAeC,KAAkB,EAAEC,UAAmB;IAC7D,MAAM,EAAEC,SAAS,EAAEC,aAAa,EAAE,GAAGC,WAAW,GAAGJ;IACnD,MAAM,EAAEK,YAAYC,uBAAuB,EAAEC,UAAUC,qBAAqB,EAAE,GAC5EZ,qBAAqBO;IACvB,OAAO;QACLD;QACA,GAAIA,YAAYL,gCAAgCK,aAAaO,SAAS;QACtE,GAAGL,SAAS;QACZH;QACAK;QACAE;QACAE,8BAA8BJ,2BAA2BE;IAC3D;AACF;AAEA,OAAO,SAASG,WAAWX,KAAkB;IAC3C,iGAAiG;IACjG,gGAAgG;IAChG,gGAAgG;IAChG,2EAA2E;IAC3E,MAAMC,aAAaN;IAEnB,MAAMiB,cAAcb,eAAeC,OAAOC;IAE1C,qBACE,eAACH;QACE,GAAGc,WAAW;QACf,iDAAiD;QACjD,mEAAmE;QACnEC,KAAK,GAAGD,YAAYN,uBAAuB,CAAC,CAAC,EAAEM,YAAYJ,qBAAqB,EAAE;qBAElF,KAACd,wBAAwBoB,QAAQ;QAACC,OAAO;kBAEvC,cAAA,KAACtB,kBAAkBqB,QAAQ;YAACC,OAAO;sBAAQf,MAAMgB,QAAQ;;;AAIjE"}
|
|
@@ -92,6 +92,16 @@ export type PieChartStyle = {
|
|
|
92
92
|
* Space between slices in points.
|
|
93
93
|
*/
|
|
94
94
|
angularInset?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Corner radius of each slice in points. On a donut, half the ring's thickness gives fully rounded ends.
|
|
97
|
+
* @default 0
|
|
98
|
+
*/
|
|
99
|
+
cornerRadius?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Opacity of each slice, from 0 to 1.
|
|
102
|
+
* @default 0.8
|
|
103
|
+
*/
|
|
104
|
+
opacity?: number;
|
|
95
105
|
};
|
|
96
106
|
/**
|
|
97
107
|
* Point chart specific styling options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/Chart/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","ChartNativeView","Chart","style","data","modifiers","referenceLines","props","undefined"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,+BAA+B,QAAQ,qBAAqB;
|
|
1
|
+
{"version":3,"sources":["swift-ui/Chart/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","createViewModifierEventListener","ChartNativeView","Chart","style","data","modifiers","referenceLines","props","undefined"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,+BAA+B,QAAQ,qBAAqB;AAoNrE,MAAMC,kBAAmDF,kBAAkB,UAAU;AAErF;;;;CAIC,GACD,OAAO,SAASG,MAAM,EACpBC,KAAK,EACLC,IAAI,EACJC,SAAS,EACTC,cAAc,EACd,GAAGC,OAC2C;IAC9C,qBACE,KAACN;QACCG,MAAMA;QACNE,gBAAgBA;QAChBD,WAAWA;QACV,GAAIA,YAAYL,gCAAgCK,aAAaG,SAAS;QACtE,GAAGD,KAAK;;AAGf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { requireNativeView } from 'expo';
|
|
3
3
|
import { I18nManager } from 'react-native';
|
|
4
|
+
import { NativeTreeContext, useWarnIfNestedHost } from '../../NativeTreeContext';
|
|
4
5
|
import { TextInputHostProvider, useTextInputHostRef } from '../../keyboard';
|
|
5
6
|
import { useMergeRefs } from '../../utils/useMergeRefs';
|
|
6
7
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
@@ -8,9 +9,10 @@ const HostNativeView = requireNativeView('ExpoUI', 'HostView');
|
|
|
8
9
|
/**
|
|
9
10
|
* A hosting component for SwiftUI views.
|
|
10
11
|
*/ export function Host(props) {
|
|
11
|
-
const { matchContents, onLayoutContent, ignoreSafeArea, modifiers, layoutDirection, seedColor, ref, ...restProps } = props;
|
|
12
|
+
const { matchContents, onLayoutContent, ignoreSafeArea, modifiers, layoutDirection, seedColor, ref, children, ...restProps } = props;
|
|
12
13
|
const hostRef = useTextInputHostRef();
|
|
13
14
|
const mergedRef = useMergeRefs(ref, hostRef);
|
|
15
|
+
useWarnIfNestedHost('SwiftUI');
|
|
14
16
|
return /*#__PURE__*/ _jsx(TextInputHostProvider, {
|
|
15
17
|
hostRef: hostRef,
|
|
16
18
|
children: /*#__PURE__*/ _jsx(HostNativeView, {
|
|
@@ -23,7 +25,11 @@ const HostNativeView = requireNativeView('ExpoUI', 'HostView');
|
|
|
23
25
|
ignoreSafeArea: ignoreSafeArea,
|
|
24
26
|
seedColor: seedColor,
|
|
25
27
|
...restProps,
|
|
26
|
-
ref: mergedRef
|
|
28
|
+
ref: mergedRef,
|
|
29
|
+
children: /*#__PURE__*/ _jsx(NativeTreeContext.Provider, {
|
|
30
|
+
value: true,
|
|
31
|
+
children: children
|
|
32
|
+
})
|
|
27
33
|
})
|
|
28
34
|
});
|
|
29
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/Host/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","I18nManager","TextInputHostProvider","useTextInputHostRef","useMergeRefs","createViewModifierEventListener","HostNativeView","Host","props","matchContents","onLayoutContent","ignoreSafeArea","modifiers","layoutDirection","seedColor","ref","restProps","hostRef","mergedRef","undefined","matchContentsVertical","vertical","matchContentsHorizontal","horizontal","getConstants","isRTL"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAEzC,SAASC,WAAW,QAAyD,eAAe;AAE5F,SAASC,qBAAqB,EAAEC,mBAAmB,QAAQ,iBAAiB;AAC5E,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,+BAA+B,QAAQ,qBAAqB;AAyDrE,MAAMC,
|
|
1
|
+
{"version":3,"sources":["swift-ui/Host/index.tsx"],"sourcesContent":[null],"names":["requireNativeView","I18nManager","NativeTreeContext","useWarnIfNestedHost","TextInputHostProvider","useTextInputHostRef","useMergeRefs","createViewModifierEventListener","HostNativeView","Host","props","matchContents","onLayoutContent","ignoreSafeArea","modifiers","layoutDirection","seedColor","ref","children","restProps","hostRef","mergedRef","undefined","matchContentsVertical","vertical","matchContentsHorizontal","horizontal","getConstants","isRTL","Provider","value"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAEzC,SAASC,WAAW,QAAyD,eAAe;AAE5F,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,0BAA0B;AACjF,SAASC,qBAAqB,EAAEC,mBAAmB,QAAQ,iBAAiB;AAC5E,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,+BAA+B,QAAQ,qBAAqB;AAyDrE,MAAMC,iBAMFR,kBAAkB,UAAU;AAEhC;;CAEC,GACD,OAAO,SAASS,KAAKC,KAAgB;IACnC,MAAM,EACJC,aAAa,EACbC,eAAe,EACfC,cAAc,EACdC,SAAS,EACTC,eAAe,EACfC,SAAS,EACTC,GAAG,EACHC,QAAQ,EACR,GAAGC,WACJ,GAAGT;IACJ,MAAMU,UAAUf;IAChB,MAAMgB,YAAYf,aAAaW,KAAKG;IACpCjB,oBAAoB;IAEpB,qBACE,KAACC;QAAsBgB,SAASA;kBAC9B,cAAA,KAACZ;YACCM,WAAWA;YACV,GAAIA,YAAYP,gCAAgCO,aAAaQ,SAAS;YACvEC,uBACE,OAAOZ,kBAAkB,WAAWA,cAAca,QAAQ,GAAGb;YAE/Dc,yBACE,OAAOd,kBAAkB,WAAWA,cAAce,UAAU,GAAGf;YAEjEC,iBAAiBA;YACjBG,iBACEA,mBAAoBd,CAAAA,YAAY0B,YAAY,GAAGC,KAAK,GAAG,gBAAgB,aAAY;YAErFf,gBAAgBA;YAChBG,WAAWA;YACV,GAAGG,SAAS;YACbF,KAAKI;sBACL,cAAA,KAACnB,kBAAkB2B,QAAQ;gBAACC,KAAK;0BAAEZ;;;;AAI3C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import { requireNativeView } from 'expo';
|
|
4
|
+
import { NativeTreeContext } from '../NativeTreeContext';
|
|
4
5
|
import { PresentedContentContext, useIsPresentedInOwnWindow } from '../PresentedContentContext';
|
|
5
6
|
import { resolveMatchContents } from '../utils/matchContents';
|
|
6
7
|
const RNHostNativeView = requireNativeView('ExpoUI', 'RNHostView');
|
|
@@ -22,7 +23,10 @@ export function RNHostView({ matchContents, ...props }) {
|
|
|
22
23
|
key: `${matchContentsHorizontal}-${matchContentsVertical}`
|
|
23
24
|
}, /*#__PURE__*/ _jsx(PresentedContentContext.Provider, {
|
|
24
25
|
value: false,
|
|
25
|
-
children:
|
|
26
|
+
children: /*#__PURE__*/ _jsx(NativeTreeContext.Provider, {
|
|
27
|
+
value: false,
|
|
28
|
+
children: props.children
|
|
29
|
+
})
|
|
26
30
|
}));
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/RNHostView.tsx"],"sourcesContent":[null],"names":["requireNativeView","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","RNHostNativeView","RNHostView","matchContents","props","layoutRoot","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","expoInternalSizeFromChildren","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,6BAA6B;AAChG,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,MAAMC,
|
|
1
|
+
{"version":3,"sources":["swift-ui/RNHostView.tsx"],"sourcesContent":[null],"names":["requireNativeView","NativeTreeContext","PresentedContentContext","useIsPresentedInOwnWindow","resolveMatchContents","RNHostNativeView","RNHostView","matchContents","props","layoutRoot","horizontal","matchContentsHorizontal","vertical","matchContentsVertical","expoInternalSizeFromChildren","key","Provider","value","children"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,OAAO;AAGzC,SAASC,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,6BAA6B;AAChG,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,MAAMC,mBAA6CL,kBAAkB,UAAU;AAoB/E,OAAO,SAASM,WAAW,EAAEC,aAAa,EAAE,GAAGC,OAAwB;IACrE,6FAA6F;IAC7F,sEAAsE;IACtE,4FAA4F;IAC5F,0BAA0B;IAC1B,MAAMC,aAAaN;IACnB,MAAM,EAAEO,YAAYC,uBAAuB,EAAEC,UAAUC,qBAAqB,EAAE,GAC5ET,qBAAqBG;IAEvB,qBACE,eAACF;QACE,GAAGG,KAAK;QACTC,YAAYA;QACZE,yBAAyBA;QACzBE,uBAAuBA;QACvBC,8BAA8BH,2BAA2BE;QACzD,iDAAiD;QACjD,mEAAmE;QACnEE,KAAK,GAAGJ,wBAAwB,CAAC,EAAEE,uBAAuB;qBAE1D,KAACX,wBAAwBc,QAAQ;QAACC,OAAO;kBAEvC,cAAA,KAAChB,kBAAkBe,QAAQ;YAACC,OAAO;sBAAQT,MAAMU,QAAQ;;;AAIjE"}
|
|
@@ -87,11 +87,27 @@ export declare const interactiveDismissDisabled: (isDisabled?: boolean) => Modif
|
|
|
87
87
|
* sheets remain edge-attached and detents drive the height.
|
|
88
88
|
*/
|
|
89
89
|
export type PresentationSizingType = 'automatic' | 'fitted' | 'form' | 'page';
|
|
90
|
+
/**
|
|
91
|
+
* Options for the `presentationSizing` modifier.
|
|
92
|
+
*/
|
|
93
|
+
export type PresentationSizingOptions = {
|
|
94
|
+
/**
|
|
95
|
+
* The axes on which the sheet fits its content. An axis that is not set keeps the size from
|
|
96
|
+
* `sizing`. For example, `{ horizontal: false, vertical: true }` fits the height to the content
|
|
97
|
+
* and lets the system choose the width.
|
|
98
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/presentationsizing/fitted(horizontal:vertical:)).
|
|
99
|
+
*/
|
|
100
|
+
fitted?: {
|
|
101
|
+
horizontal?: boolean;
|
|
102
|
+
vertical?: boolean;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
90
105
|
/**
|
|
91
106
|
* Sets the sizing of a sheet presentation.
|
|
92
107
|
* @param sizing - The sizing behavior to apply.
|
|
108
|
+
* @param options - Additional sizing options.
|
|
93
109
|
* @platform ios 18.0+
|
|
94
110
|
* @platform tvos 18.0+
|
|
95
111
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/presentationsizing(_:)).
|
|
96
112
|
*/
|
|
97
|
-
export declare const presentationSizing: (sizing: PresentationSizingType) => ModifierConfig;
|
|
113
|
+
export declare const presentationSizing: (sizing: PresentationSizingType, options?: PresentationSizingOptions) => ModifierConfig;
|
|
@@ -81,11 +81,13 @@ documentation](https://developer.apple.com/documentation/swiftui/view/presentati
|
|
|
81
81
|
/**
|
|
82
82
|
* Sets the sizing of a sheet presentation.
|
|
83
83
|
* @param sizing - The sizing behavior to apply.
|
|
84
|
+
* @param options - Additional sizing options.
|
|
84
85
|
* @platform ios 18.0+
|
|
85
86
|
* @platform tvos 18.0+
|
|
86
87
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/presentationsizing(_:)).
|
|
87
|
-
*/ export const presentationSizing = (sizing)=>createModifier('presentationSizing', {
|
|
88
|
-
sizing
|
|
88
|
+
*/ export const presentationSizing = (sizing, options)=>createModifier('presentationSizing', {
|
|
89
|
+
sizing,
|
|
90
|
+
...options
|
|
89
91
|
});
|
|
90
92
|
|
|
91
93
|
//# sourceMappingURL=presentationModifiers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["swift-ui/modifiers/presentationModifiers.ts"],"sourcesContent":[null],"names":["createModifier","createModifierWithEventListener","resolveShapeStyle","presentationDetents","detents","options","params","selection","onSelectionChange","args","detent","presentationDragIndicator","visibility","presentationCornerRadius","cornerRadius","presentationBackgroundInteraction","interaction","interactionType","presentationBackground","style","interactiveDismissDisabled","isDisabled","presentationSizing","sizing"],"mappings":"AAAA,SACEA,cAAc,EACdC,+BAA+B,QAE1B,mBAAmB;AAC1B,SAASC,iBAAiB,QAAyB,eAAe;AAWlE;;;;;;;;;CASC,GACD,OAAO,MAAMC,sBAAsB,CACjCC,SACAC;IAKA,MAAMC,SAAS;QAAEF;QAASG,WAAWF,SAASE;IAAU;IAExD,MAAM,EAAEC,iBAAiB,EAAE,GAAGH,WAAW,CAAC;IAC1C,IAAIG,mBAAmB;QACrB,OAAOP,gCACL,uBACA,CAACQ;YACCD,kBAAkBC,KAAKC,MAAM;QAC/B,GACAJ;IAEJ;IAEA,OAAON,eAAe,uBAAuBM;AAC/C,EAAE;AAEF;;;;;;CAMC,GACD,OAAO,MAAMK,4BAA4B,CAACC,aACxCZ,eAAe,6BAA6B;QAAEY;IAAW,GAAG;AAE9D;;;;;;CAMC,GACD,OAAO,MAAMC,2BAA2B,CAACC,eACvCd,eAAe,4BAA4B;QAAEc;IAAa,GAAG;AAW/D;;;;;;CAMC,GACD,OAAO,MAAMC,oCAAoC,CAC/CC;IAEA,IAAI,OAAOA,gBAAgB,UAAU;QACnC,OAAOhB,eAAe,qCAAqC;YAAEiB,iBAAiBD;QAAY;IAC5F;IACA,OAAOhB,eAAe,qCAAqC;QACzDiB,iBAAiB;QACjBP,QAAQM,YAAYN,MAAM;IAC5B;AACF,EAAE;AAEF;;;;;;;;;;;CAWC,GACD,OAAO,MAAMQ,yBAAyB,CAACC,QACrCnB,eAAe,0BAA0B;QAAEmB,OAAOjB,kBAAkBiB;IAAO,GAAG;AAEhF;;;;CAIC,GACD,OAAO,MAAMC,6BAA6B,CAACC,aAAsB,IAAI,GACnErB,eAAe,8BAA8B;QAAEqB;IAAW,GAAG;
|
|
1
|
+
{"version":3,"sources":["swift-ui/modifiers/presentationModifiers.ts"],"sourcesContent":[null],"names":["createModifier","createModifierWithEventListener","resolveShapeStyle","presentationDetents","detents","options","params","selection","onSelectionChange","args","detent","presentationDragIndicator","visibility","presentationCornerRadius","cornerRadius","presentationBackgroundInteraction","interaction","interactionType","presentationBackground","style","interactiveDismissDisabled","isDisabled","presentationSizing","sizing"],"mappings":"AAAA,SACEA,cAAc,EACdC,+BAA+B,QAE1B,mBAAmB;AAC1B,SAASC,iBAAiB,QAAyB,eAAe;AAWlE;;;;;;;;;CASC,GACD,OAAO,MAAMC,sBAAsB,CACjCC,SACAC;IAKA,MAAMC,SAAS;QAAEF;QAASG,WAAWF,SAASE;IAAU;IAExD,MAAM,EAAEC,iBAAiB,EAAE,GAAGH,WAAW,CAAC;IAC1C,IAAIG,mBAAmB;QACrB,OAAOP,gCACL,uBACA,CAACQ;YACCD,kBAAkBC,KAAKC,MAAM;QAC/B,GACAJ;IAEJ;IAEA,OAAON,eAAe,uBAAuBM;AAC/C,EAAE;AAEF;;;;;;CAMC,GACD,OAAO,MAAMK,4BAA4B,CAACC,aACxCZ,eAAe,6BAA6B;QAAEY;IAAW,GAAG;AAE9D;;;;;;CAMC,GACD,OAAO,MAAMC,2BAA2B,CAACC,eACvCd,eAAe,4BAA4B;QAAEc;IAAa,GAAG;AAW/D;;;;;;CAMC,GACD,OAAO,MAAMC,oCAAoC,CAC/CC;IAEA,IAAI,OAAOA,gBAAgB,UAAU;QACnC,OAAOhB,eAAe,qCAAqC;YAAEiB,iBAAiBD;QAAY;IAC5F;IACA,OAAOhB,eAAe,qCAAqC;QACzDiB,iBAAiB;QACjBP,QAAQM,YAAYN,MAAM;IAC5B;AACF,EAAE;AAEF;;;;;;;;;;;CAWC,GACD,OAAO,MAAMQ,yBAAyB,CAACC,QACrCnB,eAAe,0BAA0B;QAAEmB,OAAOjB,kBAAkBiB;IAAO,GAAG;AAEhF;;;;CAIC,GACD,OAAO,MAAMC,6BAA6B,CAACC,aAAsB,IAAI,GACnErB,eAAe,8BAA8B;QAAEqB;IAAW,GAAG;AA2B/D;;;;;;;CAOC,GACD,OAAO,MAAMC,qBAAqB,CAChCC,QACAlB,UACGL,eAAe,sBAAsB;QAAEuB;QAAQ,GAAGlB,OAAO;IAAC,GAAG"}
|
package/build/types.d.ts
CHANGED
|
@@ -44,3 +44,30 @@ export type DialogProperties = {
|
|
|
44
44
|
*/
|
|
45
45
|
decorFitsSystemWindows?: boolean;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Properties for the popup window, matching `PopupProperties` in Compose.
|
|
49
|
+
*/
|
|
50
|
+
export type PopupProperties = {
|
|
51
|
+
/**
|
|
52
|
+
* Whether the popup is focusable. When `true`, the popup receives IME events and key presses,
|
|
53
|
+
* such as the back button.
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
focusable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the popup can be dismissed by pressing the back button. Has no effect when `focusable` is `false`.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
dismissOnBackPress?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the popup can be dismissed by clicking outside of its bounds.
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
dismissOnClickOutside?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the popup window is clipped to the screen boundaries. Set to `false` to let it extend
|
|
69
|
+
* beyond them, which positions the popup accurately.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
clippingEnabled?: boolean;
|
|
73
|
+
};
|
package/build/types.js
CHANGED
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;CAEC,
|
|
1
|
+
{"version":3,"sources":["types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;CAEC,GAmDD;;CAEC,GACD,WAuBE"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Column, Host, ModalBottomSheet } from '@expo/ui/jetpack-compose';
|
|
3
3
|
import { fillMaxHeight, padding, testID as testIDModifier } from '@expo/ui/jetpack-compose/modifiers';
|
|
4
4
|
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { useIsInsideNativeTree } from '../../NativeTreeContext';
|
|
5
6
|
import { resolveContentPadding } from './utils';
|
|
6
7
|
// M3 `ModalBottomSheet` only has partial/expanded states.
|
|
7
8
|
// Only allow the partial state when the consumer requested a partial-friendly snap point.
|
|
@@ -16,6 +17,7 @@ function shouldFillMaxHeight(snapPoints) {
|
|
|
16
17
|
return snapPoints.some((sp)=>sp === 'full' || typeof sp === 'object' && 'fraction' in sp && sp.fraction >= 1);
|
|
17
18
|
}
|
|
18
19
|
export function BottomSheet({ children, isPresented, onDismiss, showDragIndicator = true, snapPoints, testID, modifiers, shouldDismissOnBackPress = true, shouldDismissOnClickOutside = true, scrimColor, contentPadding, containerColor, contentColor }) {
|
|
20
|
+
const isInsideHost = useIsInsideNativeTree();
|
|
19
21
|
const sheetRef = useRef(null);
|
|
20
22
|
const [mount, setMount] = useState(isPresented);
|
|
21
23
|
useEffect(()=>{
|
|
@@ -49,29 +51,35 @@ export function BottomSheet({ children, isPresented, onDismiss, showDragIndicato
|
|
|
49
51
|
];
|
|
50
52
|
if (shouldFillMaxHeight(snapPoints)) contentModifiers.push(fillMaxHeight());
|
|
51
53
|
if (testID) contentModifiers.push(testIDModifier(testID));
|
|
54
|
+
const sheet = /*#__PURE__*/ _jsx(ModalBottomSheet, {
|
|
55
|
+
ref: sheetRef,
|
|
56
|
+
onDismissRequest: onDismiss,
|
|
57
|
+
showDragHandle: showDragIndicator,
|
|
58
|
+
skipPartiallyExpanded: shouldSkipPartiallyExpanded(snapPoints),
|
|
59
|
+
properties: {
|
|
60
|
+
shouldDismissOnBackPress,
|
|
61
|
+
shouldDismissOnClickOutside
|
|
62
|
+
},
|
|
63
|
+
scrimColor: scrimColor,
|
|
64
|
+
containerColor: containerColor,
|
|
65
|
+
contentColor: contentColor,
|
|
66
|
+
modifiers: modifiers,
|
|
67
|
+
children: /*#__PURE__*/ _jsx(Column, {
|
|
68
|
+
modifiers: contentModifiers,
|
|
69
|
+
children: children
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
// Already inside a `Host`, for example nested in another sheet's content: a `Host` of its own
|
|
73
|
+
// would be a `Host` directly inside Compose.
|
|
74
|
+
if (isInsideHost) {
|
|
75
|
+
return sheet;
|
|
76
|
+
}
|
|
52
77
|
return /*#__PURE__*/ _jsx(Host, {
|
|
53
78
|
style: {
|
|
54
79
|
position: 'absolute'
|
|
55
80
|
},
|
|
56
81
|
pointerEvents: "none",
|
|
57
|
-
children:
|
|
58
|
-
ref: sheetRef,
|
|
59
|
-
onDismissRequest: onDismiss,
|
|
60
|
-
showDragHandle: showDragIndicator,
|
|
61
|
-
skipPartiallyExpanded: shouldSkipPartiallyExpanded(snapPoints),
|
|
62
|
-
properties: {
|
|
63
|
-
shouldDismissOnBackPress,
|
|
64
|
-
shouldDismissOnClickOutside
|
|
65
|
-
},
|
|
66
|
-
scrimColor: scrimColor,
|
|
67
|
-
containerColor: containerColor,
|
|
68
|
-
contentColor: contentColor,
|
|
69
|
-
modifiers: modifiers,
|
|
70
|
-
children: /*#__PURE__*/ _jsx(Column, {
|
|
71
|
-
modifiers: contentModifiers,
|
|
72
|
-
children: children
|
|
73
|
-
})
|
|
74
|
-
})
|
|
82
|
+
children: sheet
|
|
75
83
|
});
|
|
76
84
|
}
|
|
77
85
|
export * from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/BottomSheet/index.android.tsx"],"sourcesContent":[null],"names":["Column","Host","ModalBottomSheet","fillMaxHeight","padding","testID","testIDModifier","useEffect","useRef","useState","resolveContentPadding","shouldSkipPartiallyExpanded","snapPoints","length","some","sp","fraction","shouldFillMaxHeight","BottomSheet","children","isPresented","onDismiss","showDragIndicator","modifiers","shouldDismissOnBackPress","shouldDismissOnClickOutside","scrimColor","contentPadding","containerColor","contentColor","sheetRef","mount","setMount","cancelled","current","hide","then","top","bottom","left","right","contentModifiers","push","
|
|
1
|
+
{"version":3,"sources":["universal/BottomSheet/index.android.tsx"],"sourcesContent":[null],"names":["Column","Host","ModalBottomSheet","fillMaxHeight","padding","testID","testIDModifier","useEffect","useRef","useState","useIsInsideNativeTree","resolveContentPadding","shouldSkipPartiallyExpanded","snapPoints","length","some","sp","fraction","shouldFillMaxHeight","BottomSheet","children","isPresented","onDismiss","showDragIndicator","modifiers","shouldDismissOnBackPress","shouldDismissOnClickOutside","scrimColor","contentPadding","containerColor","contentColor","isInsideHost","sheetRef","mount","setMount","cancelled","current","hide","then","top","bottom","left","right","contentModifiers","push","sheet","ref","onDismissRequest","showDragHandle","skipPartiallyExpanded","properties","style","position","pointerEvents"],"mappings":";AAAA,SAASA,MAAM,EAAEC,IAAI,EAAEC,gBAAgB,QAAkC,2BAA2B;AACpG,SACEC,aAAa,EACbC,OAAO,EACPC,UAAUC,cAAc,QAEnB,qCAAqC;AAC5C,SAASC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAEpD,SAASC,qBAAqB,QAAQ,0BAA0B;AAEhE,SAASC,qBAAqB,QAAQ,UAAU;AAEhD,0DAA0D;AAC1D,0FAA0F;AAC1F,SAASC,4BAA4BC,UAAmC;IACtE,IAAI,CAACA,cAAcA,WAAWC,MAAM,KAAK,GAAG,OAAO;IACnD,OAAO,CAACD,WAAWE,IAAI,CACrB,CAACC,KACCA,OAAO,UACN,OAAOA,OAAO,YAAY,cAAcA,MAAMA,GAAGC,QAA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