@atlaskit/datetime-picker 18.1.2 → 18.1.4

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 18.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7793dc62dd564`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7793dc62dd564) -
8
+ Internal refactor of upcoming top-layer usage
9
+ - Updated dependencies
10
+
11
+ ## 18.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 18.1.2
4
18
 
5
19
  ### Patch Changes
package/compass.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  configVersion: 1
2
2
  id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/2a66e786-e8e6-4a43-8b8d-ad3d3a1efb07
3
3
  name: '@atlaskit/datetime-picker'
4
- ownerId: ari:cloud:identity::team/be19136e-6275-419f-be0c-fcee844b8684 # Design System Engineers
4
+ ownerId: ari:cloud:teams::team/814283d6-8695-4329-b2f8-d78b2645722f # Design System Team (ADS)
5
5
  labels:
6
6
  - platform-code
7
7
  - platform-afm
@@ -27,6 +27,9 @@ customFields:
27
27
  - name: Technical Owner
28
28
  type: user
29
29
  value: ari:cloud:identity::user/557058:86a9b692-7997-49cb-9984-080801b1de91 # Jared Crowe
30
+ - name: Reviewer Team
31
+ type: text
32
+ value: ari:cloud:teams::team/be19136e-6275-419f-be0c-fcee844b8684 # Design System Engineers
30
33
  - name: Required Reviewers Opt In
31
34
  type: boolean
32
35
  value: true
@@ -36,3 +39,9 @@ customFields:
36
39
  - name: Required Reviewer Approvals
37
40
  type: number
38
41
  value: 1
42
+ - name: Trusted Committers
43
+ type: text
44
+ value: ari:cloud:teams::team/814283d6-8695-4329-b2f8-d78b2645722f # Design System Team (ADS)
45
+ - name: Trusted Reviewer Teams
46
+ type: text
47
+ value: ari:cloud:teams::team/42f4416b-e028-4daa-b2a5-afe213ac75e1 # Design System Designers
@@ -8,10 +8,13 @@ const documentation: StructuredContentSource = {
8
8
  name: 'DatePicker',
9
9
  description: 'A component for selecting date values with calendar support.',
10
10
  status: 'general-availability',
11
+ designSource: {
12
+ figmaUrl: 'https://go.atlassian.com/figma-library-ads-13285-45993',
13
+ },
11
14
  import: {
12
15
  name: 'DatePicker',
13
- package: '@atlaskit/datetime-picker',
14
- type: 'named',
16
+ package: '@atlaskit/datetime-picker/date-picker',
17
+ type: 'default',
15
18
  packagePath: path.resolve(__dirname),
16
19
  packageJson: require('./package.json'),
17
20
  },
@@ -49,8 +52,8 @@ const documentation: StructuredContentSource = {
49
52
  status: 'general-availability',
50
53
  import: {
51
54
  name: 'TimePicker',
52
- package: '@atlaskit/datetime-picker',
53
- type: 'named',
55
+ package: '@atlaskit/datetime-picker/time-picker',
56
+ type: 'default',
54
57
  packagePath: path.resolve(__dirname),
55
58
  packageJson: require('./package.json'),
56
59
  },
@@ -89,8 +92,8 @@ const documentation: StructuredContentSource = {
89
92
  status: 'general-availability',
90
93
  import: {
91
94
  name: 'DateTimePicker',
92
- package: '@atlaskit/datetime-picker',
93
- type: 'named',
95
+ package: '@atlaskit/datetime-picker/date-time-picker',
96
+ type: 'default',
94
97
  packagePath: path.resolve(__dirname),
95
98
  packageJson: require('./package.json'),
96
99
  },
@@ -44,7 +44,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
44
44
  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; }
45
45
  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; }
46
46
  var packageName = "@atlaskit/datetime-picker";
47
- var packageVersion = "18.1.1";
47
+ var packageVersion = "18.1.3";
48
48
  var styles = {
49
49
  pickerContainerStyle: "_kqswh2mm",
50
50
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -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.1.1";
36
+ var packageVersion = "18.1.3";
37
37
  var analyticsAttributes = {
38
38
  componentName: 'dateTimePicker',
39
39
  packageName: packageName,
@@ -30,7 +30,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
30
30
  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; }
31
31
  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
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "18.1.1";
33
+ var packageVersion = "18.1.3";
34
34
  var defaultTimeFormat = 'h:mma';
35
35
  var menuStyles = {
36
36
  /* Need to remove default absolute positioning as that causes issues with position fixed */
@@ -13,15 +13,12 @@ var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
15
  var _select = require("@atlaskit/select");
16
- var _animations = require("@atlaskit/top-layer/animations");
17
16
  var _placementMap = require("@atlaskit/top-layer/placement-map");
18
17
  var _popover = require("@atlaskit/top-layer/popover");
19
18
  var _popoverSurface = require("@atlaskit/top-layer/popover-surface");
20
19
  var _useAnchorPosition = require("@atlaskit/top-layer/use-anchor-position");
21
20
  var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
22
21
  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); }
23
- var animation = (0, _animations.slideAndFade)();
24
-
25
22
  /**
26
23
  * Bottom-start placement: time options menu appears below and aligned to the
27
24
  * start edge of the trigger (the select input).
@@ -94,7 +91,7 @@ var FixedLayerMenuTopLayer = exports.FixedLayerMenuTopLayer = function FixedLaye
94
91
  ,
95
92
  mode: "manual",
96
93
  placement: popupPlacement,
97
- animate: animation
94
+ animate: true
98
95
  // @ts-ignore -- testId is a custom prop passed through selectProps
99
96
  ,
100
97
  testId: selectProps.testId && "".concat(selectProps.testId, "--popup")
@@ -13,14 +13,11 @@ var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _dateFns = require("date-fns");
15
15
  var _calendar = _interopRequireDefault(require("@atlaskit/calendar"));
16
- var _animations = require("@atlaskit/top-layer/animations");
17
16
  var _placementMap = require("@atlaskit/top-layer/placement-map");
18
17
  var _popover = require("@atlaskit/top-layer/popover");
19
18
  var _popoverSurface = require("@atlaskit/top-layer/popover-surface");
20
19
  var _useAnchorPosition = require("@atlaskit/top-layer/use-anchor-position");
21
20
  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); }
22
- var animation = (0, _animations.slideAndFade)();
23
-
24
21
  /**
25
22
  * Bottom-start placement: calendar appears below and aligned to the
26
23
  * start edge of the trigger (the select input).
@@ -101,7 +98,7 @@ var MenuTopLayer = exports.MenuTopLayer = function MenuTopLayer(_ref) {
101
98
  ,
102
99
  mode: "manual",
103
100
  placement: popupPlacement,
104
- animate: animation,
101
+ animate: true,
105
102
  testId: selectProps.testId && "".concat(selectProps.testId, "--popup")
106
103
  }, /*#__PURE__*/React.createElement(_popoverSurface.PopoverSurface, null, /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, innerProps, {
107
104
  role: "presentation",
@@ -31,7 +31,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
31
31
  import { parseDate } from '../internal/parse-date';
32
32
  import { makeSingleValue } from '../internal/single-value';
33
33
  const packageName = "@atlaskit/datetime-picker";
34
- const packageVersion = "18.1.1";
34
+ const packageVersion = "18.1.3";
35
35
  const styles = {
36
36
  pickerContainerStyle: "_kqswh2mm",
37
37
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -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.1.1";
23
+ const packageVersion = "18.1.3";
24
24
  const analyticsAttributes = {
25
25
  componentName: 'dateTimePicker',
26
26
  packageName,
@@ -17,7 +17,7 @@ import { convertTokens } from '../internal/parse-tokens';
17
17
  import { placeholderDatetime } from '../internal/placeholder-date-time';
18
18
  import { makeSingleValue } from '../internal/single-value';
19
19
  const packageName = "@atlaskit/datetime-picker";
20
- const packageVersion = "18.1.1";
20
+ const packageVersion = "18.1.3";
21
21
  const defaultTimeFormat = 'h:mma';
22
22
  const menuStyles = {
23
23
  /* Need to remove default absolute positioning as that causes issues with position fixed */
@@ -4,12 +4,10 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useRef } from 'react';
6
6
  import { components } from '@atlaskit/select';
7
- import { slideAndFade } from '@atlaskit/top-layer/animations';
8
7
  import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
9
8
  import { Popover } from '@atlaskit/top-layer/popover';
10
9
  import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
11
10
  import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
12
- const animation = slideAndFade();
13
11
 
14
12
  /**
15
13
  * Bottom-start placement: time options menu appears below and aligned to the
@@ -84,7 +82,7 @@ export const FixedLayerMenuTopLayer = ({
84
82
  ,
85
83
  mode: "manual",
86
84
  placement: popupPlacement,
87
- animate: animation
85
+ animate: true
88
86
  // @ts-ignore -- testId is a custom prop passed through selectProps
89
87
  ,
90
88
  testId: selectProps.testId && `${selectProps.testId}--popup`
@@ -5,12 +5,10 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { Fragment, useRef } from 'react';
6
6
  import { isValid, parseISO } from 'date-fns';
7
7
  import Calendar from '@atlaskit/calendar';
8
- import { slideAndFade } from '@atlaskit/top-layer/animations';
9
8
  import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
10
9
  import { Popover } from '@atlaskit/top-layer/popover';
11
10
  import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
12
11
  import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
13
- const animation = slideAndFade();
14
12
 
15
13
  /**
16
14
  * Bottom-start placement: calendar appears below and aligned to the
@@ -96,7 +94,7 @@ export const MenuTopLayer = ({
96
94
  ,
97
95
  mode: "manual",
98
96
  placement: popupPlacement,
99
- animate: animation,
97
+ animate: true,
100
98
  testId: selectProps.testId && `${selectProps.testId}--popup`
101
99
  }, /*#__PURE__*/React.createElement(PopoverSurface, null, /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
102
100
  role: "presentation",
@@ -37,7 +37,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
37
37
  import { parseDate } from '../internal/parse-date';
38
38
  import { makeSingleValue } from '../internal/single-value';
39
39
  var packageName = "@atlaskit/datetime-picker";
40
- var packageVersion = "18.1.1";
40
+ var packageVersion = "18.1.3";
41
41
  var styles = {
42
42
  pickerContainerStyle: "_kqswh2mm",
43
43
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -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.1.1";
30
+ var packageVersion = "18.1.3";
31
31
  var analyticsAttributes = {
32
32
  componentName: 'dateTimePicker',
33
33
  packageName: packageName,
@@ -23,7 +23,7 @@ import { convertTokens } from '../internal/parse-tokens';
23
23
  import { placeholderDatetime } from '../internal/placeholder-date-time';
24
24
  import { makeSingleValue } from '../internal/single-value';
25
25
  var packageName = "@atlaskit/datetime-picker";
26
- var packageVersion = "18.1.1";
26
+ var packageVersion = "18.1.3";
27
27
  var defaultTimeFormat = 'h:mma';
28
28
  var menuStyles = {
29
29
  /* Need to remove default absolute positioning as that causes issues with position fixed */
@@ -6,12 +6,10 @@ import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import { useRef } from 'react';
8
8
  import { components } from '@atlaskit/select';
9
- import { slideAndFade } from '@atlaskit/top-layer/animations';
10
9
  import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
11
10
  import { Popover } from '@atlaskit/top-layer/popover';
12
11
  import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
13
12
  import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
14
- var animation = slideAndFade();
15
13
 
16
14
  /**
17
15
  * Bottom-start placement: time options menu appears below and aligned to the
@@ -85,7 +83,7 @@ var FixedLayerMenuTopLayer = function FixedLayerMenuTopLayer(_ref) {
85
83
  ,
86
84
  mode: "manual",
87
85
  placement: popupPlacement,
88
- animate: animation
86
+ animate: true
89
87
  // @ts-ignore -- testId is a custom prop passed through selectProps
90
88
  ,
91
89
  testId: selectProps.testId && "".concat(selectProps.testId, "--popup")
@@ -5,12 +5,10 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { Fragment, useRef } from 'react';
6
6
  import { isValid, parseISO } from 'date-fns';
7
7
  import Calendar from '@atlaskit/calendar';
8
- import { slideAndFade } from '@atlaskit/top-layer/animations';
9
8
  import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
10
9
  import { Popover } from '@atlaskit/top-layer/popover';
11
10
  import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
12
11
  import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
13
- var animation = slideAndFade();
14
12
 
15
13
  /**
16
14
  * Bottom-start placement: calendar appears below and aligned to the
@@ -92,7 +90,7 @@ export var MenuTopLayer = function MenuTopLayer(_ref) {
92
90
  ,
93
91
  mode: "manual",
94
92
  placement: popupPlacement,
95
- animate: animation,
93
+ animate: true,
96
94
  testId: selectProps.testId && "".concat(selectProps.testId, "--popup")
97
95
  }, /*#__PURE__*/React.createElement(PopoverSurface, null, /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
98
96
  role: "presentation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "18.1.2",
3
+ "version": "18.1.4",
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/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": ["**/*.compiled.css"],
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.tsx",
17
19
  "atlassian": {
18
20
  "react-compiler": {
@@ -29,21 +31,21 @@
29
31
  }
30
32
  },
31
33
  "dependencies": {
32
- "@atlaskit/analytics-next": "^12.2.0",
34
+ "@atlaskit/analytics-next": "^12.3.0",
33
35
  "@atlaskit/button": "^24.3.0",
34
- "@atlaskit/calendar": "^18.1.0",
36
+ "@atlaskit/calendar": "^18.3.0",
35
37
  "@atlaskit/css": "^1.0.0",
36
38
  "@atlaskit/ds-lib": "^8.0.0",
37
- "@atlaskit/icon": "^36.2.0",
39
+ "@atlaskit/icon": "^37.0.0",
38
40
  "@atlaskit/layering": "^4.1.0",
39
41
  "@atlaskit/locale": "^5.0.0",
40
42
  "@atlaskit/platform-feature-flags": "^2.0.0",
41
- "@atlaskit/popper": "^8.2.0",
42
- "@atlaskit/primitives": "^20.5.0",
43
+ "@atlaskit/popper": "^8.3.0",
44
+ "@atlaskit/primitives": "^20.6.0",
43
45
  "@atlaskit/react-compiler-gating": "^0.2.0",
44
- "@atlaskit/select": "^22.4.0",
45
- "@atlaskit/tokens": "^15.5.0",
46
- "@atlaskit/top-layer": "^1.5.0",
46
+ "@atlaskit/select": "^22.5.0",
47
+ "@atlaskit/tokens": "^15.8.0",
48
+ "@atlaskit/top-layer": "^1.8.0",
47
49
  "@babel/runtime": "^7.0.0",
48
50
  "@compiled/react": "^0.20.0",
49
51
  "date-fns": "^2.17.0"
@@ -57,10 +59,10 @@
57
59
  "@af/visual-regression": "workspace:^",
58
60
  "@atlaskit/code": "^18.2.0",
59
61
  "@atlaskit/codemod-utils": "^5.0.0",
60
- "@atlaskit/docs": "^12.0.0",
62
+ "@atlaskit/docs": "^12.1.0",
61
63
  "@atlaskit/form": "^16.1.0",
62
64
  "@atlaskit/heading": "^6.2.0",
63
- "@atlaskit/link": "^4.1.0",
65
+ "@atlaskit/link": "^4.3.0",
64
66
  "@atlaskit/modal-dialog": "^16.1.0",
65
67
  "@atlaskit/popup": "^5.1.0",
66
68
  "@atlaskit/range": "^11.1.0",
@@ -86,10 +88,19 @@
86
88
  "@repo/internal": {
87
89
  "dom-events": "use-bind-event-listener",
88
90
  "design-system": "v1",
89
- "styling": ["compiled", "static"],
90
- "ui-components": ["primitives", "lite-mode"],
91
+ "styling": [
92
+ "compiled",
93
+ "static"
94
+ ],
95
+ "ui-components": [
96
+ "primitives",
97
+ "lite-mode"
98
+ ],
91
99
  "analytics": "analytics-next",
92
- "design-tokens": ["color", "spacing"],
100
+ "design-tokens": [
101
+ "color",
102
+ "spacing"
103
+ ],
93
104
  "deprecation": "no-deprecated-imports"
94
105
  }
95
106
  },