ropav 0.5.0 → 0.7.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 (337) hide show
  1. package/README.md +32 -9
  2. package/dist/components/accordion/index.d.ts +2 -190
  3. package/dist/components/accordion/index.js +1 -12
  4. package/dist/components/alert/alert-indicator.js +1 -1
  5. package/dist/components/alert/index.d.ts +2 -131
  6. package/dist/components/alert/index.js +1 -10
  7. package/dist/components/alert-dialog/alert-dialog-close.js +1 -1
  8. package/dist/components/alert-dialog/alert-dialog-heading.js +2 -2
  9. package/dist/components/alert-dialog/alert-dialog.types.d.ts +1 -1
  10. package/dist/components/alert-dialog/index.d.ts +2 -296
  11. package/dist/components/alert-dialog/index.js +1 -17
  12. package/dist/components/autocomplete/autocomplete-popover.js +2 -2
  13. package/dist/components/autocomplete/autocomplete-root.js +1 -1
  14. package/dist/components/autocomplete/index.d.ts +2 -250
  15. package/dist/components/autocomplete/index.js +1 -12
  16. package/dist/components/avatar/avatar.context.d.ts +1 -1
  17. package/dist/components/avatar/index.d.ts +2 -101
  18. package/dist/components/avatar/index.js +1 -8
  19. package/dist/components/badge/badge-anchor.js +5 -4
  20. package/dist/components/badge/badge-auto-label.d.ts +4 -4
  21. package/dist/components/badge/badge-auto-label.js +2 -2
  22. package/dist/components/badge/badge-root.js +2 -2
  23. package/dist/components/badge/index.d.ts +2 -95
  24. package/dist/components/badge/index.js +1 -8
  25. package/dist/components/breadcrumbs/breadcrumbs-item.js +2 -2
  26. package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +2 -2
  27. package/dist/components/breadcrumbs/index.d.ts +2 -90
  28. package/dist/components/breadcrumbs/index.js +1 -7
  29. package/dist/components/button/index.d.ts +2 -61
  30. package/dist/components/button/index.js +1 -4
  31. package/dist/components/button-group/index.d.ts +2 -72
  32. package/dist/components/button-group/index.js +1 -7
  33. package/dist/components/calendar/calendar-grid-body.js +2 -2
  34. package/dist/components/calendar/calendar-grid-header.js +1 -1
  35. package/dist/components/calendar/calendar-grid.js +2 -1
  36. package/dist/components/calendar/calendar-root.d.ts +1 -1
  37. package/dist/components/calendar/calendar-root.js +13 -13
  38. package/dist/components/calendar/calendar.context.js +1 -1
  39. package/dist/components/calendar/calendar.types.d.ts +3 -1
  40. package/dist/components/calendar/index.d.ts +2 -422
  41. package/dist/components/calendar/index.js +1 -27
  42. package/dist/components/calendar-year-picker/calendar-year-picker-cell.js +15 -11
  43. package/dist/components/calendar-year-picker/calendar-year-picker-grid-body.js +9 -10
  44. package/dist/components/calendar-year-picker/calendar-year-picker-grid.js +36 -32
  45. package/dist/components/calendar-year-picker/calendar-year-picker-trigger-heading.js +1 -1
  46. package/dist/components/calendar-year-picker/calendar-year-picker-trigger.js +1 -1
  47. package/dist/components/calendar-year-picker/calendar-year-picker.context.d.ts +26 -8
  48. package/dist/components/calendar-year-picker/calendar-year-picker.context.js +2 -2
  49. package/dist/components/calendar-year-picker/calendar-year-picker.types.d.ts +8 -1
  50. package/dist/components/calendar-year-picker/index.d.ts +0 -134
  51. package/dist/components/calendar-year-picker/index.js +1 -11
  52. package/dist/components/card/index.d.ts +2 -152
  53. package/dist/components/card/index.js +1 -11
  54. package/dist/components/checkbox/index.d.ts +2 -146
  55. package/dist/components/checkbox/index.js +1 -9
  56. package/dist/components/checkbox-group/index.d.ts +2 -77
  57. package/dist/components/checkbox-group/index.js +1 -4
  58. package/dist/components/chip/chip-auto-label.d.ts +4 -4
  59. package/dist/components/chip/chip-auto-label.js +2 -2
  60. package/dist/components/chip/chip-root.js +2 -2
  61. package/dist/components/chip/index.d.ts +2 -72
  62. package/dist/components/chip/index.js +1 -7
  63. package/dist/components/close-button/index.d.ts +2 -55
  64. package/dist/components/close-button/index.js +1 -4
  65. package/dist/components/color-area/index.d.ts +2 -100
  66. package/dist/components/color-area/index.js +1 -7
  67. package/dist/components/color-field/color-field-root.js +1 -1
  68. package/dist/components/color-field/index.d.ts +2 -175
  69. package/dist/components/color-field/index.js +1 -14
  70. package/dist/components/color-input-group/index.d.ts +2 -115
  71. package/dist/components/color-input-group/index.js +1 -9
  72. package/dist/components/color-picker/color-picker-popover.js +2 -2
  73. package/dist/components/color-picker/index.d.ts +2 -110
  74. package/dist/components/color-picker/index.js +1 -8
  75. package/dist/components/color-slider/index.d.ts +2 -138
  76. package/dist/components/color-slider/index.js +1 -9
  77. package/dist/components/color-swatch/index.d.ts +2 -59
  78. package/dist/components/color-swatch/index.js +1 -4
  79. package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
  80. package/dist/components/color-swatch-picker/index.d.ts +2 -129
  81. package/dist/components/color-swatch-picker/index.js +1 -9
  82. package/dist/components/combo-box/combo-box-popover.js +2 -2
  83. package/dist/components/combo-box/combo-box.types.d.ts +1 -1
  84. package/dist/components/combo-box/index.d.ts +2 -229
  85. package/dist/components/combo-box/index.js +1 -10
  86. package/dist/components/date-field/date-field-root.js +2 -2
  87. package/dist/components/date-field/index.d.ts +2 -241
  88. package/dist/components/date-field/index.js +1 -12
  89. package/dist/components/date-input-group/use-date-segment.js +1 -1
  90. package/dist/components/date-picker/date-picker-popover.js +2 -2
  91. package/dist/components/date-picker/date-picker-root.js +6 -3
  92. package/dist/components/date-picker/index.d.ts +2 -186
  93. package/dist/components/date-picker/index.js +1 -9
  94. package/dist/components/date-range-picker/date-range-picker-popover.js +2 -2
  95. package/dist/components/date-range-picker/date-range-picker-root.js +6 -3
  96. package/dist/components/date-range-picker/index.d.ts +2 -209
  97. package/dist/components/date-range-picker/index.js +1 -10
  98. package/dist/components/description/index.d.ts +2 -45
  99. package/dist/components/description/index.js +1 -4
  100. package/dist/components/disclosure/disclosure-root.js +3 -3
  101. package/dist/components/disclosure/index.d.ts +2 -163
  102. package/dist/components/disclosure/index.js +1 -11
  103. package/dist/components/disclosure-group/index.d.ts +2 -57
  104. package/dist/components/disclosure-group/index.js +1 -4
  105. package/dist/components/drawer/drawer-close.js +1 -1
  106. package/dist/components/drawer/drawer-dialog.js +1 -1
  107. package/dist/components/drawer/drawer-heading.js +2 -2
  108. package/dist/components/drawer/drawer.types.d.ts +1 -1
  109. package/dist/components/drawer/index.d.ts +2 -291
  110. package/dist/components/drawer/index.js +1 -17
  111. package/dist/components/drop-zone/drop-zone-root.d.ts +23 -0
  112. package/dist/components/drop-zone/drop-zone-root.js +153 -0
  113. package/dist/components/drop-zone/drop-zone-trigger.d.ts +21 -0
  114. package/dist/components/drop-zone/drop-zone-trigger.js +20 -0
  115. package/dist/components/drop-zone/drop-zone.accept.d.ts +19 -0
  116. package/dist/components/drop-zone/drop-zone.accept.js +28 -0
  117. package/dist/components/drop-zone/drop-zone.context.d.ts +6 -0
  118. package/dist/components/drop-zone/drop-zone.context.js +5 -0
  119. package/dist/components/drop-zone/drop-zone.types.d.ts +30 -0
  120. package/dist/components/drop-zone/index.d.ts +8 -0
  121. package/dist/components/drop-zone/index.js +5 -0
  122. package/dist/components/dropdown/dropdown-popover.js +2 -2
  123. package/dist/components/dropdown/index.d.ts +2 -265
  124. package/dist/components/dropdown/index.js +1 -23
  125. package/dist/components/empty-state/index.d.ts +2 -45
  126. package/dist/components/empty-state/index.js +1 -4
  127. package/dist/components/error-message/index.d.ts +2 -45
  128. package/dist/components/error-message/index.js +1 -4
  129. package/dist/components/field-error/field-error-root.js +2 -2
  130. package/dist/components/field-error/index.d.ts +2 -66
  131. package/dist/components/field-error/index.js +1 -7
  132. package/dist/components/fieldset/index.d.ts +2 -110
  133. package/dist/components/fieldset/index.js +1 -9
  134. package/dist/components/form/index.d.ts +2 -49
  135. package/dist/components/form/index.js +1 -4
  136. package/dist/components/header/index.d.ts +2 -45
  137. package/dist/components/header/index.js +1 -4
  138. package/dist/components/i18n-provider/index.d.ts +2 -2
  139. package/dist/components/i18n-provider/index.js +1 -1
  140. package/dist/components/index.d.ts +1 -0
  141. package/dist/components/input/index.d.ts +2 -51
  142. package/dist/components/input/index.js +1 -4
  143. package/dist/components/input-group/index.d.ts +2 -141
  144. package/dist/components/input-group/index.js +1 -10
  145. package/dist/components/input-otp/index.d.ts +2 -151
  146. package/dist/components/input-otp/index.js +1 -9
  147. package/dist/components/kbd/index.d.ts +2 -86
  148. package/dist/components/kbd/index.js +1 -8
  149. package/dist/components/label/index.d.ts +2 -51
  150. package/dist/components/label/index.js +1 -4
  151. package/dist/components/link/index.d.ts +2 -94
  152. package/dist/components/link/index.js +1 -7
  153. package/dist/components/list-box/index.d.ts +2 -191
  154. package/dist/components/list-box/index.js +1 -14
  155. package/dist/components/list-box/list-box-drop-indicator.js +2 -2
  156. package/dist/components/list-box/list-box-root.js +4 -4
  157. package/dist/components/list-box-item/index.d.ts +2 -74
  158. package/dist/components/list-box-item/index.js +1 -7
  159. package/dist/components/list-box-item/list-box-item-root.js +2 -2
  160. package/dist/components/list-box-section/index.d.ts +2 -47
  161. package/dist/components/list-box-section/index.js +1 -4
  162. package/dist/components/menu/index.d.ts +2 -83
  163. package/dist/components/menu/index.js +1 -4
  164. package/dist/components/menu-item/index.d.ts +2 -96
  165. package/dist/components/menu-item/index.js +1 -8
  166. package/dist/components/menu-item/menu-item-root.js +2 -2
  167. package/dist/components/menu-section/index.d.ts +2 -63
  168. package/dist/components/menu-section/index.js +1 -4
  169. package/dist/components/meter/index.d.ts +2 -127
  170. package/dist/components/meter/index.js +1 -9
  171. package/dist/components/modal/index.d.ts +2 -296
  172. package/dist/components/modal/index.js +1 -17
  173. package/dist/components/modal/modal-close.js +1 -1
  174. package/dist/components/modal/modal-heading.js +2 -2
  175. package/dist/components/modal/modal.context.d.ts +2 -2
  176. package/dist/components/modal/modal.types.d.ts +1 -1
  177. package/dist/components/number-field/index.d.ts +2 -186
  178. package/dist/components/number-field/index.js +1 -10
  179. package/dist/components/number-field/number-field-decrement-button.js +1 -1
  180. package/dist/components/number-field/number-field-increment-button.js +1 -1
  181. package/dist/components/overlay/overlay-slots.d.ts +1 -1
  182. package/dist/components/pagination/index.d.ts +2 -244
  183. package/dist/components/pagination/index.js +1 -15
  184. package/dist/components/pagination/pagination-next.js +4 -1
  185. package/dist/components/pagination/pagination-previous.js +4 -1
  186. package/dist/components/popover/index.d.ts +2 -172
  187. package/dist/components/popover/index.js +1 -11
  188. package/dist/components/popover/popover-arrow.js +2 -2
  189. package/dist/components/popover/popover-content.js +2 -2
  190. package/dist/components/popover/popover-heading.js +2 -2
  191. package/dist/components/popover/popover.types.d.ts +1 -1
  192. package/dist/components/progress-bar/index.d.ts +2 -129
  193. package/dist/components/progress-bar/index.js +1 -9
  194. package/dist/components/progress-bar/progress-bar-root.js +4 -0
  195. package/dist/components/progress-bar/progress-bar.types.d.ts +7 -0
  196. package/dist/components/progress-circle/index.d.ts +2 -124
  197. package/dist/components/progress-circle/index.js +1 -9
  198. package/dist/components/radio/index.d.ts +2 -120
  199. package/dist/components/radio/index.js +1 -9
  200. package/dist/components/radio-group/index.d.ts +2 -79
  201. package/dist/components/radio-group/index.js +1 -4
  202. package/dist/components/range-calendar/index.d.ts +2 -424
  203. package/dist/components/range-calendar/index.js +1 -27
  204. package/dist/components/range-calendar/range-calendar-cell.js +4 -2
  205. package/dist/components/range-calendar/range-calendar-grid-body.js +2 -2
  206. package/dist/components/range-calendar/range-calendar-grid-header.js +1 -1
  207. package/dist/components/range-calendar/range-calendar-grid.js +2 -1
  208. package/dist/components/range-calendar/range-calendar-root.d.ts +3 -3
  209. package/dist/components/range-calendar/range-calendar-root.js +13 -13
  210. package/dist/components/range-calendar/range-calendar.context.d.ts +1 -1
  211. package/dist/components/range-calendar/range-calendar.context.js +1 -1
  212. package/dist/components/range-calendar/range-calendar.types.d.ts +3 -1
  213. package/dist/components/router-provider/index.d.ts +2 -2
  214. package/dist/components/router-provider/index.js +1 -1
  215. package/dist/components/scroll-shadow/index.d.ts +2 -69
  216. package/dist/components/scroll-shadow/index.js +1 -4
  217. package/dist/components/search-field/index.d.ts +2 -195
  218. package/dist/components/search-field/index.js +1 -10
  219. package/dist/components/search-field/search-field-clear-button.js +5 -5
  220. package/dist/components/segmented-control/index.d.ts +2 -126
  221. package/dist/components/segmented-control/index.js +1 -9
  222. package/dist/components/select/index.d.ts +2 -202
  223. package/dist/components/select/index.js +1 -10
  224. package/dist/components/select/select-popover.js +2 -2
  225. package/dist/components/select/select-value.js +1 -1
  226. package/dist/components/separator/index.d.ts +2 -41
  227. package/dist/components/separator/index.js +1 -4
  228. package/dist/components/sidebar/index.d.ts +2 -518
  229. package/dist/components/sidebar/index.js +1 -25
  230. package/dist/components/sidebar/sidebar-content.js +2 -2
  231. package/dist/components/sidebar/sidebar-item-tooltip.js +2 -2
  232. package/dist/components/sidebar/sidebar-panel.js +1 -0
  233. package/dist/components/sidebar/sidebar-rail.js +1 -0
  234. package/dist/components/sidebar/sidebar-root.js +26 -6
  235. package/dist/components/sidebar/sidebar.state.d.ts +3 -0
  236. package/dist/components/sidebar/sidebar.state.js +5 -0
  237. package/dist/components/sidebar/sidebar.types.d.ts +16 -2
  238. package/dist/components/skeleton/index.d.ts +2 -47
  239. package/dist/components/skeleton/index.js +1 -4
  240. package/dist/components/slider/index.d.ts +2 -180
  241. package/dist/components/slider/index.js +1 -11
  242. package/dist/components/spinner/index.d.ts +2 -41
  243. package/dist/components/spinner/index.js +1 -4
  244. package/dist/components/splitter/index.d.ts +2 -134
  245. package/dist/components/splitter/index.js +1 -8
  246. package/dist/components/surface/index.d.ts +2 -47
  247. package/dist/components/surface/index.js +1 -4
  248. package/dist/components/switch/index.d.ts +2 -165
  249. package/dist/components/switch/index.js +1 -10
  250. package/dist/components/switch-group/index.d.ts +2 -47
  251. package/dist/components/switch-group/index.js +1 -4
  252. package/dist/components/table/index.d.ts +2 -442
  253. package/dist/components/table/index.js +1 -23
  254. package/dist/components/table/table-body.js +9 -9
  255. package/dist/components/table/table-cell.js +3 -3
  256. package/dist/components/table/table-column.js +4 -4
  257. package/dist/components/table/table-content.js +3 -3
  258. package/dist/components/table/table-drag-handle.js +1 -1
  259. package/dist/components/table/table-drop-indicator.js +9 -7
  260. package/dist/components/table/table-header.js +4 -4
  261. package/dist/components/table/table-load-more.js +5 -5
  262. package/dist/components/table/table-row.js +4 -4
  263. package/dist/components/table/table.context.d.ts +2 -2
  264. package/dist/components/table/table.types.d.ts +3 -3
  265. package/dist/components/tabs/index.d.ts +2 -189
  266. package/dist/components/tabs/index.js +1 -12
  267. package/dist/components/tabs/tabs-list-container.js +2 -2
  268. package/dist/components/tag/index.d.ts +2 -76
  269. package/dist/components/tag/index.js +1 -7
  270. package/dist/components/tag/tag-remove-button.js +2 -2
  271. package/dist/components/tag-group/index.d.ts +2 -93
  272. package/dist/components/tag-group/index.js +1 -7
  273. package/dist/components/textarea/index.d.ts +2 -51
  274. package/dist/components/textarea/index.js +1 -4
  275. package/dist/components/textfield/index.d.ts +2 -109
  276. package/dist/components/textfield/index.js +1 -4
  277. package/dist/components/time-field/index.d.ts +2 -233
  278. package/dist/components/time-field/index.js +1 -12
  279. package/dist/components/toast/index.d.ts +2 -216
  280. package/dist/components/toast/index.js +1 -15
  281. package/dist/components/toast/toast-action-button.js +2 -2
  282. package/dist/components/toast/toast-default-content.js +1 -1
  283. package/dist/components/toast/toast-queue.d.ts +1 -1
  284. package/dist/components/toast/toast-queue.js +1 -1
  285. package/dist/components/toast/toast-root.js +1 -1
  286. package/dist/components/toast/toast.types.d.ts +3 -3
  287. package/dist/components/toggle-button/index.d.ts +2 -65
  288. package/dist/components/toggle-button/index.js +1 -4
  289. package/dist/components/toggle-button-group/index.d.ts +2 -82
  290. package/dist/components/toggle-button-group/index.js +1 -7
  291. package/dist/components/toolbar/index.d.ts +2 -49
  292. package/dist/components/toolbar/index.js +1 -4
  293. package/dist/components/tooltip/index.d.ts +2 -136
  294. package/dist/components/tooltip/index.js +1 -9
  295. package/dist/components/tooltip/tooltip-arrow.js +2 -2
  296. package/dist/components/tooltip/tooltip-root.js +1 -1
  297. package/dist/components/tooltip/tooltip.types.d.ts +1 -1
  298. package/dist/components/typography/code.js +2 -2
  299. package/dist/components/typography/heading.js +2 -2
  300. package/dist/components/typography/index.d.ts +2 -1269
  301. package/dist/components/typography/index.js +1 -10
  302. package/dist/components/typography/paragraph.js +2 -2
  303. package/dist/components/typography/typography-root.js +2 -2
  304. package/dist/composables/index.d.ts +1 -0
  305. package/dist/composables/use-calendar-grid.js +2 -1
  306. package/dist/composables/use-calendar-year-picker.js +12 -3
  307. package/dist/composables/use-color-slider.d.ts +1 -1
  308. package/dist/composables/use-color-slider.js +1 -1
  309. package/dist/composables/use-drag-and-drop.js +1 -1
  310. package/dist/composables/use-droppable-collection.js +1 -1
  311. package/dist/composables/use-droppable-item.js +1 -1
  312. package/dist/composables/use-press.d.ts +10 -0
  313. package/dist/composables/use-press.js +27 -2
  314. package/dist/composables/use-prevent-scroll.d.ts +11 -5
  315. package/dist/composables/use-prevent-scroll.js +11 -5
  316. package/dist/composables/use-range-calendar.js +2 -1
  317. package/dist/composables/use-text-field.js +1 -1
  318. package/dist/index.d.ts +1 -1
  319. package/dist/index.js +118 -114
  320. package/dist/styles-no-preflight.css +3 -0
  321. package/dist/styles-overrides.css +15 -0
  322. package/dist/styles.css +1 -16
  323. package/dist/utils/calendar-systems.d.ts +14 -0
  324. package/dist/utils/calendar-systems.js +2 -0
  325. package/dist/utils/calendar.d.ts +14 -5
  326. package/dist/utils/calendar.js +18 -21
  327. package/dist/utils/compose.d.ts +4 -6
  328. package/dist/utils/compose.js +4 -6
  329. package/dist/utils/dnd-list-drop-target-delegate.d.ts +19 -1
  330. package/dist/utils/dnd-list-drop-target-delegate.js +37 -6
  331. package/dist/utils/index.d.ts +1 -0
  332. package/dist/utils/virtualizer-list-layout.d.ts +8 -0
  333. package/dist/utils/virtualizer-list-layout.js +12 -2
  334. package/dist/utils/virtualizer-table-layout.d.ts +1 -0
  335. package/dist/utils/virtualizer-table-layout.js +3 -0
  336. package/dist/version.js +1 -1
  337. package/package.json +13 -6
