ropav 0.6.0 → 0.8.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 (332) 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 +2 -14
  21. package/dist/components/badge/badge-auto-label.js +3 -16
  22. package/dist/components/badge/badge-root.js +2 -2
  23. package/dist/components/badge/badge.types.d.ts +4 -4
  24. package/dist/components/badge/index.d.ts +2 -95
  25. package/dist/components/badge/index.js +1 -8
  26. package/dist/components/breadcrumbs/breadcrumbs-item.js +2 -2
  27. package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +2 -2
  28. package/dist/components/breadcrumbs/index.d.ts +2 -90
  29. package/dist/components/breadcrumbs/index.js +1 -7
  30. package/dist/components/button/index.d.ts +2 -61
  31. package/dist/components/button/index.js +1 -4
  32. package/dist/components/button-group/index.d.ts +2 -72
  33. package/dist/components/button-group/index.js +1 -7
  34. package/dist/components/calendar/calendar-grid-body.js +2 -2
  35. package/dist/components/calendar/calendar-grid-header.js +1 -1
  36. package/dist/components/calendar/calendar-grid.js +2 -1
  37. package/dist/components/calendar/calendar-root.d.ts +1 -1
  38. package/dist/components/calendar/calendar-root.js +13 -13
  39. package/dist/components/calendar/calendar.context.js +1 -1
  40. package/dist/components/calendar/calendar.types.d.ts +3 -1
  41. package/dist/components/calendar/index.d.ts +2 -422
  42. package/dist/components/calendar/index.js +1 -27
  43. package/dist/components/calendar-year-picker/calendar-year-picker-cell.js +15 -11
  44. package/dist/components/calendar-year-picker/calendar-year-picker-grid-body.js +9 -10
  45. package/dist/components/calendar-year-picker/calendar-year-picker-grid.js +36 -32
  46. package/dist/components/calendar-year-picker/calendar-year-picker-trigger-heading.js +1 -1
  47. package/dist/components/calendar-year-picker/calendar-year-picker-trigger.js +1 -1
  48. package/dist/components/calendar-year-picker/calendar-year-picker.context.d.ts +26 -8
  49. package/dist/components/calendar-year-picker/calendar-year-picker.context.js +2 -2
  50. package/dist/components/calendar-year-picker/calendar-year-picker.types.d.ts +8 -1
  51. package/dist/components/calendar-year-picker/index.d.ts +0 -134
  52. package/dist/components/calendar-year-picker/index.js +1 -11
  53. package/dist/components/card/index.d.ts +2 -152
  54. package/dist/components/card/index.js +1 -11
  55. package/dist/components/checkbox/index.d.ts +2 -146
  56. package/dist/components/checkbox/index.js +1 -9
  57. package/dist/components/checkbox-group/index.d.ts +2 -77
  58. package/dist/components/checkbox-group/index.js +1 -4
  59. package/dist/components/chip/chip-auto-label.d.ts +3 -19
  60. package/dist/components/chip/chip-auto-label.js +4 -21
  61. package/dist/components/chip/chip-root.js +2 -2
  62. package/dist/components/chip/chip.types.d.ts +2 -2
  63. package/dist/components/chip/index.d.ts +2 -72
  64. package/dist/components/chip/index.js +1 -7
  65. package/dist/components/close-button/index.d.ts +2 -55
  66. package/dist/components/close-button/index.js +1 -4
  67. package/dist/components/color-area/index.d.ts +2 -100
  68. package/dist/components/color-area/index.js +1 -7
  69. package/dist/components/color-field/color-field-root.js +1 -1
  70. package/dist/components/color-field/index.d.ts +2 -175
  71. package/dist/components/color-field/index.js +1 -14
  72. package/dist/components/color-input-group/index.d.ts +2 -115
  73. package/dist/components/color-input-group/index.js +1 -9
  74. package/dist/components/color-picker/color-picker-popover.js +2 -2
  75. package/dist/components/color-picker/index.d.ts +2 -110
  76. package/dist/components/color-picker/index.js +1 -8
  77. package/dist/components/color-slider/index.d.ts +2 -138
  78. package/dist/components/color-slider/index.js +1 -9
  79. package/dist/components/color-swatch/index.d.ts +2 -59
  80. package/dist/components/color-swatch/index.js +1 -4
  81. package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
  82. package/dist/components/color-swatch-picker/index.d.ts +2 -129
  83. package/dist/components/color-swatch-picker/index.js +1 -9
  84. package/dist/components/combo-box/combo-box-popover.js +2 -2
  85. package/dist/components/combo-box/combo-box.types.d.ts +1 -1
  86. package/dist/components/combo-box/index.d.ts +2 -229
  87. package/dist/components/combo-box/index.js +1 -10
  88. package/dist/components/date-field/date-field-root.js +2 -2
  89. package/dist/components/date-field/index.d.ts +2 -241
  90. package/dist/components/date-field/index.js +1 -12
  91. package/dist/components/date-input-group/use-date-segment.js +1 -1
  92. package/dist/components/date-picker/date-picker-popover.js +2 -2
  93. package/dist/components/date-picker/date-picker-root.js +6 -3
  94. package/dist/components/date-picker/index.d.ts +2 -186
  95. package/dist/components/date-picker/index.js +1 -9
  96. package/dist/components/date-range-picker/date-range-picker-popover.js +2 -2
  97. package/dist/components/date-range-picker/date-range-picker-root.js +6 -3
  98. package/dist/components/date-range-picker/index.d.ts +2 -209
  99. package/dist/components/date-range-picker/index.js +1 -10
  100. package/dist/components/description/index.d.ts +2 -45
  101. package/dist/components/description/index.js +1 -4
  102. package/dist/components/disclosure/disclosure-root.js +3 -3
  103. package/dist/components/disclosure/index.d.ts +2 -163
  104. package/dist/components/disclosure/index.js +1 -11
  105. package/dist/components/disclosure-group/index.d.ts +2 -57
  106. package/dist/components/disclosure-group/index.js +1 -4
  107. package/dist/components/drawer/drawer-close.js +1 -1
  108. package/dist/components/drawer/drawer-dialog.js +1 -1
  109. package/dist/components/drawer/drawer-heading.js +2 -2
  110. package/dist/components/drawer/drawer.types.d.ts +1 -1
  111. package/dist/components/drawer/index.d.ts +2 -291
  112. package/dist/components/drawer/index.js +1 -17
  113. package/dist/components/drop-zone/index.d.ts +2 -80
  114. package/dist/components/drop-zone/index.js +1 -7
  115. package/dist/components/dropdown/dropdown-popover.js +2 -2
  116. package/dist/components/dropdown/index.d.ts +2 -265
  117. package/dist/components/dropdown/index.js +1 -23
  118. package/dist/components/empty-state/index.d.ts +2 -45
  119. package/dist/components/empty-state/index.js +1 -4
  120. package/dist/components/error-message/index.d.ts +2 -45
  121. package/dist/components/error-message/index.js +1 -4
  122. package/dist/components/field-error/field-error-root.js +2 -2
  123. package/dist/components/field-error/index.d.ts +2 -66
  124. package/dist/components/field-error/index.js +1 -7
  125. package/dist/components/fieldset/index.d.ts +2 -110
  126. package/dist/components/fieldset/index.js +1 -9
  127. package/dist/components/form/index.d.ts +2 -49
  128. package/dist/components/form/index.js +1 -4
  129. package/dist/components/header/index.d.ts +2 -45
  130. package/dist/components/header/index.js +1 -4
  131. package/dist/components/i18n-provider/index.d.ts +2 -2
  132. package/dist/components/i18n-provider/index.js +1 -1
  133. package/dist/components/icons/icon-overlay-arrow.js +1 -1
  134. package/dist/components/input/index.d.ts +2 -51
  135. package/dist/components/input/index.js +1 -4
  136. package/dist/components/input-group/index.d.ts +2 -141
  137. package/dist/components/input-group/index.js +1 -10
  138. package/dist/components/input-otp/index.d.ts +2 -151
  139. package/dist/components/input-otp/index.js +1 -9
  140. package/dist/components/kbd/index.d.ts +2 -86
  141. package/dist/components/kbd/index.js +1 -8
  142. package/dist/components/label/index.d.ts +2 -51
  143. package/dist/components/label/index.js +1 -4
  144. package/dist/components/link/index.d.ts +2 -94
  145. package/dist/components/link/index.js +1 -7
  146. package/dist/components/list-box/index.d.ts +2 -191
  147. package/dist/components/list-box/index.js +1 -14
  148. package/dist/components/list-box/list-box-drop-indicator.js +2 -2
  149. package/dist/components/list-box/list-box-root.js +4 -4
  150. package/dist/components/list-box-item/index.d.ts +2 -74
  151. package/dist/components/list-box-item/index.js +1 -7
  152. package/dist/components/list-box-item/list-box-item-root.js +2 -2
  153. package/dist/components/list-box-section/index.d.ts +2 -47
  154. package/dist/components/list-box-section/index.js +1 -4
  155. package/dist/components/menu/index.d.ts +2 -83
  156. package/dist/components/menu/index.js +1 -4
  157. package/dist/components/menu-item/index.d.ts +2 -96
  158. package/dist/components/menu-item/index.js +1 -8
  159. package/dist/components/menu-item/menu-item-root.js +2 -2
  160. package/dist/components/menu-section/index.d.ts +2 -63
  161. package/dist/components/menu-section/index.js +1 -4
  162. package/dist/components/meter/index.d.ts +2 -127
  163. package/dist/components/meter/index.js +1 -9
  164. package/dist/components/meter/meter.types.d.ts +2 -0
  165. package/dist/components/modal/index.d.ts +2 -296
  166. package/dist/components/modal/index.js +1 -17
  167. package/dist/components/modal/modal-close.js +1 -1
  168. package/dist/components/modal/modal-heading.js +2 -2
  169. package/dist/components/modal/modal.context.d.ts +2 -2
  170. package/dist/components/modal/modal.types.d.ts +1 -1
  171. package/dist/components/number-field/index.d.ts +2 -186
  172. package/dist/components/number-field/index.js +1 -10
  173. package/dist/components/number-field/number-field-decrement-button.js +1 -1
  174. package/dist/components/number-field/number-field-increment-button.js +1 -1
  175. package/dist/components/overlay/overlay-slots.d.ts +1 -1
  176. package/dist/components/pagination/index.d.ts +2 -244
  177. package/dist/components/pagination/index.js +1 -15
  178. package/dist/components/pagination/pagination-next.js +4 -1
  179. package/dist/components/pagination/pagination-previous.js +4 -1
  180. package/dist/components/popover/index.d.ts +2 -172
  181. package/dist/components/popover/index.js +1 -11
  182. package/dist/components/popover/popover-arrow.js +2 -2
  183. package/dist/components/popover/popover-content.js +2 -2
  184. package/dist/components/popover/popover-heading.js +2 -2
  185. package/dist/components/popover/popover.types.d.ts +1 -1
  186. package/dist/components/progress-bar/index.d.ts +2 -133
  187. package/dist/components/progress-bar/index.js +1 -9
  188. package/dist/components/progress-bar/progress-bar.types.d.ts +2 -0
  189. package/dist/components/progress-circle/index.d.ts +2 -124
  190. package/dist/components/progress-circle/index.js +1 -9
  191. package/dist/components/progress-circle/progress-circle.types.d.ts +2 -0
  192. package/dist/components/radio/index.d.ts +2 -120
  193. package/dist/components/radio/index.js +1 -9
  194. package/dist/components/radio-group/index.d.ts +2 -79
  195. package/dist/components/radio-group/index.js +1 -4
  196. package/dist/components/range-calendar/index.d.ts +2 -424
  197. package/dist/components/range-calendar/index.js +1 -27
  198. package/dist/components/range-calendar/range-calendar-cell.js +4 -2
  199. package/dist/components/range-calendar/range-calendar-grid-body.js +2 -2
  200. package/dist/components/range-calendar/range-calendar-grid-header.js +1 -1
  201. package/dist/components/range-calendar/range-calendar-grid.js +2 -1
  202. package/dist/components/range-calendar/range-calendar-root.d.ts +3 -3
  203. package/dist/components/range-calendar/range-calendar-root.js +13 -13
  204. package/dist/components/range-calendar/range-calendar.context.d.ts +1 -1
  205. package/dist/components/range-calendar/range-calendar.context.js +1 -1
  206. package/dist/components/range-calendar/range-calendar.types.d.ts +3 -1
  207. package/dist/components/router-provider/index.d.ts +2 -2
  208. package/dist/components/router-provider/index.js +1 -1
  209. package/dist/components/scroll-shadow/index.d.ts +2 -69
  210. package/dist/components/scroll-shadow/index.js +1 -4
  211. package/dist/components/search-field/index.d.ts +2 -195
  212. package/dist/components/search-field/index.js +1 -10
  213. package/dist/components/search-field/search-field-clear-button.js +5 -5
  214. package/dist/components/segmented-control/index.d.ts +2 -126
  215. package/dist/components/segmented-control/index.js +1 -9
  216. package/dist/components/select/index.d.ts +2 -202
  217. package/dist/components/select/index.js +1 -10
  218. package/dist/components/select/select-popover.js +2 -2
  219. package/dist/components/select/select-value.js +1 -1
  220. package/dist/components/separator/index.d.ts +2 -41
  221. package/dist/components/separator/index.js +1 -4
  222. package/dist/components/sidebar/index.d.ts +2 -520
  223. package/dist/components/sidebar/index.js +1 -25
  224. package/dist/components/sidebar/sidebar-content.js +2 -2
  225. package/dist/components/sidebar/sidebar-item-tooltip.js +2 -2
  226. package/dist/components/sidebar/sidebar-panel.js +1 -0
  227. package/dist/components/sidebar/sidebar-rail.js +1 -0
  228. package/dist/components/sidebar/sidebar-root.js +23 -5
  229. package/dist/components/sidebar/sidebar.state.d.ts +3 -0
  230. package/dist/components/sidebar/sidebar.state.js +5 -0
  231. package/dist/components/sidebar/sidebar.types.d.ts +2 -2
  232. package/dist/components/skeleton/index.d.ts +2 -47
  233. package/dist/components/skeleton/index.js +1 -4
  234. package/dist/components/slider/index.d.ts +2 -180
  235. package/dist/components/slider/index.js +1 -11
  236. package/dist/components/spinner/index.d.ts +2 -41
  237. package/dist/components/spinner/index.js +1 -4
  238. package/dist/components/splitter/index.d.ts +2 -134
  239. package/dist/components/splitter/index.js +1 -8
  240. package/dist/components/surface/index.d.ts +2 -47
  241. package/dist/components/surface/index.js +1 -4
  242. package/dist/components/switch/index.d.ts +2 -165
  243. package/dist/components/switch/index.js +1 -10
  244. package/dist/components/switch-group/index.d.ts +2 -47
  245. package/dist/components/switch-group/index.js +1 -4
  246. package/dist/components/table/index.d.ts +2 -442
  247. package/dist/components/table/index.js +1 -23
  248. package/dist/components/table/table-body.js +9 -9
  249. package/dist/components/table/table-cell.js +3 -3
  250. package/dist/components/table/table-column.js +4 -4
  251. package/dist/components/table/table-content.js +3 -3
  252. package/dist/components/table/table-drag-handle.js +1 -1
  253. package/dist/components/table/table-drop-indicator.js +9 -7
  254. package/dist/components/table/table-header.js +4 -4
  255. package/dist/components/table/table-load-more.js +5 -5
  256. package/dist/components/table/table-row.js +4 -4
  257. package/dist/components/table/table.context.d.ts +2 -2
  258. package/dist/components/table/table.types.d.ts +3 -3
  259. package/dist/components/tabs/index.d.ts +2 -189
  260. package/dist/components/tabs/index.js +1 -12
  261. package/dist/components/tabs/tabs-list-container.js +2 -2
  262. package/dist/components/tag/index.d.ts +2 -76
  263. package/dist/components/tag/index.js +1 -7
  264. package/dist/components/tag/tag-remove-button.js +2 -2
  265. package/dist/components/tag-group/index.d.ts +2 -93
  266. package/dist/components/tag-group/index.js +1 -7
  267. package/dist/components/textarea/index.d.ts +2 -51
  268. package/dist/components/textarea/index.js +1 -4
  269. package/dist/components/textfield/index.d.ts +2 -109
  270. package/dist/components/textfield/index.js +1 -4
  271. package/dist/components/time-field/index.d.ts +2 -233
  272. package/dist/components/time-field/index.js +1 -12
  273. package/dist/components/toast/index.d.ts +2 -216
  274. package/dist/components/toast/index.js +1 -15
  275. package/dist/components/toast/toast-action-button.js +2 -2
  276. package/dist/components/toast/toast-default-content.js +1 -1
  277. package/dist/components/toast/toast-queue.d.ts +1 -1
  278. package/dist/components/toast/toast-queue.js +1 -1
  279. package/dist/components/toast/toast-root.js +1 -1
  280. package/dist/components/toast/toast.types.d.ts +3 -3
  281. package/dist/components/toggle-button/index.d.ts +2 -65
  282. package/dist/components/toggle-button/index.js +1 -4
  283. package/dist/components/toggle-button-group/index.d.ts +2 -82
  284. package/dist/components/toggle-button-group/index.js +1 -7
  285. package/dist/components/toolbar/index.d.ts +2 -49
  286. package/dist/components/toolbar/index.js +1 -4
  287. package/dist/components/tooltip/index.d.ts +2 -136
  288. package/dist/components/tooltip/index.js +1 -9
  289. package/dist/components/tooltip/tooltip-arrow.js +2 -2
  290. package/dist/components/tooltip/tooltip-root.js +1 -1
  291. package/dist/components/tooltip/tooltip.types.d.ts +1 -1
  292. package/dist/components/typography/code.js +2 -2
  293. package/dist/components/typography/heading.js +2 -2
  294. package/dist/components/typography/index.d.ts +2 -1269
  295. package/dist/components/typography/index.js +1 -10
  296. package/dist/components/typography/paragraph.js +2 -2
  297. package/dist/components/typography/typography-root.js +2 -2
  298. package/dist/composables/use-calendar-grid.js +2 -1
  299. package/dist/composables/use-calendar-year-picker.js +12 -3
  300. package/dist/composables/use-color-field.js +1 -1
  301. package/dist/composables/use-color-slider.d.ts +1 -1
  302. package/dist/composables/use-color-slider.js +1 -1
  303. package/dist/composables/use-press.d.ts +10 -0
  304. package/dist/composables/use-press.js +27 -2
  305. package/dist/composables/use-prevent-scroll.d.ts +11 -5
  306. package/dist/composables/use-prevent-scroll.js +11 -5
  307. package/dist/composables/use-range-calendar.js +2 -1
  308. package/dist/composables/use-text-field.js +1 -1
  309. package/dist/index.d.ts +1 -1
  310. package/dist/index.js +110 -111
  311. package/dist/ropav.min.css +2 -0
  312. package/dist/styles-no-preflight.css +3 -0
  313. package/dist/styles-overrides.css +15 -0
  314. package/dist/styles.css +1 -16
  315. package/dist/utils/auto-label.d.ts +24 -0
  316. package/dist/utils/auto-label.js +48 -0
  317. package/dist/utils/block.js +11 -1
  318. package/dist/utils/calendar-systems.d.ts +14 -0
  319. package/dist/utils/calendar-systems.js +2 -0
  320. package/dist/utils/calendar.d.ts +14 -5
  321. package/dist/utils/calendar.js +18 -21
  322. package/dist/utils/compose.d.ts +4 -6
  323. package/dist/utils/compose.js +4 -6
  324. package/dist/utils/dnd-list-drop-target-delegate.d.ts +19 -1
  325. package/dist/utils/dnd-list-drop-target-delegate.js +37 -6
  326. package/dist/utils/index.d.ts +1 -0
  327. package/dist/utils/virtualizer-list-layout.d.ts +8 -0
  328. package/dist/utils/virtualizer-list-layout.js +12 -2
  329. package/dist/utils/virtualizer-table-layout.d.ts +1 -0
  330. package/dist/utils/virtualizer-table-layout.js +3 -0
  331. package/dist/version.js +1 -1
  332. package/package.json +11 -5
