@fluentui/react-datepicker-compat 0.3.6 → 0.3.7

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 (173) hide show
  1. package/CHANGELOG.json +88 -1
  2. package/CHANGELOG.md +23 -2
  3. package/lib/components/Calendar/Calendar.js +9 -7
  4. package/lib/components/Calendar/Calendar.js.map +1 -1
  5. package/lib/components/Calendar/useCalendarStyles.styles.js.map +1 -1
  6. package/lib/components/CalendarDay/CalendarDay.js +8 -11
  7. package/lib/components/CalendarDay/CalendarDay.js.map +1 -1
  8. package/lib/components/CalendarDay/useCalendarDayStyles.styles.js.map +1 -1
  9. package/lib/components/CalendarDayGrid/CalendarDayGrid.js +8 -10
  10. package/lib/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -1
  11. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js +8 -5
  12. package/lib/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -1
  13. package/lib/components/CalendarDayGrid/CalendarGridRow.js +1 -1
  14. package/lib/components/CalendarDayGrid/CalendarGridRow.js.map +1 -1
  15. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js +1 -1
  16. package/lib/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -1
  17. package/lib/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +1 -1
  18. package/lib/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  19. package/lib/components/CalendarDayGrid/useWeeks.js +4 -3
  20. package/lib/components/CalendarDayGrid/useWeeks.js.map +1 -1
  21. package/lib/components/CalendarMonth/CalendarMonth.js +10 -8
  22. package/lib/components/CalendarMonth/CalendarMonth.js.map +1 -1
  23. package/lib/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -1
  24. package/lib/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +1 -1
  25. package/lib/components/CalendarYear/CalendarYear.js +38 -39
  26. package/lib/components/CalendarYear/CalendarYear.js.map +1 -1
  27. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  28. package/lib/components/DatePicker/renderDatePicker.js +15 -6
  29. package/lib/components/DatePicker/renderDatePicker.js.map +1 -1
  30. package/lib/components/DatePicker/useDatePicker.js +18 -13
  31. package/lib/components/DatePicker/useDatePicker.js.map +1 -1
  32. package/lib/components/DatePicker/useDatePickerStyles.styles.js.map +1 -1
  33. package/lib/utils/dateGrid/findAvailableDate.js +1 -1
  34. package/lib/utils/dateGrid/findAvailableDate.js.map +1 -1
  35. package/lib/utils/dateGrid/getBoundedDateRange.js.map +1 -1
  36. package/lib/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -1
  37. package/lib/utils/dateGrid/getDayGrid.js +3 -2
  38. package/lib/utils/dateGrid/getDayGrid.js.map +1 -1
  39. package/lib/utils/dateGrid/isAfterMaxDate.js +1 -1
  40. package/lib/utils/dateGrid/isAfterMaxDate.js.map +1 -1
  41. package/lib/utils/dateGrid/isBeforeMinDate.js +1 -1
  42. package/lib/utils/dateGrid/isBeforeMinDate.js.map +1 -1
  43. package/lib/utils/dateGrid/isContiguous.js.map +1 -1
  44. package/lib/utils/dateGrid/isRestrictedDate.js +1 -1
  45. package/lib/utils/dateGrid/isRestrictedDate.js.map +1 -1
  46. package/lib/utils/dateMath/dateMath.js.map +1 -1
  47. package/lib/utils/dom.js.map +1 -1
  48. package/lib/utils/focus.js.map +1 -1
  49. package/lib/utils/usePopupPositioning.js +2 -2
  50. package/lib/utils/usePopupPositioning.js.map +1 -1
  51. package/lib-commonjs/Calendar.js +2 -2
  52. package/lib-commonjs/Calendar.js.map +1 -1
  53. package/lib-commonjs/CalendarDay.js +2 -2
  54. package/lib-commonjs/CalendarDay.js.map +1 -1
  55. package/lib-commonjs/CalendarDayGrid.js +2 -2
  56. package/lib-commonjs/CalendarDayGrid.js.map +1 -1
  57. package/lib-commonjs/CalendarMonth.js +2 -2
  58. package/lib-commonjs/CalendarMonth.js.map +1 -1
  59. package/lib-commonjs/CalendarPicker.js +2 -2
  60. package/lib-commonjs/CalendarPicker.js.map +1 -1
  61. package/lib-commonjs/CalendarYear.js +2 -2
  62. package/lib-commonjs/CalendarYear.js.map +1 -1
  63. package/lib-commonjs/DatePicker.js +2 -2
  64. package/lib-commonjs/DatePicker.js.map +1 -1
  65. package/lib-commonjs/components/Calendar/Calendar.js +32 -28
  66. package/lib-commonjs/components/Calendar/Calendar.js.map +1 -1
  67. package/lib-commonjs/components/Calendar/Calendar.types.js +5 -3
  68. package/lib-commonjs/components/Calendar/Calendar.types.js.map +1 -1
  69. package/lib-commonjs/components/Calendar/defaults.js +3 -1
  70. package/lib-commonjs/components/Calendar/defaults.js.map +1 -1
  71. package/lib-commonjs/components/Calendar/index.js +7 -5
  72. package/lib-commonjs/components/Calendar/index.js.map +1 -1
  73. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.js +12 -8
  74. package/lib-commonjs/components/Calendar/useCalendarStyles.styles.js.map +1 -1
  75. package/lib-commonjs/components/CalendarDay/CalendarDay.js +25 -26
  76. package/lib-commonjs/components/CalendarDay/CalendarDay.js.map +1 -1
  77. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js +2 -2
  78. package/lib-commonjs/components/CalendarDay/CalendarDay.types.js.map +1 -1
  79. package/lib-commonjs/components/CalendarDay/index.js +4 -4
  80. package/lib-commonjs/components/CalendarDay/index.js.map +1 -1
  81. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.js +13 -9
  82. package/lib-commonjs/components/CalendarDay/useCalendarDayStyles.styles.js.map +1 -1
  83. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js +27 -27
  84. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js.map +1 -1
  85. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js +2 -2
  86. package/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js.map +1 -1
  87. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js +29 -24
  88. package/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js.map +1 -1
  89. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js +8 -6
  90. package/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js.map +1 -1
  91. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js +6 -4
  92. package/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js.map +1 -1
  93. package/lib-commonjs/components/CalendarDayGrid/index.js +10 -6
  94. package/lib-commonjs/components/CalendarDayGrid/index.js.map +1 -1
  95. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js +29 -23
  96. package/lib-commonjs/components/CalendarDayGrid/useCalendarDayGridStyles.styles.js.map +1 -1
  97. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js +9 -5
  98. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  99. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js +9 -6
  100. package/lib-commonjs/components/CalendarDayGrid/useWeeks.js.map +1 -1
  101. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js +24 -21
  102. package/lib-commonjs/components/CalendarMonth/CalendarMonth.js.map +1 -1
  103. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js +2 -2
  104. package/lib-commonjs/components/CalendarMonth/CalendarMonth.types.js.map +1 -1
  105. package/lib-commonjs/components/CalendarMonth/index.js +4 -4
  106. package/lib-commonjs/components/CalendarMonth/index.js.map +1 -1
  107. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js +5 -3
  108. package/lib-commonjs/components/CalendarMonth/useCalendarMonthStyles.js.map +1 -1
  109. package/lib-commonjs/components/CalendarPicker/index.js +3 -3
  110. package/lib-commonjs/components/CalendarPicker/index.js.map +1 -1
  111. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.js +20 -16
  112. package/lib-commonjs/components/CalendarPicker/useCalendarPickerStyles.styles.js.map +1 -1
  113. package/lib-commonjs/components/CalendarYear/CalendarYear.js +60 -59
  114. package/lib-commonjs/components/CalendarYear/CalendarYear.js.map +1 -1
  115. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js +2 -2
  116. package/lib-commonjs/components/CalendarYear/CalendarYear.types.js.map +1 -1
  117. package/lib-commonjs/components/CalendarYear/index.js +4 -4
  118. package/lib-commonjs/components/CalendarYear/index.js.map +1 -1
  119. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.js +5 -3
  120. package/lib-commonjs/components/CalendarYear/useCalendarYearStyles.styles.js.map +1 -1
  121. package/lib-commonjs/components/DatePicker/DatePicker.js +7 -5
  122. package/lib-commonjs/components/DatePicker/DatePicker.js.map +1 -1
  123. package/lib-commonjs/components/DatePicker/defaults.js +6 -2
  124. package/lib-commonjs/components/DatePicker/defaults.js.map +1 -1
  125. package/lib-commonjs/components/DatePicker/index.js +7 -7
  126. package/lib-commonjs/components/DatePicker/index.js.map +1 -1
  127. package/lib-commonjs/components/DatePicker/renderDatePicker.js +22 -12
  128. package/lib-commonjs/components/DatePicker/renderDatePicker.js.map +1 -1
  129. package/lib-commonjs/components/DatePicker/useDatePicker.js +59 -52
  130. package/lib-commonjs/components/DatePicker/useDatePicker.js.map +1 -1
  131. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.js +9 -5
  132. package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.js.map +1 -1
  133. package/lib-commonjs/index.js +98 -34
  134. package/lib-commonjs/index.js.map +1 -1
  135. package/lib-commonjs/utils/animations.js +45 -15
  136. package/lib-commonjs/utils/animations.js.map +1 -1
  137. package/lib-commonjs/utils/constants.js +18 -6
  138. package/lib-commonjs/utils/constants.js.map +1 -1
  139. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js +24 -8
  140. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js.map +1 -1
  141. package/lib-commonjs/utils/dateFormatting/index.js +3 -3
  142. package/lib-commonjs/utils/dateFormatting/index.js.map +1 -1
  143. package/lib-commonjs/utils/dateGrid/findAvailableDate.js +4 -2
  144. package/lib-commonjs/utils/dateGrid/findAvailableDate.js.map +1 -1
  145. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js +3 -1
  146. package/lib-commonjs/utils/dateGrid/getBoundedDateRange.js.map +1 -1
  147. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js +3 -1
  148. package/lib-commonjs/utils/dateGrid/getDateRangeTypeToUse.js.map +1 -1
  149. package/lib-commonjs/utils/dateGrid/getDayGrid.js +6 -3
  150. package/lib-commonjs/utils/dateGrid/getDayGrid.js.map +1 -1
  151. package/lib-commonjs/utils/dateGrid/index.js +6 -6
  152. package/lib-commonjs/utils/dateGrid/index.js.map +1 -1
  153. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js +4 -2
  154. package/lib-commonjs/utils/dateGrid/isAfterMaxDate.js.map +1 -1
  155. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js +4 -2
  156. package/lib-commonjs/utils/dateGrid/isBeforeMinDate.js.map +1 -1
  157. package/lib-commonjs/utils/dateGrid/isContiguous.js +3 -1
  158. package/lib-commonjs/utils/dateGrid/isContiguous.js.map +1 -1
  159. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js +4 -2
  160. package/lib-commonjs/utils/dateGrid/isRestrictedDate.js.map +1 -1
  161. package/lib-commonjs/utils/dateMath/dateMath.js +54 -18
  162. package/lib-commonjs/utils/dateMath/dateMath.js.map +1 -1
  163. package/lib-commonjs/utils/dateMath/index.js +2 -2
  164. package/lib-commonjs/utils/dateMath/index.js.map +1 -1
  165. package/lib-commonjs/utils/dom.js +5 -3
  166. package/lib-commonjs/utils/dom.js.map +1 -1
  167. package/lib-commonjs/utils/focus.js +3 -1
  168. package/lib-commonjs/utils/focus.js.map +1 -1
  169. package/lib-commonjs/utils/index.js +8 -8
  170. package/lib-commonjs/utils/index.js.map +1 -1
  171. package/lib-commonjs/utils/usePopupPositioning.js +9 -7
  172. package/lib-commonjs/utils/usePopupPositioning.js.map +1 -1
  173. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"sources":["useCalendarDayGridStyles.styles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { 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';\nimport { AnimationDirection } from '../Calendar/Calendar.types';\nimport { weekCornersClassNames } from './useWeekCornerStyles.styles';\n/**\n * @internal\n */\nexport const calendarDayGridClassNames = {\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 * @internal\n */\nexport const extraCalendarDayGridClassNames = {\n hoverStyle: 'fui-CalendarDayGrid__hoverStyle',\n pressedStyle: 'fui-CalendarDayGrid__pressedStyle'\n};\nconst useWrapperStyles = /*#__PURE__*/__styles({\n base: {\n Byoj8tv: \"f1fow5ox\"\n }\n}, {\n d: [\".f1fow5ox{padding-bottom:10px;}\"]\n});\nconst useTableStyles = /*#__PURE__*/__styles({\n base: {\n po53p8: \"fgkb47j\",\n Bxjg3zr: \"f16vktn6\",\n Be2twd7: \"fjoy568\",\n B6of3ja: \"fvjh0tl\",\n Byoj8tv: \"f1fow5ox\",\n qhf8xq: \"f10pi13n\",\n B73mfa3: \"f14m3nip\",\n fsow6f: \"f17mccla\",\n a9b677: \"f4m2ahc\"\n },\n showWeekNumbers: {\n a9b677: \"fl524qk\"\n }\n}, {\n 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;}\"]\n});\nconst useDayCellStyles = /*#__PURE__*/__styles({\n base: {\n sj55zd: \"f19n0e5\",\n Bceei9c: \"f1k6fduh\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"figsok6\",\n Bqenvij: \"fxldao9\",\n Bg96gwp: \"f336tjw\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"],\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n qhf8xq: \"f10pi13n\",\n a9b677: \"f1w9dchk\",\n Bsw6fvg: \"f8pusc0\",\n Bbusuzp: \"fqgauei\",\n cvlxnx: \"fp6dsbd\",\n Bweudez: \"f4xgodq\",\n hzfqlu: \"fehmveg\",\n Bb91d7d: \"ff78tpz\",\n dua3dm: \"f128nre3\",\n z1p9vi: \"f1elgve3\",\n Bsnevi5: \"f15e7s3w\",\n xnb59o: \"fts5qqo\",\n Bj67fi1: \"f1lhgsq9\",\n B2gfgcj: \"fdbuq6n\",\n B6cqqer: \"f16j2ub3\",\n fpurfy: \"f5hk6jp\",\n Fioj4w: [\"f1d258es\", \"f1llk4aj\"],\n Bq9yiu4: \"ftezgwa\",\n cpbo2x: [\"f1llk4aj\", \"f1d258es\"],\n Bq268z6: \"f1iohfpm\"\n }\n}, {\n 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);}\"],\n m: [[\"@media (forced-colors: active){.f8pusc0{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fqgauei{color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fehmveg.fui-CalendarDayGrid__hoverStyle{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.ff78tpz.fui-CalendarDayGrid__hoverStyle{color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f128nre3.fui-CalendarDayGrid__hoverStyle{outline-width:1px;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1elgve3.fui-CalendarDayGrid__hoverStyle{outline-style:solid;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f15e7s3w.fui-CalendarDayGrid__hoverStyle{outline-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fts5qqo.fui-CalendarDayGrid__hoverStyle{z-index:3;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f16j2ub3.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f5hk6jp.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1d258es.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.f1llk4aj.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.ftezgwa.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1iohfpm.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDaySelectedStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1vevd59\",\n sj55zd: \"ff5vbop\",\n Bsw6fvg: \"f1rirnrt\",\n Bjwas2f: \"f132fbg1\",\n Bn1d65q: [\"f1ene5x0\", \"fzbc999\"],\n Bxeuatn: \"f6jgcol\",\n n51gp8: [\"fzbc999\", \"f1ene5x0\"],\n Bbusuzp: \"f1lkg8j3\",\n ycbfsm: \"fkc42ay\",\n a3nq4f: \"f1chdfq9\",\n Bnf3alp: \"fq0dbue\",\n H2c3sd: \"f3pe0v7\",\n qu8ld: \"f3t0uu2\",\n Bg4iunc: \"f1cikclm\"\n }\n}, {\n d: [\".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}\", \".ff5vbop{color:var(--colorNeutralForeground1Static);}\"],\n m: [[\"@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f3pe0v7:hover,.f3pe0v7.fui-CalendarDayGrid__hoverStyle,.f3pe0v7.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f3t0uu2:hover,.f3t0uu2.fui-CalendarDayGrid__hoverStyle,.f3t0uu2.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }]],\n 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);}\"]\n});\nconst useWeekRowStyles = /*#__PURE__*/__styles({\n base: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Ezkn3b: \"f1ee2ue\"\n },\n horizontalBackward: {\n Bv12yb3: [\"f1o9w3l8\", \"f1kwjajc\"]\n },\n horizontalForward: {\n Bv12yb3: [\"f1kwjajc\", \"f1o9w3l8\"]\n },\n verticalBackward: {\n Bv12yb3: \"fgl3yn7\"\n },\n verticalForward: {\n Bv12yb3: \"faiu5ye\"\n }\n}, {\n d: [\".f5f2jbu{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\", \".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}\", \".f1kwjajc{animation-name:f5j8bii,fpktcv7;}\", \".fgl3yn7{animation-name:f5j8bii,f3bv9km;}\", \".faiu5ye{animation-name:f5j8bii,funtx0y;}\"],\n k: [\"@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}\", \"@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\"]\n});\nconst useWeekDayLabelCellStyles = /*#__PURE__*/__styles({\n base: {\n vin17d: \"fhsqnsn\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"f1h7u52p\",\n Ezkn3b: \"fjq4c94\"\n }\n}, {\n d: [\".fhsqnsn{animation-duration:0.267s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1h7u52p{animation-name:f5j8bii;}\", \".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}\"],\n k: [\"@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}\"]\n});\nconst useWeekNumberCellStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1c21dwh\",\n g2u3we: \"f68mrw8\",\n h3c5rm: [\"f7pw515\", \"fw35ms5\"],\n B9xav0g: \"frpde29\",\n zhjwy3: [\"fw35ms5\", \"f7pw515\"],\n Bekrc4i: [\"f1hqa2wf\", \"finvdd3\"],\n vrafjx: [\"fcdblym\", \"fjik90z\"],\n B7ck84d: \"f1ewtqcl\",\n sj55zd: \"fxc4j92\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"figsok6\",\n Bqenvij: \"fxldao9\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"],\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n a9b677: \"f1w9dchk\"\n }\n}, {\n 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;}\"]\n});\nconst useDayOutsideBoundsStyles = /*#__PURE__*/__styles({\n base: {\n x734em: \"f1v4z6xg\",\n B0ssf13: \"f1u9q7oh\",\n B8h8h5z: \"f1a22lcc\",\n Bbusuzp: \"f1dcs8yz\"\n }\n}, {\n 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;}\"],\n m: [[\"@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDayOutsideNavigatedMonthStyles = /*#__PURE__*/__styles({\n lightenDaysOutsideNavigatedMonth: {\n sj55zd: \"fxc4j92\",\n Bhrd7zp: \"figsok6\",\n Bbusuzp: \"f1dcs8yz\"\n }\n}, {\n d: [\".fxc4j92{color:var(--colorNeutralForeground4);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\"],\n m: [[\"@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDayButtonStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1c21dwh\",\n Bbmb7ep: [\"f2i1086\", \"f1rlsnju\"],\n Beyfa6y: [\"f1rlsnju\", \"f2i1086\"],\n B7oj6ja: [\"f1stktl2\", \"f1127022\"],\n Btl43ni: [\"f1127022\", \"f1stktl2\"],\n icvyot: \"f1ern45e\",\n vrafjx: [\"f1n71otn\", \"f1deefiw\"],\n oivjwe: \"f1h8hb77\",\n wvpqe5: [\"f1deefiw\", \"f1n71otn\"],\n sj55zd: \"f1ym3bx4\",\n Bceei9c: \"f1k6fduh\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"ff5ikls\",\n Bqenvij: \"frvgh55\",\n Bg96gwp: \"f8xlz6g\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n a9b677: \"fq4mcun\",\n Bx0yju7: \"f10y451g\",\n l98f4w: \"f1dwpgx3\"\n }\n}, {\n 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;}\"]\n});\nconst useDayIsTodayStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"ffp7eso\",\n Bbmb7ep: [\"f1xbx3v5\", \"fh9p2o2\"],\n Beyfa6y: [\"fh9p2o2\", \"f1xbx3v5\"],\n B7oj6ja: [\"f18mldvw\", \"f3h6kr5\"],\n Btl43ni: [\"f3h6kr5\", \"f18mldvw\"],\n sj55zd: \"f1phragk\",\n Bhrd7zp: \"fl43uef\",\n Bsw6fvg: \"fg374yq\",\n Bjwas2f: \"fx4t0an\",\n Bn1d65q: [\"f1bd7qk0\", \"fk5vpic\"],\n Bxeuatn: \"fgxnpfp\",\n n51gp8: [\"fk5vpic\", \"f1bd7qk0\"],\n Bbusuzp: \"f1yig07e\",\n ycbfsm: \"fkc42ay\",\n jxbfoe: \"fj0lumn\",\n Bg4iunc: \"f1cikclm\"\n }\n}, {\n 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);}\"],\n m: [[\"@media (forced-colors: active){.fg374yq{background-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fx4t0an{border-top-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1bd7qk0{border-right-color:WindowText;}.fk5vpic{border-left-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fgxnpfp{border-bottom-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1yig07e{color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useFirstTransitionWeekStyles = /*#__PURE__*/__styles({\n base: {\n Bqenvij: \"fniina8\",\n abs64n: \"fk73vx1\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f3tsq5r\"\n },\n verticalForward: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"fb3mxun\",\n Ezkn3b: \"f1ee2ue\"\n }\n}, {\n d: [\".fniina8{height:0;}\", \".fk73vx1{opacity:0;}\", \".f1p9o1ba{overflow-x:hidden;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1euv43f{position:absolute;}\", \".f3tsq5r{width:0;}\", \".f5f2jbu{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".fb3mxun{animation-name:f199e34v,f76svrd,fhwv0sk;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\"],\n k: [\"@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}\", \"@keyframes f76svrd{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, -20px, 0);}}\", \"@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%;}}\"]\n});\nconst useLastTransitionWeekStyles = /*#__PURE__*/__styles({\n base: {\n Bqenvij: \"fniina8\",\n B6of3ja: \"flykjtj\",\n abs64n: \"fk73vx1\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f3tsq5r\"\n },\n verticalBackward: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"f1h56eac\",\n Ezkn3b: \"f1ee2ue\"\n }\n}, {\n 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{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1h56eac{animation-name:f199e34v,f18895iq,fhwv0sk;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\"],\n k: [\"@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}\", \"@keyframes f18895iq{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, 20px, 0);}}\", \"@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%;}}\"]\n});\nconst useDayMarkerStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"fnggedw\",\n Bbmb7ep: [\"f1xbx3v5\", \"fh9p2o2\"],\n Beyfa6y: [\"fh9p2o2\", \"f1xbx3v5\"],\n B7oj6ja: [\"f18mldvw\", \"f3h6kr5\"],\n Btl43ni: [\"f3h6kr5\", \"f18mldvw\"],\n B5kzvoi: \"f1oq0udb\",\n Bqenvij: \"f6ywr7j\",\n oyh7mz: [\"f1vgc2s3\", \"f1e31b4d\"],\n B6of3ja: \"fgr6219\",\n t21cq0: [\"f1ujusj6\", \"fcgxt0o\"],\n jrapky: \"f10jk5vf\",\n Frg6f3: [\"fcgxt0o\", \"f1ujusj6\"],\n qhf8xq: \"f1euv43f\",\n j35jbq: [\"f1e31b4d\", \"f1vgc2s3\"],\n a9b677: \"faro0ui\",\n Bsw6fvg: \"fg374yq\",\n ycbfsm: \"fkc42ay\"\n }\n}, {\n 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;}\"],\n m: [[\"@media (forced-colors: active){.fg374yq{background-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useCornerBorderAndRadiusStyles = /*#__PURE__*/__styles({\n corners: {\n Cy64m2: [\"fgk2v8v\", \"flgychs\"],\n Bnn43bw: [\"fon8hnx\", \"f1dzb7s0\"],\n feanbc: [\"f5gufe6\", \"f6b3fnj\"],\n B4268ip: [\"fo35n0e\", \"f96pych\"]\n }\n}, {\n 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;}\"]\n});\n/**\n * @internal\n *\n * Apply styling to the CalendarDayGrid slots based on the state\n */\nexport const useCalendarDayGridStyles_unstable = props => {\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 const {\n animateBackwards,\n animationDirection,\n lightenDaysOutsideNavigatedMonth,\n showWeekNumbers\n } = props;\n return {\n wrapper: mergeClasses(calendarDayGridClassNames.wrapper, wrapperStyles.base),\n table: mergeClasses(calendarDayGridClassNames.table, tableStyles.base, showWeekNumbers && tableStyles.showWeekNumbers),\n dayCell: mergeClasses(calendarDayGridClassNames.dayCell, dayCellStyles.base, cornerBorderAndRadiusStyles.corners),\n daySelected: mergeClasses(calendarDayGridClassNames.daySelected, daySelectedStyles.base),\n weekRow: mergeClasses(calendarDayGridClassNames.weekRow, animateBackwards !== undefined && weekRowStyles.base, animateBackwards !== undefined && (animationDirection === AnimationDirection.Horizontal ? animateBackwards ? weekRowStyles.horizontalBackward : weekRowStyles.horizontalForward : animateBackwards ? weekRowStyles.verticalBackward : weekRowStyles.verticalForward)),\n weekDayLabelCell: mergeClasses(calendarDayGridClassNames.weekDayLabelCell, weekDayLabelCellStyles.base),\n weekNumberCell: mergeClasses(calendarDayGridClassNames.weekNumberCell, weekNumberCellStyles.base),\n dayOutsideBounds: mergeClasses(calendarDayGridClassNames.dayOutsideBounds, dayOutsideBoundsStyles.base),\n dayOutsideNavigatedMonth: mergeClasses(calendarDayGridClassNames.dayOutsideNavigatedMonth, lightenDaysOutsideNavigatedMonth && dayOutsideNavigatedMonthStyles.lightenDaysOutsideNavigatedMonth),\n dayButton: mergeClasses(calendarDayGridClassNames.dayButton, dayButtonStyles.base),\n dayIsToday: mergeClasses(calendarDayGridClassNames.dayIsToday, dayIsTodayStyles.base),\n firstTransitionWeek: mergeClasses(calendarDayGridClassNames.firstTransitionWeek, firstTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && !animateBackwards && firstTransitionWeekStyles.verticalForward),\n lastTransitionWeek: mergeClasses(calendarDayGridClassNames.lastTransitionWeek, lastTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && animateBackwards && lastTransitionWeekStyles.verticalBackward),\n dayMarker: mergeClasses(calendarDayGridClassNames.dayMarker, dayMarkerStyles.base)\n };\n};\n//# sourceMappingURL=useCalendarDayGridStyles.styles.js.map"],"names":["calendarDayGridClassNames","extraCalendarDayGridClassNames","useCalendarDayGridStyles_unstable","wrapper","table","dayCell","daySelected","weekRow","weekDayLabelCell","weekNumberCell","dayOutsideBounds","dayOutsideNavigatedMonth","dayButton","dayIsToday","firstTransitionWeek","lastTransitionWeek","dayMarker","hoverStyle","pressedStyle","useWrapperStyles","__styles","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","props","wrapperStyles","tableStyles","dayCellStyles","daySelectedStyles","weekRowStyles","weekDayLabelCellStyles","weekNumberCellStyles","dayOutsideBoundsStyles","dayOutsideNavigatedMonthStyles","dayButtonStyles","dayIsTodayStyles","firstTransitionWeekStyles","lastTransitionWeekStyles","dayMarkerStyles","cornerBorderAndRadiusStyles","animateBackwards","animationDirection","mergeClasses","undefined","AnimationDirection","Horizontal"],"mappings":";;;;;;;;;;;IAQaA,yBAAyB,MAAzBA;IAmBAC,8BAA8B,MAA9BA;IAkXAC,iCAAiC,MAAjCA;;uBA5YsC;+BAEhB;AAK5B,MAAMF,4BAA4B;IACvCG,SAAS;IACTC,OAAO;IACPC,SAAS;IACTC,aAAa;IACbC,SAAS;IACTC,kBAAkB;IAClBC,gBAAgB;IAChBC,kBAAkB;IAClBC,0BAA0B;IAC1BC,WAAW;IACXC,YAAY;IACZC,qBAAqB;IACrBC,o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AAe;QACzQvE,oBAAoBqI,IAAAA,mBAAY,EAACpJ,0BAA0Be,kBAAkB,EAAEgI,yBAAyB1H,IAAI,EAAE6H,qBAAqBG,aAAaF,uBAAuBG,iCAAkB,CAACC,UAAU,IAAIL,oBAAoBH,yBAAyB1D,gBAAgB;QACrQrE,WAAWoI,IAAAA,mBAAY,EAACpJ,0BAA0BgB,SAAS,EAAEgI,gBAAgB3H,IAAI;IACnF;AACF,GACA,2DAA2D"}