@@ -8,430 +8,8 @@ import RangeCalendarHeader from "./range-calendar-header.js";
8
8
  import RangeCalendarHeading from "./range-calendar-heading.js";
9
9
  import RangeCalendarNavButton from "./range-calendar-nav-button.js";
10
10
  import RangeCalendarRoot from "./range-calendar-root.js";
11
- export declare const RangeCalendar: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
12
- attrs: any;
13
- slots: {
14
- default?: (props: import("./range-calendar.types.js").RangeCalendarRootSlotProps) => unknown;
15
- };
16
- emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("./index.js").DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
17
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
18
- props: import('vue').PublicProps & {
19
- class?: string;
20
- id?: string;
21
- ariaLabel?: string;
22
- ariaLabelledby?: string;
23
- ariaDescribedby?: string;
24
- ariaDetails?: string;
25
- value?: import("./index.js").DateRange | null;
26
- defaultValue?: import("./index.js").DateRange | null;
27
- focusedValue?: import("@internationalized/date").DateValue | null;
28
- defaultFocusedValue?: import("@internationalized/date").DateValue | null;
29
- minValue?: import("@internationalized/date").DateValue | null;
30
- maxValue?: import("@internationalized/date").DateValue | null;
31
- isDateUnavailable?: (date: import("@internationalized/date").DateValue, anchorDate: import("@internationalized/date").CalendarDate | null) => boolean;
32
- allowsNonContiguousRanges?: boolean;
33
- commitBehavior?: import("./index.js").RangeCalendarCommitBehavior;
34
- isDisabled?: boolean;
35
- isReadOnly?: boolean;
36
- isInvalid?: boolean;
37
- autoFocus?: boolean;
38
- visibleDuration?: import("@internationalized/date").DateDuration;
39
- pageBehavior?: import("../../index.js").PageBehavior;
40
- selectionAlignment?: import("../../index.js").SelectionAlignment;
41
- firstDayOfWeek?: import("../../index.js").DayOfWeek;
42
- weeksInMonth?: number;
43
- isYearPickerOpen?: boolean;
44
- defaultYearPickerOpen?: boolean;
45
- "onUpdate:focusedValue"?: ((value: import("@internationalized/date").CalendarDate) => any) | undefined;
46
- "onUpdate:value"?: ((value: import("./index.js").DateRange | null) => any) | undefined;
47
- "onUpdate:yearPickerOpen"?: ((isOpen: boolean) => any) | undefined;
48
- } & (typeof globalThis extends {
49
- __VLS_PROPS_FALLBACK: infer P;
50
- } ? P : {});
51
- expose: (exposed: {}) => void;
52
- attrs: any;
53
- slots: {
54
- default?: (props: import("./range-calendar.types.js").RangeCalendarRootSlotProps) => unknown;
55
- };
56
- emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("./index.js").DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
57
- }>) => import('vue').VNode & {
58
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
59
- }) & {
60
- Cell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
61
- attrs: any;
62
- slots: {
63
- default?: (props: import("./range-calendar.types.js").RangeCalendarCellSlotProps) => unknown;
64
- };
65
- emit: {};
66
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
67
- props: import('vue').PublicProps & {
68
- class?: string;
69
- date: import("@internationalized/date").CalendarDate;
70
- } & (typeof globalThis extends {
71
- __VLS_PROPS_FALLBACK: infer P;
72
- } ? P : {});
73
- expose: (exposed: {}) => void;
74
- attrs: any;
75
- slots: {
76
- default?: (props: import("./range-calendar.types.js").RangeCalendarCellSlotProps) => unknown;
77
- };
78
- emit: {};
79
- }>) => import('vue').VNode & {
80
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
81
- };
82
- CellIndicator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
83
- attrs: any;
84
- slots: {
85
- default?: () => unknown;
86
- };
87
- emit: {};
88
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
89
- props: import('vue').PublicProps & {
90
- class?: string;
91
- } & (typeof globalThis extends {
92
- __VLS_PROPS_FALLBACK: infer P;
93
- } ? P : {});
94
- expose: (exposed: {}) => void;
95
- attrs: any;
96
- slots: {
97
- default?: () => unknown;
98
- };
99
- emit: {};
100
- }>) => import('vue').VNode & {
101
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
102
- };
103
- Grid: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
104
- attrs: any;
105
- slots: {
106
- default?: () => unknown;
107
- };
108
- emit: {};
109
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
110
- props: import('vue').PublicProps & {
111
- class?: string;
112
- weekdayStyle?: import("../../index.js").WeekdayStyle;
113
- offset?: import("@internationalized/date").DateDuration;
114
- } & (typeof globalThis extends {
115
- __VLS_PROPS_FALLBACK: infer P;
116
- } ? P : {});
117
- expose: (exposed: {}) => void;
118
- attrs: any;
119
- slots: {
120
- default?: () => unknown;
121
- };
122
- emit: {};
123
- }>) => import('vue').VNode & {
124
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
125
- };
126
- GridBody: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
127
- attrs: any;
128
- slots: {
129
- default?: (props: import("./range-calendar.types.js").RangeCalendarGridBodySlotProps) => unknown;
130
- };
131
- emit: {};
132
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
133
- props: import('vue').PublicProps & {
134
- class?: string;
135
- } & (typeof globalThis extends {
136
- __VLS_PROPS_FALLBACK: infer P;
137
- } ? P : {});
138
- expose: (exposed: {}) => void;
139
- attrs: any;
140
- slots: {
141
- default?: (props: import("./range-calendar.types.js").RangeCalendarGridBodySlotProps) => unknown;
142
- };
143
- emit: {};
144
- }>) => import('vue').VNode & {
145
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
146
- };
147
- GridHeader: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
148
- attrs: any;
149
- slots: {
150
- default?: (props: import("./range-calendar.types.js").RangeCalendarGridHeaderSlotProps) => unknown;
151
- };
152
- emit: {};
153
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
154
- props: import('vue').PublicProps & {
155
- class?: string;
156
- } & (typeof globalThis extends {
157
- __VLS_PROPS_FALLBACK: infer P;
158
- } ? P : {});
159
- expose: (exposed: {}) => void;
160
- attrs: any;
161
- slots: {
162
- default?: (props: import("./range-calendar.types.js").RangeCalendarGridHeaderSlotProps) => unknown;
163
- };
164
- emit: {};
165
- }>) => import('vue').VNode & {
166
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
167
- };
168
- Header: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
169
- attrs: any;
170
- slots: {
171
- default?: () => unknown;
172
- };
173
- emit: {};
174
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
175
- props: import('vue').PublicProps & {
176
- class?: string;
177
- } & (typeof globalThis extends {
178
- __VLS_PROPS_FALLBACK: infer P;
179
- } ? P : {});
180
- expose: (exposed: {}) => void;
181
- attrs: any;
182
- slots: {
183
- default?: () => unknown;
184
- };
185
- emit: {};
186
- }>) => import('vue').VNode & {
187
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
188
- };
189
- HeaderCell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
190
- attrs: any;
191
- slots: {
192
- default?: () => unknown;
193
- };
194
- emit: {};
195
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
196
- props: import('vue').PublicProps & {
197
- class?: string;
198
- } & (typeof globalThis extends {
199
- __VLS_PROPS_FALLBACK: infer P;
200
- } ? P : {});
201
- expose: (exposed: {}) => void;
202
- attrs: any;
203
- slots: {
204
- default?: () => unknown;
205
- };
206
- emit: {};
207
- }>) => import('vue').VNode & {
208
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
209
- };
210
- Heading: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
211
- attrs: any;
212
- slots: {};
213
- emit: {};
214
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
215
- props: import('vue').PublicProps & {
216
- class?: string;
217
- offset?: import("@internationalized/date").DateDuration;
218
- format?: import("./index.js").CalendarHeadingFormatOptions;
219
- } & (typeof globalThis extends {
220
- __VLS_PROPS_FALLBACK: infer P;
221
- } ? P : {});
222
- expose: (exposed: {}) => void;
223
- attrs: any;
224
- slots: {};
225
- emit: {};
226
- }>) => import('vue').VNode & {
227
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
228
- };
229
- NavButton: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
230
- attrs: any;
231
- slots: {
232
- default?: () => unknown;
233
- };
234
- emit: {};
235
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
236
- props: import('vue').PublicProps & {
237
- class?: string;
238
- slot?: "previous" | "next";
239
- } & (typeof globalThis extends {
240
- __VLS_PROPS_FALLBACK: infer P;
241
- } ? P : {});
242
- expose: (exposed: {}) => void;
243
- attrs: any;
244
- slots: {
245
- default?: () => unknown;
246
- };
247
- emit: {};
248
- }>) => import('vue').VNode & {
249
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
250
- };
251
- Root: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
252
- attrs: any;
253
- slots: {
254
- default?: (props: import("./range-calendar.types.js").RangeCalendarRootSlotProps) => unknown;
255
- };
256
- emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("./index.js").DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
257
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
258
- props: import('vue').PublicProps & {
259
- class?: string;
260
- id?: string;
261
- ariaLabel?: string;
262
- ariaLabelledby?: string;
263
- ariaDescribedby?: string;
264
- ariaDetails?: string;
265
- value?: import("./index.js").DateRange | null;
266
- defaultValue?: import("./index.js").DateRange | null;
267
- focusedValue?: import("@internationalized/date").DateValue | null;
268
- defaultFocusedValue?: import("@internationalized/date").DateValue | null;
269
- minValue?: import("@internationalized/date").DateValue | null;
270
- maxValue?: import("@internationalized/date").DateValue | null;
271
- isDateUnavailable?: (date: import("@internationalized/date").DateValue, anchorDate: import("@internationalized/date").CalendarDate | null) => boolean;
272
- allowsNonContiguousRanges?: boolean;
273
- commitBehavior?: import("./index.js").RangeCalendarCommitBehavior;
274
- isDisabled?: boolean;
275
- isReadOnly?: boolean;
276
- isInvalid?: boolean;
277
- autoFocus?: boolean;
278
- visibleDuration?: import("@internationalized/date").DateDuration;
279
- pageBehavior?: import("../../index.js").PageBehavior;
280
- selectionAlignment?: import("../../index.js").SelectionAlignment;
281
- firstDayOfWeek?: import("../../index.js").DayOfWeek;
282
- weeksInMonth?: number;
283
- isYearPickerOpen?: boolean;
284
- defaultYearPickerOpen?: boolean;
285
- "onUpdate:focusedValue"?: ((value: import("@internationalized/date").CalendarDate) => any) | undefined;
286
- "onUpdate:value"?: ((value: import("./index.js").DateRange | null) => any) | undefined;
287
- "onUpdate:yearPickerOpen"?: ((isOpen: boolean) => any) | undefined;
288
- } & (typeof globalThis extends {
289
- __VLS_PROPS_FALLBACK: infer P;
290
- } ? P : {});
291
- expose: (exposed: {}) => void;
292
- attrs: any;
293
- slots: {
294
- default?: (props: import("./range-calendar.types.js").RangeCalendarRootSlotProps) => unknown;
295
- };
296
- emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("./index.js").DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
297
- }>) => import('vue').VNode & {
298
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
299
- };
300
- YearPickerCell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
301
- attrs: any;
302
- slots: {
303
- default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
304
- };
305
- emit: {};
306
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
307
- props: import('vue').PublicProps & {
308
- class?: string;
309
- year: number;
310
- excludeFromTabOrder?: boolean;
311
- } & (typeof globalThis extends {
312
- __VLS_PROPS_FALLBACK: infer P;
313
- } ? P : {});
314
- expose: (exposed: {}) => void;
315
- attrs: any;
316
- slots: {
317
- default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
318
- };
319
- emit: {};
320
- }>) => import('vue').VNode & {
321
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
322
- };
323
- YearPickerGrid: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
324
- attrs: any;
325
- slots: {
326
- default?: () => unknown;
327
- };
328
- emit: {};
329
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
330
- props: import('vue').PublicProps & {
331
- class?: string;
332
- visibleYears?: number;
333
- format?: import("../index.js").CalendarYearPickerFormatOptions;
334
- } & (typeof globalThis extends {
335
- __VLS_PROPS_FALLBACK: infer P;
336
- } ? P : {});
337
- expose: (exposed: {}) => void;
338
- attrs: any;
339
- slots: {
340
- default?: () => unknown;
341
- };
342
- emit: {};
343
- }>) => import('vue').VNode & {
344
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
345
- };
346
- YearPickerGridBody: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
347
- attrs: any;
348
- slots: {
349
- default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
350
- };
351
- emit: {};
352
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
353
- props: import('vue').PublicProps & {
354
- class?: string;
355
- } & (typeof globalThis extends {
356
- __VLS_PROPS_FALLBACK: infer P;
357
- } ? P : {});
358
- expose: (exposed: {}) => void;
359
- attrs: any;
360
- slots: {
361
- default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
362
- };
363
- emit: {};
364
- }>) => import('vue').VNode & {
365
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
366
- };
367
- YearPickerTrigger: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
368
- attrs: any;
369
- slots: {
370
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
371
- };
372
- emit: {};
373
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
374
- props: import('vue').PublicProps & {
375
- class?: string;
376
- } & (typeof globalThis extends {
377
- __VLS_PROPS_FALLBACK: infer P;
378
- } ? P : {});
379
- expose: (exposed: {}) => void;
380
- attrs: any;
381
- slots: {
382
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
383
- };
384
- emit: {};
385
- }>) => import('vue').VNode & {
386
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
387
- };
388
- YearPickerTriggerHeading: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
389
- attrs: any;
390
- slots: {
391
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
392
- };
393
- emit: {};
394
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
395
- props: import('vue').PublicProps & {
396
- class?: string;
397
- offset?: import("@internationalized/date").DateDuration;
398
- format?: import("./index.js").CalendarHeadingFormatOptions;
399
- } & (typeof globalThis extends {
400
- __VLS_PROPS_FALLBACK: infer P;
401
- } ? P : {});
402
- expose: (exposed: {}) => void;
403
- attrs: any;
404
- slots: {
405
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
406
- };
407
- emit: {};
408
- }>) => import('vue').VNode & {
409
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
410
- };
411
- YearPickerTriggerIndicator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
412
- attrs: any;
413
- slots: {
414
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
415
- };
416
- emit: {};
417
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
418
- props: import('vue').PublicProps & {
419
- class?: string;
420
- } & (typeof globalThis extends {
421
- __VLS_PROPS_FALLBACK: infer P;
422
- } ? P : {});
423
- expose: (exposed: {}) => void;
424
- attrs: any;
425
- slots: {
426
- default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
427
- };
428
- emit: {};
429
- }>) => import('vue').VNode & {
430
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
431
- };
432
- };
433
- export { RangeCalendarCell, RangeCalendarCellIndicator, RangeCalendarGrid, RangeCalendarGridBody, RangeCalendarGridHeader, RangeCalendarHeader, RangeCalendarHeaderCell, RangeCalendarHeading, RangeCalendarNavButton, RangeCalendarRoot, };
434
- export type { RangeCalendarCellIndicatorProps, RangeCalendarCellProps, RangeCalendarCellSlotProps, RangeCalendarGridBodyProps, RangeCalendarGridBodySlotProps, RangeCalendarGridHeaderProps, RangeCalendarGridHeaderSlotProps, RangeCalendarGridProps, RangeCalendarHeaderCellProps, RangeCalendarHeaderProps, RangeCalendarHeadingProps, RangeCalendarNavButtonProps, RangeCalendarRootProps, RangeCalendarRootProps as RangeCalendarProps, RangeCalendarRootSlotProps, } from "./range-calendar.types.js";
11
+ export { RangeCalendarCell, RangeCalendarCellIndicator, RangeCalendarGrid, RangeCalendarGridBody, RangeCalendarGridHeader, RangeCalendarHeader, RangeCalendarHeaderCell, RangeCalendarHeading, RangeCalendarNavButton, RangeCalendarRoot as RangeCalendar, };
12
+ export type { RangeCalendarCellIndicatorProps, RangeCalendarCellProps, RangeCalendarCellSlotProps, RangeCalendarGridBodyProps, RangeCalendarGridBodySlotProps, RangeCalendarGridHeaderProps, RangeCalendarGridHeaderSlotProps, RangeCalendarGridProps, RangeCalendarHeaderCellProps, RangeCalendarHeaderProps, RangeCalendarHeadingProps, RangeCalendarNavButtonProps, RangeCalendarRootProps as RangeCalendarProps, RangeCalendarRootSlotProps as RangeCalendarSlotProps, } from "./range-calendar.types.js";
435
13
  export { provideRangeCalendarContext, provideRangeCalendarOwnerContext, useRangeCalendarContext, useRangeCalendarOwnerContext, } from "./range-calendar.context.js";