@@ -18,526 +18,8 @@ import SidebarRoot from "./sidebar-root.js";
18
18
  import SidebarSeparator from "./sidebar-separator.js";
19
19
  import SidebarSubMenu from "./sidebar-sub-menu.js";
20
20
  import SidebarTrigger from "./sidebar-trigger.js";
21
- export declare const Sidebar: ((__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
22
- attrs: any;
23
- slots: {
24
- default?: (props: import("./sidebar.types.js").SidebarSlotProps) => unknown;
25
- };
26
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "mobileOpenChange", isOpen: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void) & ((evt: "update:isMobileOpen", isOpen: boolean) => void) & ((evt: "update:width", width: string) => void);
27
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
28
- props: import('vue').PublicProps & {
29
- class?: string;
30
- side?: import("./sidebar.types.js").SidebarSide;
31
- variant?: import("./sidebar.types.js").SidebarVariant;
32
- collapsible?: import("./sidebar.state.js").SidebarCollapsibleMode;
33
- isExpanded?: boolean;
34
- defaultExpanded?: boolean;
35
- isMobileOpen?: boolean;
36
- defaultMobileOpen?: boolean;
37
- width?: string;
38
- defaultWidth?: string;
39
- autoSaveId?: string;
40
- breakpoint?: string;
41
- onExpandedChange?: ((isExpanded: boolean) => any) | undefined;
42
- onMobileOpenChange?: ((isOpen: boolean) => any) | undefined;
43
- "onUpdate:isExpanded"?: ((isExpanded: boolean) => any) | undefined;
44
- "onUpdate:isMobileOpen"?: ((isOpen: boolean) => any) | undefined;
45
- "onUpdate:width"?: ((width: string) => any) | undefined;
46
- } & (typeof globalThis extends {
47
- __VLS_PROPS_FALLBACK: infer P;
48
- } ? P : {});
49
- expose: (exposed: import('vue').ShallowUnwrapRef<{
50
- close: () => void;
51
- open: () => void;
52
- toggle: () => void;
53
- }>) => void;
54
- attrs: any;
55
- slots: {
56
- default?: (props: import("./sidebar.types.js").SidebarSlotProps) => unknown;
57
- };
58
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "mobileOpenChange", isOpen: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void) & ((evt: "update:isMobileOpen", isOpen: boolean) => void) & ((evt: "update:width", width: string) => void);
59
- }>) => import('vue').VNode & {
60
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
61
- }) & {
62
- Collapsible: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
63
- attrs: any;
64
- slots: {
65
- default?: (props: import("./sidebar.types.js").SidebarCollapsibleSlotProps) => unknown;
66
- };
67
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void);
68
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
69
- props: import('vue').PublicProps & {
70
- class?: string;
71
- isExpanded?: boolean;
72
- defaultExpanded?: boolean;
73
- isDisabled?: boolean;
74
- onExpandedChange?: ((isExpanded: boolean) => any) | undefined;
75
- "onUpdate:isExpanded"?: ((isExpanded: boolean) => any) | undefined;
76
- } & (typeof globalThis extends {
77
- __VLS_PROPS_FALLBACK: infer P;
78
- } ? P : {});
79
- expose: (exposed: {}) => void;
80
- attrs: any;
81
- slots: {
82
- default?: (props: import("./sidebar.types.js").SidebarCollapsibleSlotProps) => unknown;
83
- };
84
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void);
85
- }>) => import('vue').VNode & {
86
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
87
- };
88
- CollapsibleTrigger: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
89
- attrs: any;
90
- slots: {
91
- default?: (props: import("./sidebar.types.js").SidebarCollapsibleTriggerSlotProps) => unknown;
92
- };
93
- emit: {};
94
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
95
- props: import('vue').PublicProps & {
96
- class?: string;
97
- isDisabled?: boolean;
98
- ariaLabel?: string;
99
- } & (typeof globalThis extends {
100
- __VLS_PROPS_FALLBACK: infer P;
101
- } ? P : {});
102
- expose: (exposed: {}) => void;
103
- attrs: any;
104
- slots: {
105
- default?: (props: import("./sidebar.types.js").SidebarCollapsibleTriggerSlotProps) => unknown;
106
- };
107
- emit: {};
108
- }>) => import('vue').VNode & {
109
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
110
- };
111
- Content: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
112
- attrs: any;
113
- slots: {
114
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
115
- };
116
- emit: {};
117
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
118
- props: import('vue').PublicProps & {
119
- class?: string;
120
- showScrollShadow?: boolean;
121
- scrollShadowSize?: number;
122
- } & (typeof globalThis extends {
123
- __VLS_PROPS_FALLBACK: infer P;
124
- } ? P : {});
125
- expose: (exposed: {}) => void;
126
- attrs: any;
127
- slots: {
128
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
129
- };
130
- emit: {};
131
- }>) => import('vue').VNode & {
132
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
133
- };
134
- Footer: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
135
- attrs: any;
136
- slots: {
137
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
138
- };
139
- emit: {};
140
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
141
- props: import('vue').PublicProps & {
142
- class?: string;
143
- } & (typeof globalThis extends {
144
- __VLS_PROPS_FALLBACK: infer P;
145
- } ? P : {});
146
- expose: (exposed: {}) => void;
147
- attrs: any;
148
- slots: {
149
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
150
- };
151
- emit: {};
152
- }>) => import('vue').VNode & {
153
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
154
- };
155
- Group: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
156
- attrs: any;
157
- slots: {
158
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
159
- };
160
- emit: {};
161
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
162
- props: import('vue').PublicProps & {
163
- class?: string;
164
- ariaLabel?: string;
165
- } & (typeof globalThis extends {
166
- __VLS_PROPS_FALLBACK: infer P;
167
- } ? P : {});
168
- expose: (exposed: {}) => void;
169
- attrs: any;
170
- slots: {
171
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
172
- };
173
- emit: {};
174
- }>) => import('vue').VNode & {
175
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
176
- };
177
- GroupLabel: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
178
- attrs: any;
179
- slots: {
180
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
181
- };
182
- emit: {};
183
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
184
- props: import('vue').PublicProps & {
185
- class?: string;
186
- } & (typeof globalThis extends {
187
- __VLS_PROPS_FALLBACK: infer P;
188
- } ? P : {});
189
- expose: (exposed: {}) => void;
190
- attrs: any;
191
- slots: {
192
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
193
- };
194
- emit: {};
195
- }>) => import('vue').VNode & {
196
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
197
- };
198
- Header: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
199
- attrs: any;
200
- slots: {
201
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
202
- };
203
- emit: {};
204
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
205
- props: import('vue').PublicProps & {
206
- class?: string;
207
- } & (typeof globalThis extends {
208
- __VLS_PROPS_FALLBACK: infer P;
209
- } ? P : {});
210
- expose: (exposed: {}) => void;
211
- attrs: any;
212
- slots: {
213
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
214
- };
215
- emit: {};
216
- }>) => import('vue').VNode & {
217
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
218
- };
219
- Inset: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
220
- attrs: any;
221
- slots: {
222
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
223
- };
224
- emit: {};
225
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
226
- props: import('vue').PublicProps & {
227
- class?: string;
228
- } & (typeof globalThis extends {
229
- __VLS_PROPS_FALLBACK: infer P;
230
- } ? P : {});
231
- expose: (exposed: {}) => void;
232
- attrs: any;
233
- slots: {
234
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
235
- };
236
- emit: {};
237
- }>) => import('vue').VNode & {
238
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
239
- };
240
- Item: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
241
- attrs: any;
242
- slots: {
243
- default?: (props: import("./sidebar.types.js").SidebarItemSlotProps) => unknown;
244
- };
245
- emit: (evt: "press", event: import("../../index.js").PressEvent) => void;
246
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
247
- props: import('vue').PublicProps & {
248
- class?: string;
249
- href?: string;
250
- target?: string;
251
- rel?: string;
252
- ariaCurrent?: import("./index.js").LinkCurrent;
253
- routerOptions?: unknown;
254
- isDisabled?: boolean;
255
- ariaLabel?: string;
256
- ariaLabelledby?: string;
257
- ariaDescribedby?: string;
258
- onPress?: ((event: import("../../index.js").PressEvent) => any) | undefined;
259
- } & (typeof globalThis extends {
260
- __VLS_PROPS_FALLBACK: infer P;
261
- } ? P : {});
262
- expose: (exposed: {}) => void;
263
- attrs: any;
264
- slots: {
265
- default?: (props: import("./sidebar.types.js").SidebarItemSlotProps) => unknown;
266
- };
267
- emit: (evt: "press", event: import("../../index.js").PressEvent) => void;
268
- }>) => import('vue').VNode & {
269
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
270
- };
271
- ItemIcon: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
272
- attrs: any;
273
- slots: {
274
- default?: () => unknown;
275
- };
276
- emit: {};
277
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
278
- props: import('vue').PublicProps & {
279
- class?: string;
280
- } & (typeof globalThis extends {
281
- __VLS_PROPS_FALLBACK: infer P;
282
- } ? P : {});
283
- expose: (exposed: {}) => void;
284
- attrs: any;
285
- slots: {
286
- default?: () => unknown;
287
- };
288
- emit: {};
289
- }>) => import('vue').VNode & {
290
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
291
- };
292
- ItemIndicator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
293
- attrs: any;
294
- slots: {
295
- default?: () => unknown;
296
- };
297
- emit: {};
298
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
299
- props: import('vue').PublicProps & {
300
- class?: string;
301
- } & (typeof globalThis extends {
302
- __VLS_PROPS_FALLBACK: infer P;
303
- } ? P : {});
304
- expose: (exposed: {}) => void;
305
- attrs: any;
306
- slots: {
307
- default?: () => unknown;
308
- };
309
- emit: {};
310
- }>) => import('vue').VNode & {
311
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
312
- };
313
- ItemLabel: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
314
- attrs: any;
315
- slots: {
316
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
317
- };
318
- emit: {};
319
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
320
- props: import('vue').PublicProps & {
321
- class?: string;
322
- } & (typeof globalThis extends {
323
- __VLS_PROPS_FALLBACK: infer P;
324
- } ? P : {});
325
- expose: (exposed: {}) => void;
326
- attrs: any;
327
- slots: {
328
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
329
- };
330
- emit: {};
331
- }>) => import('vue').VNode & {
332
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
333
- };
334
- ItemTooltip: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
335
- attrs: any;
336
- slots: {
337
- default?: () => unknown;
338
- };
339
- emit: {};
340
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
341
- props: import('vue').PublicProps & {
342
- class?: string;
343
- label?: string;
344
- delay?: number;
345
- closeDelay?: number;
346
- } & (typeof globalThis extends {
347
- __VLS_PROPS_FALLBACK: infer P;
348
- } ? P : {});
349
- expose: (exposed: {}) => void;
350
- attrs: any;
351
- slots: {
352
- default?: () => unknown;
353
- };
354
- emit: {};
355
- }>) => import('vue').VNode & {
356
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
357
- };
358
- ItemTrailing: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
359
- attrs: any;
360
- slots: {
361
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
362
- };
363
- emit: {};
364
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
365
- props: import('vue').PublicProps & {
366
- class?: string;
367
- } & (typeof globalThis extends {
368
- __VLS_PROPS_FALLBACK: infer P;
369
- } ? P : {});
370
- expose: (exposed: {}) => void;
371
- attrs: any;
372
- slots: {
373
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
374
- };
375
- emit: {};
376
- }>) => import('vue').VNode & {
377
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
378
- };
379
- Panel: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
380
- attrs: any;
381
- slots: {
382
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
383
- };
384
- emit: {};
385
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
386
- props: import('vue').PublicProps & {
387
- class?: string;
388
- ariaLabel?: string;
389
- ariaLabelledby?: string;
390
- } & (typeof globalThis extends {
391
- __VLS_PROPS_FALLBACK: infer P;
392
- } ? P : {});
393
- expose: (exposed: {}) => void;
394
- attrs: any;
395
- slots: {
396
- default?: (props: import("./sidebar.types.js").SidebarPartSlotProps) => unknown;
397
- };
398
- emit: {};
399
- }>) => import('vue').VNode & {
400
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
401
- };
402
- Rail: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
403
- attrs: any;
404
- slots: {
405
- default?: (props: import("./sidebar.types.js").SidebarRailSlotProps) => unknown;
406
- };
407
- emit: {};
408
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
409
- props: import('vue').PublicProps & {
410
- class?: string;
411
- isResizable?: boolean;
412
- isDisabled?: boolean;
413
- minWidth?: number;
414
- maxWidth?: number;
415
- keyboardStep?: number;
416
- keyboardLargeStep?: number;
417
- ariaLabel?: string;
418
- ariaLabelledby?: string;
419
- } & (typeof globalThis extends {
420
- __VLS_PROPS_FALLBACK: infer P;
421
- } ? P : {});
422
- expose: (exposed: {}) => void;
423
- attrs: any;
424
- slots: {
425
- default?: (props: import("./sidebar.types.js").SidebarRailSlotProps) => unknown;
426
- };
427
- emit: {};
428
- }>) => import('vue').VNode & {
429
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
430
- };
431
- Root: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
432
- attrs: any;
433
- slots: {
434
- default?: (props: import("./sidebar.types.js").SidebarSlotProps) => unknown;
435
- };
436
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "mobileOpenChange", isOpen: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void) & ((evt: "update:isMobileOpen", isOpen: boolean) => void) & ((evt: "update:width", width: string) => void);
437
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
438
- props: import('vue').PublicProps & {
439
- class?: string;
440
- side?: import("./sidebar.types.js").SidebarSide;
441
- variant?: import("./sidebar.types.js").SidebarVariant;
442
- collapsible?: import("./sidebar.state.js").SidebarCollapsibleMode;
443
- isExpanded?: boolean;
444
- defaultExpanded?: boolean;
445
- isMobileOpen?: boolean;
446
- defaultMobileOpen?: boolean;
447
- width?: string;
448
- defaultWidth?: string;
449
- autoSaveId?: string;
450
- breakpoint?: string;
451
- onExpandedChange?: ((isExpanded: boolean) => any) | undefined;
452
- onMobileOpenChange?: ((isOpen: boolean) => any) | undefined;
453
- "onUpdate:isExpanded"?: ((isExpanded: boolean) => any) | undefined;
454
- "onUpdate:isMobileOpen"?: ((isOpen: boolean) => any) | undefined;
455
- "onUpdate:width"?: ((width: string) => any) | undefined;
456
- } & (typeof globalThis extends {
457
- __VLS_PROPS_FALLBACK: infer P;
458
- } ? P : {});
459
- expose: (exposed: import('vue').ShallowUnwrapRef<{
460
- close: () => void;
461
- open: () => void;
462
- toggle: () => void;
463
- }>) => void;
464
- attrs: any;
465
- slots: {
466
- default?: (props: import("./sidebar.types.js").SidebarSlotProps) => unknown;
467
- };
468
- emit: ((evt: "expandedChange", isExpanded: boolean) => void) & ((evt: "mobileOpenChange", isOpen: boolean) => void) & ((evt: "update:isExpanded", isExpanded: boolean) => void) & ((evt: "update:isMobileOpen", isOpen: boolean) => void) & ((evt: "update:width", width: string) => void);
469
- }>) => import('vue').VNode & {
470
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
471
- };
472
- Separator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
473
- attrs: any;
474
- slots: {};
475
- emit: {};
476
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
477
- props: import('vue').PublicProps & {
478
- class?: string;
479
- } & (typeof globalThis extends {
480
- __VLS_PROPS_FALLBACK: infer P;
481
- } ? P : {});
482
- expose: (exposed: {}) => void;
483
- attrs: any;
484
- slots: {};
485
- emit: {};
486
- }>) => import('vue').VNode & {
487
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
488
- };
489
- SubMenu: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
490
- attrs: any;
491
- slots: {
492
- default?: (props: {
493
- isExpanded: boolean;
494
- }) => unknown;
495
- };
496
- emit: {};
497
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
498
- props: import('vue').PublicProps & {
499
- class?: string;
500
- ariaLabel?: string;
501
- } & (typeof globalThis extends {
502
- __VLS_PROPS_FALLBACK: infer P;
503
- } ? P : {});
504
- expose: (exposed: {}) => void;
505
- attrs: any;
506
- slots: {
507
- default?: (props: {
508
- isExpanded: boolean;
509
- }) => unknown;
510
- };
511
- emit: {};
512
- }>) => import('vue').VNode & {
513
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
514
- };
515
- Trigger: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
516
- attrs: any;
517
- slots: {
518
- default?: (props: import("./sidebar.types.js").SidebarTriggerSlotProps) => unknown;
519
- };
520
- emit: {};
521
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
522
- props: import('vue').PublicProps & {
523
- class?: string;
524
- isDisabled?: boolean;
525
- ariaLabel?: string;
526
- } & (typeof globalThis extends {
527
- __VLS_PROPS_FALLBACK: infer P;
528
- } ? P : {});
529
- expose: (exposed: {}) => void;
530
- attrs: any;
531
- slots: {
532
- default?: (props: import("./sidebar.types.js").SidebarTriggerSlotProps) => unknown;
533
- };
534
- emit: {};
535
- }>) => import('vue').VNode & {
536
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
537
- };
538
- };
539
- export { SidebarRoot, SidebarPanel, SidebarInset, SidebarTrigger, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarSeparator, SidebarItem, SidebarItemIcon, SidebarItemLabel, SidebarItemTrailing, SidebarItemTooltip, SidebarRail, SidebarCollapsible, SidebarCollapsibleTrigger, SidebarItemIndicator, SidebarSubMenu, };
540
- export type { SidebarRootProps, SidebarRootProps as SidebarProps, SidebarRootEmits, SidebarPanelProps, SidebarInsetProps, SidebarTriggerProps, SidebarHeaderProps, SidebarContentProps, SidebarFooterProps, SidebarGroupProps, SidebarGroupLabelProps, SidebarSeparatorProps, SidebarItemProps, SidebarItemEmits, SidebarItemIconProps, SidebarItemLabelProps, SidebarItemTrailingProps, SidebarItemTooltipProps, SidebarItemSlotProps, SidebarRailProps, SidebarRailSlotProps, SidebarCollapsibleProps, SidebarCollapsibleEmits, SidebarCollapsibleTriggerProps, SidebarCollapsibleSlotProps, SidebarCollapsibleTriggerSlotProps, SidebarItemIndicatorProps, SidebarSubMenuProps, SidebarSide, SidebarVariant, SidebarSlotProps, SidebarPartSlotProps, SidebarTriggerSlotProps, } from "./sidebar.types.js";
21
+ export { SidebarRoot as Sidebar, SidebarPanel, SidebarInset, SidebarTrigger, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarSeparator, SidebarItem, SidebarItemIcon, SidebarItemLabel, SidebarItemTrailing, SidebarItemTooltip, SidebarRail, SidebarCollapsible, SidebarCollapsibleTrigger, SidebarItemIndicator, SidebarSubMenu, };
22
+ export type { SidebarRootProps as SidebarProps, SidebarRootEmits as SidebarEmits, SidebarPanelProps, SidebarInsetProps, SidebarTriggerProps, SidebarHeaderProps, SidebarContentProps, SidebarFooterProps, SidebarGroupProps, SidebarGroupLabelProps, SidebarSeparatorProps, SidebarItemProps, SidebarItemEmits, SidebarItemIconProps, SidebarItemLabelProps, SidebarItemTrailingProps, SidebarItemTooltipProps, SidebarItemSlotProps, SidebarRailProps, SidebarRailSlotProps, SidebarCollapsibleProps, SidebarCollapsibleEmits, SidebarCollapsibleTriggerProps, SidebarCollapsibleSlotProps, SidebarCollapsibleTriggerSlotProps, SidebarItemIndicatorProps, SidebarSubMenuProps, SidebarSide, SidebarVariant, SidebarSlotProps, SidebarPartSlotProps, SidebarTriggerSlotProps, } from "./sidebar.types.js";
541
23
  export type { SidebarCollapsibleMode, SidebarState } from "./sidebar.state.js";
