@fluentui/react-datepicker-compat 0.0.0-nightly-20230421-0417.1 → 0.0.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.json +27 -55
- package/CHANGELOG.md +16 -18
- package/dist/index.d.ts +1160 -0
- package/lib/Calendar.js +2 -0
- package/lib/Calendar.js.map +1 -0
- package/lib/CalendarDay.js +2 -0
- package/lib/CalendarDay.js.map +1 -0
- package/lib/CalendarDayGrid.js +2 -0
- package/lib/CalendarDayGrid.js.map +1 -0
- package/lib/CalendarMonth.js +2 -0
- package/lib/CalendarMonth.js.map +1 -0
- package/lib/CalendarPicker.js +2 -0
- package/lib/CalendarPicker.js.map +1 -0
- package/lib/CalendarYear.js +2 -0
- package/lib/CalendarYear.js.map +1 -0
- package/lib/DatePicker.js +2 -0
- package/lib/DatePicker.js.map +1 -0
- package/lib/components/Calendar/Calendar.js +319 -0
- package/lib/components/Calendar/Calendar.js.map +1 -0
- package/lib/components/Calendar/Calendar.types.js +15 -0
- package/lib/components/Calendar/Calendar.types.js.map +1 -0
- package/lib/components/Calendar/defaults.js +3 -0
- package/lib/components/Calendar/defaults.js.map +1 -0
- package/lib/components/Calendar/index.js +5 -0
- package/lib/components/Calendar/index.js.map +1 -0
- package/lib/components/Calendar/useCalendarStyles.js +149 -0
- package/lib/components/Calendar/useCalendarStyles.js.map +1 -0
- package/lib/components/CalendarDay/CalendarDay.js +143 -0
- package/lib/components/CalendarDay/CalendarDay.js.map +1 -0
- package/lib/components/CalendarDay/CalendarDay.types.js +2 -0
- package/lib/components/CalendarDay/CalendarDay.types.js.map +1 -0
- package/lib/components/CalendarDay/index.js +4 -0
- package/lib/components/CalendarDay/index.js.map +1 -0
- package/lib/components/CalendarDay/useCalendarDayStyles.js +180 -0
- package/lib/components/CalendarDay/useCalendarDayStyles.js.map +1 -0
- package/lib/components/CalendarDayGrid/CalendarDayGrid.js +183 -0
- package/lib/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -0
- package/lib/components/CalendarDayGrid/CalendarDayGrid.types.js +2 -0
- package/lib/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -0
- package/lib/components/CalendarDayGrid/CalendarGridDayCell.js +193 -0
- package/lib/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -0
- package/lib/components/CalendarDayGrid/CalendarGridRow.js +40 -0
- package/lib/components/CalendarDayGrid/CalendarGridRow.js.map +1 -0
- package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js +46 -0
- package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -0
- package/lib/components/CalendarDayGrid/index.js +5 -0
- package/lib/components/CalendarDayGrid/index.js.map +1 -0
- package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.js +443 -0
- package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.js.map +1 -0
- package/lib/components/CalendarDayGrid/useWeekCornerStyles.js +98 -0
- package/lib/components/CalendarDayGrid/useWeekCornerStyles.js.map +1 -0
- package/lib/components/CalendarDayGrid/useWeeks.js +47 -0
- package/lib/components/CalendarDayGrid/useWeeks.js.map +1 -0
- package/lib/components/CalendarMonth/CalendarMonth.js +282 -0
- package/lib/components/CalendarMonth/CalendarMonth.js.map +1 -0
- package/lib/components/CalendarMonth/CalendarMonth.types.js +2 -0
- package/lib/components/CalendarMonth/CalendarMonth.types.js.map +1 -0
- package/lib/components/CalendarMonth/index.js +4 -0
- package/lib/components/CalendarMonth/index.js.map +1 -0
- package/lib/components/CalendarMonth/useCalendarMonthStyles.js +10 -0
- package/lib/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -0
- package/lib/components/CalendarPicker/CalendarPicker.types.js +2 -0
- package/lib/components/CalendarPicker/CalendarPicker.types.js.map +1 -0
- package/lib/components/CalendarPicker/index.js +3 -0
- package/lib/components/CalendarPicker/index.js.map +1 -0
- package/lib/components/CalendarPicker/useCalendarPickerStyles.js +371 -0
- package/lib/components/CalendarPicker/useCalendarPickerStyles.js.map +1 -0
- package/lib/components/CalendarYear/CalendarYear.js +350 -0
- package/lib/components/CalendarYear/CalendarYear.js.map +1 -0
- package/lib/components/CalendarYear/CalendarYear.types.js +2 -0
- package/lib/components/CalendarYear/CalendarYear.types.js.map +1 -0
- package/lib/components/CalendarYear/index.js +4 -0
- package/lib/components/CalendarYear/index.js.map +1 -0
- package/lib/components/CalendarYear/useCalendarYearStyles.js +10 -0
- package/lib/components/CalendarYear/useCalendarYearStyles.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.js +11 -0
- package/lib/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.types.js +2 -0
- package/lib/components/DatePicker/DatePicker.types.js.map +1 -0
- package/lib/components/DatePicker/defaults.js +15 -0
- package/lib/components/DatePicker/defaults.js.map +1 -0
- package/lib/components/DatePicker/index.js +7 -0
- package/lib/components/DatePicker/index.js.map +1 -0
- package/lib/components/DatePicker/renderDatePicker.js +18 -0
- package/lib/components/DatePicker/renderDatePicker.js.map +1 -0
- package/lib/components/DatePicker/useDatePicker.js +399 -0
- package/lib/components/DatePicker/useDatePicker.js.map +1 -0
- package/lib/components/DatePicker/useDatePickerStyles.js +38 -0
- package/lib/components/DatePicker/useDatePickerStyles.js.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/animations.js +98 -0
- package/lib/utils/animations.js.map +1 -0
- package/lib/utils/constants.js +64 -0
- package/lib/utils/constants.js.map +1 -0
- package/lib/utils/dateFormatting/dateFormatting.defaults.js +58 -0
- package/lib/utils/dateFormatting/dateFormatting.defaults.js.map +1 -0
- package/lib/utils/dateFormatting/dateFormatting.types.js +2 -0
- package/lib/utils/dateFormatting/dateFormatting.types.js.map +1 -0
- package/lib/utils/dateFormatting/index.js +3 -0
- package/lib/utils/dateFormatting/index.js.map +1 -0
- package/lib/utils/dateGrid/dateGrid.types.js +2 -0
- package/lib/utils/dateGrid/dateGrid.types.js.map +1 -0
- package/lib/utils/dateGrid/findAvailableDate.js +29 -0
- package/lib/utils/dateGrid/findAvailableDate.js.map +1 -0
- package/lib/utils/dateGrid/getBoundedDateRange.js +18 -0
- package/lib/utils/dateGrid/getBoundedDateRange.js.map +1 -0
- package/lib/utils/dateGrid/getDateRangeTypeToUse.js +18 -0
- package/lib/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -0
- package/lib/utils/dateGrid/getDayGrid.js +85 -0
- package/lib/utils/dateGrid/getDayGrid.js.map +1 -0
- package/lib/utils/dateGrid/index.js +6 -0
- package/lib/utils/dateGrid/index.js.map +1 -0
- package/lib/utils/dateGrid/isAfterMaxDate.js +13 -0
- package/lib/utils/dateGrid/isAfterMaxDate.js.map +1 -0
- package/lib/utils/dateGrid/isBeforeMinDate.js +13 -0
- package/lib/utils/dateGrid/isBeforeMinDate.js.map +1 -0
- package/lib/utils/dateGrid/isContiguous.js +19 -0
- package/lib/utils/dateGrid/isContiguous.js.map +1 -0
- package/lib/utils/dateGrid/isRestrictedDate.js +21 -0
- package/lib/utils/dateGrid/isRestrictedDate.js.map +1 -0
- package/lib/utils/dateMath/dateMath.js +358 -0
- package/lib/utils/dateMath/dateMath.js.map +1 -0
- package/lib/utils/dateMath/index.js +2 -0
- package/lib/utils/dateMath/index.js.map +1 -0
- package/lib/utils/dom.js +9 -0
- package/lib/utils/dom.js.map +1 -0
- package/lib/utils/focus.js +28 -0
- package/lib/utils/focus.js.map +1 -0
- package/lib/utils/index.js +8 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/usePopupPositioning.js +25 -0
- package/lib/utils/usePopupPositioning.js.map +1 -0
- package/lib-commonjs/Calendar.js +9 -0
- package/lib-commonjs/Calendar.js.map +1 -0
- package/lib-commonjs/CalendarDay.js +9 -0
- package/lib-commonjs/CalendarDay.js.map +1 -0
- package/lib-commonjs/CalendarDayGrid.js +9 -0
- package/lib-commonjs/CalendarDayGrid.js.map +1 -0
- package/lib-commonjs/CalendarMonth.js +9 -0
- package/lib-commonjs/CalendarMonth.js.map +1 -0
- package/lib-commonjs/CalendarPicker.js +9 -0
- package/lib-commonjs/CalendarPicker.js.map +1 -0
- package/lib-commonjs/CalendarYear.js +9 -0
- package/lib-commonjs/CalendarYear.js.map +1 -0
- package/lib-commonjs/DatePicker.js +9 -0
- package/lib-commonjs/DatePicker.js.map +1 -0
- package/lib-commonjs/components/Calendar/Calendar.js +306 -0
- package/lib-commonjs/components/Calendar/Calendar.js.map +1 -0
- package/lib-commonjs/components/Calendar/Calendar.types.js +21 -0
- package/lib-commonjs/components/Calendar/Calendar.types.js.map +1 -0
- package/lib-commonjs/components/Calendar/defaults.js +12 -0
- package/lib-commonjs/components/Calendar/defaults.js.map +1 -0
- package/lib-commonjs/components/Calendar/index.js +16 -0
- package/lib-commonjs/components/Calendar/index.js.map +1 -0
- package/lib-commonjs/components/Calendar/useCalendarStyles.js +286 -0
- package/lib-commonjs/components/Calendar/useCalendarStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarDay/CalendarDay.js +124 -0
- package/lib-commonjs/components/CalendarDay/CalendarDay.js.map +1 -0
- package/lib-commonjs/components/CalendarDay/CalendarDay.types.js +9 -0
- package/lib-commonjs/components/CalendarDay/CalendarDay.types.js.map +1 -0
- package/lib-commonjs/components/CalendarDay/index.js +11 -0
- package/lib-commonjs/components/CalendarDay/index.js.map +1 -0
- package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.js +356 -0
- package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js +181 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js +9 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js +173 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js +35 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js +45 -0
- package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/index.js +21 -0
- package/lib-commonjs/components/CalendarDayGrid/index.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.js +916 -0
- package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.js +103 -0
- package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarDayGrid/useWeeks.js +54 -0
- package/lib-commonjs/components/CalendarDayGrid/useWeeks.js.map +1 -0
- package/lib-commonjs/components/CalendarMonth/CalendarMonth.js +271 -0
- package/lib-commonjs/components/CalendarMonth/CalendarMonth.js.map +1 -0
- package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js +9 -0
- package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js.map +1 -0
- package/lib-commonjs/components/CalendarMonth/index.js +11 -0
- package/lib-commonjs/components/CalendarMonth/index.js.map +1 -0
- package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js +14 -0
- package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js +7 -0
- package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js.map +1 -0
- package/lib-commonjs/components/CalendarPicker/index.js +10 -0
- package/lib-commonjs/components/CalendarPicker/index.js.map +1 -0
- package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.js +746 -0
- package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.js.map +1 -0
- package/lib-commonjs/components/CalendarYear/CalendarYear.js +307 -0
- package/lib-commonjs/components/CalendarYear/CalendarYear.js.map +1 -0
- package/lib-commonjs/components/CalendarYear/CalendarYear.types.js +9 -0
- package/lib-commonjs/components/CalendarYear/CalendarYear.types.js.map +1 -0
- package/lib-commonjs/components/CalendarYear/index.js +11 -0
- package/lib-commonjs/components/CalendarYear/index.js.map +1 -0
- package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.js +14 -0
- package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.js.map +1 -0
- package/lib-commonjs/components/DatePicker/DatePicker.js +21 -0
- package/lib-commonjs/components/DatePicker/DatePicker.js.map +1 -0
- package/lib-commonjs/components/DatePicker/DatePicker.types.js +9 -0
- package/lib-commonjs/components/DatePicker/DatePicker.types.js.map +1 -0
- package/lib-commonjs/components/DatePicker/defaults.js +30 -0
- package/lib-commonjs/components/DatePicker/defaults.js.map +1 -0
- package/lib-commonjs/components/DatePicker/index.js +14 -0
- package/lib-commonjs/components/DatePicker/index.js.map +1 -0
- package/lib-commonjs/components/DatePicker/renderDatePicker.js +20 -0
- package/lib-commonjs/components/DatePicker/renderDatePicker.js.map +1 -0
- package/lib-commonjs/components/DatePicker/useDatePicker.js +444 -0
- package/lib-commonjs/components/DatePicker/useDatePicker.js.map +1 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.js +55 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.js.map +1 -0
- package/lib-commonjs/index.js +50 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/utils/animations.js +126 -0
- package/lib-commonjs/utils/animations.js.map +1 -0
- package/lib-commonjs/utils/constants.js +82 -0
- package/lib-commonjs/utils/constants.js.map +1 -0
- package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js +102 -0
- package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js.map +1 -0
- package/lib-commonjs/utils/dateFormatting/dateFormatting.types.js +7 -0
- package/lib-commonjs/utils/dateFormatting/dateFormatting.types.js.map +1 -0
- package/lib-commonjs/utils/dateFormatting/index.js +10 -0
- package/lib-commonjs/utils/dateFormatting/index.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/dateGrid.types.js +7 -0
- package/lib-commonjs/utils/dateGrid/dateGrid.types.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/findAvailableDate.js +29 -0
- package/lib-commonjs/utils/dateGrid/findAvailableDate.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js +23 -0
- package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js +20 -0
- package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/getDayGrid.js +76 -0
- package/lib-commonjs/utils/dateGrid/getDayGrid.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/index.js +13 -0
- package/lib-commonjs/utils/dateGrid/index.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js +15 -0
- package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js +15 -0
- package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/isContiguous.js +28 -0
- package/lib-commonjs/utils/dateGrid/isContiguous.js.map +1 -0
- package/lib-commonjs/utils/dateGrid/isRestrictedDate.js +21 -0
- package/lib-commonjs/utils/dateGrid/isRestrictedDate.js.map +1 -0
- package/lib-commonjs/utils/dateMath/dateMath.js +274 -0
- package/lib-commonjs/utils/dateMath/dateMath.js.map +1 -0
- package/lib-commonjs/utils/dateMath/index.js +9 -0
- package/lib-commonjs/utils/dateMath/index.js.map +1 -0
- package/lib-commonjs/utils/dom.js +18 -0
- package/lib-commonjs/utils/dom.js.map +1 -0
- package/lib-commonjs/utils/focus.js +31 -0
- package/lib-commonjs/utils/focus.js.map +1 -0
- package/lib-commonjs/utils/index.js +15 -0
- package/lib-commonjs/utils/index.js.map +1 -0
- package/lib-commonjs/utils/usePopupPositioning.js +26 -0
- package/lib-commonjs/utils/usePopupPositioning.js.map +1 -0
- package/package.json +19 -14
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import { tokens } from '@fluentui/react-theme';
|
|
2
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
|
3
|
+
import { DURATION_2, DURATION_3, EASING_FUNCTION_1, EASING_FUNCTION_2, FADE_IN, FADE_OUT, SLIDE_DOWN_IN20, SLIDE_DOWN_OUT20, SLIDE_LEFT_IN20, SLIDE_RIGHT_IN20, SLIDE_UP_IN20, SLIDE_UP_OUT20, TRANSITION_ROW_DISAPPEARANCE } from '../../utils';
|
|
4
|
+
import { AnimationDirection } from '../Calendar/Calendar.types';
|
|
5
|
+
import { weekCornersClassNames } from './useWeekCornerStyles';
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export const calendarDayGridClassNames = {
|
|
10
|
+
wrapper: 'fui-CalendarDayGrid__wrapper',
|
|
11
|
+
table: 'fui-CalendarDayGrid__table',
|
|
12
|
+
dayCell: 'fui-CalendarDayGrid__dayCell',
|
|
13
|
+
daySelected: 'fui-CalendarDayGrid__daySelected',
|
|
14
|
+
weekRow: 'fui-CalendarDayGrid__weekRow',
|
|
15
|
+
weekDayLabelCell: 'fui-CalendarDayGrid__weekDayLabelCell',
|
|
16
|
+
weekNumberCell: 'fui-CalendarDayGrid__weekNumberCell',
|
|
17
|
+
dayOutsideBounds: 'fui-CalendarDayGrid__dayOutsideBounds',
|
|
18
|
+
dayOutsideNavigatedMonth: 'fui-CalendarDayGrid__dayOutsideNavigatedMonth',
|
|
19
|
+
dayButton: 'fui-CalendarDayGrid__dayButton',
|
|
20
|
+
dayIsToday: 'fui-CalendarDayGrid__dayIsToday',
|
|
21
|
+
firstTransitionWeek: 'fui-CalendarDayGrid__firstTransitionWeek',
|
|
22
|
+
lastTransitionWeek: 'fui-CalendarDayGrid__lastTransitionWeek',
|
|
23
|
+
dayMarker: 'fui-CalendarDayGrid__dayMarker'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export const extraCalendarDayGridClassNames = {
|
|
29
|
+
hoverStyle: 'fui-CalendarDayGrid__hoverStyle',
|
|
30
|
+
pressedStyle: 'fui-CalendarDayGrid__pressedStyle'
|
|
31
|
+
};
|
|
32
|
+
const useWrapperStyles = /*#__PURE__*/__styles({
|
|
33
|
+
base: {
|
|
34
|
+
Byoj8tv: "f1fow5ox"
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
d: [".f1fow5ox{padding-bottom:10px;}"]
|
|
38
|
+
});
|
|
39
|
+
const useTableStyles = /*#__PURE__*/__styles({
|
|
40
|
+
base: {
|
|
41
|
+
po53p8: "fgkb47j",
|
|
42
|
+
Bxjg3zr: "f16vktn6",
|
|
43
|
+
Be2twd7: "fjoy568",
|
|
44
|
+
B6of3ja: "fvjh0tl",
|
|
45
|
+
Byoj8tv: "f1fow5ox",
|
|
46
|
+
qhf8xq: "f10pi13n",
|
|
47
|
+
B73mfa3: "f14m3nip",
|
|
48
|
+
fsow6f: "f17mccla",
|
|
49
|
+
a9b677: "f4m2ahc"
|
|
50
|
+
},
|
|
51
|
+
showWeekNumbers: {
|
|
52
|
+
a9b677: "fl524qk"
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
d: [".fgkb47j{border-collapse:collapse;}", ".f16vktn6{border-spacing:0;}", ".fjoy568{font-size:inherit;}", ".fvjh0tl{margin-top:4px;}", ".f1fow5ox{padding-bottom:10px;}", ".f10pi13n{position:relative;}", ".f14m3nip{table-layout:fixed;}", ".f17mccla{text-align:center;}", ".f4m2ahc{width:196px;}", ".fl524qk{width:226px;}"]
|
|
56
|
+
});
|
|
57
|
+
const useDayCellStyles = /*#__PURE__*/__styles({
|
|
58
|
+
base: {
|
|
59
|
+
sj55zd: "f19n0e5",
|
|
60
|
+
Bceei9c: "f1k6fduh",
|
|
61
|
+
Be2twd7: "fy9rknc",
|
|
62
|
+
Bhrd7zp: "figsok6",
|
|
63
|
+
Bqenvij: "fxldao9",
|
|
64
|
+
Bg96gwp: "f336tjw",
|
|
65
|
+
B6of3ja: "f1hu3pq6",
|
|
66
|
+
t21cq0: ["f11qmguv", "f1tyq0we"],
|
|
67
|
+
jrapky: "f19f4twv",
|
|
68
|
+
Frg6f3: ["f1tyq0we", "f11qmguv"],
|
|
69
|
+
z8tnut: "f1g0x7ka",
|
|
70
|
+
z189sj: ["fhxju0i", "f1cnd47f"],
|
|
71
|
+
Byoj8tv: "f1qch9an",
|
|
72
|
+
uwmqm3: ["f1cnd47f", "fhxju0i"],
|
|
73
|
+
qhf8xq: "f10pi13n",
|
|
74
|
+
a9b677: "f1w9dchk",
|
|
75
|
+
Bsw6fvg: "f8pusc0",
|
|
76
|
+
Bbusuzp: "fqgauei",
|
|
77
|
+
cvlxnx: "fp6dsbd",
|
|
78
|
+
Bweudez: "f4xgodq",
|
|
79
|
+
hzfqlu: "fehmveg",
|
|
80
|
+
Bb91d7d: "ff78tpz",
|
|
81
|
+
dua3dm: "f128nre3",
|
|
82
|
+
z1p9vi: "f1elgve3",
|
|
83
|
+
Bsnevi5: "f15e7s3w",
|
|
84
|
+
xnb59o: "fts5qqo",
|
|
85
|
+
Bj67fi1: "f1lhgsq9",
|
|
86
|
+
B2gfgcj: "fdbuq6n",
|
|
87
|
+
B6cqqer: "f16j2ub3",
|
|
88
|
+
fpurfy: "f5hk6jp",
|
|
89
|
+
Fioj4w: ["f1d258es", "f1llk4aj"],
|
|
90
|
+
Bq9yiu4: "ftezgwa",
|
|
91
|
+
cpbo2x: ["f1llk4aj", "f1d258es"],
|
|
92
|
+
Bq268z6: "f1iohfpm"
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
d: [".f19n0e5{color:var(--colorNeutralForeground1);}", ".f1k6fduh{cursor:pointer;}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fxldao9{height:28px;}", ".f336tjw{line-height:28px;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".f10pi13n{position:relative;}", ".f1w9dchk{width:28px;}", ".fp6dsbd.fui-CalendarDayGrid__hoverStyle{color:var(--colorNeutralForeground1Static);}", ".f4xgodq.fui-CalendarDayGrid__hoverStyle{background-color:var(--colorBrandBackgroundInvertedHover);}", ".f1lhgsq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}", ".fdbuq6n.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedPressed);}"],
|
|
96
|
+
m: [["@media (forced-colors: active){.f8pusc0{background-color:Window;}}", {
|
|
97
|
+
m: "(forced-colors: active)"
|
|
98
|
+
}], ["@media (forced-colors: active){.fqgauei{color:WindowText;}}", {
|
|
99
|
+
m: "(forced-colors: active)"
|
|
100
|
+
}], ["@media (forced-colors: active){.fehmveg.fui-CalendarDayGrid__hoverStyle{background-color:Window;}}", {
|
|
101
|
+
m: "(forced-colors: active)"
|
|
102
|
+
}], ["@media (forced-colors: active){.ff78tpz.fui-CalendarDayGrid__hoverStyle{color:WindowText;}}", {
|
|
103
|
+
m: "(forced-colors: active)"
|
|
104
|
+
}], ["@media (forced-colors: active){.f128nre3.fui-CalendarDayGrid__hoverStyle{outline-width:1px;}}", {
|
|
105
|
+
m: "(forced-colors: active)"
|
|
106
|
+
}], ["@media (forced-colors: active){.f1elgve3.fui-CalendarDayGrid__hoverStyle{outline-style:solid;}}", {
|
|
107
|
+
m: "(forced-colors: active)"
|
|
108
|
+
}], ["@media (forced-colors: active){.f15e7s3w.fui-CalendarDayGrid__hoverStyle{outline-color:Highlight;}}", {
|
|
109
|
+
m: "(forced-colors: active)"
|
|
110
|
+
}], ["@media (forced-colors: active){.fts5qqo.fui-CalendarDayGrid__hoverStyle{z-index:3;}}", {
|
|
111
|
+
m: "(forced-colors: active)"
|
|
112
|
+
}], ["@media (forced-colors: active){.f16j2ub3.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}", {
|
|
113
|
+
m: "(forced-colors: active)"
|
|
114
|
+
}], ["@media (forced-colors: active){.f5hk6jp.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}", {
|
|
115
|
+
m: "(forced-colors: active)"
|
|
116
|
+
}], ["@media (forced-colors: active){.f1d258es.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.f1llk4aj.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}", {
|
|
117
|
+
m: "(forced-colors: active)"
|
|
118
|
+
}], ["@media (forced-colors: active){.ftezgwa.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}", {
|
|
119
|
+
m: "(forced-colors: active)"
|
|
120
|
+
}], ["@media (forced-colors: active){.f1llk4aj.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}.f1d258es.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}}", {
|
|
121
|
+
m: "(forced-colors: active)"
|
|
122
|
+
}], ["@media (forced-colors: active){.f1iohfpm.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}", {
|
|
123
|
+
m: "(forced-colors: active)"
|
|
124
|
+
}]]
|
|
125
|
+
});
|
|
126
|
+
const useDaySelectedStyles = /*#__PURE__*/__styles({
|
|
127
|
+
base: {
|
|
128
|
+
De3pzq: "f1vevd59",
|
|
129
|
+
sj55zd: "ff5vbop",
|
|
130
|
+
Bsw6fvg: "f1rirnrt",
|
|
131
|
+
Bjwas2f: "f132fbg1",
|
|
132
|
+
Bn1d65q: ["f1ene5x0", "fzbc999"],
|
|
133
|
+
Bxeuatn: "f6jgcol",
|
|
134
|
+
n51gp8: ["fzbc999", "f1ene5x0"],
|
|
135
|
+
Bbusuzp: "f1lkg8j3",
|
|
136
|
+
ycbfsm: "fkc42ay",
|
|
137
|
+
a3nq4f: "f1chdfq9",
|
|
138
|
+
Bnf3alp: "fq0dbue",
|
|
139
|
+
H2c3sd: "f3pe0v7",
|
|
140
|
+
qu8ld: "f3t0uu2",
|
|
141
|
+
Bg4iunc: "f1cikclm"
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
d: [".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}", ".ff5vbop{color:var(--colorNeutralForeground1Static);}"],
|
|
145
|
+
m: [["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}", {
|
|
146
|
+
m: "(forced-colors: active)"
|
|
147
|
+
}], ["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}", {
|
|
148
|
+
m: "(forced-colors: active)"
|
|
149
|
+
}], ["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}", {
|
|
150
|
+
m: "(forced-colors: active)"
|
|
151
|
+
}], ["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}", {
|
|
152
|
+
m: "(forced-colors: active)"
|
|
153
|
+
}], ["@media (forced-colors: active){.fzbc999{border-left-color:Highlight;}.f1ene5x0{border-right-color:Highlight;}}", {
|
|
154
|
+
m: "(forced-colors: active)"
|
|
155
|
+
}], ["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}", {
|
|
156
|
+
m: "(forced-colors: active)"
|
|
157
|
+
}], ["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}", {
|
|
158
|
+
m: "(forced-colors: active)"
|
|
159
|
+
}], ["@media (forced-colors: active){.f3pe0v7:hover,.f3pe0v7.fui-CalendarDayGrid__hoverStyle,.f3pe0v7.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}", {
|
|
160
|
+
m: "(forced-colors: active)"
|
|
161
|
+
}], ["@media (forced-colors: active){.f3t0uu2:hover,.f3t0uu2.fui-CalendarDayGrid__hoverStyle,.f3t0uu2.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}", {
|
|
162
|
+
m: "(forced-colors: active)"
|
|
163
|
+
}], ["@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}", {
|
|
164
|
+
m: "(forced-colors: active)"
|
|
165
|
+
}]],
|
|
166
|
+
h: [".f1chdfq9:hover,.f1chdfq9.fui-CalendarDayGrid__hoverStyle,.f1chdfq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}", ".fq0dbue:hover,.fq0dbue.fui-CalendarDayGrid__hoverStyle,.fq0dbue.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedSelected);}"]
|
|
167
|
+
});
|
|
168
|
+
const useWeekRowStyles = /*#__PURE__*/__styles({
|
|
169
|
+
base: {
|
|
170
|
+
vin17d: "f5f2jbu",
|
|
171
|
+
Bf5fcs: "fywypte",
|
|
172
|
+
Ezkn3b: "f1ee2ue"
|
|
173
|
+
},
|
|
174
|
+
horizontalBackward: {
|
|
175
|
+
Bv12yb3: ["f1o9w3l8", "f1kwjajc"]
|
|
176
|
+
},
|
|
177
|
+
horizontalForward: {
|
|
178
|
+
Bv12yb3: ["f1kwjajc", "f1o9w3l8"]
|
|
179
|
+
},
|
|
180
|
+
verticalBackward: {
|
|
181
|
+
Bv12yb3: "fgl3yn7"
|
|
182
|
+
},
|
|
183
|
+
verticalForward: {
|
|
184
|
+
Bv12yb3: "faiu5ye"
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
d: [".f5f2jbu{-webkit-animation-duration:0.367s;animation-duration:0.367s;}", ".fywypte{-webkit-animation-fill-mode:both;animation-fill-mode:both;}", ".f1ee2ue{-webkit-animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-timing-function:cubic-bezier(.1,.9,.2,1);}", ".f1o9w3l8{-webkit-animation-name:f5j8bii,f2lgmc3;animation-name:f5j8bii,f2lgmc3;}", ".f1kwjajc{-webkit-animation-name:f5j8bii,fpktcv7;animation-name:f5j8bii,fpktcv7;}", ".fgl3yn7{-webkit-animation-name:f5j8bii,f3bv9km;animation-name:f5j8bii,f3bv9km;}", ".faiu5ye{-webkit-animation-name:f5j8bii,funtx0y;animation-name:f5j8bii,funtx0y;}"],
|
|
188
|
+
k: ["@-webkit-keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}", "@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}", "@-webkit-keyframes f2lgmc3{from{pointer-events:none;-webkit-transform:translate3d(-20px, 0, 0);-moz-transform:translate3d(-20px, 0, 0);-ms-transform:translate3d(-20px, 0, 0);transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@-webkit-keyframes fpktcv7{from{pointer-events:none;-webkit-transform:translate3d(20px, 0, 0);-moz-transform:translate3d(20px, 0, 0);-ms-transform:translate3d(20px, 0, 0);transform:translate3d(20px, 0, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@keyframes f2lgmc3{from{pointer-events:none;-webkit-transform:translate3d(-20px, 0, 0);-moz-transform:translate3d(-20px, 0, 0);-ms-transform:translate3d(-20px, 0, 0);transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@keyframes fpktcv7{from{pointer-events:none;-webkit-transform:translate3d(20px, 0, 0);-moz-transform:translate3d(20px, 0, 0);-ms-transform:translate3d(20px, 0, 0);transform:translate3d(20px, 0, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@-webkit-keyframes f3bv9km{from{pointer-events:none;-webkit-transform:translate3d(0, -20px, 0);-moz-transform:translate3d(0, -20px, 0);-ms-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@keyframes f3bv9km{from{pointer-events:none;-webkit-transform:translate3d(0, -20px, 0);-moz-transform:translate3d(0, -20px, 0);-ms-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@-webkit-keyframes funtx0y{from{pointer-events:none;-webkit-transform:translate3d(0, 20px, 0);-moz-transform:translate3d(0, 20px, 0);-ms-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}", "@keyframes funtx0y{from{pointer-events:none;-webkit-transform:translate3d(0, 20px, 0);-moz-transform:translate3d(0, 20px, 0);-ms-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0);}to{pointer-events:auto;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}}"]
|
|
189
|
+
});
|
|
190
|
+
const useWeekDayLabelCellStyles = /*#__PURE__*/__styles({
|
|
191
|
+
base: {
|
|
192
|
+
vin17d: "fhsqnsn",
|
|
193
|
+
Bf5fcs: "fywypte",
|
|
194
|
+
Bv12yb3: "f1h7u52p",
|
|
195
|
+
Ezkn3b: "fjq4c94"
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
d: [".fhsqnsn{-webkit-animation-duration:0.267s;animation-duration:0.267s;}", ".fywypte{-webkit-animation-fill-mode:both;animation-fill-mode:both;}", ".f1h7u52p{-webkit-animation-name:f5j8bii;animation-name:f5j8bii;}", ".fjq4c94{-webkit-animation-timing-function:cubic-bezier(.1,.25,.75,.9);animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],
|
|
199
|
+
k: ["@-webkit-keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}", "@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"]
|
|
200
|
+
});
|
|
201
|
+
const useWeekNumberCellStyles = /*#__PURE__*/__styles({
|
|
202
|
+
base: {
|
|
203
|
+
De3pzq: "f1c21dwh",
|
|
204
|
+
g2u3we: "f68mrw8",
|
|
205
|
+
h3c5rm: ["f7pw515", "fw35ms5"],
|
|
206
|
+
B9xav0g: "frpde29",
|
|
207
|
+
zhjwy3: ["fw35ms5", "f7pw515"],
|
|
208
|
+
Bekrc4i: ["f1hqa2wf", "finvdd3"],
|
|
209
|
+
vrafjx: ["fcdblym", "fjik90z"],
|
|
210
|
+
B7ck84d: "f1ewtqcl",
|
|
211
|
+
sj55zd: "fxc4j92",
|
|
212
|
+
Be2twd7: "fy9rknc",
|
|
213
|
+
Bhrd7zp: "figsok6",
|
|
214
|
+
Bqenvij: "fxldao9",
|
|
215
|
+
B6of3ja: "f1hu3pq6",
|
|
216
|
+
t21cq0: ["f11qmguv", "f1tyq0we"],
|
|
217
|
+
jrapky: "f19f4twv",
|
|
218
|
+
Frg6f3: ["f1tyq0we", "f11qmguv"],
|
|
219
|
+
z8tnut: "f1g0x7ka",
|
|
220
|
+
z189sj: ["fhxju0i", "f1cnd47f"],
|
|
221
|
+
Byoj8tv: "f1qch9an",
|
|
222
|
+
uwmqm3: ["f1cnd47f", "fhxju0i"],
|
|
223
|
+
a9b677: "f1w9dchk"
|
|
224
|
+
}
|
|
225
|
+
}, {
|
|
226
|
+
d: [".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f68mrw8{border-top-color:var(--colorNeutralStroke2);}", ".f7pw515{border-right-color:var(--colorNeutralStroke2);}", ".fw35ms5{border-left-color:var(--colorNeutralStroke2);}", ".frpde29{border-bottom-color:var(--colorNeutralStroke2);}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".f1ewtqcl{box-sizing:border-box;}", ".fxc4j92{color:var(--colorNeutralForeground4);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fxldao9{height:28px;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".f1w9dchk{width:28px;}"]
|
|
227
|
+
});
|
|
228
|
+
const useDayOutsideBoundsStyles = /*#__PURE__*/__styles({
|
|
229
|
+
base: {
|
|
230
|
+
x734em: "f1v4z6xg",
|
|
231
|
+
B0ssf13: "f1u9q7oh",
|
|
232
|
+
B8h8h5z: "f1a22lcc",
|
|
233
|
+
Bbusuzp: "f1dcs8yz"
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
d: [".f1v4z6xg,.f1v4z6xg:disabled,.f1v4z6xg button,.f1v4z6xg.fui-CalendarDayGrid__hoverStyle,.f1v4z6xg.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorTransparentBackground);}", ".f1u9q7oh,.f1u9q7oh:disabled,.f1u9q7oh button,.f1u9q7oh.fui-CalendarDayGrid__hoverStyle,.f1u9q7oh.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForegroundDisabled);}", ".f1a22lcc,.f1a22lcc:disabled,.f1a22lcc button,.f1a22lcc.fui-CalendarDayGrid__hoverStyle,.f1a22lcc.fui-CalendarDayGrid__pressedStyle{pointer-events:none;}"],
|
|
237
|
+
m: [["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}", {
|
|
238
|
+
m: "(forced-colors: active)"
|
|
239
|
+
}]]
|
|
240
|
+
});
|
|
241
|
+
const useDayOutsideNavigatedMonthStyles = /*#__PURE__*/__styles({
|
|
242
|
+
lightenDaysOutsideNavigatedMonth: {
|
|
243
|
+
sj55zd: "fxc4j92",
|
|
244
|
+
Bhrd7zp: "figsok6",
|
|
245
|
+
Bbusuzp: "f1dcs8yz"
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
d: [".fxc4j92{color:var(--colorNeutralForeground4);}", ".figsok6{font-weight:var(--fontWeightRegular);}"],
|
|
249
|
+
m: [["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}", {
|
|
250
|
+
m: "(forced-colors: active)"
|
|
251
|
+
}]]
|
|
252
|
+
});
|
|
253
|
+
const useDayButtonStyles = /*#__PURE__*/__styles({
|
|
254
|
+
base: {
|
|
255
|
+
De3pzq: "f1c21dwh",
|
|
256
|
+
Bbmb7ep: ["f2i1086", "f1rlsnju"],
|
|
257
|
+
Beyfa6y: ["f1rlsnju", "f2i1086"],
|
|
258
|
+
B7oj6ja: ["f1stktl2", "f1127022"],
|
|
259
|
+
Btl43ni: ["f1127022", "f1stktl2"],
|
|
260
|
+
icvyot: "f1ern45e",
|
|
261
|
+
vrafjx: ["f1n71otn", "f1deefiw"],
|
|
262
|
+
oivjwe: "f1h8hb77",
|
|
263
|
+
wvpqe5: ["f1deefiw", "f1n71otn"],
|
|
264
|
+
sj55zd: "f1ym3bx4",
|
|
265
|
+
Bceei9c: "f1k6fduh",
|
|
266
|
+
Be2twd7: "fy9rknc",
|
|
267
|
+
Bhrd7zp: "ff5ikls",
|
|
268
|
+
Bqenvij: "frvgh55",
|
|
269
|
+
Bg96gwp: "f8xlz6g",
|
|
270
|
+
B68tc82: "f1mtd64y",
|
|
271
|
+
Bmxbyg5: "f1y7q3j9",
|
|
272
|
+
z8tnut: "f1g0x7ka",
|
|
273
|
+
z189sj: ["fhxju0i", "f1cnd47f"],
|
|
274
|
+
Byoj8tv: "f1qch9an",
|
|
275
|
+
uwmqm3: ["f1cnd47f", "fhxju0i"],
|
|
276
|
+
a9b677: "fq4mcun",
|
|
277
|
+
Bx0yju7: "f10y451g",
|
|
278
|
+
l98f4w: "f1dwpgx3"
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
d: [".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f2i1086{border-bottom-right-radius:2px;}", ".f1rlsnju{border-bottom-left-radius:2px;}", ".f1stktl2{border-top-right-radius:2px;}", ".f1127022{border-top-left-radius:2px;}", ".f1ern45e{border-top-style:none;}", ".f1n71otn{border-right-style:none;}", ".f1deefiw{border-left-style:none;}", ".f1h8hb77{border-bottom-style:none;}", ".f1ym3bx4{color:inherit;}", ".f1k6fduh{cursor:pointer;}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".ff5ikls{font-weight:inherit;}", ".frvgh55{height:24px;}", ".f8xlz6g{line-height:24px;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".fq4mcun{width:24px;}", ".f10y451gspan{height:inherit;}", ".f1dwpgx3span{line-height:inherit;}"]
|
|
282
|
+
});
|
|
283
|
+
const useDayIsTodayStyles = /*#__PURE__*/__styles({
|
|
284
|
+
base: {
|
|
285
|
+
De3pzq: "ffp7eso",
|
|
286
|
+
Bbmb7ep: ["f1xbx3v5", "fh9p2o2"],
|
|
287
|
+
Beyfa6y: ["fh9p2o2", "f1xbx3v5"],
|
|
288
|
+
B7oj6ja: ["f18mldvw", "f3h6kr5"],
|
|
289
|
+
Btl43ni: ["f3h6kr5", "f18mldvw"],
|
|
290
|
+
sj55zd: "f1phragk",
|
|
291
|
+
Bhrd7zp: "fl43uef",
|
|
292
|
+
Bsw6fvg: "fg374yq",
|
|
293
|
+
Bjwas2f: "fx4t0an",
|
|
294
|
+
Bn1d65q: ["f1bd7qk0", "fk5vpic"],
|
|
295
|
+
Bxeuatn: "fgxnpfp",
|
|
296
|
+
n51gp8: ["fk5vpic", "f1bd7qk0"],
|
|
297
|
+
Bbusuzp: "f1yig07e",
|
|
298
|
+
ycbfsm: "fkc42ay",
|
|
299
|
+
jxbfoe: "fj0lumn",
|
|
300
|
+
Bg4iunc: "f1cikclm"
|
|
301
|
+
}
|
|
302
|
+
}, {
|
|
303
|
+
d: [".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1xbx3v5{border-bottom-right-radius:100%;}", ".fh9p2o2{border-bottom-left-radius:100%;}", ".f18mldvw{border-top-right-radius:100%;}", ".f3h6kr5{border-top-left-radius:100%;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fj0lumn>.fui-CalendarDayGrid__dayMarker{background-color:var(--colorNeutralForegroundOnBrand);}"],
|
|
304
|
+
m: [["@media (forced-colors: active){.fg374yq{background-color:WindowText;}}", {
|
|
305
|
+
m: "(forced-colors: active)"
|
|
306
|
+
}], ["@media (forced-colors: active){.fx4t0an{border-top-color:WindowText;}}", {
|
|
307
|
+
m: "(forced-colors: active)"
|
|
308
|
+
}], ["@media (forced-colors: active){.f1bd7qk0{border-right-color:WindowText;}.fk5vpic{border-left-color:WindowText;}}", {
|
|
309
|
+
m: "(forced-colors: active)"
|
|
310
|
+
}], ["@media (forced-colors: active){.fgxnpfp{border-bottom-color:WindowText;}}", {
|
|
311
|
+
m: "(forced-colors: active)"
|
|
312
|
+
}], ["@media (forced-colors: active){.fk5vpic{border-left-color:WindowText;}.f1bd7qk0{border-right-color:WindowText;}}", {
|
|
313
|
+
m: "(forced-colors: active)"
|
|
314
|
+
}], ["@media (forced-colors: active){.f1yig07e{color:Window;}}", {
|
|
315
|
+
m: "(forced-colors: active)"
|
|
316
|
+
}], ["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}", {
|
|
317
|
+
m: "(forced-colors: active)"
|
|
318
|
+
}], ["@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}", {
|
|
319
|
+
m: "(forced-colors: active)"
|
|
320
|
+
}]]
|
|
321
|
+
});
|
|
322
|
+
const useFirstTransitionWeekStyles = /*#__PURE__*/__styles({
|
|
323
|
+
base: {
|
|
324
|
+
Bqenvij: "fniina8",
|
|
325
|
+
abs64n: "fk73vx1",
|
|
326
|
+
B68tc82: "f1p9o1ba",
|
|
327
|
+
Bmxbyg5: "f1sil6mw",
|
|
328
|
+
qhf8xq: "f1euv43f",
|
|
329
|
+
a9b677: "f3tsq5r"
|
|
330
|
+
},
|
|
331
|
+
verticalForward: {
|
|
332
|
+
vin17d: "f5f2jbu",
|
|
333
|
+
Bf5fcs: "fywypte",
|
|
334
|
+
Bv12yb3: "fb3mxun",
|
|
335
|
+
Ezkn3b: "f1ee2ue"
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
d: [".fniina8{height:0;}", ".fk73vx1{opacity:0;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1euv43f{position:absolute;}", ".f3tsq5r{width:0;}", ".f5f2jbu{-webkit-animation-duration:0.367s;animation-duration:0.367s;}", ".fywypte{-webkit-animation-fill-mode:both;animation-fill-mode:both;}", ".fb3mxun{-webkit-animation-name:f199e34v,f76svrd,fhwv0sk;animation-name:f199e34v,f76svrd,fhwv0sk;}", ".f1ee2ue{-webkit-animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],
|
|
339
|
+
k: ["@-webkit-keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}", "@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}", "@-webkit-keyframes f76svrd{from{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}to{-webkit-transform:translate3d(0, -20px, 0);-moz-transform:translate3d(0, -20px, 0);-ms-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}}", "@keyframes f76svrd{from{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}to{-webkit-transform:translate3d(0, -20px, 0);-moz-transform:translate3d(0, -20px, 0);-ms-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0);}}", "@-webkit-keyframes fhwv0sk{100%{height:0px;overflow-x:hidden;overflow-y:hidden;width:0px;}99.9%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}0%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}}", "@keyframes fhwv0sk{100%{height:0px;overflow-x:hidden;overflow-y:hidden;width:0px;}99.9%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}0%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}}"]
|
|
340
|
+
});
|
|
341
|
+
const useLastTransitionWeekStyles = /*#__PURE__*/__styles({
|
|
342
|
+
base: {
|
|
343
|
+
Bqenvij: "fniina8",
|
|
344
|
+
B6of3ja: "flykjtj",
|
|
345
|
+
abs64n: "fk73vx1",
|
|
346
|
+
B68tc82: "f1p9o1ba",
|
|
347
|
+
Bmxbyg5: "f1sil6mw",
|
|
348
|
+
qhf8xq: "f1euv43f",
|
|
349
|
+
a9b677: "f3tsq5r"
|
|
350
|
+
},
|
|
351
|
+
verticalBackward: {
|
|
352
|
+
vin17d: "f5f2jbu",
|
|
353
|
+
Bf5fcs: "fywypte",
|
|
354
|
+
Bv12yb3: "f1h56eac",
|
|
355
|
+
Ezkn3b: "f1ee2ue"
|
|
356
|
+
}
|
|
357
|
+
}, {
|
|
358
|
+
d: [".fniina8{height:0;}", ".flykjtj{margin-top:-28px;}", ".fk73vx1{opacity:0;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1euv43f{position:absolute;}", ".f3tsq5r{width:0;}", ".f5f2jbu{-webkit-animation-duration:0.367s;animation-duration:0.367s;}", ".fywypte{-webkit-animation-fill-mode:both;animation-fill-mode:both;}", ".f1h56eac{-webkit-animation-name:f199e34v,f18895iq,fhwv0sk;animation-name:f199e34v,f18895iq,fhwv0sk;}", ".f1ee2ue{-webkit-animation-timing-function:cubic-bezier(.1,.9,.2,1);animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],
|
|
359
|
+
k: ["@-webkit-keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}", "@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}", "@-webkit-keyframes f18895iq{from{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}to{-webkit-transform:translate3d(0, 20px, 0);-moz-transform:translate3d(0, 20px, 0);-ms-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0);}}", "@keyframes f18895iq{from{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);}to{-webkit-transform:translate3d(0, 20px, 0);-moz-transform:translate3d(0, 20px, 0);-ms-transform:translate3d(0, 20px, 0);transform:translate3d(0, 20px, 0);}}", "@-webkit-keyframes fhwv0sk{100%{height:0px;overflow-x:hidden;overflow-y:hidden;width:0px;}99.9%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}0%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}}", "@keyframes fhwv0sk{100%{height:0px;overflow-x:hidden;overflow-y:hidden;width:0px;}99.9%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}0%{height:28px;overflow-x:visible;overflow-y:visible;width:100%;}}"]
|
|
360
|
+
});
|
|
361
|
+
const useDayMarkerStyles = /*#__PURE__*/__styles({
|
|
362
|
+
base: {
|
|
363
|
+
De3pzq: "fnggedw",
|
|
364
|
+
Bbmb7ep: ["f1xbx3v5", "fh9p2o2"],
|
|
365
|
+
Beyfa6y: ["fh9p2o2", "f1xbx3v5"],
|
|
366
|
+
B7oj6ja: ["f18mldvw", "f3h6kr5"],
|
|
367
|
+
Btl43ni: ["f3h6kr5", "f18mldvw"],
|
|
368
|
+
B5kzvoi: "f1oq0udb",
|
|
369
|
+
Bqenvij: "f6ywr7j",
|
|
370
|
+
oyh7mz: ["f1vgc2s3", "f1e31b4d"],
|
|
371
|
+
B6of3ja: "fgr6219",
|
|
372
|
+
t21cq0: ["f1ujusj6", "fcgxt0o"],
|
|
373
|
+
jrapky: "f10jk5vf",
|
|
374
|
+
Frg6f3: ["fcgxt0o", "f1ujusj6"],
|
|
375
|
+
qhf8xq: "f1euv43f",
|
|
376
|
+
j35jbq: ["f1e31b4d", "f1vgc2s3"],
|
|
377
|
+
a9b677: "faro0ui",
|
|
378
|
+
Bsw6fvg: "fg374yq",
|
|
379
|
+
ycbfsm: "fkc42ay"
|
|
380
|
+
}
|
|
381
|
+
}, {
|
|
382
|
+
d: [".fnggedw{background-color:var(--colorBrandForeground2);}", ".f1xbx3v5{border-bottom-right-radius:100%;}", ".fh9p2o2{border-bottom-left-radius:100%;}", ".f18mldvw{border-top-right-radius:100%;}", ".f3h6kr5{border-top-left-radius:100%;}", ".f1oq0udb{bottom:1px;}", ".f6ywr7j{height:4px;}", ".f1vgc2s3{left:0;}", ".f1e31b4d{right:0;}", ".fgr6219{margin-top:auto;}", ".f1ujusj6{margin-right:auto;}", ".fcgxt0o{margin-left:auto;}", ".f10jk5vf{margin-bottom:auto;}", ".f1euv43f{position:absolute;}", ".faro0ui{width:4px;}"],
|
|
383
|
+
m: [["@media (forced-colors: active){.fg374yq{background-color:WindowText;}}", {
|
|
384
|
+
m: "(forced-colors: active)"
|
|
385
|
+
}], ["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}", {
|
|
386
|
+
m: "(forced-colors: active)"
|
|
387
|
+
}]]
|
|
388
|
+
});
|
|
389
|
+
const useCornerBorderAndRadiusStyles = /*#__PURE__*/__styles({
|
|
390
|
+
corners: {
|
|
391
|
+
Cy64m2: ["fgk2v8v", "flgychs"],
|
|
392
|
+
Bnn43bw: ["fon8hnx", "f1dzb7s0"],
|
|
393
|
+
feanbc: ["f5gufe6", "f6b3fnj"],
|
|
394
|
+
B4268ip: ["fo35n0e", "f96pych"]
|
|
395
|
+
}
|
|
396
|
+
}, {
|
|
397
|
+
d: [".fgk2v8v.fui-CalendarDayGrid__topRightCornerDate{border-top-right-radius:2px;}", ".flgychs.fui-CalendarDayGrid__topRightCornerDate{border-top-left-radius:2px;}", ".fon8hnx.fui-CalendarDayGrid__topLeftCornerDate{border-top-left-radius:2px;}", ".f1dzb7s0.fui-CalendarDayGrid__topLeftCornerDate{border-top-right-radius:2px;}", ".f5gufe6.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-right-radius:2px;}", ".f6b3fnj.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-left-radius:2px;}", ".fo35n0e.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-left-radius:2px;}", ".f96pych.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-right-radius:2px;}"]
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
*
|
|
402
|
+
* Apply styling to the CalendarDayGrid slots based on the state
|
|
403
|
+
*/
|
|
404
|
+
export const useCalendarDayGridStyles_unstable = props => {
|
|
405
|
+
const wrapperStyles = useWrapperStyles();
|
|
406
|
+
const tableStyles = useTableStyles();
|
|
407
|
+
const dayCellStyles = useDayCellStyles();
|
|
408
|
+
const daySelectedStyles = useDaySelectedStyles();
|
|
409
|
+
const weekRowStyles = useWeekRowStyles();
|
|
410
|
+
const weekDayLabelCellStyles = useWeekDayLabelCellStyles();
|
|
411
|
+
const weekNumberCellStyles = useWeekNumberCellStyles();
|
|
412
|
+
const dayOutsideBoundsStyles = useDayOutsideBoundsStyles();
|
|
413
|
+
const dayOutsideNavigatedMonthStyles = useDayOutsideNavigatedMonthStyles();
|
|
414
|
+
const dayButtonStyles = useDayButtonStyles();
|
|
415
|
+
const dayIsTodayStyles = useDayIsTodayStyles();
|
|
416
|
+
const firstTransitionWeekStyles = useFirstTransitionWeekStyles();
|
|
417
|
+
const lastTransitionWeekStyles = useLastTransitionWeekStyles();
|
|
418
|
+
const dayMarkerStyles = useDayMarkerStyles();
|
|
419
|
+
const cornerBorderAndRadiusStyles = useCornerBorderAndRadiusStyles();
|
|
420
|
+
const {
|
|
421
|
+
animateBackwards,
|
|
422
|
+
animationDirection,
|
|
423
|
+
lightenDaysOutsideNavigatedMonth,
|
|
424
|
+
showWeekNumbers
|
|
425
|
+
} = props;
|
|
426
|
+
return {
|
|
427
|
+
wrapper: mergeClasses(calendarDayGridClassNames.wrapper, wrapperStyles.base),
|
|
428
|
+
table: mergeClasses(calendarDayGridClassNames.table, tableStyles.base, showWeekNumbers && tableStyles.showWeekNumbers),
|
|
429
|
+
dayCell: mergeClasses(calendarDayGridClassNames.dayCell, dayCellStyles.base, cornerBorderAndRadiusStyles.corners),
|
|
430
|
+
daySelected: mergeClasses(calendarDayGridClassNames.daySelected, daySelectedStyles.base),
|
|
431
|
+
weekRow: mergeClasses(calendarDayGridClassNames.weekRow, animateBackwards !== undefined && weekRowStyles.base, animateBackwards !== undefined && (animationDirection === AnimationDirection.Horizontal ? animateBackwards ? weekRowStyles.horizontalBackward : weekRowStyles.horizontalForward : animateBackwards ? weekRowStyles.verticalBackward : weekRowStyles.verticalForward)),
|
|
432
|
+
weekDayLabelCell: mergeClasses(calendarDayGridClassNames.weekDayLabelCell, weekDayLabelCellStyles.base),
|
|
433
|
+
weekNumberCell: mergeClasses(calendarDayGridClassNames.weekNumberCell, weekNumberCellStyles.base),
|
|
434
|
+
dayOutsideBounds: mergeClasses(calendarDayGridClassNames.dayOutsideBounds, dayOutsideBoundsStyles.base),
|
|
435
|
+
dayOutsideNavigatedMonth: mergeClasses(calendarDayGridClassNames.dayOutsideNavigatedMonth, lightenDaysOutsideNavigatedMonth && dayOutsideNavigatedMonthStyles.lightenDaysOutsideNavigatedMonth),
|
|
436
|
+
dayButton: mergeClasses(calendarDayGridClassNames.dayButton, dayButtonStyles.base),
|
|
437
|
+
dayIsToday: mergeClasses(calendarDayGridClassNames.dayIsToday, dayIsTodayStyles.base),
|
|
438
|
+
firstTransitionWeek: mergeClasses(calendarDayGridClassNames.firstTransitionWeek, firstTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && !animateBackwards && firstTransitionWeekStyles.verticalForward),
|
|
439
|
+
lastTransitionWeek: mergeClasses(calendarDayGridClassNames.lastTransitionWeek, lastTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && animateBackwards && lastTransitionWeekStyles.verticalBackward),
|
|
440
|
+
dayMarker: mergeClasses(calendarDayGridClassNames.dayMarker, dayMarkerStyles.base)
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
//# sourceMappingURL=useCalendarDayGridStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["tokens","__styles","mergeClasses","shorthands","DURATION_2","DURATION_3","EASING_FUNCTION_1","EASING_FUNCTION_2","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_DOWN_OUT20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","AnimationDirection","weekCornersClassNames","calendarDayGridClassNames","wrapper","table","dayCell","daySelected","weekRow","weekDayLabelCell","weekNumberCell","dayOutsideBounds","dayOutsideNavigatedMonth","dayButton","dayIsToday","firstTransitionWeek","lastTransitionWeek","dayMarker","extraCalendarDayGridClassNames","hoverStyle","pressedStyle","useWrapperStyles","base","Byoj8tv","d","useTableStyles","po53p8","Bxjg3zr","Be2twd7","B6of3ja","qhf8xq","B73mfa3","fsow6f","a9b677","showWeekNumbers","useDayCellStyles","sj55zd","Bceei9c","Bhrd7zp","Bqenvij","Bg96gwp","t21cq0","jrapky","Frg6f3","z8tnut","z189sj","uwmqm3","Bsw6fvg","Bbusuzp","cvlxnx","Bweudez","hzfqlu","Bb91d7d","dua3dm","z1p9vi","Bsnevi5","xnb59o","Bj67fi1","B2gfgcj","B6cqqer","fpurfy","Fioj4w","Bq9yiu4","cpbo2x","Bq268z6","m","useDaySelectedStyles","De3pzq","Bjwas2f","Bn1d65q","Bxeuatn","n51gp8","ycbfsm","a3nq4f","Bnf3alp","H2c3sd","qu8ld","Bg4iunc","h","useWeekRowStyles","vin17d","Bf5fcs","Ezkn3b","horizontalBackward","Bv12yb3","horizontalForward","verticalBackward","verticalForward","k","useWeekDayLabelCellStyles","useWeekNumberCellStyles","g2u3we","h3c5rm","B9xav0g","zhjwy3","Bekrc4i","vrafjx","B7ck84d","useDayOutsideBoundsStyles","x734em","B0ssf13","B8h8h5z","useDayOutsideNavigatedMonthStyles","lightenDaysOutsideNavigatedMonth","useDayButtonStyles","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","icvyot","oivjwe","wvpqe5","B68tc82","Bmxbyg5","Bx0yju7","l98f4w","useDayIsTodayStyles","jxbfoe","useFirstTransitionWeekStyles","abs64n","useLastTransitionWeekStyles","useDayMarkerStyles","B5kzvoi","oyh7mz","j35jbq","useCornerBorderAndRadiusStyles","corners","Cy64m2","Bnn43bw","feanbc","B4268ip","useCalendarDayGridStyles_unstable","props","wrapperStyles","tableStyles","dayCellStyles","daySelectedStyles","weekRowStyles","weekDayLabelCellStyles","weekNumberCellStyles","dayOutsideBoundsStyles","dayOutsideNavigatedMonthStyles","dayButtonStyles","dayIsTodayStyles","firstTransitionWeekStyles","lastTransitionWeekStyles","dayMarkerStyles","cornerBorderAndRadiusStyles","animateBackwards","animationDirection","undefined","Horizontal"],"sources":["../../../src/components/CalendarDayGrid/useCalendarDayGridStyles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport {\n DURATION_2,\n DURATION_3,\n EASING_FUNCTION_1,\n EASING_FUNCTION_2,\n FADE_IN,\n FADE_OUT,\n SLIDE_DOWN_IN20,\n SLIDE_DOWN_OUT20,\n SLIDE_LEFT_IN20,\n SLIDE_RIGHT_IN20,\n SLIDE_UP_IN20,\n SLIDE_UP_OUT20,\n TRANSITION_ROW_DISAPPEARANCE,\n} from '../../utils';\nimport { AnimationDirection } from '../Calendar/Calendar.types';\nimport { weekCornersClassNames } from './useWeekCornerStyles';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CalendarDayGridStyles, CalendarDayGridStyleProps } from './CalendarDayGrid.types';\n\n/**\n * @internal\n */\nexport const calendarDayGridClassNames: SlotClassNames<CalendarDayGridStyles> = {\n wrapper: 'fui-CalendarDayGrid__wrapper',\n table: 'fui-CalendarDayGrid__table',\n dayCell: 'fui-CalendarDayGrid__dayCell',\n daySelected: 'fui-CalendarDayGrid__daySelected',\n weekRow: 'fui-CalendarDayGrid__weekRow',\n weekDayLabelCell: 'fui-CalendarDayGrid__weekDayLabelCell',\n weekNumberCell: 'fui-CalendarDayGrid__weekNumberCell',\n dayOutsideBounds: 'fui-CalendarDayGrid__dayOutsideBounds',\n dayOutsideNavigatedMonth: 'fui-CalendarDayGrid__dayOutsideNavigatedMonth',\n dayButton: 'fui-CalendarDayGrid__dayButton',\n dayIsToday: 'fui-CalendarDayGrid__dayIsToday',\n firstTransitionWeek: 'fui-CalendarDayGrid__firstTransitionWeek',\n lastTransitionWeek: 'fui-CalendarDayGrid__lastTransitionWeek',\n dayMarker: 'fui-CalendarDayGrid__dayMarker',\n};\n\n/**\n * @internal\n */\nexport const extraCalendarDayGridClassNames = {\n hoverStyle: 'fui-CalendarDayGrid__hoverStyle',\n pressedStyle: 'fui-CalendarDayGrid__pressedStyle',\n};\n\nconst useWrapperStyles = makeStyles({\n base: {\n paddingBottom: '10px',\n },\n});\n\nconst useTableStyles = makeStyles({\n base: {\n borderCollapse: 'collapse',\n borderSpacing: 0,\n fontSize: 'inherit',\n marginTop: '4px',\n paddingBottom: '10px',\n position: 'relative',\n tableLayout: 'fixed',\n textAlign: 'center',\n width: '196px',\n },\n showWeekNumbers: {\n width: '226px',\n },\n});\n\nconst useDayCellStyles = makeStyles({\n base: {\n color: tokens.colorNeutralForeground1,\n cursor: 'pointer',\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n height: '28px',\n lineHeight: '28px',\n ...shorthands.margin(0),\n ...shorthands.padding(0),\n position: 'relative',\n width: '28px',\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n color: 'WindowText',\n },\n\n [`&.${extraCalendarDayGridClassNames.hoverStyle}`]: {\n color: tokens.colorNeutralForeground1Static,\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n color: 'WindowText',\n ...shorthands.outline('1px', 'solid', 'Highlight'),\n zIndex: 3,\n },\n },\n\n [`&.${extraCalendarDayGridClassNames.pressedStyle}`]: {\n color: tokens.colorNeutralForeground1Static,\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n ...shorthands.borderColor('Highlight'),\n color: 'Highlight',\n },\n },\n },\n});\n\nconst useDaySelectedStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorBrandBackgroundInvertedSelected,\n color: tokens.colorNeutralForeground1Static,\n\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n ...shorthands.borderColor('Highlight'),\n color: 'HighlightText',\n forcedColorAdjust: 'none',\n },\n\n [`&:hover, &.${extraCalendarDayGridClassNames.hoverStyle}, &.${extraCalendarDayGridClassNames.pressedStyle}`]: {\n color: tokens.colorNeutralForeground1Static,\n backgroundColor: tokens.colorBrandBackgroundInvertedSelected,\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n color: 'HighlightText',\n },\n },\n\n [`& > .${calendarDayGridClassNames.dayMarker}`]: {\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n },\n },\n },\n});\n\nconst useWeekRowStyles = makeStyles({\n base: {\n animationDuration: DURATION_3,\n animationFillMode: 'both',\n animationTimingFunction: EASING_FUNCTION_1,\n },\n horizontalBackward: {\n animationName: [FADE_IN, SLIDE_RIGHT_IN20],\n },\n horizontalForward: {\n animationName: [FADE_IN, SLIDE_LEFT_IN20],\n },\n verticalBackward: {\n animationName: [FADE_IN, SLIDE_DOWN_IN20],\n },\n verticalForward: {\n animationName: [FADE_IN, SLIDE_UP_IN20],\n },\n});\n\nconst useWeekDayLabelCellStyles = makeStyles({\n base: {\n animationDuration: DURATION_2,\n animationFillMode: 'both',\n animationName: FADE_IN,\n animationTimingFunction: EASING_FUNCTION_2,\n },\n});\n\nconst useWeekNumberCellStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n ...shorthands.borderRight('1px', 'solid'),\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground4,\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n height: '28px',\n ...shorthands.margin(0),\n ...shorthands.padding(0),\n width: '28px',\n },\n});\n\nconst useDayOutsideBoundsStyles = makeStyles({\n base: {\n [`&, &:disabled, & button, &.${extraCalendarDayGridClassNames.hoverStyle}` +\n `, &.${extraCalendarDayGridClassNames.pressedStyle}`]: {\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorNeutralForegroundDisabled,\n pointerEvents: 'none',\n },\n '@media (forced-colors: active)': {\n color: 'GrayText',\n },\n },\n});\n\nconst useDayOutsideNavigatedMonthStyles = makeStyles({\n lightenDaysOutsideNavigatedMonth: {\n color: tokens.colorNeutralForeground4,\n fontWeight: tokens.fontWeightRegular,\n\n '@media (forced-colors: active)': {\n color: 'GrayText',\n },\n },\n});\n\nconst useDayButtonStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderRadius('2px'),\n ...shorthands.borderStyle('none'),\n color: 'inherit',\n cursor: 'pointer',\n fontSize: tokens.fontSizeBase200,\n fontWeight: 'inherit',\n height: '24px',\n lineHeight: '24px',\n ...shorthands.overflow('visible'),\n ...shorthands.padding(0),\n width: '24px',\n\n '&span': {\n height: 'inherit',\n lineHeight: 'inherit',\n },\n },\n});\n\nconst useDayIsTodayStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorBrandBackground,\n ...shorthands.borderRadius('100%'),\n color: tokens.colorNeutralForegroundOnBrand,\n fontWeight: tokens.fontWeightSemibold,\n\n '@media (forced-colors: active)': {\n backgroundColor: 'WindowText',\n ...shorthands.borderColor('WindowText'),\n color: 'Window',\n forcedColorAdjust: 'none',\n },\n\n [`& > .${calendarDayGridClassNames.dayMarker}`]: {\n backgroundColor: tokens.colorNeutralForegroundOnBrand,\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n },\n },\n },\n});\n\nconst useFirstTransitionWeekStyles = makeStyles({\n base: {\n height: 0,\n opacity: 0,\n ...shorthands.overflow('hidden'),\n position: 'absolute',\n width: 0,\n },\n verticalForward: {\n animationDuration: DURATION_3,\n animationFillMode: 'both',\n animationName: [FADE_OUT, SLIDE_UP_OUT20, TRANSITION_ROW_DISAPPEARANCE],\n animationTimingFunction: EASING_FUNCTION_1,\n },\n});\n\nconst useLastTransitionWeekStyles = makeStyles({\n base: {\n height: 0,\n marginTop: '-28px',\n opacity: 0,\n ...shorthands.overflow('hidden'),\n position: 'absolute',\n width: 0,\n },\n verticalBackward: {\n animationDuration: DURATION_3,\n animationFillMode: 'both',\n animationName: [FADE_OUT, SLIDE_DOWN_OUT20, TRANSITION_ROW_DISAPPEARANCE],\n animationTimingFunction: EASING_FUNCTION_1,\n },\n});\n\nconst useDayMarkerStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorBrandForeground2,\n ...shorthands.borderRadius('100%'),\n bottom: '1px',\n height: '4px',\n left: 0,\n ...shorthands.margin('auto'),\n position: 'absolute',\n right: 0,\n width: '4px',\n\n '@media (forced-colors: active)': {\n backgroundColor: 'WindowText',\n forcedColorAdjust: 'none',\n },\n },\n});\n\nconst useCornerBorderAndRadiusStyles = makeStyles({\n corners: {\n [`&.${weekCornersClassNames.topRightCornerDate}`]: {\n borderTopRightRadius: '2px',\n },\n [`&.${weekCornersClassNames.topLeftCornerDate}`]: {\n borderTopLeftRadius: '2px',\n },\n [`&.${weekCornersClassNames.bottomRightCornerDate}`]: {\n borderBottomRightRadius: '2px',\n },\n [`&.${weekCornersClassNames.bottomLeftCornerDate}`]: {\n borderBottomLeftRadius: '2px',\n },\n },\n});\n\n/**\n * @internal\n *\n * Apply styling to the CalendarDayGrid slots based on the state\n */\nexport const useCalendarDayGridStyles_unstable = (props: CalendarDayGridStyleProps): CalendarDayGridStyles => {\n const wrapperStyles = useWrapperStyles();\n const tableStyles = useTableStyles();\n const dayCellStyles = useDayCellStyles();\n const daySelectedStyles = useDaySelectedStyles();\n const weekRowStyles = useWeekRowStyles();\n const weekDayLabelCellStyles = useWeekDayLabelCellStyles();\n const weekNumberCellStyles = useWeekNumberCellStyles();\n const dayOutsideBoundsStyles = useDayOutsideBoundsStyles();\n const dayOutsideNavigatedMonthStyles = useDayOutsideNavigatedMonthStyles();\n const dayButtonStyles = useDayButtonStyles();\n const dayIsTodayStyles = useDayIsTodayStyles();\n const firstTransitionWeekStyles = useFirstTransitionWeekStyles();\n const lastTransitionWeekStyles = useLastTransitionWeekStyles();\n const dayMarkerStyles = useDayMarkerStyles();\n const cornerBorderAndRadiusStyles = useCornerBorderAndRadiusStyles();\n\n const { animateBackwards, animationDirection, lightenDaysOutsideNavigatedMonth, showWeekNumbers } = props;\n\n return {\n wrapper: mergeClasses(calendarDayGridClassNames.wrapper, wrapperStyles.base),\n table: mergeClasses(\n calendarDayGridClassNames.table,\n tableStyles.base,\n showWeekNumbers && tableStyles.showWeekNumbers,\n ),\n dayCell: mergeClasses(calendarDayGridClassNames.dayCell, dayCellStyles.base, cornerBorderAndRadiusStyles.corners),\n daySelected: mergeClasses(calendarDayGridClassNames.daySelected, daySelectedStyles.base),\n weekRow: mergeClasses(\n calendarDayGridClassNames.weekRow,\n animateBackwards !== undefined && weekRowStyles.base,\n animateBackwards !== undefined &&\n (animationDirection === AnimationDirection.Horizontal\n ? animateBackwards\n ? weekRowStyles.horizontalBackward\n : weekRowStyles.horizontalForward\n : animateBackwards\n ? weekRowStyles.verticalBackward\n : weekRowStyles.verticalForward),\n ),\n weekDayLabelCell: mergeClasses(calendarDayGridClassNames.weekDayLabelCell, weekDayLabelCellStyles.base),\n weekNumberCell: mergeClasses(calendarDayGridClassNames.weekNumberCell, weekNumberCellStyles.base),\n dayOutsideBounds: mergeClasses(calendarDayGridClassNames.dayOutsideBounds, dayOutsideBoundsStyles.base),\n dayOutsideNavigatedMonth: mergeClasses(\n calendarDayGridClassNames.dayOutsideNavigatedMonth,\n lightenDaysOutsideNavigatedMonth && dayOutsideNavigatedMonthStyles.lightenDaysOutsideNavigatedMonth,\n ),\n dayButton: mergeClasses(calendarDayGridClassNames.dayButton, dayButtonStyles.base),\n dayIsToday: mergeClasses(calendarDayGridClassNames.dayIsToday, dayIsTodayStyles.base),\n firstTransitionWeek: mergeClasses(\n calendarDayGridClassNames.firstTransitionWeek,\n firstTransitionWeekStyles.base,\n animateBackwards !== undefined &&\n animationDirection !== AnimationDirection.Horizontal &&\n !animateBackwards &&\n firstTransitionWeekStyles.verticalForward,\n ),\n lastTransitionWeek: mergeClasses(\n calendarDayGridClassNames.lastTransitionWeek,\n lastTransitionWeekStyles.base,\n animateBackwards !== undefined &&\n animationDirection !== AnimationDirection.Horizontal &&\n animateBackwards &&\n lastTransitionWeekStyles.verticalBackward,\n ),\n dayMarker: mergeClasses(calendarDayGridClassNames.dayMarker, dayMarkerStyles.base),\n };\n};\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ;AACvB,SAAAC,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ;AACrD,SACEC,UAAU,EACVC,UAAU,EACVC,iBAAiB,EACjBC,iBAAiB,EACjBC,OAAO,EACPC,QAAQ,EACRC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,gBAAgB,EAChBC,aAAa,EACbC,cAAc,EACdC,4BAA4B,QACvB;AACP,SAASC,kBAAkB,QAAQ;AACnC,SAASC,qBAAqB,QAAQ;AAItC;;;AAGA,OAAO,MAAMC,yBAAA,GAAmE;EAC9EC,OAAA,EAAS;EACTC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,WAAA,EAAa;EACbC,OAAA,EAAS;EACTC,gBAAA,EAAkB;EAClBC,cAAA,EAAgB;EAChBC,gBAAA,EAAkB;EAClBC,wBAAA,EAA0B;EAC1BC,SAAA,EAAW;EACXC,UAAA,EAAY;EACZC,mBAAA,EAAqB;EACrBC,kBAAA,EAAoB;EACpBC,SAAA,EAAW;AACb;AAEA;;;AAGA,OAAO,MAAMC,8BAAA,GAAiC;EAC5CC,UAAA,EAAY;EACZC,YAAA,EAAc;AAChB;AAEA,MAAMC,gBAAA,gBAAmBpC,QAAA;EAAAqC,IAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAIzB;AAEA,MAAMC,cAAA,gBAAiBxC,QAAA;EAAAqC,IAAA;IAAAI,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAN,OAAA;IAAAO,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,eAAA;IAAAD,MAAA;EAAA;AAAA;EAAAT,CAAA;AAAA,EAevB;AAEA,MAAMW,gBAAA,gBAAmBlD,QAAA;EAAAqC,IAAA;IAA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Q,gBAAgB,EAAEiI,sBAAA,CAAuBtH,IAAI;IACtGV,wBAAA,EAA0B1B,YAAA,CACxBiB,yBAAA,CAA0BS,wBAAwB,EAClD2F,gCAAA,IAAoCsC,8BAAA,CAA+BtC,gCAAgC;IAErG1F,SAAA,EAAW3B,YAAA,CAAaiB,yBAAA,CAA0BU,SAAS,EAAEiI,eAAA,CAAgBxH,IAAI;IACjFR,UAAA,EAAY5B,YAAA,CAAaiB,yBAAA,CAA0BW,UAAU,EAAEiI,gBAAA,CAAiBzH,IAAI;IACpFP,mBAAA,EAAqB7B,YAAA,CACnBiB,yBAAA,CAA0BY,mBAAmB,EAC7CiI,yBAAA,CAA0B1H,IAAI,EAC9B8H,gBAAA,KAAqBE,SAAA,IACnBD,kBAAA,KAAuBpJ,kBAAA,CAAmBsJ,UAAU,IACpD,CAACH,gBAAA,IACDJ,yBAAA,CAA0BzD,eAAe;IAE7CvE,kBAAA,EAAoB9B,YAAA,CAClBiB,yBAAA,CAA0Ba,kBAAkB,EAC5CiI,wBAAA,CAAyB3H,IAAI,EAC7B8H,gBAAA,KAAqBE,SAAA,IACnBD,kBAAA,KAAuBpJ,kBAAA,CAAmBsJ,UAAU,IACpDH,gBAAA,IACAH,wBAAA,CAAyB3D,gBAAgB;IAE7CrE,SAAA,EAAW/B,YAAA,CAAaiB,yBAAA,CAA0Bc,SAAS,EAAEiI,eAAA,CAAgB5H,IAAI;EACnF;AACF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { useFluent_unstable } from '@fluentui/react-shared-contexts';
|
|
2
|
+
import { mergeClasses } from '@griffel/react';
|
|
3
|
+
import { DateRangeType } from '../../utils/constants';
|
|
4
|
+
import { getDateRangeArray } from '../../utils/index';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export const weekCornersClassNames = {
|
|
9
|
+
topRightCornerDate: 'fui-CalendarDayGrid__topRightCornerDate',
|
|
10
|
+
topLeftCornerDate: 'fui-CalendarDayGrid__topLeftCornerDate',
|
|
11
|
+
bottomRightCornerDate: 'fui-CalendarDayGrid__bottomRightCornerDate',
|
|
12
|
+
bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate'
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export function useWeekCornerStyles(props) {
|
|
18
|
+
const {
|
|
19
|
+
dir
|
|
20
|
+
} = useFluent_unstable();
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* Section for setting the rounded corner styles on individual day cells. Individual day cells need different
|
|
24
|
+
* corners to be rounded depending on which date range type and where the cell is located in the current grid.
|
|
25
|
+
* If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes
|
|
26
|
+
* in Edge browser.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
const getWeekCornerStyles = initialWeeks => {
|
|
30
|
+
const weekCornersStyled = {};
|
|
31
|
+
/* need to handle setting all of the corners on arbitrarily shaped blobs
|
|
32
|
+
__
|
|
33
|
+
__|A |
|
|
34
|
+
|B |C |__
|
|
35
|
+
|D |E |F |
|
|
36
|
+
in this case, A needs top left rounded, top right rounded
|
|
37
|
+
B needs top left rounded
|
|
38
|
+
C doesn't need any rounding
|
|
39
|
+
D needs bottom left rounded
|
|
40
|
+
E doesn't need any rounding
|
|
41
|
+
F needs top right rounding
|
|
42
|
+
*/ // cut off the animation transition weeks
|
|
43
|
+
const weeks = initialWeeks.slice(1, initialWeeks.length - 1);
|
|
44
|
+
// if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.
|
|
45
|
+
weeks.forEach((week, weekIndex) => {
|
|
46
|
+
week.forEach((day, dayIndex) => {
|
|
47
|
+
const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);
|
|
48
|
+
const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);
|
|
49
|
+
const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);
|
|
50
|
+
const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);
|
|
51
|
+
weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
return weekCornersStyled;
|
|
55
|
+
};
|
|
56
|
+
const calculateRoundedStyles = (above, below, left, right) => {
|
|
57
|
+
const style = [];
|
|
58
|
+
const roundedTopLeft = !above && !left;
|
|
59
|
+
const roundedTopRight = !above && !right;
|
|
60
|
+
const roundedBottomLeft = !below && !left;
|
|
61
|
+
const roundedBottomRight = !below && !right;
|
|
62
|
+
if (roundedTopLeft) {
|
|
63
|
+
style.push(dir === 'rtl' ? weekCornersClassNames.topRightCornerDate : weekCornersClassNames.topLeftCornerDate);
|
|
64
|
+
}
|
|
65
|
+
if (roundedTopRight) {
|
|
66
|
+
style.push(dir === 'rtl' ? weekCornersClassNames.topLeftCornerDate : weekCornersClassNames.topRightCornerDate);
|
|
67
|
+
}
|
|
68
|
+
if (roundedBottomLeft) {
|
|
69
|
+
style.push(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);
|
|
70
|
+
}
|
|
71
|
+
if (roundedBottomRight) {
|
|
72
|
+
style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);
|
|
73
|
+
}
|
|
74
|
+
return mergeClasses(...style);
|
|
75
|
+
};
|
|
76
|
+
const isInSameHoverRange = (date1, date2, date1Selected, date2Selected) => {
|
|
77
|
+
const {
|
|
78
|
+
dateRangeType,
|
|
79
|
+
firstDayOfWeek,
|
|
80
|
+
workWeekDays
|
|
81
|
+
} = props;
|
|
82
|
+
// The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state
|
|
83
|
+
const dateRangeHoverType = dateRangeType === DateRangeType.WorkWeek ? DateRangeType.Week : dateRangeType;
|
|
84
|
+
// we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver
|
|
85
|
+
const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);
|
|
86
|
+
if (date1Selected !== date2Selected) {
|
|
87
|
+
// if one is selected and the other is not, they can't be in the same range
|
|
88
|
+
return false;
|
|
89
|
+
} else if (date1Selected && date2Selected) {
|
|
90
|
+
// if they're both selected at the same time they must be in the same range
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
// otherwise, both must be unselected, so check the dateRange
|
|
94
|
+
return dateRange.filter(date => date.getTime() === date2.getTime()).length > 0;
|
|
95
|
+
};
|
|
96
|
+
return [getWeekCornerStyles, calculateRoundedStyles];
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=useWeekCornerStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useFluent_unstable","mergeClasses","DateRangeType","getDateRangeArray","weekCornersClassNames","topRightCornerDate","topLeftCornerDate","bottomRightCornerDate","bottomLeftCornerDate","useWeekCornerStyles","props","dir","getWeekCornerStyles","initialWeeks","weekCornersStyled","weeks","slice","length","forEach","week","weekIndex","day","dayIndex","above","isInSameHoverRange","originalDate","isSelected","below","left","right","calculateRoundedStyles","style","roundedTopLeft","roundedTopRight","roundedBottomLeft","roundedBottomRight","push","date1","date2","date1Selected","date2Selected","dateRangeType","firstDayOfWeek","workWeekDays","dateRangeHoverType","WorkWeek","Week","dateRange","filter","date","getTime"],"sources":["../../../src/components/CalendarDayGrid/useWeekCornerStyles.ts"],"sourcesContent":["import { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { mergeClasses } from '@griffel/react';\nimport { DateRangeType } from '../../utils/constants';\nimport { getDateRangeArray } from '../../utils/index';\nimport { DayInfo } from './CalendarDayGrid';\nimport { CalendarDayGridProps } from './CalendarDayGrid.types';\n\n/**\n * @internal\n */\nexport const weekCornersClassNames = {\n topRightCornerDate: 'fui-CalendarDayGrid__topRightCornerDate',\n topLeftCornerDate: 'fui-CalendarDayGrid__topLeftCornerDate',\n bottomRightCornerDate: 'fui-CalendarDayGrid__bottomRightCornerDate',\n bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate',\n};\n\n/**\n * @internal\n */\nexport interface WeekCorners {\n [key: string]: string;\n}\n\n/**\n * @internal\n */\nexport function useWeekCornerStyles(props: CalendarDayGridProps) {\n const { dir } = useFluent_unstable();\n\n /**\n *\n * Section for setting the rounded corner styles on individual day cells. Individual day cells need different\n * corners to be rounded depending on which date range type and where the cell is located in the current grid.\n * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes\n * in Edge browser.\n *\n */\n const getWeekCornerStyles = (initialWeeks: DayInfo[][]): WeekCorners => {\n const weekCornersStyled: { [key: string]: string } = {};\n /* need to handle setting all of the corners on arbitrarily shaped blobs\n __\n __|A |\n |B |C |__\n |D |E |F |\n\n in this case, A needs top left rounded, top right rounded\n B needs top left rounded\n C doesn't need any rounding\n D needs bottom left rounded\n E doesn't need any rounding\n F needs top right rounding\n */\n\n // cut off the animation transition weeks\n const weeks = initialWeeks.slice(1, initialWeeks.length - 1);\n\n // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.\n weeks.forEach((week: DayInfo[], weekIndex: number) => {\n week.forEach((day: DayInfo, dayIndex: number) => {\n const above =\n weeks[weekIndex - 1] &&\n weeks[weekIndex - 1][dayIndex] &&\n isInSameHoverRange(\n weeks[weekIndex - 1][dayIndex].originalDate,\n day.originalDate,\n weeks[weekIndex - 1][dayIndex].isSelected,\n day.isSelected,\n );\n const below =\n weeks[weekIndex + 1] &&\n weeks[weekIndex + 1][dayIndex] &&\n isInSameHoverRange(\n weeks[weekIndex + 1][dayIndex].originalDate,\n day.originalDate,\n weeks[weekIndex + 1][dayIndex].isSelected,\n day.isSelected,\n );\n const left =\n weeks[weekIndex][dayIndex - 1] &&\n isInSameHoverRange(\n weeks[weekIndex][dayIndex - 1].originalDate,\n day.originalDate,\n weeks[weekIndex][dayIndex - 1].isSelected,\n day.isSelected,\n );\n const right =\n weeks[weekIndex][dayIndex + 1] &&\n isInSameHoverRange(\n weeks[weekIndex][dayIndex + 1].originalDate,\n day.originalDate,\n weeks[weekIndex][dayIndex + 1].isSelected,\n day.isSelected,\n );\n\n weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);\n });\n });\n\n return weekCornersStyled;\n };\n\n const calculateRoundedStyles = (above: boolean, below: boolean, left: boolean, right: boolean): string => {\n const style = [];\n const roundedTopLeft = !above && !left;\n const roundedTopRight = !above && !right;\n const roundedBottomLeft = !below && !left;\n const roundedBottomRight = !below && !right;\n\n if (roundedTopLeft) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topRightCornerDate : weekCornersClassNames.topLeftCornerDate);\n }\n if (roundedTopRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topLeftCornerDate : weekCornersClassNames.topRightCornerDate);\n }\n if (roundedBottomLeft) {\n style.push(\n dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate,\n );\n }\n if (roundedBottomRight) {\n style.push(\n dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate,\n );\n }\n\n return mergeClasses(...style);\n };\n\n const isInSameHoverRange = (date1: Date, date2: Date, date1Selected: boolean, date2Selected: boolean): boolean => {\n const { dateRangeType, firstDayOfWeek, workWeekDays } = props;\n\n // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state\n const dateRangeHoverType = dateRangeType === DateRangeType.WorkWeek ? DateRangeType.Week : dateRangeType;\n\n // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver\n const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);\n\n if (date1Selected !== date2Selected) {\n // if one is selected and the other is not, they can't be in the same range\n return false;\n } else if (date1Selected && date2Selected) {\n // if they're both selected at the same time they must be in the same range\n return true;\n }\n\n // otherwise, both must be unselected, so check the dateRange\n return dateRange.filter((date: Date) => date.getTime() === date2.getTime()).length > 0;\n };\n\n return [getWeekCornerStyles, calculateRoundedStyles] as const;\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ;AACnC,SAASC,YAAY,QAAQ;AAC7B,SAASC,aAAa,QAAQ;AAC9B,SAASC,iBAAiB,QAAQ;AAIlC;;;AAGA,OAAO,MAAMC,qBAAA,GAAwB;EACnCC,kBAAA,EAAoB;EACpBC,iBAAA,EAAmB;EACnBC,qBAAA,EAAuB;EACvBC,oBAAA,EAAsB;AACxB;AASA;;;AAGA,OAAO,SAASC,oBAAoBC,KAA2B,EAAE;EAC/D,MAAM;IAAEC;EAAG,CAAE,GAAGX,kBAAA;EAEhB;;;;;;;;EAQA,MAAMY,mBAAA,GAAuBC,YAAA,IAA2C;IACtE,MAAMC,iBAAA,GAA+C,CAAC;IACtD;;;;;;;;;;;MAAA,CAcA;IACA,MAAMC,KAAA,GAAQF,YAAA,CAAaG,KAAK,CAAC,GAAGH,YAAA,CAAaI,MAAM,GAAG;IAE1D;IACAF,KAAA,CAAMG,OAAO,CAAC,CAACC,IAAA,EAAiBC,SAAA,KAAsB;MACpDD,IAAA,CAAKD,OAAO,CAAC,CAACG,GAAA,EAAcC,QAAA,KAAqB;QAC/C,MAAMC,KAAA,GACJR,KAAK,CAACK,SAAA,GAAY,EAAE,IACpBL,KAAK,CAACK,SAAA,GAAY,EAAE,CAACE,QAAA,CAAS,IAC9BE,kBAA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