@atlaskit/datetime-picker 18.5.1 → 18.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 +19 -0
- package/date-picker/package.json +4 -4
- package/date-time-picker/package.json +4 -4
- package/dist/cjs/components/date-picker.js +2 -2
- package/dist/cjs/components/date-time-picker.js +2 -2
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/date-time-picker-container.js +1 -1
- package/dist/cjs/internal/fixed-layer-menu-top-layer.js +1 -1
- package/dist/cjs/internal/fixed-layer-menu.js +1 -1
- package/dist/cjs/internal/fixed-layer.js +1 -1
- package/dist/cjs/internal/indicators-container.js +1 -1
- package/dist/cjs/internal/menu-top-layer.js +1 -1
- package/dist/cjs/internal/menu.compiled.css +0 -1
- package/dist/cjs/internal/menu.js +2 -4
- package/dist/es2019/components/date-picker.js +2 -2
- package/dist/es2019/components/date-time-picker.js +2 -2
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/index.js +14 -1
- package/dist/es2019/internal/date-time-picker-container.js +1 -1
- package/dist/es2019/internal/fixed-layer-menu-top-layer.js +1 -1
- package/dist/es2019/internal/fixed-layer-menu.js +1 -1
- package/dist/es2019/internal/fixed-layer.js +1 -1
- package/dist/es2019/internal/indicators-container.js +1 -1
- package/dist/es2019/internal/menu-top-layer.js +1 -1
- package/dist/es2019/internal/menu.compiled.css +0 -1
- package/dist/es2019/internal/menu.js +2 -4
- package/dist/esm/components/date-picker.js +2 -2
- package/dist/esm/components/date-time-picker.js +2 -2
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/internal/date-time-picker-container.js +1 -1
- package/dist/esm/internal/fixed-layer-menu-top-layer.js +1 -1
- package/dist/esm/internal/fixed-layer-menu.js +1 -1
- package/dist/esm/internal/fixed-layer.js +1 -1
- package/dist/esm/internal/indicators-container.js +1 -1
- package/dist/esm/internal/menu-top-layer.js +1 -1
- package/dist/esm/internal/menu.compiled.css +0 -1
- package/dist/esm/internal/menu.js +2 -4
- package/dist/types/index.d.ts +12 -0
- package/package.json +2 -1
- package/time-picker/package.json +4 -4
- package/types/package.json +4 -4
- package/dist/cjs/entry-points/date-picker.js +0 -13
- package/dist/cjs/entry-points/date-time-picker.js +0 -13
- package/dist/cjs/entry-points/time-picker.js +0 -13
- package/dist/cjs/entry-points/types.js +0 -1
- package/dist/es2019/entry-points/date-picker.js +0 -1
- package/dist/es2019/entry-points/date-time-picker.js +0 -1
- package/dist/es2019/entry-points/time-picker.js +0 -1
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/esm/entry-points/date-picker.js +0 -1
- package/dist/esm/entry-points/date-time-picker.js +0 -1
- package/dist/esm/entry-points/time-picker.js +0 -1
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/types/entry-points/date-picker.d.ts +0 -2
- package/dist/types/entry-points/date-time-picker.d.ts +0 -1
- package/dist/types/entry-points/time-picker.d.ts +0 -1
- package/dist/types/entry-points/types.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 18.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7eb26baefd71e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7eb26baefd71e) -
|
|
8
|
+
Apply Volt Standards to @atlaspack/datetime-picker
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 18.5.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`724fabad010d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/724fabad010d6) -
|
|
19
|
+
Cleaned up new shape theme styles, making new border and radius values the default.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 18.5.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/date-picker/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker/date-picker",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/components/date-picker.js",
|
|
4
|
+
"module": "../dist/esm/components/date-picker.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/date-picker.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/components/date-picker.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker/date-time-picker",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/components/date-time-picker.js",
|
|
4
|
+
"module": "../dist/esm/components/date-time-picker.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/date-time-picker.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/components/date-time-picker.d.ts"
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -45,7 +45,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
45
45
|
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; }
|
|
46
46
|
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; }
|
|
47
47
|
var packageName = "@atlaskit/datetime-picker";
|
|
48
|
-
var packageVersion = "18.5.
|
|
48
|
+
var packageVersion = "18.5.2";
|
|
49
49
|
var styles = {
|
|
50
50
|
pickerContainerStyle: "_kqswh2mm",
|
|
51
51
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-time-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-time-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -33,7 +33,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
33
33
|
// for typing `process`
|
|
34
34
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "18.5.
|
|
36
|
+
var packageVersion = "18.5.2";
|
|
37
37
|
var analyticsAttributes = {
|
|
38
38
|
componentName: 'dateTimePicker',
|
|
39
39
|
packageName: packageName,
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
32
|
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; }
|
|
33
33
|
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; } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "18.5.
|
|
35
|
+
var packageVersion = "18.5.2";
|
|
36
36
|
var defaultTimeFormat = 'h:mma';
|
|
37
37
|
var menuStyles = {
|
|
38
38
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* menu.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* menu.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -15,7 +15,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _dateFns = require("date-fns");
|
|
16
16
|
var _calendar = _interopRequireDefault(require("@atlaskit/calendar/calendar"));
|
|
17
17
|
var _layering = require("@atlaskit/layering/layering");
|
|
18
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
var _fixedLayer = _interopRequireDefault(require("../internal/fixed-layer"));
|
|
20
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
@@ -34,7 +33,6 @@ function getValidDate(isos) {
|
|
|
34
33
|
}, {});
|
|
35
34
|
}
|
|
36
35
|
var menuStyles = null;
|
|
37
|
-
var menuStylesT26Shape = null;
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
38
|
* This is the menu used in the select of the date picker.
|
|
@@ -64,7 +62,7 @@ var Menu = exports.Menu = function Menu(_ref) {
|
|
|
64
62
|
containerRef: selectProps.calendarContainerRef,
|
|
65
63
|
content: /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, innerProps, {
|
|
66
64
|
onMouseDown: onMenuMouseDown,
|
|
67
|
-
className: (0, _runtime.ax)(["
|
|
65
|
+
className: (0, _runtime.ax)(["_2rko1mok _1reo15vq _18m915vq _1pbyowjs _bfhk1bhr _16qs130s"])
|
|
68
66
|
}), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(_calendar.default, {
|
|
69
67
|
day: day,
|
|
70
68
|
month: month,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./date-picker.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -32,7 +32,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
|
|
|
32
32
|
import { parseDate } from '../internal/parse-date';
|
|
33
33
|
import { makeSingleValue } from '../internal/single-value';
|
|
34
34
|
const packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
const packageVersion = "18.5.
|
|
35
|
+
const packageVersion = "18.5.2";
|
|
36
36
|
const styles = {
|
|
37
37
|
pickerContainerStyle: "_kqswh2mm",
|
|
38
38
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-time-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-time-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./date-time-picker.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -20,7 +20,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
20
20
|
import DatePicker from './date-picker';
|
|
21
21
|
import TimePicker from './time-picker';
|
|
22
22
|
const packageName = "@atlaskit/datetime-picker";
|
|
23
|
-
const packageVersion = "18.5.
|
|
23
|
+
const packageVersion = "18.5.2";
|
|
24
24
|
const analyticsAttributes = {
|
|
25
25
|
componentName: 'dateTimePicker',
|
|
26
26
|
packageName,
|
|
@@ -19,7 +19,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
19
19
|
import { placeholderDatetime } from '../internal/placeholder-date-time';
|
|
20
20
|
import { makeSingleValue } from '../internal/single-value';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "18.5.
|
|
22
|
+
const packageVersion = "18.5.2";
|
|
23
23
|
const defaultTimeFormat = 'h:mma';
|
|
24
24
|
const menuStyles = {
|
|
25
25
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `import DatePicker from '@atlaskit/datetime-picker/date-picker'` instead.
|
|
4
|
+
*/
|
|
1
5
|
export { default as DatePicker } from './components/date-picker';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `import TimePicker from '@atlaskit/datetime-picker/time-picker'` instead.
|
|
8
|
+
*/
|
|
2
9
|
export { default as TimePicker } from './components/time-picker';
|
|
3
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `import DateTimePicker from '@atlaskit/datetime-picker/date-time-picker'` instead.
|
|
12
|
+
*/
|
|
13
|
+
export { default as DateTimePicker } from './components/date-time-picker';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `import type { Appearance, Spacing, DatePickerBaseProps, TimePickerBaseProps, DateTimePickerBaseProps, DateTimePickerSelectProps } from '@atlaskit/datetime-picker/types'` instead.
|
|
16
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-time-picker-container.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-time-picker-container.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./date-time-picker-container.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer-menu-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer-menu-top-layer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer-menu.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer-menu.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./fixed-layer.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* indicators-container.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* indicators-container.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./indicators-container.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* menu.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* menu.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./menu.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -9,7 +9,6 @@ import { Fragment } from 'react';
|
|
|
9
9
|
import { isValid, parseISO } from 'date-fns';
|
|
10
10
|
import Calendar from '@atlaskit/calendar/calendar';
|
|
11
11
|
import { Layering } from '@atlaskit/layering/layering';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
12
|
import FixedLayer from '../internal/fixed-layer';
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -27,7 +26,6 @@ function getValidDate(isos) {
|
|
|
27
26
|
}, {});
|
|
28
27
|
}
|
|
29
28
|
const menuStyles = null;
|
|
30
|
-
const menuStylesT26Shape = null;
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* This is the menu used in the select of the date picker.
|
|
@@ -61,7 +59,7 @@ export const Menu = ({
|
|
|
61
59
|
containerRef: selectProps.calendarContainerRef,
|
|
62
60
|
content: /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
63
61
|
onMouseDown: onMenuMouseDown,
|
|
64
|
-
className: ax(["
|
|
62
|
+
className: ax(["_2rko1mok _1reo15vq _18m915vq _1pbyowjs _bfhk1bhr _16qs130s"])
|
|
65
63
|
}), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Calendar, {
|
|
66
64
|
day: day,
|
|
67
65
|
month: month,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -38,7 +38,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
|
|
|
38
38
|
import { parseDate } from '../internal/parse-date';
|
|
39
39
|
import { makeSingleValue } from '../internal/single-value';
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "18.5.
|
|
41
|
+
var packageVersion = "18.5.2";
|
|
42
42
|
var styles = {
|
|
43
43
|
pickerContainerStyle: "_kqswh2mm",
|
|
44
44
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-time-picker.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-time-picker.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -27,7 +27,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
27
27
|
import DatePicker from './date-picker';
|
|
28
28
|
import TimePicker from './time-picker';
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "18.5.
|
|
30
|
+
var packageVersion = "18.5.2";
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'dateTimePicker',
|
|
33
33
|
packageName: packageName,
|
|
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
25
25
|
import { placeholderDatetime } from '../internal/placeholder-date-time';
|
|
26
26
|
import { makeSingleValue } from '../internal/single-value';
|
|
27
27
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "18.5.
|
|
28
|
+
var packageVersion = "18.5.2";
|
|
29
29
|
var defaultTimeFormat = 'h:mma';
|
|
30
30
|
var menuStyles = {
|
|
31
31
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `import DatePicker from '@atlaskit/datetime-picker/date-picker'` instead.
|
|
4
|
+
*/
|
|
1
5
|
export { default as DatePicker } from './components/date-picker';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `import TimePicker from '@atlaskit/datetime-picker/time-picker'` instead.
|
|
8
|
+
*/
|
|
2
9
|
export { default as TimePicker } from './components/time-picker';
|
|
3
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `import DateTimePicker from '@atlaskit/datetime-picker/date-time-picker'` instead.
|
|
12
|
+
*/
|
|
13
|
+
export { default as DateTimePicker } from './components/date-time-picker';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `import type { Appearance, Spacing, DatePickerBaseProps, TimePickerBaseProps, DateTimePickerBaseProps, DateTimePickerSelectProps } from '@atlaskit/datetime-picker/types'` instead.
|
|
16
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* date-time-picker-container.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* date-time-picker-container.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./date-time-picker-container.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer-menu-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer-menu-top-layer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer-menu.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer-menu.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* fixed-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* fixed-layer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* indicators-container.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* indicators-container.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["showClearIndicator"];
|
|
4
4
|
import "./indicators-container.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* menu.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* menu.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./menu.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -9,7 +9,6 @@ import { Fragment } from 'react';
|
|
|
9
9
|
import { isValid, parseISO } from 'date-fns';
|
|
10
10
|
import Calendar from '@atlaskit/calendar/calendar';
|
|
11
11
|
import { Layering } from '@atlaskit/layering/layering';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
12
|
import FixedLayer from '../internal/fixed-layer';
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -27,7 +26,6 @@ function getValidDate(isos) {
|
|
|
27
26
|
}, {});
|
|
28
27
|
}
|
|
29
28
|
var menuStyles = null;
|
|
30
|
-
var menuStylesT26Shape = null;
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* This is the menu used in the select of the date picker.
|
|
@@ -57,7 +55,7 @@ export var Menu = function Menu(_ref) {
|
|
|
57
55
|
containerRef: selectProps.calendarContainerRef,
|
|
58
56
|
content: /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
59
57
|
onMouseDown: onMenuMouseDown,
|
|
60
|
-
className: ax(["
|
|
58
|
+
className: ax(["_2rko1mok _1reo15vq _18m915vq _1pbyowjs _bfhk1bhr _16qs130s"])
|
|
61
59
|
}), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Calendar, {
|
|
62
60
|
day: day,
|
|
63
61
|
month: month,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `import DatePicker from '@atlaskit/datetime-picker/date-picker'` instead.
|
|
3
|
+
*/
|
|
1
4
|
export { default as DatePicker } from './components/date-picker';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `import TimePicker from '@atlaskit/datetime-picker/time-picker'` instead.
|
|
7
|
+
*/
|
|
2
8
|
export { default as TimePicker } from './components/time-picker';
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `import DateTimePicker from '@atlaskit/datetime-picker/date-time-picker'` instead.
|
|
11
|
+
*/
|
|
3
12
|
export { default as DateTimePicker } from './components/date-time-picker';
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `import type { Appearance, Spacing, DatePickerBaseProps, TimePickerBaseProps, DateTimePickerBaseProps, DateTimePickerSelectProps } from '@atlaskit/datetime-picker/types'` instead.
|
|
15
|
+
*/
|
|
4
16
|
export type { Appearance, Spacing, DatePickerBaseProps as DatePickerProps, TimePickerBaseProps as TimePickerProps, DateTimePickerBaseProps as DateTimePickerProps, DateTimePickerSelectProps, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.6.0",
|
|
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/"
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
74
74
|
"@atlassian/ssr-tests": "workspace:^",
|
|
75
75
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
76
|
+
"@atlassian/workbench": "workspace:*",
|
|
76
77
|
"@testing-library/react": "^16.3.0",
|
|
77
78
|
"@testing-library/user-event": "^14.4.3",
|
|
78
79
|
"@types/testing-library__jest-dom": "^5.14.5",
|
package/time-picker/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker/time-picker",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/components/time-picker.js",
|
|
4
|
+
"module": "../dist/esm/components/time-picker.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/time-picker.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/components/time-picker.d.ts"
|
|
10
10
|
}
|
package/types/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker/types",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/types.js",
|
|
4
|
+
"module": "../dist/esm/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/types.d.ts"
|
|
10
10
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "default", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _datePicker.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _datePicker = _interopRequireDefault(require("../components/date-picker"));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "default", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _dateTimePicker.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _dateTimePicker = _interopRequireDefault(require("../components/date-time-picker"));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "default", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _timePicker.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _timePicker = _interopRequireDefault(require("../components/time-picker"));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/date-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/date-time-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/time-picker';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/date-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/date-time-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/time-picker';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/date-time-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../components/time-picker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Appearance, DatePickerBaseProps, DateTimePickerBaseProps, DateTimePickerSelectProps, Spacing, TimePickerBaseProps, } from '../types';
|