542
24
  export type { LinkCurrent } from "../link/link.types.js";
543
25
  export { useSidebarCollapsibleContext, useSidebarContext, useSidebarGroupContext, useSidebarSubMenuContext, } from "./sidebar.context.js";
@@ -20,28 +20,4 @@ import sidebar_separator_default from "./sidebar-separator.js";
20
20
  import sidebar_sub_menu_default from "./sidebar-sub-menu.js";
21
21
  import sidebar_trigger_default from "./sidebar-trigger.js";
22
22
  import { sidebarVariants } from "@ropav/styles";
23
- //#region src/components/sidebar/index.ts
24
- var Sidebar = Object.assign(sidebar_root_default, {
25
- Collapsible: sidebar_collapsible_default,
26
- CollapsibleTrigger: sidebar_collapsible_trigger_default,
27
- Content: sidebar_content_default,
28
- Footer: sidebar_footer_default,
29
- Group: sidebar_group_default,
30
- GroupLabel: sidebar_group_label_default,
31
- Header: sidebar_header_default,
32
- Inset: sidebar_inset_default,
33
- Item: sidebar_item_default,
34
- ItemIcon: sidebar_item_icon_default,
35
- ItemIndicator: sidebar_item_indicator_default,
36
- ItemLabel: sidebar_item_label_default,
37
- ItemTooltip: sidebar_item_tooltip_default,
38
- ItemTrailing: sidebar_item_trailing_default,
39
- Panel: sidebar_panel_default,
40
- Rail: sidebar_rail_default,
41
- Root: sidebar_root_default,
42
- Separator: sidebar_separator_default,
43
- SubMenu: sidebar_sub_menu_default,
44
- Trigger: sidebar_trigger_default
45
- });
46
- //#endregion
47
- export { Sidebar, sidebar_collapsible_default as SidebarCollapsible, sidebar_collapsible_trigger_default as SidebarCollapsibleTrigger, sidebar_content_default as SidebarContent, sidebar_footer_default as SidebarFooter, sidebar_group_default as SidebarGroup, sidebar_group_label_default as SidebarGroupLabel, sidebar_header_default as SidebarHeader, sidebar_inset_default as SidebarInset, sidebar_item_default as SidebarItem, sidebar_item_icon_default as SidebarItemIcon, sidebar_item_indicator_default as SidebarItemIndicator, sidebar_item_label_default as SidebarItemLabel, sidebar_item_tooltip_default as SidebarItemTooltip, sidebar_item_trailing_default as SidebarItemTrailing, sidebar_panel_default as SidebarPanel, sidebar_rail_default as SidebarRail, sidebar_root_default as SidebarRoot, sidebar_separator_default as SidebarSeparator, sidebar_sub_menu_default as SidebarSubMenu, sidebar_trigger_default as SidebarTrigger, sidebarVariants, useSidebarCollapsibleContext, useSidebarContext, useSidebarGroupContext, useSidebarSubMenuContext };
23
+ export { sidebar_root_default as Sidebar, sidebar_collapsible_default as SidebarCollapsible, sidebar_collapsible_trigger_default as SidebarCollapsibleTrigger, sidebar_content_default as SidebarContent, sidebar_footer_default as SidebarFooter, sidebar_group_default as SidebarGroup, sidebar_group_label_default as SidebarGroupLabel, sidebar_header_default as SidebarHeader, sidebar_inset_default as SidebarInset, sidebar_item_default as SidebarItem, sidebar_item_icon_default as SidebarItemIcon, sidebar_item_indicator_default as SidebarItemIndicator, sidebar_item_label_default as SidebarItemLabel, sidebar_item_tooltip_default as SidebarItemTooltip, sidebar_item_trailing_default as SidebarItemTrailing, sidebar_panel_default as SidebarPanel, sidebar_rail_default as SidebarRail, sidebar_separator_default as SidebarSeparator, sidebar_sub_menu_default as SidebarSubMenu, sidebar_trigger_default as SidebarTrigger, sidebarVariants, useSidebarCollapsibleContext, useSidebarContext, useSidebarGroupContext, useSidebarSubMenuContext };
@@ -29,8 +29,8 @@ var sidebar_content_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@
29
29
  isCollapsed: () => unref(state).isCollapsed.value,
