@lideralia/alife-uikit 1.2.26 → 1.2.28
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.
|
@@ -87,15 +87,6 @@ var Input = (0, _react.forwardRef)(function (props, ref) {
|
|
|
87
87
|
setValue(defaultValue);
|
|
88
88
|
onHandleChange();
|
|
89
89
|
}, [defaultValue]);
|
|
90
|
-
(0, _react.useEffect)(function () {
|
|
91
|
-
if (type && type === 'date') {
|
|
92
|
-
document.getElementById(id).addEventListener('focus', function (element) {
|
|
93
|
-
if (element.target.type === 'date') {
|
|
94
|
-
element.target.showPicker();
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}, [type]);
|
|
99
90
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_styles.InputContainerStyled, {
|
|
100
91
|
borderless: borderless,
|
|
101
92
|
position: "relative",
|
|
@@ -346,7 +346,7 @@ CardPersonalData.BodyEditMode = function (_ref4) {
|
|
|
346
346
|
name: "birth_date",
|
|
347
347
|
type: "date",
|
|
348
348
|
sizeInput: "big",
|
|
349
|
-
defaultValue: birthDate === null || birthDate === void 0 ? void 0 : birthDate.readableDate,
|
|
349
|
+
defaultValue: (birthDate === null || birthDate === void 0 ? void 0 : birthDate.readableDate) || new Date().toISOString().split('T')[0],
|
|
350
350
|
iconLeft: _react.default.createElement(_IconCalendar.default, null)
|
|
351
351
|
}))), _react.default.createElement(_Layout.GridItem, {
|
|
352
352
|
gridArea: "langInput",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "Librería y documentación de componentes, basada en el Design System de Alife.",
|
|
5
5
|
"homepage": "https://github.com/lideralia/alife-frontend-components#readme",
|
|
6
6
|
"bugs": {
|