@revolist/ui 4.0.2-rc → 4.0.2

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 (343) hide show
  1. package/LICENSE +21 -0
  2. package/MIGRATION.md +36 -0
  3. package/OWNERSHIP.md +32 -32
  4. package/README.md +405 -265
  5. package/_button.scss +6 -2
  6. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  7. package/_chunks/calculator-CDWOuAcp.js +4 -0
  8. package/_chunks/{calendar-CpaUK7w1.js → calendar-CgXQgkga.js} +28 -18
  9. package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
  10. package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
  11. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  12. package/_chunks/choice-chips-SkllS5Kl.js +126 -0
  13. package/_chunks/clock-BOhPNlW3.js +4 -0
  14. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-DMJUChWC.js} +20 -22
  15. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-BpCTuIdm.js} +77 -72
  16. package/_chunks/{component-YDcfoOLz.js → component-CfeHXgIw.js} +301 -282
  17. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
  18. package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
  19. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  20. package/_chunks/control-Dcrjsunl.js +118 -0
  21. package/_chunks/{controls-DIum-E66.js → controls-B_6NJarZ.js} +217 -182
  22. package/_chunks/{date-control-BJSzu79z.js → date-control-C4h4m75W.js} +1 -1
  23. package/_chunks/{date-time-BxPJusp9.js → date-time-CTOSbzb0.js} +344 -307
  24. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  25. package/_chunks/dialog.parts-3w5FR06n.js +131 -0
  26. package/_chunks/{duration-87U2EoMS.js → duration-Bf2OS1V5.js} +19 -18
  27. package/_chunks/editor-popup-ByU7qiub.js +82 -0
  28. package/_chunks/field-configurator-D5dZRhDe.js +288 -0
  29. package/_chunks/field-context-D57PnBbH.js +5 -0
  30. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount-Bk4O_T7T.js} +1 -1
  31. package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
  32. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  33. package/_chunks/minus-BOAR3A1C.js +4 -0
  34. package/_chunks/mount-BRdcG60g.js +267 -0
  35. package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
  36. package/_chunks/native-control-B_fVA5bL.js +649 -0
  37. package/_chunks/{number-input-BeIadZuL.js → number-input-CmM6_2vR.js} +7 -7
  38. package/_chunks/{picker-DpP7iQLA.js → picker-DTqET-2W.js} +2 -2
  39. package/_chunks/plus-CbGRkIGl.js +4 -0
  40. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  41. package/_chunks/popup-C35Isk7p.js +378 -0
  42. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-C-6wcb9U.js} +1 -1
  43. package/_chunks/render-m5eMMwFR.js +83 -0
  44. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-DIl1gkV6.js} +1 -1
  45. package/_chunks/request-trail-DrhdpWiH.js +762 -0
  46. package/_chunks/rich-text-BnilBbhU.js +842 -0
  47. package/_chunks/rotate-left-BF6G883o.js +4 -0
  48. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  49. package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -0
  50. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  51. package/_chunks/tooltip-D4xkio5G.js +54 -0
  52. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  53. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  54. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  55. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  56. package/_dialog.scss +55 -21
  57. package/_form.scss +71 -21
  58. package/_legend.scss +25 -7
  59. package/_shared/data-query/index.d.ts +2 -2
  60. package/_shared/data-query/load-options.d.ts +2 -2
  61. package/_variables.scss +34 -32
  62. package/_view-switcher.scss +6 -0
  63. package/activity-message.d.ts +1 -1
  64. package/ai/_chat.scss +227 -0
  65. package/ai/_style.scss +170 -39
  66. package/ai/chat.d.ts +65 -0
  67. package/ai/components.d.ts +34 -5
  68. package/ai/index.d.ts +3 -0
  69. package/ai/index.js +3 -3
  70. package/ai/mount.d.ts +59 -6
  71. package/ai/prompt-history.d.ts +13 -0
  72. package/ai/request-trail.d.ts +9 -3
  73. package/ai/results/_style.scss +83 -0
  74. package/ai/results/index.d.ts +11 -0
  75. package/ai/results/metrics.d.ts +5 -0
  76. package/ai/results/table.d.ts +5 -0
  77. package/ai/results/text.d.ts +5 -0
  78. package/ai/results/types.d.ts +29 -0
  79. package/ai/transcript.d.ts +27 -0
  80. package/ai/translations.d.ts +1 -1
  81. package/angular/angular.d.ts +1 -1
  82. package/angular/angular.js +13 -10
  83. package/assignee/assignee.scss +28 -6
  84. package/assignee/index.js +34 -35
  85. package/avatar/avatar.style.scss +23 -6
  86. package/avatar/index.d.ts +25 -2
  87. package/avatar/index.js +33 -32
  88. package/badge.d.ts +1 -1
  89. package/badge.view.d.ts +8 -0
  90. package/brush-range/_brush-range.scss +55 -49
  91. package/brush-range/component.d.ts +1 -3
  92. package/brush-range/component.js +27 -27
  93. package/buttons/delete-button.d.ts +2 -1
  94. package/buttons/delete-button.js +1 -1
  95. package/buttons/delete-button.style.scss +6 -2
  96. package/buttons/remove-button.d.ts +1 -1
  97. package/buttons/remove-button.js +1 -1
  98. package/buttons/remove-button.style.scss +1 -1
  99. package/buttons/svg-button.d.ts +2 -1
  100. package/buttons/svg-button.js +19 -19
  101. package/calendar/_calendar.scss +27 -26
  102. package/calendar/calendar.js +1 -1
  103. package/calendar/header.js +1 -2
  104. package/calendar/index.js +2 -2
  105. package/cell-input.scss +3 -7
  106. package/cell-visuals/badge.style.scss +6 -3
  107. package/cell-visuals/bar-chart.style.scss +2 -1
  108. package/cell-visuals/column-type.style.css +12 -0
  109. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  110. package/cell-visuals/progress-line.style.scss +1 -4
  111. package/cell-visuals/sparkline.style.scss +2 -1
  112. package/cell-visuals/timeline.style.css +4 -2
  113. package/checkbox/checkbox.scss +6 -24
  114. package/choice-chips/index.d.ts +3 -1
  115. package/choice-chips/index.js +1 -1
  116. package/color-palette/color-palette.js +1 -1
  117. package/color-palette/color-palette.style.scss +88 -25
  118. package/color-palette/color-picker.js +2 -2
  119. package/color-palette/color-picker.style.scss +23 -10
  120. package/color-palette/common-palettes.d.ts +1 -1
  121. package/color-palette/common-palettes.js +1 -1
  122. package/color-palette/native.d.ts +15 -2
  123. package/component-catalog.d.ts +24 -11
  124. package/configurator-actions.d.ts +67 -0
  125. package/configurator-actions.js +1 -0
  126. package/configurator-aggregation-list.d.ts +14 -0
  127. package/configurator-aggregation-list.js +63 -0
  128. package/configurator-drop-zone.d.ts +39 -0
  129. package/configurator-drop-zone.js +66 -0
  130. package/configurator-field-icon.d.ts +10 -0
  131. package/configurator-field-icon.js +1 -0
  132. package/configurator-focus.d.ts +4 -0
  133. package/configurator-focus.js +39 -0
  134. package/configurator-sections.d.ts +42 -0
  135. package/configurator-sections.js +71 -0
  136. package/control-attributes.js +7 -7
  137. package/control-presentation.d.ts +8 -2
  138. package/control-presentation.js +25 -20
  139. package/controls.d.ts +19 -7
  140. package/controls.js +4 -3
  141. package/core/editor-popup-position.d.ts +6 -2
  142. package/core/editor-popup.d.ts +4 -0
  143. package/core/editor-popup.js +1 -1
  144. package/core/popover-controller.d.ts +35 -0
  145. package/core/popup-ownership.d.ts +2 -0
  146. package/core/selection-list-tooltips.d.ts +2 -0
  147. package/core/title-tooltip.d.ts +2 -0
  148. package/core/tooltip-session.d.ts +29 -0
  149. package/core/tooltip-surface.d.ts +13 -0
  150. package/core/tooltip-text.d.ts +6 -0
  151. package/core/tooltip.d.ts +35 -0
  152. package/core/top-layer-popup.d.ts +4 -0
  153. package/core/top-layer-popup.js +1 -23
  154. package/date-time/attach.d.ts +1 -1
  155. package/date-time/date-control.d.ts +1 -1
  156. package/date-time/field.d.ts +3 -2
  157. package/date-time/index.js +1 -1
  158. package/date-time/style.scss +242 -39
  159. package/date-time/time-selection.d.ts +3 -1
  160. package/date-time/types.d.ts +5 -1
  161. package/dialog/dialog-action-footer.d.ts +17 -2
  162. package/dialog/dialog.dom.d.ts +15 -2
  163. package/dialog/dialog.dom.js +3 -3
  164. package/dialog/dialog.parts.d.ts +1 -1
  165. package/dialog/dialog.parts.js +1 -1
  166. package/distribution-chart/_distribution-chart.scss +113 -77
  167. package/distribution-chart/area-chart.js +1 -1
  168. package/distribution-chart/bar-chart.d.ts +5 -2
  169. package/distribution-chart/bar-chart.js +7 -3
  170. package/distribution-chart/chart-frame.d.ts +2 -1
  171. package/distribution-chart/index.d.ts +1 -1
  172. package/distribution-chart/line-chart.js +1 -1
  173. package/dropdown/content.d.ts +2 -1
  174. package/dropdown/content.js +1 -142
  175. package/dropdown/control.d.ts +14 -0
  176. package/dropdown/control.js +1 -0
  177. package/dropdown/control.view.d.ts +6 -0
  178. package/dropdown/dropdown.types.d.ts +5 -1
  179. package/dropdown/editor-dropdown.style.scss +54 -16
  180. package/dropdown/index.d.ts +1 -1
  181. package/dropdown/index.js +3 -4
  182. package/dropdown/lookup-field.d.ts +5 -0
  183. package/dropdown/lookup-field.js +2 -1
  184. package/dropdown/popup.d.ts +2 -2
  185. package/dropdown/popup.js +1 -141
  186. package/duration/index.js +1 -1
  187. package/duration/style.scss +1 -1
  188. package/editor-actions.js +1 -1
  189. package/editor-layout/index.d.ts +4 -4
  190. package/editor-layout/index.js +39 -34
  191. package/editor-layout/style.scss +82 -18
  192. package/field-configurator.d.ts +39 -1
  193. package/field-configurator.js +4 -170
  194. package/field-expansion.d.ts +9 -0
  195. package/fieldset.d.ts +3 -0
  196. package/filter/filters/slider/_single-slider.scss +57 -38
  197. package/filter/filters/slider/_slider.scss +41 -33
  198. package/filter/filters/slider/control.js +2 -0
  199. package/filter/filters/slider/runtime.js +49 -22
  200. package/filter/filters/slider/single.js +1 -1
  201. package/filter-badge.js +1 -1
  202. package/filter-controls.d.ts +0 -1
  203. package/filter-controls.js +9 -10
  204. package/form-controls/field-context.d.ts +5 -0
  205. package/form-controls/index.d.ts +10 -2
  206. package/form-controls/index.js +4 -9
  207. package/form-controls/presentation.d.ts +1 -1
  208. package/form-controls/presentation.js +53 -45
  209. package/formatting/index.d.ts +1 -1
  210. package/formatting/index.js +40 -35
  211. package/formatting/styles.scss +14 -57
  212. package/framework.js +237 -226
  213. package/history-controls.d.ts +14 -0
  214. package/history-controls.js +27 -0
  215. package/icon-toolbar.d.ts +62 -0
  216. package/icon-toolbar.js +1 -0
  217. package/icons/icon.d.ts +1 -1
  218. package/legend.d.ts +1 -1
  219. package/masked-input/index.js +1 -1
  220. package/native-control.d.ts +6 -5
  221. package/native-control.js +3 -26
  222. package/native-controls.d.ts +54 -2
  223. package/native-styles.css +1 -1
  224. package/native-styles.scss +6 -2
  225. package/native.d.ts +3 -3
  226. package/native.js +41 -37
  227. package/number-input/index.d.ts +1 -1
  228. package/number-input/index.js +1 -1
  229. package/package.json +88 -14
  230. package/pagination.d.ts +3 -0
  231. package/pagination.js +50 -40
  232. package/pdf-viewer/header.d.ts +1 -1
  233. package/pdf-viewer/index.d.ts +2 -2
  234. package/pdf-viewer/index.js +1 -1
  235. package/pdf-viewer/search-bar.d.ts +1 -1
  236. package/pdf-viewer/status.d.ts +1 -1
  237. package/pdf-viewer/style.scss +205 -45
  238. package/pickers.d.ts +5 -1
  239. package/preact-mount.js +1 -1
  240. package/preact.d.ts +15 -10
  241. package/preact.js +109 -64
  242. package/progress/_bar.scss +9 -3
  243. package/progress/_circular.scss +2 -1
  244. package/rating-choice.js +1 -1
  245. package/react-adapter.d.ts +4 -2
  246. package/react-control.d.ts +1 -0
  247. package/react.d.ts +20 -11
  248. package/react.js +72 -88
  249. package/reorder-list.d.ts +1 -1
  250. package/reorder-list.js +1 -1
  251. package/reorder-list.scss +59 -17
  252. package/resource-picker/resource-picker-popup.js +1 -1
  253. package/resource-picker/resource-picker.js +73 -71
  254. package/resource-picker/resource-picker.scss +66 -35
  255. package/rich-text/engine.d.ts +17 -19
  256. package/rich-text/format-html.d.ts +2 -0
  257. package/rich-text/index.d.ts +11 -7
  258. package/rich-text/index.js +1 -1
  259. package/rich-text/model.d.ts +6 -3
  260. package/rich-text/render-model.d.ts +4 -5
  261. package/rich-text/style.scss +295 -55
  262. package/rich-text/syntax.d.ts +5 -2
  263. package/rich-text/toolbar.d.ts +6 -6
  264. package/rich-text/translations.d.ts +5 -15
  265. package/search-input/index.js +1 -1
  266. package/search-input/native.d.ts +21 -2
  267. package/select.d.ts +22 -0
  268. package/select.js +1 -0
  269. package/selection-list.d.ts +1 -0
  270. package/selection-list.js +3 -1
  271. package/status-feedback/exit-snapshot.js +1 -1
  272. package/status-feedback/index.js +2 -2
  273. package/status-feedback/popover.js +9 -9
  274. package/status-feedback/render.js +3 -44
  275. package/status-feedback/status-feedback.scss +130 -34
  276. package/status-feedback/types.d.ts +4 -0
  277. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  278. package/styles/_activity-message.scss +24 -7
  279. package/styles/_alert.scss +78 -17
  280. package/styles/_cell-editor-frame.scss +11 -0
  281. package/styles/_compositions.scss +404 -82
  282. package/styles/_control.scss +42 -12
  283. package/styles/_disclosure.scss +15 -5
  284. package/styles/_editor-counter.scss +16 -6
  285. package/styles/_editor-slider.scss +8 -4
  286. package/styles/_field-configurator.scss +321 -23
  287. package/styles/_fields-grid.scss +49 -0
  288. package/styles/_filter-controls.scss +10 -2
  289. package/styles/_icon-action.scss +48 -15
  290. package/styles/_loading.scss +12 -3
  291. package/styles/_motion.scss +32 -9
  292. package/styles/_palette.scss +0 -24
  293. package/styles/_primitives.scss +376 -116
  294. package/styles/_theme.scss +130 -86
  295. package/styles/_thresholds.scss +28 -25
  296. package/styles/_time-grid.scss +8 -3
  297. package/styles/_tokens.scss +6 -1
  298. package/styles/configurator-actions.scss +241 -0
  299. package/styles/pagination.css +213 -0
  300. package/styles/{legacy-rating.css → rating.css} +8 -3
  301. package/styles.css +1 -1
  302. package/styles.scss +3 -5
  303. package/surfaces.d.ts +38 -2
  304. package/surfaces.js +37 -134
  305. package/svelte/UiComponent.server.js +1 -48
  306. package/svelte/UiComponent.svelte +44 -32
  307. package/svelte.d.ts +1 -1
  308. package/svelte.js +33 -68
  309. package/switch/index.js +15 -14
  310. package/time-grid.d.ts +0 -1
  311. package/time-grid.js +38 -37
  312. package/timeline-track/_style.scss +96 -24
  313. package/timeline-track/component.d.ts +5 -1
  314. package/timeline-track/index.js +71 -54
  315. package/timeline-track/model.d.ts +9 -0
  316. package/timeline-track/model.js +10 -1
  317. package/ui.css +1 -1
  318. package/view-switcher.d.ts +23 -0
  319. package/vue.d.ts +51 -35
  320. package/vue.js +149 -178
  321. package/_chunks/chart-frame-BC99KjGa.js +0 -127
  322. package/_chunks/choice-chips-Cs4D-3nH.js +0 -110
  323. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  324. package/_chunks/control-tooltip-ztgmsG7H.js +0 -100
  325. package/_chunks/dialog.parts-DBqo3Qwb.js +0 -134
  326. package/_chunks/dropdown-voWqmwAe.js +0 -357
  327. package/_chunks/editor-popup-D3JdS8l3.js +0 -81
  328. package/_chunks/mount-DZe_6VtR.js +0 -90
  329. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  330. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  331. package/avatar/index.view.d.ts +0 -25
  332. package/color-palette/native.view.d.ts +0 -15
  333. package/control-presentation.view.d.ts +0 -8
  334. package/dialog/dialog-action-footer.view.d.ts +0 -20
  335. package/dialog/dialog.dom.view.d.ts +0 -15
  336. package/form-controls/index.view.d.ts +0 -12
  337. package/formatting/control-tooltip.d.ts +0 -27
  338. package/native-controls.view.d.ts +0 -54
  339. package/react-native-select.d.ts +0 -6
  340. package/search-input/native.view.d.ts +0 -21
  341. package/styles/legacy-pagination.css +0 -112
  342. package/surfaces.view.d.ts +0 -63
  343. package/vue-native-select.d.ts +0 -9
