@atlaskit/calendar 12.1.4 → 12.1.8
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 +26 -0
- package/dist/cjs/calendar.js +7 -9
- package/dist/cjs/internal/components/heading.js +5 -7
- package/dist/cjs/internal/components/week-header.js +1 -3
- package/dist/cjs/internal/constants.js +1 -1
- package/dist/cjs/internal/hooks/use-get-weeks.js +2 -2
- package/dist/cjs/internal/hooks/use-handle-date-change.js +2 -2
- package/dist/cjs/internal/styles/date.js +21 -23
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/calendar.js +5 -6
- package/dist/es2019/internal/components/heading.js +5 -6
- package/dist/es2019/internal/components/week-header.js +1 -2
- package/dist/es2019/internal/styles/date.js +21 -22
- package/dist/es2019/version.json +1 -1
- package/dist/esm/calendar.js +7 -8
- package/dist/esm/internal/components/heading.js +5 -6
- package/dist/esm/internal/components/week-header.js +1 -2
- package/dist/esm/internal/hooks/use-get-weeks.js +2 -2
- package/dist/esm/internal/hooks/use-handle-date-change.js +2 -2
- package/dist/esm/internal/styles/date.js +21 -22
- package/dist/esm/version.json +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 12.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.1.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 12.1.6
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 12.1.5
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 12.1.4
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -25,8 +25,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
25
25
|
|
|
26
26
|
var _components = _interopRequireDefault(require("@atlaskit/theme/components"));
|
|
27
27
|
|
|
28
|
-
var _tokens = require("@atlaskit/tokens");
|
|
29
|
-
|
|
30
28
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
31
29
|
|
|
32
30
|
var _heading = _interopRequireDefault(require("./internal/components/heading"));
|
|
@@ -53,16 +51,16 @@ var _useLocale2 = _interopRequireDefault(require("./internal/hooks/use-locale"))
|
|
|
53
51
|
|
|
54
52
|
var _useUniqueId = _interopRequireDefault(require("./internal/hooks/use-unique-id"));
|
|
55
53
|
|
|
56
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
54
|
+
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; }
|
|
57
55
|
|
|
58
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
56
|
+
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
57
|
|
|
60
58
|
var lightWrapperStyles = (0, _core.css)({
|
|
61
59
|
display: 'inline-block',
|
|
62
60
|
boxSizing: 'border-box',
|
|
63
61
|
padding: 16,
|
|
64
|
-
backgroundColor: (
|
|
65
|
-
color: (
|
|
62
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
63
|
+
color: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
66
64
|
outline: 'none',
|
|
67
65
|
userSelect: 'none'
|
|
68
66
|
});
|
|
@@ -70,8 +68,8 @@ var darkWrapperStyles = (0, _core.css)({
|
|
|
70
68
|
display: 'inline-block',
|
|
71
69
|
boxSizing: 'border-box',
|
|
72
70
|
padding: 16,
|
|
73
|
-
backgroundColor: (
|
|
74
|
-
color: (
|
|
71
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N700, ")"),
|
|
72
|
+
color: "var(--ds-text, ".concat(_colors.DN600, ")"),
|
|
75
73
|
outline: 'none',
|
|
76
74
|
userSelect: 'none'
|
|
77
75
|
});
|
|
@@ -85,7 +83,7 @@ var gridsContainerStyles = (0, _core.css)({
|
|
|
85
83
|
var analyticsAttributes = {
|
|
86
84
|
componentName: 'calendar',
|
|
87
85
|
packageName: "@atlaskit/calendar",
|
|
88
|
-
packageVersion: "12.1.
|
|
86
|
+
packageVersion: "12.1.8"
|
|
89
87
|
};
|
|
90
88
|
var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
91
89
|
var day = _ref.day,
|
|
@@ -19,17 +19,15 @@ var _chevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/ch
|
|
|
19
19
|
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
21
|
|
|
22
|
-
var _tokens = require("@atlaskit/tokens");
|
|
23
|
-
|
|
24
22
|
/** @jsx jsx */
|
|
25
23
|
var headingColor = {
|
|
26
|
-
light: (
|
|
27
|
-
dark: (
|
|
24
|
+
light: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
25
|
+
dark: "var(--ds-text, ".concat(_colors.DN800, ")")
|
|
28
26
|
};
|
|
29
27
|
var headingStyles = (0, _core.css)({
|
|
30
28
|
display: 'flex',
|
|
31
29
|
padding: '0 0 13px 0',
|
|
32
|
-
color: (
|
|
30
|
+
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
33
31
|
fontWeight: 'bold'
|
|
34
32
|
});
|
|
35
33
|
|
|
@@ -71,7 +69,7 @@ var Heading = /*#__PURE__*/(0, _react.memo)(function Heading(_ref) {
|
|
|
71
69
|
iconBefore: (0, _core.jsx)(_chevronLeftLarge.default, {
|
|
72
70
|
label: "Last month",
|
|
73
71
|
size: "medium",
|
|
74
|
-
primaryColor: (
|
|
72
|
+
primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")")
|
|
75
73
|
})
|
|
76
74
|
}), (0, _core.jsx)("div", {
|
|
77
75
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
@@ -87,7 +85,7 @@ var Heading = /*#__PURE__*/(0, _react.memo)(function Heading(_ref) {
|
|
|
87
85
|
iconBefore: (0, _core.jsx)(_chevronRightLarge.default, {
|
|
88
86
|
label: "Next month",
|
|
89
87
|
size: "medium",
|
|
90
|
-
primaryColor: (
|
|
88
|
+
primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")")
|
|
91
89
|
})
|
|
92
90
|
}));
|
|
93
91
|
});
|
|
@@ -11,8 +11,6 @@ var _core = require("@emotion/core");
|
|
|
11
11
|
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
|
|
14
|
-
var _tokens = require("@atlaskit/tokens");
|
|
15
|
-
|
|
16
14
|
/** @jsx jsx */
|
|
17
15
|
var dayNameGridStyles = (0, _core.css)({
|
|
18
16
|
display: 'grid',
|
|
@@ -24,7 +22,7 @@ var dayNameCellStyles = (0, _core.css)({
|
|
|
24
22
|
minWidth: 40,
|
|
25
23
|
padding: '8px 8px',
|
|
26
24
|
border: 0,
|
|
27
|
-
color: (
|
|
25
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N200, ")"),
|
|
28
26
|
fontSize: 11,
|
|
29
27
|
fontWeight: 700,
|
|
30
28
|
textAlign: 'center',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.monthsPerYear = exports.daysPerWeek = exports.blankStringArray = exports.arrowKeys = void 0;
|
|
7
7
|
var arrowKeys = {
|
|
8
8
|
ArrowDown: 'down',
|
|
9
9
|
ArrowLeft: 'left',
|
|
@@ -21,9 +21,9 @@ var _dateToString = _interopRequireDefault(require("../utils/date-to-string"));
|
|
|
21
21
|
|
|
22
22
|
var _getBaseCalendar = _interopRequireDefault(require("../utils/get-base-calendar"));
|
|
23
23
|
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
24
|
+
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; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
26
|
+
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; }
|
|
27
27
|
|
|
28
28
|
function useGetCalendarWithSixthWeek(calendar, _ref) {
|
|
29
29
|
var month = _ref.month,
|
|
@@ -19,9 +19,9 @@ var _dateToString = _interopRequireDefault(require("../utils/date-to-string"));
|
|
|
19
19
|
|
|
20
20
|
var _getDaysInMonth = _interopRequireDefault(require("../utils/get-days-in-month"));
|
|
21
21
|
|
|
22
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
24
|
+
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; }
|
|
25
25
|
|
|
26
26
|
var getNextMonth = function getNextMonth(monthValue, yearValue) {
|
|
27
27
|
var month = monthValue;
|
|
@@ -7,32 +7,30 @@ exports.dateCellStyles = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
|
|
10
|
-
var _tokens = require("@atlaskit/tokens");
|
|
11
|
-
|
|
12
10
|
var textColor = {
|
|
13
|
-
light: (
|
|
14
|
-
dark: (
|
|
11
|
+
light: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
12
|
+
dark: "var(--ds-text, ".concat(_colors.DN600, ")")
|
|
15
13
|
};
|
|
16
|
-
var textColorMedium = (
|
|
14
|
+
var textColorMedium = "var(--ds-text-subtle, ".concat(_colors.N600, ")");
|
|
17
15
|
var todayColor = {
|
|
18
|
-
light: (
|
|
19
|
-
dark: (
|
|
16
|
+
light: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
|
|
17
|
+
dark: "var(--ds-text-brand, ".concat(_colors.B100, ")")
|
|
20
18
|
};
|
|
21
19
|
var hoverBackground = {
|
|
22
|
-
light: (
|
|
23
|
-
dark: (
|
|
20
|
+
light: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"),
|
|
21
|
+
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N800, ")")
|
|
24
22
|
};
|
|
25
23
|
var textSelected = {
|
|
26
|
-
light: (
|
|
27
|
-
dark: (
|
|
24
|
+
light: "var(--ds-text-brand, ".concat(_colors.N0, ")"),
|
|
25
|
+
dark: "var(--ds-text-brand, ".concat(_colors.N700, ")")
|
|
28
26
|
};
|
|
29
27
|
var selectedBackground = {
|
|
30
|
-
light: (
|
|
31
|
-
dark: (
|
|
28
|
+
light: "var(--ds-background-brand, ".concat(_colors.N500, ")"),
|
|
29
|
+
dark: "var(--ds-background-brand, ".concat(_colors.N0, ")")
|
|
32
30
|
};
|
|
33
31
|
var borderColorFocused = {
|
|
34
|
-
light: (
|
|
35
|
-
dark: (
|
|
32
|
+
light: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
33
|
+
dark: "var(--ds-border-focused, ".concat(_colors.B75, ")")
|
|
36
34
|
};
|
|
37
35
|
|
|
38
36
|
var dateCellStyles = function dateCellStyles() {
|
|
@@ -50,7 +48,7 @@ var dateCellStyles = function dateCellStyles() {
|
|
|
50
48
|
fontSize: 14,
|
|
51
49
|
textAlign: 'center',
|
|
52
50
|
'&[data-sibling]': {
|
|
53
|
-
color: (
|
|
51
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
54
52
|
},
|
|
55
53
|
'&[data-today]': {
|
|
56
54
|
color: todayColor[mode],
|
|
@@ -67,15 +65,15 @@ var dateCellStyles = function dateCellStyles() {
|
|
|
67
65
|
}
|
|
68
66
|
},
|
|
69
67
|
'&[data-prev-selected]': {
|
|
70
|
-
backgroundColor: (
|
|
71
|
-
color: (
|
|
68
|
+
backgroundColor: "var(--ds-background-brand, ".concat(_colors.B50, ")"),
|
|
69
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")")
|
|
72
70
|
},
|
|
73
71
|
'&[data-selected]': {
|
|
74
72
|
backgroundColor: selectedBackground[mode],
|
|
75
73
|
color: textSelected[mode]
|
|
76
74
|
},
|
|
77
75
|
'&[data-disabled]': {
|
|
78
|
-
color: (
|
|
76
|
+
color: "var(--ds-text-disabled, ".concat(_colors.N40, ")"),
|
|
79
77
|
cursor: 'not-allowed'
|
|
80
78
|
},
|
|
81
79
|
'&[data-focused]': {
|
|
@@ -86,22 +84,22 @@ var dateCellStyles = function dateCellStyles() {
|
|
|
86
84
|
color: textColor[mode]
|
|
87
85
|
},
|
|
88
86
|
'&:active': {
|
|
89
|
-
backgroundColor: (
|
|
87
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.B50, ")"),
|
|
90
88
|
color: textColor[mode]
|
|
91
89
|
},
|
|
92
90
|
'&[data-selected]:hover': {
|
|
93
91
|
color: textColorMedium
|
|
94
92
|
},
|
|
95
93
|
'&[data-prev-selected]:hover': {
|
|
96
|
-
backgroundColor: (
|
|
94
|
+
backgroundColor: "var(--ds-background-brand, ".concat(_colors.B50, ")"),
|
|
97
95
|
color: textColorMedium
|
|
98
96
|
},
|
|
99
97
|
'&[data-sibling]:hover': {
|
|
100
|
-
color: (
|
|
98
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
101
99
|
},
|
|
102
100
|
'&[data-disabled]:hover': {
|
|
103
101
|
backgroundColor: 'transparent',
|
|
104
|
-
color: (
|
|
102
|
+
color: "var(--ds-text-disabled, ".concat(_colors.N40, ")")
|
|
105
103
|
}
|
|
106
104
|
};
|
|
107
105
|
};
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/calendar.js
CHANGED
|
@@ -7,7 +7,6 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatfor
|
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
8
8
|
import { DN600, N0, N700, N900 } from '@atlaskit/theme/colors';
|
|
9
9
|
import GlobalTheme from '@atlaskit/theme/components';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
12
11
|
import HeadingComponent from './internal/components/heading';
|
|
13
12
|
import WeekDaysComponent from './internal/components/week-days';
|
|
@@ -25,8 +24,8 @@ const lightWrapperStyles = css({
|
|
|
25
24
|
display: 'inline-block',
|
|
26
25
|
boxSizing: 'border-box',
|
|
27
26
|
padding: 16,
|
|
28
|
-
backgroundColor:
|
|
29
|
-
color:
|
|
27
|
+
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
28
|
+
color: `var(--ds-text, ${N900})`,
|
|
30
29
|
outline: 'none',
|
|
31
30
|
userSelect: 'none'
|
|
32
31
|
});
|
|
@@ -34,8 +33,8 @@ const darkWrapperStyles = css({
|
|
|
34
33
|
display: 'inline-block',
|
|
35
34
|
boxSizing: 'border-box',
|
|
36
35
|
padding: 16,
|
|
37
|
-
backgroundColor:
|
|
38
|
-
color:
|
|
36
|
+
backgroundColor: `var(--ds-surface-overlay, ${N700})`,
|
|
37
|
+
color: `var(--ds-text, ${DN600})`,
|
|
39
38
|
outline: 'none',
|
|
40
39
|
userSelect: 'none'
|
|
41
40
|
});
|
|
@@ -49,7 +48,7 @@ const gridsContainerStyles = css({
|
|
|
49
48
|
const analyticsAttributes = {
|
|
50
49
|
componentName: 'calendar',
|
|
51
50
|
packageName: "@atlaskit/calendar",
|
|
52
|
-
packageVersion: "12.1.
|
|
51
|
+
packageVersion: "12.1.8"
|
|
53
52
|
};
|
|
54
53
|
const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
|
|
55
54
|
day,
|
|
@@ -5,15 +5,14 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
5
5
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
6
6
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
|
7
7
|
import { DN800, N70, N800 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
const headingColor = {
|
|
10
|
-
light:
|
|
11
|
-
dark:
|
|
9
|
+
light: `var(--ds-text, ${N800})`,
|
|
10
|
+
dark: `var(--ds-text, ${DN800})`
|
|
12
11
|
};
|
|
13
12
|
const headingStyles = css({
|
|
14
13
|
display: 'flex',
|
|
15
14
|
padding: '0 0 13px 0',
|
|
16
|
-
color:
|
|
15
|
+
color: `var(--ds-text, ${N800})`,
|
|
17
16
|
fontWeight: 'bold'
|
|
18
17
|
});
|
|
19
18
|
|
|
@@ -51,7 +50,7 @@ const Heading = /*#__PURE__*/memo(function Heading({
|
|
|
51
50
|
iconBefore: jsx(ArrowleftIcon, {
|
|
52
51
|
label: "Last month",
|
|
53
52
|
size: "medium",
|
|
54
|
-
primaryColor:
|
|
53
|
+
primaryColor: `var(--ds-text-subtlest, ${N70})`
|
|
55
54
|
})
|
|
56
55
|
}), jsx("div", {
|
|
57
56
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
@@ -67,7 +66,7 @@ const Heading = /*#__PURE__*/memo(function Heading({
|
|
|
67
66
|
iconBefore: jsx(ArrowrightIcon, {
|
|
68
67
|
label: "Next month",
|
|
69
68
|
size: "medium",
|
|
70
|
-
primaryColor:
|
|
69
|
+
primaryColor: `var(--ds-text-subtlest, ${N70})`
|
|
71
70
|
})
|
|
72
71
|
}));
|
|
73
72
|
});
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/core';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
const dayNameGridStyles = css({
|
|
7
6
|
display: 'grid',
|
|
8
7
|
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
@@ -13,7 +12,7 @@ const dayNameCellStyles = css({
|
|
|
13
12
|
minWidth: 40,
|
|
14
13
|
padding: '8px 8px',
|
|
15
14
|
border: 0,
|
|
16
|
-
color:
|
|
15
|
+
color: `var(--ds-text-subtle, ${N200})`,
|
|
17
16
|
fontSize: 11,
|
|
18
17
|
fontWeight: 700,
|
|
19
18
|
textAlign: 'center',
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { B100, B400, B50, B75, DN600, N0, N200, N30, N40, N500, N600, N700, N800, N900 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
const textColor = {
|
|
4
|
-
light:
|
|
5
|
-
dark:
|
|
3
|
+
light: `var(--ds-text, ${N900})`,
|
|
4
|
+
dark: `var(--ds-text, ${DN600})`
|
|
6
5
|
};
|
|
7
|
-
const textColorMedium =
|
|
6
|
+
const textColorMedium = `var(--ds-text-subtle, ${N600})`;
|
|
8
7
|
const todayColor = {
|
|
9
|
-
light:
|
|
10
|
-
dark:
|
|
8
|
+
light: `var(--ds-text-brand, ${B400})`,
|
|
9
|
+
dark: `var(--ds-text-brand, ${B100})`
|
|
11
10
|
};
|
|
12
11
|
const hoverBackground = {
|
|
13
|
-
light:
|
|
14
|
-
dark:
|
|
12
|
+
light: `var(--ds-background-neutral-subtle-hovered, ${N30})`,
|
|
13
|
+
dark: `var(--ds-background-neutral-subtle-hovered, ${N800})`
|
|
15
14
|
};
|
|
16
15
|
const textSelected = {
|
|
17
|
-
light:
|
|
18
|
-
dark:
|
|
16
|
+
light: `var(--ds-text-brand, ${N0})`,
|
|
17
|
+
dark: `var(--ds-text-brand, ${N700})`
|
|
19
18
|
};
|
|
20
19
|
const selectedBackground = {
|
|
21
|
-
light:
|
|
22
|
-
dark:
|
|
20
|
+
light: `var(--ds-background-brand, ${N500})`,
|
|
21
|
+
dark: `var(--ds-background-brand, ${N0})`
|
|
23
22
|
};
|
|
24
23
|
const borderColorFocused = {
|
|
25
|
-
light:
|
|
26
|
-
dark:
|
|
24
|
+
light: `var(--ds-border-focused, ${B100})`,
|
|
25
|
+
dark: `var(--ds-border-focused, ${B75})`
|
|
27
26
|
};
|
|
28
27
|
export const dateCellStyles = (mode = 'light') => ({
|
|
29
28
|
all: 'unset',
|
|
@@ -38,7 +37,7 @@ export const dateCellStyles = (mode = 'light') => ({
|
|
|
38
37
|
fontSize: 14,
|
|
39
38
|
textAlign: 'center',
|
|
40
39
|
'&[data-sibling]': {
|
|
41
|
-
color:
|
|
40
|
+
color: `var(--ds-text-subtlest, ${N200})`
|
|
42
41
|
},
|
|
43
42
|
'&[data-today]': {
|
|
44
43
|
color: todayColor[mode],
|
|
@@ -55,15 +54,15 @@ export const dateCellStyles = (mode = 'light') => ({
|
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
56
|
'&[data-prev-selected]': {
|
|
58
|
-
backgroundColor:
|
|
59
|
-
color:
|
|
57
|
+
backgroundColor: `var(--ds-background-brand, ${B50})`,
|
|
58
|
+
color: `var(--ds-text-subtle, ${N600})`
|
|
60
59
|
},
|
|
61
60
|
'&[data-selected]': {
|
|
62
61
|
backgroundColor: selectedBackground[mode],
|
|
63
62
|
color: textSelected[mode]
|
|
64
63
|
},
|
|
65
64
|
'&[data-disabled]': {
|
|
66
|
-
color:
|
|
65
|
+
color: `var(--ds-text-disabled, ${N40})`,
|
|
67
66
|
cursor: 'not-allowed'
|
|
68
67
|
},
|
|
69
68
|
'&[data-focused]': {
|
|
@@ -74,21 +73,21 @@ export const dateCellStyles = (mode = 'light') => ({
|
|
|
74
73
|
color: textColor[mode]
|
|
75
74
|
},
|
|
76
75
|
'&:active': {
|
|
77
|
-
backgroundColor:
|
|
76
|
+
backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${B50})`,
|
|
78
77
|
color: textColor[mode]
|
|
79
78
|
},
|
|
80
79
|
'&[data-selected]:hover': {
|
|
81
80
|
color: textColorMedium
|
|
82
81
|
},
|
|
83
82
|
'&[data-prev-selected]:hover': {
|
|
84
|
-
backgroundColor:
|
|
83
|
+
backgroundColor: `var(--ds-background-brand, ${B50})`,
|
|
85
84
|
color: textColorMedium
|
|
86
85
|
},
|
|
87
86
|
'&[data-sibling]:hover': {
|
|
88
|
-
color:
|
|
87
|
+
color: `var(--ds-text-subtlest, ${N200})`
|
|
89
88
|
},
|
|
90
89
|
'&[data-disabled]:hover': {
|
|
91
90
|
backgroundColor: 'transparent',
|
|
92
|
-
color:
|
|
91
|
+
color: `var(--ds-text-disabled, ${N40})`
|
|
93
92
|
}
|
|
94
93
|
});
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/calendar.js
CHANGED
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
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; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
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) { _defineProperty(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; }
|
|
8
8
|
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import { forwardRef, memo, useMemo } from 'react';
|
|
@@ -13,7 +13,6 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatfor
|
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
14
14
|
import { DN600, N0, N700, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import GlobalTheme from '@atlaskit/theme/components';
|
|
16
|
-
import { token } from '@atlaskit/tokens';
|
|
17
16
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
18
17
|
import HeadingComponent from './internal/components/heading';
|
|
19
18
|
import WeekDaysComponent from './internal/components/week-days';
|
|
@@ -31,8 +30,8 @@ var lightWrapperStyles = css({
|
|
|
31
30
|
display: 'inline-block',
|
|
32
31
|
boxSizing: 'border-box',
|
|
33
32
|
padding: 16,
|
|
34
|
-
backgroundColor:
|
|
35
|
-
color:
|
|
33
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
34
|
+
color: "var(--ds-text, ".concat(N900, ")"),
|
|
36
35
|
outline: 'none',
|
|
37
36
|
userSelect: 'none'
|
|
38
37
|
});
|
|
@@ -40,8 +39,8 @@ var darkWrapperStyles = css({
|
|
|
40
39
|
display: 'inline-block',
|
|
41
40
|
boxSizing: 'border-box',
|
|
42
41
|
padding: 16,
|
|
43
|
-
backgroundColor:
|
|
44
|
-
color:
|
|
42
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(N700, ")"),
|
|
43
|
+
color: "var(--ds-text, ".concat(DN600, ")"),
|
|
45
44
|
outline: 'none',
|
|
46
45
|
userSelect: 'none'
|
|
47
46
|
});
|
|
@@ -55,7 +54,7 @@ var gridsContainerStyles = css({
|
|
|
55
54
|
var analyticsAttributes = {
|
|
56
55
|
componentName: 'calendar',
|
|
57
56
|
packageName: "@atlaskit/calendar",
|
|
58
|
-
packageVersion: "12.1.
|
|
57
|
+
packageVersion: "12.1.8"
|
|
59
58
|
};
|
|
60
59
|
var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
61
60
|
var day = _ref.day,
|
|
@@ -5,15 +5,14 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
5
5
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
6
6
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
|
7
7
|
import { DN800, N70, N800 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
var headingColor = {
|
|
10
|
-
light:
|
|
11
|
-
dark:
|
|
9
|
+
light: "var(--ds-text, ".concat(N800, ")"),
|
|
10
|
+
dark: "var(--ds-text, ".concat(DN800, ")")
|
|
12
11
|
};
|
|
13
12
|
var headingStyles = css({
|
|
14
13
|
display: 'flex',
|
|
15
14
|
padding: '0 0 13px 0',
|
|
16
|
-
color:
|
|
15
|
+
color: "var(--ds-text, ".concat(N800, ")"),
|
|
17
16
|
fontWeight: 'bold'
|
|
18
17
|
});
|
|
19
18
|
|
|
@@ -55,7 +54,7 @@ var Heading = /*#__PURE__*/memo(function Heading(_ref) {
|
|
|
55
54
|
iconBefore: jsx(ArrowleftIcon, {
|
|
56
55
|
label: "Last month",
|
|
57
56
|
size: "medium",
|
|
58
|
-
primaryColor:
|
|
57
|
+
primaryColor: "var(--ds-text-subtlest, ".concat(N70, ")")
|
|
59
58
|
})
|
|
60
59
|
}), jsx("div", {
|
|
61
60
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
@@ -71,7 +70,7 @@ var Heading = /*#__PURE__*/memo(function Heading(_ref) {
|
|
|
71
70
|
iconBefore: jsx(ArrowrightIcon, {
|
|
72
71
|
label: "Next month",
|
|
73
72
|
size: "medium",
|
|
74
|
-
primaryColor:
|
|
73
|
+
primaryColor: "var(--ds-text-subtlest, ".concat(N70, ")")
|
|
75
74
|
})
|
|
76
75
|
}));
|
|
77
76
|
});
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/core';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
var dayNameGridStyles = css({
|
|
7
6
|
display: 'grid',
|
|
8
7
|
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
@@ -13,7 +12,7 @@ var dayNameCellStyles = css({
|
|
|
13
12
|
minWidth: 40,
|
|
14
13
|
padding: '8px 8px',
|
|
15
14
|
border: 0,
|
|
16
|
-
color:
|
|
15
|
+
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
17
16
|
fontSize: 11,
|
|
18
17
|
fontWeight: 700,
|
|
19
18
|
textAlign: 'center',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
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; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
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) { _defineProperty(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; }
|
|
7
7
|
|
|
8
8
|
import { useMemo } from 'react'; // eslint-disable-next-line no-restricted-imports
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
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; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
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) { _defineProperty(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; }
|
|
7
7
|
|
|
8
8
|
import { useCallback, useEffect, useRef } from 'react';
|
|
9
9
|
import { daysPerWeek, monthsPerYear } from '../constants';
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { B100, B400, B50, B75, DN600, N0, N200, N30, N40, N500, N600, N700, N800, N900 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
var textColor = {
|
|
4
|
-
light:
|
|
5
|
-
dark:
|
|
3
|
+
light: "var(--ds-text, ".concat(N900, ")"),
|
|
4
|
+
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
6
5
|
};
|
|
7
|
-
var textColorMedium =
|
|
6
|
+
var textColorMedium = "var(--ds-text-subtle, ".concat(N600, ")");
|
|
8
7
|
var todayColor = {
|
|
9
|
-
light:
|
|
10
|
-
dark:
|
|
8
|
+
light: "var(--ds-text-brand, ".concat(B400, ")"),
|
|
9
|
+
dark: "var(--ds-text-brand, ".concat(B100, ")")
|
|
11
10
|
};
|
|
12
11
|
var hoverBackground = {
|
|
13
|
-
light:
|
|
14
|
-
dark:
|
|
12
|
+
light: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"),
|
|
13
|
+
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(N800, ")")
|
|
15
14
|
};
|
|
16
15
|
var textSelected = {
|
|
17
|
-
light:
|
|
18
|
-
dark:
|
|
16
|
+
light: "var(--ds-text-brand, ".concat(N0, ")"),
|
|
17
|
+
dark: "var(--ds-text-brand, ".concat(N700, ")")
|
|
19
18
|
};
|
|
20
19
|
var selectedBackground = {
|
|
21
|
-
light:
|
|
22
|
-
dark:
|
|
20
|
+
light: "var(--ds-background-brand, ".concat(N500, ")"),
|
|
21
|
+
dark: "var(--ds-background-brand, ".concat(N0, ")")
|
|
23
22
|
};
|
|
24
23
|
var borderColorFocused = {
|
|
25
|
-
light:
|
|
26
|
-
dark:
|
|
24
|
+
light: "var(--ds-border-focused, ".concat(B100, ")"),
|
|
25
|
+
dark: "var(--ds-border-focused, ".concat(B75, ")")
|
|
27
26
|
};
|
|
28
27
|
export var dateCellStyles = function dateCellStyles() {
|
|
29
28
|
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light';
|
|
@@ -40,7 +39,7 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
40
39
|
fontSize: 14,
|
|
41
40
|
textAlign: 'center',
|
|
42
41
|
'&[data-sibling]': {
|
|
43
|
-
color:
|
|
42
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")")
|
|
44
43
|
},
|
|
45
44
|
'&[data-today]': {
|
|
46
45
|
color: todayColor[mode],
|
|
@@ -57,15 +56,15 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
57
56
|
}
|
|
58
57
|
},
|
|
59
58
|
'&[data-prev-selected]': {
|
|
60
|
-
backgroundColor:
|
|
61
|
-
color:
|
|
59
|
+
backgroundColor: "var(--ds-background-brand, ".concat(B50, ")"),
|
|
60
|
+
color: "var(--ds-text-subtle, ".concat(N600, ")")
|
|
62
61
|
},
|
|
63
62
|
'&[data-selected]': {
|
|
64
63
|
backgroundColor: selectedBackground[mode],
|
|
65
64
|
color: textSelected[mode]
|
|
66
65
|
},
|
|
67
66
|
'&[data-disabled]': {
|
|
68
|
-
color:
|
|
67
|
+
color: "var(--ds-text-disabled, ".concat(N40, ")"),
|
|
69
68
|
cursor: 'not-allowed'
|
|
70
69
|
},
|
|
71
70
|
'&[data-focused]': {
|
|
@@ -76,22 +75,22 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
76
75
|
color: textColor[mode]
|
|
77
76
|
},
|
|
78
77
|
'&:active': {
|
|
79
|
-
backgroundColor:
|
|
78
|
+
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(B50, ")"),
|
|
80
79
|
color: textColor[mode]
|
|
81
80
|
},
|
|
82
81
|
'&[data-selected]:hover': {
|
|
83
82
|
color: textColorMedium
|
|
84
83
|
},
|
|
85
84
|
'&[data-prev-selected]:hover': {
|
|
86
|
-
backgroundColor:
|
|
85
|
+
backgroundColor: "var(--ds-background-brand, ".concat(B50, ")"),
|
|
87
86
|
color: textColorMedium
|
|
88
87
|
},
|
|
89
88
|
'&[data-sibling]:hover': {
|
|
90
|
-
color:
|
|
89
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")")
|
|
91
90
|
},
|
|
92
91
|
'&[data-disabled]:hover': {
|
|
93
92
|
backgroundColor: 'transparent',
|
|
94
|
-
color:
|
|
93
|
+
color: "var(--ds-text-disabled, ".concat(N40, ")")
|
|
95
94
|
}
|
|
96
95
|
};
|
|
97
96
|
};
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.8",
|
|
4
4
|
"description": "A React component for displaying a calendar.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"atlaskit:src": "src/index.ts",
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
|
-
"inPublicMirror": true,
|
|
20
19
|
"releaseModel": "scheduled",
|
|
21
20
|
"website": {
|
|
22
21
|
"name": "Calendar"
|
|
@@ -25,12 +24,12 @@
|
|
|
25
24
|
"dependencies": {
|
|
26
25
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
27
26
|
"@atlaskit/button": "^16.1.0",
|
|
28
|
-
"@atlaskit/ds-lib": "^1.
|
|
29
|
-
"@atlaskit/icon": "^21.
|
|
27
|
+
"@atlaskit/ds-lib": "^1.4.0",
|
|
28
|
+
"@atlaskit/icon": "^21.10.0",
|
|
30
29
|
"@atlaskit/locale": "^2.3.0",
|
|
31
|
-
"@atlaskit/theme": "^12.
|
|
32
|
-
"@atlaskit/tokens": "^0.
|
|
33
|
-
"@atlaskit/visually-hidden": "^0.
|
|
30
|
+
"@atlaskit/theme": "^12.1.0",
|
|
31
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
32
|
+
"@atlaskit/visually-hidden": "^1.0.0",
|
|
34
33
|
"@babel/runtime": "^7.0.0",
|
|
35
34
|
"@emotion/core": "^10.0.9",
|
|
36
35
|
"date-fns": "^2.17.0",
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
"react": "^16.8.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@atlaskit/build-utils": "*",
|
|
44
42
|
"@atlaskit/docs": "*",
|
|
45
43
|
"@atlaskit/select": "^15.0.0",
|
|
46
44
|
"@atlaskit/ssr": "*",
|
|
@@ -66,7 +64,10 @@
|
|
|
66
64
|
"analytics": "analytics-next",
|
|
67
65
|
"theming": "tokens",
|
|
68
66
|
"deprecation": "no-deprecated-imports",
|
|
69
|
-
"styling":
|
|
67
|
+
"styling": [
|
|
68
|
+
"static",
|
|
69
|
+
"emotion"
|
|
70
|
+
]
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
"af:exports": {
|