436
14
  export type { RangeCalendarContext, RangeCalendarOwnedProps, RangeCalendarOwnerContext, } from "./range-calendar.context.js";
437
15
  export type { AnyCalendarState, DateRange } from "../../composables/use-calendar.js";
@@ -1,9 +1,3 @@
1
- import calendar_year_picker_cell_default from "../calendar-year-picker/calendar-year-picker-cell.js";
2
- import calendar_year_picker_grid_body_default from "../calendar-year-picker/calendar-year-picker-grid-body.js";
3
- import calendar_year_picker_grid_default from "../calendar-year-picker/calendar-year-picker-grid.js";
4
- import calendar_year_picker_trigger_heading_default from "../calendar-year-picker/calendar-year-picker-trigger-heading.js";
5
- import calendar_year_picker_trigger_indicator_default from "../calendar-year-picker/calendar-year-picker-trigger-indicator.js";
6
- import calendar_year_picker_trigger_default from "../calendar-year-picker/calendar-year-picker-trigger.js";
7
1
  import { provideRangeCalendarContext, provideRangeCalendarOwnerContext, useRangeCalendarContext, useRangeCalendarOwnerContext } from "./range-calendar.context.js";
8
2
  import range_calendar_cell_indicator_default from "./range-calendar-cell-indicator.js";
