@ornikar/kitt-universal 4.5.0 → 4.6.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.
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts +4 -4
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts +1 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +8 -7
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +8 -7
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +8 -7
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +8 -7
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +7 -6
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -1
- package/dist/index-node-14.17.cjs.web.js +7 -6
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -4
|
@@ -1522,7 +1522,7 @@ function Checkbox({
|
|
|
1522
1522
|
onChange,
|
|
1523
1523
|
onBlur,
|
|
1524
1524
|
onFocus,
|
|
1525
|
-
|
|
1525
|
+
checked,
|
|
1526
1526
|
hitSlop = 40,
|
|
1527
1527
|
id,
|
|
1528
1528
|
children
|
|
@@ -1531,19 +1531,19 @@ function Checkbox({
|
|
|
1531
1531
|
return /*#__PURE__*/jsxRuntime.jsxs(CheckboxAndLabelPressableWrapper, {
|
|
1532
1532
|
accessibilityRole: "checkbox",
|
|
1533
1533
|
accessibilityState: {
|
|
1534
|
-
checked
|
|
1534
|
+
checked
|
|
1535
1535
|
},
|
|
1536
1536
|
hitSlop: hitSlop,
|
|
1537
1537
|
onPress: e => {
|
|
1538
1538
|
if (onFocus) onFocus(e);
|
|
1539
|
-
if (onChange) onChange(e);
|
|
1539
|
+
if (onChange) onChange(!checked, e);
|
|
1540
1540
|
if (onBlur) onBlur(e);
|
|
1541
1541
|
},
|
|
1542
1542
|
children: [/*#__PURE__*/jsxRuntime.jsx(CheckboxContainer, {
|
|
1543
|
-
$isChecked:
|
|
1543
|
+
$isChecked: checked,
|
|
1544
1544
|
$hasLabel: !!children,
|
|
1545
1545
|
testID: id,
|
|
1546
|
-
children:
|
|
1546
|
+
children: checked ? /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
1547
1547
|
align: "center",
|
|
1548
1548
|
color: theme.kitt.forms.checkbox.markColor,
|
|
1549
1549
|
size: theme.kitt.forms.checkbox.iconSize,
|
|
@@ -2257,7 +2257,7 @@ function DatePicker({
|
|
|
2257
2257
|
$isStretch: stretch,
|
|
2258
2258
|
children: /*#__PURE__*/jsxRuntime.jsx(DatePickerInputPart, { ...sharedPartProps,
|
|
2259
2259
|
partName: "year",
|
|
2260
|
-
value: currentValue
|
|
2260
|
+
value: currentValue ? currentValue.getFullYear() : undefined,
|
|
2261
2261
|
placeholder: placeholder?.year
|
|
2262
2262
|
})
|
|
2263
2263
|
})]
|
|
@@ -2361,6 +2361,7 @@ function InputEmail(props) {
|
|
|
2361
2361
|
autoCompleteType: "email",
|
|
2362
2362
|
keyboardType: "email-address",
|
|
2363
2363
|
textContentType: "emailAddress",
|
|
2364
|
+
autoCapitalize: "none",
|
|
2364
2365
|
...props
|
|
2365
2366
|
});
|
|
2366
2367
|
}
|