@ornikar/kitt-universal 9.46.2 → 9.47.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/MapMarker/MapMarker.d.ts +6 -2
- package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/useMediaQuery.d.ts +2 -0
- package/dist/definitions/utils/windowSize/useMediaQuery.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +41 -11
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +41 -11
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +41 -11
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +28 -9
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +37 -9
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +25 -7
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +6 -1
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +6 -1
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +6 -1
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +6 -1
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +6 -1
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +6 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/typings/react-native-web.d.ts +4 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useContext, createContext, cloneElement, useRef, useEffect, useState, useMemo, Children, useReducer, Fragment as Fragment$1, useCallback } from 'react';
|
|
2
|
-
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useSx, Text, Input, NativeBaseProvider, extendTheme, useBreakpointValue } from 'native-base';
|
|
3
|
-
export { useBreakpointValue, useClipboard, useSx, useToken } from 'native-base';
|
|
2
|
+
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useSx, Text, Input, NativeBaseProvider, extendTheme, useMediaQuery, useBreakpointValue } from 'native-base';
|
|
3
|
+
export { useBreakpointValue, useClipboard, useMediaQuery, useSx, useToken } from 'native-base';
|
|
4
4
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
@@ -4635,7 +4635,7 @@ ListItem.SideContainer = ListItemSideContainer;
|
|
|
4635
4635
|
|
|
4636
4636
|
var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
|
|
4637
4637
|
return /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({
|
|
4638
|
-
fill: "
|
|
4638
|
+
fill: "currentColor",
|
|
4639
4639
|
viewBox: "0 0 54 56",
|
|
4640
4640
|
width: 54,
|
|
4641
4641
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -4688,7 +4688,7 @@ var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
|
|
|
4688
4688
|
var SvgMarkerinline = function SvgMarkerinline(props) {
|
|
4689
4689
|
return /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({
|
|
4690
4690
|
viewBox: "0 0 40 39",
|
|
4691
|
-
fill: "
|
|
4691
|
+
fill: "currentColor",
|
|
4692
4692
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4693
4693
|
}, props), {}, {
|
|
4694
4694
|
children: [/*#__PURE__*/jsx(Path, {
|
|
@@ -4772,20 +4772,34 @@ function MapMarkerSimple(_ref) {
|
|
|
4772
4772
|
var _ref$width = _ref.width,
|
|
4773
4773
|
width = _ref$width === void 0 ? 40 : _ref$width,
|
|
4774
4774
|
_ref$height = _ref.height,
|
|
4775
|
-
height = _ref$height === void 0 ? 39 : _ref$height
|
|
4775
|
+
height = _ref$height === void 0 ? 39 : _ref$height,
|
|
4776
|
+
_ref$color = _ref.color,
|
|
4777
|
+
color = _ref$color === void 0 ? lateOceanColorPalette.lateOcean : _ref$color;
|
|
4778
|
+
var sx = useSx();
|
|
4779
|
+
var styles = sx({
|
|
4780
|
+
color: color
|
|
4781
|
+
});
|
|
4776
4782
|
return /*#__PURE__*/jsx(SvgMarkerinline, {
|
|
4777
4783
|
width: width,
|
|
4778
|
-
height: height
|
|
4784
|
+
height: height,
|
|
4785
|
+
color: styles.color
|
|
4779
4786
|
});
|
|
4780
4787
|
}
|
|
4781
4788
|
function MapMarkerLarge(_ref2) {
|
|
4782
4789
|
var _ref2$width = _ref2.width,
|
|
4783
4790
|
width = _ref2$width === void 0 ? 54 : _ref2$width,
|
|
4784
4791
|
_ref2$height = _ref2.height,
|
|
4785
|
-
height = _ref2$height === void 0 ? 56 : _ref2$height
|
|
4792
|
+
height = _ref2$height === void 0 ? 56 : _ref2$height,
|
|
4793
|
+
_ref2$color = _ref2.color,
|
|
4794
|
+
color = _ref2$color === void 0 ? lateOceanColorPalette.lateOcean : _ref2$color;
|
|
4795
|
+
var sx = useSx();
|
|
4796
|
+
var styles = sx({
|
|
4797
|
+
color: color
|
|
4798
|
+
});
|
|
4786
4799
|
return /*#__PURE__*/jsx(SvgMarkerLargeinline, {
|
|
4787
4800
|
width: width,
|
|
4788
|
-
height: height
|
|
4801
|
+
height: height,
|
|
4802
|
+
color: styles.color
|
|
4789
4803
|
});
|
|
4790
4804
|
}
|
|
4791
4805
|
function MapMarkerPosition(_ref3) {
|
|
@@ -7450,8 +7464,13 @@ var picker = {
|
|
|
7450
7464
|
fontFamily: typography.types.bodies.fontFamily["native"].regular
|
|
7451
7465
|
}, typography.types.bodies.configs.body.baseAndSmall), {}, {
|
|
7452
7466
|
fontSize: 16,
|
|
7453
|
-
color: typography.colors['black-light']
|
|
7467
|
+
color: typography.colors['black-light'],
|
|
7468
|
+
// Default height is hard coded in module because of iOS constraint (https://github.com/react-native-picker/picker/blob/abd5f9076baa3ef2277ea7e711fa5823683c110e/js/PickerIOS.ios.js#L156)
|
|
7469
|
+
height: 216
|
|
7454
7470
|
}),
|
|
7471
|
+
landscape: {
|
|
7472
|
+
height: 108
|
|
7473
|
+
},
|
|
7455
7474
|
selected: {
|
|
7456
7475
|
color: typography.colors.primary
|
|
7457
7476
|
}
|
|
@@ -7729,6 +7748,12 @@ function Picker(_ref) {
|
|
|
7729
7748
|
testID = _ref.testID,
|
|
7730
7749
|
onValueSelected = _ref.onValueSelected,
|
|
7731
7750
|
onClose = _ref.onClose;
|
|
7751
|
+
// Max height is based on base Modal sizes (which are not themified): padding (4*20*2) + footer (58) + header (58) + default iOS picker height (216)
|
|
7752
|
+
var _useMediaQuery = useMediaQuery({
|
|
7753
|
+
maxHeight: 492
|
|
7754
|
+
}),
|
|
7755
|
+
_useMediaQuery2 = _slicedToArray(_useMediaQuery, 1),
|
|
7756
|
+
isMatchingMaxHeight = _useMediaQuery2[0];
|
|
7732
7757
|
var _useState = useState(initialValue),
|
|
7733
7758
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7734
7759
|
value = _useState2[0],
|
|
@@ -7744,8 +7769,13 @@ function Picker(_ref) {
|
|
|
7744
7769
|
})
|
|
7745
7770
|
}), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
|
|
7746
7771
|
testID: testID,
|
|
7747
|
-
selectedValue: value
|
|
7748
|
-
|
|
7772
|
+
selectedValue: value
|
|
7773
|
+
// As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
|
|
7774
|
+
// We can't set a percentage as it will be computed based on the page height
|
|
7775
|
+
,
|
|
7776
|
+
itemStyle: _objectSpread(_objectSpread({}, theme.picker.ios["default"]), {}, {
|
|
7777
|
+
height: isMatchingMaxHeight ? theme.picker.ios.landscape.height : theme.picker.ios["default"].height
|
|
7778
|
+
}),
|
|
7749
7779
|
onValueChange: function onValueChange(itemValue) {
|
|
7750
7780
|
return setValue(itemValue);
|
|
7751
7781
|
},
|