@contentful/field-editor-date 1.9.26-canary.1 → 2.0.0
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/cjs/DateEditor.js
CHANGED
|
@@ -12,7 +12,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
|
|
14
14
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
15
|
-
const
|
|
15
|
+
const _css = require("@emotion/css");
|
|
16
16
|
const _DatepickerInput = require("./DatepickerInput");
|
|
17
17
|
const _TimepickerInput = require("./TimepickerInput");
|
|
18
18
|
const _TimezonePickerInput = require("./TimezonePickerInput");
|
|
@@ -64,11 +64,11 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
64
64
|
return newObj;
|
|
65
65
|
}
|
|
66
66
|
const styles = {
|
|
67
|
-
root: (0,
|
|
67
|
+
root: (0, _css.css)({
|
|
68
68
|
display: 'flex',
|
|
69
69
|
alignItems: 'center'
|
|
70
70
|
}),
|
|
71
|
-
separator: (0,
|
|
71
|
+
separator: (0, _css.css)({
|
|
72
72
|
marginLeft: _f36tokens.default.spacingM
|
|
73
73
|
})
|
|
74
74
|
};
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "DatepickerInput", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
|
-
const
|
|
13
|
+
const _css = require("@emotion/css");
|
|
14
14
|
const _moment = /*#__PURE__*/ _interop_require_default(require("moment"));
|
|
15
15
|
function _interop_require_default(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : {
|
|
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
61
61
|
const YEARS_INTO_FUTURE = 100;
|
|
62
62
|
const MIN_YEAR = '1000';
|
|
63
63
|
const styles = {
|
|
64
|
-
root: (0,
|
|
64
|
+
root: (0, _css.css)({
|
|
65
65
|
maxWidth: '270px'
|
|
66
66
|
})
|
|
67
67
|
};
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "TimepickerInput", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
|
-
const
|
|
13
|
+
const _css = require("@emotion/css");
|
|
14
14
|
const _moment = /*#__PURE__*/ _interop_require_default(require("moment"));
|
|
15
15
|
function _interop_require_default(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : {
|
|
@@ -117,7 +117,7 @@ const TimepickerInput = ({ disabled, uses12hClock, time = '12:00', ampm = 'AM',
|
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
119
|
return /*#__PURE__*/ _react.default.createElement(_f36components.Flex, {
|
|
120
|
-
className: (0,
|
|
120
|
+
className: (0, _css.css)({
|
|
121
121
|
width: '145px'
|
|
122
122
|
})
|
|
123
123
|
}, /*#__PURE__*/ _react.default.createElement(_f36components.TextInput, {
|
package/dist/esm/DateEditor.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { TextLink } from '@contentful/f36-components';
|
|
3
3
|
import tokens from '@contentful/f36-tokens';
|
|
4
4
|
import { FieldConnector } from '@contentful/field-editor-shared';
|
|
5
|
-
import { css } from 'emotion';
|
|
5
|
+
import { css } from '@emotion/css';
|
|
6
6
|
import { DatepickerInput } from './DatepickerInput';
|
|
7
7
|
import { TimepickerInput } from './TimepickerInput';
|
|
8
8
|
import { TimezonepickerInput } from './TimezonePickerInput';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import { TextInput, Flex } from '@contentful/f36-components';
|
|
3
|
-
import { css } from 'emotion';
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
const validInputFormats = [
|
|
6
6
|
'hh:mm a',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-date",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"tsc": "tsc -p ./ --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@contentful/f36-components": "^
|
|
41
|
-
"@contentful/f36-tokens": "^
|
|
42
|
-
"@contentful/field-editor-shared": "^3.0.
|
|
43
|
-
"emotion": "^
|
|
40
|
+
"@contentful/f36-components": "^6.7.1",
|
|
41
|
+
"@contentful/f36-tokens": "^6.1.2",
|
|
42
|
+
"@contentful/field-editor-shared": "^3.0.0",
|
|
43
|
+
"@emotion/css": "^11.13.5",
|
|
44
44
|
"moment": "^2.20.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.7.4",
|
|
48
|
-
"@contentful/field-editor-test-utils": "^1.8.
|
|
48
|
+
"@contentful/field-editor-test-utils": "^1.8.0",
|
|
49
49
|
"@lingui/core": "5.3.0",
|
|
50
50
|
"@types/timezoned-date": "^3.0.0",
|
|
51
51
|
"timezoned-date": "^3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@lingui/core": "^5.3.0",
|
|
55
|
-
"react": ">=
|
|
55
|
+
"react": ">=18.3.1"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"registry": "https://npm.pkg.github.com/"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "edde3372ed00ed0fd6a798233284618983383869"
|
|
61
61
|
}
|