@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.
@@ -7118,12 +7118,41 @@ function PageLoader() {
7118
7118
  });
7119
7119
  }
7120
7120
 
7121
+ // This item is for Android only, iOS uses its own implementation and web is not supported yet
7122
+ function PickerItem({
7123
+ label,
7124
+ value,
7125
+ isSelected,
7126
+ onPress
7127
+ }) {
7128
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
7129
+ accessibilityRole: "button",
7130
+ accessibilityState: {
7131
+ selected: isSelected
7132
+ },
7133
+ backgroundColor: isSelected ? 'kitt.picker.android.item.selected.backgroundColor' : 'kitt.picker.android.item.default.backgroundColor',
7134
+ paddingX: "kitt.picker.android.item.horizontalPadding",
7135
+ paddingY: "kitt.picker.android.item.verticalPadding",
7136
+ onPress: () => {
7137
+ if (onPress) {
7138
+ onPress(value);
7139
+ }
7140
+ },
7141
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
7142
+ base: "body",
7143
+ color: isSelected ? 'white' : undefined,
7144
+ children: label
7145
+ })
7146
+ });
7147
+ }
7148
+
7121
7149
  function Picker() {
7122
7150
  return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
7123
7151
  base: "body",
7124
7152
  children: "Picker is not implemented for the web"
7125
7153
  });
7126
7154
  }
7155
+ Picker.Item = PickerItem;
7127
7156
 
7128
7157
  const SvgStripesinline = props => /*#__PURE__*/jsxRuntime.jsx("svg", {
7129
7158
  viewBox: "0 0 453 71",