@atlaskit/datetime-picker 12.3.0 → 12.3.1

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,11 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 12.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`051095c0d82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/051095c0d82) - [ux] Changed the Date Picker controller icon to use `color.icon.disabled` token when in disabled state.
8
+
3
9
  ## 12.3.0
4
10
 
5
11
  ### Minor Changes
@@ -68,7 +68,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
68
68
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
69
69
 
70
70
  var packageName = "@atlaskit/datetime-picker";
71
- var packageVersion = "12.3.0";
71
+ var packageVersion = "12.3.1";
72
72
  /* eslint-disable react/no-unused-prop-types */
73
73
 
74
74
  function getDateObj(date) {
@@ -518,7 +518,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
518
518
  var _selectProps$styles = selectProps.styles,
519
519
  selectStyles = _selectProps$styles === void 0 ? {} : _selectProps$styles;
520
520
  var disabledStyle = isDisabled ? {
521
- pointerEvents: 'none'
521
+ pointerEvents: 'none',
522
+ color: "var(--ds-icon-disabled, inherit)"
522
523
  } : {};
523
524
  var calendarProps = {
524
525
  calendarContainerRef: this.containerRef,
@@ -58,7 +58,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
58
58
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
59
59
 
60
60
  var packageName = "@atlaskit/datetime-picker";
61
- var packageVersion = "12.3.0";
61
+ var packageVersion = "12.3.1";
62
62
  /* eslint-disable react/no-unused-prop-types */
63
63
 
64
64
  var isInvalidBorderStyles = (0, _react2.css)({
@@ -65,7 +65,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
65
65
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
66
66
 
67
67
  var packageName = "@atlaskit/datetime-picker";
68
- var packageVersion = "12.3.0";
68
+ var packageVersion = "12.3.1";
69
69
  var menuStyles = {
70
70
  /* Need to remove default absolute positioning as that causes issues with position fixed */
71
71
  position: 'static',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -20,7 +20,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
20
20
  import FixedLayer from '../internal/fixed-layer';
21
21
  import { convertTokens } from './utils';
22
22
  const packageName = "@atlaskit/datetime-picker";
23
- const packageVersion = "12.3.0";
23
+ const packageVersion = "12.3.1";
24
24
  /* eslint-disable react/no-unused-prop-types */
25
25
 
26
26
  function getDateObj(date) {
@@ -472,7 +472,8 @@ class DatePicker extends Component {
472
472
  styles: selectStyles = {}
473
473
  } = selectProps;
474
474
  const disabledStyle = isDisabled ? {
475
- pointerEvents: 'none'
475
+ pointerEvents: 'none',
476
+ color: "var(--ds-icon-disabled, inherit)"
476
477
  } : {};
477
478
  const calendarProps = {
478
479
  calendarContainerRef: this.containerRef,
@@ -19,7 +19,7 @@ import DatePicker from './date-picker';
19
19
  import TimePicker from './time-picker';
20
20
  import { convertTokens } from './utils';
21
21
  const packageName = "@atlaskit/datetime-picker";
22
- const packageVersion = "12.3.0";
22
+ const packageVersion = "12.3.1";
23
23
  /* eslint-disable react/no-unused-prop-types */
24
24
 
25
25
  const isInvalidBorderStyles = css({
@@ -15,7 +15,7 @@ import FixedLayer from '../internal/fixed-layer';
15
15
  import parseTime from '../internal/parse-time';
16
16
  import { convertTokens } from './utils';
17
17
  const packageName = "@atlaskit/datetime-picker";
18
- const packageVersion = "12.3.0";
18
+ const packageVersion = "12.3.1";
19
19
  const menuStyles = {
20
20
  /* Need to remove default absolute positioning as that causes issues with position fixed */
21
21
  position: 'static',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -35,7 +35,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
35
35
  import FixedLayer from '../internal/fixed-layer';
36
36
  import { convertTokens } from './utils';
37
37
  var packageName = "@atlaskit/datetime-picker";
38
- var packageVersion = "12.3.0";
38
+ var packageVersion = "12.3.1";
39
39
  /* eslint-disable react/no-unused-prop-types */
40
40
 
41
41
  function getDateObj(date) {
@@ -505,7 +505,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
505
505
  var _selectProps$styles = selectProps.styles,
506
506
  selectStyles = _selectProps$styles === void 0 ? {} : _selectProps$styles;
507
507
  var disabledStyle = isDisabled ? {
508
- pointerEvents: 'none'
508
+ pointerEvents: 'none',
509
+ color: "var(--ds-icon-disabled, inherit)"
509
510
  } : {};
510
511
  var calendarProps = {
511
512
  calendarContainerRef: this.containerRef,
@@ -33,7 +33,7 @@ import DatePicker from './date-picker';
33
33
  import TimePicker from './time-picker';
34
34
  import { convertTokens } from './utils';
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "12.3.0";
36
+ var packageVersion = "12.3.1";
37
37
  /* eslint-disable react/no-unused-prop-types */
38
38
 
39
39
  var isInvalidBorderStyles = css({
@@ -32,7 +32,7 @@ import FixedLayer from '../internal/fixed-layer';
32
32
  import parseTime from '../internal/parse-time';
33
33
  import { convertTokens } from './utils';
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "12.3.0";
35
+ var packageVersion = "12.3.1";
36
36
  var menuStyles = {
37
37
  /* Need to remove default absolute positioning as that causes issues with position fixed */
38
38
  position: 'static',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -194,7 +194,7 @@ declare class DateTimePicker extends React.Component<DateTimePickerProps, State>
194
194
  render(): jsx.JSX.Element;
195
195
  }
196
196
  export { DateTimePicker as DateTimePickerWithoutAnalytics };
197
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "value" | "dateFormat" | "timeFormat" | "parseValue"> & Partial<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "appearance" | "autoFocus" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "isInvalid" | "locale" | "times" | "timeIsEditable" | "datePickerProps" | "timePickerProps" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<{
197
+ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "value" | "dateFormat" | "timeFormat" | "parseValue"> & Partial<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "times" | "appearance" | "autoFocus" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "isInvalid" | "locale" | "timeIsEditable" | "datePickerProps" | "timePickerProps" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<{
198
198
  appearance: string;
199
199
  autoFocus: boolean;
200
200
  isDisabled: boolean;
@@ -214,5 +214,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimeP
214
214
  times: string[];
215
215
  spacing: string;
216
216
  locale: string;
217
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "autoFocus" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "value" | "isInvalid" | "dateFormat" | "locale" | "key" | "analyticsContext" | "times" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
217
+ }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "autoFocus" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "value" | "isInvalid" | "dateFormat" | "locale" | "key" | "analyticsContext" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
218
218
  export default _default;
@@ -204,7 +204,7 @@ declare class TimePicker extends React.Component<TimePickerProps, State> {
204
204
  render(): JSX.Element;
205
205
  }
206
206
  export { TimePicker as TimePickerWithoutAnalytics };
207
- declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "isOpen" | "formatDisplayLabel" | "value" | "placeholder" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "selectProps" | "spacing" | "isInvalid" | "hideIcon" | "locale" | "times" | "timeIsEditable">> & Partial<Pick<{
207
+ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "isOpen" | "formatDisplayLabel" | "value" | "placeholder" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "times" | "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "selectProps" | "spacing" | "isInvalid" | "hideIcon" | "locale" | "timeIsEditable">> & Partial<Pick<{
208
208
  appearance: Appearance;
209
209
  autoFocus: boolean;
210
210
  defaultIsOpen: boolean;
@@ -224,5 +224,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePicke
224
224
  times: string[];
225
225
  timeIsEditable: boolean;
226
226
  locale: string;
227
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "isOpen" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "formatDisplayLabel" | "selectProps" | "spacing" | "value" | "isInvalid" | "hideIcon" | "placeholder" | "locale" | "key" | "analyticsContext" | "times" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
227
+ }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "isOpen" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "formatDisplayLabel" | "selectProps" | "spacing" | "value" | "isInvalid" | "hideIcon" | "placeholder" | "locale" | "key" | "analyticsContext" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
228
228
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
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,16 +12,10 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*"
19
- ]
20
- }
21
- },
22
15
  "sideEffects": false,
23
16
  "atlaskit:src": "src/index.tsx",
24
17
  "atlassian": {
18
+ "disableProductCI": true,
25
19
  "team": "Design System Team",
26
20
  "deprecatedAutoEntryPoints": true,
27
21
  "releaseModel": "scheduled",
@@ -34,7 +28,7 @@
34
28
  "@atlaskit/analytics-next": "^8.2.0",
35
29
  "@atlaskit/calendar": "^12.4.0",
36
30
  "@atlaskit/ds-lib": "^2.1.0",
37
- "@atlaskit/icon": "^21.10.0",
31
+ "@atlaskit/icon": "^21.11.0",
38
32
  "@atlaskit/locale": "^2.1.0",
39
33
  "@atlaskit/popper": "^5.2.0",
40
34
  "@atlaskit/select": "^15.7.0",
@@ -50,14 +44,14 @@
50
44
  "react": "^16.8.0"
51
45
  },
52
46
  "devDependencies": {
53
- "@atlaskit/button": "^16.3.0",
47
+ "@atlaskit/button": "^16.4.0",
54
48
  "@atlaskit/docs": "*",
55
49
  "@atlaskit/field-base": "^15.0.5",
56
- "@atlaskit/form": "^8.5.0",
57
- "@atlaskit/modal-dialog": "^12.3.0",
58
- "@atlaskit/popup": "^1.4.0",
59
- "@atlaskit/range": "^6.0.0",
60
- "@atlaskit/section-message": "^6.2.0",
50
+ "@atlaskit/form": "^8.7.0",
51
+ "@atlaskit/modal-dialog": "^12.4.0",
52
+ "@atlaskit/popup": "^1.5.0",
53
+ "@atlaskit/range": "^7.0.0",
54
+ "@atlaskit/section-message": "^6.3.0",
61
55
  "@atlaskit/ssr": "*",
62
56
  "@atlaskit/textfield": "^5.3.0",
63
57
  "@atlaskit/toggle": "^12.5.0",
@@ -82,10 +76,11 @@
82
76
  "dom-events": "use-bind-event-listener",
83
77
  "design-system": "v1",
84
78
  "styling": [
85
- "static",
79
+ "emotion",
86
80
  "emotion"
87
81
  ],
88
- "theming": "tokens"
82
+ "theming": "tokens",
83
+ "deprecation": "no-deprecated-imports"
89
84
  }
90
85
  },
91
86
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",