@react-aria/datepicker 3.11.4 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/ar-AE.main.js.map +1 -1
  2. package/dist/ar-AE.module.js.map +1 -1
  3. package/dist/bg-BG.main.js.map +1 -1
  4. package/dist/bg-BG.module.js.map +1 -1
  5. package/dist/cs-CZ.main.js.map +1 -1
  6. package/dist/cs-CZ.module.js.map +1 -1
  7. package/dist/da-DK.main.js.map +1 -1
  8. package/dist/da-DK.module.js.map +1 -1
  9. package/dist/de-DE.main.js.map +1 -1
  10. package/dist/de-DE.module.js.map +1 -1
  11. package/dist/el-GR.main.js.map +1 -1
  12. package/dist/el-GR.module.js.map +1 -1
  13. package/dist/en-US.main.js.map +1 -1
  14. package/dist/en-US.module.js.map +1 -1
  15. package/dist/es-ES.main.js.map +1 -1
  16. package/dist/es-ES.module.js.map +1 -1
  17. package/dist/et-EE.main.js.map +1 -1
  18. package/dist/et-EE.module.js.map +1 -1
  19. package/dist/fi-FI.main.js.map +1 -1
  20. package/dist/fi-FI.module.js.map +1 -1
  21. package/dist/fr-FR.main.js.map +1 -1
  22. package/dist/fr-FR.module.js.map +1 -1
  23. package/dist/he-IL.main.js.map +1 -1
  24. package/dist/he-IL.module.js.map +1 -1
  25. package/dist/hr-HR.main.js.map +1 -1
  26. package/dist/hr-HR.module.js.map +1 -1
  27. package/dist/hu-HU.main.js.map +1 -1
  28. package/dist/hu-HU.module.js.map +1 -1
  29. package/dist/it-IT.main.js.map +1 -1
  30. package/dist/it-IT.module.js.map +1 -1
  31. package/dist/ja-JP.main.js.map +1 -1
  32. package/dist/ja-JP.module.js.map +1 -1
  33. package/dist/ko-KR.main.js.map +1 -1
  34. package/dist/ko-KR.module.js.map +1 -1
  35. package/dist/lt-LT.main.js.map +1 -1
  36. package/dist/lt-LT.module.js.map +1 -1
  37. package/dist/lv-LV.main.js.map +1 -1
  38. package/dist/lv-LV.module.js.map +1 -1
  39. package/dist/nb-NO.main.js.map +1 -1
  40. package/dist/nb-NO.module.js.map +1 -1
  41. package/dist/nl-NL.main.js.map +1 -1
  42. package/dist/nl-NL.module.js.map +1 -1
  43. package/dist/pl-PL.main.js.map +1 -1
  44. package/dist/pl-PL.module.js.map +1 -1
  45. package/dist/pt-BR.main.js.map +1 -1
  46. package/dist/pt-BR.module.js.map +1 -1
  47. package/dist/pt-PT.main.js.map +1 -1
  48. package/dist/pt-PT.module.js.map +1 -1
  49. package/dist/ro-RO.main.js.map +1 -1
  50. package/dist/ro-RO.module.js.map +1 -1
  51. package/dist/ru-RU.main.js.map +1 -1
  52. package/dist/ru-RU.module.js.map +1 -1
  53. package/dist/sk-SK.main.js.map +1 -1
  54. package/dist/sk-SK.module.js.map +1 -1
  55. package/dist/sl-SI.main.js.map +1 -1
  56. package/dist/sl-SI.module.js.map +1 -1
  57. package/dist/sr-SP.main.js.map +1 -1
  58. package/dist/sr-SP.module.js.map +1 -1
  59. package/dist/sv-SE.main.js.map +1 -1
  60. package/dist/sv-SE.module.js.map +1 -1
  61. package/dist/tr-TR.main.js.map +1 -1
  62. package/dist/tr-TR.module.js.map +1 -1
  63. package/dist/types.d.ts +1 -1
  64. package/dist/types.d.ts.map +1 -1
  65. package/dist/uk-UA.main.js.map +1 -1
  66. package/dist/uk-UA.module.js.map +1 -1
  67. package/dist/useDateField.main.js.map +1 -1
  68. package/dist/useDateField.module.js.map +1 -1
  69. package/dist/useDatePicker.main.js.map +1 -1
  70. package/dist/useDatePicker.module.js.map +1 -1
  71. package/dist/useDatePickerGroup.main.js +1 -0
  72. package/dist/useDatePickerGroup.main.js.map +1 -1
  73. package/dist/useDatePickerGroup.mjs +1 -0
  74. package/dist/useDatePickerGroup.module.js +1 -0
  75. package/dist/useDatePickerGroup.module.js.map +1 -1
  76. package/dist/useDateRangePicker.main.js +5 -4
  77. package/dist/useDateRangePicker.main.js.map +1 -1
  78. package/dist/useDateRangePicker.mjs +5 -4
  79. package/dist/useDateRangePicker.module.js +5 -4
  80. package/dist/useDateRangePicker.module.js.map +1 -1
  81. package/dist/useDateSegment.main.js +12 -11
  82. package/dist/useDateSegment.main.js.map +1 -1
  83. package/dist/useDateSegment.mjs +12 -11
  84. package/dist/useDateSegment.module.js +12 -11
  85. package/dist/useDateSegment.module.js.map +1 -1
  86. package/dist/useDisplayNames.main.js +1 -2
  87. package/dist/useDisplayNames.main.js.map +1 -1
  88. package/dist/useDisplayNames.mjs +1 -2
  89. package/dist/useDisplayNames.module.js +1 -2
  90. package/dist/useDisplayNames.module.js.map +1 -1
  91. package/dist/zh-CN.main.js.map +1 -1
  92. package/dist/zh-CN.module.js.map +1 -1
  93. package/dist/zh-TW.main.js.map +1 -1
  94. package/dist/zh-TW.module.js.map +1 -1
  95. package/package.json +21 -21
  96. package/src/useDateField.ts +3 -3
  97. package/src/useDatePickerGroup.ts +3 -0
  98. package/src/useDateRangePicker.ts +4 -4
  99. package/src/useDateSegment.ts +28 -18
  100. package/src/useDisplayNames.ts +2 -3
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC;IACX,aAAa,CAAC,QAAQ,CAAC;IACvB,WAAW,CAAC,gBAAU,CAAC;IACvB,OAAO,CAAC,SAAG,CAAC;IACZ,QAAQ,CAAC,SAAG,CAAC;IACb,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,UAAI,CAAC;IACf,UAAU,CAAC,aAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,4BAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,yBAAyB,EAAE,KAAK,SAAS,CAAC,kBAAS,EAAE,KAAK,OAAO,CAAC,CAAC;IAC1G,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,aAAa,CAAC,qBAAY,CAAC;IAC3B,gBAAgB,CAAC,QAAQ,CAAC;IAC1B,WAAW,CAAC,uCAAkB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/ro-RO.json"],"sourcesContent":["{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Interval selectat: de la {startDate} până la {endDate}\",\n \"selectedTimeDescription\": \"Ora selectată: {time}\",\n \"startDate\": \"Dată început\",\n \"timeZoneName\": \"fus orar\",\n \"weekday\": \"ziua din săptămână\",\n \"year\": \"an\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC;IACX,aAAa,CAAC,QAAQ,CAAC;IACvB,WAAW,CAAC,gBAAU,CAAC;IACvB,OAAO,CAAC,SAAG,CAAC;IACZ,QAAQ,CAAC,SAAG,CAAC;IACb,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,UAAI,CAAC;IACf,UAAU,CAAC,aAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,4BAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,yBAAyB,EAAE,KAAK,SAAS,CAAC,kBAAS,EAAE,KAAK,OAAO,EAAE;IAC1G,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,aAAa,CAAC,qBAAY,CAAC;IAC3B,gBAAgB,CAAC,QAAQ,CAAC;IAC1B,WAAW,CAAC,uCAAkB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/ro-RO.json"],"sourcesContent":["{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Interval selectat: de la {startDate} până la {endDate}\",\n \"selectedTimeDescription\": \"Ora selectată: {time}\",\n \"startDate\": \"Dată început\",\n \"timeZoneName\": \"fus orar\",\n \"weekday\": \"ziua din săptămână\",\n \"year\": \"an\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC;IACX,aAAa,CAAC,QAAQ,CAAC;IACvB,WAAW,CAAC,gBAAU,CAAC;IACvB,OAAO,CAAC,SAAG,CAAC;IACZ,QAAQ,CAAC,SAAG,CAAC;IACb,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,UAAI,CAAC;IACf,UAAU,CAAC,aAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,4BAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,yBAAyB,EAAE,KAAK,SAAS,CAAC,kBAAS,EAAE,KAAK,OAAO,CAAC,CAAC;IAC1G,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,aAAa,CAAC,qBAAY,CAAC;IAC3B,gBAAgB,CAAC,QAAQ,CAAC;IAC1B,WAAW,CAAC,uCAAkB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/ro-RO.json"],"sourcesContent":["{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Interval selectat: de la {startDate} până la {endDate}\",\n \"selectedTimeDescription\": \"Ora selectată: {time}\",\n \"startDate\": \"Dată început\",\n \"timeZoneName\": \"fus orar\",\n \"weekday\": \"ziua din săptămână\",\n \"year\": \"an\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC;IACX,aAAa,CAAC,QAAQ,CAAC;IACvB,WAAW,CAAC,gBAAU,CAAC;IACvB,OAAO,CAAC,SAAG,CAAC;IACZ,QAAQ,CAAC,SAAG,CAAC;IACb,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,UAAI,CAAC;IACf,UAAU,CAAC,aAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,4BAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,yBAAyB,EAAE,KAAK,SAAS,CAAC,kBAAS,EAAE,KAAK,OAAO,EAAE;IAC1G,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,aAAa,CAAC,qBAAY,CAAC;IAC3B,gBAAgB,CAAC,QAAQ,CAAC;IAC1B,WAAW,CAAC,uCAAkB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/ro-RO.json"],"sourcesContent":["{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Interval selectat: de la {startDate} până la {endDate}\",\n \"selectedTimeDescription\": \"Ora selectată: {time}\",\n \"startDate\": \"Dată început\",\n \"timeZoneName\": \"fus orar\",\n \"weekday\": \"ziua din săptămână\",\n \"year\": \"an\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,+DAAS,CAAC;IACzC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,4FAAc,CAAC;IAC3B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,0CAAM,CAAC;IAClB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,8FAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,kIAAsB,EAAE,KAAK,SAAS,CAAC,gBAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAClG,2BAA2B,CAAC,OAAS,CAAC,qGAAiB,EAAE,KAAK,IAAI,CAAC,CAAC;IACpE,aAAa,CAAC,uEAAW,CAAC;IAC1B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,uEAAW,CAAC;IACxB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/ru-RU.json"],"sourcesContent":["{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: с {startDate} по {endDate}\",\n \"selectedTimeDescription\": \"Выбранное время: {time}\",\n \"startDate\": \"Дата начала\",\n \"timeZoneName\": \"часовой пояс\",\n \"weekday\": \"день недели\",\n \"year\": \"год\"\n}\n"],"names":[],"version":3,"file":"ru-RU.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,+DAAS,CAAC;IACzC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,4FAAc,CAAC;IAC3B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,0CAAM,CAAC;IAClB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,8FAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,kIAAsB,EAAE,KAAK,SAAS,CAAC,gBAAI,EAAE,KAAK,OAAO,EAAE;IAClG,2BAA2B,CAAC,OAAS,CAAC,qGAAiB,EAAE,KAAK,IAAI,EAAE;IACpE,aAAa,CAAC,uEAAW,CAAC;IAC1B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,uEAAW,CAAC;IACxB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/ru-RU.json"],"sourcesContent":["{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: с {startDate} по {endDate}\",\n \"selectedTimeDescription\": \"Выбранное время: {time}\",\n \"startDate\": \"Дата начала\",\n \"timeZoneName\": \"часовой пояс\",\n \"weekday\": \"день недели\",\n \"year\": \"год\"\n}\n"],"names":[],"version":3,"file":"ru-RU.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,+DAAS,CAAC;IACzC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,4FAAc,CAAC;IAC3B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,0CAAM,CAAC;IAClB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,8FAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,kIAAsB,EAAE,KAAK,SAAS,CAAC,gBAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAClG,2BAA2B,CAAC,OAAS,CAAC,qGAAiB,EAAE,KAAK,IAAI,CAAC,CAAC;IACpE,aAAa,CAAC,uEAAW,CAAC;IAC1B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,uEAAW,CAAC;IACxB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/ru-RU.json"],"sourcesContent":["{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: с {startDate} по {endDate}\",\n \"selectedTimeDescription\": \"Выбранное время: {time}\",\n \"startDate\": \"Дата начала\",\n \"timeZoneName\": \"часовой пояс\",\n \"weekday\": \"день недели\",\n \"year\": \"год\"\n}\n"],"names":[],"version":3,"file":"ru-RU.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,+DAAS,CAAC;IACzC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,4FAAc,CAAC;IAC3B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,0CAAM,CAAC;IAClB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,8FAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,kIAAsB,EAAE,KAAK,SAAS,CAAC,gBAAI,EAAE,KAAK,OAAO,EAAE;IAClG,2BAA2B,CAAC,OAAS,CAAC,qGAAiB,EAAE,KAAK,IAAI,EAAE;IACpE,aAAa,CAAC,uEAAW,CAAC;IAC1B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,uEAAW,CAAC;IACxB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/ru-RU.json"],"sourcesContent":["{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: с {startDate} по {endDate}\",\n \"selectedTimeDescription\": \"Выбранное время: {time}\",\n \"startDate\": \"Дата начала\",\n \"timeZoneName\": \"часовой пояс\",\n \"weekday\": \"день недели\",\n \"year\": \"год\"\n}\n"],"names":[],"version":3,"file":"ru-RU.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,WAAQ,CAAC;IACxC,OAAO,CAAC,SAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,wBAAe,CAAC;IAC5B,OAAO,CAAC,eAAS,CAAC;IAClB,QAAQ,CAAC,MAAM,CAAC;IAChB,UAAU,CAAC,SAAM,CAAC;IAClB,SAAS,CAAC,MAAM,CAAC;IACjB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,sBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/F,2BAA2B,CAAC,OAAS,CAAC,sBAAa,EAAE,KAAK,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,sBAAa,CAAC;IAC5B,gBAAgB,CAAC,wBAAY,CAAC;IAC9B,WAAW,CAAC,+BAAU,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/sk-SK.json"],"sourcesContent":["{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Vybratý čas: {time}\",\n \"startDate\": \"Dátum začatia\",\n \"timeZoneName\": \"časové pásmo\",\n \"weekday\": \"deň týždňa\",\n \"year\": \"rok\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,WAAQ,CAAC;IACxC,OAAO,CAAC,SAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,wBAAe,CAAC;IAC5B,OAAO,CAAC,eAAS,CAAC;IAClB,QAAQ,CAAC,MAAM,CAAC;IAChB,UAAU,CAAC,SAAM,CAAC;IAClB,SAAS,CAAC,MAAM,CAAC;IACjB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,sBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC/F,2BAA2B,CAAC,OAAS,CAAC,sBAAa,EAAE,KAAK,IAAI,EAAE;IAChE,aAAa,CAAC,sBAAa,CAAC;IAC5B,gBAAgB,CAAC,wBAAY,CAAC;IAC9B,WAAW,CAAC,+BAAU,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/sk-SK.json"],"sourcesContent":["{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Vybratý čas: {time}\",\n \"startDate\": \"Dátum začatia\",\n \"timeZoneName\": \"časové pásmo\",\n \"weekday\": \"deň týždňa\",\n \"year\": \"rok\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,WAAQ,CAAC;IACxC,OAAO,CAAC,SAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,wBAAe,CAAC;IAC5B,OAAO,CAAC,eAAS,CAAC;IAClB,QAAQ,CAAC,MAAM,CAAC;IAChB,UAAU,CAAC,SAAM,CAAC;IAClB,SAAS,CAAC,MAAM,CAAC;IACjB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,sBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/F,2BAA2B,CAAC,OAAS,CAAC,sBAAa,EAAE,KAAK,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,sBAAa,CAAC;IAC5B,gBAAgB,CAAC,wBAAY,CAAC;IAC9B,WAAW,CAAC,+BAAU,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/sk-SK.json"],"sourcesContent":["{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Vybratý čas: {time}\",\n \"startDate\": \"Dátum začatia\",\n \"timeZoneName\": \"časové pásmo\",\n \"weekday\": \"deň týždňa\",\n \"year\": \"rok\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,WAAQ,CAAC;IACxC,OAAO,CAAC,SAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,wBAAe,CAAC;IAC5B,OAAO,CAAC,eAAS,CAAC;IAClB,QAAQ,CAAC,MAAM,CAAC;IAChB,UAAU,CAAC,SAAM,CAAC;IAClB,SAAS,CAAC,MAAM,CAAC;IACjB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,qBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,sBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC/F,2BAA2B,CAAC,OAAS,CAAC,sBAAa,EAAE,KAAK,IAAI,EAAE;IAChE,aAAa,CAAC,sBAAa,CAAC;IAC5B,gBAAgB,CAAC,wBAAY,CAAC;IAC9B,WAAW,CAAC,+BAAU,CAAC;IACvB,QAAQ,CAAC,GAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/sk-SK.json"],"sourcesContent":["{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Vybratý čas: {time}\",\n \"startDate\": \"Dátum začatia\",\n \"timeZoneName\": \"časové pásmo\",\n \"weekday\": \"deň týždňa\",\n \"year\": \"rok\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAO,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC;IACb,QAAQ,CAAC,GAAG,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,KAAK,CAAC;IAChB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,eAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,uBAAiB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC7F,2BAA2B,CAAC,OAAS,CAAC,mBAAa,EAAE,KAAK,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,iBAAW,CAAC;IAC7B,WAAW,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC;AAChB","sources":["packages/@react-aria/datepicker/intl/sl-SI.json"],"sourcesContent":["{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrano območje: {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izbrani čas: {time}\",\n \"startDate\": \"Datum začetka\",\n \"timeZoneName\": \"časovni pas\",\n \"weekday\": \"dan v tednu\",\n \"year\": \"leto\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAO,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC;IACb,QAAQ,CAAC,GAAG,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,KAAK,CAAC;IAChB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,uBAAiB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC7F,2BAA2B,CAAC,OAAS,CAAC,mBAAa,EAAE,KAAK,IAAI,EAAE;IAChE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,iBAAW,CAAC;IAC7B,WAAW,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC;AAChB","sources":["packages/@react-aria/datepicker/intl/sl-SI.json"],"sourcesContent":["{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrano območje: {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izbrani čas: {time}\",\n \"startDate\": \"Datum začetka\",\n \"timeZoneName\": \"časovni pas\",\n \"weekday\": \"dan v tednu\",\n \"year\": \"leto\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAO,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC;IACb,QAAQ,CAAC,GAAG,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,KAAK,CAAC;IAChB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,eAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,uBAAiB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC7F,2BAA2B,CAAC,OAAS,CAAC,mBAAa,EAAE,KAAK,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,iBAAW,CAAC;IAC7B,WAAW,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC;AAChB","sources":["packages/@react-aria/datepicker/intl/sl-SI.json"],"sourcesContent":["{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrano območje: {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izbrani čas: {time}\",\n \"startDate\": \"Datum začetka\",\n \"timeZoneName\": \"časovni pas\",\n \"weekday\": \"dan v tednu\",\n \"year\": \"leto\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAO,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC;IACb,QAAQ,CAAC,GAAG,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,KAAK,CAAC;IAChB,UAAU,CAAC,OAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,uBAAiB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC7F,2BAA2B,CAAC,OAAS,CAAC,mBAAa,EAAE,KAAK,IAAI,EAAE;IAChE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,iBAAW,CAAC;IAC7B,WAAW,CAAC,WAAW,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC;AAChB","sources":["packages/@react-aria/datepicker/intl/sl-SI.json"],"sourcesContent":["{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrano območje: {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izbrani čas: {time}\",\n \"startDate\": \"Datum začetka\",\n \"timeZoneName\": \"časovni pas\",\n \"weekday\": \"dan v tednu\",\n \"year\": \"leto\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,qBAAG,CAAC;IACZ,aAAa,CAAC,4GAAkB,CAAC;IACjC,WAAW,CAAC,qBAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,mCAAK,CAAC;IACjB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,0CAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,mBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/F,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,4FAAc,CAAC;IAChC,WAAW,CAAC,wEAAY,CAAC;IACzB,QAAQ,CAAC,0CAAM,CAAC;AAClB","sources":["packages/@react-aria/datepicker/intl/sr-SP.json"],"sourcesContent":["{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izabrano vreme: {time}\",\n \"startDate\": \"Datum početka\",\n \"timeZoneName\": \"временска зона\",\n \"weekday\": \"дан у недељи\",\n \"year\": \"година\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,qBAAG,CAAC;IACZ,aAAa,CAAC,4GAAkB,CAAC;IACjC,WAAW,CAAC,qBAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,mCAAK,CAAC;IACjB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,0CAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,mBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC/F,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,4FAAc,CAAC;IAChC,WAAW,CAAC,wEAAY,CAAC;IACzB,QAAQ,CAAC,0CAAM,CAAC;AAClB","sources":["packages/@react-aria/datepicker/intl/sr-SP.json"],"sourcesContent":["{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izabrano vreme: {time}\",\n \"startDate\": \"Datum početka\",\n \"timeZoneName\": \"временска зона\",\n \"weekday\": \"дан у недељи\",\n \"year\": \"година\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,qBAAG,CAAC;IACZ,aAAa,CAAC,4GAAkB,CAAC;IACjC,WAAW,CAAC,qBAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,mCAAK,CAAC;IACjB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,0CAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,4BAA4B,CAAC,OAAS,CAAC,mBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/F,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,CAAC;IACnE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,4FAAc,CAAC;IAChC,WAAW,CAAC,wEAAY,CAAC;IACzB,QAAQ,CAAC,0CAAM,CAAC;AAClB","sources":["packages/@react-aria/datepicker/intl/sr-SP.json"],"sourcesContent":["{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izabrano vreme: {time}\",\n \"startDate\": \"Datum početka\",\n \"timeZoneName\": \"временска зона\",\n \"weekday\": \"дан у недељи\",\n \"year\": \"година\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,qBAAG,CAAC;IACZ,aAAa,CAAC,4GAAkB,CAAC;IACjC,WAAW,CAAC,qBAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,qBAAG,CAAC;IACb,UAAU,CAAC,mCAAK,CAAC;IACjB,SAAS,CAAC,mCAAK,CAAC;IAChB,UAAU,CAAC,0CAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,4BAA4B,CAAC,OAAS,CAAC,mBAAmB,EAAE,KAAK,SAAS,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE;IAC/F,2BAA2B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IACnE,aAAa,CAAC,mBAAa,CAAC;IAC5B,gBAAgB,CAAC,4FAAc,CAAC;IAChC,WAAW,CAAC,wEAAY,CAAC;IACzB,QAAQ,CAAC,0CAAM,CAAC;AAClB","sources":["packages/@react-aria/datepicker/intl/sr-SP.json"],"sourcesContent":["{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\",\n \"selectedTimeDescription\": \"Izabrano vreme: {time}\",\n \"startDate\": \"Datum početka\",\n \"timeZoneName\": \"временска зона\",\n \"weekday\": \"дан у недељи\",\n \"year\": \"година\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC;IACZ,QAAQ,CAAC,KAAK,CAAC;IACf,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,QAAK,CAAC;IAChB,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,YAAY,EAAE,KAAK,IAAI,CAAC,CAAC;IAC/D,4BAA4B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,SAAS,CAAC,MAAM,EAAE,KAAK,OAAO,CAAC,CAAC;IAC9F,2BAA2B,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC,CAAC;IAC7D,aAAa,CAAC,UAAU,CAAC;IACzB,gBAAgB,CAAC,OAAO,CAAC;IACzB,WAAW,CAAC,QAAQ,CAAC;IACrB,QAAQ,CAAC,KAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/sv-SE.json"],"sourcesContent":["{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\",\n \"selectedTimeDescription\": \"Vald tid: {time}\",\n \"startDate\": \"Startdatum\",\n \"timeZoneName\": \"tidszon\",\n \"weekday\": \"veckodag\",\n \"year\": \"år\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC;IACZ,QAAQ,CAAC,KAAK,CAAC;IACf,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,QAAK,CAAC;IAChB,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;IAC/D,4BAA4B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,SAAS,CAAC,MAAM,EAAE,KAAK,OAAO,EAAE;IAC9F,2BAA2B,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;IAC7D,aAAa,CAAC,UAAU,CAAC;IACzB,gBAAgB,CAAC,OAAO,CAAC;IACzB,WAAW,CAAC,QAAQ,CAAC;IACrB,QAAQ,CAAC,KAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/sv-SE.json"],"sourcesContent":["{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\",\n \"selectedTimeDescription\": \"Vald tid: {time}\",\n \"startDate\": \"Startdatum\",\n \"timeZoneName\": \"tidszon\",\n \"weekday\": \"veckodag\",\n \"year\": \"år\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC;IACZ,QAAQ,CAAC,KAAK,CAAC;IACf,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,QAAK,CAAC;IAChB,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,YAAY,EAAE,KAAK,IAAI,CAAC,CAAC;IAC/D,4BAA4B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,SAAS,CAAC,MAAM,EAAE,KAAK,OAAO,CAAC,CAAC;IAC9F,2BAA2B,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC,CAAC;IAC7D,aAAa,CAAC,UAAU,CAAC;IACzB,gBAAgB,CAAC,OAAO,CAAC;IACzB,WAAW,CAAC,QAAQ,CAAC;IACrB,QAAQ,CAAC,KAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/sv-SE.json"],"sourcesContent":["{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\",\n \"selectedTimeDescription\": \"Vald tid: {time}\",\n \"startDate\": \"Startdatum\",\n \"timeZoneName\": \"tidszon\",\n \"weekday\": \"veckodag\",\n \"year\": \"år\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,QAAQ,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC;IACZ,aAAa,CAAC,KAAK,CAAC;IACpB,WAAW,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC;IACZ,QAAQ,CAAC,KAAK,CAAC;IACf,UAAU,CAAC,KAAK,CAAC;IACjB,SAAS,CAAC,QAAK,CAAC;IAChB,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;IAC/D,4BAA4B,CAAC,OAAS,CAAC,gBAAgB,EAAE,KAAK,SAAS,CAAC,MAAM,EAAE,KAAK,OAAO,EAAE;IAC9F,2BAA2B,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;IAC7D,aAAa,CAAC,UAAU,CAAC;IACzB,gBAAgB,CAAC,OAAO,CAAC;IACzB,WAAW,CAAC,QAAQ,CAAC;IACrB,QAAQ,CAAC,KAAE,CAAC;AACd","sources":["packages/@react-aria/datepicker/intl/sv-SE.json"],"sourcesContent":["{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\",\n \"selectedTimeDescription\": \"Vald tid: {time}\",\n \"startDate\": \"Startdatum\",\n \"timeZoneName\": \"tidszon\",\n \"weekday\": \"veckodag\",\n \"year\": \"år\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,MAAM,CAAC;IACtC,OAAO,CAAC,MAAG,CAAC;IACZ,aAAa,CAAC,cAAK,CAAC;IACpB,WAAW,CAAC,kBAAY,CAAC;IACzB,OAAO,CAAC,YAAG,CAAC;IACZ,QAAQ,CAAC,IAAI,CAAC;IACd,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,yBAAgB,EAAE,KAAK,SAAS,CAAC,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3F,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,aAAa,CAAC,+BAAgB,CAAC;IAC/B,gBAAgB,CAAC,WAAW,CAAC;IAC7B,WAAW,CAAC,yBAAa,CAAC;IAC1B,QAAQ,CAAC,SAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/tr-TR.json"],"sourcesContent":["{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"selectedDateDescription\": \"Seçilen Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçilen Aralık: {startDate} - {endDate}\",\n \"selectedTimeDescription\": \"Seçilen Zaman: {time}\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"timeZoneName\": \"saat dilimi\",\n \"weekday\": \"haftanın günü\",\n \"year\": \"yıl\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,MAAM,CAAC;IACtC,OAAO,CAAC,MAAG,CAAC;IACZ,aAAa,CAAC,cAAK,CAAC;IACpB,WAAW,CAAC,kBAAY,CAAC;IACzB,OAAO,CAAC,YAAG,CAAC;IACZ,QAAQ,CAAC,IAAI,CAAC;IACd,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,yBAAgB,EAAE,KAAK,SAAS,CAAC,GAAG,EAAE,KAAK,OAAO,EAAE;IAC3F,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,aAAa,CAAC,+BAAgB,CAAC;IAC/B,gBAAgB,CAAC,WAAW,CAAC;IAC7B,WAAW,CAAC,yBAAa,CAAC;IAC1B,QAAQ,CAAC,SAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/tr-TR.json"],"sourcesContent":["{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"selectedDateDescription\": \"Seçilen Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçilen Aralık: {startDate} - {endDate}\",\n \"selectedTimeDescription\": \"Seçilen Zaman: {time}\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"timeZoneName\": \"saat dilimi\",\n \"weekday\": \"haftanın günü\",\n \"year\": \"yıl\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,MAAM,CAAC;IACtC,OAAO,CAAC,MAAG,CAAC;IACZ,aAAa,CAAC,cAAK,CAAC;IACpB,WAAW,CAAC,kBAAY,CAAC;IACzB,OAAO,CAAC,YAAG,CAAC;IACZ,QAAQ,CAAC,IAAI,CAAC;IACd,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,4BAA4B,CAAC,OAAS,CAAC,yBAAgB,EAAE,KAAK,SAAS,CAAC,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC;IAC3F,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,CAAC,CAAC;IAClE,aAAa,CAAC,+BAAgB,CAAC;IAC/B,gBAAgB,CAAC,WAAW,CAAC;IAC7B,WAAW,CAAC,yBAAa,CAAC;IAC1B,QAAQ,CAAC,SAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/tr-TR.json"],"sourcesContent":["{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"selectedDateDescription\": \"Seçilen Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçilen Aralık: {startDate} - {endDate}\",\n \"selectedTimeDescription\": \"Seçilen Zaman: {time}\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"timeZoneName\": \"saat dilimi\",\n \"weekday\": \"haftanın günü\",\n \"year\": \"yıl\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,MAAM,CAAC;IACtC,OAAO,CAAC,MAAG,CAAC;IACZ,aAAa,CAAC,cAAK,CAAC;IACpB,WAAW,CAAC,kBAAY,CAAC;IACzB,OAAO,CAAC,YAAG,CAAC;IACZ,QAAQ,CAAC,IAAI,CAAC;IACd,UAAU,CAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC;IACb,UAAU,CAAC,MAAM,CAAC;IAClB,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,4BAA4B,CAAC,OAAS,CAAC,yBAAgB,EAAE,KAAK,SAAS,CAAC,GAAG,EAAE,KAAK,OAAO,EAAE;IAC3F,2BAA2B,CAAC,OAAS,CAAC,kBAAe,EAAE,KAAK,IAAI,EAAE;IAClE,aAAa,CAAC,+BAAgB,CAAC;IAC/B,gBAAgB,CAAC,WAAW,CAAC;IAC7B,WAAW,CAAC,yBAAa,CAAC;IAC1B,QAAQ,CAAC,SAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/tr-TR.json"],"sourcesContent":["{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"selectedDateDescription\": \"Seçilen Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçilen Aralık: {startDate} - {endDate}\",\n \"selectedTimeDescription\": \"Seçilen Zaman: {time}\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"timeZoneName\": \"saat dilimi\",\n \"weekday\": \"haftanın günü\",\n \"year\": \"yıl\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -62,7 +62,7 @@ export interface DatePickerAria extends ValidationResult {
62
62
  export function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<Element | null>): DatePickerAria;
63
63
  type Field = Intl.DateTimeFormatPartTypes;
64
64
  interface DisplayNames {
65
- of(field: Field): string;
65
+ of(field: Field): string | undefined;
66
66
  }
67
67
  /** @private */
68
68
  export function useDisplayNames(): DisplayNames;
@@ -1 +1 @@
1
- {"mappings":";;;;;;;AC2BA,sCAAsC,CAAC,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,mBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,kBAAkB,GAAG,UAAU,CAAC;IACnM,mEAAmE;IACnE,QAAQ,CAAC,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC9C;AAED,8BAA+B,SAAQ,gBAAgB;IACpD,2DAA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AAS,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAKhJ,YAAY,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC","sources":["packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDisplayNames.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport {useDisplayNames} from './useDisplayNames';\n\nexport type {AriaDateFieldProps, AriaDatePickerProps, AriaDateRangePickerProps, DateRange, DateValue, TimeValue} from '@react-types/datepicker';\nexport type {AriaDateFieldOptions, DateFieldAria} from './useDateField';\nexport type {DatePickerAria} from './useDatePicker';\nexport type {DateRangePickerAria} from './useDateRangePicker';\nexport type {DateSegmentAria} from './useDateSegment';\nexport type {AriaTimeFieldProps} from '@react-types/datepicker';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
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,eAAe,CAAC;IAC7B,8DAA8D;IAC9D,aAAa,EAAE,mBAAmB,SAAS,CAAC,CAAA;CAC7C;AAED;;;;GAIG;AACH,mCAAmC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,UAAU,OAAO,GAAG,IAAI,CAAC,GAAG,mBAAmB,CAsK5K;AC5MD,YAAY,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAKhJ,YAAY,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC","sources":["packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDisplayNames.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport {useDisplayNames} from './useDisplayNames';\n\nexport type {AriaDateFieldProps, AriaDatePickerProps, AriaDateRangePickerProps, DateRange, DateValue, TimeValue} from '@react-types/datepicker';\nexport type {AriaDateFieldOptions, DateFieldAria} from './useDateField';\nexport type {DatePickerAria} from './useDatePicker';\nexport type {DateRangePickerAria} from './useDateRangePicker';\nexport type {DateSegmentAria} from './useDateSegment';\nexport type {AriaTimeFieldProps} from '@react-types/datepicker';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -1 +1 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,wDAAQ,CAAC;IACxC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,6BAAK,CAAC;IACpB,WAAW,CAAC,mGAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,0CAAM,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,SAAS,CAAC,0CAAM,CAAC;IACjB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,CAAC,CAAC;IACjE,4BAA4B,CAAC,OAAS,CAAC,mHAAmB,EAAE,KAAK,SAAS,CAAC,UAAG,EAAE,KAAK,OAAO,CAAC,CAAC;IAC9F,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,CAAC,CAAC;IACjE,aAAa,CAAC,8EAAY,CAAC;IAC3B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,gEAAU,CAAC;IACvB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/uk-UA.json"],"sourcesContent":["{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: {startDate} — {endDate}\",\n \"selectedTimeDescription\": \"Вибраний час: {time}\",\n \"startDate\": \"Дата початку\",\n \"timeZoneName\": \"часовий пояс\",\n \"weekday\": \"день тижня\",\n \"year\": \"рік\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
1
+ {"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,wDAAQ,CAAC;IACxC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,6BAAK,CAAC;IACpB,WAAW,CAAC,mGAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,0CAAM,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,SAAS,CAAC,0CAAM,CAAC;IACjB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,EAAE;IACjE,4BAA4B,CAAC,OAAS,CAAC,mHAAmB,EAAE,KAAK,SAAS,CAAC,UAAG,EAAE,KAAK,OAAO,EAAE;IAC9F,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,EAAE;IACjE,aAAa,CAAC,8EAAY,CAAC;IAC3B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,gEAAU,CAAC;IACvB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/uk-UA.json"],"sourcesContent":["{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: {startDate} — {endDate}\",\n \"selectedTimeDescription\": \"Вибраний час: {time}\",\n \"startDate\": \"Дата початку\",\n \"timeZoneName\": \"часовий пояс\",\n \"weekday\": \"день тижня\",\n \"year\": \"рік\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,wDAAQ,CAAC;IACxC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,6BAAK,CAAC;IACpB,WAAW,CAAC,mGAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,0CAAM,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,SAAS,CAAC,0CAAM,CAAC;IACjB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,CAAC,CAAC;IACjE,4BAA4B,CAAC,OAAS,CAAC,mHAAmB,EAAE,KAAK,SAAS,CAAC,UAAG,EAAE,KAAK,OAAO,CAAC,CAAC;IAC9F,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,CAAC,CAAC;IACjE,aAAa,CAAC,8EAAY,CAAC;IAC3B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,gEAAU,CAAC;IACvB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/uk-UA.json"],"sourcesContent":["{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: {startDate} — {endDate}\",\n \"selectedTimeDescription\": \"Вибраний час: {time}\",\n \"startDate\": \"Дата початку\",\n \"timeZoneName\": \"часовий пояс\",\n \"weekday\": \"день тижня\",\n \"year\": \"рік\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
1
+ {"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,wDAAQ,CAAC;IACxC,OAAO,CAAC,4BAAI,CAAC;IACb,aAAa,CAAC,6BAAK,CAAC;IACpB,WAAW,CAAC,mGAAe,CAAC;IAC5B,OAAO,CAAC,qBAAG,CAAC;IACZ,QAAQ,CAAC,0CAAM,CAAC;IAChB,UAAU,CAAC,iDAAO,CAAC;IACnB,SAAS,CAAC,0CAAM,CAAC;IACjB,UAAU,CAAC,iDAAO,CAAC;IACnB,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,EAAE;IACjE,4BAA4B,CAAC,OAAS,CAAC,mHAAmB,EAAE,KAAK,SAAS,CAAC,UAAG,EAAE,KAAK,OAAO,EAAE;IAC9F,2BAA2B,CAAC,OAAS,CAAC,gFAAc,EAAE,KAAK,IAAI,EAAE;IACjE,aAAa,CAAC,8EAAY,CAAC;IAC3B,gBAAgB,CAAC,8EAAY,CAAC;IAC9B,WAAW,CAAC,gEAAU,CAAC;IACvB,QAAQ,CAAC,qBAAG,CAAC;AACf","sources":["packages/@react-aria/datepicker/intl/uk-UA.json"],"sourcesContent":["{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: {startDate} — {endDate}\",\n \"selectedTimeDescription\": \"Вибраний час: {time}\",\n \"startDate\": \"Дата початку\",\n \"timeZoneName\": \"часовий пояс\",\n \"weekday\": \"день тижня\",\n \"year\": \"рік\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
@@ -1 +1 @@
1
- {"m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IACxD,CAAA,GAAA,sCAAgB,EAAE;QAChB,GAAG,KAAK;QACR;YACE,aAAa,UAAU;QACzB;IACF,GAAG,OAAO,MAAM,QAAQ;IAExB,IAAI,aAAoD;QACtD,MAAM;QACN,MAAM,MAAM,IAAI;QAChB,OAAO,EAAA,eAAA,MAAM,KAAK,cAAX,mCAAA,aAAa,QAAQ,OAAM;QAClC,UAAU,MAAM,UAAU;IAC5B;IAEA,IAAI,MAAM,kBAAkB,KAAK,UAAU;QACzC,qEAAqE;QACrE,iFAAiF;QACjF,WAAW,IAAI,GAAG;QAClB,WAAW,MAAM,GAAG;QACpB,WAAW,QAAQ,GAAG,MAAM,UAAU;QACtC,wBAAwB;QACxB,WAAW,QAAQ,GAAG,KAAO;IAC/B;IAEA,IAAI,WAAW,CAAA,GAAA,oCAAa,EAAE;IAC9B,OAAO;QACL,YAAY;YACV,GAAG,UAAU;YACb,SAAS;gBACP,aAAa,UAAU;YACzB;QACF;QACA,YAAY,CAAA,GAAA,gCAAS,EAAE,UAAU,eAAe,YAAY,kBAAkB;YAC5E,WAAU,CAAgB;gBACxB,IAAI,MAAM,SAAS,EACjB,MAAM,SAAS,CAAC;YAEpB;YACA,SAAQ,CAAgB;gBACtB,IAAI,MAAM,OAAO,EACf,MAAM,OAAO,CAAC;YAElB;QACF;oBACA;0BACA;2BACA;mBACA;0BACA;2BACA;IACF;AACF;AAYO,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAE9G;IADvB,IAAI,MAAM,0CAAa,OAAO,OAAO;IACrC,IAAI,UAAU,CAAC,KAAK,GAAG,EAAA,mBAAA,MAAM,SAAS,cAAf,uCAAA,iBAAiB,QAAQ,OAAM;IACtD,OAAO;AACT","sources":["packages/@react-aria/datepicker/src/useDateField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDateFieldProps as AriaDateFieldPropsBase, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState, TimeFieldState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useFormReset} from '@react-aria/utils';\nimport {InputHTMLAttributes, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useFormValidation} from '@react-aria/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\nexport interface AriaDateFieldOptions<T extends DateValue> extends Omit<AriaDateFieldPropsBase<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue' | 'validate'> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\nexport interface DateFieldAria extends ValidationResult {\n /** Props for the field's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the field grouping element. */\n fieldProps: GroupDOMAttributes,\n /** Props for the hidden input element for HTML form submission. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel: string,\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: AriaDateFieldOptions<T>, state: DateFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let valueOnFocus = useRef<DateValue | null>(null);\n let {focusWithinProps} = useFocusWithin({\n ...props,\n onFocusWithin(e) {\n valueOnFocus.current = state.value;\n props.onFocus?.(e);\n },\n onBlurWithin: (e) => {\n state.confirmPlaceholder();\n if (state.value !== valueOnFocus.current) {\n state.commitValidation();\n }\n props.onBlur?.(e);\n },\n onFocusWithinChange: props.onFocusChange\n });\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? stringFormatter.format(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n let groupProps = useDatePickerGroup(state, ref, props[roleSymbol] === 'presentation');\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [labelProps.id, props['aria-labelledby']].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: GroupDOMAttributes;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n useFormReset(props.inputRef, state.value, state.setValue);\n useFormValidation({\n ...props,\n focus() {\n focusManager.focusFirst();\n }\n }, state, props.inputRef);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = {\n type: 'hidden',\n name: props.name,\n value: state.value?.toString() || '',\n disabled: props.isDisabled\n };\n\n if (props.validationBehavior === 'native') {\n // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n inputProps.type = 'text';\n inputProps.hidden = true;\n inputProps.required = props.isRequired;\n // Ignore react warning.\n inputProps.onChange = () => {};\n }\n\n let domProps = filterDOMProps(props);\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps, {\n onKeyDown(e: KeyboardEvent) {\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n inputProps,\n descriptionProps,\n errorMessageProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n\nexport interface AriaTimeFieldOptions<T extends TimeValue> extends AriaTimeFieldProps<T> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldOptions<T>, state: TimeFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let res = useDateField(props, state, ref);\n res.inputProps.value = state.timeValue?.toString() || '';\n return res;\n}\n"],"names":[],"version":3,"file":"useDateField.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA2CM,MAAM,4CAAW,IAAI;AAIrB,MAAM,4CAAa,YAAY,KAAK,GAAG;AACvC,MAAM,4CAAqB,oBAAoB,KAAK,GAAG;AAOvD,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAsF5H;IArFT,IAAI,aAAC,SAAS,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,MAAM,iBAAiB;IAC9E,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,8BAAO,EAAE;QAC3E,GAAG,KAAK;QACR,kBAAkB;mBAClB;QACA,cAAc,MAAM,YAAY,IAAI;IACtC;IAEA,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAoB;IAC5C,IAAI,oBAAC,gBAAgB,EAAC,GAAG,CAAA,GAAA,2CAAa,EAAE;QACtC,GAAG,KAAK;QACR,eAAc,CAAC;gBAEb;YADA,aAAa,OAAO,GAAG,MAAM,KAAK;aAClC,iBAAA,MAAM,OAAO,cAAb,qCAAA,oBAAA,OAAgB;QAClB;QACA,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B;gBACtB,IAAI,MAAM,OAAO,EACf,MAAM,OAAO,CAAC;YAElB;QACF;oBACA;0BACA;2BACA;mBACA;0BACA;2BACA;IACF;AACF;AAYO,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAE9G;IADvB,IAAI,MAAM,0CAAa,OAAO,OAAO;IACrC,IAAI,UAAU,CAAC,KAAK,GAAG,EAAA,mBAAA,MAAM,SAAS,cAAf,uCAAA,iBAAiB,QAAQ,OAAM;IACtD,OAAO;AACT","sources":["packages/@react-aria/datepicker/src/useDateField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDateFieldProps as AriaDateFieldPropsBase, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState, TimeFieldState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useFormReset} from '@react-aria/utils';\nimport {InputHTMLAttributes, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useFormValidation} from '@react-aria/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\nexport interface AriaDateFieldOptions<T extends DateValue> extends Omit<AriaDateFieldPropsBase<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue' | 'validate'> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\nexport interface DateFieldAria extends ValidationResult {\n /** Props for the field's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the field grouping element. */\n fieldProps: GroupDOMAttributes,\n /** Props for the hidden input element for HTML form submission. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel?: string,\n ariaLabelledBy?: string,\n ariaDescribedBy?: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: AriaDateFieldOptions<T>, state: DateFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let valueOnFocus = useRef<DateValue | null>(null);\n let {focusWithinProps} = useFocusWithin({\n ...props,\n onFocusWithin(e) {\n valueOnFocus.current = state.value;\n props.onFocus?.(e);\n },\n onBlurWithin: (e) => {\n state.confirmPlaceholder();\n if (state.value !== valueOnFocus.current) {\n state.commitValidation();\n }\n props.onBlur?.(e);\n },\n onFocusWithinChange: props.onFocusChange\n });\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? stringFormatter.format(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n let groupProps = useDatePickerGroup(state, ref, props[roleSymbol] === 'presentation');\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [labelProps.id, props['aria-labelledby']].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: GroupDOMAttributes;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n useFormReset(props.inputRef, state.value, state.setValue);\n useFormValidation({\n ...props,\n focus() {\n focusManager.focusFirst();\n }\n }, state, props.inputRef);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = {\n type: 'hidden',\n name: props.name,\n value: state.value?.toString() || '',\n disabled: props.isDisabled\n };\n\n if (props.validationBehavior === 'native') {\n // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n inputProps.type = 'text';\n inputProps.hidden = true;\n inputProps.required = props.isRequired;\n // Ignore react warning.\n inputProps.onChange = () => {};\n }\n\n let domProps = filterDOMProps(props);\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps, {\n onKeyDown(e: KeyboardEvent) {\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n inputProps,\n descriptionProps,\n errorMessageProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n\nexport interface AriaTimeFieldOptions<T extends TimeValue> extends AriaTimeFieldProps<T> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldOptions<T>, state: TimeFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let res = useDateField(props, state, ref);\n res.inputProps.value = state.timeValue?.toString() || '';\n return res;\n}\n"],"names":[],"version":3,"file":"useDateField.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA2CM,MAAM,4CAAW,IAAI;AAIrB,MAAM,4CAAa,YAAY,KAAK,GAAG;AACvC,MAAM,4CAAqB,oBAAoB,KAAK,GAAG;AAOvD,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAsF5H;IArFT,IAAI,aAAC,SAAS,o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EA,IAAI,MAAM,kBAAkB,KAAK,UAAU;QACzC,qEAAqE;QACrE,iFAAiF;QACjF,WAAW,IAAI,GAAG;QAClB,WAAW,MAAM,GAAG;QACpB,WAAW,QAAQ,GAAG,MAAM,UAAU;QACtC,wBAAwB;QACxB,WAAW,QAAQ,GAAG,KAAO;IAC/B;IAEA,IAAI,WAAW,CAAA,GAAA,qBAAa,EAAE;IAC9B,OAAO;QACL,YAAY;YACV,GAAG,UAAU;YACb,SAAS;gBACP,aAAa,UAAU;YACzB;QACF;QACA,YAAY,CAAA,GAAA,iBAAS,EAAE,UAAU,eAAe,YAAY,kBAAkB;YAC5E,WAAU,CAAgB;gBACxB,IAAI,MAAM,SAAS,EACjB,MAAM,SAAS,CAAC;YAEpB;YACA,SAAQ,CAAgB;gBACtB,IAAI,MAAM,OAAO,EACf,MAAM,OAAO,CAAC;YAElB;QACF;oBACA;0BACA;2BACA;mBACA;0BACA;2BACA;IACF;AACF;AAYO,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAE9G;IADvB,IAAI,MAAM,0CAAa,OAAO,OAAO;IACrC,IAAI,UAAU,CAAC,KAAK,GAAG,EAAA,mBAAA,MAAM,SAAS,cAAf,uCAAA,iBAAiB,QAAQ,OAAM;IACtD,OAAO;AACT","sources":["packages/@react-aria/datepicker/src/useDateField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDateFieldProps as AriaDateFieldPropsBase, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState, TimeFieldState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useFormReset} from '@react-aria/utils';\nimport {InputHTMLAttributes, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useFormValidation} from '@react-aria/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\nexport interface AriaDateFieldOptions<T extends DateValue> extends Omit<AriaDateFieldPropsBase<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue' | 'validate'> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\nexport interface DateFieldAria extends ValidationResult {\n /** Props for the field's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the field grouping element. */\n fieldProps: GroupDOMAttributes,\n /** Props for the hidden input element for HTML form submission. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel: string,\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: AriaDateFieldOptions<T>, state: DateFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let valueOnFocus = useRef<DateValue | null>(null);\n let {focusWithinProps} = useFocusWithin({\n ...props,\n onFocusWithin(e) {\n valueOnFocus.current = state.value;\n props.onFocus?.(e);\n },\n onBlurWithin: (e) => {\n state.confirmPlaceholder();\n if (state.value !== valueOnFocus.current) {\n state.commitValidation();\n }\n props.onBlur?.(e);\n },\n onFocusWithinChange: props.onFocusChange\n });\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? stringFormatter.format(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n let groupProps = useDatePickerGroup(state, ref, props[roleSymbol] === 'presentation');\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [labelProps.id, props['aria-labelledby']].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: GroupDOMAttributes;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n useFormReset(props.inputRef, state.value, state.setValue);\n useFormValidation({\n ...props,\n focus() {\n focusManager.focusFirst();\n }\n }, state, props.inputRef);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = {\n type: 'hidden',\n name: props.name,\n value: state.value?.toString() || '',\n disabled: props.isDisabled\n };\n\n if (props.validationBehavior === 'native') {\n // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n inputProps.type = 'text';\n inputProps.hidden = true;\n inputProps.required = props.isRequired;\n // Ignore react warning.\n inputProps.onChange = () => {};\n }\n\n let domProps = filterDOMProps(props);\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps, {\n onKeyDown(e: KeyboardEvent) {\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n inputProps,\n descriptionProps,\n errorMessageProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n\nexport interface AriaTimeFieldOptions<T extends TimeValue> extends AriaTimeFieldProps<T> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldOptions<T>, state: TimeFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let res = useDateField(props, state, ref);\n res.inputProps.value = state.timeValue?.toString() || '';\n return res;\n}\n"],"names":[],"version":3,"file":"useDateField.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA2CM,MAAM,4CAAW,IAAI;AAIrB,MAAM,4CAAa,YAAY,KAAK,GAAG;AACvC,MAAM,4CAAqB,oBAAoB,KAAK,GAAG;AAOvD,SAAS,0CAAkC,KAA8B,EAAE,KAAqB,EAAE,GAA8B;QAsF5H;IArFT,IAAI,aAAC,SAAS,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,MAAM,iBAAiB;IAC9E,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC3E,GAAG,KAAK;QACR,kBAAkB;mBAClB;QACA,cAAc,MAAM,YAAY,IAAI;IACtC;IAEA,IAAI,eAAe,CAAA,GAAA,aAAK,EAAoB;IAC5C,IAAI,oBAAC,gBAAgB,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;QACtC,GAAG,KAAK;QACR,eAAc,CAAC;gBAEb;YADA,aAAa,OAAO,GAAG,MAAM,KAAK;aAClC,iBAAA,MAAM,OAAO,cAAb,qCAAA,oBAAA,OAAgB;QAClB;QACA,cAAc,CAAC;gBAKb;YAJA,MAAM,kBAAkB;YACxB,IAAI,MAAM,KAAK,KAAK,aAAa,OAAO,EACtC,MAAM,gBAAgB;aAExB,gBAAA,MAAM,MAAM,cAAZ,oCAAA,mBAAA,OAAe;QACjB;QACA,qBAAqB,MAAM,aAAa;IAC1C;IAEA,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAChE,IAAI,U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BAAiB,QAAQ,OAAM;IACtD,OAAO;AACT","sources":["packages/@react-aria/datepicker/src/useDateField.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDateFieldProps as AriaDateFieldPropsBase, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState, TimeFieldState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useFormReset} from '@react-aria/utils';\nimport {InputHTMLAttributes, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useFormValidation} from '@react-aria/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\nexport interface AriaDateFieldOptions<T extends DateValue> extends Omit<AriaDateFieldPropsBase<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue' | 'validate'> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\nexport interface DateFieldAria extends ValidationResult {\n /** Props for the field's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the field grouping element. */\n fieldProps: GroupDOMAttributes,\n /** Props for the hidden input element for HTML form submission. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel?: string,\n ariaLabelledBy?: string,\n ariaDescribedBy?: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: AriaDateFieldOptions<T>, state: DateFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let valueOnFocus = useRef<DateValue | null>(null);\n let {focusWithinProps} = useFocusWithin({\n ...props,\n onFocusWithin(e) {\n valueOnFocus.current = state.value;\n props.onFocus?.(e);\n },\n onBlurWithin: (e) => {\n state.confirmPlaceholder();\n if (state.value !== valueOnFocus.current) {\n state.commitValidation();\n }\n props.onBlur?.(e);\n },\n onFocusWithinChange: props.onFocusChange\n });\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? stringFormatter.format(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n let groupProps = useDatePickerGroup(state, ref, props[roleSymbol] === 'presentation');\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [labelProps.id, props['aria-labelledby']].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: GroupDOMAttributes;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n useFormReset(props.inputRef, state.value, state.setValue);\n useFormValidation({\n ...props,\n focus() {\n focusManager.focusFirst();\n }\n }, state, props.inputRef);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = {\n type: 'hidden',\n name: props.name,\n value: state.value?.toString() || '',\n disabled: props.isDisabled\n };\n\n if (props.validationBehavior === 'native') {\n // Use a hidden <input type=\"text\"> rather than <input type=\"hidden\">\n // so that an empty value blocks HTML form submission when the field is required.\n inputProps.type = 'text';\n inputProps.hidden = true;\n inputProps.required = props.isRequired;\n // Ignore react warning.\n inputProps.onChange = () => {};\n }\n\n let domProps = filterDOMProps(props);\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps, {\n onKeyDown(e: KeyboardEvent) {\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n inputProps,\n descriptionProps,\n errorMessageProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n\nexport interface AriaTimeFieldOptions<T extends TimeValue> extends AriaTimeFieldProps<T> {\n /** A ref for the hidden input element for HTML form submission. */\n inputRef?: RefObject<HTMLInputElement | null>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldOptions<T>, state: TimeFieldState, ref: RefObject<Element | null>): DateFieldAria {\n let res = useDateField(props, state, ref);\n res.inputProps.value = state.timeValue?.toString() || '';\n return res;\n}\n"],"names":[],"version":3,"file":"useDateField.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA2CM,SAAS,0CAAmC,KAA6B,EAAE,KAAsB,EAAE,GAA8B;IACtI,IAAI,WAAW,CAAA,GAAA,2BAAI;IACnB,IAAI,WAAW,CAAA,GAAA,2BAAI;IACnB,IAAI,UAAU,CAAA,GAAA,2BAAI;IAClB,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAEhE,IAAI,aAAC,SAAS,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,MAAM,iBAAiB;IAC9E,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,8BAAO,EAAE;QAC3E,GAAG,KAAK;QACR,kBAAkB;mBAClB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Y,CAAC,MAAM,iBAAiB,IAAK,MAAM,YAAY,IAAI,MAAM,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAC9K;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/datepicker/src/useDatePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\nexport interface DatePickerAria extends ValidationResult {\n /** Props for the date picker's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the grouping element containing the date field and button. */\n groupProps: GroupDOMAttributes,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<Element | null>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let fieldId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? stringFormatter.format('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let domProps = filterDOMProps(props);\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n let {focusWithinProps} = useFocusWithin({\n ...props,\n isDisabled: state.isOpen,\n onBlurWithin: props.onBlur,\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy,\n onKeyDown(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n id: fieldId,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n shouldForceLeadingZeros: props.shouldForceLeadingZeros,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationBehavior: props.validationBehavior,\n // DatePicker owns the validation state for the date field.\n [privateValidationStateProp]: state,\n autoFocus: props.autoFocus,\n name: props.name\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n 'aria-haspopup': 'dialog',\n 'aria-label': stringFormatter.format('calendar'),\n 'aria-labelledby': `${buttonId} ${labelledBy}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': state.isOpen,\n isDisabled: props.isDisabled || props.isReadOnly,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${buttonId} ${labelledBy}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n isInvalid: state.isInvalid,\n errorMessage: typeof props.errorMessage === 'function' ? props.errorMessage(state.displayValidation) : (props.errorMessage || state.displayValidation.validationErrors.join(' '))\n },\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useDatePicker.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA2CM,SAAS,0CAAmC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OAAO,CAAC;QAC/B;QACA,aAAa;YACX,IAAI;YACJ,mBAAmB,GAAG,SAAS,CAAC,EAAE,YAAY;QAChD;QACA,eAAe;YACb,WAAW;YACX,OAAO,MAAM,SAAS;YACtB,UAAU,MAAM,YAAY;YAC5B,UAAU,MAAM,QAAQ;YACxB,UAAU,MAAM,QAAQ;YACxB,YAAY,MAAM,UAAU;YAC5B,YAAY,MAAM,UAAU;YAC5B,mBAAmB,MAAM,iBAAiB;YAC1C,qBAAqB,MAAM,SAAS,GAAG,YAAY,MAAM,gBAAgB;YACzE,WAAW,MAAM,SAAS;YAC1B,cAAc,OAAO,MAAM,YAAY,KAAK,aAAa,MAAM,YAAY,CAAC,MAAM,iBAAiB,IAAK,MAAM,YAAY,IAAI,MAAM,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAC9K;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/datepicker/src/useDatePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\nexport interface DatePickerAria extends ValidationResult {\n /** Props for the date picker's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the grouping element containing the date field and button. */\n groupProps: GroupDOMAttributes,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<Element | null>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let fieldId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? stringFormatter.format('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let domProps = filterDOMProps(props);\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n let {focusWithinProps} = useFocusWithin({\n ...props,\n isDisabled: state.isOpen,\n onBlurWithin: props.onBlur,\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy,\n onKeyDown(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n id: fieldId,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n shouldForceLeadingZeros: props.shouldForceLeadingZeros,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationBehavior: props.validationBehavior,\n // DatePicker owns the validation state for the date field.\n [privateValidationStateProp]: state,\n autoFocus: props.autoFocus,\n name: props.name\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n 'aria-haspopup': 'dialog',\n 'aria-label': stringFormatter.format('calendar'),\n 'aria-labelledby': `${buttonId} ${labelledBy}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': state.isOpen,\n isDisabled: props.isDisabled || props.isReadOnly,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${buttonId} ${labelledBy}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n isInvalid: state.isInvalid,\n errorMessage: typeof props.errorMessage === 'function' ? props.errorMessage(state.displayValidation) : (props.errorMessage || state.displayValidation.validationErrors.join(' '))\n },\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useDatePicker.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA2CM,SAAS,0CAAmC,KAA6B,EAAE,KAAsB,EAAE,GAA8B;IACtI,IAAI,WAAW,CAAA,GAAA,YAAI;IACnB,IAAI,WAAW,CAAA,GAAA,YAAI;IACnB,IAAI,UAAU,CAAA,GAAA,YAAI;IAClB,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAEhE,IAAI,aAAC,SAAS,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,MAAM,iBAAiB;IAC9E,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC3E,GAAG,KAAK;QACR,kBAAkB;mBAClB;QACA,cAAc,MAAM,YAAY,IAAI;IACtC;IAEA,IAAI,aAAa,CAAA,GAAA,yCAAiB,EAAE,OAAO;IAE3C,IAAI,aAAa,UAAU,CAAC,kBAAkB,IAAI,WAAW,EAAE;IAE/D,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,OAAO,MAAM,WAAW,CAAC,QAAQ;QAAC,OAAO;IAAM;IACnD,IAAI,cAAc,OAAO,gBAAgB,MAAM,CAAC,2BAA2B;cAAC;IAAI,KAAK;IACrF,IAAI,YAAY,CAAA,GAA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5B,YAAY,MAAM,UAAU;YAC5B,oBAAoB,MAAM,kBAAkB;YAC5C,2DAA2D;YAC3D,CAAC,CAAA,GAAA,iCAAyB,EAAE,EAAE;YAC9B,WAAW,MAAM,SAAS;YAC1B,MAAM,MAAM,IAAI;QAClB;0BACA;2BACA;QACA,aAAa;YACX,GAAG,SAAS;YACZ,IAAI;YACJ,iBAAiB;YACjB,cAAc,gBAAgB,MAAM,CAAC;YACrC,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC;YAC9C,oBAAoB;YACpB,iBAAiB,MAAM,MAAM;YAC7B,YAAY,MAAM,UAAU,IAAI,MAAM,UAAU;YAChD,SAAS,IAAM,MAAM,OAAO,CAAC;QAC/B;QACA,aAAa;YACX,IAAI;YACJ,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC;QAChD;QACA,eAAe;YACb,WAAW;YACX,OAAO,MAAM,SAAS;YACtB,UAAU,MAAM,YAAY;YAC5B,UAAU,MAAM,QAAQ;YACxB,UAAU,MAAM,QAAQ;YACxB,YAAY,MAAM,UAAU;YAC5B,YAAY,MAAM,UAAU;YAC5B,mBAAmB,MAAM,iBAAiB;YAC1C,qBAAqB,MAAM,SAAS,GAAG,YAAY,MAAM,gBAAgB;YACzE,WAAW,MAAM,SAAS;YAC1B,cAAc,OAAO,MAAM,YAAY,KAAK,aAAa,MAAM,YAAY,CAAC,MAAM,iBAAiB,IAAK,MAAM,YAAY,IAAI,MAAM,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAC9K;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/datepicker/src/useDatePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\nexport interface DatePickerAria extends ValidationResult {\n /** Props for the date picker's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the grouping element containing the date field and button. */\n groupProps: GroupDOMAttributes,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<Element | null>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let fieldId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? stringFormatter.format('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let domProps = filterDOMProps(props);\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n let {focusWithinProps} = useFocusWithin({\n ...props,\n isDisabled: state.isOpen,\n onBlurWithin: props.onBlur,\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy,\n onKeyDown(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n id: fieldId,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n shouldForceLeadingZeros: props.shouldForceLeadingZeros,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationBehavior: props.validationBehavior,\n // DatePicker owns the validation state for the date field.\n [privateValidationStateProp]: state,\n autoFocus: props.autoFocus,\n name: props.name\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n 'aria-haspopup': 'dialog',\n 'aria-label': stringFormatter.format('calendar'),\n 'aria-labelledby': `${buttonId} ${labelledBy}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': state.isOpen,\n isDisabled: props.isDisabled || props.isReadOnly,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${buttonId} ${labelledBy}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n isInvalid: state.isInvalid,\n errorMessage: typeof props.errorMessage === 'function' ? props.errorMessage(state.displayValidation) : (props.errorMessage || state.displayValidation.validationErrors.join(' '))\n },\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useDatePicker.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA2CM,SAAS,0CAAmC,KAA6B,EAAE,KAAsB,EAAE,GAA8B;IACtI,IAAI,WAAW,CAAA,GAAA,YAAI;IACnB,IAAI,WAAW,CAAA,GAAA,YAAI;IACnB,IAAI,UAAU,CAAA,GAAA,YAAI;IAClB,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAEhE,IAAI,aAAC,SAAS,oBAAE,gBAAgB,qBAAE,iBAAiB,EAAC,GAAG,MAAM,iBAAiB;IAC9E,IAAI,cAAC,UAAU,cAAE,UAAU,oBAAE,gBAAgB,qBAAE,iBAAiB,EAA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cAAc,OAAO,MAAM,YAAY,KAAK,aAAa,MAAM,YAAY,CAAC,MAAM,iBAAiB,IAAK,MAAM,YAAY,IAAI,MAAM,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAC9K;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/datepicker/src/useDatePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\nexport interface DatePickerAria extends ValidationResult {\n /** Props for the date picker's visible label element, if any. */\n labelProps: DOMAttributes,\n /** Props for the grouping element containing the date field and button. */\n groupProps: GroupDOMAttributes,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the error message element, if any. */\n errorMessageProps: DOMAttributes,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<Element | null>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let fieldId = useId();\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/datepicker');\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span',\n isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? stringFormatter.format('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let domProps = filterDOMProps(props);\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n let {focusWithinProps} = useFocusWithin({\n ...props,\n isDisabled: state.isOpen,\n onBlurWithin: props.onBlur,\n onFocusWithin: props.onFocus,\n onFocusWithinChange: props.onFocusChange\n });\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group' as const,\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy,\n onKeyDown(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyDown) {\n props.onKeyDown(e);\n }\n },\n onKeyUp(e: KeyboardEvent) {\n if (state.isOpen) {\n return;\n }\n\n if (props.onKeyUp) {\n props.onKeyUp(e);\n }\n }\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n id: fieldId,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n shouldForceLeadingZeros: props.shouldForceLeadingZeros,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationBehavior: props.validationBehavior,\n // DatePicker owns the validation state for the date field.\n [privateValidationStateProp]: state,\n autoFocus: props.autoFocus,\n name: props.name\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n 'aria-haspopup': 'dialog',\n 'aria-label': stringFormatter.format('calendar'),\n 'aria-labelledby': `${buttonId} ${labelledBy}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': state.isOpen,\n isDisabled: props.isDisabled || props.isReadOnly,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${buttonId} ${labelledBy}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n isInvalid: state.isInvalid,\n errorMessage: typeof props.errorMessage === 'function' ? props.errorMessage(state.displayValidation) : (props.errorMessage || state.displayValidation.validationErrors.join(' '))\n },\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useDatePicker.module.js.map"}
@@ -47,6 +47,7 @@ function $715562ad3b4cced4$export$4a931266a3838b86(state, ref, disableArrowNavig
47
47
  // Focus the first placeholder segment from the end on mouse down/touch up in the field.
48
48
  let focusLast = ()=>{
49
49
  var _window_event;
50
+ if (!ref.current) return;
50
51
  // Try to find the segment prior to the element that was clicked on.
51
52
  let target = (_window_event = window.event) === null || _window_event === void 0 ? void 0 : _window_event.target;
52
53
  let walker = (0, $19S5E$reactariafocus.getFocusableTreeWalker)(ref.current, {
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AAQO,SAAS,0CAAmB,KAA8D,EAAE,GAA8B,EAAE,sBAAgC;IACjK,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,8BAAQ;IAC1B,IAAI,eAAe,CAAA,GAAA,oBAAM,EAAE,IAAM,CAAA,GAAA,wCAAiB,EAAE,MAAM;QAAC;KAAI;IAE/D,uCAAuC;IACvC,IAAI,YAAY,CAAC;QACf,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,GACpC;QAGF,IAAI,EAAE,MAAM,IAAK,CAAA,EAAE,GAAG,KAAK,eAAe,EAAE,GAAG,KAAK,SAAQ,KAAM,aAAa,OAAO;YACpF,EAAE,cAAc;YAChB,EAAE,eAAe;YACjB,MAAM,OAAO,CAAC;QAChB;QAEA,IAAI,wBACF;QAGF,OAAQ,EAAE,GAAG;YACX,KAAK;gBACH,EAAE,cAAc;gBAChB,EAAE,eAAe;gBACjB,IAAI,cAAc,OAChB,aAAa,SAAS;qBAEtB,aAAa,aAAa;gBAE5B;YACF,KAAK;gBACH,EAAE,cAAc;gBAChB,EAAE,eAAe;gBACjB,IAAI,cAAc,OAChB,aAAa,aAAa;qBAE1B,aAAa,SAAS;gBAExB;QACJ;IACF;IAEA,wFAAwF;IACxF,IAAI,YAAY;YAED;QADb,oEAAoE;QACpE,IAAI,UAAS,gBAAA,OAAO,KAAK,cAAZ,oCAAA,cAAc,MAAM;QACjC,IAAI,SAAS,CAAA,GAAA,4CAAqB,EAAE,IAAI,OAAO,EAAE;YAAC,UAAU;QAAI;QAChE,IAAI,QAAQ;YACV,OAAO,WAAW,GAAG;YACrB,SAAS,OAAO,YAAY;QAC9B;QAEA,0DAA0D;QAC1D,IAAI,CAAC,QAAQ;YACX,IAAI;YACJ,GAAG;gBACD,OAAO,OAAO,SAAS;gBACvB,IAAI,MACF,SAAS;YAEb,QAAS,MAAM;QACjB;QAEA,uEAAuE;QACvE,MAAO,mBAAA,6BAAA,OAAQ,YAAY,CAAC,oBAAqB;YAC/C,IAAI,OAAO,OAAO,YAAY;YAC9B,IAAI,QAAQ,KAAK,YAAY,CAAC,qBAC5B,SAAS;iBAET;QAEJ;QAEA,IAAI,QACF,OAAO,KAAK;IAEhB;IAEA,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;QAC1B,qBAAqB;QACrB,2BAA2B;QAC3B,cAAa,CAAC;YACZ,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;QACA,SAAQ,CAAC;YACP,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;IACF;IAEA,OAAO,CAAA,GAAA,gCAAS,EAAE,YAAY;mBAAC;IAAS;AAC1C","sources":["packages/@react-aria/datepicker/src/useDatePickerGroup.ts"],"sourcesContent":["import {createFocusManager, getFocusableTreeWalker} from '@react-aria/focus';\nimport {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {FocusableElement, KeyboardEvent, RefObject} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<Element | null>, disableArrowNavigation?: boolean) {\n let {direction} = useLocale();\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (!e.currentTarget.contains(e.target)) {\n return;\n }\n\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n\n if (disableArrowNavigation) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext();\n } else {\n focusManager.focusPrevious();\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious();\n } else {\n focusManager.focusNext();\n }\n break;\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as FocusableElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as FocusableElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: FocusableElement;\n do {\n last = walker.lastChild() as FocusableElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.hasAttribute('data-placeholder')) {\n let prev = walker.previousNode() as FocusableElement;\n if (prev && prev.hasAttribute('data-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n allowTextSelectionOnPress: true,\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n"],"names":[],"version":3,"file":"useDatePickerGroup.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAQO,SAAS,0CAAmB,KAA8D,EAAE,GAA8B,EAAE,sBAAgC;IACjK,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,8BAAQ;IAC1B,IAAI,eAAe,CAAA,GAAA,oBAA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AI,QACF,OAAO,KAAK;IAEhB;IAEA,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;QAC1B,qBAAqB;QACrB,2BAA2B;QAC3B,cAAa,CAAC;YACZ,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;QACA,SAAQ,CAAC;YACP,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;IACF;IAEA,OAAO,CAAA,GAAA,gCAAS,EAAE,YAAY;mBAAC;IAAS;AAC1C","sources":["packages/@react-aria/datepicker/src/useDatePickerGroup.ts"],"sourcesContent":["import {createFocusManager, getFocusableTreeWalker} from '@react-aria/focus';\nimport {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {FocusableElement, KeyboardEvent, RefObject} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<Element | null>, disableArrowNavigation?: boolean) {\n let {direction} = useLocale();\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (!e.currentTarget.contains(e.target)) {\n return;\n }\n\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n\n if (disableArrowNavigation) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext();\n } else {\n focusManager.focusPrevious();\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious();\n } else {\n focusManager.focusNext();\n }\n break;\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n if (!ref.current) {\n return;\n }\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as FocusableElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as FocusableElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: FocusableElement;\n do {\n last = walker.lastChild() as FocusableElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.hasAttribute('data-placeholder')) {\n let prev = walker.previousNode() as FocusableElement;\n if (prev && prev.hasAttribute('data-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n allowTextSelectionOnPress: true,\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n"],"names":[],"version":3,"file":"useDatePickerGroup.main.js.map"}
@@ -41,6 +41,7 @@ function $3dfb0f96be0d6a08$export$4a931266a3838b86(state, ref, disableArrowNavig
41
41
  // Focus the first placeholder segment from the end on mouse down/touch up in the field.
42
42
  let focusLast = ()=>{
43
43
  var _window_event;
44
+ if (!ref.current) return;
44
45
  // Try to find the segment prior to the element that was clicked on.
45
46
  let target = (_window_event = window.event) === null || _window_event === void 0 ? void 0 : _window_event.target;
46
47
  let walker = (0, $7CEvq$getFocusableTreeWalker)(ref.current, {
@@ -41,6 +41,7 @@ function $3dfb0f96be0d6a08$export$4a931266a3838b86(state, ref, disableArrowNavig
41
41
  // Focus the first placeholder segment from the end on mouse down/touch up in the field.
42
42
  let focusLast = ()=>{
43
43
  var _window_event;
44
+ if (!ref.current) return;
44
45
  // Try to find the segment prior to the element that was clicked on.
45
46
  let target = (_window_event = window.event) === null || _window_event === void 0 ? void 0 : _window_event.target;
46
47
  let walker = (0, $7CEvq$get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A,uEAAuE;QACvE,MAAO,mBAAA,6BAAA,OAAQ,YAAY,CAAC,oBAAqB;YAC/C,IAAI,OAAO,OAAO,YAAY;YAC9B,IAAI,QAAQ,KAAK,YAAY,CAAC,qBAC5B,SAAS;iBAET;QAEJ;QAEA,IAAI,QACF,OAAO,KAAK;IAEhB;IAEA,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC1B,qBAAqB;QACrB,2BAA2B;QAC3B,cAAa,CAAC;YACZ,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;QACA,SAAQ,CAAC;YACP,IAAI,EAAE,WAAW,KAAK,SACpB;QAEJ;IACF;IAEA,OAAO,CAAA,GAAA,iBAAS,EAAE,YAAY;mBAAC;IAAS;AAC1C","sources":["packages/@react-aria/datepicker/src/useDatePickerGroup.ts"],"sourcesContent":["import {createFocusManager, getFocusableTreeWalker} from '@react-aria/focus';\nimport {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {FocusableElement, KeyboardEvent, RefObject} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<Element | null>, disableArrowNavigation?: boolean) {\n let {direction} = useLocale();\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (!e.currentTarget.contains(e.target)) {\n return;\n }\n\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n\n if (disableArrowNavigation) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext();\n } else {\n focusManager.focusPrevious();\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious();\n } else {\n focusManager.focusNext();\n }\n break;\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as FocusableElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as FocusableElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: FocusableElement;\n do {\n last = walker.lastChild() as FocusableElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.hasAttribute('data-placeholder')) {\n let prev = walker.previousNode() as FocusableElement;\n if (prev && prev.hasAttribute('data-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n allowTextSelectionOnPress: true,\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n"],"names":[],"version":3,"file":"useDatePickerGroup.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAQO,SAAS,0CAAmB,KAA8D,EAAE,GAA8B,EAAE,sBAAgC;IACjK,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAC1B,IAAI,eAAe,CAAA,GAAA,cAAM,EAAE,IAAM,CAAA,GAAA,yBAAiB,EAAE,MAAM;QAAC;KAAI;IAE/D,uCAAuC;IACvC,IAAI,YAAY,CAAC;QACf,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,GACpC;QAGF,IAAI,EAAE,MAAM,IAAK,CAAA,EAAE,GAAG,KAAK,eAAe,EAAE,GAAG,KAAK,SAAQ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A,OAAO,CAAA,GAAA,iBAAS,EAAE,YAAY;mBAAC;IAAS;AAC1C","sources":["packages/@react-aria/datepicker/src/useDatePickerGroup.ts"],"sourcesContent":["import {createFocusManager, getFocusableTreeWalker} from '@react-aria/focus';\nimport {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {FocusableElement, KeyboardEvent, RefObject} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<Element | null>, disableArrowNavigation?: boolean) {\n let {direction} = useLocale();\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (!e.currentTarget.contains(e.target)) {\n return;\n }\n\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n\n if (disableArrowNavigation) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext();\n } else {\n focusManager.focusPrevious();\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious();\n } else {\n focusManager.focusNext();\n }\n break;\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n if (!ref.current) {\n return;\n }\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as FocusableElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as FocusableElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: FocusableElement;\n do {\n last = walker.lastChild() as FocusableElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.hasAttribute('data-placeholder')) {\n let prev = walker.previousNode() as FocusableElement;\n if (prev && prev.hasAttribute('data-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n allowTextSelectionOnPress: true,\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n"],"names":[],"version":3,"file":"useDatePickerGroup.module.js.map"}
@@ -40,7 +40,7 @@ $parcel$export(module.exports, "useDateRangePicker", () => $20f695b1b69e6b9e$exp
40
40
 
41
41
 
42
42
  function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
43
- var _state_value, _state_value1;
43
+ var _state_value, _state_value1, _state_dateRange;
44
44
  let stringFormatter = (0, $Xt1Bd$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($c1905b78f6d2f5bf$exports))), '@react-aria/datepicker');
45
45
  let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
46
46
  let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $Xt1Bd$reactarialabel.useField)({
@@ -105,6 +105,7 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
105
105
  });
106
106
  let startFieldValidation = (0, $Xt1Bd$react.useRef)((0, $Xt1Bd$reactstatelyform.DEFAULT_VALIDATION_RESULT));
107
107
  let endFieldValidation = (0, $Xt1Bd$react.useRef)((0, $Xt1Bd$reactstatelyform.DEFAULT_VALIDATION_RESULT));
108
+ var _state_value_start, _state_value_end;
108
109
  return {
109
110
  groupProps: (0, $Xt1Bd$reactariautils.mergeProps)(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
110
111
  role: 'group',
@@ -143,7 +144,7 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
143
144
  startFieldProps: {
144
145
  ...startFieldProps,
145
146
  ...commonFieldProps,
146
- value: (_state_value = state.value) === null || _state_value === void 0 ? void 0 : _state_value.start,
147
+ value: (_state_value_start = (_state_value = state.value) === null || _state_value === void 0 ? void 0 : _state_value.start) !== null && _state_value_start !== void 0 ? _state_value_start : null,
147
148
  onChange: (start)=>state.setDateTime('start', start),
148
149
  autoFocus: props.autoFocus,
149
150
  name: props.startName,
@@ -161,7 +162,7 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
161
162
  endFieldProps: {
162
163
  ...endFieldProps,
163
164
  ...commonFieldProps,
164
- value: (_state_value1 = state.value) === null || _state_value1 === void 0 ? void 0 : _state_value1.end,
165
+ value: (_state_value_end = (_state_value1 = state.value) === null || _state_value1 === void 0 ? void 0 : _state_value1.end) !== null && _state_value_end !== void 0 ? _state_value_end : null,
165
166
  onChange: (end)=>state.setDateTime('end', end),
166
167
  name: props.endName,
167
168
  [(0, $Xt1Bd$reactstatelyform.privateValidationStateProp)]: {
@@ -179,7 +180,7 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
179
180
  errorMessageProps: errorMessageProps,
180
181
  calendarProps: {
181
182
  autoFocus: true,
182
- value: state.dateRange,
183
+ value: ((_state_dateRange = state.dateRange) === null || _state_dateRange === void 0 ? void 0 : _state_dateRange.start) && state.dateRange.end ? state.dateRange : null,
183
184
  onChange: state.setDateRange,
184
185
  minValue: props.minValue,
185
186
  maxValue: props.maxValue,