1
+ {"version":3,"sources":["useCalendarDayGridStyles.styles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { 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';\nimport { AnimationDirection } from '../Calendar/Calendar.types';\nimport { weekCornersClassNames } from './useWeekCornerStyles.styles';\n/**\n * @internal\n */\nexport const calendarDayGridClassNames = {\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 * @internal\n */\nexport const extraCalendarDayGridClassNames = {\n hoverStyle: 'fui-CalendarDayGrid__hoverStyle',\n pressedStyle: 'fui-CalendarDayGrid__pressedStyle'\n};\nconst useWrapperStyles = /*#__PURE__*/__styles({\n base: {\n Byoj8tv: \"f1fow5ox\"\n }\n}, {\n d: [\".f1fow5ox{padding-bottom:10px;}\"]\n});\nconst useTableStyles = /*#__PURE__*/__styles({\n base: {\n po53p8: \"fgkb47j\",\n Bxjg3zr: \"f16vktn6\",\n Be2twd7: \"fjoy568\",\n B6of3ja: \"fvjh0tl\",\n Byoj8tv: \"f1fow5ox\",\n qhf8xq: \"f10pi13n\",\n B73mfa3: \"f14m3nip\",\n fsow6f: \"f17mccla\",\n a9b677: \"f4m2ahc\"\n },\n showWeekNumbers: {\n a9b677: \"fl524qk\"\n }\n}, {\n 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;}\"]\n});\nconst useDayCellStyles = /*#__PURE__*/__styles({\n base: {\n sj55zd: \"f19n0e5\",\n Bceei9c: \"f1k6fduh\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"figsok6\",\n Bqenvij: \"fxldao9\",\n Bg96gwp: \"f336tjw\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"],\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n qhf8xq: \"f10pi13n\",\n a9b677: \"f1w9dchk\",\n Bsw6fvg: \"f8pusc0\",\n Bbusuzp: \"fqgauei\",\n cvlxnx: \"fp6dsbd\",\n Bweudez: \"f4xgodq\",\n hzfqlu: \"fehmveg\",\n Bb91d7d: \"ff78tpz\",\n dua3dm: \"f128nre3\",\n z1p9vi: \"f1elgve3\",\n Bsnevi5: \"f15e7s3w\",\n xnb59o: \"fts5qqo\",\n Bj67fi1: \"f1lhgsq9\",\n B2gfgcj: \"fdbuq6n\",\n B6cqqer: \"f16j2ub3\",\n fpurfy: \"f5hk6jp\",\n Fioj4w: [\"f1d258es\", \"f1llk4aj\"],\n Bq9yiu4: \"ftezgwa\",\n cpbo2x: [\"f1llk4aj\", \"f1d258es\"],\n Bq268z6: \"f1iohfpm\"\n }\n}, {\n 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);}\"],\n m: [[\"@media (forced-colors: active){.f8pusc0{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fqgauei{color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fehmveg.fui-CalendarDayGrid__hoverStyle{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.ff78tpz.fui-CalendarDayGrid__hoverStyle{color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f128nre3.fui-CalendarDayGrid__hoverStyle{outline-width:1px;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1elgve3.fui-CalendarDayGrid__hoverStyle{outline-style:solid;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f15e7s3w.fui-CalendarDayGrid__hoverStyle{outline-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fts5qqo.fui-CalendarDayGrid__hoverStyle{z-index:3;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f16j2ub3.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f5hk6jp.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1d258es.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.f1llk4aj.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.ftezgwa.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1iohfpm.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDaySelectedStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1vevd59\",\n sj55zd: \"ff5vbop\",\n Bsw6fvg: \"f1rirnrt\",\n Bjwas2f: \"f132fbg1\",\n Bn1d65q: [\"f1ene5x0\", \"fzbc999\"],\n Bxeuatn: \"f6jgcol\",\n n51gp8: [\"fzbc999\", \"f1ene5x0\"],\n Bbusuzp: \"f1lkg8j3\",\n ycbfsm: \"fkc42ay\",\n a3nq4f: \"f1chdfq9\",\n Bnf3alp: \"fq0dbue\",\n H2c3sd: \"f3pe0v7\",\n qu8ld: \"f3t0uu2\",\n Bg4iunc: \"f1cikclm\"\n }\n}, {\n d: [\".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}\", \".ff5vbop{color:var(--colorNeutralForeground1Static);}\"],\n m: [[\"@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f3pe0v7:hover,.f3pe0v7.fui-CalendarDayGrid__hoverStyle,.f3pe0v7.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f3t0uu2:hover,.f3t0uu2.fui-CalendarDayGrid__hoverStyle,.f3t0uu2.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }]],\n 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);}\"]\n});\nconst useWeekRowStyles = /*#__PURE__*/__styles({\n base: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Ezkn3b: \"f1ee2ue\"\n },\n horizontalBackward: {\n Bv12yb3: [\"f1o9w3l8\", \"f1kwjajc\"]\n },\n horizontalForward: {\n Bv12yb3: [\"f1kwjajc\", \"f1o9w3l8\"]\n },\n verticalBackward: {\n Bv12yb3: \"fgl3yn7\"\n },\n verticalForward: {\n Bv12yb3: \"faiu5ye\"\n }\n}, {\n d: [\".f5f2jbu{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\", \".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}\", \".f1kwjajc{animation-name:f5j8bii,fpktcv7;}\", \".fgl3yn7{animation-name:f5j8bii,f3bv9km;}\", \".faiu5ye{animation-name:f5j8bii,funtx0y;}\"],\n k: [\"@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}\", \"@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\", \"@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}\"]\n});\nconst useWeekDayLabelCellStyles = /*#__PURE__*/__styles({\n base: {\n vin17d: \"fhsqnsn\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"f1h7u52p\",\n Ezkn3b: \"fjq4c94\"\n }\n}, {\n d: [\".fhsqnsn{animation-duration:0.267s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1h7u52p{animation-name:f5j8bii;}\", \".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}\"],\n k: [\"@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}\"]\n});\nconst useWeekNumberCellStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1c21dwh\",\n g2u3we: \"f68mrw8\",\n h3c5rm: [\"f7pw515\", \"fw35ms5\"],\n B9xav0g: \"frpde29\",\n zhjwy3: [\"fw35ms5\", \"f7pw515\"],\n Bekrc4i: [\"f1hqa2wf\", \"finvdd3\"],\n vrafjx: [\"fcdblym\", \"fjik90z\"],\n B7ck84d: \"f1ewtqcl\",\n sj55zd: \"fxc4j92\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"figsok6\",\n Bqenvij: \"fxldao9\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"],\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n a9b677: \"f1w9dchk\"\n }\n}, {\n 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;}\"]\n});\nconst useDayOutsideBoundsStyles = /*#__PURE__*/__styles({\n base: {\n x734em: \"f1v4z6xg\",\n B0ssf13: \"f1u9q7oh\",\n B8h8h5z: \"f1a22lcc\",\n Bbusuzp: \"f1dcs8yz\"\n }\n}, {\n 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;}\"],\n m: [[\"@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDayOutsideNavigatedMonthStyles = /*#__PURE__*/__styles({\n lightenDaysOutsideNavigatedMonth: {\n sj55zd: \"fxc4j92\",\n Bhrd7zp: \"figsok6\",\n Bbusuzp: \"f1dcs8yz\"\n }\n}, {\n d: [\".fxc4j92{color:var(--colorNeutralForeground4);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\"],\n m: [[\"@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useDayButtonStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"f1c21dwh\",\n Bbmb7ep: [\"f2i1086\", \"f1rlsnju\"],\n Beyfa6y: [\"f1rlsnju\", \"f2i1086\"],\n B7oj6ja: [\"f1stktl2\", \"f1127022\"],\n Btl43ni: [\"f1127022\", \"f1stktl2\"],\n icvyot: \"f1ern45e\",\n vrafjx: [\"f1n71otn\", \"f1deefiw\"],\n oivjwe: \"f1h8hb77\",\n wvpqe5: [\"f1deefiw\", \"f1n71otn\"],\n sj55zd: \"f1ym3bx4\",\n Bceei9c: \"f1k6fduh\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"ff5ikls\",\n Bqenvij: \"frvgh55\",\n Bg96gwp: \"f8xlz6g\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n a9b677: \"fq4mcun\",\n Bx0yju7: \"f10y451g\",\n l98f4w: \"f1dwpgx3\"\n }\n}, {\n 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;}\"]\n});\nconst useDayIsTodayStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"ffp7eso\",\n Bbmb7ep: [\"f1xbx3v5\", \"fh9p2o2\"],\n Beyfa6y: [\"fh9p2o2\", \"f1xbx3v5\"],\n B7oj6ja: [\"f18mldvw\", \"f3h6kr5\"],\n Btl43ni: [\"f3h6kr5\", \"f18mldvw\"],\n sj55zd: \"f1phragk\",\n Bhrd7zp: \"fl43uef\",\n Bsw6fvg: \"fg374yq\",\n Bjwas2f: \"fx4t0an\",\n Bn1d65q: [\"f1bd7qk0\", \"fk5vpic\"],\n Bxeuatn: \"fgxnpfp\",\n n51gp8: [\"fk5vpic\", \"f1bd7qk0\"],\n Bbusuzp: \"f1yig07e\",\n ycbfsm: \"fkc42ay\",\n jxbfoe: \"fj0lumn\",\n Bg4iunc: \"f1cikclm\"\n }\n}, {\n 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);}\"],\n m: [[\"@media (forced-colors: active){.fg374yq{background-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fx4t0an{border-top-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1bd7qk0{border-right-color:WindowText;}.fk5vpic{border-left-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fgxnpfp{border-bottom-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1yig07e{color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1cikclm>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useFirstTransitionWeekStyles = /*#__PURE__*/__styles({\n base: {\n Bqenvij: \"fniina8\",\n abs64n: \"fk73vx1\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f3tsq5r\"\n },\n verticalForward: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"fb3mxun\",\n Ezkn3b: \"f1ee2ue\"\n }\n}, {\n d: [\".fniina8{height:0;}\", \".fk73vx1{opacity:0;}\", \".f1p9o1ba{overflow-x:hidden;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1euv43f{position:absolute;}\", \".f3tsq5r{width:0;}\", \".f5f2jbu{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".fb3mxun{animation-name:f199e34v,f76svrd,fhwv0sk;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\"],\n k: [\"@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}\", \"@keyframes f76svrd{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, -20px, 0);}}\", \"@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%;}}\"]\n});\nconst useLastTransitionWeekStyles = /*#__PURE__*/__styles({\n base: {\n Bqenvij: \"fniina8\",\n B6of3ja: \"flykjtj\",\n abs64n: \"fk73vx1\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f3tsq5r\"\n },\n verticalBackward: {\n vin17d: \"f5f2jbu\",\n Bf5fcs: \"fywypte\",\n Bv12yb3: \"f1h56eac\",\n Ezkn3b: \"f1ee2ue\"\n }\n}, {\n 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{animation-duration:0.367s;}\", \".fywypte{animation-fill-mode:both;}\", \".f1h56eac{animation-name:f199e34v,f18895iq,fhwv0sk;}\", \".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}\"],\n k: [\"@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}\", \"@keyframes f18895iq{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, 20px, 0);}}\", \"@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%;}}\"]\n});\nconst useDayMarkerStyles = /*#__PURE__*/__styles({\n base: {\n De3pzq: \"fnggedw\",\n Bbmb7ep: [\"f1xbx3v5\", \"fh9p2o2\"],\n Beyfa6y: [\"fh9p2o2\", \"f1xbx3v5\"],\n B7oj6ja: [\"f18mldvw\", \"f3h6kr5\"],\n Btl43ni: [\"f3h6kr5\", \"f18mldvw\"],\n B5kzvoi: \"f1oq0udb\",\n Bqenvij: \"f6ywr7j\",\n oyh7mz: [\"f1vgc2s3\", \"f1e31b4d\"],\n B6of3ja: \"fgr6219\",\n t21cq0: [\"f1ujusj6\", \"fcgxt0o\"],\n jrapky: \"f10jk5vf\",\n Frg6f3: [\"fcgxt0o\", \"f1ujusj6\"],\n qhf8xq: \"f1euv43f\",\n j35jbq: [\"f1e31b4d\", \"f1vgc2s3\"],\n a9b677: \"faro0ui\",\n Bsw6fvg: \"fg374yq\",\n ycbfsm: \"fkc42ay\"\n }\n}, {\n 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;}\"],\n m: [[\"@media (forced-colors: active){.fg374yq{background-color:WindowText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useCornerBorderAndRadiusStyles = /*#__PURE__*/__styles({\n corners: {\n Cy64m2: [\"fgk2v8v\", \"flgychs\"],\n Bnn43bw: [\"fon8hnx\", \"f1dzb7s0\"],\n feanbc: [\"f5gufe6\", \"f6b3fnj\"],\n B4268ip: [\"fo35n0e\", \"f96pych\"]\n }\n}, {\n 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;}\"]\n});\n/**\n * @internal\n *\n * Apply styling to the CalendarDayGrid slots based on the state\n */\nexport const useCalendarDayGridStyles_unstable = props => {\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 const {\n animateBackwards,\n animationDirection,\n lightenDaysOutsideNavigatedMonth,\n showWeekNumbers\n } = props;\n return {\n wrapper: mergeClasses(calendarDayGridClassNames.wrapper, wrapperStyles.base),\n table: mergeClasses(calendarDayGridClassNames.table, tableStyles.base, showWeekNumbers && tableStyles.showWeekNumbers),\n dayCell: mergeClasses(calendarDayGridClassNames.dayCell, dayCellStyles.base, cornerBorderAndRadiusStyles.corners),\n daySelected: mergeClasses(calendarDayGridClassNames.daySelected, daySelectedStyles.base),\n weekRow: mergeClasses(calendarDayGridClassNames.weekRow, animateBackwards !== undefined && weekRowStyles.base, animateBackwards !== undefined && (animationDirection === AnimationDirection.Horizontal ? animateBackwards ? weekRowStyles.horizontalBackward : weekRowStyles.horizontalForward : animateBackwards ? weekRowStyles.verticalBackward : weekRowStyles.verticalForward)),\n weekDayLabelCell: mergeClasses(calendarDayGridClassNames.weekDayLabelCell, weekDayLabelCellStyles.base),\n weekNumberCell: mergeClasses(calendarDayGridClassNames.weekNumberCell, weekNumberCellStyles.base),\n dayOutsideBounds: mergeClasses(calendarDayGridClassNames.dayOutsideBounds, dayOutsideBoundsStyles.base),\n dayOutsideNavigatedMonth: mergeClasses(calendarDayGridClassNames.dayOutsideNavigatedMonth, lightenDaysOutsideNavigatedMonth && dayOutsideNavigatedMonthStyles.lightenDaysOutsideNavigatedMonth),\n dayButton: mergeClasses(calendarDayGridClassNames.dayButton, dayButtonStyles.base),\n dayIsToday: mergeClasses(calendarDayGridClassNames.dayIsToday, dayIsTodayStyles.base),\n firstTransitionWeek: mergeClasses(calendarDayGridClassNames.firstTransitionWeek, firstTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && !animateBackwards && firstTransitionWeekStyles.verticalForward),\n lastTransitionWeek: mergeClasses(calendarDayGridClassNames.lastTransitionWeek, lastTransitionWeekStyles.base, animateBackwards !== undefined && animationDirection !== AnimationDirection.Horizontal && animateBackwards && lastTransitionWeekStyles.verticalBackward),\n dayMarker: mergeClasses(calendarDayGridClassNames.dayMarker, dayMarkerStyles.base)\n };\n};\n//# sourceMappingURL=useCalendarDayGridStyles.styles.js.map"],"names":["calendarDayGridClassNames","extraCalendarDayGridClassNames","useCalendarDayGridStyles_unstable","wrapper","table","dayCell","daySelected","weekRow","weekDayLabelCell","weekNumberCell","dayOutsideBounds","dayOutsideNavigatedMonth","dayButton","dayIsToday","firstTransitionWeek","lastTransitionWeek","dayMarker","hoverStyle","pressedStyle","useWrapperStyles","__styles","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","props","wrapperStyles","tableStyles","dayCellStyles","daySelectedStyles","weekRowStyles","weekDayLabelCellStyles","weekNumberCellStyles","dayOutsideBoundsStyles","dayOutsideNavigatedMonthStyles","dayButtonStyles","dayIsTodayStyles","firstTransitionWeekStyles","lastTransitionWeekStyles","dayMarkerStyles","cornerBorderAndRadiusStyles","animateBackwards","animationDirection","mergeClasses","undefined","AnimationDirection","Horizontal"],"mappings":";;;;;;;;;;;IAQaA,yBAAyB;eAAzBA;;IAmBAC,8BAA8B;eAA9BA;;IAkXAC,iCA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AU,EAAEgI,iBAAiBxH,IAAI;QACpFP,qBAAqBsI,IAAAA,mBAAY,EAACpJ,0BAA0Bc,mBAAmB,EAAEgI,0BAA0BzH,IAAI,EAAE6H,qBAAqBG,aAAaF,uBAAuBG,iCAAkB,CAACC,UAAU,IAAI,CAACL,oBAAoBJ,0BAA0BxD,eAAe;QACzQvE,oBAAoBqI,IAAAA,mBAAY,EAACpJ,0BAA0Be,kBAAkB,EAAEgI,yBAAyB1H,IAAI,EAAE6H,qBAAqBG,aAAaF,uBAAuBG,iCAAkB,CAACC,UAAU,IAAIL,oBAAoBH,yBAAyB1D,gBAAgB;QACrQrE,WAAWoI,IAAAA,mBAAY,EAACpJ,0BAA0BgB,SAAS,EAAEgI,gBAAgB3H,IAAI;IACnF;AACF,GACA,2DAA2D"}
@@ -9,10 +9,14 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- weekCornersClassNames: ()=>weekCornersClassNames,
13
- useWeekCornerStyles: ()=>useWeekCornerStyles
12
+ weekCornersClassNames: function() {
13
+ return weekCornersClassNames;
14
+ },
15
+ useWeekCornerStyles: function() {
16
+ return useWeekCornerStyles;
17
+ }
14
18
  });
