@bigbinary/neeto-molecules 1.0.7 → 1.0.8
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.
|
@@ -191,6 +191,7 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
|
|
|
191
191
|
var isCustom = timePeriod.label === customDurationLabel;
|
|
192
192
|
var startDate = (_timePeriod$value = timePeriod.value) === null || _timePeriod$value === void 0 ? void 0 : _timePeriod$value.startDate;
|
|
193
193
|
var endDate = (_timePeriod$value2 = timePeriod.value) === null || _timePeriod$value2 === void 0 ? void 0 : _timePeriod$value2.endDate;
|
|
194
|
+
var requiredDateFormat = initializers.globalProps === null || initializers.globalProps === void 0 ? void 0 : (_globalProps$user = initializers.globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.dateFormat;
|
|
194
195
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
195
196
|
className: "flex pr-2",
|
|
196
197
|
"data-testid": "date-range-filter"
|
|
@@ -210,11 +211,11 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
|
|
|
210
211
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.DatePicker, {
|
|
211
212
|
autoFocus: true,
|
|
212
213
|
className: "ml-3 w-full",
|
|
213
|
-
dateFormat:
|
|
214
|
+
dateFormat: requiredDateFormat,
|
|
214
215
|
picker: "date",
|
|
215
216
|
type: "range",
|
|
216
217
|
defaultValue: [startDate ? dayjs__default["default"](startDate) : null, endDate ? dayjs__default["default"](endDate) : null],
|
|
217
|
-
onChange: function onChange(
|
|
218
|
+
onChange: function onChange(_ref2) {
|
|
218
219
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
219
220
|
startDate = _ref3[0],
|
|
220
221
|
endDate = _ref3[1];
|
package/dist/DateRangeFilter.js
CHANGED
|
@@ -184,6 +184,7 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
|
|
|
184
184
|
var isCustom = timePeriod.label === customDurationLabel;
|
|
185
185
|
var startDate = (_timePeriod$value = timePeriod.value) === null || _timePeriod$value === void 0 ? void 0 : _timePeriod$value.startDate;
|
|
186
186
|
var endDate = (_timePeriod$value2 = timePeriod.value) === null || _timePeriod$value2 === void 0 ? void 0 : _timePeriod$value2.endDate;
|
|
187
|
+
var requiredDateFormat = globalProps === null || globalProps === void 0 ? void 0 : (_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.dateFormat;
|
|
187
188
|
return /*#__PURE__*/React.createElement("div", {
|
|
188
189
|
className: "flex pr-2",
|
|
189
190
|
"data-testid": "date-range-filter"
|
|
@@ -203,11 +204,11 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
|
|
|
203
204
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
204
205
|
autoFocus: true,
|
|
205
206
|
className: "ml-3 w-full",
|
|
206
|
-
dateFormat:
|
|
207
|
+
dateFormat: requiredDateFormat,
|
|
207
208
|
picker: "date",
|
|
208
209
|
type: "range",
|
|
209
210
|
defaultValue: [startDate ? dayjs(startDate) : null, endDate ? dayjs(endDate) : null],
|
|
210
|
-
onChange: function onChange(
|
|
211
|
+
onChange: function onChange(_ref2) {
|
|
211
212
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
212
213
|
startDate = _ref3[0],
|
|
213
214
|
endDate = _ref3[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|