@ornikar/kitt-universal 13.3.0 → 13.3.2

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.
@@ -7134,12 +7134,40 @@ function PageLoader() {
7134
7134
  });
7135
7135
  }
7136
7136
 
7137
+ // This item is for Android only, iOS uses its own implementation and web is not supported yet
7138
+ function PickerItem(_ref) {
7139
+ var label = _ref.label,
7140
+ value = _ref.value,
7141
+ isSelected = _ref.isSelected,
7142
+ onPress = _ref.onPress;
7143
+ return /*#__PURE__*/jsx(Pressable, {
7144
+ accessibilityRole: "button",
7145
+ accessibilityState: {
7146
+ selected: isSelected
7147
+ },
7148
+ backgroundColor: isSelected ? 'kitt.picker.android.item.selected.backgroundColor' : 'kitt.picker.android.item.default.backgroundColor',
7149
+ paddingX: "kitt.picker.android.item.horizontalPadding",
7150
+ paddingY: "kitt.picker.android.item.verticalPadding",
7151
+ onPress: function handelPress() {
7152
+ if (onPress) {
7153
+ onPress(value);
7154
+ }
7155
+ },
7156
+ children: /*#__PURE__*/jsx(Typography.Text, {
7157
+ base: "body",
7158
+ color: isSelected ? 'white' : undefined,
7159
+ children: label
7160
+ })
7161
+ });
7162
+ }
7163
+
7137
7164
  function Picker() {
7138
7165
  return /*#__PURE__*/jsx(Typography.Text, {
7139
7166
  base: "body",
7140
7167
  children: "Picker is not implemented for the web"
7141
7168
  });
7142
7169
  }
7170
+ Picker.Item = PickerItem;
7143
7171
 
7144
7172
  var SvgStripesinline = function SvgStripesinline(props) {
7145
7173
  return /*#__PURE__*/jsx("svg", _objectSpread(_objectSpread({