@atlaskit/datetime-picker 17.3.0 → 17.4.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 +7 -0
- package/dist/cjs/components/date-picker-class.js +6 -10
- package/dist/cjs/components/date-picker-fc.js +6 -10
- package/dist/es2019/components/date-picker-class.js +4 -8
- package/dist/es2019/components/date-picker-fc.js +4 -8
- package/dist/esm/components/date-picker-class.js +6 -10
- package/dist/esm/components/date-picker-fc.js +6 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 17.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`00e69e0b7c839`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00e69e0b7c839) -
|
|
8
|
+
Clean up and removal of the `platform-visual-refresh-icons` feature flag.
|
|
9
|
+
|
|
3
10
|
## 17.3.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -23,9 +23,8 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
23
23
|
var _new = require("@atlaskit/button/new");
|
|
24
24
|
var _css = require("@atlaskit/css");
|
|
25
25
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
26
|
-
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
26
|
+
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
|
|
27
27
|
var _locale = require("@atlaskit/locale");
|
|
28
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
29
28
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
30
29
|
var _select = _interopRequireWildcard(require("@atlaskit/select"));
|
|
31
30
|
var _internal = require("../internal");
|
|
@@ -445,14 +444,11 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
445
444
|
actualSelectInputValue = selectInputValue;
|
|
446
445
|
var menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
447
446
|
var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
448
|
-
var clearIndicator =
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
454
|
-
};
|
|
455
|
-
}
|
|
447
|
+
var clearIndicator = function clearIndicator(props) {
|
|
448
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
449
|
+
xcss: styles.dropdownIndicatorStyles
|
|
450
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
451
|
+
};
|
|
456
452
|
var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
457
453
|
var selectComponents = _objectSpread(_objectSpread(_objectSpread({
|
|
458
454
|
DropdownIndicator: shouldShowCalendarButton ? _internal.EmptyComponent : dropDownIcon
|
|
@@ -20,9 +20,8 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
20
20
|
var _new = require("@atlaskit/button/new");
|
|
21
21
|
var _css = require("@atlaskit/css");
|
|
22
22
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
23
|
-
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
23
|
+
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
|
|
24
24
|
var _locale = require("@atlaskit/locale");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
27
26
|
var _select = _interopRequireWildcard(require("@atlaskit/select"));
|
|
28
27
|
var _internal = require("../internal");
|
|
@@ -448,14 +447,11 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, _forwarded
|
|
|
448
447
|
actualSelectInputValue = selectInputValue;
|
|
449
448
|
var menuIsOpen = getIsOpen() && !isDisabled;
|
|
450
449
|
var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
451
|
-
var clearIndicator =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
457
|
-
};
|
|
458
|
-
}
|
|
450
|
+
var clearIndicator = function clearIndicator(props) {
|
|
451
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
452
|
+
xcss: styles.dropdownIndicatorStyles
|
|
453
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
454
|
+
};
|
|
459
455
|
var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
460
456
|
var valueId = (0, _useId.useId)();
|
|
461
457
|
var SingleValue = (0, _singleValue.makeSingleValue)({
|
|
@@ -11,9 +11,8 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
11
11
|
import { IconButton } from '@atlaskit/button/new';
|
|
12
12
|
import { cx } from '@atlaskit/css';
|
|
13
13
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
14
|
-
import CalendarIcon from '@atlaskit/icon/core/
|
|
14
|
+
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
15
15
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
17
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
19
18
|
import { EmptyComponent } from '../internal';
|
|
@@ -422,12 +421,9 @@ class DatePickerComponent extends Component {
|
|
|
422
421
|
actualSelectInputValue = selectInputValue;
|
|
423
422
|
const menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
424
423
|
const showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
425
|
-
let clearIndicator =
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
xcss: styles.dropdownIndicatorStyles
|
|
429
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
430
|
-
}
|
|
424
|
+
let clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
|
|
425
|
+
xcss: styles.dropdownIndicatorStyles
|
|
426
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
431
427
|
const dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
432
428
|
const selectComponents = {
|
|
433
429
|
DropdownIndicator: shouldShowCalendarButton ? EmptyComponent : dropDownIcon,
|
|
@@ -11,9 +11,8 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
|
11
11
|
import { IconButton } from '@atlaskit/button/new';
|
|
12
12
|
import { cx } from '@atlaskit/css';
|
|
13
13
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
14
|
-
import CalendarIcon from '@atlaskit/icon/core/
|
|
14
|
+
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
15
15
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
17
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
19
18
|
import { EmptyComponent } from '../internal';
|
|
@@ -374,12 +373,9 @@ const DatePicker = /*#__PURE__*/forwardRef((props, _forwardedRef) => {
|
|
|
374
373
|
actualSelectInputValue = selectInputValue;
|
|
375
374
|
const menuIsOpen = getIsOpen() && !isDisabled;
|
|
376
375
|
const showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
377
|
-
let clearIndicator =
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
xcss: styles.dropdownIndicatorStyles
|
|
381
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
382
|
-
}
|
|
376
|
+
let clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
|
|
377
|
+
xcss: styles.dropdownIndicatorStyles
|
|
378
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
383
379
|
const dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
384
380
|
const valueId = useId();
|
|
385
381
|
const SingleValue = makeSingleValue({
|
|
@@ -20,9 +20,8 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
20
20
|
import { IconButton } from '@atlaskit/button/new';
|
|
21
21
|
import { cx } from '@atlaskit/css';
|
|
22
22
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
23
|
-
import CalendarIcon from '@atlaskit/icon/core/
|
|
23
|
+
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
24
24
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
27
26
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
28
27
|
import { EmptyComponent } from '../internal';
|
|
@@ -437,14 +436,11 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
437
436
|
actualSelectInputValue = selectInputValue;
|
|
438
437
|
var menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
439
438
|
var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
440
|
-
var clearIndicator =
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
446
|
-
};
|
|
447
|
-
}
|
|
439
|
+
var clearIndicator = function clearIndicator(props) {
|
|
440
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
441
|
+
xcss: styles.dropdownIndicatorStyles
|
|
442
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
443
|
+
};
|
|
448
444
|
var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
449
445
|
var selectComponents = _objectSpread(_objectSpread(_objectSpread({
|
|
450
446
|
DropdownIndicator: shouldShowCalendarButton ? EmptyComponent : dropDownIcon
|
|
@@ -17,9 +17,8 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
|
17
17
|
import { IconButton } from '@atlaskit/button/new';
|
|
18
18
|
import { cx } from '@atlaskit/css';
|
|
19
19
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
20
|
-
import CalendarIcon from '@atlaskit/icon/core/
|
|
20
|
+
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
21
21
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
24
23
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
25
24
|
import { EmptyComponent } from '../internal';
|
|
@@ -440,14 +439,11 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, _forwardedRef) {
|
|
|
440
439
|
actualSelectInputValue = selectInputValue;
|
|
441
440
|
var menuIsOpen = getIsOpen() && !isDisabled;
|
|
442
441
|
var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
443
|
-
var clearIndicator =
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
449
|
-
};
|
|
450
|
-
}
|
|
442
|
+
var clearIndicator = function clearIndicator(props) {
|
|
443
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
444
|
+
xcss: styles.dropdownIndicatorStyles
|
|
445
|
+
}, /*#__PURE__*/React.createElement(Icon, props));
|
|
446
|
+
};
|
|
451
447
|
var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
|
|
452
448
|
var valueId = useId();
|
|
453
449
|
var SingleValue = makeSingleValue({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.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/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/css": "^0.19.0",
|
|
39
39
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
40
40
|
"@atlaskit/icon": "^29.3.0",
|
|
41
|
-
"@atlaskit/layering": "^3.
|
|
41
|
+
"@atlaskit/layering": "^3.5.0",
|
|
42
42
|
"@atlaskit/locale": "^3.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/popper": "^7.1.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@atlaskit/docs": "^11.2.0",
|
|
62
62
|
"@atlaskit/form": "^15.2.0",
|
|
63
63
|
"@atlaskit/heading": "^5.2.0",
|
|
64
|
-
"@atlaskit/link": "^3.
|
|
64
|
+
"@atlaskit/link": "^3.3.0",
|
|
65
65
|
"@atlaskit/modal-dialog": "^14.9.0",
|
|
66
|
-
"@atlaskit/popup": "^4.
|
|
66
|
+
"@atlaskit/popup": "^4.10.0",
|
|
67
67
|
"@atlaskit/range": "^9.3.0",
|
|
68
68
|
"@atlaskit/section-message": "^8.11.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.2.0",
|