30
30
  isMobile: () => unref(state).isMobile.value,
31
31
  isOpen: () => unref(state).isOpen.value
32
- }, null, 36);
33
- }, { _: 8 }), true);
32
+ }, null, 4);
33
+ }, { _: 1 }), true);
34
34
  }
35
35
  });
36
36
  //#endregion
@@ -25,8 +25,8 @@ var sidebar_item_tooltip_vue_vue_type_script_setup_true_vapor_true_lang_default
25
25
  "is-disabled": () => isDisabled.value
26
26
  }, () => {
27
27
  return [createComponent(tooltip_trigger_default, { class: () => unref(composeSlotClassName)(unref(slots).itemTooltip, props.class) }, extend(() => {
28
- return createSlot("default", null, null, 36);
29
- }, { _: 8 })), createComponent(tooltip_content_default, { placement: () => placement.value }, () => {
28
+ return createSlot("default", null, null, 4);
29
+ }, { _: 1 })), createComponent(tooltip_content_default, { placement: () => placement.value }, () => {
30
30
  const n2 = t0();
31
31
  renderEffect(() => setText(n2, toDisplayString(props.label)));
32
32
  return n2;
@@ -70,6 +70,7 @@ var sidebar_panel_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
70
70
  setClass(n12, panelClass.value);
71
71
  setAttr(n12, "data-collapsed", _dataAttr(_state.isCollapsed.value));
72
72
  setAttr(n12, "data-resizing", _dataAttr(_state.isResizing.value));
73
+ setAttr(n12, "data-restoring", _dataAttr(_state.isRestoring.value));
73
74
  setAttr(n12, "data-side", unref(side));
74
75
  setProp(n12, "inert", isHidden.value || void 0);
75
76
  });
@@ -61,6 +61,7 @@ var sidebar_rail_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
61
61
  */
62
62
  const measuredWidth = shallowRef(0);
63
63
  const measure = () => {
64
+ if (declaredWidth.value !== null) return;
64
65
  measuredWidth.value = panelEl.value?.offsetWidth ?? 0;
65
66
  };
66
67
  onMounted(measure);
@@ -4,7 +4,7 @@ import { provideSidebarContext } from "./sidebar.context.js";
4
4
  import { useMediaQuery } from "../../composables/use-media-query.js";
5
5
  import { useSidebarState } from "./sidebar.state.js";
6
6
  import { readSidebarLayout, writeSidebarLayout } from "./sidebar.storage.js";
7
- import { computed, createSlot, defineVaporComponent, onMounted, renderEffect, setAttr, setClass, setInsertionState, setStyle, shallowRef, template, unref } from "vue";
7
+ import { computed, createSlot, defineVaporComponent, onMounted, onUnmounted, renderEffect, setAttr, setClass, setInsertionState, setStyle, shallowRef, template, unref } from "vue";
8
8
  import { sidebarVariants } from "@ropav/styles";
9
9
  //#region src/components/sidebar/sidebar-root.vue?vue&type=script&setup=true&vapor=true&lang.ts
10
10
  var t0 = template("<div data-slot=sidebar>", 1);
@@ -77,18 +77,36 @@ var sidebar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__P
77
77
  width: () => props.width
78
78
  });
