@atlaskit/datetime-picker 17.5.1 → 17.5.3
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 +14 -0
- package/codemods/14.0.0-remove-duplicate-and-unused-props.tsx +5 -1
- package/codemods/utils/helpers.tsx +32 -11
- package/dist/cjs/components/date-picker.js +1 -1
- package/dist/cjs/components/date-time-picker-class.js +1 -1
- package/dist/cjs/components/date-time-picker-fc.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/fixed-layer.compiled.css +1 -1
- package/dist/cjs/internal/fixed-layer.js +2 -4
- package/dist/es2019/components/date-picker.js +1 -1
- package/dist/es2019/components/date-time-picker-class.js +1 -1
- package/dist/es2019/components/date-time-picker-fc.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/fixed-layer.compiled.css +1 -1
- package/dist/es2019/internal/fixed-layer.js +2 -4
- package/dist/esm/components/date-picker.js +1 -1
- package/dist/esm/components/date-time-picker-class.js +1 -1
- package/dist/esm/components/date-time-picker-fc.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/fixed-layer.compiled.css +1 -1
- package/dist/esm/internal/fixed-layer.js +2 -4
- package/dist/types/components/date-time-picker-class.d.ts +7 -7
- package/dist/types/components/date-time-picker.d.ts +7 -7
- package/dist/types-ts4.5/components/date-time-picker-class.d.ts +7 -7
- package/dist/types-ts4.5/components/date-time-picker.d.ts +7 -7
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 17.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5db9e3f21a52f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5db9e3f21a52f) -
|
|
14
|
+
Internal refactoring
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 17.5.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -409,7 +409,11 @@ function moveDateTimePickerProps(
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
export default function transformer(
|
|
412
|
+
export default function transformer(
|
|
413
|
+
fileInfo: FileInfo,
|
|
414
|
+
{ jscodeshift: j }: API,
|
|
415
|
+
options: Options,
|
|
416
|
+
): string {
|
|
413
417
|
const { source } = fileInfo;
|
|
414
418
|
const collection = j(source);
|
|
415
419
|
|
|
@@ -33,7 +33,11 @@ export function getImportDeclarationCollection(
|
|
|
33
33
|
.filter((importDeclarationPath) => importDeclarationPath.node.source.value === importPath);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function hasDynamicImport(
|
|
36
|
+
export function hasDynamicImport(
|
|
37
|
+
j: JSCodeshift,
|
|
38
|
+
collection: Collection<any>,
|
|
39
|
+
importPath: string,
|
|
40
|
+
): boolean {
|
|
37
41
|
return getDynamicImportCollection(j, collection, importPath).length > 0;
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -82,7 +86,9 @@ export function getImportSpecifierCollection(
|
|
|
82
86
|
.filter((importSpecifierPath) => importSpecifierPath.node.imported.name === importName);
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
export function getImportSpecifierName(
|
|
89
|
+
export function getImportSpecifierName(
|
|
90
|
+
importSpecifierCollection: Collection<ImportSpecifier>,
|
|
91
|
+
): string | null {
|
|
86
92
|
if (importSpecifierCollection.length === 0) {
|
|
87
93
|
return null;
|
|
88
94
|
}
|
|
@@ -207,7 +213,12 @@ export function getJSXSpreadObjectExpressionAttributesByName(
|
|
|
207
213
|
);
|
|
208
214
|
}
|
|
209
215
|
|
|
210
|
-
export const createRemoveFuncFor: (
|
|
216
|
+
export const createRemoveFuncFor: (
|
|
217
|
+
component: string,
|
|
218
|
+
importName: string,
|
|
219
|
+
prop: string,
|
|
220
|
+
comment?: string,
|
|
221
|
+
) => (j: core.JSCodeshift, source: Collection<Node>) => void =
|
|
211
222
|
(component: string, importName: string, prop: string, comment?: string) =>
|
|
212
223
|
(j: core.JSCodeshift, source: Collection<Node>) => {
|
|
213
224
|
const specifier = getNamedSpecifier(j, source, component, importName);
|
|
@@ -226,7 +237,11 @@ export const createRemoveFuncFor: (component: string, importName: string, prop:
|
|
|
226
237
|
});
|
|
227
238
|
};
|
|
228
239
|
|
|
229
|
-
export const getJSXAttributeByName: (
|
|
240
|
+
export const getJSXAttributeByName: (
|
|
241
|
+
j: JSCodeshift,
|
|
242
|
+
jsxElementPath: ASTPath<JSXElement>,
|
|
243
|
+
attributeName: string,
|
|
244
|
+
) => JSXAttribute | undefined = (
|
|
230
245
|
j: JSCodeshift,
|
|
231
246
|
jsxElementPath: ASTPath<JSXElement>,
|
|
232
247
|
attributeName: string,
|
|
@@ -236,11 +251,11 @@ export const getJSXAttributeByName: (j: JSCodeshift, jsxElementPath: ASTPath<JSX
|
|
|
236
251
|
return attributes?.find((attr) => attr.name && attr.name.name === attributeName);
|
|
237
252
|
};
|
|
238
253
|
|
|
239
|
-
export const addJSXAttributeToJSXElement: (
|
|
254
|
+
export const addJSXAttributeToJSXElement: (
|
|
240
255
|
j: JSCodeshift,
|
|
241
256
|
jsxElementPath: ASTPath<JSXElement>,
|
|
242
257
|
jsxAttribute: JSXAttribute,
|
|
243
|
-
) => {
|
|
258
|
+
) => void = (j: JSCodeshift, jsxElementPath: ASTPath<JSXElement>, jsxAttribute: JSXAttribute) => {
|
|
244
259
|
j(jsxElementPath)
|
|
245
260
|
.find(j.JSXOpeningElement)
|
|
246
261
|
.forEach((openingElement) => {
|
|
@@ -248,11 +263,11 @@ export const addJSXAttributeToJSXElement: (j: JSCodeshift, jsxElementPath: ASTPa
|
|
|
248
263
|
});
|
|
249
264
|
};
|
|
250
265
|
|
|
251
|
-
export const removeJSXAttributeByName: (
|
|
266
|
+
export const removeJSXAttributeByName: (
|
|
252
267
|
j: JSCodeshift,
|
|
253
268
|
jsxElementPath: ASTPath<JSXElement>,
|
|
254
269
|
attrName: string,
|
|
255
|
-
) => {
|
|
270
|
+
) => void = (j: JSCodeshift, jsxElementPath: ASTPath<JSXElement>, attrName: string) => {
|
|
256
271
|
const attributes = getJSXAttributes(jsxElementPath);
|
|
257
272
|
const attr = getJSXAttributeByName(j, jsxElementPath, attrName);
|
|
258
273
|
if (attr) {
|
|
@@ -260,10 +275,16 @@ export const removeJSXAttributeByName: (j: JSCodeshift, jsxElementPath: ASTPath<
|
|
|
260
275
|
}
|
|
261
276
|
};
|
|
262
277
|
|
|
263
|
-
export const getJSXAttributes: (jsxElementPath: ASTPath<JSXElement>) => JSXAttribute[] = (
|
|
264
|
-
jsxElementPath
|
|
278
|
+
export const getJSXAttributes: (jsxElementPath: ASTPath<JSXElement>) => JSXAttribute[] = (
|
|
279
|
+
jsxElementPath: ASTPath<JSXElement>,
|
|
280
|
+
) => jsxElementPath.node.openingElement.attributes as JSXAttribute[];
|
|
265
281
|
|
|
266
|
-
export const removeJSXAttributeObjectPropertyByName: (
|
|
282
|
+
export const removeJSXAttributeObjectPropertyByName: (
|
|
283
|
+
j: JSCodeshift,
|
|
284
|
+
jsxElementPath: ASTPath<JSXElement>,
|
|
285
|
+
attrName: string,
|
|
286
|
+
propertyToRemove: string,
|
|
287
|
+
) => void = (
|
|
267
288
|
j: JSCodeshift,
|
|
268
289
|
jsxElementPath: ASTPath<JSXElement>,
|
|
269
290
|
attrName: string,
|
|
@@ -36,7 +36,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
36
36
|
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; }
|
|
37
37
|
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; }
|
|
38
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "
|
|
39
|
+
var packageVersion = "17.5.2";
|
|
40
40
|
var styles = {
|
|
41
41
|
pickerContainerStyle: "_kqswh2mm",
|
|
42
42
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -29,7 +29,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
29
29
|
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; }
|
|
30
30
|
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; } /// <reference types="node" />
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "
|
|
32
|
+
var packageVersion = "17.5.2";
|
|
33
33
|
var compiledStyles = {
|
|
34
34
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
35
35
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -32,7 +32,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
32
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; } /// <reference types="node" />
|
|
33
33
|
// for typing `process`
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "
|
|
35
|
+
var packageVersion = "17.5.2";
|
|
36
36
|
var analyticsAttributes = {
|
|
37
37
|
componentName: 'dateTimePicker',
|
|
38
38
|
packageName: packageName,
|
|
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
26
26
|
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; }
|
|
27
27
|
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; }
|
|
28
28
|
var packageName = "@atlaskit/datetime-picker";
|
|
29
|
-
var packageVersion = "
|
|
29
|
+
var packageVersion = "17.5.2";
|
|
30
30
|
var menuStyles = {
|
|
31
31
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
32
32
|
position: 'static',
|
|
@@ -21,7 +21,7 @@ var _popper = require("@atlaskit/popper");
|
|
|
21
21
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
22
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
var styles = {
|
|
24
|
-
root: "_bfhk1j28 _kqswstnw
|
|
24
|
+
root: "_bfhk1j28 _kqswstnw _152tze3t",
|
|
25
25
|
popperStyles: "_1pbyowjs"
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
@@ -86,9 +86,7 @@ var FixedLayer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
86
86
|
update = _ref2.update;
|
|
87
87
|
_this2.update = update;
|
|
88
88
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
-
ref: ref
|
|
90
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
91
|
-
,
|
|
89
|
+
ref: ref,
|
|
92
90
|
style: style,
|
|
93
91
|
"data-testid": testId && "".concat(testId, "--popper--container"),
|
|
94
92
|
className: (0, _runtime.ax)([styles.popperStyles])
|
|
@@ -22,7 +22,7 @@ import { Menu } from '../internal/menu';
|
|
|
22
22
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
23
23
|
import { makeSingleValue } from '../internal/single-value';
|
|
24
24
|
const packageName = "@atlaskit/datetime-picker";
|
|
25
|
-
const packageVersion = "
|
|
25
|
+
const packageVersion = "17.5.2";
|
|
26
26
|
const styles = {
|
|
27
27
|
pickerContainerStyle: "_kqswh2mm",
|
|
28
28
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -15,7 +15,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
15
15
|
import DatePicker from './date-picker';
|
|
16
16
|
import TimePicker from './time-picker';
|
|
17
17
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "
|
|
18
|
+
const packageVersion = "17.5.2";
|
|
19
19
|
const compiledStyles = {
|
|
20
20
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
21
21
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -18,7 +18,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
18
18
|
import DatePicker from './date-picker';
|
|
19
19
|
import TimePicker from './time-picker';
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "
|
|
21
|
+
const packageVersion = "17.5.2";
|
|
22
22
|
const analyticsAttributes = {
|
|
23
23
|
componentName: 'dateTimePicker',
|
|
24
24
|
packageName,
|
|
@@ -11,7 +11,7 @@ import parseTime from '../internal/parse-time';
|
|
|
11
11
|
import { convertTokens } from '../internal/parse-tokens';
|
|
12
12
|
import { makeSingleValue } from '../internal/single-value';
|
|
13
13
|
const packageName = "@atlaskit/datetime-picker";
|
|
14
|
-
const packageVersion = "
|
|
14
|
+
const packageVersion = "17.5.2";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -7,7 +7,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
7
7
|
import { sizes } from '@atlaskit/icon';
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
const styles = {
|
|
10
|
-
root: "_bfhk1j28 _kqswstnw
|
|
10
|
+
root: "_bfhk1j28 _kqswstnw _152tze3t",
|
|
11
11
|
popperStyles: "_1pbyowjs"
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -61,9 +61,7 @@ export default class FixedLayer extends React.Component {
|
|
|
61
61
|
}) => {
|
|
62
62
|
this.update = update;
|
|
63
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
ref: ref
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
66
|
-
,
|
|
64
|
+
ref: ref,
|
|
67
65
|
style: style,
|
|
68
66
|
"data-testid": testId && `${testId}--popper--container`,
|
|
69
67
|
className: ax([styles.popperStyles])
|
|
@@ -28,7 +28,7 @@ import { Menu } from '../internal/menu';
|
|
|
28
28
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
29
29
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
30
|
var packageName = "@atlaskit/datetime-picker";
|
|
31
|
-
var packageVersion = "
|
|
31
|
+
var packageVersion = "17.5.2";
|
|
32
32
|
var styles = {
|
|
33
33
|
pickerContainerStyle: "_kqswh2mm",
|
|
34
34
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -24,7 +24,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
24
24
|
import DatePicker from './date-picker';
|
|
25
25
|
import TimePicker from './time-picker';
|
|
26
26
|
var packageName = "@atlaskit/datetime-picker";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "17.5.2";
|
|
28
28
|
var compiledStyles = {
|
|
29
29
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
30
30
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
25
25
|
import DatePicker from './date-picker';
|
|
26
26
|
import TimePicker from './time-picker';
|
|
27
27
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "
|
|
28
|
+
var packageVersion = "17.5.2";
|
|
29
29
|
var analyticsAttributes = {
|
|
30
30
|
componentName: 'dateTimePicker',
|
|
31
31
|
packageName: packageName,
|
|
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
|
|
|
17
17
|
import { convertTokens } from '../internal/parse-tokens';
|
|
18
18
|
import { makeSingleValue } from '../internal/single-value';
|
|
19
19
|
var packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
var packageVersion = "
|
|
20
|
+
var packageVersion = "17.5.2";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
|
@@ -14,7 +14,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
14
14
|
import { sizes } from '@atlaskit/icon';
|
|
15
15
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
16
16
|
var styles = {
|
|
17
|
-
root: "_bfhk1j28 _kqswstnw
|
|
17
|
+
root: "_bfhk1j28 _kqswstnw _152tze3t",
|
|
18
18
|
popperStyles: "_1pbyowjs"
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -79,9 +79,7 @@ var FixedLayer = /*#__PURE__*/function (_React$Component) {
|
|
|
79
79
|
update = _ref2.update;
|
|
80
80
|
_this2.update = update;
|
|
81
81
|
return /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
ref: ref
|
|
83
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
84
|
-
,
|
|
82
|
+
ref: ref,
|
|
85
83
|
style: style,
|
|
86
84
|
"data-testid": testId && "".concat(testId, "--popper--container"),
|
|
87
85
|
className: ax([styles.popperStyles])
|
|
@@ -51,8 +51,8 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
|
51
51
|
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
52
52
|
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
53
53
|
*/
|
|
54
|
-
declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omit<DateTimePickerBaseProps, keyof import(
|
|
55
|
-
appearance?: import(
|
|
54
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omit<DateTimePickerBaseProps, keyof import('@atlaskit/analytics-next').WithAnalyticsEventsProps>, never> & {
|
|
55
|
+
appearance?: import('..').Appearance | undefined;
|
|
56
56
|
isDisabled?: boolean | undefined;
|
|
57
57
|
innerProps?: React.AllHTMLAttributes<HTMLElement> | undefined;
|
|
58
58
|
defaultValue?: string | undefined;
|
|
@@ -69,9 +69,9 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
69
69
|
clearControlLabel?: string | undefined;
|
|
70
70
|
isInvalid?: boolean | undefined;
|
|
71
71
|
isRequired?: boolean | undefined;
|
|
72
|
-
spacing?: import(
|
|
73
|
-
datePickerProps?: import(
|
|
74
|
-
timePickerProps?: import(
|
|
72
|
+
spacing?: import('..').Spacing | undefined;
|
|
73
|
+
datePickerProps?: import('..').DatePickerProps | undefined;
|
|
74
|
+
timePickerProps?: import('..').TimePickerProps | undefined;
|
|
75
75
|
parseValue?: ((dateTimeValue: string, date: string, time: string, timezone: string) => {
|
|
76
76
|
dateValue: string;
|
|
77
77
|
timeValue: string;
|
|
@@ -79,6 +79,6 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
79
79
|
}) | undefined;
|
|
80
80
|
} & {
|
|
81
81
|
ref?: React.Ref<any> | undefined;
|
|
82
|
-
createAnalyticsEvent?: import(
|
|
83
|
-
},
|
|
82
|
+
createAnalyticsEvent?: import('@atlaskit/analytics-next').CreateUIAnalyticsEvent | undefined;
|
|
83
|
+
}, 'ref'> & React.RefAttributes<any> & import('@atlaskit/analytics-next').WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
84
84
|
export default DateTimePicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const DateTimePicker: import(
|
|
2
|
-
appearance?: import(
|
|
1
|
+
declare const DateTimePicker: import('react').FC<Omit<Omit<import('..').DateTimePickerProps, 'ref'> & import('react').RefAttributes<HTMLElement>, 'ref'> & Omit<Omit<Omit<Pick<Omit<import('..').DateTimePickerProps, keyof import('@atlaskit/analytics-next').WithAnalyticsEventsProps>, never> & {
|
|
2
|
+
appearance?: import('..').Appearance | undefined;
|
|
3
3
|
isDisabled?: boolean | undefined;
|
|
4
4
|
innerProps?: React.AllHTMLAttributes<HTMLElement> | undefined;
|
|
5
5
|
defaultValue?: string | undefined;
|
|
@@ -16,9 +16,9 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
16
16
|
clearControlLabel?: string | undefined;
|
|
17
17
|
isInvalid?: boolean | undefined;
|
|
18
18
|
isRequired?: boolean | undefined;
|
|
19
|
-
spacing?: import(
|
|
20
|
-
datePickerProps?: import(
|
|
21
|
-
timePickerProps?: import(
|
|
19
|
+
spacing?: import('..').Spacing | undefined;
|
|
20
|
+
datePickerProps?: import('..').DatePickerProps | undefined;
|
|
21
|
+
timePickerProps?: import('..').TimePickerProps | undefined;
|
|
22
22
|
parseValue?: ((dateTimeValue: string, date: string, time: string, timezone: string) => {
|
|
23
23
|
dateValue: string;
|
|
24
24
|
timeValue: string;
|
|
@@ -26,6 +26,6 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
26
26
|
}) | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
ref?: React.Ref<any> | undefined;
|
|
29
|
-
createAnalyticsEvent?: import(
|
|
30
|
-
},
|
|
29
|
+
createAnalyticsEvent?: import('@atlaskit/analytics-next').CreateUIAnalyticsEvent | undefined;
|
|
30
|
+
}, 'ref'> & import('react').RefAttributes<any> & import('@atlaskit/analytics-next').WithContextProps, 'ref'> & import('react').RefAttributes<any>, 'ref'> & import('react').RefAttributes<any>>;
|
|
31
31
|
export default DateTimePicker;
|
|
@@ -51,8 +51,8 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
|
51
51
|
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
52
52
|
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
53
53
|
*/
|
|
54
|
-
declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omit<DateTimePickerBaseProps, keyof import(
|
|
55
|
-
appearance?: import(
|
|
54
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omit<DateTimePickerBaseProps, keyof import('@atlaskit/analytics-next').WithAnalyticsEventsProps>, never> & {
|
|
55
|
+
appearance?: import('..').Appearance | undefined;
|
|
56
56
|
isDisabled?: boolean | undefined;
|
|
57
57
|
innerProps?: React.AllHTMLAttributes<HTMLElement> | undefined;
|
|
58
58
|
defaultValue?: string | undefined;
|
|
@@ -69,9 +69,9 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
69
69
|
clearControlLabel?: string | undefined;
|
|
70
70
|
isInvalid?: boolean | undefined;
|
|
71
71
|
isRequired?: boolean | undefined;
|
|
72
|
-
spacing?: import(
|
|
73
|
-
datePickerProps?: import(
|
|
74
|
-
timePickerProps?: import(
|
|
72
|
+
spacing?: import('..').Spacing | undefined;
|
|
73
|
+
datePickerProps?: import('..').DatePickerProps | undefined;
|
|
74
|
+
timePickerProps?: import('..').TimePickerProps | undefined;
|
|
75
75
|
parseValue?: ((dateTimeValue: string, date: string, time: string, timezone: string) => {
|
|
76
76
|
dateValue: string;
|
|
77
77
|
timeValue: string;
|
|
@@ -79,6 +79,6 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
79
79
|
}) | undefined;
|
|
80
80
|
} & {
|
|
81
81
|
ref?: React.Ref<any> | undefined;
|
|
82
|
-
createAnalyticsEvent?: import(
|
|
83
|
-
},
|
|
82
|
+
createAnalyticsEvent?: import('@atlaskit/analytics-next').CreateUIAnalyticsEvent | undefined;
|
|
83
|
+
}, 'ref'> & React.RefAttributes<any> & import('@atlaskit/analytics-next').WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
84
84
|
export default DateTimePicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const DateTimePicker: import(
|
|
2
|
-
appearance?: import(
|
|
1
|
+
declare const DateTimePicker: import('react').FC<Omit<Omit<import('..').DateTimePickerProps, 'ref'> & import('react').RefAttributes<HTMLElement>, 'ref'> & Omit<Omit<Omit<Pick<Omit<import('..').DateTimePickerProps, keyof import('@atlaskit/analytics-next').WithAnalyticsEventsProps>, never> & {
|
|
2
|
+
appearance?: import('..').Appearance | undefined;
|
|
3
3
|
isDisabled?: boolean | undefined;
|
|
4
4
|
innerProps?: React.AllHTMLAttributes<HTMLElement> | undefined;
|
|
5
5
|
defaultValue?: string | undefined;
|
|
@@ -16,9 +16,9 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
16
16
|
clearControlLabel?: string | undefined;
|
|
17
17
|
isInvalid?: boolean | undefined;
|
|
18
18
|
isRequired?: boolean | undefined;
|
|
19
|
-
spacing?: import(
|
|
20
|
-
datePickerProps?: import(
|
|
21
|
-
timePickerProps?: import(
|
|
19
|
+
spacing?: import('..').Spacing | undefined;
|
|
20
|
+
datePickerProps?: import('..').DatePickerProps | undefined;
|
|
21
|
+
timePickerProps?: import('..').TimePickerProps | undefined;
|
|
22
22
|
parseValue?: ((dateTimeValue: string, date: string, time: string, timezone: string) => {
|
|
23
23
|
dateValue: string;
|
|
24
24
|
timeValue: string;
|
|
@@ -26,6 +26,6 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
26
26
|
}) | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
ref?: React.Ref<any> | undefined;
|
|
29
|
-
createAnalyticsEvent?: import(
|
|
30
|
-
},
|
|
29
|
+
createAnalyticsEvent?: import('@atlaskit/analytics-next').CreateUIAnalyticsEvent | undefined;
|
|
30
|
+
}, 'ref'> & import('react').RefAttributes<any> & import('@atlaskit/analytics-next').WithContextProps, 'ref'> & import('react').RefAttributes<any>, 'ref'> & import('react').RefAttributes<any>>;
|
|
31
31
|
export default DateTimePicker;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "17.5.
|
|
3
|
+
"version": "17.5.3",
|
|
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,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/calendar": "^17.2.0",
|
|
38
38
|
"@atlaskit/css": "^0.19.0",
|
|
39
39
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/icon": "^32.0.0",
|
|
41
41
|
"@atlaskit/layering": "^3.6.0",
|
|
42
42
|
"@atlaskit/locale": "^3.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"@af/visual-regression": "workspace:^",
|
|
59
59
|
"@atlaskit/code": "^17.4.0",
|
|
60
60
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
61
|
-
"@atlaskit/docs": "^11.
|
|
61
|
+
"@atlaskit/docs": "^11.4.0",
|
|
62
62
|
"@atlaskit/form": "^15.3.0",
|
|
63
63
|
"@atlaskit/heading": "^5.3.0",
|
|
64
64
|
"@atlaskit/link": "^3.3.0",
|
|
65
|
-
"@atlaskit/modal-dialog": "^14.
|
|
65
|
+
"@atlaskit/modal-dialog": "^14.11.0",
|
|
66
66
|
"@atlaskit/popup": "^4.13.0",
|
|
67
67
|
"@atlaskit/range": "^9.3.0",
|
|
68
68
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -108,9 +108,6 @@
|
|
|
108
108
|
"dst-date-time-picker-use-functional-component": {
|
|
109
109
|
"type": "boolean"
|
|
110
110
|
},
|
|
111
|
-
"platform-visual-refresh-icons": {
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
111
|
"platform-dst-shape-theme-default": {
|
|
115
112
|
"type": "boolean"
|
|
116
113
|
}
|