@atlaskit/datetime-picker 13.5.2 → 13.6.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/CHANGELOG.md +1321 -1305
- package/README.md +2 -1
- package/dist/cjs/components/date-picker.js +7 -3
- package/dist/cjs/components/date-time-picker.js +5 -2
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/date-time-picker-container.js +6 -1
- package/dist/cjs/internal/fixed-layer-menu.js +4 -0
- package/dist/cjs/internal/menu.js +4 -0
- package/dist/es2019/components/date-picker.js +9 -2
- package/dist/es2019/components/date-time-picker.js +7 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/date-time-picker-container.js +6 -1
- package/dist/es2019/internal/fixed-layer-menu.js +4 -0
- package/dist/es2019/internal/menu.js +4 -0
- package/dist/esm/components/date-picker.js +9 -2
- package/dist/esm/components/date-time-picker.js +7 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/date-time-picker-container.js +6 -1
- package/dist/esm/internal/fixed-layer-menu.js +4 -0
- package/dist/esm/internal/menu.js +4 -0
- package/dist/types/components/date-picker.d.ts +3 -0
- package/dist/types/components/date-time-picker.d.ts +3 -0
- package/dist/types/internal/date-time-picker-container.d.ts +3 -0
- package/dist/types/internal/fixed-layer-menu.d.ts +3 -0
- package/dist/types/internal/menu.d.ts +3 -0
- package/dist/types/types.d.ts +0 -2
- package/dist/types-ts4.5/components/date-picker.d.ts +3 -0
- package/dist/types-ts4.5/components/date-time-picker.d.ts +3 -0
- package/dist/types-ts4.5/internal/date-time-picker-container.d.ts +3 -0
- package/dist/types-ts4.5/internal/fixed-layer-menu.d.ts +3 -0
- package/dist/types-ts4.5/internal/menu.d.ts +3 -0
- package/dist/types-ts4.5/types.d.ts +0 -2
- package/extract-react-types/date-picker-props.tsx +1 -1
- package/extract-react-types/time-picker-props.tsx +1 -1
- package/package.json +114 -116
- package/report.api.md +424 -436
package/README.md
CHANGED
|
@@ -10,4 +10,5 @@ yarn add @atlaskit/datetime-picker
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlaskit.atlassian.com/packages/core/datetime-picker).
|
|
@@ -34,9 +34,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
34
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
35
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36
36
|
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); }; }
|
|
37
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
37
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
38
|
+
* @jsxRuntime classic
|
|
39
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
38
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "13.
|
|
41
|
+
var packageVersion = "13.6.0";
|
|
40
42
|
var datePickerDefaultProps = {
|
|
41
43
|
appearance: 'default',
|
|
42
44
|
autoFocus: false,
|
|
@@ -464,7 +466,9 @@ var DatePicker = exports.DatePickerWithoutAnalytics = /*#__PURE__*/function (_Co
|
|
|
464
466
|
inputValue: actualSelectInputValue,
|
|
465
467
|
onInputChange: this.handleSelectInputChange,
|
|
466
468
|
components: selectComponents,
|
|
467
|
-
onChange: this.onSelectChange
|
|
469
|
+
onChange: this.onSelectChange
|
|
470
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
471
|
+
,
|
|
468
472
|
styles: (0, _select.mergeStyles)(selectStyles, {
|
|
469
473
|
control: function control(base) {
|
|
470
474
|
return _objectSpread(_objectSpread({}, base), disabledStyle);
|
|
@@ -29,9 +29,11 @@ var _timePicker = _interopRequireDefault(require("./time-picker"));
|
|
|
29
29
|
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); }; }
|
|
30
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
33
|
+
* @jsxRuntime classic
|
|
34
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "13.
|
|
36
|
+
var packageVersion = "13.6.0";
|
|
35
37
|
// Make DatePicker 50% the width of DateTimePicker
|
|
36
38
|
// If rendering an icon container, shrink the TimePicker
|
|
37
39
|
var datePickerContainerStyles = (0, _react2.css)({
|
|
@@ -45,6 +47,7 @@ var timePickerContainerStyles = (0, _react2.css)({
|
|
|
45
47
|
});
|
|
46
48
|
var iconContainerStyles = (0, _react2.css)({
|
|
47
49
|
display: 'flex',
|
|
50
|
+
margin: "var(--ds-border-width, 1px)",
|
|
48
51
|
alignItems: 'center',
|
|
49
52
|
flexBasis: 'inherit',
|
|
50
53
|
backgroundColor: 'inherit',
|
|
@@ -36,7 +36,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
36
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line no-restricted-imports
|
|
37
37
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
38
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "13.
|
|
39
|
+
var packageVersion = "13.6.0";
|
|
40
40
|
var menuStyles = {
|
|
41
41
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
42
42
|
position: 'static',
|
|
@@ -8,13 +8,18 @@ exports.DateTimePickerContainer = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
*/
|
|
11
14
|
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
16
|
|
|
13
17
|
var isInvalidBorderStyles = (0, _react.css)({
|
|
14
18
|
borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")")
|
|
15
19
|
});
|
|
16
20
|
var isFocusedBorderStyles = (0, _react.css)({
|
|
17
|
-
borderColor: "var(--ds-border-focused, ".concat(_colors.B100, ")")
|
|
21
|
+
borderColor: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
22
|
+
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(_colors.B100, ")"))
|
|
18
23
|
});
|
|
19
24
|
var isFocusedStyles = (0, _react.css)({
|
|
20
25
|
backgroundColor: "var(--ds-background-input-pressed, ".concat(_colors.N0, ")")
|
|
@@ -11,7 +11,11 @@ var _react = require("@emotion/react");
|
|
|
11
11
|
var _select = require("@atlaskit/select");
|
|
12
12
|
var _fixedLayer = _interopRequireDefault(require("../internal/fixed-layer"));
|
|
13
13
|
var _excluded = ["selectProps"];
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
19
|
/**
|
|
16
20
|
* This is the fixed layer menu used in the time picker.
|
|
17
21
|
*/
|
|
@@ -14,7 +14,11 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
var _constants = require("@atlaskit/theme/constants");
|
|
16
16
|
var _fixedLayer = _interopRequireDefault(require("../internal/fixed-layer"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
22
|
|
|
19
23
|
function getValidDate(iso) {
|
|
20
24
|
var date = (0, _dateFns.parseISO)(iso);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { Component } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { jsx } from '@emotion/react';
|
|
6
11
|
import { format, isValid, lastDayOfMonth, parseISO } from 'date-fns';
|
|
7
12
|
import pick from 'lodash/pick';
|
|
@@ -16,7 +21,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
|
|
|
16
21
|
import { convertTokens } from '../internal/parse-tokens';
|
|
17
22
|
import { makeSingleValue } from '../internal/single-value';
|
|
18
23
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "13.
|
|
24
|
+
const packageVersion = "13.6.0";
|
|
20
25
|
const datePickerDefaultProps = {
|
|
21
26
|
appearance: 'default',
|
|
22
27
|
autoFocus: false,
|
|
@@ -463,7 +468,9 @@ class DatePicker extends Component {
|
|
|
463
468
|
inputValue: actualSelectInputValue,
|
|
464
469
|
onInputChange: this.handleSelectInputChange,
|
|
465
470
|
components: selectComponents,
|
|
466
|
-
onChange: this.onSelectChange
|
|
471
|
+
onChange: this.onSelectChange
|
|
472
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
473
|
+
,
|
|
467
474
|
styles: mergeStyles(selectStyles, {
|
|
468
475
|
control: base => ({
|
|
469
476
|
...base,
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import React from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
10
|
import { css, jsx } from '@emotion/react';
|
|
6
11
|
import { format, isValid, parseISO } from 'date-fns';
|
|
7
12
|
import pick from 'lodash/pick';
|
|
@@ -15,7 +20,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
15
20
|
import DatePicker from './date-picker';
|
|
16
21
|
import TimePicker from './time-picker';
|
|
17
22
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "13.
|
|
23
|
+
const packageVersion = "13.6.0";
|
|
19
24
|
// Make DatePicker 50% the width of DateTimePicker
|
|
20
25
|
// If rendering an icon container, shrink the TimePicker
|
|
21
26
|
const datePickerContainerStyles = css({
|
|
@@ -29,6 +34,7 @@ const timePickerContainerStyles = css({
|
|
|
29
34
|
});
|
|
30
35
|
const iconContainerStyles = css({
|
|
31
36
|
display: 'flex',
|
|
37
|
+
margin: "var(--ds-border-width, 1px)",
|
|
32
38
|
alignItems: 'center',
|
|
33
39
|
flexBasis: 'inherit',
|
|
34
40
|
backgroundColor: 'inherit',
|
|
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
|
|
|
16
16
|
import { convertTokens } from '../internal/parse-tokens';
|
|
17
17
|
import { makeSingleValue } from '../internal/single-value';
|
|
18
18
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "13.
|
|
19
|
+
const packageVersion = "13.6.0";
|
|
20
20
|
const menuStyles = {
|
|
21
21
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
22
22
|
position: 'static',
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { B100, N0, N100, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
5
9
|
const isInvalidBorderStyles = css({
|
|
6
10
|
borderColor: `var(--ds-border-danger, ${R400})`
|
|
7
11
|
});
|
|
8
12
|
const isFocusedBorderStyles = css({
|
|
9
|
-
borderColor: `var(--ds-border-focused, ${B100})
|
|
13
|
+
borderColor: `var(--ds-border-focused, ${B100})`,
|
|
14
|
+
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${`var(--ds-border-focused, ${B100})`}`
|
|
10
15
|
});
|
|
11
16
|
const isFocusedStyles = css({
|
|
12
17
|
backgroundColor: `var(--ds-background-input-pressed, ${N0})`
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { jsx } from '@emotion/react';
|
|
4
8
|
import { components } from '@atlaskit/select';
|
|
5
9
|
import FixedLayer from '../internal/fixed-layer';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { isValid, parseISO } from 'date-fns';
|
|
5
9
|
import Calendar from '@atlaskit/calendar';
|
|
@@ -11,8 +11,13 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
import { Component } from 'react';
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
21
|
import { jsx } from '@emotion/react';
|
|
17
22
|
import { format, isValid, lastDayOfMonth, parseISO } from 'date-fns';
|
|
18
23
|
import pick from 'lodash/pick';
|
|
@@ -27,7 +32,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
|
|
|
27
32
|
import { convertTokens } from '../internal/parse-tokens';
|
|
28
33
|
import { makeSingleValue } from '../internal/single-value';
|
|
29
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "13.
|
|
35
|
+
var packageVersion = "13.6.0";
|
|
31
36
|
var datePickerDefaultProps = {
|
|
32
37
|
appearance: 'default',
|
|
33
38
|
autoFocus: false,
|
|
@@ -455,7 +460,9 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
455
460
|
inputValue: actualSelectInputValue,
|
|
456
461
|
onInputChange: this.handleSelectInputChange,
|
|
457
462
|
components: selectComponents,
|
|
458
|
-
onChange: this.onSelectChange
|
|
463
|
+
onChange: this.onSelectChange
|
|
464
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
465
|
+
,
|
|
459
466
|
styles: mergeStyles(selectStyles, {
|
|
460
467
|
control: function control(base) {
|
|
461
468
|
return _objectSpread(_objectSpread({}, base), disabledStyle);
|
|
@@ -10,8 +10,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
*/
|
|
13
16
|
/** @jsx jsx */
|
|
14
17
|
import React from 'react';
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
20
|
import { css, jsx } from '@emotion/react';
|
|
16
21
|
import { format, isValid, parseISO } from 'date-fns';
|
|
17
22
|
import pick from 'lodash/pick';
|
|
@@ -25,7 +30,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
25
30
|
import DatePicker from './date-picker';
|
|
26
31
|
import TimePicker from './time-picker';
|
|
27
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "13.
|
|
33
|
+
var packageVersion = "13.6.0";
|
|
29
34
|
// Make DatePicker 50% the width of DateTimePicker
|
|
30
35
|
// If rendering an icon container, shrink the TimePicker
|
|
31
36
|
var datePickerContainerStyles = css({
|
|
@@ -39,6 +44,7 @@ var timePickerContainerStyles = css({
|
|
|
39
44
|
});
|
|
40
45
|
var iconContainerStyles = css({
|
|
41
46
|
display: 'flex',
|
|
47
|
+
margin: "var(--ds-border-width, 1px)",
|
|
42
48
|
alignItems: 'center',
|
|
43
49
|
flexBasis: 'inherit',
|
|
44
50
|
backgroundColor: 'inherit',
|
|
@@ -28,7 +28,7 @@ import parseTime from '../internal/parse-time';
|
|
|
28
28
|
import { convertTokens } from '../internal/parse-tokens';
|
|
29
29
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
30
|
var packageName = "@atlaskit/datetime-picker";
|
|
31
|
-
var packageVersion = "13.
|
|
31
|
+
var packageVersion = "13.6.0";
|
|
32
32
|
var menuStyles = {
|
|
33
33
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
34
34
|
position: 'static',
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { B100, N0, N100, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
5
9
|
var isInvalidBorderStyles = css({
|
|
6
10
|
borderColor: "var(--ds-border-danger, ".concat(R400, ")")
|
|
7
11
|
});
|
|
8
12
|
var isFocusedBorderStyles = css({
|
|
9
|
-
borderColor: "var(--ds-border-focused, ".concat(B100, ")")
|
|
13
|
+
borderColor: "var(--ds-border-focused, ".concat(B100, ")"),
|
|
14
|
+
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(B100, ")"))
|
|
10
15
|
});
|
|
11
16
|
var isFocusedStyles = css({
|
|
12
17
|
backgroundColor: "var(--ds-background-input-pressed, ".concat(N0, ")")
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["selectProps"];
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
9
|
import { jsx } from '@emotion/react';
|
|
6
10
|
import { components } from '@atlaskit/select';
|
|
7
11
|
import FixedLayer from '../internal/fixed-layer';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { isValid, parseISO } from 'date-fns';
|
|
5
9
|
import Calendar from '@atlaskit/calendar';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,9 +6,7 @@ export type Spacing = 'compact' | 'default';
|
|
|
6
6
|
export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
|
|
7
7
|
/**
|
|
8
8
|
* Set the appearance of the picker.
|
|
9
|
-
*
|
|
10
9
|
* `subtle` will remove the borders, background, and icon.
|
|
11
|
-
*
|
|
12
10
|
* **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
|
|
13
11
|
*/
|
|
14
12
|
appearance?: Appearance;
|
|
@@ -6,9 +6,7 @@ export type Spacing = 'compact' | 'default';
|
|
|
6
6
|
export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
|
|
7
7
|
/**
|
|
8
8
|
* Set the appearance of the picker.
|
|
9
|
-
*
|
|
10
9
|
* `subtle` will remove the borders, background, and icon.
|
|
11
|
-
*
|
|
12
10
|
* **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
|
|
13
11
|
*/
|
|
14
12
|
appearance?: Appearance;
|