@atlaskit/calendar 15.1.3 → 16.1.0
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.compiled.css +2 -0
- package/dist/cjs/calendar.js +24 -21
- package/dist/cjs/internal/components/date.compiled.css +44 -0
- package/dist/cjs/internal/components/date.js +36 -19
- package/dist/cjs/internal/components/header.js +11 -16
- package/dist/cjs/internal/components/week-day-grid.compiled.css +1 -0
- package/dist/cjs/internal/components/week-day-grid.js +12 -11
- package/dist/cjs/internal/components/week-days.js +7 -12
- package/dist/cjs/internal/components/week-header.compiled.css +4 -0
- package/dist/cjs/internal/components/week-header.js +16 -22
- package/dist/es2019/calendar.compiled.css +2 -0
- package/dist/es2019/calendar.js +19 -22
- package/dist/es2019/internal/components/date.compiled.css +44 -0
- package/dist/es2019/internal/components/date.js +16 -17
- package/dist/es2019/internal/components/header.js +8 -15
- package/dist/es2019/internal/components/week-day-grid.compiled.css +1 -0
- package/dist/es2019/internal/components/week-day-grid.js +11 -10
- package/dist/es2019/internal/components/week-days.js +4 -11
- package/dist/es2019/internal/components/week-header.compiled.css +4 -0
- package/dist/es2019/internal/components/week-header.js +12 -20
- package/dist/esm/calendar.compiled.css +2 -0
- package/dist/esm/calendar.js +19 -22
- package/dist/esm/internal/components/date.compiled.css +44 -0
- package/dist/esm/internal/components/date.js +32 -17
- package/dist/esm/internal/components/header.js +8 -15
- package/dist/esm/internal/components/week-day-grid.compiled.css +1 -0
- package/dist/esm/internal/components/week-day-grid.js +11 -10
- package/dist/esm/internal/components/week-days.js +4 -11
- package/dist/esm/internal/components/week-header.compiled.css +4 -0
- package/dist/esm/internal/components/week-header.js +12 -20
- package/dist/types/internal/components/header.d.ts +2 -2
- package/dist/types/internal/components/week-day-grid.d.ts +2 -7
- package/dist/types/internal/components/week-days.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/header.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/week-day-grid.d.ts +2 -7
- package/dist/types-ts4.5/internal/components/week-days.d.ts +2 -2
- package/package.json +6 -5
- package/dist/cjs/internal/styles/date.js +0 -79
- package/dist/es2019/internal/styles/date.js +0 -71
- package/dist/esm/internal/styles/date.js +0 -73
- package/dist/types/internal/styles/date.d.ts +0 -2
- package/dist/types-ts4.5/internal/styles/date.d.ts +0 -2
|
@@ -1,35 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
1
|
+
/* week-header.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./week-header.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { memo } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
|
-
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
10
7
|
import WeekDayGrid from './week-day-grid';
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
whiteSpace: 'nowrap',
|
|
15
|
-
// Account for languages with long week day names
|
|
16
|
-
display: 'flex',
|
|
17
|
-
justifyContent: 'center'
|
|
18
|
-
});
|
|
8
|
+
var styles = {
|
|
9
|
+
columnHeader: "_1ul98pqr _o5721q9c _1e0c1txw _1bah1h6o"
|
|
10
|
+
};
|
|
19
11
|
var WeekHeader = /*#__PURE__*/memo(function WeekHeader(_ref) {
|
|
20
12
|
var daysShort = _ref.daysShort,
|
|
21
13
|
testId = _ref.testId;
|
|
22
|
-
return
|
|
14
|
+
return /*#__PURE__*/React.createElement(WeekDayGrid, {
|
|
23
15
|
isHidden: true,
|
|
24
16
|
testId: testId && "".concat(testId, "--column-headers")
|
|
25
17
|
}, daysShort.map(function (shortDay) {
|
|
26
|
-
return
|
|
18
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
27
19
|
padding: "space.100",
|
|
28
|
-
xcss:
|
|
20
|
+
xcss: styles.columnHeader,
|
|
29
21
|
key: shortDay,
|
|
30
22
|
role: "columnheader",
|
|
31
23
|
testId: testId && "".concat(testId, "--column-header")
|
|
32
|
-
},
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
33
25
|
weight: "bold",
|
|
34
26
|
size: "UNSAFE_small",
|
|
35
27
|
align: "center",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type TabIndex } from '../../types';
|
|
3
3
|
interface HeaderProps {
|
|
4
4
|
monthLongTitle: string;
|
|
@@ -13,5 +13,5 @@ interface HeaderProps {
|
|
|
13
13
|
tabIndex?: TabIndex;
|
|
14
14
|
testId?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const Header:
|
|
16
|
+
declare const Header: React.NamedExoticComponent<HeaderProps>;
|
|
17
17
|
export default Header;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
7
2
|
interface WeekDayGridProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
3
|
testId?: string;
|
|
9
4
|
children: ReactNode;
|
|
@@ -15,5 +10,5 @@ interface WeekDayGridProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
15
10
|
* A week day grid aligns elements in a 7 wide grid layout.
|
|
16
11
|
*
|
|
17
12
|
*/
|
|
18
|
-
declare const WeekDayGrid: ({ testId, children, isHidden }: WeekDayGridProps) =>
|
|
13
|
+
declare const WeekDayGrid: ({ testId, children, isHidden }: WeekDayGridProps) => JSX.Element;
|
|
19
14
|
export default WeekDayGrid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { TabIndex } from '../../types';
|
|
3
3
|
import { type DateObj, type Week } from '../types';
|
|
4
4
|
interface WeekDaysProps {
|
|
@@ -9,5 +9,5 @@ interface WeekDaysProps {
|
|
|
9
9
|
tabIndex: TabIndex;
|
|
10
10
|
testId?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const WeekDays:
|
|
12
|
+
declare const WeekDays: React.NamedExoticComponent<WeekDaysProps>;
|
|
13
13
|
export default WeekDays;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type TabIndex } from '../../types';
|
|
3
3
|
interface HeaderProps {
|
|
4
4
|
monthLongTitle: string;
|
|
@@ -13,5 +13,5 @@ interface HeaderProps {
|
|
|
13
13
|
tabIndex?: TabIndex;
|
|
14
14
|
testId?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const Header:
|
|
16
|
+
declare const Header: React.NamedExoticComponent<HeaderProps>;
|
|
17
17
|
export default Header;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
7
2
|
interface WeekDayGridProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
3
|
testId?: string;
|
|
9
4
|
children: ReactNode;
|
|
@@ -15,5 +10,5 @@ interface WeekDayGridProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
15
10
|
* A week day grid aligns elements in a 7 wide grid layout.
|
|
16
11
|
*
|
|
17
12
|
*/
|
|
18
|
-
declare const WeekDayGrid: ({ testId, children, isHidden }: WeekDayGridProps) =>
|
|
13
|
+
declare const WeekDayGrid: ({ testId, children, isHidden }: WeekDayGridProps) => JSX.Element;
|
|
19
14
|
export default WeekDayGrid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { TabIndex } from '../../types';
|
|
3
3
|
import { type DateObj, type Week } from '../types';
|
|
4
4
|
interface WeekDaysProps {
|
|
@@ -9,5 +9,5 @@ interface WeekDaysProps {
|
|
|
9
9
|
tabIndex: TabIndex;
|
|
10
10
|
testId?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const WeekDays:
|
|
12
|
+
declare const WeekDays: React.NamedExoticComponent<WeekDaysProps>;
|
|
13
13
|
export default WeekDays;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,17 +25,18 @@
|
|
|
25
25
|
"runReact18": true
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/analytics-next": "^10.
|
|
28
|
+
"@atlaskit/analytics-next": "^10.2.0",
|
|
29
29
|
"@atlaskit/button": "^20.3.0",
|
|
30
|
+
"@atlaskit/css": "^0.7.0",
|
|
30
31
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
31
32
|
"@atlaskit/heading": "^4.0.0",
|
|
32
|
-
"@atlaskit/icon": "^23.
|
|
33
|
+
"@atlaskit/icon": "^23.1.0",
|
|
33
34
|
"@atlaskit/locale": "^2.8.0",
|
|
34
35
|
"@atlaskit/primitives": "^13.3.0",
|
|
35
36
|
"@atlaskit/theme": "^14.0.0",
|
|
36
|
-
"@atlaskit/tokens": "^2.
|
|
37
|
+
"@atlaskit/tokens": "^2.5.0",
|
|
37
38
|
"@babel/runtime": "^7.0.0",
|
|
38
|
-
"@
|
|
39
|
+
"@compiled/react": "^0.18.1",
|
|
39
40
|
"date-fns": "^2.17.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.dateCellStyles = void 0;
|
|
7
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
|
|
10
|
-
var dateCellStyles = exports.dateCellStyles = function dateCellStyles() {
|
|
11
|
-
return {
|
|
12
|
-
all: 'unset',
|
|
13
|
-
display: 'block',
|
|
14
|
-
padding: "var(--ds-space-050, 4px)".concat(" 9px"),
|
|
15
|
-
position: 'relative',
|
|
16
|
-
backgroundColor: 'transparent',
|
|
17
|
-
border: '2px solid transparent',
|
|
18
|
-
borderRadius: 3,
|
|
19
|
-
color: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
20
|
-
cursor: 'pointer',
|
|
21
|
-
flexGrow: 1,
|
|
22
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
23
|
-
textAlign: 'center',
|
|
24
|
-
'&[data-sibling]': {
|
|
25
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
26
|
-
},
|
|
27
|
-
'&[data-today]': {
|
|
28
|
-
color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
|
|
29
|
-
fontWeight: "var(--ds-font-weight-bold, bold)",
|
|
30
|
-
'&::after': {
|
|
31
|
-
display: 'block',
|
|
32
|
-
height: 2,
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
right: "var(--ds-space-025, 2px)",
|
|
35
|
-
bottom: "var(--ds-space-025, 2px)",
|
|
36
|
-
left: "var(--ds-space-025, 2px)",
|
|
37
|
-
backgroundColor: 'currentColor',
|
|
38
|
-
content: '""'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
'&[data-prev-selected]': {
|
|
42
|
-
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
43
|
-
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")")
|
|
44
|
-
},
|
|
45
|
-
'&[data-selected]': {
|
|
46
|
-
backgroundColor: "var(--ds-background-selected, ".concat(_colors.N500, ")"),
|
|
47
|
-
color: "var(--ds-text-selected, ".concat(_colors.N0, ")")
|
|
48
|
-
},
|
|
49
|
-
'&[data-disabled]': {
|
|
50
|
-
color: "var(--ds-text-disabled, ".concat(_colors.N40, ")"),
|
|
51
|
-
cursor: 'not-allowed'
|
|
52
|
-
},
|
|
53
|
-
'&:focus-visible': {
|
|
54
|
-
border: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
55
|
-
},
|
|
56
|
-
'&:hover': {
|
|
57
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"),
|
|
58
|
-
color: "var(--ds-text, ".concat(_colors.N900, ")")
|
|
59
|
-
},
|
|
60
|
-
'&:active': {
|
|
61
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.B50, ")"),
|
|
62
|
-
color: "var(--ds-text, ".concat(_colors.N900, ")")
|
|
63
|
-
},
|
|
64
|
-
'&[data-selected]:hover': {
|
|
65
|
-
backgroundColor: "var(--ds-background-selected-hovered, ".concat(_colors.B50, ")"),
|
|
66
|
-
color: "var(--ds-text-selected, ".concat(_colors.N600, ")")
|
|
67
|
-
},
|
|
68
|
-
'&[data-prev-selected]:hover': {
|
|
69
|
-
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")")
|
|
70
|
-
},
|
|
71
|
-
'&[data-sibling]:hover': {
|
|
72
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
73
|
-
},
|
|
74
|
-
'&[data-disabled]:hover': {
|
|
75
|
-
backgroundColor: 'transparent',
|
|
76
|
-
color: "var(--ds-text-disabled, ".concat(_colors.N40, ")")
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
|
|
3
|
-
import { B200, B400, B50, N0, N200, N30, N40, N500, N600, N900 } from '@atlaskit/theme/colors';
|
|
4
|
-
export const dateCellStyles = () => ({
|
|
5
|
-
all: 'unset',
|
|
6
|
-
display: 'block',
|
|
7
|
-
padding: `${"var(--ds-space-050, 4px)"} 9px`,
|
|
8
|
-
position: 'relative',
|
|
9
|
-
backgroundColor: 'transparent',
|
|
10
|
-
border: '2px solid transparent',
|
|
11
|
-
borderRadius: 3,
|
|
12
|
-
color: `var(--ds-text, ${N900})`,
|
|
13
|
-
cursor: 'pointer',
|
|
14
|
-
flexGrow: 1,
|
|
15
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
|
-
textAlign: 'center',
|
|
17
|
-
'&[data-sibling]': {
|
|
18
|
-
color: `var(--ds-text-subtlest, ${N200})`
|
|
19
|
-
},
|
|
20
|
-
'&[data-today]': {
|
|
21
|
-
color: `var(--ds-text-selected, ${B400})`,
|
|
22
|
-
fontWeight: "var(--ds-font-weight-bold, bold)",
|
|
23
|
-
'&::after': {
|
|
24
|
-
display: 'block',
|
|
25
|
-
height: 2,
|
|
26
|
-
position: 'absolute',
|
|
27
|
-
right: "var(--ds-space-025, 2px)",
|
|
28
|
-
bottom: "var(--ds-space-025, 2px)",
|
|
29
|
-
left: "var(--ds-space-025, 2px)",
|
|
30
|
-
backgroundColor: 'currentColor',
|
|
31
|
-
content: '""'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
'&[data-prev-selected]': {
|
|
35
|
-
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
36
|
-
color: `var(--ds-text-subtle, ${N600})`
|
|
37
|
-
},
|
|
38
|
-
'&[data-selected]': {
|
|
39
|
-
backgroundColor: `var(--ds-background-selected, ${N500})`,
|
|
40
|
-
color: `var(--ds-text-selected, ${N0})`
|
|
41
|
-
},
|
|
42
|
-
'&[data-disabled]': {
|
|
43
|
-
color: `var(--ds-text-disabled, ${N40})`,
|
|
44
|
-
cursor: 'not-allowed'
|
|
45
|
-
},
|
|
46
|
-
'&:focus-visible': {
|
|
47
|
-
border: `2px solid ${`var(--ds-border-focused, ${B200})`}`
|
|
48
|
-
},
|
|
49
|
-
'&:hover': {
|
|
50
|
-
backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${N30})`,
|
|
51
|
-
color: `var(--ds-text, ${N900})`
|
|
52
|
-
},
|
|
53
|
-
'&:active': {
|
|
54
|
-
backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${B50})`,
|
|
55
|
-
color: `var(--ds-text, ${N900})`
|
|
56
|
-
},
|
|
57
|
-
'&[data-selected]:hover': {
|
|
58
|
-
backgroundColor: `var(--ds-background-selected-hovered, ${B50})`,
|
|
59
|
-
color: `var(--ds-text-selected, ${N600})`
|
|
60
|
-
},
|
|
61
|
-
'&[data-prev-selected]:hover': {
|
|
62
|
-
color: `var(--ds-text-subtle, ${N600})`
|
|
63
|
-
},
|
|
64
|
-
'&[data-sibling]:hover': {
|
|
65
|
-
color: `var(--ds-text-subtlest, ${N200})`
|
|
66
|
-
},
|
|
67
|
-
'&[data-disabled]:hover': {
|
|
68
|
-
backgroundColor: 'transparent',
|
|
69
|
-
color: `var(--ds-text-disabled, ${N40})`
|
|
70
|
-
}
|
|
71
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
|
|
3
|
-
import { B200, B400, B50, N0, N200, N30, N40, N500, N600, N900 } from '@atlaskit/theme/colors';
|
|
4
|
-
export var dateCellStyles = function dateCellStyles() {
|
|
5
|
-
return {
|
|
6
|
-
all: 'unset',
|
|
7
|
-
display: 'block',
|
|
8
|
-
padding: "var(--ds-space-050, 4px)".concat(" 9px"),
|
|
9
|
-
position: 'relative',
|
|
10
|
-
backgroundColor: 'transparent',
|
|
11
|
-
border: '2px solid transparent',
|
|
12
|
-
borderRadius: 3,
|
|
13
|
-
color: "var(--ds-text, ".concat(N900, ")"),
|
|
14
|
-
cursor: 'pointer',
|
|
15
|
-
flexGrow: 1,
|
|
16
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
-
textAlign: 'center',
|
|
18
|
-
'&[data-sibling]': {
|
|
19
|
-
color: "var(--ds-text-subtlest, ".concat(N200, ")")
|
|
20
|
-
},
|
|
21
|
-
'&[data-today]': {
|
|
22
|
-
color: "var(--ds-text-selected, ".concat(B400, ")"),
|
|
23
|
-
fontWeight: "var(--ds-font-weight-bold, bold)",
|
|
24
|
-
'&::after': {
|
|
25
|
-
display: 'block',
|
|
26
|
-
height: 2,
|
|
27
|
-
position: 'absolute',
|
|
28
|
-
right: "var(--ds-space-025, 2px)",
|
|
29
|
-
bottom: "var(--ds-space-025, 2px)",
|
|
30
|
-
left: "var(--ds-space-025, 2px)",
|
|
31
|
-
backgroundColor: 'currentColor',
|
|
32
|
-
content: '""'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
'&[data-prev-selected]': {
|
|
36
|
-
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
37
|
-
color: "var(--ds-text-subtle, ".concat(N600, ")")
|
|
38
|
-
},
|
|
39
|
-
'&[data-selected]': {
|
|
40
|
-
backgroundColor: "var(--ds-background-selected, ".concat(N500, ")"),
|
|
41
|
-
color: "var(--ds-text-selected, ".concat(N0, ")")
|
|
42
|
-
},
|
|
43
|
-
'&[data-disabled]': {
|
|
44
|
-
color: "var(--ds-text-disabled, ".concat(N40, ")"),
|
|
45
|
-
cursor: 'not-allowed'
|
|
46
|
-
},
|
|
47
|
-
'&:focus-visible': {
|
|
48
|
-
border: "2px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
49
|
-
},
|
|
50
|
-
'&:hover': {
|
|
51
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"),
|
|
52
|
-
color: "var(--ds-text, ".concat(N900, ")")
|
|
53
|
-
},
|
|
54
|
-
'&:active': {
|
|
55
|
-
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(B50, ")"),
|
|
56
|
-
color: "var(--ds-text, ".concat(N900, ")")
|
|
57
|
-
},
|
|
58
|
-
'&[data-selected]:hover': {
|
|
59
|
-
backgroundColor: "var(--ds-background-selected-hovered, ".concat(B50, ")"),
|
|
60
|
-
color: "var(--ds-text-selected, ".concat(N600, ")")
|
|
61
|
-
},
|
|
62
|
-
'&[data-prev-selected]:hover': {
|
|
63
|
-
color: "var(--ds-text-subtle, ".concat(N600, ")")
|
|
64
|
-
},
|
|
65
|
-
'&[data-sibling]:hover': {
|
|
66
|
-
color: "var(--ds-text-subtlest, ".concat(N200, ")")
|
|
67
|
-
},
|
|
68
|
-
'&[data-disabled]:hover': {
|
|
69
|
-
backgroundColor: 'transparent',
|
|
70
|
-
color: "var(--ds-text-disabled, ".concat(N40, ")")
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
};
|