@atlaskit/calendar 13.0.10 → 13.0.12

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,18 @@
1
1
  # @atlaskit/calendar
2
2
 
3
+ ## 13.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`70922a6fcea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70922a6fcea) - [ux] style(calendar): update icon fallback color from N70 to N700 to match tokens and fix color contrast issue
14
+ - [`c0fb88b3af6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0fb88b3af6) - [ux] style(calendar): update icon color token from text.subtlest to color.icon
15
+
3
16
  ## 13.0.10
4
17
 
5
18
  ### Patch Changes
@@ -29,11 +29,11 @@ var _useHandleDateSelect2 = _interopRequireDefault(require("./internal/hooks/use
29
29
  var _useLocale2 = _interopRequireDefault(require("./internal/hooks/use-locale"));
30
30
  var _useUniqueId = _interopRequireDefault(require("./internal/hooks/use-unique-id"));
31
31
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32
- 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; }
32
+ 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; } /** @jsx jsx */
33
33
  var analyticsAttributes = {
34
34
  componentName: 'calendar',
35
35
  packageName: "@atlaskit/calendar",
36
- packageVersion: "13.0.10"
36
+ packageVersion: "13.0.12"
37
37
  };
38
38
  var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
39
39
  var day = _ref.day,
@@ -43,7 +43,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
43
43
  iconBefore: (0, _react2.jsx)(_chevronLeftLarge.default, {
44
44
  label: previousMonthLabel,
45
45
  size: "medium",
46
- primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")"),
46
+ primaryColor: "var(--ds-icon, ".concat(_colors.N700, ")"),
47
47
  testId: testId && "".concat(testId, "--previous-month-icon")
48
48
  })
49
49
  }), (0, _react2.jsx)(_heading.default, {
@@ -59,7 +59,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
59
59
  iconBefore: (0, _react2.jsx)(_chevronRightLarge.default, {
60
60
  label: nextMonthLabel,
61
61
  size: "medium",
62
- primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")"),
62
+ primaryColor: "var(--ds-icon, ".concat(_colors.N700, ")"),
63
63
  testId: testId && "".concat(testId, "--next-month-icon")
64
64
  })
65
65
  })));
@@ -13,7 +13,7 @@ var _constants = require("../constants");
13
13
  var _dateToString = _interopRequireDefault(require("../utils/date-to-string"));
14
14
  var _getBaseCalendar = _interopRequireDefault(require("../utils/get-base-calendar"));
15
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
- 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; }
16
+ 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; } // eslint-disable-next-line no-restricted-imports
17
17
  function useGetCalendarWithSixthWeek(calendar, _ref) {
18
18
  var month = _ref.month,
19
19
  year = _ref.year,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.10",
3
+ "version": "13.0.12",
4
4
  "sideEffects": false
5
5
  }
@@ -23,7 +23,7 @@ import useUniqueId from './internal/hooks/use-unique-id';
23
23
  const analyticsAttributes = {
24
24
  componentName: 'calendar',
25
25
  packageName: "@atlaskit/calendar",
26
- packageVersion: "13.0.10"
26
+ packageVersion: "13.0.12"
27
27
  };
28
28
  const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
29
29
  day,
@@ -7,7 +7,7 @@ import Heading from '@atlaskit/heading';
7
7
  import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
8
8
  import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
9
9
  import Inline from '@atlaskit/primitives/inline';
10
- import { N70 } from '@atlaskit/theme/colors';
10
+ import { N700 } from '@atlaskit/theme/colors';
11
11
  const Header = /*#__PURE__*/memo(function Header({
12
12
  monthLongTitle,
13
13
  year,
@@ -34,7 +34,7 @@ const Header = /*#__PURE__*/memo(function Header({
34
34
  iconBefore: jsx(ArrowleftIcon, {
35
35
  label: previousMonthLabel,
36
36
  size: "medium",
37
- primaryColor: `var(--ds-text-subtlest, ${N70})`,
37
+ primaryColor: `var(--ds-icon, ${N700})`,
38
38
  testId: testId && `${testId}--previous-month-icon`
39
39
  })
40
40
  }), jsx(Heading, {
@@ -50,7 +50,7 @@ const Header = /*#__PURE__*/memo(function Header({
50
50
  iconBefore: jsx(ArrowrightIcon, {
51
51
  label: nextMonthLabel,
52
52
  size: "medium",
53
- primaryColor: `var(--ds-text-subtlest, ${N70})`,
53
+ primaryColor: `var(--ds-icon, ${N700})`,
54
54
  testId: testId && `${testId}--next-month-icon`
55
55
  })
56
56
  })));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.10",
3
+ "version": "13.0.12",
4
4
  "sideEffects": false
5
5
  }
@@ -27,7 +27,7 @@ import useUniqueId from './internal/hooks/use-unique-id';
27
27
  var analyticsAttributes = {
28
28
  componentName: 'calendar',
29
29
  packageName: "@atlaskit/calendar",
30
- packageVersion: "13.0.10"
30
+ packageVersion: "13.0.12"
31
31
  };
32
32
  var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
33
33
  var day = _ref.day,
@@ -7,7 +7,7 @@ import Heading from '@atlaskit/heading';
7
7
  import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
8
8
  import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
9
9
  import Inline from '@atlaskit/primitives/inline';
10
- import { N70 } from '@atlaskit/theme/colors';
10
+ import { N700 } from '@atlaskit/theme/colors';
11
11
  var Header = /*#__PURE__*/memo(function Header(_ref) {
12
12
  var monthLongTitle = _ref.monthLongTitle,
13
13
  year = _ref.year,
@@ -35,7 +35,7 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
35
35
  iconBefore: jsx(ArrowleftIcon, {
36
36
  label: previousMonthLabel,
37
37
  size: "medium",
38
- primaryColor: "var(--ds-text-subtlest, ".concat(N70, ")"),
38
+ primaryColor: "var(--ds-icon, ".concat(N700, ")"),
39
39
  testId: testId && "".concat(testId, "--previous-month-icon")
40
40
  })
41
41
  }), jsx(Heading, {
@@ -51,7 +51,7 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
51
51
  iconBefore: jsx(ArrowrightIcon, {
52
52
  label: nextMonthLabel,
53
53
  size: "medium",
54
- primaryColor: "var(--ds-text-subtlest, ".concat(N70, ")"),
54
+ primaryColor: "var(--ds-icon, ".concat(N700, ")"),
55
55
  testId: testId && "".concat(testId, "--next-month-icon")
56
56
  })
57
57
  })));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.10",
3
+ "version": "13.0.12",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.10",
3
+ "version": "13.0.12",
4
4
  "description": "An interactive calendar for date selection experiences.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/heading": "^1.2.0",
31
31
  "@atlaskit/icon": "^21.11.0",
32
32
  "@atlaskit/locale": "^2.3.0",
33
- "@atlaskit/primitives": "^0.6.0",
33
+ "@atlaskit/primitives": "^0.7.0",
34
34
  "@atlaskit/theme": "^12.3.0",
35
35
  "@atlaskit/tokens": "^1.2.0",
36
36
  "@atlaskit/visually-hidden": "^1.1.0",