15
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
19
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
16
20
  const _react = require("@griffel/react");
17
21
  const _constants = require("../../utils/constants");
18
22
  const _index = require("../../utils/index");
@@ -23,7 +27,7 @@ const weekCornersClassNames = {
23
27
  bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate'
24
28
  };
25
29
  function useWeekCornerStyles(props) {
26
- const { dir } = (0, _reactSharedContexts.useFluent_unstable)();
30
+ const { dir } = (0, _reactsharedcontexts.useFluent_unstable)();
27
31
  /**
28
32
  *
29
33
  * Section for setting the rounded corner styles on individual day cells. Individual day cells need different
@@ -79,7 +83,7 @@ function useWeekCornerStyles(props) {
79
83
  return (0, _react.mergeClasses)(...style);
80
84
  };
81
85
  const isInSameHoverRange = (date1, date2, date1Selected, date2Selected)=>{
82
- const { dateRangeType , firstDayOfWeek , workWeekDays } = props;
86
+ const { dateRangeType, firstDayOfWeek, workWeekDays } = props;
83
87
  // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state
84
88
  const dateRangeHoverType = dateRangeType === _constants.DateRangeType.WorkWeek ? _constants.DateRangeType.Week : dateRangeType;
85
89
  // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver
@@ -1 +1 @@
1
- {"version":3,"sources":["useWeekCornerStyles.styles.js"],"sourcesContent":["import { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { mergeClasses } from '@griffel/react';\nimport { DateRangeType } from '../../utils/constants';\nimport { getDateRangeArray } from '../../utils/index';\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 * @internal\n */\nexport function useWeekCornerStyles(props) {\n const {\n dir\n } = useFluent_unstable();\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 => {\n const weekCornersStyled = {};\n /* need to handle setting all of the corners on arbitrarily shaped blobs\n __\n __|A |\n |B |C |__\n |D |E |F |\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 */ // cut off the animation transition weeks\n const weeks = initialWeeks.slice(1, initialWeeks.length - 1);\n // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.\n weeks.forEach((week, weekIndex) => {\n week.forEach((day, dayIndex) => {\n const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);\n const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);\n const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);\n const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);\n weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);\n });\n });\n return weekCornersStyled;\n };\n const calculateRoundedStyles = (above, below, left, right) => {\n const style = [];\n const roundedTopLeft = !above && !left;\n const roundedTopRight = !above && !right;\n const roundedBottomLeft = !below && !left;\n const roundedBottomRight = !below && !right;\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(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);\n }\n if (roundedBottomRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);\n }\n return mergeClasses(...style);\n };\n const isInSameHoverRange = (date1, date2, date1Selected, date2Selected) => {\n const {\n dateRangeType,\n firstDayOfWeek,\n workWeekDays\n } = props;\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 // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver\n const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);\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 // otherwise, both must be unselected, so check the dateRange\n return dateRange.filter(date => date.getTime() === date2.getTime()).length > 0;\n };\n return [getWeekCornerStyles, calculateRoundedStyles];\n}\n//# sourceMappingURL=useWeekCornerStyles.styles.js.map"],"names":["weekCornersClassNames","useWeekCornerStyles","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"],"mappings":";;;;;;;;;;;IAOaA,qBAAqB,MAArBA;IASGC,mBAAmB,MAAnBA;;qCAhBmB;uBACN;2BACC;uBACI;AAI3B,MAAMD,wBAAwB;IACnCE,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;AACxB;AAIO,SAASJ,oBAAoBK,KAAK,EAAE;IACzC,MAAM,EACJC,IAAG,EACJ,GAAGC,IAAAA,uCAAkB;IACtB;;;;;;;EAOA,GACA,MAAMC,sBAAsBC,CAAAA,eAAgB;QAC1C,MAAMC,oBAAoB,CAAC;QAC3B;;;;;;;;;;;IAWA,GAAG,yCAAyC;QAC5C,MAAMC,QAAQF,aAAaG,KAAK,CAAC,G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OAAQA,KAAKC,OAAO,OAAOd,MAAMc,OAAO,IAAIpC,MAAM,GAAG;IAC/E;IACA,OAAO;QAACL;QAAqBkB;KAAuB;AACtD,EACA,sDAAsD"}
1
+ {"version":3,"sources":["useWeekCornerStyles.styles.js"],"sourcesContent":["import { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { mergeClasses } from '@griffel/react';\nimport { DateRangeType } from '../../utils/constants';\nimport { getDateRangeArray } from '../../utils/index';\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 * @internal\n */\nexport function useWeekCornerStyles(props) {\n const {\n dir\n } = useFluent_unstable();\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 => {\n const weekCornersStyled = {};\n /* need to handle setting all of the corners on arbitrarily shaped blobs\n __\n __|A |\n |B |C |__\n |D |E |F |\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 */ // cut off the animation transition weeks\n const weeks = initialWeeks.slice(1, initialWeeks.length - 1);\n // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.\n weeks.forEach((week, weekIndex) => {\n week.forEach((day, dayIndex) => {\n const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);\n const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);\n const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);\n const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);\n weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);\n });\n });\n return weekCornersStyled;\n };\n const calculateRoundedStyles = (above, below, left, right) => {\n const style = [];\n const roundedTopLeft = !above && !left;\n const roundedTopRight = !above && !right;\n const roundedBottomLeft = !below && !left;\n const roundedBottomRight = !below && !right;\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(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);\n }\n if (roundedBottomRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);\n }\n return mergeClasses(...style);\n };\n const isInSameHoverRange = (date1, date2, date1Selected, date2Selected) => {\n const {\n dateRangeType,\n firstDayOfWeek,\n workWeekDays\n } = props;\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 // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver\n const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);\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 // otherwise, both must be unselected, so check the dateRange\n return dateRange.filter(date => date.getTime() === date2.getTime()).length > 0;\n };\n return [getWeekCornerStyles, calculateRoundedStyles];\n}\n//# sourceMappingURL=useWeekCornerStyles.styles.js.map"],"names":["weekCornersClassNames","useWeekCornerStyles","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"],"mappings":";;;;;;;;;;;IAOaA,qBAAqB;eAArBA;;IASGC,mBAAmB;eAAnBA;;;qCAhBmB;uBACN;2BACC;uBACI;AAI3B,MAAMD,wBAAwB;IACnCE,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;AACxB;AAIO,SAASJ,oBAAoBK,KAAK;IACvC,MAAM,EACJC,GAAG,EACJ,GAAGC,IAAAA,uCAAkB;IACtB;;;;;;;EAOA,GACA,MAAMC,sBAAsBC,CAAAA;QAC1B,MAAMC,oBAAoB,CAAC;QAC3B;;;;;;;;;;;IAWA,GAAG,yCAAyC;QAC5C,MAAMC,QAAQF,aAAaG,KAAK,CAAC,GAAGH,aAAaI,MAAM,GAAG;QAC1D,8FAA8F;QAC9FF,MAAMG,OAAO,CAAC,CAACC,MAAMC;YACnBD,KAAKD,OAAO,CAAC,CAACG,KAAKC;gBACjB,MAAMC,QAAQR,KAAK,CAACK,YAAY,EAAE,IAAIL,KAAK,CAACK,YAAY,E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B;YAClBD,MAAMK,IAAI,CAAC1B,QAAQ,QAAQP,sBAAsBE,kBAAkB,GAAGF,sBAAsBG,iBAAiB;QAC/G;QACA,IAAI2B,iBAAiB;YACnBF,MAAMK,IAAI,CAAC1B,QAAQ,QAAQP,sBAAsBG,iBAAiB,GAAGH,sBAAsBE,kBAAkB;QAC/G;QACA,IAAI6B,mBAAmB;YACrBH,MAAMK,IAAI,CAAC1B,QAAQ,QAAQP,sBAAsBI,qBAAqB,GAAGJ,sBAAsBK,oBAAoB;QACrH;QACA,IAAI2B,oBAAoB;YACtBJ,MAAMK,IAAI,CAAC1B,QAAQ,QAAQP,sBAAsBK,oBAAoB,GAAGL,sBAAsBI,qBAAqB;QACrH;QACA,OAAO8B,IAAAA,mBAAY,KAAIN;IACzB;IACA,MAAMP,qBAAqB,CAACc,OAAOC,OAAOC,eAAeC;QACvD,MAAM,EACJC,aAAa,EACbC,cAAc,EACdC,YAAY,EACb,GAAGnC;QACJ,8GAA8G;QAC9G,MAAMoC,qBAAqBH,kBAAkBI,wBAAa,CAACC,QAAQ,GAAGD,wBAAa,CAACE,IAAI,GAAGN;QAC3F,0GAA0G;QAC1G,MAAMO,YAAYC,IAAAA,wBAAiB,EAACZ,OAAOO,oBAAoBF,gBAAgBC;QAC/E,IAAIJ,kBAAkBC,eAAe;YACnC,2EAA2E;YAC3E,OAAO;QACT,OAAO,IAAID,iBAAiBC,eAAe;YACzC,2EAA2E;YAC3E,OAAO;QACT;QACA,6DAA6D;QAC7D,OAAOQ,UAAUE,MAAM,CAACC,CAAAA,OAAQA,KAAKC,OAAO,OAAOd,MAAMc,OAAO,IAAIpC,MAAM,GAAG;IAC/E;IACA,OAAO;QAACL;QAAqBkB;KAAuB;AACtD,EACA,sDAAsD"}
@@ -4,21 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useWeeks", {
6
6
  enumerable: true,
7
- get: ()=>useWeeks
7
+ get: function() {
8
+ return useWeeks;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
11
13
  const _index = require("../../utils/index");
12
14
  function useWeeks(props, onSelectDate, getSetRefCallback) {
13
15
  /**
14
16
  * Initial parsing of the given props to generate IDayInfo two dimensional array, which contains a representation
15
17
  * of every day in the grid. Convenient for helping with conversions between day refs and Date objects in callbacks.
16
18
  */ const weeks = _react.useMemo(()=>{
17
- var _props_getMarkedDays;
19
+ var _props_getMarkedDays, _props;
18
20
  const weeksGrid = (0, _index.getDayGrid)(props);
19
21
  const firstVisibleDay = weeksGrid[1][0].originalDate;
20
22
  const lastVisibleDay = weeksGrid[weeksGrid.length - 1][6].originalDate;
21
- const markedDays = ((_props_getMarkedDays = props.getMarkedDays) === null || _props_getMarkedDays === void 0 ? void 0 : _props_getMarkedDays.call(props, firstVisibleDay, lastVisibleDay)) || [];
23
+ const markedDays = ((_props_getMarkedDays = (_props = props).getMarkedDays) === null || _props_getMarkedDays === void 0 ? void 0 : _props_getMarkedDays.call(_props, firstVisibleDay, lastVisibleDay)) || [];
22
24
  /**
23
25
  * Weeks is a 2D array. Weeks[0] contains the last week of the prior range,
24
26
  * Weeks[weeks.length - 1] contains first week of next range. These are for transition states.
@@ -28,12 +30,13 @@ function useWeeks(props, onSelectDate, getSetRefCallback) {
28
30
  for(let weekIndex = 0; weekIndex < weeksGrid.length; weekIndex++){
29
31
  const week = [];
30
32
  for(let dayIndex = 0; dayIndex < _index.DAYS_IN_WEEK; dayIndex++){
33
+ var _markedDays;
31
34
  const day = weeksGrid[weekIndex][dayIndex];
32
35
  const dayInfo = {
33
36
  onSelected: ()=>onSelectDate(day.originalDate),
34
37
  setRef: getSetRefCallback(day.key),
35
38
  ...day,
36
- isMarked: day.isMarked || (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some((markedDay)=>(0, _index.compareDates)(day.originalDate, markedDay)))
39
+ isMarked: day.isMarked || ((_markedDays = markedDays) === null || _markedDays === void 0 ? void 0 : _markedDays.some((markedDay)=>(0, _index.compareDates)(day.originalDate, markedDay)))
37
40
  };
38
41
  week.push(dayInfo);
39
42
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["useWeeks.js"],"sourcesContent":["import * as React from 'react';\nimport { compareDates, DAYS_IN_WEEK, getDayGrid } from '../../utils/index';\n/**\n * @internal\n */ export function useWeeks(props, onSelectDate, getSetRefCallback) {\n /**\n * Initial parsing of the given props to generate IDayInfo two dimensional array, which contains a representation\n * of every day in the grid. Convenient for helping with conversions between day refs and Date objects in callbacks.\n */ const weeks = React.useMemo(()=>{\n var _props_getMarkedDays;\n const weeksGrid = getDayGrid(props);\n const firstVisibleDay = weeksGrid[1][0].originalDate;\n const lastVisibleDay = weeksGrid[weeksGrid.length - 1][6].originalDate;\n const markedDays = ((_props_getMarkedDays = props.getMarkedDays) === null || _props_getMarkedDays === void 0 ? void 0 : _props_getMarkedDays.call(props, firstVisibleDay, lastVisibleDay)) || [];\n /**\n * Weeks is a 2D array. Weeks[0] contains the last week of the prior range,\n * Weeks[weeks.length - 1] contains first week of next range. These are for transition states.\n *\n * Weeks[1... weeks.length - 2] contains the actual visible data\n */ const returnValue = [];\n for(let weekIndex = 0; weekIndex < weeksGrid.length; weekIndex++){\n const week = [];\n for(let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++){\n const day = weeksGrid[weekIndex][dayIndex];\n const dayInfo = {\n onSelected: ()=>onSelectDate(day.originalDate),\n setRef: getSetRefCallback(day.key),\n ...day,\n isMarked: day.isMarked || (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some((markedDay)=>compareDates(day.originalDate, markedDay)))\n };\n week.push(dayInfo);\n }\n returnValue.push(week);\n }\n return returnValue;\n // TODO: this is missing deps on getSetRefCallback and onSelectDate (and depending on the entire\n // props object may not be a good idea due to likely frequent mutation). It would be easy to\n // fix getSetRefCallback to not mutate every render, but onSelectDate is passed down from\n // Calendar and trying to fix it requires a huge cascade of changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n props\n ]);\n return weeks;\n}\n"],"names":["useWeeks","props","onSelectDate","getSetRefCallback","weeks","React","useMemo","_props_getMarkedDays","weeksGrid","getDayGrid","firstVisibleDay","originalDate","lastVisibleDay","length","markedDays","getMarkedDays","call","returnValue","weekIndex","week","dayIndex","DAYS_IN_WEEK","day","dayInfo","onSelected","setRef","key","isMarked","some","markedDay","compareDates","push"],"mappings":";;;;+BAIoBA;;aAAAA;;;6DAJG;uBACgC;AAG5C,SAASA,SAASC,KAAK,EAAEC,YAAY,EAAEC,iBAAiB,EAAE;IACjE;;;GAGD,GAAG,MAAMC,QAAQC,OAAMC,OAAO,CAAC,IAAI;QAC9B,IAAIC;QACJ,MAAMC,YAAYC,IAAAA,iBAAU,EAACR;QAC7B,MAAMS,kBAAkBF,SAAS,CAAC,EAAE,CAAC,EAAE,CAACG,YAAY;QACpD,MAAMC,iBAAiBJ,SAAS,CAACA,UAAUK,MAAM,GAAG,EAAE,CAAC,EAAE,CAACF,YAAY;QACtE,MAAMG,aAAa,AAAC,CAAA,AAACP,CAAAA,uBAAuBN,MAAMc,aAAa,AAAD,MAAO,IAAI,IAAIR,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBS,IAAI,CAACf,OAAOS,iBAAiBE,eAAe,AAAD,KAAM,EAAE;QAChM;;;;;KAKH,GAAG,MAAMK,cAAc,EAAE;QACtB,IAAI,IAAIC,YAAY,GAAGA,YAAYV,UAAUK,MAAM,EAAEK,YAAY;YAC7D,MAAMC,OAAO,EAAE;YACf,IAAI,IAAIC,WAAW,GAAGA,WAAWC,mBAAY,EAAED,WAAW;gBACtD,MAAME,MAAMd,SAAS,CAACU,UAAU,CAACE,SAAS;gBAC1C,MAAMG,UAAU;oBACZC,YAAY,IAAItB,aAAaoB,IAAIX,YAAY;oBAC7Cc,QAAQtB,kBAAkBmB,IAAII,GAAG;oBACjC,GAAGJ,GAAG;oBACNK,UAAUL,IAAIK,QAAQ,IAAKb,CAAAA,eAAe,IAAI,IAAIA,eAAe,KAAK,IAAI,KAAK,IAAIA,WAAWc,IAAI,CAAC,CAACC,YAAYC,IAAAA,mBAAY,EAACR,IAAIX,YAAY,EAAEkB,WAAW,AAAD;gBAC7J;gBACAV,KAAKY,IAAI,CAACR;YACd;YACAN,YAAYc,IAAI,CAACZ;QACrB;QACA,OAAOF;IACX,gGAAgG;IAChG,4FAA4F;IAC5F,yFAAyF;IACzF,oEAAoE;IACpE,uDAAuD;IACvD,GAAG;QACChB;KACH;IACD,OAAOG;AACX"}
1
+ {"version":3,"sources":["useWeeks.js"],"sourcesContent":["import * as React from 'react';\nimport { compareDates, DAYS_IN_WEEK, getDayGrid } from '../../utils/index';\n/**\n * @internal\n */ export function useWeeks(props, onSelectDate, getSetRefCallback) {\n /**\n * Initial parsing of the given props to generate IDayInfo two dimensional array, which contains a representation\n * of every day in the grid. Convenient for helping with conversions between day refs and Date objects in callbacks.\n */ const weeks = React.useMemo(()=>{\n var _props_getMarkedDays, _props;\n const weeksGrid = getDayGrid(props);\n const firstVisibleDay = weeksGrid[1][0].originalDate;\n const lastVisibleDay = weeksGrid[weeksGrid.length - 1][6].originalDate;\n const markedDays = ((_props_getMarkedDays = (_props = props).getMarkedDays) === null || _props_getMarkedDays === void 0 ? void 0 : _props_getMarkedDays.call(_props, firstVisibleDay, lastVisibleDay)) || [];\n /**\n * Weeks is a 2D array. Weeks[0] contains the last week of the prior range,\n * Weeks[weeks.length - 1] contains first week of next range. These are for transition states.\n *\n * Weeks[1... weeks.length - 2] contains the actual visible data\n */ const returnValue = [];\n for(let weekIndex = 0; weekIndex < weeksGrid.length; weekIndex++){\n const week = [];\n for(let dayIndex = 0; dayIndex < DAYS_IN_WEEK; dayIndex++){\n var _markedDays;\n const day = weeksGrid[weekIndex][dayIndex];\n const dayInfo = {\n onSelected: ()=>onSelectDate(day.originalDate),\n setRef: getSetRefCallback(day.key),\n ...day,\n isMarked: day.isMarked || ((_markedDays = markedDays) === null || _markedDays === void 0 ? void 0 : _markedDays.some((markedDay)=>compareDates(day.originalDate, markedDay)))\n };\n week.push(dayInfo);\n }\n returnValue.push(week);\n }\n return returnValue;\n // TODO: this is missing deps on getSetRefCallback and onSelectDate (and depending on the entire\n // props object may not be a good idea due to likely frequent mutation). It would be easy to\n // fix getSetRefCallback to not mutate every render, but onSelectDate is passed down from\n // Calendar and trying to fix it requires a huge cascade of changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n props\n ]);\n return weeks;\n}\n"],"names":["useWeeks","props","onSelectDate","getSetRefCallback","weeks","React","useMemo","_props_getMarkedDays","_props","weeksGrid","getDayGrid","firstVisibleDay","originalDate","lastVisibleDay","length","markedDays","getMarkedDays","call","returnValue","weekIndex","week","dayIndex","DAYS_IN_WEEK","_markedDays","day","dayInfo","onSelected","setRef","key","isMarked","some","markedDay","compareDates","push"],"mappings":";;;;+BAIoBA;;;eAAAA;;;;iEAJG;uBACgC;AAG5C,SAASA,SAASC,KAAK,EAAEC,YAAY,EAAEC,iBAAiB;IAC/D;;;GAGD,GAAG,MAAMC,QAAQC,OAAMC,OAAO,CAAC;QAC1B,IAAIC,sBAAsBC;QAC1B,MAAMC,YAAYC,IAAAA,iBAAU,EAACT;QAC7B,MAAMU,kBAAkBF,SAAS,CAAC,EAAE,CAAC,EAAE,CAACG,YAAY;QACpD,MAAMC,iBAAiBJ,SAAS,CAACA,UAAUK,MAAM,GAAG,EAAE,CAAC,EAAE,CAACF,YAAY;QACtE,MAAMG,aAAa,AAAC,CAAA,AAACR,CAAAA,uBAAuB,AAACC,CAAAA,SAASP,KAAI,EAAGe,aAAa,AAAD,MAAO,QAAQT,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBU,IAAI,CAACT,QAAQG,iBAAiBE,eAAc,KAAM,EAAE;QAC5M;;;;;KAKH,GAAG,MAAMK,cAAc,EAAE;QACtB,IAAI,IAAIC,YAAY,GAAGA,YAAYV,UAAUK,MAAM,EAAEK,YAAY;YAC7D,MAAMC,OAAO,EAAE;YACf,IAAI,IAAIC,WAAW,GAAGA,WAAWC,mBAAY,EAAED,WAAW;gBACtD,IAAIE;gBACJ,MAAMC,MAAMf,SAAS,CAACU,UAAU,CAACE,SAAS;gBAC1C,MAAMI,UAAU;oBACZC,YAAY,IAAIxB,aAAasB,IAAIZ,YAAY;oBAC7Ce,QAAQxB,kBAAkBqB,IAAII,GAAG;oBACjC,GAAGJ,GAAG;oBACNK,UAAUL,IAAIK,QAAQ,IAAK,CAAA,AAACN,CAAAA,cAAcR,UAAS,MAAO,QAAQQ,gBAAgB,KAAK,IAAI,KAAK,IAAIA,YAAYO,IAAI,CAAC,CAACC,YAAYC,IAAAA,mBAAY,EAACR,IAAIZ,YAAY,EAAEmB,WAAU;gBAC/K;gBACAX,KAAKa,IAAI,CAACR;YACd;YACAP,YAAYe,IAAI,CAACb;QACrB;QACA,OAAOF;IACX,gGAAgG;IAChG,4FAA4F;IAC5F,yFAAyF;IACzF,oEAAoE;IACpE,uDAAuD;IACvD,GAAG;QACCjB;KACH;IACD,OAAOG;AACX"}
@@ -4,20 +4,22 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "CalendarMonth", {
6
6
  enumerable: true,
7
- get: ()=>CalendarMonth
7
+ get: function() {
8
+ return CalendarMonth;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
- const _keyboardKeys = require("@fluentui/keyboard-keys");
12
- const _reactIcons = require("@fluentui/react-icons");
13
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
14
- const _reactTabster = require("@fluentui/react-tabster");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _keyboardkeys = require("@fluentui/keyboard-keys");
14
+ const _reacticons = require("@fluentui/react-icons");
15
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
16
+ const _reacttabster = require("@fluentui/react-tabster");
15
17
  const _react1 = require("@griffel/react");
16
18
  const _utils = require("../../utils");
17
- const _calendarYear = require("../CalendarYear/CalendarYear");
19
+ const _CalendarYear = require("../CalendarYear/CalendarYear");
18
20
  const _useCalendarMonthStyles = require("./useCalendarMonthStyles");
19
21
  const MONTHS_PER_ROW = 4;
20
- function useAnimateBackwards({ navigatedDate }) {
22
+ function useAnimateBackwards({ navigatedDate }) {
21
23
  const currentYear = navigatedDate.getFullYear();
22
24
  const previousYearRef = _react.useRef();
23
25
  _react.useEffect(()=>{
@@ -30,7 +32,7 @@ function useAnimateBackwards({ navigatedDate }) {
30
32
  return previousYear > currentYear;
31
33
  }
32
34
  }
33
- function useFocusLogic({ componentRef }) {
35
+ function useFocusLogic({ componentRef }) {
34
36
  const navigatedMonthRef = _react.useRef(null);
35
37
  const calendarYearRef = _react.useRef(null);
36
38
  const focusOnUpdate = _react.useRef(false);
@@ -62,7 +64,7 @@ function useFocusLogic({ componentRef }) {
62
64
  ];
63
65
  }
64
66
  const CalendarMonth = (props)=>{
65
- const { allFocusable , animationDirection , className , componentRef , dateTimeFormatter =_utils.DEFAULT_DATE_FORMATTING , highlightCurrentMonth , highlightSelectedMonth , maxDate , minDate , navigatedDate , onHeaderSelect: onUserHeaderSelect , onNavigateDate , selectedDate , strings , today =new Date() , yearPickerHidden =false } = props;
67
+ const { allFocusable, animationDirection, className, componentRef, dateTimeFormatter = _utils.DEFAULT_DATE_FORMATTING, highlightCurrentMonth, highlightSelectedMonth, maxDate, minDate, navigatedDate, onHeaderSelect: onUserHeaderSelect, onNavigateDate, selectedDate, strings, today = new Date(), yearPickerHidden = false } = props;
66
68
  const [navigatedMonthRef, calendarYearRef, focusOnNextUpdate] = useFocusLogic({
67
69
  componentRef
68
70
  });
@@ -80,8 +82,8 @@ const CalendarMonth = (props)=>{
80
82
  onNavigateDate((0, _utils.addYears)(navigatedDate, -1), false);
81
83
  };
82
84
  const onSelectMonth = (newMonth)=>{
83
- // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked
84
- onUserHeaderSelect === null || onUserHeaderSelect === void 0 ? void 0 : onUserHeaderSelect();
85
+ var _onUserHeaderSelect;
86
+ (_onUserHeaderSelect = onUserHeaderSelect) === null || _onUserHeaderSelect === void 0 ? void 0 : _onUserHeaderSelect();
85
87
  onNavigateDate((0, _utils.setMonth)(navigatedDate, newMonth), true);
86
88
  };
87
89
  const onHeaderSelect = ()=>{
@@ -89,7 +91,8 @@ const CalendarMonth = (props)=>{
89
91
  focusOnNextUpdate();
90
92
  setIsYearPickerVisible(true);
91
93
  } else {
92
- onUserHeaderSelect === null || onUserHeaderSelect === void 0 ? void 0 : onUserHeaderSelect();
94
+ var _onUserHeaderSelect;
95
+ (_onUserHeaderSelect = onUserHeaderSelect) === null || _onUserHeaderSelect === void 0 ? void 0 : _onUserHeaderSelect();
93
96
  }
94
97
  };
95
98
  const onSelectYear = (selectedYear)=>{
@@ -125,8 +128,8 @@ const CalendarMonth = (props)=>{
125
128
  animateBackwards,
126
129
  animationDirection
127
130
  });
128
- const { dir } = (0, _reactSharedContexts.useFluent_unstable)();
129
- const arrowNavigationAttributes = (0, _reactTabster.useArrowNavigationGroup)({
131
+ const { dir } = (0, _reactsharedcontexts.useFluent_unstable)();
132
+ const arrowNavigationAttributes = (0, _reacttabster.useArrowNavigationGroup)({
130
133
  axis: 'both'
131
134
  });
132
135
  if (isYearPickerVisible) {
@@ -136,7 +139,7 @@ const CalendarMonth = (props)=>{
136
139
  strings
137
140
  });
138
141
  // use navigated date for the year picker
139
- return /*#__PURE__*/ _react.createElement(_calendarYear.CalendarYear, {
142
+ return /*#__PURE__*/ _react.createElement(_CalendarYear.CalendarYear, {
140
143
  key: 'calendarYear',
141
144
  minYear: minDate ? minDate.getFullYear() : undefined,
142
145
  maxYear: maxDate ? maxDate.getFullYear() : undefined,
@@ -184,7 +187,7 @@ const CalendarMonth = (props)=>{
184
187
  onKeyDown: isPrevYearInBounds ? onButtonKeyDown(onSelectPrevYear) : undefined,
185
188
  title: strings.prevYearAriaLabel ? strings.prevYearAriaLabel + ' ' + dateFormatter.formatYear((0, _utils.addYears)(navigatedDate, -1)) : undefined,
186
189
  type: "button"
187
- }, dir === 'ltr' ? /*#__PURE__*/ _react.createElement(_reactIcons.ArrowUpRegular, null) : /*#__PURE__*/ _react.createElement(_reactIcons.ArrowDownRegular, null)), /*#__PURE__*/ _react.createElement("button", {
190
+ }, dir === 'ltr' ? /*#__PURE__*/ _react.createElement(_reacticons.ArrowUpRegular, null) : /*#__PURE__*/ _react.createElement(_reacticons.ArrowDownRegular, null)), /*#__PURE__*/ _react.createElement("button", {
188
191
  className: (0, _react1.mergeClasses)(classNames.navigationButton, !isNextYearInBounds && classNames.disabled),
189
192
  "aria-disabled": !isNextYearInBounds,
190
193
  tabIndex: isNextYearInBounds ? undefined : allFocusable ? 0 : -1,
@@ -192,7 +195,7 @@ const CalendarMonth = (props)=>{
192
195
  onKeyDown: isNextYearInBounds ? onButtonKeyDown(onSelectNextYear) : undefined,
193
196
  title: strings.nextYearAriaLabel ? strings.nextYearAriaLabel + ' ' + dateFormatter.formatYear((0, _utils.addYears)(navigatedDate, 1)) : undefined,
194
197
  type: "button"
195
- }, dir === 'ltr' ? /*#__PURE__*/ _react.createElement(_reactIcons.ArrowDownRegular, null) : /*#__PURE__*/ _react.createElement(_reactIcons.ArrowUpRegular, null)))), /*#__PURE__*/ _react.createElement("div", {
198
+ }, dir === 'ltr' ? /*#__PURE__*/ _react.createElement(_reacticons.ArrowDownRegular, null) : /*#__PURE__*/ _react.createElement(_reacticons.ArrowUpRegular, null)))), /*#__PURE__*/ _react.createElement("div", {
196
199
  ...arrowNavigationAttributes,
197
200
  className: classNames.gridContainer,
198
201
  role: "grid",
@@ -227,7 +230,7 @@ const CalendarMonth = (props)=>{
227
230
  })));
228
231
  };
229
232
  CalendarMonth.displayName = 'CalendarMonth';
230
- function getYearStrings({ dateTimeFormatter , navigatedDate , strings }) {
233
+ function getYearStrings({ dateTimeFormatter, navigatedDate, strings }) {
231
234
  const yearToString = (year)=>{
232
235
  if (dateTimeFormatter) {
233
236
  // create a date based on the current nav date
@@ -262,7 +265,7 @@ function isCurrentMonth(month, year, today) {
262
265
  function onButtonKeyDown(callback) {
263
266
  return (ev)=>{
264
267
  switch(ev.key){
265
- case _keyboardKeys.Enter:
268
+ case _keyboardkeys.Enter:
266
269
  callback();
267
270
  break;
268
271
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["CalendarMonth.js"],"sourcesContent":["import * as React from 'react';\nimport { Enter } from '@fluentui/keyboard-keys';\nimport { ArrowDownRegular, ArrowUpRegular } from '@fluentui/react-icons';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { mergeClasses } from '@griffel/react';\nimport { addYears, compareDatePart, getMonthEnd, getMonthStart, getYearEnd, getYearStart, setMonth, DEFAULT_DATE_FORMATTING } from '../../utils';\nimport { CalendarYear } from '../CalendarYear/CalendarYear';\nimport { useCalendarMonthStyles_unstable } from './useCalendarMonthStyles';\nconst MONTHS_PER_ROW = 4;\nfunction useAnimateBackwards({ navigatedDate }) {\n const currentYear = navigatedDate.getFullYear();\n const previousYearRef = React.useRef();\n React.useEffect(()=>{\n previousYearRef.current = currentYear;\n });\n const previousYear = previousYearRef.current;\n if (previousYear === undefined || previousYear === currentYear) {\n return undefined;\n } else {\n return previousYear > currentYear;\n }\n}\nfunction useFocusLogic({ componentRef }) {\n const navigatedMonthRef = React.useRef(null);\n const calendarYearRef = React.useRef(null);\n const focusOnUpdate = React.useRef(false);\n const focus = React.useCallback(()=>{\n if (calendarYearRef.current) {\n calendarYearRef.current.focus();\n } else if (navigatedMonthRef.current) {\n navigatedMonthRef.current.focus();\n }\n }, []);\n React.useImperativeHandle(componentRef, ()=>({\n focus\n }), [\n focus\n ]);\n React.useEffect(()=>{\n if (focusOnUpdate.current) {\n focus();\n focusOnUpdate.current = false;\n }\n });\n const focusOnNextUpdate = ()=>{\n focusOnUpdate.current = true;\n };\n return [\n navigatedMonthRef,\n calendarYearRef,\n focusOnNextUpdate\n ];\n}\n/**\n * @internal\n */ export const CalendarMonth = (props)=>{\n const { allFocusable , animationDirection , className , componentRef , dateTimeFormatter =DEFAULT_DATE_FORMATTING , highlightCurrentMonth , highlightSelectedMonth , maxDate , minDate , navigatedDate , onHeaderSelect: onUserHeaderSelect , onNavigateDate , selectedDate , strings , today =new Date() , yearPickerHidden =false } = props;\n const [navigatedMonthRef, calendarYearRef, focusOnNextUpdate] = useFocusLogic({\n componentRef\n });\n const [isYearPickerVisible, setIsYearPickerVisible] = React.useState(false);\n const animateBackwards = useAnimateBackwards({\n navigatedDate\n });\n const selectMonthCallback = (newMonth)=>{\n return ()=>onSelectMonth(newMonth);\n };\n const onSelectNextYear = ()=>{\n onNavigateDate(addYears(navigatedDate, 1), false);\n };\n const onSelectPrevYear = ()=>{\n onNavigateDate(addYears(navigatedDate, -1), false);\n };\n const onSelectMonth = (newMonth)=>{\n // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked\n onUserHeaderSelect === null || onUserHeaderSelect === void 0 ? void 0 : onUserHeaderSelect();\n onNavigateDate(setMonth(navigatedDate, newMonth), true);\n };\n const onHeaderSelect = ()=>{\n if (!yearPickerHidden) {\n focusOnNextUpdate();\n setIsYearPickerVisible(true);\n } else {\n onUserHeaderSelect === null || onUserHeaderSelect === void 0 ? void 0 : onUserHeaderSelect();\n }\n };\n const onSelectYear = (selectedYear)=>{\n focusOnNextUpdate();\n const navYear = navigatedDate.getFullYear();\n if (navYear !== selectedYear) {\n let newNavigationDate = new Date(navigatedDate.getTime());\n newNavigationDate.setFullYear(selectedYear);\n // for min and max dates, adjust the new navigation date - perhaps this should be\n // checked on the master navigation date handler (i.e. in Calendar)\n if (maxDate && newNavigationDate > maxDate) {\n newNavigationDate = setMonth(newNavigationDate, maxDate.getMonth());\n } else if (minDate && newNavigationDate < minDate) {\n newNavigationDate = setMonth(newNavigationDate, minDate.getMonth());\n }\n onNavigateDate(newNavigationDate, true);\n }\n setIsYearPickerVisible(false);\n };\n const onYearPickerHeaderSelect = (focus)=>{\n focusOnNextUpdate();\n setIsYearPickerVisible(false);\n };\n const dateFormatter = dateTimeFormatter;\n // determine if previous/next years are in bounds\n const isPrevYearInBounds = minDate ? compareDatePart(minDate, getYearStart(navigatedDate)) < 0 : true;\n const isNextYearInBounds = maxDate ? compareDatePart(getYearEnd(navigatedDate), maxDate) < 0 : true;\n const classNames = useCalendarMonthStyles_unstable({\n className,\n hasHeaderClickCallback: !!onUserHeaderSelect || !yearPickerHidden,\n highlightCurrent: highlightCurrentMonth,\n highlightSelected: highlightSelectedMonth,\n animateBackwards,\n animationDirection\n });\n const { dir } = useFluent_unstable();\n const arrowNavigationAttributes = useArrowNavigationGroup({\n axis: 'both'\n });\n if (isYearPickerVisible) {\n const [onRenderYear, yearStrings] = getYearStrings({\n dateTimeFormatter,\n navigatedDate,\n strings\n });\n // use navigated date for the year picker\n return /*#__PURE__*/ React.createElement(CalendarYear, {\n key: 'calendarYear',\n minYear: minDate ? minDate.getFullYear() : undefined,\n maxYear: maxDate ? maxDate.getFullYear() : undefined,\n // eslint-disable-next-line react/jsx-no-bind\n onSelectYear: onSelectYear,\n // eslint-disable-next-line react/jsx-no-bind\n onHeaderSelect: onYearPickerHeaderSelect,\n selectedYear: selectedDate ? selectedDate.getFullYear() : navigatedDate ? navigatedDate.getFullYear() : undefined,\n navigatedYear: navigatedDate.getFullYear(),\n onRenderYear: onRenderYear,\n strings: yearStrings,\n componentRef: calendarYearRef,\n highlightCurrentYear: highlightCurrentMonth,\n highlightSelectedYear: highlightSelectedMonth,\n animationDirection: animationDirection\n });\n }\n const rowIndexes = [];\n for(let i = 0; i < strings.shortMonths.length / MONTHS_PER_ROW; i++){\n rowIndexes.push(i);\n }\n const yearString = dateFormatter.formatYear(navigatedDate);\n const headerAriaLabel = strings.monthPickerHeaderAriaLabel ? strings.monthPickerHeaderAriaLabel.replace('{0}', yearString) : yearString;\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.root\n }, /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.headerContainer\n }, /*#__PURE__*/ React.createElement(\"button\", {\n className: classNames.currentItemButton,\n onClick: onHeaderSelect,\n onKeyDown: onButtonKeyDown(onHeaderSelect),\n \"aria-label\": headerAriaLabel,\n tabIndex: !!onUserHeaderSelect || !yearPickerHidden ? 0 : -1,\n type: \"button\"\n }, /*#__PURE__*/ React.createElement(\"span\", {\n \"aria-live\": \"polite\",\n \"aria-atomic\": \"true\"\n }, yearString)), /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.navigationButtonsContainer\n }, /*#__PURE__*/ React.createElement(\"button\", {\n className: mergeClasses(classNames.navigationButton, !isPrevYearInBounds && classNames.disabled),\n \"aria-disabled\": !isPrevYearInBounds,\n tabIndex: isPrevYearInBounds ? undefined : allFocusable ? 0 : -1,\n onClick: isPrevYearInBounds ? onSelectPrevYear : undefined,\n onKeyDown: isPrevYearInBounds ? onButtonKeyDown(onSelectPrevYear) : undefined,\n title: strings.prevYearAriaLabel ? strings.prevYearAriaLabel + ' ' + dateFormatter.formatYear(addYears(navigatedDate, -1)) : undefined,\n type: \"button\"\n }, dir === 'ltr' ? /*#__PURE__*/ React.createElement(ArrowUpRegular, null) : /*#__PURE__*/ React.createElement(ArrowDownRegular, null)), /*#__PURE__*/ React.createElement(\"button\", {\n className: mergeClasses(classNames.navigationButton, !isNextYearInBounds && classNames.disabled),\n \"aria-disabled\": !isNextYearInBounds,\n tabIndex: isNextYearInBounds ? undefined : allFocusable ? 0 : -1,\n onClick: isNextYearInBounds ? onSelectNextYear : undefined,\n onKeyDown: isNextYearInBounds ? onButtonKeyDown(onSelectNextYear) : undefined,\n title: strings.nextYearAriaLabel ? strings.nextYearAriaLabel + ' ' + dateFormatter.formatYear(addYears(navigatedDate, 1)) : undefined,\n type: \"button\"\n }, dir === 'ltr' ? /*#__PURE__*/ React.createElement(ArrowDownRegular, null) : /*#__PURE__*/ React.createElement(ArrowUpRegular, null)))), /*#__PURE__*/ React.createElement(\"div\", {\n ...arrowNavigationAttributes,\n className: classNames.gridContainer,\n role: \"grid\",\n \"aria-label\": yearString\n }, rowIndexes.map((rowNum)=>{\n const monthsForRow = strings.shortMonths.slice(rowNum * MONTHS_PER_ROW, (rowNum + 1) * MONTHS_PER_ROW);\n return /*#__PURE__*/ React.createElement(\"div\", {\n key: 'monthRow_' + rowNum + navigatedDate.getFullYear(),\n role: \"row\",\n className: classNames.buttonRow\n }, monthsForRow.map((month, index)=>{\n const monthIndex = rowNum * MONTHS_PER_ROW + index;\n const indexedMonth = setMonth(navigatedDate, monthIndex);\n const isNavigatedMonth = navigatedDate.getMonth() === monthIndex;\n const isSelectedMonth = selectedDate.getMonth() === monthIndex;\n const isSelectedYear = selectedDate.getFullYear() === navigatedDate.getFullYear();\n const isInBounds = (minDate ? compareDatePart(minDate, getMonthEnd(indexedMonth)) < 1 : true) && (maxDate ? compareDatePart(getMonthStart(indexedMonth), maxDate) < 1 : true);\n return /*#__PURE__*/ React.createElement(\"button\", {\n ref: isNavigatedMonth ? navigatedMonthRef : undefined,\n role: 'gridcell',\n className: mergeClasses(classNames.itemButton, highlightCurrentMonth && isCurrentMonth(monthIndex, navigatedDate.getFullYear(), today) && classNames.current, highlightSelectedMonth && isSelectedMonth && isSelectedYear && classNames.selected, !isInBounds && classNames.disabled),\n disabled: !allFocusable && !isInBounds,\n key: monthIndex,\n onClick: isInBounds ? selectMonthCallback(monthIndex) : undefined,\n onKeyDown: isInBounds ? onButtonKeyDown(selectMonthCallback(monthIndex)) : undefined,\n \"aria-label\": dateFormatter.formatMonth(indexedMonth, strings),\n \"aria-selected\": isNavigatedMonth,\n tabIndex: isInBounds ? 0 : -1,\n type: \"button\"\n }, month);\n }));\n })));\n};\nCalendarMonth.displayName = 'CalendarMonth';\nfunction getYearStrings({ dateTimeFormatter , navigatedDate , strings }) {\n const yearToString = (year)=>{\n if (dateTimeFormatter) {\n // create a date based on the current nav date\n const yearFormattingDate = new Date(navigatedDate.getTime());\n yearFormattingDate.setFullYear(year);\n return dateTimeFormatter.formatYear(yearFormattingDate);\n }\n return String(year);\n };\n const yearRangeToString = (yearRange)=>{\n return `${yearToString(yearRange.fromYear)} - ${yearToString(yearRange.toYear)}`;\n };\n const yearRangeToNextDecadeLabel = (yearRange)=>{\n return strings.nextYearRangeAriaLabel ? `${strings.nextYearRangeAriaLabel} ${yearRangeToString(yearRange)}` : '';\n };\n const yearRangeToPrevDecadeLabel = (yearRange)=>{\n return strings.prevYearRangeAriaLabel ? `${strings.prevYearRangeAriaLabel} ${yearRangeToString(yearRange)}` : '';\n };\n return [\n yearToString,\n {\n rangeAriaLabel: yearRangeToString,\n prevRangeAriaLabel: yearRangeToPrevDecadeLabel,\n nextRangeAriaLabel: yearRangeToNextDecadeLabel,\n headerAriaLabelFormatString: strings.yearPickerHeaderAriaLabel\n }\n ];\n}\nfunction isCurrentMonth(month, year, today) {\n return today.getFullYear() === year && today.getMonth() === month;\n}\nfunction onButtonKeyDown(callback) {\n return (ev)=>{\n switch(ev.key){\n case Enter:\n callback();\n break;\n }\n };\n}\n"],"names":["CalendarMonth","MONTHS_PER_ROW","useAnimateBackwards","navigatedDate","currentYear","getFullYear","previousYearRef","React","useRef","useEffect","current","previousYear","undefined","useFocusLogic","componentRef","navigatedMonthRef","calendarYearRef","focusOnUpdate","focus","useCallback","useImperativeHandle","focusOnNextUpdate","props","allFocusable","animationDirection","className","dateTimeFormatter","DEFAULT_DATE_FORMATTING","highlightCurrentMonth","highlightSelectedMonth","maxDate","minDate","onHeaderSelect","onUserHeaderSelect","onNavigateDate","selectedDate","strings","today","Date","yearPickerHidden","isYearPickerVisible","setIsYearPickerVisible","useState","animateBackwards","selectMonthCallback","newMonth","onSelectMonth","onSelectNextYear","addYears","onSelectPrevYear","setMonth","onSelectYear","selectedYear","navYear","newNavigationDate","getTime","setFullYear","getMonth","onYearPickerHeaderSelect","dateFormatter","isPrevYearInBounds","compareDatePart","getYearStart","isNextYearInBounds","getYearEnd","classNames","useCalendarMonthStyles_unstable","hasHeaderClickCallback","highlightCurrent","highlightSelected","dir","useFluent_unstable","arrowNavigationAttributes","useArrowNavigationGroup","axis","onRenderYear","yearStrings","getYearStrings","createElement","CalendarYear","key","minYear","maxYear","navigatedYear","highlightCurrentYear","highlightSelectedYear","rowIndexes","i","shortMonths","length","push","yearString","formatYear","headerAriaLabel","monthPickerHeaderAriaLabel","replace","root","headerContainer","currentItemButton","onClick","onKeyDown","onButtonKeyDown","tabIndex","type","navigationButtonsContainer","mergeClasses","navigationButton","disabled","title","prevYearAriaLabel","ArrowUpRegular","ArrowDownRegular","nextYearAriaLabel","gridContainer","role","map","rowNum","monthsForRow","slice","buttonRow","month","index","monthIndex","indexedMonth","isNavigatedMonth","isSelectedMonth","isSelectedYear","isInBounds","getMonthEnd","getMonthStart","ref","itemButton","isCurrentMonth","selected","formatMonth","displayName","yearToString","year","yearFormattingDate","String","yearRangeToString","yearRange","fromYear","toYear","yearRangeToNextDecadeLabel","nextYearRangeAriaLabel","yearRangeToPrevDecadeLabel","prevYearRangeAriaLabel","rangeAriaLabel","prevRangeAriaLabel","nextRangeAriaLabel","headerAriaLabelFormatString","yearPickerHeaderAriaLabel","callback","ev","Enter"],"mappings":";;;;+BAwDiBA;;aAAAA;;;6DAxDM;8BACD;4BAC2B;qCACd;8BACK;wBACX;uBACsG;8BACtG;wCACmB;AAChD,MAAMC,iBAAiB;AACvB,SAASC,oBAAoB,EAAEC,cAAa,EAAG,EAAE;IAC7C,MAAMC,cAAcD,cAAcE,WAAW;IAC7C,MAAMC,kBAAkBC,OAAMC,MAAM;IACpCD,OAAME,SAAS,CAAC,IA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GAAG;YACT,KAAK2E,mBAAK;gBACNF;gBACA,KAAM;QACd;IACJ;AACJ"}
1
+ {"version":3,"sources":["CalendarMonth.js"],"sourcesContent":["import * as React from 'react';\nimport { Enter } from '@fluentui/keyboard-keys';\nimport { ArrowDownRegular, ArrowUpRegular } from '@fluentui/react-icons';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport { mergeClasses } from '@griffel/react';\nimport { addYears, compareDatePart, getMonthEnd, getMonthStart, getYearEnd, getYearStart, setMonth, DEFAULT_DATE_FORMATTING } from '../../utils';\nimport { CalendarYear } from '../CalendarYear/CalendarYear';\nimport { useCalendarMonthStyles_unstable } from './useCalendarMonthStyles';\nconst MONTHS_PER_ROW = 4;\nfunction useAnimateBackwards({ navigatedDate }) {\n const currentYear = navigatedDate.getFullYear();\n const previousYearRef = React.useRef();\n React.useEffect(()=>{\n previousYearRef.current = currentYear;\n });\n const previousYear = previousYearRef.current;\n if (previousYear === undefined || previousYear === currentYear) {\n return undefined;\n } else {\n return previousYear > currentYear;\n }\n}\nfunction useFocusLogic({ componentRef }) {\n const navigatedMonthRef = React.useRef(null);\n const calendarYearRef = React.useRef(null);\n const focusOnUpdate = React.useRef(false);\n const focus = React.useCallback(()=>{\n if (calendarYearRef.current) {\n calendarYearRef.current.focus();\n } else if (navigatedMonthRef.current) {\n navigatedMonthRef.current.focus();\n }\n }, []);\n React.useImperativeHandle(componentRef, ()=>({\n focus\n }), [\n focus\n ]);\n React.useEffect(()=>{\n if (focusOnUpdate.current) {\n focus();\n focusOnUpdate.current = false;\n }\n });\n const focusOnNextUpdate = ()=>{\n focusOnUpdate.current = true;\n };\n return [\n navigatedMonthRef,\n calendarYearRef,\n focusOnNextUpdate\n ];\n}\n/**\n * @internal\n */ export const CalendarMonth = (props)=>{\n const { allFocusable, animationDirection, className, componentRef, dateTimeFormatter = DEFAULT_DATE_FORMATTING, highlightCurrentMonth, highlightSelectedMonth, maxDate, minDate, navigatedDate, onHeaderSelect: onUserHeaderSelect, onNavigateDate, selectedDate, strings, today = new Date(), yearPickerHidden = false } = props;\n const [navigatedMonthRef, calendarYearRef, focusOnNextUpdate] = useFocusLogic({\n componentRef\n });\n const [isYearPickerVisible, setIsYearPickerVisible] = React.useState(false);\n const animateBackwards = useAnimateBackwards({\n navigatedDate\n });\n const selectMonthCallback = (newMonth)=>{\n return ()=>onSelectMonth(newMonth);\n };\n const onSelectNextYear = ()=>{\n onNavigateDate(addYears(navigatedDate, 1), false);\n };\n const onSelectPrevYear = ()=>{\n onNavigateDate(addYears(navigatedDate, -1), false);\n };\n const onSelectMonth = (newMonth)=>{\n var // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked\n _onUserHeaderSelect;\n (_onUserHeaderSelect = onUserHeaderSelect) === null || _onUserHeaderSelect === void 0 ? void 0 : _onUserHeaderSelect();\n onNavigateDate(setMonth(navigatedDate, newMonth), true);\n };\n const onHeaderSelect = ()=>{\n if (!yearPickerHidden) {\n focusOnNextUpdate();\n setIsYearPickerVisible(true);\n } else {\n var _onUserHeaderSelect;\n (_onUserHeaderSelect = onUserHeaderSelect) === null || _onUserHeaderSelect === void 0 ? void 0 : _onUserHeaderSelect();\n }\n };\n const onSelectYear = (selectedYear)=>{\n focusOnNextUpdate();\n const navYear = navigatedDate.getFullYear();\n if (navYear !== selectedYear) {\n let newNavigationDate = new Date(navigatedDate.getTime());\n newNavigationDate.setFullYear(selectedYear);\n // for min and max dates, adjust the new navigation date - perhaps this should be\n // checked on the master navigation date handler (i.e. in Calendar)\n if (maxDate && newNavigationDate > maxDate) {\n newNavigationDate = setMonth(newNavigationDate, maxDate.getMonth());\n } else if (minDate && newNavigationDate < minDate) {\n newNavigationDate = setMonth(newNavigationDate, minDate.getMonth());\n }\n onNavigateDate(newNavigationDate, true);\n }\n setIsYearPickerVisible(false);\n };\n const onYearPickerHeaderSelect = (focus)=>{\n focusOnNextUpdate();\n setIsYearPickerVisible(false);\n };\n const dateFormatter = dateTimeFormatter;\n // determine if previous/next years are in bounds\n const isPrevYearInBounds = minDate ? compareDatePart(minDate, getYearStart(navigatedDate)) < 0 : true;\n const isNextYearInBounds = maxDate ? compareDatePart(getYearEnd(navigatedDate), maxDate) < 0 : true;\n const classNames = useCalendarMonthStyles_unstable({\n className,\n hasHeaderClickCallback: !!onUserHeaderSelect || !yearPickerHidden,\n highlightCurrent: highlightCurrentMonth,\n highlightSelected: highlightSelectedMonth,\n animateBackwards,\n animationDirection\n });\n const { dir } = useFluent_unstable();\n const arrowNavigationAttributes = useArrowNavigationGroup({\n axis: 'both'\n });\n if (isYearPickerVisible) {\n const [onRenderYear, yearStrings] = getYearStrings({\n dateTimeFormatter,\n navigatedDate,\n strings\n });\n // use navigated date for the year picker\n return /*#__PURE__*/ React.createElement(CalendarYear, {\n key: 'calendarYear',\n minYear: minDate ? minDate.getFullYear() : undefined,\n maxYear: maxDate ? maxDate.getFullYear() : undefined,\n // eslint-disable-next-line react/jsx-no-bind\n onSelectYear: onSelectYear,\n // eslint-disable-next-line react/jsx-no-bind\n onHeaderSelect: onYearPickerHeaderSelect,\n selectedYear: selectedDate ? selectedDate.getFullYear() : navigatedDate ? navigatedDate.getFullYear() : undefined,\n navigatedYear: navigatedDate.getFullYear(),\n onRenderYear: onRenderYear,\n strings: yearStrings,\n componentRef: calendarYearRef,\n highlightCurrentYear: highlightCurrentMonth,\n highlightSelectedYear: highlightSelectedMonth,\n animationDirection: animationDirection\n });\n }\n const rowIndexes = [];\n for(let i = 0; i < strings.shortMonths.length / MONTHS_PER_ROW; i++){\n rowIndexes.push(i);\n }\n const yearString = dateFormatter.formatYear(navigatedDate);\n const headerAriaLabel = strings.monthPickerHeaderAriaLabel ? strings.monthPickerHeaderAriaLabel.replace('{0}', yearString) : yearString;\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.root\n }, /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.headerContainer\n }, /*#__PURE__*/ React.createElement(\"button\", {\n className: classNames.currentItemButton,\n onClick: onHeaderSelect,\n onKeyDown: onButtonKeyDown(onHeaderSelect),\n \"aria-label\": headerAriaLabel,\n tabIndex: !!onUserHeaderSelect || !yearPickerHidden ? 0 : -1,\n type: \"button\"\n }, /*#__PURE__*/ React.createElement(\"span\", {\n \"aria-live\": \"polite\",\n \"aria-atomic\": \"true\"\n }, yearString)), /*#__PURE__*/ React.createElement(\"div\", {\n className: classNames.navigationButtonsContainer\n }, /*#__PURE__*/ React.createElement(\"button\", {\n className: mergeClasses(classNames.navigationButton, !isPrevYearInBounds && classNames.disabled),\n \"aria-disabled\": !isPrevYearInBounds,\n tabIndex: isPrevYearInBounds ? undefined : allFocusable ? 0 : -1,\n onClick: isPrevYearInBounds ? onSelectPrevYear : undefined,\n onKeyDown: isPrevYearInBounds ? onButtonKeyDown(onSelectPrevYear) : undefined,\n title: strings.prevYearAriaLabel ? strings.prevYearAriaLabel + ' ' + dateFormatter.formatYear(addYears(navigatedDate, -1)) : undefined,\n type: \"button\"\n }, dir === 'ltr' ? /*#__PURE__*/ React.createElement(ArrowUpRegular, null) : /*#__PURE__*/ React.createElement(ArrowDownRegular, null)), /*#__PURE__*/ React.createElement(\"button\", {\n className: mergeClasses(classNames.navigationButton, !isNextYearInBounds && classNames.disabled),\n \"aria-disabled\": !isNextYearInBounds,\n tabIndex: isNextYearInBounds ? undefined : allFocusable ? 0 : -1,\n onClick: isNextYearInBounds ? onSelectNextYear : undefined,\n onKeyDown: isNextYearInBounds ? onButtonKeyDown(onSelectNextYear) : undefined,\n title: strings.nextYearAriaLabel ? strings.nextYearAriaLabel + ' ' + dateFormatter.formatYear(addYears(navigatedDate, 1)) : undefined,\n type: \"button\"\n }, dir === 'ltr' ? /*#__PURE__*/ React.createElement(ArrowDownRegular, null) : /*#__PURE__*/ React.createElement(ArrowUpRegular, null)))), /*#__PURE__*/ React.createElement(\"div\", {\n ...arrowNavigationAttributes,\n className: classNames.gridContainer,\n role: \"grid\",\n \"aria-label\": yearString\n }, rowIndexes.map((rowNum)=>{\n const monthsForRow = strings.shortMonths.slice(rowNum * MONTHS_PER_ROW, (rowNum + 1) * MONTHS_PER_ROW);\n return /*#__PURE__*/ React.createElement(\"div\", {\n key: 'monthRow_' + rowNum + navigatedDate.getFullYear(),\n role: \"row\",\n className: classNames.buttonRow\n }, monthsForRow.map((month, index)=>{\n const monthIndex = rowNum * MONTHS_PER_ROW + index;\n const indexedMonth = setMonth(navigatedDate, monthIndex);\n const isNavigatedMonth = navigatedDate.getMonth() === monthIndex;\n const isSelectedMonth = selectedDate.getMonth() === monthIndex;\n const isSelectedYear = selectedDate.getFullYear() === navigatedDate.getFullYear();\n const isInBounds = (minDate ? compareDatePart(minDate, getMonthEnd(indexedMonth)) < 1 : true) && (maxDate ? compareDatePart(getMonthStart(indexedMonth), maxDate) < 1 : true);\n return /*#__PURE__*/ React.createElement(\"button\", {\n ref: isNavigatedMonth ? navigatedMonthRef : undefined,\n role: 'gridcell',\n className: mergeClasses(classNames.itemButton, highlightCurrentMonth && isCurrentMonth(monthIndex, navigatedDate.getFullYear(), today) && classNames.current, highlightSelectedMonth && isSelectedMonth && isSelectedYear && classNames.selected, !isInBounds && classNames.disabled),\n disabled: !allFocusable && !isInBounds,\n key: monthIndex,\n onClick: isInBounds ? selectMonthCallback(monthIndex) : undefined,\n onKeyDown: isInBounds ? onButtonKeyDown(selectMonthCallback(monthIndex)) : undefined,\n \"aria-label\": dateFormatter.formatMonth(indexedMonth, strings),\n \"aria-selected\": isNavigatedMonth,\n tabIndex: isInBounds ? 0 : -1,\n type: \"button\"\n }, month);\n }));\n })));\n};\nCalendarMonth.displayName = 'CalendarMonth';\nfunction getYearStrings({ dateTimeFormatter, navigatedDate, strings }) {\n const yearToString = (year)=>{\n if (dateTimeFormatter) {\n // create a date based on the current nav date\n const yearFormattingDate = new Date(navigatedDate.getTime());\n yearFormattingDate.setFullYear(year);\n return dateTimeFormatter.formatYear(yearFormattingDate);\n }\n return String(year);\n };\n const yearRangeToString = (yearRange)=>{\n return `${yearToString(yearRange.fromYear)} - ${yearToString(yearRange.toYear)}`;\n };\n const yearRangeToNextDecadeLabel = (yearRange)=>{\n return strings.nextYearRangeAriaLabel ? `${strings.nextYearRangeAriaLabel} ${yearRangeToString(yearRange)}` : '';\n };\n const yearRangeToPrevDecadeLabel = (yearRange)=>{\n return strings.prevYearRangeAriaLabel ? `${strings.prevYearRangeAriaLabel} ${yearRangeToString(yearRange)}` : '';\n };\n return [\n yearToString,\n {\n rangeAriaLabel: yearRangeToString,\n prevRangeAriaLabel: yearRangeToPrevDecadeLabel,\n nextRangeAriaLabel: yearRangeToNextDecadeLabel,\n headerAriaLabelFormatString: strings.yearPickerHeaderAriaLabel\n }\n ];\n}\nfunction isCurrentMonth(month, year, today) {\n return today.getFullYear() === year && today.getMonth() === month;\n}\nfunction onButtonKeyDown(callback) {\n return (ev)=>{\n switch(ev.key){\n case Enter:\n callback();\n break;\n }\n };\n}\n"],"names":["CalendarMonth","MONTHS_PER_ROW","useAnimateBackwards","navigatedDate","currentYear","getFullYear","previousYearRef","React","useRef","useEffect","current","previousYear","undefined","useFocusLogic","componentRef","navigatedMonthRef","calendarYearRef","focusOnUpdate","focus","useCallback","useImperativeHandle","focusOnNextUpdate","props","allFocusable","animationDirection","className","dateTimeFormatter","DEFAULT_DATE_FORMATTING","highlightCurrentMonth","highlightSelectedMonth","maxDate","minDate","onHeaderSelect","onUserHeaderSelect","onNavigateDate","selectedDate","strings","today","Date","yearPickerHidden","isYearPickerVisible","setIsYearPickerVisible","useState","animateBackwards","selectMonthCallback","newMonth","onSelectMonth","onSelectNextYear","addYears","onSelectPrevYear","_onUserHeaderSelect","setMonth","onSelectYear","selectedYear","navYear","newNavigationDate","getTime","setFullYear","getMonth","onYearPickerHeaderSelect","dateFormatter","isPrevYearInBounds","compareDatePart","getYearStart","isNextYearInBounds","getYearEnd","classNames","useCalendarMonthStyles_unstable","hasHeaderClickCallback","highlightCurrent","highlightSelected","dir","useFluent_unstable","arrowNavigationAttributes","useArrowNavigationGroup","axis","onRenderYear","yearStrings","getYearStrings","createElement","CalendarYear","key","minYear","maxYear","navigatedYear","highlightCurrentYear","highlightSelectedYear","rowIndexes","i","shortMonths","length","push","yearString","formatYear","headerAriaLabel","monthPickerHeaderAriaLabel","replace","root","headerContainer","currentItemButton","onClick","onKeyDown","onButtonKeyDown","tabIndex","type","navigationButtonsContainer","mergeClasses","navigationButton","disabled","title","prevYearAriaLabel","ArrowUpRegular","ArrowDownRegular","nextYearAriaLabel","gridContainer","role","map","rowNum","monthsForRow","slice","buttonRow","month","index","monthIndex","indexedMonth","isNavigatedMonth","isSelectedMonth","isSelectedYear","isInBounds","getMonthEnd","getMonthStart","ref","itemButton","isCurrentMonth","selected","formatMonth","displayName","yearToString","year","yearFormattingDate","String","yearRangeToString","yearRange","fromYear","toYear","yearRangeToNextDecadeLabel","nextYearRangeAriaLabel","yearRangeToPrevDecadeLabel","prevYearRangeAriaLabel","rangeAriaLabel","prevRangeAriaLabel","nextRangeAriaLabel","headerAriaLabelFormatString","yearPickerHeaderAriaLabel","callback","ev","Enter"],"mappings":";;;;+BAwDiBA;;;eAAAA;;;;iEAxDM;8BACD;4BAC2B;qCACd;8BACK;wBACX;uBACsG;8BACtG;wCACmB;AAChD,MAAMC,iBAAiB;AACvB,SAASC,oBAAoB,EAAEC,aAAa,EAAE;IAC1C,MAAMC,cAAcD,cAAcE,WAAW;IAC7C,MAAMC,kBAAkBC,OAAMC,MAAM;IACpCD,OAAME,SAAS,CAAC;QACZH,gBAAgBI,OAAO,GAAGN;IAC9B;IACA,MAAMO,eAAeL,gBAAgBI,OAAO;IAC5C,IAAIC,iBAAiBC,aAAaD,iBAAiBP,aAAa;QAC5D,OAAOQ;IACX,OAAO;QACH,OAAOD,eAAeP;IAC1B;AACJ;AACA,SAASS,cAAc,EAAEC,YAAY,EAAE;IACnC,MAAMC,oBAAoBR,OAAMC,MAAM,CAAC;IACvC,MAAMQ,kBAAkBT,OAAMC,MAAM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