@ornikar/kitt-universal 33.2.2 → 33.2.3
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 +9 -0
- package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/useIsPhysicallyLandscape.d.ts +2 -0
- package/dist/definitions/CardModal/CardModalAnimation/useIsPhysicallyLandscape.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/cardModal.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +18 -3
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +18 -3
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +17 -2
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +11 -2
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +18 -3
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +12 -3
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +17 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +14 -3
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +4 -1
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +4 -1
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.22.cjs.js +4 -1
- package/dist/linaria-themes-node-22.22.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.22.cjs.web.js +4 -1
- package/dist/linaria-themes-node-22.22.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.22.es.mjs +4 -1
- package/dist/linaria-themes-node-22.22.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.22.es.web.mjs +4 -1
- package/dist/linaria-themes-node-22.22.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +4 -1
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +4 -1
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -7,7 +7,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
9
9
|
import _extends from '@babel/runtime/helpers/extends';
|
|
10
|
-
import { Platform, Animated, Easing, StyleSheet, Modal,
|
|
10
|
+
import { Platform, Animated, Easing, useWindowDimensions, StyleSheet, Modal, Linking, Pressable as Pressable$2 } from 'react-native';
|
|
11
11
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
12
12
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
13
13
|
import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
|
|
@@ -917,7 +917,10 @@ var cardModal = {
|
|
|
917
917
|
},
|
|
918
918
|
overlayPadding: {
|
|
919
919
|
horizontal: 24,
|
|
920
|
-
vertical: 80
|
|
920
|
+
vertical: 80,
|
|
921
|
+
landscape: {
|
|
922
|
+
vertical: 8
|
|
923
|
+
}
|
|
921
924
|
},
|
|
922
925
|
animation: {
|
|
923
926
|
overlay: {
|
|
@@ -4409,10 +4412,18 @@ var Overlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4409
4412
|
|
|
4410
4413
|
var styles$4 = {"overlay-enter":"CardModalAnimation-module_overlay-enter__vvWGT","overlay-enter-active":"CardModalAnimation-module_overlay-enter-active__ghEdM","overlay-exit":"CardModalAnimation-module_overlay-exit__cXy1T","overlay-exit-active":"CardModalAnimation-module_overlay-exit-active__1d5yA","content-enter":"CardModalAnimation-module_content-enter__c-Ml3","content-enter-active":"CardModalAnimation-module_content-enter-active__0vcaq","content-exit":"CardModalAnimation-module_content-exit__UBL2h","content-exit-active":"CardModalAnimation-module_content-exit-active__luile"};
|
|
4411
4414
|
|
|
4415
|
+
function useIsPhysicallyLandscape() {
|
|
4416
|
+
var _useWindowDimensions = useWindowDimensions();
|
|
4417
|
+
_useWindowDimensions.width;
|
|
4418
|
+
_useWindowDimensions.height;
|
|
4419
|
+
return false;
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4412
4422
|
var CardModalRotationContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4423
|
+
useIsPhysicallyLandscape();
|
|
4413
4424
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
4414
4425
|
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4415
|
-
paddingY:
|
|
4426
|
+
paddingY: 'kitt.cardModal.overlayPadding.vertical',
|
|
4416
4427
|
maxWidth: "kitt.cardModal.maxWidthWithPadding",
|
|
4417
4428
|
width: "100%",
|
|
4418
4429
|
maxHeight: "100%",
|