@pezeshk-book/modules 0.2.22 → 0.2.23
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,7 +55,7 @@ var DateTimePicker = function (_a) {
|
|
|
55
55
|
return "".concat(calendarHeight, "px");
|
|
56
56
|
};
|
|
57
57
|
var isDateTimeSelected = dateValue && timeValue;
|
|
58
|
-
return ((0, jsx_runtime_1.jsxs)(ui_kit_1.Div, tslib_1.__assign({ className: (0, ui_kit_1.classNames)('bg-white border border-gray-300 rounded-md shadow-sm w-fit flex-col', className) }, { children: [(0, jsx_runtime_1.jsxs)(ui_kit_1.Div, tslib_1.__assign({ className: "items-start" }, { children: [(0, jsx_runtime_1.jsx)(ui_kit_1.Div, tslib_1.__assign({ className: "overflow-hidden flex", style: { height: calendarHeight > 0 ? "".concat(calendarHeight, "px") : 'auto' } }, { children: (0, jsx_runtime_1.jsx)(time_picker_1["default"], { value: timeValue, onChange: handleTimeChange, format: timeFormat, periodLabels: periodLabels, className: "border-0 shadow-none h-full", maxHeight: getTimePickerMaxHeight(), size: size }) })), (0, jsx_runtime_1.jsx)(ui_kit_1.Div, tslib_1.__assign({ ref: calendarRef, className: "border-
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)(ui_kit_1.Div, tslib_1.__assign({ className: (0, ui_kit_1.classNames)('bg-white border border-gray-300 rounded-md shadow-sm w-fit flex-col', className) }, { children: [(0, jsx_runtime_1.jsxs)(ui_kit_1.Div, tslib_1.__assign({ className: "items-start" }, { children: [(0, jsx_runtime_1.jsx)(ui_kit_1.Div, tslib_1.__assign({ className: "overflow-hidden flex", style: { height: calendarHeight > 0 ? "".concat(calendarHeight, "px") : 'auto' } }, { children: (0, jsx_runtime_1.jsx)(time_picker_1["default"], { value: timeValue, onChange: handleTimeChange, format: timeFormat, periodLabels: periodLabels, className: "border-0 shadow-none h-full", maxHeight: getTimePickerMaxHeight(), size: size }) })), (0, jsx_runtime_1.jsx)(ui_kit_1.Div, tslib_1.__assign({ ref: calendarRef, className: "border-r border-gray-200" }, { children: (0, jsx_runtime_1.jsx)(calendar_1["default"], { selected: dateValue, onChange: handleDateChange, dateFormat: dateFormat, type: calendarType, disablePreviousDays: disablePreviousDays, disableSubsequentDays: disableSubsequentDays, holidays: holidays, variant: "simple", size: size }) }))] })), hasConfirmation && ((0, jsx_runtime_1.jsxs)(ui_kit_1.Div, tslib_1.__assign({ className: "border-t border-gray-200 p-3 gap-2" }, { children: [(0, jsx_runtime_1.jsx)(ui_kit_1.Button, tslib_1.__assign({ className: 'w-full', size: 'small', disabled: !isDateTimeSelected, onClick: isDateTimeSelected ? handleConfirm : undefined }, { children: "\u062A\u0627\u06CC\u06CC\u062F" })), (0, jsx_runtime_1.jsx)(ui_kit_1.Button, tslib_1.__assign({ className: 'w-full', variant: "outlined", color: 'danger', size: 'small', onClick: function () { return onCancel === null || onCancel === void 0 ? void 0 : onCancel(); } }, { children: "\u0627\u0646\u0635\u0631\u0627\u0641" }))] })))] })));
|
|
59
59
|
};
|
|
60
60
|
exports["default"] = DateTimePicker;
|
|
61
61
|
//# sourceMappingURL=date-time-picker.js.map
|