oolib 2.163.0 → 2.163.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.
|
@@ -104,7 +104,7 @@ function DateRangePicker_(props) {
|
|
|
104
104
|
react_1.default.createElement(styled_1.StyledDateRangeInputWrapper, { invert: invert, readOnly: readOnly },
|
|
105
105
|
react_1.default.createElement("div", { style: { display: "flex", flexDirection: "column" } },
|
|
106
106
|
react_1.default.createElement(Typo2_1.UI_CAPTION, null, startDateLabel),
|
|
107
|
-
react_1.default.createElement(styled_1.StyledDatePicker, { className: 'UI_BODY_SM', selected: startDate, onChange: function (date) { return handleOnChange(0, date); }, selectsStart: true, startDate: startDate, endDate: endDate, minDate: getMinDate(false), maxDate: getMaxDate(), readOnly: readOnly, disabled: disabled, dateFormat: "MM/dd/yyyy" })),
|
|
107
|
+
react_1.default.createElement(styled_1.StyledDatePicker, { locale: "es", className: 'UI_BODY_SM', selected: startDate, onChange: function (date) { return handleOnChange(0, date); }, selectsStart: true, startDate: startDate, endDate: endDate, minDate: getMinDate(false), maxDate: getMaxDate(), readOnly: readOnly, disabled: disabled, dateFormat: "MM/dd/yyyy" })),
|
|
108
108
|
react_1.default.createElement(styled_1.StyledDateRangeInputDivider, null),
|
|
109
109
|
react_1.default.createElement("div", { style: { display: "flex", flexDirection: "column" } },
|
|
110
110
|
react_1.default.createElement(Typo2_1.UI_CAPTION, null, endDateLabel),
|
|
@@ -112,7 +112,7 @@ function DateRangePicker_(props) {
|
|
|
112
112
|
react_1.default.createElement("div", { style: { border: "1px solid ".concat(__1.colors2.grey20), padding: '8px 20px', borderRadius: '5px', width: '120px', background: "".concat(__1.colors2.grey5) } },
|
|
113
113
|
react_1.default.createElement(TextInputs_1.TextInput, { value: "OnGoing", readOnly: true }))
|
|
114
114
|
:
|
|
115
|
-
react_1.default.createElement(styled_1.StyledDatePicker, { className: 'UI_BODY_SM', selected: endDate, onChange: function (date) { return handleOnChange(1, date); }, selectsEnd: true, startDate: startDate, endDate: endDate, minDate: getMinDate(true), maxDate: getMaxDate(), readOnly: readOnly, disabled: disabled || (value && value[1] === null), dateFormat: "MM/dd/yyyy" }))),
|
|
115
|
+
react_1.default.createElement(styled_1.StyledDatePicker, { locale: "es", className: 'UI_BODY_SM', selected: endDate, onChange: function (date) { return handleOnChange(1, date); }, selectsEnd: true, startDate: startDate, endDate: endDate, minDate: getMinDate(true), maxDate: getMaxDate(), readOnly: readOnly, disabled: disabled || (value && value[1] === null), dateFormat: "MM/dd/yyyy" }))),
|
|
116
116
|
!readOnly && allowPresentlyOngoing && (react_1.default.createElement("div", { style: { marginTop: '0.5rem' } },
|
|
117
117
|
react_1.default.createElement(RadioAndCheckbox_1.CheckboxInput, { option: { display: 'Presently Ongoing', value: 'Ongoing' }, value: value && value[1] === null
|
|
118
118
|
? [{ display: 'Presently Ongoing', value: 'Ongoing' }]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oolib",
|
|
3
|
-
"version": "2.163.
|
|
3
|
+
"version": "2.163.2",
|
|
4
4
|
"description": " OKE Component Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"react": "^17.0.2",
|
|
75
75
|
"react-dom": "^17.0.2",
|
|
76
76
|
"react-router-dom": "^6.28.0",
|
|
77
|
-
"styled-components": "^5.3.3"
|
|
77
|
+
"styled-components": "^5.3.3",
|
|
78
|
+
"date-fns": "^2.0.0"
|
|
78
79
|
},
|
|
79
80
|
"config": {
|
|
80
81
|
"commitizen": {
|