@atlaskit/datetime-picker 12.5.3 → 12.6.1
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/CHANGELOG.md +16 -0
- package/dist/cjs/components/date-picker.js +1 -1
- package/dist/cjs/components/date-time-picker.js +6 -5
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/date-picker.js +1 -1
- package/dist/es2019/components/date-time-picker.js +7 -6
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/date-picker.js +1 -1
- package/dist/esm/components/date-time-picker.js +7 -6
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 12.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
9
|
+
## 12.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`6e51e0d5358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6e51e0d5358) - [ux] update border width from 2px to 1px and add 1px box-shadow when focus or error
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 12.5.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -37,7 +37,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
37
37
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
38
38
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "12.
|
|
40
|
+
var packageVersion = "12.6.1";
|
|
41
41
|
|
|
42
42
|
/* eslint-disable react/no-unused-prop-types */
|
|
43
43
|
|
|
@@ -19,6 +19,7 @@ var _dateFns = require("date-fns");
|
|
|
19
19
|
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
20
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
21
|
var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _select = require("@atlaskit/select");
|
|
23
24
|
var _colors = require("@atlaskit/theme/colors");
|
|
24
25
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -31,7 +32,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
31
32
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
33
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
33
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "12.
|
|
35
|
+
var packageVersion = "12.6.1";
|
|
35
36
|
|
|
36
37
|
/* eslint-disable react/no-unused-prop-types */
|
|
37
38
|
|
|
@@ -63,7 +64,7 @@ var noBgStyles = (0, _react2.css)({
|
|
|
63
64
|
var hoverStyles = (0, _react2.css)({
|
|
64
65
|
'&:hover': {
|
|
65
66
|
backgroundColor: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
|
|
66
|
-
borderColor: "var(--ds-border-input, ".concat(_colors.N30, ")")
|
|
67
|
+
borderColor: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? _colors.N100 : _colors.N30, ")")
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
var isInvalidHoverStyles = (0, _react2.css)({
|
|
@@ -80,7 +81,7 @@ var isDisabledStyles = (0, _react2.css)({
|
|
|
80
81
|
var baseContainerStyles = (0, _react2.css)({
|
|
81
82
|
display: 'flex',
|
|
82
83
|
backgroundColor: "var(--ds-background-input, ".concat(_colors.N20, ")"),
|
|
83
|
-
border: "2px solid ".concat("var(--ds-border-input, ".concat(_colors.N20, ")")),
|
|
84
|
+
border: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-input_ff9l1') ? "1px solid ".concat("var(--ds-border-input, ".concat(_colors.N100, ")")) : "2px solid ".concat("var(--ds-border-input, ".concat(_colors.N20, ")")),
|
|
84
85
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
85
86
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
86
87
|
'&:hover': {
|
|
@@ -99,13 +100,13 @@ var timePickerContainerStyles = (0, _react2.css)({
|
|
|
99
100
|
flexBasis: '50%',
|
|
100
101
|
flexGrow: 1
|
|
101
102
|
});
|
|
102
|
-
var ICON_PADDING = 2;
|
|
103
103
|
var iconContainerStyles = (0, _react2.css)({
|
|
104
104
|
display: 'flex',
|
|
105
105
|
paddingTop: "var(--ds-space-075, 6px)",
|
|
106
106
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
107
107
|
paddingBottom: "var(--ds-space-075, 6px)",
|
|
108
|
-
paddingLeft: "
|
|
108
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
109
|
+
// ICON_PADDING (2) * 2
|
|
109
110
|
alignItems: 'center',
|
|
110
111
|
flexBasis: 'inherit',
|
|
111
112
|
backgroundColor: 'inherit',
|
|
@@ -38,7 +38,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
39
39
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "12.
|
|
41
|
+
var packageVersion = "12.6.1";
|
|
42
42
|
|
|
43
43
|
/* eslint-disable react/no-unused-prop-types */
|
|
44
44
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -19,7 +19,7 @@ import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from
|
|
|
19
19
|
import FixedLayer from '../internal/fixed-layer';
|
|
20
20
|
import { convertTokens } from './utils';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "12.
|
|
22
|
+
const packageVersion = "12.6.1";
|
|
23
23
|
|
|
24
24
|
/* eslint-disable react/no-unused-prop-types */
|
|
25
25
|
|
|
@@ -9,15 +9,16 @@ import { format, isValid, parseISO } from 'date-fns';
|
|
|
9
9
|
import pick from 'lodash/pick';
|
|
10
10
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
11
|
import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
|
|
12
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { mergeStyles } from '@atlaskit/select';
|
|
13
|
-
import { B100, N0, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
|
|
14
|
+
import { B100, N0, N100, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
|
|
14
15
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
15
16
|
import { defaultTimes, formatDateTimeZoneIntoIso } from '../internal';
|
|
16
17
|
import DatePicker from './date-picker';
|
|
17
18
|
import TimePicker from './time-picker';
|
|
18
19
|
import { convertTokens } from './utils';
|
|
19
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
const packageVersion = "12.
|
|
21
|
+
const packageVersion = "12.6.1";
|
|
21
22
|
|
|
22
23
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
24
|
|
|
@@ -49,7 +50,7 @@ const noBgStyles = css({
|
|
|
49
50
|
const hoverStyles = css({
|
|
50
51
|
'&:hover': {
|
|
51
52
|
backgroundColor: `var(--ds-background-input-hovered, ${N30})`,
|
|
52
|
-
borderColor: `var(--ds-border-input, ${N30})`
|
|
53
|
+
borderColor: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? N100 : N30})`
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
const isInvalidHoverStyles = css({
|
|
@@ -66,7 +67,7 @@ const isDisabledStyles = css({
|
|
|
66
67
|
const baseContainerStyles = css({
|
|
67
68
|
display: 'flex',
|
|
68
69
|
backgroundColor: `var(--ds-background-input, ${N20})`,
|
|
69
|
-
border: `2px solid ${`var(--ds-border-input, ${N20})`}`,
|
|
70
|
+
border: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? `1px solid ${`var(--ds-border-input, ${N100})`}` : `2px solid ${`var(--ds-border-input, ${N20})`}`,
|
|
70
71
|
borderRadius: `${borderRadius()}px`,
|
|
71
72
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
72
73
|
'&:hover': {
|
|
@@ -85,13 +86,13 @@ const timePickerContainerStyles = css({
|
|
|
85
86
|
flexBasis: '50%',
|
|
86
87
|
flexGrow: 1
|
|
87
88
|
});
|
|
88
|
-
const ICON_PADDING = 2;
|
|
89
89
|
const iconContainerStyles = css({
|
|
90
90
|
display: 'flex',
|
|
91
91
|
paddingTop: "var(--ds-space-075, 6px)",
|
|
92
92
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
93
93
|
paddingBottom: "var(--ds-space-075, 6px)",
|
|
94
|
-
paddingLeft:
|
|
94
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
95
|
+
// ICON_PADDING (2) * 2
|
|
95
96
|
alignItems: 'center',
|
|
96
97
|
flexBasis: 'inherit',
|
|
97
98
|
backgroundColor: 'inherit',
|
|
@@ -16,7 +16,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
16
16
|
import parseTime from '../internal/parse-time';
|
|
17
17
|
import { convertTokens } from './utils';
|
|
18
18
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "12.
|
|
19
|
+
const packageVersion = "12.6.1";
|
|
20
20
|
|
|
21
21
|
/* eslint-disable react/no-unused-prop-types */
|
|
22
22
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -30,7 +30,7 @@ import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from
|
|
|
30
30
|
import FixedLayer from '../internal/fixed-layer';
|
|
31
31
|
import { convertTokens } from './utils';
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "12.
|
|
33
|
+
var packageVersion = "12.6.1";
|
|
34
34
|
|
|
35
35
|
/* eslint-disable react/no-unused-prop-types */
|
|
36
36
|
|
|
@@ -19,15 +19,16 @@ import { format, isValid, parseISO } from 'date-fns';
|
|
|
19
19
|
import pick from 'lodash/pick';
|
|
20
20
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
21
21
|
import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
|
|
22
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
22
23
|
import { mergeStyles } from '@atlaskit/select';
|
|
23
|
-
import { B100, N0, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
|
|
24
|
+
import { B100, N0, N100, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
|
|
24
25
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
25
26
|
import { defaultTimes, formatDateTimeZoneIntoIso } from '../internal';
|
|
26
27
|
import DatePicker from './date-picker';
|
|
27
28
|
import TimePicker from './time-picker';
|
|
28
29
|
import { convertTokens } from './utils';
|
|
29
30
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "12.
|
|
31
|
+
var packageVersion = "12.6.1";
|
|
31
32
|
|
|
32
33
|
/* eslint-disable react/no-unused-prop-types */
|
|
33
34
|
|
|
@@ -59,7 +60,7 @@ var noBgStyles = css({
|
|
|
59
60
|
var hoverStyles = css({
|
|
60
61
|
'&:hover': {
|
|
61
62
|
backgroundColor: "var(--ds-background-input-hovered, ".concat(N30, ")"),
|
|
62
|
-
borderColor: "var(--ds-border-input, ".concat(N30, ")")
|
|
63
|
+
borderColor: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? N100 : N30, ")")
|
|
63
64
|
}
|
|
64
65
|
});
|
|
65
66
|
var isInvalidHoverStyles = css({
|
|
@@ -76,7 +77,7 @@ var isDisabledStyles = css({
|
|
|
76
77
|
var baseContainerStyles = css({
|
|
77
78
|
display: 'flex',
|
|
78
79
|
backgroundColor: "var(--ds-background-input, ".concat(N20, ")"),
|
|
79
|
-
border: "2px solid ".concat("var(--ds-border-input, ".concat(N20, ")")),
|
|
80
|
+
border: getBooleanFF('platform.design-system-team.update-border-input_ff9l1') ? "1px solid ".concat("var(--ds-border-input, ".concat(N100, ")")) : "2px solid ".concat("var(--ds-border-input, ".concat(N20, ")")),
|
|
80
81
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
81
82
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
82
83
|
'&:hover': {
|
|
@@ -95,13 +96,13 @@ var timePickerContainerStyles = css({
|
|
|
95
96
|
flexBasis: '50%',
|
|
96
97
|
flexGrow: 1
|
|
97
98
|
});
|
|
98
|
-
var ICON_PADDING = 2;
|
|
99
99
|
var iconContainerStyles = css({
|
|
100
100
|
display: 'flex',
|
|
101
101
|
paddingTop: "var(--ds-space-075, 6px)",
|
|
102
102
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
103
103
|
paddingBottom: "var(--ds-space-075, 6px)",
|
|
104
|
-
paddingLeft: "
|
|
104
|
+
paddingLeft: "var(--ds-space-050, 4px)",
|
|
105
|
+
// ICON_PADDING (2) * 2
|
|
105
106
|
alignItems: 'center',
|
|
106
107
|
flexBasis: 'inherit',
|
|
107
108
|
backgroundColor: 'inherit',
|
|
@@ -29,7 +29,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
29
29
|
import parseTime from '../internal/parse-time';
|
|
30
30
|
import { convertTokens } from './utils';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "12.
|
|
32
|
+
var packageVersion = "12.6.1";
|
|
33
33
|
|
|
34
34
|
/* eslint-disable react/no-unused-prop-types */
|
|
35
35
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.1",
|
|
4
4
|
"description": "A date time picker allows the user to select an associated date and time.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
38
|
"@atlaskit/icon": "^21.12.0",
|
|
39
39
|
"@atlaskit/locale": "^2.5.0",
|
|
40
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
40
41
|
"@atlaskit/popper": "^5.5.0",
|
|
41
|
-
"@atlaskit/select": "^16.
|
|
42
|
+
"@atlaskit/select": "^16.4.0",
|
|
42
43
|
"@atlaskit/theme": "^12.5.0",
|
|
43
44
|
"@atlaskit/tokens": "^1.4.0",
|
|
44
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -60,11 +61,12 @@
|
|
|
60
61
|
"@atlaskit/range": "^7.1.0",
|
|
61
62
|
"@atlaskit/section-message": "^6.4.0",
|
|
62
63
|
"@atlaskit/ssr": "*",
|
|
63
|
-
"@atlaskit/textfield": "^5.
|
|
64
|
+
"@atlaskit/textfield": "^5.5.0",
|
|
64
65
|
"@atlaskit/toggle": "^12.6.0",
|
|
65
66
|
"@atlaskit/visual-regression": "*",
|
|
66
67
|
"@atlaskit/webdriver-runner": "*",
|
|
67
68
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
69
|
+
"@atlassian/feature-flags-test-utils": "*",
|
|
68
70
|
"@emotion/react": "^11.7.1",
|
|
69
71
|
"@testing-library/react": "^12.1.5",
|
|
70
72
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -87,11 +89,17 @@
|
|
|
87
89
|
"emotion"
|
|
88
90
|
],
|
|
89
91
|
"design-tokens": [
|
|
90
|
-
"color"
|
|
92
|
+
"color",
|
|
93
|
+
"spacing"
|
|
91
94
|
],
|
|
92
95
|
"deprecation": "no-deprecated-imports"
|
|
93
96
|
}
|
|
94
97
|
},
|
|
98
|
+
"platform-feature-flags": {
|
|
99
|
+
"platform.design-system-team.update-border-input_ff9l1": {
|
|
100
|
+
"type": "boolean"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
95
103
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
96
104
|
"homepage": "https://atlassian.design/components/datetime-picker/"
|
|
97
105
|
}
|