@idealyst/datepicker 1.2.14 → 1.2.15
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/package.json +3 -3
- package/src/DateInput.web.tsx +2 -2
- package/src/IconSvg.web.tsx +2 -0
- package/src/TimeInput.web.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/datepicker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "Cross-platform date and time picker components for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/datepicker#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish:npm": "npm publish"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@idealyst/theme": "^1.2.
|
|
39
|
+
"@idealyst/theme": "^1.2.15",
|
|
40
40
|
"@mdi/js": ">=7.0.0",
|
|
41
41
|
"@mdi/react": ">=1.6.0",
|
|
42
42
|
"react": ">=16.8.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@idealyst/theme": "^1.2.
|
|
72
|
+
"@idealyst/theme": "^1.2.15",
|
|
73
73
|
"@mdi/js": "^7.4.47",
|
|
74
74
|
"@mdi/react": "^1.6.1",
|
|
75
75
|
"@types/react": "^19.1.0",
|
package/src/DateInput.web.tsx
CHANGED
|
@@ -92,7 +92,7 @@ export const DateInput: React.FC<DateInputProps> = ({
|
|
|
92
92
|
{label && (
|
|
93
93
|
<span style={labelTextStyle}>{label}</span>
|
|
94
94
|
)}
|
|
95
|
-
<div ref={triggerRef}
|
|
95
|
+
<div {...containerProps} ref={triggerRef}>
|
|
96
96
|
<input
|
|
97
97
|
type="text"
|
|
98
98
|
value={inputValue}
|
|
@@ -116,7 +116,7 @@ export const DateInput: React.FC<DateInputProps> = ({
|
|
|
116
116
|
|
|
117
117
|
<PositionedPortal
|
|
118
118
|
open={open}
|
|
119
|
-
anchor={triggerRef}
|
|
119
|
+
anchor={triggerRef as React.RefObject<HTMLElement>}
|
|
120
120
|
placement="bottom-start"
|
|
121
121
|
offset={4}
|
|
122
122
|
onClickOutside={() => setOpen(false)}
|
package/src/IconSvg.web.tsx
CHANGED
package/src/TimeInput.web.tsx
CHANGED
|
@@ -117,7 +117,7 @@ export const TimeInput: React.FC<TimeInputProps> = ({
|
|
|
117
117
|
{label && (
|
|
118
118
|
<span style={labelTextStyle}>{label}</span>
|
|
119
119
|
)}
|
|
120
|
-
<div ref={triggerRef}
|
|
120
|
+
<div {...containerProps} ref={triggerRef}>
|
|
121
121
|
<input
|
|
122
122
|
type="text"
|
|
123
123
|
value={inputValue}
|
|
@@ -141,7 +141,7 @@ export const TimeInput: React.FC<TimeInputProps> = ({
|
|
|
141
141
|
|
|
142
142
|
<PositionedPortal
|
|
143
143
|
open={open}
|
|
144
|
-
anchor={triggerRef}
|
|
144
|
+
anchor={triggerRef as React.RefObject<HTMLElement>}
|
|
145
145
|
placement="bottom-start"
|
|
146
146
|
offset={4}
|
|
147
147
|
onClickOutside={() => setOpen(false)}
|