9
3
  import range_calendar_cell_default from "./range-calendar-cell.js";
@@ -16,24 +10,4 @@ import range_calendar_heading_default from "./range-calendar-heading.js";
16
10
  import range_calendar_nav_button_default from "./range-calendar-nav-button.js";
17
11
  import range_calendar_root_default from "./range-calendar-root.js";
18
12
  import { rangeCalendarVariants } from "@ropav/styles";
19
- //#region src/components/range-calendar/index.ts
20
- var RangeCalendar = Object.assign(range_calendar_root_default, {
21
- Cell: range_calendar_cell_default,
22
- CellIndicator: range_calendar_cell_indicator_default,
23
- Grid: range_calendar_grid_default,
24
- GridBody: range_calendar_grid_body_default,
25
- GridHeader: range_calendar_grid_header_default,
26
- Header: range_calendar_header_default,
27
- HeaderCell: range_calendar_header_cell_default,
28
- Heading: range_calendar_heading_default,
29
- NavButton: range_calendar_nav_button_default,
30
- Root: range_calendar_root_default,
31
- YearPickerCell: calendar_year_picker_cell_default,
32
- YearPickerGrid: calendar_year_picker_grid_default,
33
- YearPickerGridBody: calendar_year_picker_grid_body_default,
34
- YearPickerTrigger: calendar_year_picker_trigger_default,
35
- YearPickerTriggerHeading: calendar_year_picker_trigger_heading_default,
36
- YearPickerTriggerIndicator: calendar_year_picker_trigger_indicator_default
37
- });
38
- //#endregion
39
- export { RangeCalendar, range_calendar_cell_default as RangeCalendarCell, range_calendar_cell_indicator_default as RangeCalendarCellIndicator, range_calendar_grid_default as RangeCalendarGrid, range_calendar_grid_body_default as RangeCalendarGridBody, range_calendar_grid_header_default as RangeCalendarGridHeader, range_calendar_header_default as RangeCalendarHeader, range_calendar_header_cell_default as RangeCalendarHeaderCell, range_calendar_heading_default as RangeCalendarHeading, range_calendar_nav_button_default as RangeCalendarNavButton, range_calendar_root_default as RangeCalendarRoot, provideRangeCalendarContext, provideRangeCalendarOwnerContext, rangeCalendarVariants, useRangeCalendarContext, useRangeCalendarOwnerContext };
13
+ export { range_calendar_root_default as RangeCalendar, range_calendar_cell_default as RangeCalendarCell, range_calendar_cell_indicator_default as RangeCalendarCellIndicator, range_calendar_grid_default as RangeCalendarGrid, range_calendar_grid_body_default as RangeCalendarGridBody, range_calendar_grid_header_default as RangeCalendarGridHeader, range_calendar_header_default as RangeCalendarHeader, range_calendar_header_cell_default as RangeCalendarHeaderCell, range_calendar_heading_default as RangeCalendarHeading, range_calendar_nav_button_default as RangeCalendarNavButton, provideRangeCalendarContext, provideRangeCalendarOwnerContext, rangeCalendarVariants, useRangeCalendarContext, useRangeCalendarOwnerContext };
@@ -4,11 +4,11 @@ import { useCalendarGridContext, useCalendarStateContext } from "../calendar/cal
4
4
  import { isRangeCalendarState } from "../../composables/use-calendar.js";
