thailife-react 0.0.21 → 0.0.22
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.
package/dist/index.js
CHANGED
|
@@ -2032,7 +2032,7 @@ const isDisabled = (date, disabledPast, disabledFuture) => {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return false;
|
|
2034
2034
|
};
|
|
2035
|
-
const DatePicker = _ref => {
|
|
2035
|
+
const DatePicker = (_ref, props) => {
|
|
2036
2036
|
let {
|
|
2037
2037
|
format = 'DD/MM/YYYY',
|
|
2038
2038
|
language = 'en',
|
|
@@ -2229,7 +2229,7 @@ const DatePicker = _ref => {
|
|
|
2229
2229
|
className: "datetime-picker ".concat(className),
|
|
2230
2230
|
children: [jsxRuntimeExports.jsxs("div", {
|
|
2231
2231
|
className: "datetime-picker-input-wrapper",
|
|
2232
|
-
children: [jsxRuntimeExports.jsx("input", {
|
|
2232
|
+
children: [jsxRuntimeExports.jsx("input", _objectSpread2({
|
|
2233
2233
|
type: "text",
|
|
2234
2234
|
value: inputValue,
|
|
2235
2235
|
placeholder: placeholder || format,
|
|
@@ -2237,7 +2237,7 @@ const DatePicker = _ref => {
|
|
|
2237
2237
|
readOnly: true,
|
|
2238
2238
|
onClick: () => !disabled && setIsOpen(true),
|
|
2239
2239
|
className: "datetime-picker-input"
|
|
2240
|
-
}), jsxRuntimeExports.jsx("div", {
|
|
2240
|
+
}, props)), jsxRuntimeExports.jsx("div", {
|
|
2241
2241
|
className: "datetime-picker-icon",
|
|
2242
2242
|
children: jsxRuntimeExports.jsx(CalendarDays, {
|
|
2243
2243
|
size: "18"
|