infinity-forge 6.6.8 → 6.6.9
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.
|
@@ -55,8 +55,8 @@ function InputDateRange(props) {
|
|
|
55
55
|
var _a, _b;
|
|
56
56
|
var setFieldValue = (0, formik_1.useFormikContext)().setFieldValue;
|
|
57
57
|
function clearFields() {
|
|
58
|
-
setFieldValue(props === null || props === void 0 ? void 0 : props.names[0],
|
|
59
|
-
setFieldValue(props === null || props === void 0 ? void 0 : props.names[1],
|
|
58
|
+
setFieldValue(props === null || props === void 0 ? void 0 : props.names[0], undefined);
|
|
59
|
+
setFieldValue(props === null || props === void 0 ? void 0 : props.names[1], undefined);
|
|
60
60
|
}
|
|
61
61
|
return ((0, jsx_runtime_1.jsxs)(S.InputDateRange, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'font-14-regular', children: [props.label && (0, jsx_runtime_1.jsx)("span", { className: 'label', children: props.label }), props.enableFilter && (0, jsx_runtime_1.jsx)(filter_1.Filter, __assign({}, props))] }), (0, jsx_runtime_1.jsxs)("div", { className: 'daterange-box', children: [(0, jsx_runtime_1.jsx)(input_date_picker_1.InputDatePicker, __assign({}, props, { icon: { name: ((_a = props === null || props === void 0 ? void 0 : props.icon) === null || _a === void 0 ? void 0 : _a.name) || 'IconCalendar' }, name: props.names[0], language: (props === null || props === void 0 ? void 0 : props.language) || 'pt', mode: (props === null || props === void 0 ? void 0 : props.mode) || 'date', label: '' })), (0, jsx_runtime_1.jsx)("span", { className: 'font-16-regular spacing-text', children: "at\u00E9" }), (0, jsx_runtime_1.jsx)(input_date_picker_1.InputDatePicker, __assign({}, props, { icon: { name: ((_b = props === null || props === void 0 ? void 0 : props.icon) === null || _b === void 0 ? void 0 : _b.name) || 'IconCalendar' }, name: props.names[1], language: props.language || 'pt', mode: props.mode || 'date', label: '' })), (0, jsx_runtime_1.jsx)("button", { onClick: clearFields, type: 'button', className: 'clear', children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: 'IconClose', color: 'currentColor' }) })] })] }));
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-date-range/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wCA2CC;;AA3DD,iCAAyC;AAEzC,oCAAiC;AACjC,mCAAiC;AACjC,0DAAsD;AAItD,0CAA6B;AAQ7B,SAAgB,cAAc,CAAC,KAA0B;;IAC/C,IAAA,aAAa,GAAK,IAAA,yBAAgB,GAAE,cAAvB,CAAuB;IAE5C,SAAS,WAAW;QAClB,aAAa,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAC,CAAC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-date-range/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,wCA2CC;;AA3DD,iCAAyC;AAEzC,oCAAiC;AACjC,mCAAiC;AACjC,0DAAsD;AAItD,0CAA6B;AAQ7B,SAAgB,cAAc,CAAC,KAA0B;;IAC/C,IAAA,aAAa,GAAK,IAAA,yBAAgB,GAAE,cAAvB,CAAuB;IAE5C,SAAS,WAAW;QAClB,aAAa,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;QACzC,aAAa,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;IAC3C,CAAC;IAED,OAAO,CACL,wBAAC,CAAC,CAAC,cAAc,eACf,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,KAAK,IAAI,iCAAM,SAAS,EAAC,OAAO,YAAE,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