@ornikar/kitt-universal 13.3.1 → 13.4.0

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.
@@ -8296,6 +8296,9 @@ function Picker(_ref) {
8296
8296
  onValueSelected = _ref.onValueSelected,
8297
8297
  onClose = _ref.onClose;
8298
8298
  var sx = useSx();
8299
+ var iosTextStyle = sx({
8300
+ color: 'kitt.picker.ios.selected.color'
8301
+ });
8299
8302
 
8300
8303
  // 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)
8301
8304
  var _useMediaQuery = useMediaQuery({
@@ -8312,11 +8315,6 @@ function Picker(_ref) {
8312
8315
  // We can't set a percentage as it will be computed based on the page height
8313
8316
  height: isMatchingMaxHeight ? 'kitt.picker.ios.landscape.height' : 'kitt.picker.ios.default.height'
8314
8317
  });
8315
- var getIosTextStyle = function (isSelected) {
8316
- return sx({
8317
- color: isSelected ? 'kitt.picker.ios.selected.color' : undefined
8318
- });
8319
- };
8320
8318
  var _useState = useState(initialValue),
8321
8319
  _useState2 = _slicedToArray(_useState, 2),
8322
8320
  value = _useState2[0],
@@ -8347,7 +8345,7 @@ function Picker(_ref) {
8347
8345
 
8348
8346
  // iOS Picker doesn't support a custom Item component, we need to override its props manually for the selected one
8349
8347
  return /*#__PURE__*/cloneElement(item, {
8350
- color: getIosTextStyle(item.props.value === value).color
8348
+ color: item.props.value === value ? iosTextStyle.color : undefined
8351
8349
  });
8352
8350
  })
8353
8351
  }) : /*#__PURE__*/jsx(ScrollView$2, {