@fluentui/react-calendar-compat 0.0.0-nightly-20250716-0406.1 → 0.0.0-nightly-20250718-0405.1

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +22 -12
  2. package/lib/components/Calendar/calendarNavigationIcons.js.map +1 -1
  3. package/lib/components/Calendar/useCalendarStyles.styles.raw.js +115 -0
  4. package/lib/components/Calendar/useCalendarStyles.styles.raw.js.map +1 -0
  5. package/lib/components/CalendarDay/useCalendarDayStyles.styles.raw.js +142 -0
  6. package/lib/components/CalendarDay/useCalendarDayStyles.styles.raw.js.map +1 -0
  7. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js +395 -0
  8. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js.map +1 -0
  9. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js +92 -0
  10. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js.map +1 -0
  11. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js +9 -0
  12. package/lib/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js.map +1 -0
  13. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.raw.js +291 -0
  14. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.raw.js.map +1 -0
  15. package/lib/components/CalendarYear/useCalendarYearStyles.styles.raw.js +9 -0
  16. package/lib/components/CalendarYear/useCalendarYearStyles.styles.raw.js.map +1 -0
  17. package/lib-commonjs/components/Calendar/calendarNavigationIcons.js.map +1 -1
  18. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.raw.js +127 -0
  19. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.raw.js.map +1 -0
  20. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.raw.js +154 -0
  21. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.raw.js.map +1 -0
  22. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js +408 -0
  23. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.raw.js.map +1 -0
  24. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js +106 -0
  25. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.raw.js.map +1 -0
  26. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js +15 -0
  27. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.styles.raw.js.map +1 -0
  28. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.raw.js +303 -0
  29. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.raw.js.map +1 -0
  30. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.raw.js +15 -0
  31. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.raw.js.map +1 -0
  32. package/package.json +9 -9
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/CalendarDay/useCalendarDayStyles.styles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { DURATION_2, EASING_FUNCTION_2, FADE_IN } from '../../utils/animations';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CalendarDayStyles, CalendarDayStyleProps } from './CalendarDay.types';\n\n/**\n * @internal\n */\nexport const calendarDayClassNames: SlotClassNames<CalendarDayStyles> = {\n root: 'fui-CalendarDay',\n header: 'fui-CalendarDay__header',\n monthAndYear: 'fui-CalendarDay__monthAndYear',\n monthComponents: 'fui-CalendarDay__monthComponents',\n headerIconButton: 'fui-CalendarDay__headerIconButton',\n disabledStyle: 'fui-CalendarDay__disabledStyle',\n};\n\nconst useRootStyles = makeStyles({\n base: {\n boxSizing: 'content-box',\n padding: '12px',\n width: '196px',\n },\n normalize: {\n boxShadow: 'none',\n boxSizing: 'border-box',\n margin: '0',\n padding: '0',\n },\n showWeekNumbers: {\n width: '226px',\n },\n});\n\nconst useHeaderStyles = makeStyles({\n base: {\n display: 'inline-flex',\n height: '28px',\n lineHeight: '44px',\n position: 'relative',\n width: '100%',\n },\n});\n\nconst useMonthAndYearStyles = makeStyles({\n base: {\n alignItems: 'center',\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderStyle('none'),\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground1,\n display: 'inline-block',\n flexGrow: 1,\n fontFamily: 'inherit',\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: '28px',\n overflow: 'hidden',\n padding: '0 4px 0 10px',\n textAlign: 'left',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n animation: {\n animationDuration: DURATION_2,\n animationFillMode: 'both',\n animationName: FADE_IN,\n animationTimingFunction: EASING_FUNCTION_2,\n },\n headerIsClickable: {\n '&:hover': {\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n color: tokens.colorBrandForegroundOnLightHover,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`,\n },\n '&:hover:active': {\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n color: tokens.colorBrandForegroundOnLightPressed,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`,\n },\n },\n});\n\nconst useMonthComponentsStyles = makeStyles({\n base: {\n alignSelf: 'flex-end',\n display: 'inline-flex',\n },\n});\n\nconst useHeaderIconButtonStyles = makeStyles({\n base: {\n backgroundColor: tokens.colorTransparentBackground,\n ...shorthands.borderStyle('none'),\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground3,\n display: 'block',\n fontFamily: 'inherit',\n fontSize: tokens.fontSizeBase200,\n height: '28px',\n lineHeight: '28px',\n overflow: 'visible',\n padding: '0',\n position: 'relative',\n textAlign: 'center',\n width: '28px',\n\n '&:hover': {\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n color: tokens.colorBrandForegroundOnLightHover,\n cursor: 'pointer',\n outline: `1px solid ${tokens.colorTransparentStroke}`,\n },\n '&:hover:active': {\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n color: tokens.colorBrandForegroundOnLightPressed,\n },\n },\n});\n\nconst useDisabledStyleStyles = makeStyles({\n base: {\n '&, &:disabled, & button': {\n color: tokens.colorNeutralForegroundDisabled,\n pointerEvents: 'none',\n },\n },\n});\n\n/**\n * @internal\n *\n * Apply styling to the CalendarDay slots based on the state\n */\nexport const useCalendarDayStyles_unstable = (props: CalendarDayStyleProps): CalendarDayStyles => {\n 'use no memo';\n\n const rootStyles = useRootStyles();\n const headerStyles = useHeaderStyles();\n const monthAndYearStyles = useMonthAndYearStyles();\n const monthComponentsStyles = useMonthComponentsStyles();\n const headerIconButtonStyles = useHeaderIconButtonStyles();\n const disabledStyleStyles = useDisabledStyleStyles();\n\n const { className, headerIsClickable, showWeekNumbers } = props;\n\n return {\n root: mergeClasses(\n calendarDayClassNames.root,\n rootStyles.normalize,\n rootStyles.base,\n showWeekNumbers && rootStyles.showWeekNumbers,\n className,\n ),\n header: mergeClasses(calendarDayClassNames.header, headerStyles.base),\n monthAndYear: mergeClasses(\n calendarDayClassNames.monthAndYear,\n monthAndYearStyles.base,\n monthAndYearStyles.animation,\n headerIsClickable && monthAndYearStyles.headerIsClickable,\n ),\n monthComponents: mergeClasses(calendarDayClassNames.monthComponents, monthComponentsStyles.base),\n headerIconButton: mergeClasses(calendarDayClassNames.headerIconButton, headerIconButtonStyles.base),\n disabledStyle: mergeClasses(calendarDayClassNames.disabledStyle, disabledStyleStyles.base),\n };\n};\n"],"names":["calendarDayClassNames","useCalendarDayStyles_unstable","root","header","monthAndYear","monthComponents","headerIconButton","disabledStyle","useRootStyles","makeStyles","base","boxSizing","padding","width","normalize","boxShadow","margin","showWeekNumbers","useHeaderStyles","display","height","lineHeight","position","useMonthAndYearStyles","alignItems","backgroundColor","tokens","colorTransparentBackground","shorthands","borderStyle","borderRadius","borderRadiusMedium","color","colorNeutralForeground1","flexGrow","fontFamily","fontSize","fontSizeBase300","fontWeight","fontWeightSemibold","overflow","textAlign","textOverflow","whiteSpace","animation","animationDuration","DURATION_2","animationFillMode","animationName","FADE_IN","animationTimingFunction","EASING_FUNCTION_2","headerIsClickable","colorBrandBackgroundInvertedHover","colorBrandForegroundOnLightHover","cursor","outline","colorTransparentStroke","colorBrandBackgroundInvertedPressed","colorBrandForegroundOnLightPressed","useMonthComponentsStyles","alignSelf","useHeaderIconButtonStyles","colorNeutralForeground3","fontSizeBase200","useDisabledStyleStyles","colorNeutralForegroundDisabled","pointerEvents","props","rootStyles","headerStyles","monthAndYearStyles","monthComponentsStyles","headerIconButtonStyles","disabledStyleStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IASaA,qBAAAA;eAAAA;;IAgIAC,6BAAAA;eAAAA;;;4BAzIU;uBAC8B;4BACE;AAOhD,MAAMD,wBAA2D;IACtEE,MAAM;IACNC,QAAQ;IACRC,cAAc;IACdC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;AACjB;AAEA,MAAMC,gBAAgBC,IAAAA,iBAAAA,EAAW;IAC/BC,MAAM;QACJC,WAAW;QACXC,SAAS;QACTC,OAAO;IACT;IACAC,WAAW;QACTC,WAAW;QACXJ,WAAW;QACXK,QAAQ;QACRJ,SAAS;IACX;IACAK,iBAAiB;QACfJ,OAAO;IACT;AACF;AAEA,MAAMK,kBAAkBT,IAAAA,iBAAAA,EAAW;IACjCC,MAAM;QACJS,SAAS;QACTC,QAAQ;QACRC,YAAY;QACZC,UAAU;QACVT,OAAO;IACT;AACF;AAEA,MAA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B,iBAAiB;QAE3D/C,iBAAiBuE,IAAAA,mBAAAA,EAAa5E,sBAAsBK,eAAe,EAAEmE,sBAAsB9D,IAAI;QAC/FJ,kBAAkBsE,IAAAA,mBAAAA,EAAa5E,sBAAsBM,gBAAgB,EAAEmE,uBAAuB/D,IAAI;QAClGH,eAAeqE,IAAAA,mBAAAA,EAAa5E,sBAAsBO,aAAa,EAAEmE,oBAAoBhE,IAAI;IAC3F;AACF"}
@@ -0,0 +1,408 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ calendarDayGridClassNames: function() {
13
+ return calendarDayGridClassNames;
14
+ },
15
+ extraCalendarDayGridClassNames: function() {
16
+ return extraCalendarDayGridClassNames;
17
+ },
18
+ useCalendarDayGridStyles_unstable: function() {
19
+ return useCalendarDayGridStyles_unstable;
20
+ }
21
+ });
22
+ const _reacttheme = require("@fluentui/react-theme");
23
+ const _react = require("@griffel/react");
24
+ const _utils = require("../../utils");
25
+ const _Calendartypes = require("../Calendar/Calendar.types");
26
+ const _useWeekCornerStylesstyles = require("./useWeekCornerStyles.styles");
27
+ const _reacttabster = require("@fluentui/react-tabster");
28
+ const calendarDayGridClassNames = {
29
+ wrapper: 'fui-CalendarDayGrid__wrapper',
30
+ table: 'fui-CalendarDayGrid__table',
31
+ dayCell: 'fui-CalendarDayGrid__dayCell',
32
+ daySelected: 'fui-CalendarDayGrid__daySelected',
33
+ daySingleSelected: 'fui-CalendarDayGrid__daySingleSelected',
34
+ weekRow: 'fui-CalendarDayGrid__weekRow',
35
+ weekDayLabelCell: 'fui-CalendarDayGrid__weekDayLabelCell',
36
+ weekNumberCell: 'fui-CalendarDayGrid__weekNumberCell',
37
+ dayOutsideBounds: 'fui-CalendarDayGrid__dayOutsideBounds',
38
+ dayOutsideNavigatedMonth: 'fui-CalendarDayGrid__dayOutsideNavigatedMonth',
39
+ dayButton: 'fui-CalendarDayGrid__dayButton',
40
+ dayIsToday: 'fui-CalendarDayGrid__dayIsToday',
41
+ firstTransitionWeek: 'fui-CalendarDayGrid__firstTransitionWeek',
42
+ lastTransitionWeek: 'fui-CalendarDayGrid__lastTransitionWeek',
43
+ dayMarker: 'fui-CalendarDayGrid__dayMarker',
44
+ dayTodayMarker: 'fui-CalendarDayGrid__dayTodayMarker'
45
+ };
46
+ const extraCalendarDayGridClassNames = {
47
+ hoverStyle: 'fui-CalendarDayGrid__hoverStyle',
48
+ pressedStyle: 'fui-CalendarDayGrid__pressedStyle'
49
+ };
50
+ const useWrapperStyles = (0, _react.makeStyles)({
51
+ base: {
52
+ paddingBottom: '10px'
53
+ }
54
+ });
55
+ const useTableStyles = (0, _react.makeStyles)({
56
+ base: {
57
+ borderCollapse: 'collapse',
58
+ borderSpacing: 0,
59
+ fontSize: 'inherit',
60
+ marginTop: '4px',
61
+ paddingBottom: '10px',
62
+ position: 'relative',
63
+ tableLayout: 'fixed',
64
+ textAlign: 'center',
65
+ width: '196px'
66
+ },
67
+ showWeekNumbers: {
68
+ width: '226px'
69
+ }
70
+ });
71
+ const useDayCellStyles = (0, _react.makeStyles)({
72
+ base: {
73
+ color: _reacttheme.tokens.colorNeutralForeground1,
74
+ cursor: 'pointer',
75
+ fontSize: _reacttheme.tokens.fontSizeBase200,
76
+ fontWeight: _reacttheme.tokens.fontWeightRegular,
77
+ margin: '0',
78
+ padding: '2px',
79
+ position: 'relative',
80
+ '@media (forced-colors: active)': {
81
+ backgroundColor: 'Window',
82
+ color: 'WindowText'
83
+ },
84
+ [`&.${extraCalendarDayGridClassNames.hoverStyle}`]: {
85
+ color: _reacttheme.tokens.colorNeutralForeground1Static,
86
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedHover,
87
+ '@media (forced-colors: active)': {
88
+ outline: '1px solid Highlight',
89
+ zIndex: 3,
90
+ [`& .${calendarDayGridClassNames.dayTodayMarker}`]: {
91
+ backgroundColor: 'Highlight'
92
+ }
93
+ }
94
+ },
95
+ [`&.${extraCalendarDayGridClassNames.pressedStyle}`]: {
96
+ color: _reacttheme.tokens.colorNeutralForeground1Static,
97
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedPressed,
98
+ '@media (forced-colors: active)': {
99
+ backgroundColor: 'Window',
100
+ ..._react.shorthands.borderColor('Highlight'),
101
+ color: 'Highlight'
102
+ }
103
+ }
104
+ },
105
+ focusIndicator: (0, _reacttabster.createFocusOutlineStyle)({
106
+ style: {
107
+ outlineWidth: _reacttheme.tokens.strokeWidthThick,
108
+ ..._react.shorthands.borderWidth(_reacttheme.tokens.strokeWidthThick)
109
+ }
110
+ })
111
+ });
112
+ const useDaySelectedStyles = (0, _react.makeStyles)({
113
+ base: {
114
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedSelected,
115
+ color: _reacttheme.tokens.colorNeutralForeground1Static,
116
+ '@media (forced-colors: active)': {
117
+ backgroundColor: 'Highlight',
118
+ ..._react.shorthands.borderColor('Highlight'),
119
+ color: 'HighlightText',
120
+ forcedColorAdjust: 'none'
121
+ },
122
+ [`&:hover, &.${extraCalendarDayGridClassNames.hoverStyle}, &.${extraCalendarDayGridClassNames.pressedStyle}`]: {
123
+ color: _reacttheme.tokens.colorNeutralForeground1Static,
124
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedSelected,
125
+ '@media (forced-colors: active)': {
126
+ backgroundColor: 'Highlight',
127
+ color: 'HighlightText'
128
+ }
129
+ },
130
+ [`& > .${calendarDayGridClassNames.dayMarker}`]: {
131
+ '@media (forced-colors: active)': {
132
+ backgroundColor: 'Window'
133
+ }
134
+ }
135
+ }
136
+ });
137
+ const useDaySingleSelectedStyles = (0, _react.makeStyles)({
138
+ base: {
139
+ color: _reacttheme.tokens.colorNeutralForeground1Static,
140
+ [`& > .${calendarDayGridClassNames.dayMarker}`]: {
141
+ '@media (forced-colors: active)': {
142
+ backgroundColor: 'Window'
143
+ }
144
+ },
145
+ [`& > .${calendarDayGridClassNames.dayButton}`]: {
146
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedSelected,
147
+ borderRadius: _reacttheme.tokens.borderRadiusMedium,
148
+ ..._react.shorthands.border('1px', 'solid', _reacttheme.tokens.colorBrandStroke1),
149
+ '@media (forced-colors: active)': {
150
+ backgroundColor: 'Highlight',
151
+ ..._react.shorthands.borderColor('Highlight'),
152
+ color: 'HighlightText',
153
+ forcedColorAdjust: 'none'
154
+ }
155
+ }
156
+ }
157
+ });
158
+ const useWeekRowStyles = (0, _react.makeStyles)({
159
+ base: {
160
+ position: 'relative',
161
+ ':focus-within': {
162
+ zIndex: 1
163
+ }
164
+ },
165
+ animation: {
166
+ animationDuration: _utils.DURATION_3,
167
+ animationFillMode: 'both',
168
+ animationTimingFunction: _utils.EASING_FUNCTION_1
169
+ },
170
+ horizontalBackward: {
171
+ animationName: [
172
+ _utils.FADE_IN,
173
+ _utils.SLIDE_RIGHT_IN20
174
+ ]
175
+ },
176
+ horizontalForward: {
177
+ animationName: [
178
+ _utils.FADE_IN,
179
+ _utils.SLIDE_LEFT_IN20
180
+ ]
181
+ },
182
+ verticalBackward: {
183
+ animationName: [
184
+ _utils.FADE_IN,
185
+ _utils.SLIDE_DOWN_IN20
186
+ ]
187
+ },
188
+ verticalForward: {
189
+ animationName: [
190
+ _utils.FADE_IN,
191
+ _utils.SLIDE_UP_IN20
192
+ ]
193
+ }
194
+ });
195
+ const useWeekDayLabelCellStyles = (0, _react.makeStyles)({
196
+ base: {
197
+ userSelect: 'none',
198
+ animationDuration: _utils.DURATION_2,
199
+ animationFillMode: 'both',
200
+ animationName: _utils.FADE_IN,
201
+ animationTimingFunction: _utils.EASING_FUNCTION_2
202
+ }
203
+ });
204
+ const useWeekNumberCellStyles = (0, _react.makeStyles)({
205
+ base: {
206
+ backgroundColor: _reacttheme.tokens.colorTransparentBackground,
207
+ borderRight: `1px solid ${_reacttheme.tokens.colorNeutralStroke2}`,
208
+ boxSizing: 'border-box',
209
+ color: _reacttheme.tokens.colorNeutralForeground4,
210
+ fontSize: _reacttheme.tokens.fontSizeBase200,
211
+ fontWeight: _reacttheme.tokens.fontWeightRegular,
212
+ height: '28px',
213
+ margin: '0',
214
+ padding: '0',
215
+ width: '28px'
216
+ }
217
+ });
218
+ const useDayOutsideBoundsStyles = (0, _react.makeStyles)({
219
+ base: {
220
+ [`&, &:disabled, & button, &.${extraCalendarDayGridClassNames.hoverStyle}` + `, &.${extraCalendarDayGridClassNames.pressedStyle}`]: {
221
+ backgroundColor: _reacttheme.tokens.colorTransparentBackground,
222
+ color: _reacttheme.tokens.colorNeutralForegroundDisabled,
223
+ pointerEvents: 'none'
224
+ },
225
+ '@media (forced-colors: active)': {
226
+ color: 'GrayText'
227
+ }
228
+ }
229
+ });
230
+ const useDayOutsideNavigatedMonthStyles = (0, _react.makeStyles)({
231
+ lightenDaysOutsideNavigatedMonth: {
232
+ color: _reacttheme.tokens.colorNeutralForeground4,
233
+ fontWeight: _reacttheme.tokens.fontWeightRegular,
234
+ '@media (forced-colors: active)': {
235
+ color: 'GrayText'
236
+ }
237
+ }
238
+ });
239
+ const useDayButtonStyles = (0, _react.makeStyles)({
240
+ base: {
241
+ backgroundColor: _reacttheme.tokens.colorTransparentBackground,
242
+ border: 'none',
243
+ color: 'inherit',
244
+ cursor: 'pointer',
245
+ fontSize: _reacttheme.tokens.fontSizeBase200,
246
+ fontWeight: 'inherit',
247
+ height: '24px',
248
+ lineHeight: '24px',
249
+ overflow: 'visible',
250
+ padding: '0',
251
+ width: '24px',
252
+ '&span': {
253
+ height: 'inherit',
254
+ lineHeight: 'inherit'
255
+ },
256
+ ':hover': {
257
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedHover,
258
+ borderRadius: _reacttheme.tokens.borderRadiusMedium
259
+ },
260
+ ':active': {
261
+ backgroundColor: _reacttheme.tokens.colorBrandBackgroundInvertedPressed
262
+ }
263
+ }
264
+ });
265
+ const useDayIsTodayStyles = (0, _react.makeStyles)({
266
+ base: {
267
+ display: 'flex',
268
+ justifyContent: 'center',
269
+ alignItems: 'center',
270
+ color: _reacttheme.tokens.colorNeutralForegroundOnBrand,
271
+ fontWeight: _reacttheme.tokens.fontWeightSemibold,
272
+ [`& > .${calendarDayGridClassNames.dayMarker}`]: {
273
+ backgroundColor: _reacttheme.tokens.colorNeutralForegroundOnBrand,
274
+ '@media (forced-colors: active)': {
275
+ backgroundColor: 'Window'
276
+ }
277
+ }
278
+ }
279
+ });
280
+ const useDayTodayMarkerStyles = (0, _react.makeStyles)({
281
+ base: {
282
+ display: 'flex',
283
+ justifyContent: 'center',
284
+ alignItems: 'center',
285
+ backgroundColor: _reacttheme.tokens.colorBrandBackground,
286
+ borderRadius: '100%',
287
+ width: '20px',
288
+ height: '20px',
289
+ lineHeight: '20px',
290
+ '@media (forced-colors: active)': {
291
+ backgroundColor: 'WindowText',
292
+ ..._react.shorthands.borderColor('WindowText'),
293
+ color: 'Window',
294
+ forcedColorAdjust: 'none'
295
+ }
296
+ }
297
+ });
298
+ const useFirstTransitionWeekStyles = (0, _react.makeStyles)({
299
+ base: {
300
+ height: 0,
301
+ opacity: 0,
302
+ overflow: 'hidden',
303
+ position: 'absolute',
304
+ width: 0
305
+ },
306
+ verticalForward: {
307
+ animationDuration: _utils.DURATION_3,
308
+ animationFillMode: 'both',
309
+ animationName: [
310
+ _utils.FADE_OUT,
311
+ _utils.SLIDE_UP_OUT20,
312
+ _utils.TRANSITION_ROW_DISAPPEARANCE
313
+ ],
314
+ animationTimingFunction: _utils.EASING_FUNCTION_1
315
+ }
316
+ });
317
+ const useLastTransitionWeekStyles = (0, _react.makeStyles)({
318
+ base: {
319
+ height: 0,
320
+ marginTop: '-28px',
321
+ opacity: 0,
322
+ overflow: 'hidden',
323
+ position: 'absolute',
324
+ width: 0
325
+ },
326
+ verticalBackward: {
327
+ animationDuration: _utils.DURATION_3,
328
+ animationFillMode: 'both',
329
+ animationName: [
330
+ _utils.FADE_OUT,
331
+ _utils.SLIDE_DOWN_OUT20,
332
+ _utils.TRANSITION_ROW_DISAPPEARANCE
333
+ ],
334
+ animationTimingFunction: _utils.EASING_FUNCTION_1
335
+ }
336
+ });
337
+ const useDayMarkerStyles = (0, _react.makeStyles)({
338
+ base: {
339
+ backgroundColor: _reacttheme.tokens.colorBrandForeground2,
340
+ borderRadius: '100%',
341
+ bottom: '1px',
342
+ height: '4px',
343
+ left: 0,
344
+ margin: 'auto',
345
+ position: 'absolute',
346
+ right: 0,
347
+ width: '4px',
348
+ '@media (forced-colors: active)': {
349
+ backgroundColor: 'WindowText',
350
+ forcedColorAdjust: 'none'
351
+ }
352
+ }
353
+ });
354
+ const useCornerBorderAndRadiusStyles = (0, _react.makeStyles)({
355
+ corners: {
356
+ [`&.${_useWeekCornerStylesstyles.weekCornersClassNames.topRightCornerDate}`]: {
357
+ borderTopRightRadius: _reacttheme.tokens.borderRadiusMedium
358
+ },
359
+ [`&.${_useWeekCornerStylesstyles.weekCornersClassNames.topLeftCornerDate}`]: {
360
+ borderTopLeftRadius: _reacttheme.tokens.borderRadiusMedium
361
+ },
362
+ [`&.${_useWeekCornerStylesstyles.weekCornersClassNames.bottomRightCornerDate}`]: {
363
+ borderBottomRightRadius: _reacttheme.tokens.borderRadiusMedium
364
+ },
365
+ [`&.${_useWeekCornerStylesstyles.weekCornersClassNames.bottomLeftCornerDate}`]: {
366
+ borderBottomLeftRadius: _reacttheme.tokens.borderRadiusMedium
367
+ }
368
+ }
369
+ });
370
+ const useCalendarDayGridStyles_unstable = (props)=>{
371
+ 'use no memo';
372
+ const wrapperStyles = useWrapperStyles();
373
+ const tableStyles = useTableStyles();
374
+ const dayCellStyles = useDayCellStyles();
375
+ const daySelectedStyles = useDaySelectedStyles();
376
+ const daySingleSelectedStyles = useDaySingleSelectedStyles();
377
+ const weekRowStyles = useWeekRowStyles();
378
+ const weekDayLabelCellStyles = useWeekDayLabelCellStyles();
379
+ const weekNumberCellStyles = useWeekNumberCellStyles();
380
+ const dayOutsideBoundsStyles = useDayOutsideBoundsStyles();
381
+ const dayOutsideNavigatedMonthStyles = useDayOutsideNavigatedMonthStyles();
382
+ const dayButtonStyles = useDayButtonStyles();
383
+ const dayIsTodayStyles = useDayIsTodayStyles();
384
+ const firstTransitionWeekStyles = useFirstTransitionWeekStyles();
385
+ const lastTransitionWeekStyles = useLastTransitionWeekStyles();
386
+ const dayMarkerStyles = useDayMarkerStyles();
387
+ const cornerBorderAndRadiusStyles = useCornerBorderAndRadiusStyles();
388
+ const dayTodayMarkerStyles = useDayTodayMarkerStyles();
389
+ const { animateBackwards, animationDirection, lightenDaysOutsideNavigatedMonth, showWeekNumbers } = props;
390
+ return {
391
+ wrapper: (0, _react.mergeClasses)(calendarDayGridClassNames.wrapper, wrapperStyles.base),
392
+ table: (0, _react.mergeClasses)(calendarDayGridClassNames.table, tableStyles.base, showWeekNumbers && tableStyles.showWeekNumbers),
393
+ dayCell: (0, _react.mergeClasses)(calendarDayGridClassNames.dayCell, dayCellStyles.base, dayCellStyles.focusIndicator, cornerBorderAndRadiusStyles.corners),
394
+ daySelected: (0, _react.mergeClasses)(calendarDayGridClassNames.daySelected, daySelectedStyles.base),
395
+ daySingleSelected: (0, _react.mergeClasses)(calendarDayGridClassNames.daySingleSelected, daySingleSelectedStyles.base),
396
+ weekRow: (0, _react.mergeClasses)(calendarDayGridClassNames.weekRow, weekRowStyles.base, animateBackwards !== undefined && weekRowStyles.animation, animateBackwards !== undefined && (animationDirection === _Calendartypes.AnimationDirection.Horizontal ? animateBackwards ? weekRowStyles.horizontalBackward : weekRowStyles.horizontalForward : animateBackwards ? weekRowStyles.verticalBackward : weekRowStyles.verticalForward)),
397
+ weekDayLabelCell: (0, _react.mergeClasses)(calendarDayGridClassNames.weekDayLabelCell, weekDayLabelCellStyles.base),
398
+ weekNumberCell: (0, _react.mergeClasses)(calendarDayGridClassNames.weekNumberCell, weekNumberCellStyles.base),
399
+ dayOutsideBounds: (0, _react.mergeClasses)(calendarDayGridClassNames.dayOutsideBounds, dayOutsideBoundsStyles.base),
400
+ dayOutsideNavigatedMonth: (0, _react.mergeClasses)(calendarDayGridClassNames.dayOutsideNavigatedMonth, lightenDaysOutsideNavigatedMonth && dayOutsideNavigatedMonthStyles.lightenDaysOutsideNavigatedMonth),
401
+ dayButton: (0, _react.mergeClasses)(calendarDayGridClassNames.dayButton, dayButtonStyles.base),
402
+ dayIsToday: (0, _react.mergeClasses)(calendarDayGridClassNames.dayIsToday, dayIsTodayStyles.base),
403
+ firstTransitionWeek: (0, _react.mergeClasses)(calendarDayGridClassNames.firstTransitionWeek, firstTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== _Calendartypes.AnimationDirection.Horizontal && !animateBackwards && firstTransitionWeekStyles.verticalForward),
404
+ lastTransitionWeek: (0, _react.mergeClasses)(calendarDayGridClassNames.lastTransitionWeek, lastTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== _Calendartypes.AnimationDirection.Horizontal && animateBackwards && lastTransitionWeekStyles.verticalBackward),
405
+ dayMarker: (0, _react.mergeClasses)(calendarDayGridClassNames.dayMarker, dayMarkerStyles.base),
406
+ dayTodayMarker: (0, _react.mergeClasses)(calendarDayGridClassNames.dayTodayMarker, dayTodayMarkerStyles.base)
407
+ };
408
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/CalendarDayGrid/useCalendarDayGridStyles.styles.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.styles';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\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 daySingleSelected: 'fui-CalendarDayGrid__daySingleSelected',\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 dayTodayMarker: 'fui-CalendarDayGrid__dayTodayMarker',\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 margin: '0',\n padding: '2px',\n position: 'relative',\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 outline: '1px solid Highlight',\n zIndex: 3,\n [`& .${calendarDayGridClassNames.dayTodayMarker}`]: {\n backgroundColor: 'Highlight',\n },\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 focusIndicator: createFocusOutlineStyle({\n style: {\n outlineWidth: tokens.strokeWidthThick,\n ...shorthands.borderWidth(tokens.strokeWidthThick),\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 useDaySingleSelectedStyles = makeStyles({\n base: {\n color: tokens.colorNeutralForeground1Static,\n\n [`& > .${calendarDayGridClassNames.dayMarker}`]: {\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n },\n },\n\n [`& > .${calendarDayGridClassNames.dayButton}`]: {\n backgroundColor: tokens.colorBrandBackgroundInvertedSelected,\n borderRadius: tokens.borderRadiusMedium,\n ...shorthands.border('1px', 'solid', tokens.colorBrandStroke1),\n '@media (forced-colors: active)': {\n backgroundColor: 'Highlight',\n ...shorthands.borderColor('Highlight'),\n color: 'HighlightText',\n forcedColorAdjust: 'none',\n },\n },\n },\n});\n\nconst useWeekRowStyles = makeStyles({\n base: {\n position: 'relative',\n ':focus-within': {\n zIndex: 1,\n },\n },\n animation: {\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 userSelect: 'none',\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 borderRight: `1px solid ${tokens.colorNeutralStroke2}`,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground4,\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n height: '28px',\n margin: '0',\n 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 border: 'none',\n color: 'inherit',\n cursor: 'pointer',\n fontSize: tokens.fontSizeBase200,\n fontWeight: 'inherit',\n height: '24px',\n lineHeight: '24px',\n overflow: 'visible',\n padding: '0',\n width: '24px',\n\n '&span': {\n height: 'inherit',\n lineHeight: 'inherit',\n },\n ':hover': {\n backgroundColor: tokens.colorBrandBackgroundInvertedHover,\n borderRadius: tokens.borderRadiusMedium,\n },\n ':active': {\n backgroundColor: tokens.colorBrandBackgroundInvertedPressed,\n },\n },\n});\n\nconst useDayIsTodayStyles = makeStyles({\n base: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: tokens.colorNeutralForegroundOnBrand,\n fontWeight: tokens.fontWeightSemibold,\n\n [`& > .${calendarDayGridClassNames.dayMarker}`]: {\n backgroundColor: tokens.colorNeutralForegroundOnBrand,\n '@media (forced-colors: active)': {\n backgroundColor: 'Window',\n },\n },\n },\n});\n\nconst useDayTodayMarkerStyles = makeStyles({\n base: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: tokens.colorBrandBackground,\n borderRadius: '100%',\n width: '20px',\n height: '20px',\n lineHeight: '20px',\n '@media (forced-colors: active)': {\n backgroundColor: 'WindowText',\n ...shorthands.borderColor('WindowText'),\n color: 'Window',\n forcedColorAdjust: 'none',\n },\n },\n});\n\nconst useFirstTransitionWeekStyles = makeStyles({\n base: {\n height: 0,\n opacity: 0,\n overflow: 'hidden',\n\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 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 borderRadius: '100%',\n bottom: '1px',\n height: '4px',\n left: 0,\n margin: 'auto',\n\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: tokens.borderRadiusMedium,\n },\n [`&.${weekCornersClassNames.topLeftCornerDate}`]: {\n borderTopLeftRadius: tokens.borderRadiusMedium,\n },\n [`&.${weekCornersClassNames.bottomRightCornerDate}`]: {\n borderBottomRightRadius: tokens.borderRadiusMedium,\n },\n [`&.${weekCornersClassNames.bottomLeftCornerDate}`]: {\n borderBottomLeftRadius: tokens.borderRadiusMedium,\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 'use no memo';\n\n const wrapperStyles = useWrapperStyles();\n const tableStyles = useTableStyles();\n const dayCellStyles = useDayCellStyles();\n const daySelectedStyles = useDaySelectedStyles();\n const daySingleSelectedStyles = useDaySingleSelectedStyles();\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 const dayTodayMarkerStyles = useDayTodayMarkerStyles();\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(\n calendarDayGridClassNames.dayCell,\n dayCellStyles.base,\n dayCellStyles.focusIndicator,\n cornerBorderAndRadiusStyles.corners,\n ),\n daySelected: mergeClasses(calendarDayGridClassNames.daySelected, daySelectedStyles.base),\n daySingleSelected: mergeClasses(calendarDayGridClassNames.daySingleSelected, daySingleSelectedStyles.base),\n weekRow: mergeClasses(\n calendarDayGridClassNames.weekRow,\n weekRowStyles.base,\n animateBackwards !== undefined && weekRowStyles.animation,\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 dayTodayMarker: mergeClasses(calendarDayGridClassNames.dayTodayMarker, dayTodayMarkerStyles.base),\n };\n};\n"],"names":["calendarDayGridClassNames","extraCalendarDayGridClassNames","useCalendarDayGridStyles_unstable","wrapper","table","dayCell","daySelected","daySingleSelected","weekRow","weekDayLabelCell","weekNumberCell","dayOutsideBounds","dayOutsideNavigatedMonth","dayButton","dayIsToday","firstTransitionWeek","lastTransitionWeek","dayMarker","dayTodayMarker","hoverStyle","pressedStyle","useWrapperStyles","makeStyles","base","paddingBottom","useTableStyles","borderCollapse","borderSpacing","fontSize","marginTop","position","tableLayout","textAlign","width","showWeekNumbers","useDayCellStyles","color","tokens","colorNeutralForeground1","cursor","fontSizeBase200","fontWeight","fontWeightRegular","margin","padding","backgroundColor","colorNeutralForeground1Static","colorBrandBackgroundInvertedHover","outline","zIndex","colorBrandBackgroundInvertedPressed","shorthands","borderColor","focusIndicator","createFocusOutlineStyle","style","outlineWidth","strokeWidthThick","borderWidth","useDaySelectedStyles","colorBrandBackgroundInvertedSelected","forcedColorAdjust","useDaySingleSelectedStyles","borderRadius","borderRadiusMedium","border","colorBrandStroke1","useWeekRowStyles","animation","animationDuration","DURATION_3","animationFillMode","animationTimingFunction","EASING_FUNCTION_1","horizontalBackward","animationName","FADE_IN","SLIDE_RIGHT_IN20","horizontalForward","SLIDE_LEFT_IN20","verticalBackward","SLIDE_DOWN_IN20","verticalForward","SLIDE_UP_IN20","useWeekDayLabelCellStyles","userSelect","DURATION_2","EASING_FUNCTION_2","useWeekNumberCellStyles","colorTransparentBackground","borderRight","colorNeutralStroke2","boxSizing","colorNeutralForeground4","height","useDayOutsideBoundsStyles","colorNeutralForegroundDisabled","pointerEvents","useDayOutsideNavigatedMonthStyles","lightenDaysOutsideNavigatedMonth","useDayButtonStyles","lineHeight","overflow","useDayIsTodayStyles","display","justifyContent","alignItems","colorNeutralForegroundOnBrand","fontWeightSemibold","useDayTodayMarkerStyles","colorBrandBackground","useFirstTransitionWeekStyles","opacity","FADE_OUT","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","useLastTransitionWeekStyles","SLIDE_DOWN_OUT20","useDayMarkerStyles","colorBrandForeground2","bottom","left","right","useCornerBorderAndRadiusStyles","corners","weekCornersClassNames","topRightCornerDate","borderTopRightRadius","topLeftCornerDate","borderTopLeftRadius","bottomRightCornerDate","borderBottomRightRadius","bottomLeftCornerDate","borderBottomLeftRadius","props","wrapperStyles","tableStyles","dayCellStyles","daySelectedStyles","daySingleSelectedStyles","weekRowStyles","weekDayLabelCellStyles","weekNumberCellStyles","dayOutsideBoundsStyles","dayOutsideNavigatedMonthStyles","dayButtonStyles","dayIsTodayStyles","firstTransitionWeekStyles","lastTransitionWeekStyles","dayMarkerStyles","cornerBorderAndRadiusStyles","dayTodayMarkerStyles","animateBackwards","animationDirection","mergeClasses","undefined","AnimationDirection","Horizontal"],"rangeMapp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,IACpDL,oBACAJ,yBAAyBpE,gBAAgB;QAE7C/D,WAAWyI,IAAAA,mBAAAA,EAAa1J,0BAA0BiB,SAAS,EAAEoI,gBAAgB9H,IAAI;QACjFL,gBAAgBwI,IAAAA,mBAAAA,EAAa1J,0BAA0BkB,cAAc,EAAEqI,qBAAqBhI,IAAI;IAClG;AACF"}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ useWeekCornerStyles: function() {
13
+ return useWeekCornerStyles;
14
+ },
15
+ weekCornersClassNames: function() {
16
+ return weekCornersClassNames;
17
+ }
18
+ });
19
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
20
+ const _react = require("@griffel/react");
21
+ const _constants = require("../../utils/constants");
22
+ const _index = require("../../utils/index");
23
+ const weekCornersClassNames = {
24
+ topRightCornerDate: 'fui-CalendarDayGrid__topRightCornerDate',
25
+ topLeftCornerDate: 'fui-CalendarDayGrid__topLeftCornerDate',
26
+ bottomRightCornerDate: 'fui-CalendarDayGrid__bottomRightCornerDate',
27
+ bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate'
28
+ };
29
+ function useWeekCornerStyles(props) {
30
+ const { dir } = (0, _reactsharedcontexts.useFluent_unstable)();
31
+ /**
32
+ *
33
+ * Section for setting the rounded corner styles on individual day cells. Individual day cells need different
34
+ * corners to be rounded depending on which date range type and where the cell is located in the current grid.
35
+ * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes
36
+ * in Edge browser.
37
+ *
38
+ */ const getWeekCornerStyles = (initialWeeks)=>{
39
+ const weekCornersStyled = {};
40
+ /* need to handle setting all of the corners on arbitrarily shaped blobs
41
+ __
42
+ __|A |
43
+ |B |C |__
44
+ |D |E |F |
45
+
46
+ in this case, A needs top left rounded, top right rounded
47
+ B needs top left rounded
48
+ C doesn't need any rounding
49
+ D needs bottom left rounded
50
+ E doesn't need any rounding
51
+ F needs top right rounding
52
+ */ // cut off the animation transition weeks
53
+ const weeks = initialWeeks.slice(1, initialWeeks.length - 1);
54
+ // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.
55
+ weeks.forEach((week, weekIndex)=>{
56
+ week.forEach((day, dayIndex)=>{
57
+ const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);
58
+ const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);
59
+ const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);
60
+ const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);
61
+ weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);
62
+ });
63
+ });
64
+ return weekCornersStyled;
65
+ };
66
+ const calculateRoundedStyles = (above, below, left, right)=>{
67
+ const style = [];
68
+ const roundedTopLeft = !above && !left;
69
+ const roundedTopRight = !above && !right;
70
+ const roundedBottomLeft = !below && !left;
71
+ const roundedBottomRight = !below && !right;
72
+ if (roundedTopLeft) {
73
+ style.push(dir === 'rtl' ? weekCornersClassNames.topRightCornerDate : weekCornersClassNames.topLeftCornerDate);
74
+ }
75
+ if (roundedTopRight) {
76
+ style.push(dir === 'rtl' ? weekCornersClassNames.topLeftCornerDate : weekCornersClassNames.topRightCornerDate);
77
+ }
78
+ if (roundedBottomLeft) {
79
+ style.push(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);
80
+ }
81
+ if (roundedBottomRight) {
82
+ style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);
83
+ }
84
+ return (0, _react.mergeClasses)(...style);
85
+ };
86
+ const isInSameHoverRange = (date1, date2, date1Selected, date2Selected)=>{
87
+ const { dateRangeType, firstDayOfWeek, workWeekDays } = props;
88
+ // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state
89
+ const dateRangeHoverType = dateRangeType === _constants.DateRangeType.WorkWeek ? _constants.DateRangeType.Week : dateRangeType;
90
+ // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver
91
+ const dateRange = (0, _index.getDateRangeArray)(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);
92
+ if (date1Selected !== date2Selected) {
93
+ // if one is selected and the other is not, they can't be in the same range
94
+ return false;
95
+ } else if (date1Selected && date2Selected) {
96
+ // if they're both selected at the same time they must be in the same range
97
+ return true;
98
+ }
99
+ // otherwise, both must be unselected, so check the dateRange
100
+ return dateRange.filter((date)=>date.getTime() === date2.getTime()).length > 0;
101
+ };
102
+ return [
103
+ getWeekCornerStyles,
104
+ calculateRoundedStyles
105
+ ];
106
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/CalendarDayGrid/useWeekCornerStyles.styles.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"],"names":["useWeekCornerStyles","weekCornersClassNames","topRightCornerDate","topLeftCornerDate","bottomRightCornerDate","bottomLeftCornerDate","props","dir","useFluent_unstable","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","mergeClasses","date1","date2","date1Selected","date2Selected","dateRangeType","firstDayOfWeek","workWeekDays","dateRangeHoverType","DateRangeType","WorkWeek","Week","dateRange","getDateRangeArray","filter","date","getTime"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA2BgBA,mBAAAA;eAAAA;;IAjBHC,qBAAAA;eAAAA;;;qCAVsB;uBACN;2BACC;uBACI;AAO3B,MAAMA,wBAAwB;IACnCC,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;AACxB;AAYO,SAASL,oBAAoBM,KAA2B;IAC7D,MAAM,EAAEC,GAAG,EAAE,GAAGC,IAAAA,uCAAAA;IAEhB;;;;;;;GAOC,GACD,MAAMC,sBAAsB,CAACC;QAC3B,MAAMC,oBAA+C,CAAC;QACtD;;;;;;;;;;;;IAYA,GAEA,yCAAyC;QACzC,MAAMC,QAAQF,aAAaG,KAAK,CAAC,GAAGH,aAAaI,MAAM,GAAG;QAE1D,8FAA8F;QAC9FF,MAAMG,OAAO,CAAC,CAACC,MAAiBC;YAC9BD,KAAKD,OAAO,CAAC,CAACG,KAAcC;gBAC1B,MAAMC,QACJR,KAAK,CAACK,YAAY,EAAE,IACpBL,KAAK,CAACK,YAAY,EAAE,CAACE,SAAS,IAC9BE,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1B,QAAQ,QAAQN,sBAAsBC,kBAAkB,GAAGD,sBAAsBE,iBAAiB;QAC/G;QACA,IAAI2B,iBAAiB;YACnBF,MAAMK,IAAI,CAAC1B,QAAQ,QAAQN,sBAAsBE,iBAAiB,GAAGF,sBAAsBC,kBAAkB;QAC/G;QACA,IAAI6B,mBAAmB;YACrBH,MAAMK,IAAI,CACR1B,QAAQ,QAAQN,sBAAsBG,qBAAqB,GAAGH,sBAAsBI,oBAAoB;QAE5G;QACA,IAAI2B,oBAAoB;YACtBJ,MAAMK,IAAI,CACR1B,QAAQ,QAAQN,sBAAsBI,oBAAoB,GAAGJ,sBAAsBG,qBAAqB;QAE5G;QAEA,OAAO8B,IAAAA,mBAAAA,KAAgBN;IACzB;IAEA,MAAMP,qBAAqB,CAACc,OAAaC,OAAaC,eAAwBC;QAC5E,MAAM,EAAEC,aAAa,EAAEC,cAAc,EAAEC,YAAY,EAAE,GAAGnC;QAExD,8GAA8G;QAC9G,MAAMoC,qBAAqBH,kBAAkBI,wBAAAA,CAAcC,QAAQ,GAAGD,wBAAAA,CAAcE,IAAI,GAAGN;QAE3F,0GAA0G;QAC1G,MAAMO,YAAYC,IAAAA,wBAAAA,EAAkBZ,OAAOO,oBAAoBF,gBAAgBC;QAE/E,IAAIJ,kBAAkBC,eAAe;YACnC,2EAA2E;YAC3E,OAAO;QACT,OAAO,IAAID,iBAAiBC,eAAe;YACzC,2EAA2E;YAC3E,OAAO;QACT;QAEA,6DAA6D;QAC7D,OAAOQ,UAAUE,MAAM,CAAC,CAACC,OAAeA,KAAKC,OAAO,OAAOd,MAAMc,OAAO,IAAIpC,MAAM,GAAG;IACvF;IAEA,OAAO;QAACL;QAAqBkB;KAAuB;AACtD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useCalendarMonthStyles_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useCalendarMonthStyles_unstable;
9
+ }
10
+ });
11
+ const _useCalendarPickerStylesstyles = require("../CalendarPicker/useCalendarPickerStyles.styles");
12
+ const useCalendarMonthStyles_unstable = (props)=>{
13
+ 'use no memo';
14
+ return (0, _useCalendarPickerStylesstyles.useCalendarPickerStyles_unstable)(props);
15
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/CalendarMonth/useCalendarMonthStyles.styles.ts"],"sourcesContent":["import { useCalendarPickerStyles_unstable } from '../CalendarPicker/useCalendarPickerStyles.styles';\nimport type { CalendarMonthStyleProps, CalendarMonthStyles } from './CalendarMonth.types';\n\n/**\n * @internal\n *\n * Apply styling to the CalendarMonth slots based on the state\n */\nexport const useCalendarMonthStyles_unstable = (props: CalendarMonthStyleProps): CalendarMonthStyles => {\n 'use no memo';\n\n return useCalendarPickerStyles_unstable(props);\n};\n"],"names":["useCalendarMonthStyles_unstable","props","useCalendarPickerStyles_unstable"],"rangeMappings":";;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;+CARoC;AAQ1C,MAAMA,kCAAkC,CAACC;IAC9C;IAEA,OAAOC,IAAAA,+DAAAA,EAAiCD;AAC1C"}