@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.
Files changed (36) hide show
  1. package/dist/definitions/MapMarker/MapMarker.d.ts +6 -2
  2. package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -1
  3. package/dist/definitions/Picker/Picker.d.ts.map +1 -1
  4. package/dist/definitions/index.d.ts +1 -0
  5. package/dist/definitions/index.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/picker.d.ts +1 -0
  7. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  8. package/dist/definitions/utils/windowSize/useMediaQuery.d.ts +2 -0
  9. package/dist/definitions/utils/windowSize/useMediaQuery.d.ts.map +1 -0
  10. package/dist/index-browser-all.es.android.js +41 -11
  11. package/dist/index-browser-all.es.android.js.map +1 -1
  12. package/dist/index-browser-all.es.ios.js +41 -11
  13. package/dist/index-browser-all.es.ios.js.map +1 -1
  14. package/dist/index-browser-all.es.js +41 -11
  15. package/dist/index-browser-all.es.js.map +1 -1
  16. package/dist/index-browser-all.es.web.js +28 -9
  17. package/dist/index-browser-all.es.web.js.map +1 -1
  18. package/dist/index-node-14.17.cjs.js +37 -9
  19. package/dist/index-node-14.17.cjs.js.map +1 -1
  20. package/dist/index-node-14.17.cjs.web.js +25 -7
  21. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  22. package/dist/linaria-themes-browser-all.es.android.js +6 -1
  23. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  24. package/dist/linaria-themes-browser-all.es.ios.js +6 -1
  25. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  26. package/dist/linaria-themes-browser-all.es.js +6 -1
  27. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  28. package/dist/linaria-themes-browser-all.es.web.js +6 -1
  29. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  30. package/dist/linaria-themes-node-14.17.cjs.js +6 -1
  31. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  32. package/dist/linaria-themes-node-14.17.cjs.web.js +6 -1
  33. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  34. package/dist/tsbuildinfo +1 -1
  35. package/package.json +3 -3
  36. 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';
@@ -4636,7 +4636,7 @@ ListItem.SideContainer = ListItemSideContainer;
4636
4636
 
4637
4637
  var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
4638
4638
  return /*#__PURE__*/jsxs("svg", _objectSpread(_objectSpread({
4639
- fill: "none",
4639
+ fill: "currentColor",
4640
4640
  viewBox: "0 0 54 56",
4641
4641
  width: 54,
4642
4642
  xmlns: "http://www.w3.org/2000/svg"
@@ -4708,7 +4708,7 @@ var SvgMarkerLargeinline = function SvgMarkerLargeinline(props) {
4708
4708
  var SvgMarkerinline = function SvgMarkerinline(props) {
4709
4709
  return /*#__PURE__*/jsxs("svg", _objectSpread(_objectSpread({
4710
4710
  viewBox: "0 0 40 39",
4711
- fill: "none",
4711
+ fill: "currentColor",
4712
4712
  xmlns: "http://www.w3.org/2000/svg"
4713
4713
  }, props), {}, {
4714
4714
  children: [/*#__PURE__*/jsx("path", {
@@ -4832,20 +4832,34 @@ function MapMarkerSimple(_ref) {
4832
4832
  var _ref$width = _ref.width,
4833
4833
  width = _ref$width === void 0 ? 40 : _ref$width,
4834
4834
  _ref$height = _ref.height,
4835
- height = _ref$height === void 0 ? 39 : _ref$height;
4835
+ height = _ref$height === void 0 ? 39 : _ref$height,
4836
+ _ref$color = _ref.color,
4837
+ color = _ref$color === void 0 ? lateOceanColorPalette.lateOcean : _ref$color;
4838
+ var sx = useSx();
4839
+ var styles = sx({
4840
+ color: color
4841
+ });
4836
4842
  return /*#__PURE__*/jsx(SvgMarkerinline, {
4837
4843
  width: width,
4838
- height: height
4844
+ height: height,
4845
+ color: styles.color
4839
4846
  });
4840
4847
  }
4841
4848
  function MapMarkerLarge(_ref2) {
4842
4849
  var _ref2$width = _ref2.width,
4843
4850
  width = _ref2$width === void 0 ? 54 : _ref2$width,
4844
4851
  _ref2$height = _ref2.height,
4845
- height = _ref2$height === void 0 ? 56 : _ref2$height;
4852
+ height = _ref2$height === void 0 ? 56 : _ref2$height,
4853
+ _ref2$color = _ref2.color,
4854
+ color = _ref2$color === void 0 ? lateOceanColorPalette.lateOcean : _ref2$color;
4855
+ var sx = useSx();
4856
+ var styles = sx({
4857
+ color: color
4858
+ });
4846
4859
  return /*#__PURE__*/jsx(SvgMarkerLargeinline, {
4847
4860
  width: width,
4848
- height: height
4861
+ height: height,
4862
+ color: styles.color
4849
4863
  });
4850
4864
  }
4851
4865
  function MapMarkerPosition(_ref3) {
@@ -7510,8 +7524,13 @@ var picker = {
7510
7524
  fontFamily: typography.types.bodies.fontFamily["native"].regular
7511
7525
  }, typography.types.bodies.configs.body.baseAndSmall), {}, {
7512
7526
  fontSize: 16,
7513
- color: typography.colors['black-light']
7527
+ color: typography.colors['black-light'],
7528
+ // 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)
7529
+ height: 216
7514
7530
  }),
7531
+ landscape: {
7532
+ height: 108
7533
+ },
7515
7534
  selected: {
7516
7535
  color: typography.colors.primary
7517
7536
  }
@@ -7789,6 +7808,12 @@ function Picker(_ref) {
7789
7808
  testID = _ref.testID,
7790
7809
  onValueSelected = _ref.onValueSelected,
7791
7810
  onClose = _ref.onClose;
7811
+ // 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)
7812
+ var _useMediaQuery = useMediaQuery({
7813
+ maxHeight: 492
7814
+ }),
7815
+ _useMediaQuery2 = _slicedToArray(_useMediaQuery, 1),
7816
+ isMatchingMaxHeight = _useMediaQuery2[0];
7792
7817
  var _useState = useState(initialValue),
7793
7818
  _useState2 = _slicedToArray(_useState, 2),
7794
7819
  value = _useState2[0],
@@ -7804,8 +7829,13 @@ function Picker(_ref) {
7804
7829
  })
7805
7830
  }), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
7806
7831
  testID: testID,
7807
- selectedValue: value,
7808
- itemStyle: theme.picker.ios["default"],
7832
+ selectedValue: value
7833
+ // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
7834
+ // We can't set a percentage as it will be computed based on the page height
7835
+ ,
7836
+ itemStyle: _objectSpread(_objectSpread({}, theme.picker.ios["default"]), {}, {
7837
+ height: isMatchingMaxHeight ? theme.picker.ios.landscape.height : theme.picker.ios["default"].height
7838
+ }),
7809
7839
  onValueChange: function onValueChange(itemValue) {
7810
7840
  return setValue(itemValue);
7811
7841
  },