@pisell/date-picker 1.0.34 → 1.0.36

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Dayjs } from "dayjs";
2
3
  import "./index.less";
3
4
  interface ActionBarProps {
@@ -82,15 +82,13 @@ var ActionBar = function ActionBar(props) {
82
82
  }, startTimeProps, {
83
83
  value: value[0],
84
84
  popupClassName: "date-picker-action-bar-time-picker-popup",
85
- onChange: handleStartChange,
86
- inputReadOnly: true
85
+ onChange: handleStartChange
87
86
  })), /*#__PURE__*/React.createElement(TimePicker, _extends({
88
87
  placeholder: getText("action-bar-end.time")
89
88
  }, endTimeProps, {
90
89
  value: value[1],
91
90
  popupClassName: "date-picker-action-bar-time-picker-popup",
92
- onChange: handleEndChange,
93
- inputReadOnly: true
91
+ onChange: handleEndChange
94
92
  }))) : /*#__PURE__*/React.createElement("div", null)), /*#__PURE__*/React.createElement(Space, {
95
93
  style: _objectSpread(_objectSpread({}, spaceStyle), {}, {
96
94
  margin: 0
@@ -16,12 +16,12 @@
16
16
  }
17
17
  .MuiOutlinedInput-notchedOutline {
18
18
  legend {
19
- color: inherit !important;
20
- width: auto !important;;
21
- margin-bottom: 0.5em !important;;
22
- font-size: 1.5em !important;;
23
- line-height: 11px !important;;
24
- border: none !important;;
19
+ color: inherit;
20
+ width: auto;
21
+ margin-bottom: 0.5em;
22
+ font-size: 1.5em;
23
+ line-height: 11px;
24
+ border: none;
25
25
  }
26
26
  }
27
27
 
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
7
7
  separator: null;
8
- dateName: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Dayjs } from "dayjs";
2
3
  import "./index.less";
3
4
  interface ActionBarProps {
@@ -92,8 +92,7 @@ var ActionBar = (props) => {
92
92
  ...startTimeProps,
93
93
  value: value[0],
94
94
  popupClassName: "date-picker-action-bar-time-picker-popup",
95
- onChange: handleStartChange,
96
- inputReadOnly: true
95
+ onChange: handleStartChange
97
96
  }
98
97
  ), /* @__PURE__ */ import_react.default.createElement(
99
98
  import_antd.TimePicker,
@@ -102,8 +101,7 @@ var ActionBar = (props) => {
102
101
  ...endTimeProps,
103
102
  value: value[1],
104
103
  popupClassName: "date-picker-action-bar-time-picker-popup",
105
- onChange: handleEndChange,
106
- inputReadOnly: true
104
+ onChange: handleEndChange
107
105
  }
108
106
  )) : /* @__PURE__ */ import_react.default.createElement("div", null)),
109
107
  /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { style: { ...spaceStyle, margin: 0 } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: onCancel }, (0, import_locales.getText)("action-bar-cancel")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: onOk }, (0, import_locales.getText)("action-bar-apply")))
@@ -16,12 +16,12 @@
16
16
  }
17
17
  .MuiOutlinedInput-notchedOutline {
18
18
  legend {
19
- color: inherit !important;
20
- width: auto !important;;
21
- margin-bottom: 0.5em !important;;
22
- font-size: 1.5em !important;;
23
- line-height: 11px !important;;
24
- border: none !important;;
19
+ color: inherit;
20
+ width: auto;
21
+ margin-bottom: 0.5em;
22
+ font-size: 1.5em;
23
+ line-height: 11px;
24
+ border: none;
25
25
  }
26
26
  }
27
27
 
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
5
5
  };
6
6
  export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
7
7
  separator: null;
8
- dateName: "start" | "end";
8
+ dateName: "end" | "start";
9
9
  value: string;
10
10
  format: string;
11
11
  maxLength: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/date-picker",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "sideEffects": [
5
5
  "*.less"
6
6
  ],
@@ -26,7 +26,7 @@
26
26
  "antd": "^5.5.0",
27
27
  "react": "^18.0.0",
28
28
  "react-dom": "^18.0.0",
29
- "@pisell/utils": "1.0.6"
29
+ "@pisell/utils": "1.0.7"
30
30
  },
31
31
  "files": [
32
32
  "es",