79
79
  function persist() {
80
- if (!props.autoSaveId || isRestoring) return;
80
+ if (!props.autoSaveId || isApplying) return;
81
81
  writeSidebarLayout(props.autoSaveId, state.isExpanded.value, state.width.value);
82
82
  }
83
- let isRestoring = false;
83
+ let isApplying = false;
84
+ let frame = null;
85
+ const settle = () => {
86
+ if (typeof requestAnimationFrame !== "function") {
87
+ state.setRestoring(false);
88
+ return;
89
+ }
90
+ frame = requestAnimationFrame(() => {
91
+ frame = requestAnimationFrame(() => {
92
+ frame = null;
93
+ state.setRestoring(false);
94
+ });
95
+ });
96
+ };
84
97
  onMounted(() => {
85
98
  if (!props.autoSaveId) return;
86
99
  const restored = readSidebarLayout(props.autoSaveId);
87
100
  if (!restored) return;
88
- isRestoring = true;
101
+ isApplying = true;
102
+ state.setRestoring(true);
89
103
  state.setOpen(restored.isExpanded);
90
104
  if (restored.width !== void 0) state.setWidth(restored.width);
91
- isRestoring = false;
105
+ isApplying = false;
106
+ settle();
107
+ });
108
+ onUnmounted(() => {
109
+ if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
92
110
  });
93
111
  const side = computed(() => props.side ?? "left");
94
112
  const slots = computed(() => sidebarVariants({
@@ -50,6 +50,9 @@ export interface SidebarState {
50
50
  /** Whether a drag on the rail is in flight, which is what suppresses the width transition. */
51
51
  isResizing: ComputedRef<boolean>;
52
52
  setResizing: (isResizing: boolean) => void;
53
+ /** Whether a stored layout is still being put back, which suppresses the same transition. */
54
+ isRestoring: ComputedRef<boolean>;
55
+ setRestoring: (isRestoring: boolean) => void;
53
56
  }
54
57
  /**
55
58
  * Open state for a sidebar.