1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.styles = void 0;
|
4 | var style_utilities_1 = require("@fluentui/style-utilities");
|
5 | var styles = function (props) {
|
6 | var className = props.className, theme = props.theme, isDayPickerVisible = props.isDayPickerVisible, isMonthPickerVisible = props.isMonthPickerVisible, showWeekNumbers = props.showWeekNumbers;
|
7 | var palette = theme.palette;
|
8 | var totalWidth = isDayPickerVisible && isMonthPickerVisible ? 440 : 220;
|
9 | if (showWeekNumbers && isDayPickerVisible) {
|
10 | totalWidth += 30;
|
11 | }
|
12 | return {
|
13 | root: [
|
14 | style_utilities_1.normalize,
|
15 | {
|
16 | display: 'flex',
|
17 | width: totalWidth,
|
18 | },
|
19 | !isMonthPickerVisible && {
|
20 | flexDirection: 'column',
|
21 | },
|
22 | className,
|
23 | ],
|
24 | divider: {
|
25 | top: 0,
|
26 | borderRight: '1px solid',
|
27 | borderColor: palette.neutralLight,
|
28 | },
|
29 | monthPickerWrapper: [
|
30 | {
|
31 | display: 'flex',
|
32 | flexDirection: 'column',
|
33 | },
|
34 | ],
|
35 | goTodayButton: [
|
36 | style_utilities_1.getFocusStyle(theme, { inset: -1 }),
|
37 | {
|
38 | bottom: 0,
|
39 | color: palette.neutralPrimary,
|
40 | height: 30,
|
41 | lineHeight: 30,
|
42 | backgroundColor: 'transparent',
|
43 | border: 'none',
|
44 | boxSizing: 'content-box',
|
45 | padding: '0 4px',
|
46 | alignSelf: 'flex-end',
|
47 | marginRight: 16,
|
48 | marginTop: 3,
|
49 | fontSize: style_utilities_1.FontSizes.small,
|
50 | fontFamily: 'inherit',
|
51 | overflow: 'visible',
|
52 | selectors: {
|
53 | '& div': {
|
54 | fontSize: style_utilities_1.FontSizes.small,
|
55 | },
|
56 | '&:hover': {
|
57 | color: palette.themePrimary,
|
58 | backgroundColor: 'transparent',
|
59 | cursor: 'pointer',
|
60 | },
|
61 | '&:active': {
|
62 | color: palette.themeDark,
|
63 | },
|
64 | '&:disabled': {
|
65 | color: palette.neutralTertiaryAlt,
|
66 | pointerEvents: 'none',
|
67 | },
|
68 | },
|
69 | },
|
70 | ],
|
71 | liveRegion: {
|
72 | border: 0,
|
73 | height: '1px',
|
74 | margin: '-1px',
|
75 | overflow: 'hidden',
|
76 | padding: 0,
|
77 | width: '1px',
|
78 | position: 'absolute',
|
79 | },
|
80 | };
|
81 | };
|
82 | exports.styles = styles;
|
83 |
|
\ | No newline at end of file |