@onehat/ui 0.2.8 → 0.2.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"ckeditor5-custom-build": "file:ckeditor5",
|
|
26
26
|
"js-cookie": "^3.0.1",
|
|
27
27
|
"native-base": "^3.4.25",
|
|
28
|
-
"react-datetime": "^3.2.0",
|
|
29
28
|
"react-hook-form": "^7.43.1"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
31
|
"react": "*",
|
|
33
32
|
"react-color": "^2.19.3",
|
|
33
|
+
"react-datetime": "^3.2.0",
|
|
34
34
|
"react-draggable": "^4.4.5",
|
|
35
35
|
"react-dom": "*",
|
|
36
36
|
"react-native": "*"
|
|
@@ -226,6 +226,7 @@ export function DateElement(props) {
|
|
|
226
226
|
pickerValue = pickerValue.toDate();
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
const DT = Datetime.default || Datetime; // this shouldn't be necessary, but I couldn't get it to work unless doing this! Something is screwey with the ES6 import of Datetime.
|
|
229
230
|
|
|
230
231
|
// Web version
|
|
231
232
|
return <Tooltip label={tooltip} placement={tooltipPlacement}>
|
|
@@ -321,7 +322,7 @@ export function DateElement(props) {
|
|
|
321
322
|
ref={pickerRef}
|
|
322
323
|
p={0}
|
|
323
324
|
>
|
|
324
|
-
<
|
|
325
|
+
<DT
|
|
325
326
|
open={true}
|
|
326
327
|
input={false}
|
|
327
328
|
closeOnClickOutside={false}
|