5
5
  import { useCalendarCell } from "../../composables/use-calendar-cell.js";
6
6
  import { useRangeCalendarContext } from "./range-calendar.context.js";
7
- import { child, computed, createSlot, defineVaporComponent, on, renderEffect, setAttr, setDynamicProps, setInsertionState, setStaticTemplateRef, setText, shallowRef, template, toDisplayString, unref } from "vue";
7
+ import { child, computed, createSlot, defineVaporComponent, on, renderEffect, setAttr, setClass, setDynamicProps, setInsertionState, setStaticTemplateRef, setText, shallowRef, template, toDisplayString, unref } from "vue";
8
8
  import { isSameDay, isSameMonth } from "@internationalized/date";
9
9
  //#region src/components/range-calendar/range-calendar-cell.vue?vue&type=script&setup=true&vapor=true&lang.ts
10
10
  var t0 = template(" ");
11
- var t1 = template("<td><div><span class=range-calendar__cell-button data-slot=range-calendar-cell-button>", 1);
11
+ var t1 = template("<td><div><span data-slot=range-calendar-cell-button>", 1);
12
12
  var range_calendar_cell_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
13
13
  __name: "range-calendar-cell",
14
14
  props: {
@@ -61,6 +61,7 @@ var range_calendar_cell_vue_vue_type_script_setup_true_vapor_true_lang_default =
61
61
  };