@@ -1,20 +1,20 @@
1
1
  import { c as e, i as t } from "./preact.module-BBM36DnO.js";
2
2
  import { i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
3
- import { badgeClassName as a } from "../badge.js";
4
- import { n as o } from "./rating-choice-Ca8ZBty3.js";
5
- import { t as s } from "./jsxRuntime.module-F6UFnpT-.js";
6
- import { n as c } from "./compat.module-DDB2pm9O.js";
7
- import { createPreactElement as l } from "../preact-mount.js";
8
- import { registerControl as u, renderControl as d } from "../control-presentation.js";
9
- import { ButtonControl as f, Input as p, Select as m, TextArea as h } from "../native-control.js";
3
+ import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
4
+ import { createPreactElement as o } from "../preact-mount.js";
5
+ import { createControlId as s } from "../core/control-id.js";
6
+ import { t as c } from "./title-tooltip-Cw6LOZhb.js";
7
+ import { n as l } from "./rating-choice-C-6wcb9U.js";
8
+ import { a as u, n as d, t as f } from "./native-control-B_fVA5bL.js";
9
+ import { r as p } from "./popup-C35Isk7p.js";
10
+ import { registerControl as m, renderControl as h } from "../control-presentation.js";
10
11
  import { paginationItems as g, renderPaginationButton as _ } from "../pagination.js";
11
- import { t as v } from "./chevron-left-D0nc4Z5S.js";
12
- import { t as y } from "./chevron-right-sxHQMSkq.js";
13
- import { createControlId as b } from "../core/control-id.js";
14
- import { SvgButton as x } from "../buttons/svg-button.js";
15
- import { SegmentedSwitch as S } from "../segmented-switch/index.js";
16
- import { attachMenuKeyboard as C, attachResizeHandle as ee } from "../surfaces.js";
12
+ import { n as v, t as y } from "./chevron-right-CM3ljziP.js";
13
+ import { SvgButton as b } from "../buttons/svg-button.js";
14
+ import { SegmentedSwitch as x } from "../segmented-switch/index.js";
15
+ import { attachMenuKeyboard as S, attachResizeHandle as C } from "../surfaces.js";
17
16
  import { normalizeProgressRange as w } from "../progress/range.js";
17
+ import { badgeClassName as ee } from "../badge.js";
18
18
  //#endregion
19
19
  //#region src/icons/pagination.ts
20
20
  var te = {
@@ -24,7 +24,7 @@ var te = {
24
24
  last: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M439.1 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L371.2 256 233.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L179.2 256 41.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z\"/></svg>"
25
25
  };
26
26
  //#endregion
27
- //#region src/native-controls.view.tsx
27
+ //#region src/native-controls.tsx
28
28
  function T(e, t) {
29
29
  return e("div", {
30
30
  class: t.className ?? "rv-spinner",
@@ -37,7 +37,7 @@ function T(e, t) {
37
37
  })] : []);
38
38
  }
39
39
  function E(e, t) {
40
- return l(e, /* @__PURE__ */ s(f, {
40
+ return o(e, /* @__PURE__ */ a(f, {
41
41
  unstyled: !0,
42
42
  type: "button",
43
43
  class: t.className ?? "rv-btn",
@@ -69,38 +69,31 @@ function O(e, t, n = Math.max(0, Math.floor(t))) {
69
69
  }
70
70
  function k(e, t) {
71
71
  let n = (e) => t.max > t.min ? Math.max(0, Math.min(100, (e - t.min) / (t.max - t.min) * 100)) : 0;
72
- return e("div", { class: `revo-slider ${t.thresholdClassNames ?? ""}` }, [e("div", { class: `revo-slider-container ${t.thresholdClassNames ?? ""}` }, [
73
- e("div", {
74
- class: "revo-slider-fill",
75
- style: { width: `${n(t.value)}%` }
76
- }),
77
- e("input", {
78
- class: "revo-slider-input rv-single-slider",
79
- style: { "--rv-single-slider-value": `${n(t.value)}%` },
80
- type: "range",
81
- min: t.min,
82
- max: t.max,
83
- step: t.step,
84
- value: t.value,
85
- "aria-label": t.label,
86
- "aria-valuetext": String(t.displayValue ?? t.value),
87
- onInput: (e) => {
88
- let r = e.target;
89
- r.style.setProperty("--rv-single-slider-value", `${n(Number(r.value))}%`);
90
- let i = r.closest(".revo-slider")?.querySelector(".revo-slider-value"), a = String(t.formatValue?.(Number(r.value)) ?? Number(r.value));
91
- r.setAttribute("aria-valuetext", a), i && (i.textContent = a);
92
- },
93
- onChange: (e) => t.onChange(Number(e.target.value), e),
94
- onMouseDown: t.onMouseDown
95
- }),
96
- ...(t.thresholds ?? []).map((t) => e("div", {
97
- class: `revo-slider-threshold ${t.className}`,
98
- style: { left: `${n(t.value)}%` }
99
- }))
100
- ]), ...t.hideValue ? [] : [e("span", { class: `revo-slider-value rv-badge rv-badge--inline ${t.thresholdClassNames ?? ""}` }, t.displayValue ?? t.value)]]);
72
+ return e("div", { class: `revo-slider ${t.thresholdClassNames ?? ""}` }, [e("div", { class: `revo-slider-container ${t.thresholdClassNames ?? ""}` }, [e("input", {
73
+ class: "revo-slider-input rv-single-slider",
74
+ style: { "--rv-single-slider-value": `${n(t.value)}%` },
75
+ type: "range",
76
+ min: t.min,
77
+ max: t.max,
78
+ step: t.step,
79
+ value: t.value,
80
+ "aria-label": t.label,
81
+ "aria-valuetext": String(t.displayValue ?? t.value),
82
+ onInput: (e) => {
83
+ let r = e.target;
84
+ r.style.setProperty("--rv-single-slider-value", `${n(Number(r.value))}%`);
85
+ let i = r.closest(".revo-slider")?.querySelector(".revo-slider-value"), a = String(t.formatValue?.(Number(r.value)) ?? Number(r.value));
86
+ r.setAttribute("aria-valuetext", a), i && (i.textContent = a);
87
+ },
88
+ onChange: (e) => t.onChange(Number(e.target.value), e),
89
+ onMouseDown: t.onMouseDown
90
+ }), ...(t.thresholds ?? []).map((t) => e("div", {
91
+ class: `revo-slider-threshold ${t.className}`,
92
+ style: { left: `${n(t.value)}%` }
93
+ }))]), ...t.hideValue ? [] : [e("span", { class: `revo-slider-value rv-badge rv-badge--inline ${t.thresholdClassNames ?? ""}` }, t.displayValue ?? t.value)]]);
101
94
  }
102
95
  function A(e, t) {
103
- let n = (n, r, i) => d(e, "button", {
96
+ let n = (n, r, i) => h(e, "button", {
104
97
  class: {
105
98
  "revo-counter-button": !0,
106
99
  "revo-counter-button-disabled": r
@@ -120,8 +113,19 @@ function A(e, t) {
120
113
  ]);
121
114
  }
122
115
  //#endregion
116
+ //#region src/badge.view.tsx
117
+ function j({ children: e, className: t = "", variant: n, shape: r }) {
118
+ return /* @__PURE__ */ a("span", {
119
+ class: `${ee({
120
+ variant: n,
121
+ shape: r
122
+ })} ${t}`,
123
+ children: e
124
+ });
125
+ }
126
+ //#endregion
123
127
  //#region src/alert.tsx
124
- function j(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, description: o, actions: s, className: c = "", class: l = "", ...u }) {
128
+ function M(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, description: o, actions: s, className: c = "", class: l = "", ...u }) {
125
129
  let d = (t, n, ...r) => e(t, n, r);
126
130
  return /* @__PURE__ */ d("div", {
127
131
  ...u,
@@ -133,36 +137,61 @@ function j(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, d
133
137
  "aria-hidden": "true"
134
138
  }, i), /* @__PURE__ */ d("div", { class: "rv-alert__content" }, a && /* @__PURE__ */ d("div", { class: "rv-alert__title" }, a), o && /* @__PURE__ */ d("div", { class: "rv-alert__description" }, o), t), s && /* @__PURE__ */ d("div", { class: "rv-alert__actions" }, s));
135
139
  }
136
- function M(t) {
137
- return j(e, t);
140
+ function ne(t) {
141
+ return M(e, t);
138
142
  }
139
143
  //#endregion
140
144
  //#region src/controls.tsx
141
- var N = u(c(function({ variant: e = "default", size: t = "default", className: n = "", class: r, ...i }, a) {
142
- return /* @__PURE__ */ s(f, {
143
- ref: a,
145
+ var N = m(p(function({ href: e, target: t, rel: n, rounded: r = !1, variant: i = "default", size: o = "default", className: s = "", class: l, ...u }, d) {
146
+ let p = c(e !== void 0 && typeof u.title == "string" ? u.title : void 0), m = [
147
+ i === "default" ? "rv-btn" : `rv-btn-${i}`,
148
+ o === "compact" ? "rv-btn-sm" : "",
149
+ r ? "rv-btn-rounded" : "",
150
+ l,
151
+ s
152
+ ].filter(Boolean).join(" ");
153
+ if (e !== void 0) {
154
+ let r = u.disabled || u.busy, { busy: i, disabled: o, title: s, ...c } = u;
155
+ return /* @__PURE__ */ a("a", {
156
+ ...c,
157
+ ref: p,
158
+ href: r ? void 0 : e,
159
+ target: t,
160
+ rel: n,
161
+ class: m,
162
+ "aria-disabled": r || void 0,
163
+ "aria-busy": i || void 0,
164
+ tabIndex: r ? -1 : u.tabIndex,
165
+ onClick: (e) => {
166
+ r ? e.preventDefault() : u.onClick?.(e);
167
+ }
168
+ });
169
+ }
170
+ return /* @__PURE__ */ a(f, {
171
+ ref: d,
172
+ rounded: r,
144
173
  type: "button",
145
- ...i,
174
+ ...u,
146
175
  class: [
147
- e === "default" ? "rv-btn" : `rv-btn-${e}`,
148
- t === "compact" ? "rv-btn-sm" : "",
149
- r,
150
- n
176
+ i === "default" ? "rv-btn" : `rv-btn-${i}`,
177
+ o === "compact" ? "rv-btn-sm" : "",
178
+ l,
179
+ s
151
180
  ].filter(Boolean).join(" ")
152
181
  });
153
182
  }), "button");
154
- function P({ label: e, icon: t, badge: n, children: r, className: i = "", variant: a = "ghost", size: o = "default", ...c }) {
155
- return /* @__PURE__ */ s(x, {
183
+ function P({ label: e, icon: t, badge: n, children: r, className: i = "", variant: o = "ghost", size: s = "default", ...c }) {
184
+ return /* @__PURE__ */ a(b, {
156
185
  ...c,
157
186
  label: e,
158
187
  icon: t,
159
188
  badge: n,
160
- className: `rv-btn-icon ${a === "default" ? "rv-btn" : `rv-btn-${a}`} ${o === "compact" ? "rv-btn-sm" : ""} ${i}`,
189
+ className: `rv-btn-icon ${o === "default" ? "rv-btn" : `rv-btn-${o}`} ${s === "compact" ? "rv-btn-sm" : ""} ${i}`,
161
190
  children: r
162
191
  });
163
192
  }
164
193
  function F({ pressed: e, onPressedChange: t, ...n }) {
165
- return /* @__PURE__ */ s(N, {
194
+ return /* @__PURE__ */ a(N, {
166
195
  ...n,
167
196
  "aria-pressed": e,
168
197
  onClick: (r) => {
@@ -171,7 +200,7 @@ function F({ pressed: e, onPressedChange: t, ...n }) {
171
200
  });
172
201
  }
173
202
  function I({ children: e, className: t = "", label: n }) {
174
- return /* @__PURE__ */ s("div", {
203
+ return /* @__PURE__ */ a("div", {
175
204
  role: "group",
176
205
  "aria-label": n,
177
206
  class: `rv-btn-group ${t}`,
@@ -179,19 +208,19 @@ function I({ children: e, className: t = "", label: n }) {
179
208
  });
180
209
  }
181
210
  function L(e) {
182
- return /* @__PURE__ */ s(S, {
211
+ return /* @__PURE__ */ a(x, {
183
212
  ...e,
184
213
  role: "radiogroup"
185
214
  });
186
215
  }
187
216
  function R(e) {
188
- return /* @__PURE__ */ s(S, {
217
+ return /* @__PURE__ */ a(x, {
189
218
  ...e,
190
219
  role: "tablist"
191
220
  });
192
221
  }
193
222
  function z({ id: e, labelledBy: t, active: n, children: r }) {
194
- return /* @__PURE__ */ s("div", {
223
+ return /* @__PURE__ */ a("div", {
195
224
  id: e,
196
225
  role: "tabpanel",
197
226
  "aria-labelledby": t,
@@ -199,14 +228,14 @@ function z({ id: e, labelledBy: t, active: n, children: r }) {
199
228
  children: r
200
229
  });
201
230
  }
202
- function B({ className: e = "", value: t, options: r, onChange: i, label: a, disabled: o, name: c }) {
203
- let [l] = n(() => b("rv-ui"));
204
- return /* @__PURE__ */ s("fieldset", {
231
+ function B({ className: e = "", value: t, options: r, onChange: i, label: o, disabled: c, name: l }) {
232
+ let [u] = n(() => s("rv-ui"));
233
+ return /* @__PURE__ */ a("fieldset", {
205
234
  class: `rv-radio-group ${e}`,
206
- disabled: o,
207
- children: [/* @__PURE__ */ s("legend", { children: a }), r.map((e) => /* @__PURE__ */ s("label", { children: [/* @__PURE__ */ s(p, {
235
+ disabled: c,
236
+ children: [/* @__PURE__ */ a("legend", { children: o }), r.map((e) => /* @__PURE__ */ a("label", { children: [/* @__PURE__ */ a(d, {
208
237
  type: "radio",
209
- name: c ?? l,
238
+ name: l ?? u,
210
239
  checked: t === e.value,
211
240
  disabled: e.disabled,
212
241
  onChange: () => i(e.value)
@@ -214,7 +243,7 @@ function B({ className: e = "", value: t, options: r, onChange: i, label: a, dis
214
243
  });
215
244
  }
216
245
  function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
217
- return /* @__PURE__ */ s(p, {
246
+ return /* @__PURE__ */ a(d, {
218
247
  type: "text",
219
248
  ...i,
220
249
  class: `rv-control ${t ?? ""} ${e}`,
@@ -224,7 +253,7 @@ function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
224
253
  });
225
254
  }
226
255
  function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
227
- return /* @__PURE__ */ s(h, {
256
+ return /* @__PURE__ */ a(u, {
228
257
  ...i,
229
258
  class: `rv-control ${t ?? ""} ${e}`,
230
259
  onInput: (e) => {
@@ -233,7 +262,7 @@ function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
233
262
  });
234
263
  }
235
264
  function U({ onValueChange: e, ...t }) {
236
- return /* @__PURE__ */ s(V, {
265
+ return /* @__PURE__ */ a(V, {
237
266
  ...t,
238
267
  type: "number",
239
268
  onValueChange: (t) => {
@@ -241,23 +270,23 @@ function U({ onValueChange: e, ...t }) {
241
270
  }
242
271
  });
243
272
  }
244
- function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: a, decreaseLabel: o, increaseLabel: c, disabled: l, readOnly: u }) {
273
+ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: o, decreaseLabel: s, increaseLabel: c, disabled: l, readOnly: u }) {
245
274
  let d = (e) => {
246
275
  Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
247
276
  };
248
- return /* @__PURE__ */ s("div", {
277
+ return /* @__PURE__ */ a("div", {
249
278
  class: "rv-number-stepper",
250
279
  role: "group",
251
- "aria-label": a,
280
+ "aria-label": o,
252
281
  children: [
253
- /* @__PURE__ */ s(N, {
282
+ /* @__PURE__ */ a(N, {
254
283
  disabled: l || u || e <= t,
255
- "aria-label": o,
284
+ "aria-label": s,
256
285
  onClick: () => d(e - r),
257
286
  children: "−"
258
287
  }),
259
- /* @__PURE__ */ s(U, {
260
- "aria-label": a,
288
+ /* @__PURE__ */ a(U, {
289
+ "aria-label": o,
261
290
  value: e,
262
291
  min: Number.isFinite(t) ? t : void 0,
263
292
  max: Number.isFinite(n) ? n : void 0,
@@ -268,7 +297,7 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
268
297
  e !== void 0 && d(e);
269
298
  }
270
299
  }),
271
- /* @__PURE__ */ s(N, {
300
+ /* @__PURE__ */ a(N, {
272
301
  disabled: l || u || e >= n,
273
302
  "aria-label": c,
274
303
  onClick: () => d(e + r),
@@ -278,62 +307,53 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
278
307
  });
279
308
  }
280
309
  function G(e) {
281
- return /* @__PURE__ */ s(V, {
310
+ return /* @__PURE__ */ a(V, {
282
311
  ...e,
283
312
  type: "date"
284
313
  });
285
314
  }
286
315
  function K(e) {
287
- return /* @__PURE__ */ s(V, {
316
+ return /* @__PURE__ */ a(V, {
288
317
  ...e,
289
318
  type: "time"
290
319
  });
291
320
  }
292
321
  function q(e) {
293
- return /* @__PURE__ */ s(V, {
322
+ return /* @__PURE__ */ a(V, {
294
323
  ...e,
295
324
  type: "datetime-local"
296
325
  });
297
326
  }
298
- function J({ className: e = "", class: t, onValueChange: n, onChange: r, ...i }) {
299
- return /* @__PURE__ */ s(m, {
300
- ...i,
301
- class: `rv-control ${t ?? ""} ${e}`,
302
- onChange: (e) => {
303
- r?.(e), e.defaultPrevented || n?.(e.currentTarget.value);
304
- }
305
- });
306
- }
307
- function Y({ children: e, className: t = "" }) {
308
- return /* @__PURE__ */ s("span", {
327
+ function J({ children: e, className: t = "" }) {
328
+ return /* @__PURE__ */ a("span", {
309
329
  class: `rv-btn-pill ${t}`,
310
330
  children: e
311
331
  });
312
332
  }
313
- function ne({ children: e, id: t }) {
314
- return /* @__PURE__ */ s("span", {
333
+ function re({ children: e, id: t }) {
334
+ return /* @__PURE__ */ a("span", {
315
335
  class: "rv-field__hint",
316
336
  id: t,
317
337
  children: e
318
338
  });
319
339
  }
320
- function X({ children: e, id: t }) {
321
- return /* @__PURE__ */ s("span", {
340
+ function Y({ children: e, id: t }) {
341
+ return /* @__PURE__ */ a("span", {
322
342
  class: "rv-field__error",
323
343
  id: t,
324
344
  role: "alert",
325
345
  children: e
326
346
  });
327
347
  }
328
- function Z({ children: e, title: t, description: n }) {
329
- return /* @__PURE__ */ s("fieldset", {
348
+ function X({ children: e, title: t, description: n }) {
349
+ return /* @__PURE__ */ a("fieldset", {
330
350
  class: "rv-form-section",
331
351
  children: [
332
- t && /* @__PURE__ */ s("legend", {
352
+ t && /* @__PURE__ */ a("legend", {
333
353
  class: "rv-form-section__title",
334
354
  children: t
335
355
  }),
336
- n && /* @__PURE__ */ s("p", {
356
+ n && /* @__PURE__ */ a("p", {
337
357
  class: "rv-form-description",
338
358
  children: n
339
359
  }),
@@ -341,93 +361,84 @@ function Z({ children: e, title: t, description: n }) {
341
361
  ]
342
362
  });
343
363
  }
344
- function re({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
345
- return /* @__PURE__ */ s("details", {
364
+ function ie({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
365
+ return /* @__PURE__ */ a("details", {
346
366
  class: `rv-disclosure ${t}`.trim(),
347
367
  open: r,
348
368
  onToggle: i,
349
- children: [/* @__PURE__ */ s("summary", {
369
+ children: [/* @__PURE__ */ a("summary", {
350
370
  class: "rv-disclosure-summary",
351
371
  children: n
352
372
  }), e]
353
373
  });
354
374
  }
355
- function ie({ children: e, className: t = "", label: n }) {
356
- return /* @__PURE__ */ s("section", {
375
+ function ae({ children: e, className: t = "", label: n }) {
376
+ return /* @__PURE__ */ a("section", {
357
377
  class: `rv-panel ${t}`,
358
378
  "aria-label": n,
359
379
  children: e
360
380
  });
361
381
  }
362
- function ae({ children: e, className: t = "", label: n }) {
363
- return /* @__PURE__ */ s("div", {
382
+ function oe({ children: e, className: t = "", label: n }) {
383
+ return /* @__PURE__ */ a("div", {
364
384
  class: `rv-toolbar ${t}`,
365
385
  role: "toolbar",
366
386
  "aria-label": n,
367
387
  children: e
368
388
  });
369
389
  }
370
- function oe({ children: e, className: t = "", label: n }) {
371
- return /* @__PURE__ */ s("div", {
390
+ function se({ children: e, className: t = "", label: n }) {
391
+ return /* @__PURE__ */ a("div", {
372
392
  class: `rv-toolbar-group ${t}`,
373
393
  role: "group",
374
394
  "aria-label": n,
375
395
  children: e
376
396
  });
377
397
  }
378
- function se() {
379
- return /* @__PURE__ */ s("span", {
398
+ function ce() {
399
+ return /* @__PURE__ */ a("span", {
380
400
  class: "rv-toolbar-separator",
381
401
  role: "separator",
382
402
  "aria-orientation": "vertical"
383
403
  });
384
404
  }
385
- function ce({ children: e, className: t = "", variant: n, shape: r }) {
386
- return /* @__PURE__ */ s("span", {
387
- class: `${a({
388
- variant: n,
389
- shape: r
390
- })} ${t}`,
391
- children: e
392
- });
393
- }
394
405
  function le({ count: e, label: t }) {
395
- return /* @__PURE__ */ s("span", {
406
+ return /* @__PURE__ */ a("span", {
396
407
  class: "rv-count",
397
408
  "aria-label": t,
398
409
  children: e
399
410
  });
400
411
  }
401
- function Q({ label: t }) {
412
+ function Z({ label: t }) {
402
413
  return T(e, {
403
414
  label: t,
404
415
  showSpinner: !0
405
416
  });
406
417
  }
407
418
  function ue({ busy: e, label: t, children: n }) {
408
- return /* @__PURE__ */ s("div", {
419
+ return /* @__PURE__ */ a("div", {
409
420
  class: "rv-loading-container",
410
421
  "aria-busy": e,
411
- children: [n, e && /* @__PURE__ */ s("div", {
422
+ children: [n, e && /* @__PURE__ */ a("div", {
412
423
  class: "rv-loading-overlay",
413
- children: /* @__PURE__ */ s(Q, { label: t })
424
+ children: /* @__PURE__ */ a(Z, { label: t })
414
425
  })]
415
426
  });
416
427
  }
417
428
  function de({ title: e, description: t, children: n }) {
418
- return /* @__PURE__ */ s("div", {
429
+ return /* @__PURE__ */ a("div", {
419
430
  class: "rv-empty-state",
420
431
  children: [
421
- /* @__PURE__ */ s("strong", { children: e }),
422
- t && /* @__PURE__ */ s("p", { children: t }),
432
+ /* @__PURE__ */ a("strong", { children: e }),
433
+ t && /* @__PURE__ */ a("p", { children: t }),
423
434
  n
424
435
  ]
425
436
  });
426
437
  }
427
- function $({ children: e, label: t, onClose: n }) {
428
- let a = i(null);
429
- return r(() => a.current ? C(a.current, n) : void 0, [n]), /* @__PURE__ */ s("div", {
430
- ref: a,
438
+ function Q({ children: e, label: t, onClose: n }) {
439
+ let o = i(null);
440
+ return r(() => o.current ? S(o.current, n) : void 0, [n]), /* @__PURE__ */ a("div", {
441
+ ref: o,
431
442
  class: "rv-menu",
432
443
  role: "menu",
433
444
  "aria-label": t,
@@ -435,7 +446,7 @@ function $({ children: e, label: t, onClose: n }) {
435
446
  });
436
447
  }
437
448
  function fe({ children: e, ...t }) {
438
- return /* @__PURE__ */ s(N, {
449
+ return /* @__PURE__ */ a(N, {
439
450
  variant: "ghost",
440
451
  ...t,
441
452
  role: "menuitem",
@@ -443,50 +454,50 @@ function fe({ children: e, ...t }) {
443
454
  });
444
455
  }
445
456
  function pe() {
446
- return /* @__PURE__ */ s("div", {
457
+ return /* @__PURE__ */ a("div", {
447
458
  role: "separator",
448
459
  class: "rv-menu-separator"
449
460
  });
450
461
  }
451
462
  function me({ label: e, children: t }) {
452
- let [a, o] = n(!1), c = i(null), l = i(null), [u] = n(() => b("rv-ui"));
463
+ let [o, c] = n(!1), l = i(null), u = i(null), [d] = n(() => s("rv-ui"));
453
464
  r(() => {
454
- a && c.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
455
- }, [a]);
456
- let d = () => {
457
- o(!1), l.current?.focus();
465
+ o && l.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
466
+ }, [o]);
467
+ let f = () => {
468
+ c(!1), u.current?.focus();
458
469
  };
459
- return /* @__PURE__ */ s("div", {
460
- ref: c,
470
+ return /* @__PURE__ */ a("div", {
471
+ ref: l,
461
472
  class: "rv-submenu",
462
473
  onKeyDown: (e) => {
463
- a && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), d());
474
+ o && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), f());
464
475
  },
465
- children: [/* @__PURE__ */ s(N, {
466
- ref: l,
476
+ children: [/* @__PURE__ */ a(N, {
477
+ ref: u,
467
478
  variant: "ghost",
468
479
  role: "menuitem",
469
480
  "aria-haspopup": "menu",
470
- "aria-expanded": a,
471
- "aria-controls": u,
472
- onClick: () => o(!a),
481
+ "aria-expanded": o,
482
+ "aria-controls": d,
483
+ onClick: () => c(!o),
473
484
  onKeyDown: (e) => {
474
- e.key === "ArrowRight" && (e.preventDefault(), o(!0));
485
+ e.key === "ArrowRight" && (e.preventDefault(), c(!0));
475
486
  },
476
487
  children: e
477
- }), a && /* @__PURE__ */ s("div", {
478
- id: u,
479
- children: /* @__PURE__ */ s($, {
488
+ }), o && /* @__PURE__ */ a("div", {
489
+ id: d,
490
+ children: /* @__PURE__ */ a(Q, {
480
491
  label: e,
481
- onClose: d,
492
+ onClose: f,
482
493
  children: t
483
494
  })
484
495
  })]
485
496
  });
486
497
  }
487
- function he(e) {
498
+ function $(e) {
488
499
  let t = i(null), n = i(e);
489
- return n.current = e, r(() => t.current ? ee(t.current, () => n.current) : void 0, []), /* @__PURE__ */ s("div", {
500
+ return n.current = e, r(() => t.current ? C(t.current, () => n.current) : void 0, []), /* @__PURE__ */ a("div", {
490
501
  class: "rv-resize-handle",
491
502
  ref: t,
492
503
  role: "separator",
@@ -498,33 +509,57 @@ function he(e) {
498
509
  "aria-valuemax": e.max
499
510
  });
500
511
  }
501
- function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, nextLabel: c, firstLabel: l = "First page", lastLabel: u = "Last page", variant: d = "compact", disabled: f = !1, navigation: p = !0, boundaryButtons: m = !1, buttons: h, children: v, className: y = "" }) {
512
+ function he({ edge: e, initialWidth: t, anchorRef: o, resizeParent: s = !1, max: c, ...l }) {
513
+ let u = i(null), d = o ?? u, [f, p] = n(t);
514
+ return r(() => {
515
+ let e = d.current?.parentElement, t = s ? e?.parentElement : e;
516
+ if (!t) return;
517
+ let n = () => {
518
+ let e = Math.round(t.getBoundingClientRect().width);
519
+ e > 0 && p(e);
520
+ };
521
+ n();
522
+ let r = t.ownerDocument.defaultView?.ResizeObserver, i = r && new r(n);
523
+ return i?.observe(t, { box: "border-box" }), () => i?.disconnect();
524
+ }, [d, s]), /* @__PURE__ */ a("div", {
525
+ ref: d,
526
+ class: "rv-panel-resize-handle",
527
+ "data-edge": e,
528
+ children: /* @__PURE__ */ a($, {
529
+ ...l,
530
+ value: f,
531
+ max: c === void 0 ? void 0 : Math.max(c, f),
532
+ direction: e === "left" ? "rtl" : "ltr"
533
+ })
534
+ });
535
+ }
536
+ function ge({ page: n, pageCount: r, onChange: i, label: o, previousLabel: s, nextLabel: c, firstLabel: l = "First page", lastLabel: u = "Last page", variant: d = "compact", disabled: f = !1, navigation: p = !0, boundaryButtons: m = !1, buttons: h, children: v, className: y = "" }) {
502
537
  let b = Number.isFinite(r) ? Math.max(0, Math.floor(r)) : 0, x = Math.min(Math.max(0, Math.floor(n) || 0), Math.max(0, b - 1)), S = (e, t) => {
503
538
  let n = h?.[e];
504
539
  if (n === !1) return null;
505
- let r = e === "first" ? 0 : e === "last" ? b - 1 : x + (e === "previous" ? -1 : 1), a = f || !!n?.disabled || !b || r < 0 || r >= b || r === x;
506
- return /* @__PURE__ */ s(P, {
540
+ let r = e === "first" ? 0 : e === "last" ? b - 1 : x + (e === "previous" ? -1 : 1), o = f || !!n?.disabled || !b || r < 0 || r >= b || r === x;
541
+ return /* @__PURE__ */ a(P, {
507
542
  ...n,
508
543
  label: t,
509
544
  icon: te[e],
510
545
  size: "compact",
511
546
  className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
512
- disabled: a,
547
+ disabled: o,
513
548
  onClick: () => {
514
- a || i(r);
549
+ o || i(r);
515
550
  }
516
551
  });
517
552
  };
518
- return /* @__PURE__ */ s("nav", {
553
+ return /* @__PURE__ */ a("nav", {
519
554
  class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${y}`,
520
- "aria-label": a,
555
+ "aria-label": o,
521
556
  children: [
522
557
  p && m && S("first", l),
523
- p && S("previous", o),
558
+ p && S("previous", s),
524
559
  v,
525
- d === "numbered" ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("span", {
560
+ d === "numbered" ? /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a("span", {
526
561
  class: `rv-pagination-pages ${b <= 5 ? "rv-pagination-pages--compact" : ""}`,
527
- children: g(x, b, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ s("span", {
562
+ children: g(x, b, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ a("span", {
528
563
  class: "rv-pagination-ellipsis",
529
564
  "aria-label": "More pages",
530
565
  children: "…"
@@ -537,7 +572,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
537
572
  !f && t !== x && i(t);
538
573
  }
539
574
  }))
540
- }), b > 5 && /* @__PURE__ */ s("span", {
575
+ }), b > 5 && /* @__PURE__ */ a("span", {
541
576
  class: "rv-pagination-summary rv-pagination-summary--responsive",
542
577
  "aria-live": "polite",
543
578
  children: [
@@ -545,7 +580,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
545
580
  " / ",
546
581
  b
547
582
  ]
548
- })] }) : d === "compact" ? /* @__PURE__ */ s("span", {
583
+ })] }) : d === "compact" ? /* @__PURE__ */ a("span", {
549
584
  class: "rv-pagination-summary",
550
585
  "aria-live": "polite",
551
586
  children: [
@@ -561,7 +596,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
561
596
  }
562
597
  function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
563
598
  let i = w(e, t, n);
564
- return /* @__PURE__ */ s("svg", {
599
+ return /* @__PURE__ */ a("svg", {
565
600
  viewBox: "0 0 36 36",
566
601
  class: "rv-circular-progress",
567
602
  role: "progressbar",
@@ -569,14 +604,14 @@ function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
569
604
  "aria-valuemin": i.min,
570
605
  "aria-valuemax": i.max,
571
606
  "aria-valuenow": i.min + (i.max - i.min) * i.percent / 100,
572
- children: [/* @__PURE__ */ s("circle", {
607
+ children: [/* @__PURE__ */ a("circle", {
573
608
  cx: "18",
574
609
  cy: "18",
575
610
  r: "16",
576
611
  fill: "none",
577
612
  stroke: "currentColor",
578
613
  opacity: "0.15"
579
- }), /* @__PURE__ */ s("circle", {
614
+ }), /* @__PURE__ */ a("circle", {
580
615
  cx: "18",
581
616
  cy: "18",
582
617
  r: "16",
@@ -588,28 +623,28 @@ function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
588
623
  })]
589
624
  });
590
625
  }
591
- function ve({ value: e, max: n = 5, label: r, onChange: i, disabled: a }) {
592
- let c = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
593
- return i ? /* @__PURE__ */ s(B, {
626
+ function ve({ value: e, max: n = 5, label: r, onChange: i, disabled: o }) {
627
+ let s = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
628
+ return i ? /* @__PURE__ */ a(B, {
594
629
  className: "rv-rating",
595
630
  label: r,
596
631
  value: e,
597
- disabled: a,
598
- options: c.map((n) => ({
632
+ disabled: o,
633
+ options: s.map((n) => ({
599
634
  value: n,
600
- label: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(o, { filled: n <= e }), /* @__PURE__ */ s("span", {
635
+ label: /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a(l, { filled: n <= e }), /* @__PURE__ */ a("span", {
601
636
  class: "rv-visually-hidden",
602
637
  children: n
603
638
  })] })
604
639
  })),
605
640
  onChange: i
606
- }) : /* @__PURE__ */ s("span", {
641
+ }) : /* @__PURE__ */ a("span", {
607
642
  class: "rv-rating",
608
643
  role: "img",
609
644
  "aria-label": `${r}: ${e} / ${n}`,
610
- children: c.map((t) => /* @__PURE__ */ s(o, { filled: t <= e }))
645
+ children: s.map((t) => /* @__PURE__ */ a(l, { filled: t <= e }))
611
646
  });
612
647
  }
613
- u(V, "input"), u(U, "input"), u(G, "input"), u(K, "input"), u(q, "input"), u(H, "textarea"), u(J, "select");
648
+ m(V, "input"), m(U, "input"), m(G, "input"), m(K, "input"), m(q, "input"), m(H, "textarea");
614
649
  //#endregion
615
- export { z as A, j as B, ie as C, L as D, he as E, F, O as G, A as H, ae as I, k as K, oe as L, V as M, H as N, Q as O, K as P, se as R, ge as S, ve as T, T as U, E as V, D as W, fe as _, _e as a, U as b, q as c, X as d, ne as f, $ as g, ue as h, Y as i, R as j, me as k, re as l, P as m, N as n, le as o, Z as p, I as r, G as s, ce as t, de as u, pe as v, B as w, W as x, J as y, M as z };
650
+ export { R as A, j as B, B as C, Z as D, L as E, oe as F, O as G, A as H, se as I, k as K, ce as L, H as M, K as N, me as O, F as P, ne as R, he as S, $ as T, T as U, E as V, D as W, pe as _, le as a, ge as b, ie as c, re as d, X as f, fe as g, Q as h, _e as i, V as j, z as k, de as l, ue as m, I as n, G as o, P as p, J as r, q as s, N as t, Y as u, U as v, ve as w, ae as x, W as y, M as z };