@atlaskit/calendar 12.1.9 → 12.1.10
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/calendar.js +1 -1
- package/dist/cjs/internal/styles/date.js +8 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/calendar.js +1 -1
- package/dist/es2019/internal/styles/date.js +8 -8
- package/dist/es2019/version.json +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/internal/styles/date.js +8 -8
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +2 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 12.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 12.1.9
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -83,7 +83,7 @@ var gridsContainerStyles = (0, _core.css)({
|
|
|
83
83
|
var analyticsAttributes = {
|
|
84
84
|
componentName: 'calendar',
|
|
85
85
|
packageName: "@atlaskit/calendar",
|
|
86
|
-
packageVersion: "12.1.
|
|
86
|
+
packageVersion: "12.1.10"
|
|
87
87
|
};
|
|
88
88
|
var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
89
89
|
var day = _ref.day,
|
|
@@ -13,20 +13,20 @@ var textColor = {
|
|
|
13
13
|
};
|
|
14
14
|
var textColorMedium = "var(--ds-text-subtle, ".concat(_colors.N600, ")");
|
|
15
15
|
var todayColor = {
|
|
16
|
-
light: "var(--ds-text-
|
|
17
|
-
dark: "var(--ds-text-
|
|
16
|
+
light: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
|
|
17
|
+
dark: "var(--ds-text-selected, ".concat(_colors.B100, ")")
|
|
18
18
|
};
|
|
19
19
|
var hoverBackground = {
|
|
20
20
|
light: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"),
|
|
21
21
|
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N800, ")")
|
|
22
22
|
};
|
|
23
23
|
var textSelected = {
|
|
24
|
-
light: "var(--ds-text-
|
|
25
|
-
dark: "var(--ds-text-
|
|
24
|
+
light: "var(--ds-text-selected, ".concat(_colors.N0, ")"),
|
|
25
|
+
dark: "var(--ds-text-selected, ".concat(_colors.N700, ")")
|
|
26
26
|
};
|
|
27
27
|
var selectedBackground = {
|
|
28
|
-
light: "var(--ds-background-
|
|
29
|
-
dark: "var(--ds-background-
|
|
28
|
+
light: "var(--ds-background-selected, ".concat(_colors.N500, ")"),
|
|
29
|
+
dark: "var(--ds-background-selected, ".concat(_colors.N0, ")")
|
|
30
30
|
};
|
|
31
31
|
var borderColorFocused = {
|
|
32
32
|
light: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
@@ -65,7 +65,7 @@ var dateCellStyles = function dateCellStyles() {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
'&[data-prev-selected]': {
|
|
68
|
-
backgroundColor: "var(--ds-background-
|
|
68
|
+
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
69
69
|
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")")
|
|
70
70
|
},
|
|
71
71
|
'&[data-selected]': {
|
|
@@ -91,7 +91,7 @@ var dateCellStyles = function dateCellStyles() {
|
|
|
91
91
|
color: textColorMedium
|
|
92
92
|
},
|
|
93
93
|
'&[data-prev-selected]:hover': {
|
|
94
|
-
backgroundColor: "var(--ds-background-
|
|
94
|
+
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
95
95
|
color: textColorMedium
|
|
96
96
|
},
|
|
97
97
|
'&[data-sibling]:hover': {
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/calendar.js
CHANGED
|
@@ -48,7 +48,7 @@ const gridsContainerStyles = css({
|
|
|
48
48
|
const analyticsAttributes = {
|
|
49
49
|
componentName: 'calendar',
|
|
50
50
|
packageName: "@atlaskit/calendar",
|
|
51
|
-
packageVersion: "12.1.
|
|
51
|
+
packageVersion: "12.1.10"
|
|
52
52
|
};
|
|
53
53
|
const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
|
|
54
54
|
day,
|
|
@@ -5,20 +5,20 @@ const textColor = {
|
|
|
5
5
|
};
|
|
6
6
|
const textColorMedium = `var(--ds-text-subtle, ${N600})`;
|
|
7
7
|
const todayColor = {
|
|
8
|
-
light: `var(--ds-text-
|
|
9
|
-
dark: `var(--ds-text-
|
|
8
|
+
light: `var(--ds-text-selected, ${B400})`,
|
|
9
|
+
dark: `var(--ds-text-selected, ${B100})`
|
|
10
10
|
};
|
|
11
11
|
const hoverBackground = {
|
|
12
12
|
light: `var(--ds-background-neutral-subtle-hovered, ${N30})`,
|
|
13
13
|
dark: `var(--ds-background-neutral-subtle-hovered, ${N800})`
|
|
14
14
|
};
|
|
15
15
|
const textSelected = {
|
|
16
|
-
light: `var(--ds-text-
|
|
17
|
-
dark: `var(--ds-text-
|
|
16
|
+
light: `var(--ds-text-selected, ${N0})`,
|
|
17
|
+
dark: `var(--ds-text-selected, ${N700})`
|
|
18
18
|
};
|
|
19
19
|
const selectedBackground = {
|
|
20
|
-
light: `var(--ds-background-
|
|
21
|
-
dark: `var(--ds-background-
|
|
20
|
+
light: `var(--ds-background-selected, ${N500})`,
|
|
21
|
+
dark: `var(--ds-background-selected, ${N0})`
|
|
22
22
|
};
|
|
23
23
|
const borderColorFocused = {
|
|
24
24
|
light: `var(--ds-border-focused, ${B100})`,
|
|
@@ -54,7 +54,7 @@ export const dateCellStyles = (mode = 'light') => ({
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
'&[data-prev-selected]': {
|
|
57
|
-
backgroundColor: `var(--ds-background-
|
|
57
|
+
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
58
58
|
color: `var(--ds-text-subtle, ${N600})`
|
|
59
59
|
},
|
|
60
60
|
'&[data-selected]': {
|
|
@@ -80,7 +80,7 @@ export const dateCellStyles = (mode = 'light') => ({
|
|
|
80
80
|
color: textColorMedium
|
|
81
81
|
},
|
|
82
82
|
'&[data-prev-selected]:hover': {
|
|
83
|
-
backgroundColor: `var(--ds-background-
|
|
83
|
+
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
84
84
|
color: textColorMedium
|
|
85
85
|
},
|
|
86
86
|
'&[data-sibling]:hover': {
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/calendar.js
CHANGED
|
@@ -54,7 +54,7 @@ var gridsContainerStyles = css({
|
|
|
54
54
|
var analyticsAttributes = {
|
|
55
55
|
componentName: 'calendar',
|
|
56
56
|
packageName: "@atlaskit/calendar",
|
|
57
|
-
packageVersion: "12.1.
|
|
57
|
+
packageVersion: "12.1.10"
|
|
58
58
|
};
|
|
59
59
|
var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
60
60
|
var day = _ref.day,
|
|
@@ -5,20 +5,20 @@ var textColor = {
|
|
|
5
5
|
};
|
|
6
6
|
var textColorMedium = "var(--ds-text-subtle, ".concat(N600, ")");
|
|
7
7
|
var todayColor = {
|
|
8
|
-
light: "var(--ds-text-
|
|
9
|
-
dark: "var(--ds-text-
|
|
8
|
+
light: "var(--ds-text-selected, ".concat(B400, ")"),
|
|
9
|
+
dark: "var(--ds-text-selected, ".concat(B100, ")")
|
|
10
10
|
};
|
|
11
11
|
var hoverBackground = {
|
|
12
12
|
light: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"),
|
|
13
13
|
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(N800, ")")
|
|
14
14
|
};
|
|
15
15
|
var textSelected = {
|
|
16
|
-
light: "var(--ds-text-
|
|
17
|
-
dark: "var(--ds-text-
|
|
16
|
+
light: "var(--ds-text-selected, ".concat(N0, ")"),
|
|
17
|
+
dark: "var(--ds-text-selected, ".concat(N700, ")")
|
|
18
18
|
};
|
|
19
19
|
var selectedBackground = {
|
|
20
|
-
light: "var(--ds-background-
|
|
21
|
-
dark: "var(--ds-background-
|
|
20
|
+
light: "var(--ds-background-selected, ".concat(N500, ")"),
|
|
21
|
+
dark: "var(--ds-background-selected, ".concat(N0, ")")
|
|
22
22
|
};
|
|
23
23
|
var borderColorFocused = {
|
|
24
24
|
light: "var(--ds-border-focused, ".concat(B100, ")"),
|
|
@@ -56,7 +56,7 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
'&[data-prev-selected]': {
|
|
59
|
-
backgroundColor: "var(--ds-background-
|
|
59
|
+
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
60
60
|
color: "var(--ds-text-subtle, ".concat(N600, ")")
|
|
61
61
|
},
|
|
62
62
|
'&[data-selected]': {
|
|
@@ -82,7 +82,7 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
82
82
|
color: textColorMedium
|
|
83
83
|
},
|
|
84
84
|
'&[data-prev-selected]:hover': {
|
|
85
|
-
backgroundColor: "var(--ds-background-
|
|
85
|
+
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
86
86
|
color: textColorMedium
|
|
87
87
|
},
|
|
88
88
|
'&[data-sibling]:hover': {
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -56,8 +56,9 @@ export interface CalendarProps extends WithAnalyticsEventsProps {
|
|
|
56
56
|
today?: string;
|
|
57
57
|
/** Year to display the calendar for. */
|
|
58
58
|
year?: number;
|
|
59
|
+
/** BCP 47 language tag (e.g. ja-JP) that ensures dates are in the official format for the locale. */
|
|
59
60
|
locale?: string;
|
|
60
|
-
/** Additional information to be included in the `context` of analytics events */
|
|
61
|
+
/** Additional information to be included in the `context` of analytics events. */
|
|
61
62
|
analyticsContext?: Record<string, any>;
|
|
62
63
|
/**
|
|
63
64
|
* Start day of the week for the calendar.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "12.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "12.1.10",
|
|
4
|
+
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/icon": "^21.10.0",
|
|
29
29
|
"@atlaskit/locale": "^2.3.0",
|
|
30
30
|
"@atlaskit/theme": "^12.1.0",
|
|
31
|
-
"@atlaskit/tokens": "^0.
|
|
31
|
+
"@atlaskit/tokens": "^0.8.0",
|
|
32
32
|
"@atlaskit/visually-hidden": "^1.0.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/core": "^10.0.9",
|
|
@@ -74,5 +74,6 @@
|
|
|
74
74
|
"./types": "./src/entry-points/types.ts",
|
|
75
75
|
".": "./src/index.ts"
|
|
76
76
|
},
|
|
77
|
+
"homepage": "https://atlassian.design/components/calendar/",
|
|
77
78
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
78
79
|
}
|