62
62
  });
63
63
  const styles = computed(() => slots.value.cell({ class: props.class }));
64
+ const buttonStyles = computed(() => slots.value.cellButton());
64
65
  const slotProps = computed(() => ({
65
66
  date: props.date,
66
67
  formattedDate: cell.formattedDate.value,
@@ -106,6 +107,7 @@ var range_calendar_cell_vue_vue_type_script_setup_true_vapor_true_lang_default =
106
107
  "data-today": _dataAttr(_cell.isToday.value),
107
108
  "data-unavailable": _dataAttr(_cell.isUnavailable.value)
108
109
  }, _cell.buttonAttrs.value]);
110
+ setClass(n3, buttonStyles.value);
109
111
  setAttr(n3, "data-disabled", _dataAttr_cell_isDisabled_value);
110
112
  setAttr(n3, "data-hovered", _dataAttr_interaction_isHovered_value);
111
113
  setAttr(n3, "data-pressed", _dataAttr_cell_isPressed_value);
@@ -1,6 +1,6 @@
1
1
  import { useLocale } from "../../composables/use-locale.js";
2
- import { getDayViewGridRows } from "../../utils/calendar.js";
3
2
  import { useCalendarGridContext, useCalendarStateContext } from "../calendar/calendar.context.js";
3
+ import { getDayViewGridRows } from "../../utils/calendar.js";
4
4
  import { useRangeCalendarContext } from "./range-calendar.context.js";
