@atlaskit/calendar 13.0.0 → 13.0.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
8
+ - Updated dependencies
9
+
10
+ ## 13.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
15
+
3
16
  ## 13.0.0
4
17
 
5
18
  ### Major Changes
@@ -60,7 +60,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
60
60
  var analyticsAttributes = {
61
61
  componentName: 'calendar',
62
62
  packageName: "@atlaskit/calendar",
63
- packageVersion: "13.0.0"
63
+ packageVersion: "13.0.2"
64
64
  };
65
65
  var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
66
66
  var day = _ref.day,
@@ -223,7 +223,7 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
223
223
  "aria-relevant": "text"
224
224
  }, announcerDate)), (0, _react2.jsx)(_box.default, {
225
225
  display: "inlineBlock",
226
- padding: "scale.200",
226
+ padding: "space.200",
227
227
  UNSAFE_style: {
228
228
  userSelect: 'none'
229
229
  },
@@ -232,7 +232,7 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
232
232
  role: "grid",
233
233
  tabIndex: tabIndex
234
234
  }, (0, _react2.jsx)(_stack.default, {
235
- gap: "scale.150"
235
+ gap: "space.150"
236
236
  }, (0, _react2.jsx)(_header.default // The month number needs to be translated to index in the month
237
237
  // name array e.g. 1 (January) -> 0
238
238
  , {
@@ -38,10 +38,10 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
38
38
  testId = _ref.testId;
39
39
  return (0, _react2.jsx)(_box.default, {
40
40
  display: "block",
41
- paddingInline: "scale.100",
41
+ paddingInline: "space.100",
42
42
  "aria-hidden": "true"
43
43
  }, (0, _react2.jsx)(_inline.default, {
44
- gap: "scale.0",
44
+ gap: "space.0",
45
45
  alignItems: "center",
46
46
  justifyContent: "space-between"
47
47
  }, (0, _react2.jsx)(_standardButton.default, {
@@ -24,7 +24,7 @@ var WeekHeader = /*#__PURE__*/(0, _react.memo)(function WeekHeader(_ref) {
24
24
  var daysShort = _ref.daysShort;
25
25
  return (0, _react2.jsx)(_weekDayGrid.default, null, daysShort.map(function (shortDay) {
26
26
  return (0, _react2.jsx)(_box.default, {
27
- padding: "scale.100",
27
+ padding: "space.100",
28
28
  display: "block",
29
29
  UNSAFE_style: {
30
30
  minWidth: 40,
@@ -38,8 +38,8 @@ var WeekHeader = /*#__PURE__*/(0, _react.memo)(function WeekHeader(_ref) {
38
38
  },
39
39
  key: shortDay
40
40
  }, (0, _react2.jsx)(_text.default, {
41
- fontWeight: "700",
42
- fontSize: "11px",
41
+ fontWeight: "bold",
42
+ fontSize: "size.050",
43
43
  verticalAlign: "middle",
44
44
  textTransform: "uppercase"
45
45
  }, shortDay));
@@ -45,14 +45,14 @@ var dateCellStyles = function dateCellStyles() {
45
45
  borderRadius: 3,
46
46
  color: textColor[mode],
47
47
  cursor: 'pointer',
48
- fontSize: 14,
48
+ fontSize: "var(--ds-font-size-100, 14px)",
49
49
  textAlign: 'center',
50
50
  '&[data-sibling]': {
51
51
  color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
52
52
  },
53
53
  '&[data-today]': {
54
54
  color: todayColor[mode],
55
- fontWeight: 'bold',
55
+ fontWeight: "var(--ds-font-weight-bold, bold)",
56
56
  '&::after': {
57
57
  display: 'block',
58
58
  height: 2,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -24,7 +24,7 @@ import useUniqueId from './internal/hooks/use-unique-id';
24
24
  const analyticsAttributes = {
25
25
  componentName: 'calendar',
26
26
  packageName: "@atlaskit/calendar",
27
- packageVersion: "13.0.0"
27
+ packageVersion: "13.0.2"
28
28
  };
29
29
  const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
30
30
  day,
@@ -160,7 +160,7 @@ const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
160
160
  "aria-relevant": "text"
161
161
  }, announcerDate)), jsx(Box, {
162
162
  display: "inlineBlock",
163
- padding: "scale.200",
163
+ padding: "space.200",
164
164
  UNSAFE_style: {
165
165
  userSelect: 'none'
166
166
  },
@@ -169,7 +169,7 @@ const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
169
169
  role: "grid",
170
170
  tabIndex: tabIndex
171
171
  }, jsx(Stack, {
172
- gap: "scale.150"
172
+ gap: "space.150"
173
173
  }, jsx(Header // The month number needs to be translated to index in the month
174
174
  // name array e.g. 1 (January) -> 0
175
175
  , {
@@ -19,10 +19,10 @@ const Header = /*#__PURE__*/memo(function Header({
19
19
  }) {
20
20
  return jsx(Box, {
21
21
  display: "block",
22
- paddingInline: "scale.100",
22
+ paddingInline: "space.100",
23
23
  "aria-hidden": "true"
24
24
  }, jsx(Inline, {
25
- gap: "scale.0",
25
+ gap: "space.0",
26
26
  alignItems: "center",
27
27
  justifyContent: "space-between"
28
28
  }, jsx(Button, {
@@ -9,7 +9,7 @@ const WeekHeader = /*#__PURE__*/memo(function WeekHeader({
9
9
  daysShort
10
10
  }) {
11
11
  return jsx(WeekDayGrid, null, daysShort.map(shortDay => jsx(Box, {
12
- padding: "scale.100",
12
+ padding: "space.100",
13
13
  display: "block",
14
14
  UNSAFE_style: {
15
15
  minWidth: 40,
@@ -23,8 +23,8 @@ const WeekHeader = /*#__PURE__*/memo(function WeekHeader({
23
23
  },
24
24
  key: shortDay
25
25
  }, jsx(Text, {
26
- fontWeight: "700",
27
- fontSize: "11px",
26
+ fontWeight: "bold",
27
+ fontSize: "size.050",
28
28
  verticalAlign: "middle",
29
29
  textTransform: "uppercase"
30
30
  }, shortDay))));
@@ -34,14 +34,14 @@ export const dateCellStyles = (mode = 'light') => ({
34
34
  borderRadius: 3,
35
35
  color: textColor[mode],
36
36
  cursor: 'pointer',
37
- fontSize: 14,
37
+ fontSize: "var(--ds-font-size-100, 14px)",
38
38
  textAlign: 'center',
39
39
  '&[data-sibling]': {
40
40
  color: `var(--ds-text-subtlest, ${N200})`
41
41
  },
42
42
  '&[data-today]': {
43
43
  color: todayColor[mode],
44
- fontWeight: 'bold',
44
+ fontWeight: "var(--ds-font-weight-bold, bold)",
45
45
  '&::after': {
46
46
  display: 'block',
47
47
  height: 2,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -30,7 +30,7 @@ import useUniqueId from './internal/hooks/use-unique-id';
30
30
  var analyticsAttributes = {
31
31
  componentName: 'calendar',
32
32
  packageName: "@atlaskit/calendar",
33
- packageVersion: "13.0.0"
33
+ packageVersion: "13.0.2"
34
34
  };
35
35
  var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
36
36
  var day = _ref.day,
@@ -193,7 +193,7 @@ var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
193
193
  "aria-relevant": "text"
194
194
  }, announcerDate)), jsx(Box, {
195
195
  display: "inlineBlock",
196
- padding: "scale.200",
196
+ padding: "space.200",
197
197
  UNSAFE_style: {
198
198
  userSelect: 'none'
199
199
  },
@@ -202,7 +202,7 @@ var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
202
202
  role: "grid",
203
203
  tabIndex: tabIndex
204
204
  }, jsx(Stack, {
205
- gap: "scale.150"
205
+ gap: "space.150"
206
206
  }, jsx(Header // The month number needs to be translated to index in the month
207
207
  // name array e.g. 1 (January) -> 0
208
208
  , {
@@ -20,10 +20,10 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
20
20
  testId = _ref.testId;
21
21
  return jsx(Box, {
22
22
  display: "block",
23
- paddingInline: "scale.100",
23
+ paddingInline: "space.100",
24
24
  "aria-hidden": "true"
25
25
  }, jsx(Inline, {
26
- gap: "scale.0",
26
+ gap: "space.0",
27
27
  alignItems: "center",
28
28
  justifyContent: "space-between"
29
29
  }, jsx(Button, {
@@ -9,7 +9,7 @@ var WeekHeader = /*#__PURE__*/memo(function WeekHeader(_ref) {
9
9
  var daysShort = _ref.daysShort;
10
10
  return jsx(WeekDayGrid, null, daysShort.map(function (shortDay) {
11
11
  return jsx(Box, {
12
- padding: "scale.100",
12
+ padding: "space.100",
13
13
  display: "block",
14
14
  UNSAFE_style: {
15
15
  minWidth: 40,
@@ -23,8 +23,8 @@ var WeekHeader = /*#__PURE__*/memo(function WeekHeader(_ref) {
23
23
  },
24
24
  key: shortDay
25
25
  }, jsx(Text, {
26
- fontWeight: "700",
27
- fontSize: "11px",
26
+ fontWeight: "bold",
27
+ fontSize: "size.050",
28
28
  verticalAlign: "middle",
29
29
  textTransform: "uppercase"
30
30
  }, shortDay));
@@ -36,14 +36,14 @@ export var dateCellStyles = function dateCellStyles() {
36
36
  borderRadius: 3,
37
37
  color: textColor[mode],
38
38
  cursor: 'pointer',
39
- fontSize: 14,
39
+ fontSize: "var(--ds-font-size-100, 14px)",
40
40
  textAlign: 'center',
41
41
  '&[data-sibling]': {
42
42
  color: "var(--ds-text-subtlest, ".concat(N200, ")")
43
43
  },
44
44
  '&[data-today]': {
45
45
  color: todayColor[mode],
46
- fontWeight: 'bold',
46
+ fontWeight: "var(--ds-font-weight-bold, bold)",
47
47
  '&::after': {
48
48
  display: 'block',
49
49
  height: 2,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
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.0",
3
+ "version": "13.0.2",
4
4
  "description": "An interactive calendar for date selection experiences.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/analytics-next": "^8.2.0",
28
28
  "@atlaskit/button": "^16.5.0",
29
- "@atlaskit/ds-explorations": "^1.7.0",
29
+ "@atlaskit/ds-explorations": "^2.0.0",
30
30
  "@atlaskit/ds-lib": "^2.1.0",
31
31
  "@atlaskit/heading": "^1.0.2",
32
32
  "@atlaskit/icon": "^21.11.0",