@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
@@ -4612,7 +4612,7 @@ ListItem.SideContent = ListItemSideContent;
4612
4612
  ListItem.SideContainer = ListItemSideContainer;
4613
4613
 
4614
4614
  const SvgMarkerLargeinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4615
- fill: "none",
4615
+ fill: "currentColor",
4616
4616
  viewBox: "0 0 54 56",
4617
4617
  width: 54,
4618
4618
  xmlns: "http://www.w3.org/2000/svg",
@@ -4682,7 +4682,7 @@ const SvgMarkerLargeinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4682
4682
 
4683
4683
  const SvgMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4684
4684
  viewBox: "0 0 40 39",
4685
- fill: "none",
4685
+ fill: "currentColor",
4686
4686
  xmlns: "http://www.w3.org/2000/svg",
4687
4687
  ...props,
4688
4688
  children: [/*#__PURE__*/jsxRuntime.jsx("path", {
@@ -4801,20 +4801,32 @@ const SvgPositionMarkerinline = props => /*#__PURE__*/jsxRuntime.jsxs("svg", {
4801
4801
 
4802
4802
  function MapMarkerSimple({
4803
4803
  width = 40,
4804
- height = 39
4804
+ height = 39,
4805
+ color = lateOceanColorPalette.lateOcean
4805
4806
  }) {
4807
+ const sx = nativeBase.useSx();
4808
+ const styles = sx({
4809
+ color
4810
+ });
4806
4811
  return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerinline, {
4807
4812
  width: width,
4808
- height: height
4813
+ height: height,
4814
+ color: styles.color
4809
4815
  });
4810
4816
  }
4811
4817
  function MapMarkerLarge({
4812
4818
  width = 54,
4813
- height = 56
4819
+ height = 56,
4820
+ color = lateOceanColorPalette.lateOcean
4814
4821
  }) {
4822
+ const sx = nativeBase.useSx();
4823
+ const styles = sx({
4824
+ color
4825
+ });
4815
4826
  return /*#__PURE__*/jsxRuntime.jsx(SvgMarkerLargeinline, {
4816
4827
  width: width,
4817
- height: height
4828
+ height: height,
4829
+ color: styles.color
4818
4830
  });
4819
4831
  }
4820
4832
  function MapMarkerPosition({
@@ -7485,7 +7497,12 @@ const picker = {
7485
7497
  fontFamily: typography.types.bodies.fontFamily.native.regular,
7486
7498
  ...typography.types.bodies.configs.body.baseAndSmall,
7487
7499
  fontSize: 16,
7488
- color: typography.colors['black-light']
7500
+ color: typography.colors['black-light'],
7501
+ // 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)
7502
+ height: 216
7503
+ },
7504
+ landscape: {
7505
+ height: 108
7489
7506
  },
7490
7507
  selected: {
7491
7508
  color: typography.colors.primary
@@ -7763,6 +7780,10 @@ function Picker({
7763
7780
  onValueSelected,
7764
7781
  onClose
7765
7782
  }) {
7783
+ // 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)
7784
+ const [isMatchingMaxHeight] = nativeBase.useMediaQuery({
7785
+ maxHeight: 492
7786
+ });
7766
7787
  const [value, setValue] = React.useState(initialValue);
7767
7788
  return /*#__PURE__*/jsxRuntime.jsxs(Modal, {
7768
7789
  visible: isVisible,
@@ -7775,8 +7796,14 @@ function Picker({
7775
7796
  })
7776
7797
  }), reactNative.Platform.OS === 'ios' ? /*#__PURE__*/jsxRuntime.jsx(picker$1.Picker, {
7777
7798
  testID: testID,
7778
- selectedValue: value,
7779
- itemStyle: theme.picker.ios.default,
7799
+ selectedValue: value
7800
+ // As it is displayed in a modal, we must hard code an height to ensure that the picker doesn't bleed out of it
7801
+ // We can't set a percentage as it will be computed based on the page height
7802
+ ,
7803
+ itemStyle: {
7804
+ ...theme.picker.ios.default,
7805
+ height: isMatchingMaxHeight ? theme.picker.ios.landscape.height : theme.picker.ios.default.height
7806
+ },
7780
7807
  onValueChange: itemValue => setValue(itemValue),
7781
7808
  children: React__default.Children.map(children, child => {
7782
7809
  const item = child;
@@ -9201,6 +9228,7 @@ function withTheme(WrappedComponent) {
9201
9228
 
9202
9229
  exports.useBreakpointValue = nativeBase.useBreakpointValue;
9203
9230
  exports.useClipboard = nativeBase.useClipboard;
9231
+ exports.useMediaQuery = nativeBase.useMediaQuery;
9204
9232
  exports.useSx = nativeBase.useSx;
9205
9233
  exports.useToken = nativeBase.useToken;
9206
9234
  exports.useWindowSize = reactNative.useWindowDimensions;