@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.
- package/dist/definitions/Picker/Picker.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts +4 -0
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +6 -8
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +6 -8
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +6 -8
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +28 -0
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +6 -8
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +29 -0
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -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({
|