5
5
  import { computed, createFor, createIf, createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
6
6
  //#region src/components/range-calendar/range-calendar-grid-body.vue?vue&type=script&setup=true&vapor=true&lang.ts
@@ -45,7 +45,7 @@ var range_calendar_grid_body_vue_vue_type_script_setup_true_vapor_true_lang_defa
45
45
  }, () => {
46
46
  return t0();
47
47
  }, 266);
48
- }, (date, index) => index, 17);
48
+ }, (date, index) => index, 81);
49
49
  return n10;
50
50
  }, (row, week) => week, 9);
51
51
  return n11;
@@ -1,6 +1,6 @@
1
1
  import { useLocale } from "../../composables/use-locale.js";
2
- import { getDayViewWeekDayLabels } from "../../utils/calendar.js";
3
2
  import { useCalendarGridContext } from "../calendar/calendar.context.js";
3
+ import { getDayViewWeekDayLabels } from "../../utils/calendar.js";
4
4
  import { useRangeCalendarContext } from "./range-calendar.context.js";
5
5
  import { child, computed, createFor, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
6
6
  //#region src/components/range-calendar/range-calendar-grid-header.vue?vue&type=script&setup=true&vapor=true&lang.ts
@@ -1,4 +1,5 @@
1
1
  import { provideCalendarGridContext, useCalendarStateContext } from "../calendar/calendar.context.js";
2
+ import { DEFAULT_WEEKDAY_STYLE } from "../../utils/calendar.js";
2
3
  import { useCalendarGrid } from "../../composables/use-calendar-grid.js";
3
4
  import { provideRangeCalendarContext, useRangeCalendarContext } from "./range-calendar.context.js";
4
5
  import { computed, createSlot, defineVaporComponent, on, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
@@ -9,7 +10,7 @@ var range_calendar_grid_vue_vue_type_script_setup_true_vapor_true_lang_default =
9
10
  __name: "range-calendar-grid",
10
11
  props: {
11
12
  class: {},
12
- weekdayStyle: { default: "short" },
13
+ weekdayStyle: { default: DEFAULT_WEEKDAY_STYLE },
13
14
  offset: {}
14
15
  },
15
16
  setup(__props) {
@@ -1,9 +1,9 @@
1
1
  import type { DateRange } from "../../composables/use-calendar.js";
2
2
  import type { RangeCalendarRootProps, RangeCalendarRootSlotProps } from "./range-calendar.types.js";
3
- import type { CalendarDate as CalendarDateValue } from "@internationalized/date";
3
+ import type { CalendarDate } from "@internationalized/date";
4
4
  declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
5
5
  props: import('vue').PublicProps & __VLS_PrettifyLocal<RangeCalendarRootProps & {
6
- "onUpdate:focusedValue"?: ((value: CalendarDateValue) => any) | undefined;
6
+ "onUpdate:focusedValue"?: ((value: CalendarDate) => any) | undefined;
7
7
  "onUpdate:value"?: ((value: DateRange | null) => any) | undefined;
8
8
  "onUpdate:yearPickerOpen"?: ((isOpen: boolean) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
@@ -14,7 +14,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
14
14
  slots: {
15
15
  default?: (props: RangeCalendarRootSlotProps) => unknown;
16
16
  };
17
- emit: ((evt: "update:focusedValue", value: CalendarDateValue) => void) & ((evt: "update:value", value: DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
17
+ emit: ((evt: "update:focusedValue", value: CalendarDate) => void) & ((evt: "update:value", value: DateRange | null) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
18
18
  }>) => import('vue').VNode & {
19
19
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
20
20
  };
@@ -2,15 +2,15 @@ import { dataAttr } from "../../utils/assertion.js";
2
2
  import { useControllableState } from "../../composables/use-controllable-state.js";
3
3
  import { useLocale } from "../../composables/use-locale.js";
4
4
  import { visuallyHiddenStyle } from "../../utils/visually-hidden.js";
5
- import { provideYearPickerContext } from "../calendar-year-picker/calendar-year-picker.context.js";
6
- import { getGregorianYearOffset } from "../../utils/calendar.js";
7
5
  import { provideCalendarStateContext } from "../calendar/calendar.context.js";
6
+ import { getDefaultYearBounds } from "../../utils/calendar.js";
7
+ import { provideYearPickerContext } from "../calendar-year-picker/calendar-year-picker.context.js";
8
8
  import { provideRangeCalendarContext, useRangeCalendarOwnerContext } from "./range-calendar.context.js";
9
9
  import { useRangeCalendar } from "../../composables/use-range-calendar.js";
10
10
  import { useRangeCalendarState } from "../../composables/use-range-calendar-state.js";
11
11
  import { child, computed, createSlot, defineVaporComponent, next, on, renderEffect, setAttr, setDynamicProps, setInsertionState, setProp, setStaticTemplateRef, setStyle, setText, shallowRef, template, toDisplayString, txt, unref } from "vue";
12
12
  import { rangeCalendarVariants } from "@ropav/styles";
13
- import { CalendarDate, DateFormatter, createCalendar } from "@internationalized/date";
13
+ import { DateFormatter, GregorianCalendar } from "@internationalized/date";
14
14
  //#region src/components/range-calendar/range-calendar-root.vue?vue&type=script&setup=true&vapor=true&lang.ts
15
15
  var t0 = template("<div><div><h2> </div><!><div><button tabindex=-1 type=button>", 1);
16
16
  var range_calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
@@ -62,7 +62,8 @@ var range_calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default =
62
62
  defaultYearPickerOpen: {
63
63
  type: Boolean,
64
64
  default: false
65
- }
65
+ },
66
+ createCalendar: {}
66
67
  },
67
68
  emits: [
68
69
  "update:value",
@@ -84,17 +85,16 @@ var range_calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default =
84
85
  const owner = useRangeCalendarOwnerContext();
85
86
  const owned = computed(() => owner?.props.value ?? {});
86
87
  const isDateUnavailable = Boolean(props.isDateUnavailable ?? owned.value.isDateUnavailable) ? (date, anchorDate) => Boolean((props.isDateUnavailable ?? owned.value.isDateUnavailable)?.(date, anchorDate)) : void 0;
88
+ const createCalendar = (identifier) => props.createCalendar?.(identifier) ?? new GregorianCalendar();
89
+ const calendarSystem = computed(() => createCalendar(new DateFormatter(locale.value.locale).resolvedOptions().calendar));
87
90
  /**
88
91
  * Default bounds spanning 1900 to 2099, expressed in the locale's own calendar system.
89
92
  *
90
- * Without them the year picker would have nothing to size itself against. The offset is what keeps
91
- * "1900" the same stretch of real time in a Buddhist or Hebrew calendar rather than a year nobody
92
- * recognises.
93
+ * Without them the year picker would have nothing to size itself against.
93
94
  */
94
- const calendarSystem = computed(() => createCalendar(new DateFormatter(locale.value.locale).resolvedOptions().calendar));
95
- const yearOffset = computed(() => getGregorianYearOffset(calendarSystem.value.identifier));
96
- const minValue = computed(() => props.minValue ?? owned.value.minValue ?? new CalendarDate(calendarSystem.value, 1900 + yearOffset.value, 1, 1));
97
- const maxValue = computed(() => props.maxValue ?? owned.value.maxValue ?? new CalendarDate(calendarSystem.value, 2099 + yearOffset.value, 12, 31));
95
+ const defaultBounds = computed(() => getDefaultYearBounds(calendarSystem.value));
96
+ const minValue = computed(() => props.minValue ?? owned.value.minValue ?? defaultBounds.value.minValue);
97
+ const maxValue = computed(() => props.maxValue ?? owned.value.maxValue ?? defaultBounds.value.maxValue);
98
98
  const state = useRangeCalendarState({
99
99
  allowsNonContiguousRanges: () => props.allowsNonContiguousRanges ?? owned.value.allowsNonContiguousRanges,
100
100
  autoFocus: () => props.autoFocus ?? owned.value.autoFocus,
@@ -153,8 +153,8 @@ var range_calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default =
153
153
  * lays its single row out differently from a month grid, and a day view differently again.
154
154
  */
155
155
  const styles = computed(() => slots.value.base({ class: [
156
- props.visibleDuration?.weeks != null && "range-calendar--week-view",
157
- props.visibleDuration?.days != null && "range-calendar--day-view",
156
+ props.visibleDuration?.weeks != null && "rp-range-calendar--week-view",
157
+ props.visibleDuration?.days != null && "rp-range-calendar--day-view",
158
158
  props.class
159
159
  ].filter(Boolean).join(" ") }));
160
160
  const slotProps = computed(() => ({
@@ -13,7 +13,7 @@ export interface RangeCalendarContext {
13
13
  * Carries the styling and the day-view shape down to the parts.
14
14
  *
15
15
  * Kept apart from the single calendar's context even though the two hold the same shape, because
16
- * the classes differ: a range cell is styled by `range-calendar__cell`, and a part that read the
16
+ * the classes differ: a range cell is styled by `rp-range-calendar__cell`, and a part that read the
17
17
  * wrong context would render with the wrong stylesheet block rather than fail.
18
18
  *
19
19
  * Strict: a header cell or a grid body outside a range calendar has nothing to describe.
@@ -4,7 +4,7 @@ import { createContext } from "../../utils/create-context.js";
4
4
  * Carries the styling and the day-view shape down to the parts.
5
5
  *
6
6
  * Kept apart from the single calendar's context even though the two hold the same shape, because
7
- * the classes differ: a range cell is styled by `range-calendar__cell`, and a part that read the
7
+ * the classes differ: a range cell is styled by `rp-range-calendar__cell`, and a part that read the
8
8
  * wrong context would render with the wrong stylesheet block rather than fail.
9
9
  *
10
10
  * Strict: a header cell or a grid body outside a range calendar has nothing to describe.