@revolist/ui 4.0.6-rc → 4.0.6

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 (320) hide show
  1. package/MIGRATION.md +7 -7
  2. package/OWNERSHIP.md +33 -33
  3. package/README.md +65 -410
  4. package/_button.scss +6 -2
  5. package/_chunks/{calendar-QWDyYzdo.js → calendar-BQYQLu8Q.js} +5 -5
  6. package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
  7. package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-GprenwEg.js} +4 -4
  8. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  9. package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-C5OxD0GV.js} +3 -3
  10. package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
  11. package/_chunks/{color-picker-BK4W1nd6.js → color-picker-Cfc9eqZb.js} +4 -4
  12. package/_chunks/{component-CMkF17YZ.js → component-C3k_8uIq.js} +44 -45
  13. package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
  14. package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-vRnI54mO.js} +3 -3
  15. package/_chunks/{control-mlH7l0Uq.js → control-BRfF5DWQ.js} +3 -3
  16. package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
  17. package/_chunks/{controls-FUU-MUKC.js → controls-B3EgM_DS.js} +137 -102
  18. package/_chunks/{date-control-Dup_P3w5.js → date-control-87dcA5br.js} +5 -5
  19. package/_chunks/{date-time-9z6pAG5T.js → date-time-CfiFYodx.js} +20 -20
  20. package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
  21. package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-NqEEVc9P.js} +4 -4
  22. package/_chunks/{duration-D7oRjsmP.js → duration-BGZ_qJ99.js} +6 -6
  23. package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
  24. package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-NNP9Fh9U.js} +4 -4
  25. package/_chunks/field-configurator-DPulsY3l.js +288 -0
  26. package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
  27. package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-D4I8HpVp.js} +2 -2
  28. package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-BAAdEvr9.js} +2 -2
  29. package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
  30. package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
  31. package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
  32. package/_chunks/mount-C8CnIW9k.js +267 -0
  33. package/_chunks/{native-Blr3byjO.js → native-CJm3eq3-.js} +1 -1
  34. package/_chunks/{native-control-pFMuHf3G.js → native-control-um1L1wgZ.js} +143 -138
  35. package/_chunks/{number-input-DqXV6vgP.js → number-input-CKiA4d1N.js} +4 -4
  36. package/_chunks/{picker-gEGTu1Ki.js → picker-igNshTRC.js} +5 -5
  37. package/_chunks/{popup-C35Isk7p.js → popup-DECYM9FI.js} +2 -2
  38. package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-CepVfGUq.js} +2 -2
  39. package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
  40. package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-B4w3aARt.js} +2 -2
  41. package/_chunks/{request-trail-CCSK6TJA.js → request-trail-B1zVRPEf.js} +151 -142
  42. package/_chunks/{rich-text-5rnc8lpI.js → rich-text-Ci4d6dHn.js} +11 -11
  43. package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
  44. package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
  45. package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
  46. package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
  47. package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
  48. package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
  49. package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
  50. package/_dialog.scss +57 -22
  51. package/_form.scss +71 -21
  52. package/_legend.scss +25 -7
  53. package/_variables.scss +2 -1
  54. package/_view-switcher.scss +6 -0
  55. package/activity-message.d.ts +1 -1
  56. package/activity-message.js +1 -1
  57. package/ai/_chat.scss +7 -0
  58. package/ai/_style.scss +27 -20
  59. package/ai/components.d.ts +3 -1
  60. package/ai/index.js +2 -2
  61. package/ai/mount.d.ts +15 -7
  62. package/ai/request-trail.d.ts +9 -3
  63. package/ai/results/index.d.ts +1 -1
  64. package/ai/translations.d.ts +1 -1
  65. package/angular/angular.d.ts +1 -1
  66. package/angular/angular.js +13 -7
  67. package/assignee/assignee.scss +24 -6
  68. package/assignee/index.js +6 -6
  69. package/avatar/avatar.style.scss +23 -6
  70. package/avatar/index.d.ts +1 -1
  71. package/avatar/index.js +2 -2
  72. package/badge.d.ts +1 -1
  73. package/badge.js +1 -1
  74. package/badge.view.d.ts +1 -1
  75. package/brush-range/_brush-range.scss +55 -49
  76. package/brush-range/component.js +2 -2
  77. package/buttons/delete-button.js +1 -1
  78. package/buttons/delete-button.style.scss +6 -2
  79. package/buttons/remove-button.js +2 -2
  80. package/buttons/svg-button.js +3 -3
  81. package/calendar/_calendar.scss +19 -23
  82. package/calendar/calendar.js +1 -1
  83. package/calendar/day.js +2 -2
  84. package/calendar/header.js +2 -3
  85. package/calendar/index.js +3 -3
  86. package/calendar/model.js +1 -1
  87. package/calendar/month-grid.js +2 -2
  88. package/calendar/translations.js +1 -1
  89. package/calendar/year-grid.js +2 -2
  90. package/cell-input.js +1 -1
  91. package/cell-input.scss +3 -7
  92. package/cell-visuals/badge.style.scss +6 -3
  93. package/cell-visuals/bar-chart.style.scss +2 -1
  94. package/cell-visuals/column-type.style.css +12 -0
  95. package/cell-visuals/index.js +1 -1
  96. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  97. package/cell-visuals/progress-line.style.scss +1 -4
  98. package/cell-visuals/sparkline.style.scss +2 -1
  99. package/cell-visuals/timeline.style.css +4 -2
  100. package/checkbox/checkbox.scss +5 -2
  101. package/checkbox/index.js +1 -1
  102. package/choice-chips/index.js +1 -1
  103. package/color-palette/built-in-palettes.js +1 -1
  104. package/color-palette/chart-palettes.js +1 -1
  105. package/color-palette/color-palette.js +1 -1
  106. package/color-palette/color-palette.style.scss +88 -25
  107. package/color-palette/color-picker.constants.js +1 -1
  108. package/color-palette/color-picker.js +2 -2
  109. package/color-palette/color-picker.style.scss +23 -10
  110. package/color-palette/common-palettes.d.ts +1 -1
  111. package/color-palette/common-palettes.js +2 -2
  112. package/color-palette/gantt-palettes.js +1 -1
  113. package/color-palette/palette.js +1 -1
  114. package/color-palette/pivot-palettes.js +1 -1
  115. package/color-palette/platform-palettes.js +1 -1
  116. package/color-palette/pro-palettes.js +1 -1
  117. package/color-palette/scheduler-palettes.js +1 -1
  118. package/configurator-actions.d.ts +6 -6
  119. package/configurator-actions.js +1 -1
  120. package/configurator-aggregation-list.d.ts +1 -1
  121. package/configurator-aggregation-list.js +19 -17
  122. package/configurator-drop-zone.d.ts +2 -1
  123. package/configurator-drop-zone.js +34 -32
  124. package/configurator-focus.js +1 -1
  125. package/configurator-sections.d.ts +3 -3
  126. package/configurator-sections.js +1 -1
  127. package/control-attributes.js +1 -1
  128. package/control-presentation.js +2 -2
  129. package/controls.d.ts +11 -0
  130. package/controls.js +4 -4
  131. package/core/anchored-popover.js +1 -1
  132. package/core/control-id.js +1 -1
  133. package/core/editor-popup.js +1 -1
  134. package/core/motion.js +1 -1
  135. package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
  136. package/core/selection-list-tooltips.d.ts +2 -0
  137. package/core/tooltip.d.ts +1 -1
  138. package/core/top-layer-popup.d.ts +1 -1
  139. package/core/top-layer-popup.js +1 -1
  140. package/date-time/date-control.d.ts +1 -1
  141. package/date-time/field.d.ts +1 -0
  142. package/date-time/index.js +1 -1
  143. package/date-time/style.scss +192 -46
  144. package/date-time/time-selection.d.ts +1 -1
  145. package/dialog/dialog.dom.js +3 -3
  146. package/dialog/dialog.drag.js +1 -1
  147. package/dialog/dialog.parts.js +1 -1
  148. package/dialog/dialog.preact.js +1 -1
  149. package/distribution-chart/_distribution-chart.scss +106 -28
  150. package/distribution-chart/area-chart.js +2 -2
  151. package/distribution-chart/bar-chart.js +2 -2
  152. package/distribution-chart/chart-frame.d.ts +1 -1
  153. package/distribution-chart/index.js +1 -1
  154. package/distribution-chart/line-chart.js +2 -2
  155. package/dropdown/content.js +1 -1
  156. package/dropdown/control.js +1 -1
  157. package/dropdown/dropdown.service.js +1 -1
  158. package/dropdown/dropdown.types.d.ts +1 -1
  159. package/dropdown/editor-dropdown.style.scss +14 -9
  160. package/dropdown/index.js +2 -2
  161. package/dropdown/lookup-field.js +3 -3
  162. package/dropdown/popup.js +1 -1
  163. package/duration/index.js +1 -1
  164. package/editor-actions.js +2 -2
  165. package/editor-layout/index.d.ts +4 -4
  166. package/editor-layout/index.js +40 -35
  167. package/editor-layout/style.scss +82 -18
  168. package/favicon.svg +9 -0
  169. package/field-configurator.d.ts +14 -3
  170. package/field-configurator.js +1 -1
  171. package/field-reorder.hook.js +1 -1
  172. package/field-reorder.js +1 -1
  173. package/filter/filters/slider/_single-slider.scss +57 -38
  174. package/filter/filters/slider/_slider.scss +35 -10
  175. package/filter/filters/slider/component.js +1 -1
  176. package/filter/filters/slider/control.js +1 -1
  177. package/filter/filters/slider/inputs.js +1 -1
  178. package/filter/filters/slider/logic.js +1 -1
  179. package/filter/filters/slider/preact.js +1 -1
  180. package/filter/filters/slider/runtime.js +3 -3
  181. package/filter/filters/slider/single.js +2 -2
  182. package/filter-badge.js +2 -2
  183. package/filter-controls.js +2 -2
  184. package/form-controls/index.js +3 -3
  185. package/form-controls/presentation.d.ts +1 -1
  186. package/form-controls/presentation.js +2 -2
  187. package/formatting/index.js +7 -7
  188. package/formatting/styles.scss +13 -11
  189. package/framework.js +76 -77
  190. package/history-controls.js +1 -1
  191. package/html-controls.js +1 -1
  192. package/icon-toolbar.d.ts +1 -1
  193. package/icon-toolbar.js +1 -1
  194. package/icons/icon.d.ts +1 -1
  195. package/icons/icon.js +1 -1
  196. package/legend.d.ts +1 -1
  197. package/legend.js +1 -1
  198. package/masked-input/index.js +4 -4
  199. package/native-control.js +1 -1
  200. package/native-styles.css +1 -1
  201. package/native-styles.scss +6 -2
  202. package/native.d.ts +3 -3
  203. package/native.js +16 -16
  204. package/number-input/index.d.ts +1 -1
  205. package/number-input/index.js +1 -1
  206. package/package.json +49 -1
  207. package/pagination.js +2 -2
  208. package/pdf-viewer/controller.js +1 -1
  209. package/pdf-viewer/header.d.ts +1 -1
  210. package/pdf-viewer/index.d.ts +2 -2
  211. package/pdf-viewer/index.js +3 -3
  212. package/pdf-viewer/search-bar.d.ts +1 -1
  213. package/pdf-viewer/status.d.ts +1 -1
  214. package/pdf-viewer/style.scss +203 -42
  215. package/preact-mount.js +1 -1
  216. package/preact.d.ts +5 -4
  217. package/preact.js +105 -67
  218. package/progress/_bar.scss +9 -3
  219. package/progress/_circular.scss +2 -1
  220. package/progress/bar.js +1 -1
  221. package/progress/circular.js +1 -1
  222. package/progress/range.js +1 -1
  223. package/rating-choice.js +1 -1
  224. package/react-adapter.d.ts +4 -2
  225. package/react-control.js +1 -1
  226. package/react.d.ts +2 -2
  227. package/react.js +30 -31
  228. package/reorder-list.d.ts +1 -1
  229. package/reorder-list.js +1 -1
  230. package/reorder-list.scss +59 -17
  231. package/resource-picker/resource-picker-avatar.js +1 -1
  232. package/resource-picker/resource-picker-option.js +1 -1
  233. package/resource-picker/resource-picker-popup.js +2 -2
  234. package/resource-picker/resource-picker.js +74 -72
  235. package/resource-picker/resource-picker.scss +62 -34
  236. package/resource-picker/resource-picker.utils.js +1 -1
  237. package/rich-text/index.js +1 -1
  238. package/rich-text/style.scss +203 -49
  239. package/rich-text/toolbar.d.ts +1 -1
  240. package/robots.txt +4 -0
  241. package/search-input/index.js +2 -2
  242. package/segmented-switch/index.js +1 -1
  243. package/select.js +1 -1
  244. package/selection-list.d.ts +1 -0
  245. package/selection-list.js +3 -1
  246. package/status-feedback/badge.js +2 -2
  247. package/status-feedback/exit-snapshot.js +2 -2
  248. package/status-feedback/header.js +2 -2
  249. package/status-feedback/icons.js +1 -1
  250. package/status-feedback/index.js +1 -1
  251. package/status-feedback/item.js +2 -2
  252. package/status-feedback/motion.js +1 -1
  253. package/status-feedback/placement.js +1 -1
  254. package/status-feedback/popover.js +2 -2
  255. package/status-feedback/render.js +1 -1
  256. package/status-feedback/status-feedback.scss +124 -35
  257. package/styles/_activity-message.scss +24 -7
  258. package/styles/_alert.scss +61 -14
  259. package/styles/_cell-editor-frame.scss +11 -0
  260. package/styles/_compositions.scss +399 -79
  261. package/styles/_control.scss +30 -8
  262. package/styles/_disclosure.scss +15 -5
  263. package/styles/_editor-counter.scss +16 -6
  264. package/styles/_editor-slider.scss +8 -2
  265. package/styles/_field-configurator.scss +192 -41
  266. package/styles/_fields-grid.scss +16 -4
  267. package/styles/_filter-controls.scss +10 -2
  268. package/styles/_icon-action.scss +48 -15
  269. package/styles/_loading.scss +12 -3
  270. package/styles/_motion.scss +32 -9
  271. package/styles/_primitives.scss +346 -96
  272. package/styles/_theme.scss +130 -86
  273. package/styles/_thresholds.scss +28 -25
  274. package/styles/_time-grid.scss +8 -3
  275. package/styles/_tokens.scss +6 -1
  276. package/styles/color-roles.js +1 -1
  277. package/styles/configurator-actions.scss +126 -26
  278. package/styles/pagination.css +114 -30
  279. package/styles/rating.css +8 -3
  280. package/styles.css +1 -1
  281. package/styles.scss +1 -3
  282. package/surfaces.d.ts +4 -2
  283. package/surfaces.js +8 -8
  284. package/svelte/UiComponent.svelte +44 -11
  285. package/svelte-control.js +1 -1
  286. package/svelte.d.ts +1 -1
  287. package/svelte.js +5 -5
  288. package/switch/index.js +2 -2
  289. package/time-grid.js +3 -3
  290. package/timeline-track/_style.scss +96 -24
  291. package/timeline-track/index.js +3 -3
  292. package/timeline-track/model.js +1 -1
  293. package/ui.css +1 -1
  294. package/view-switcher.d.ts +23 -0
  295. package/vue-badge.js +1 -1
  296. package/vue-control.js +1 -1
  297. package/vue-segmented-switch.js +1 -1
  298. package/vue.d.ts +3 -2
  299. package/vue.js +43 -44
  300. package/_chunks/badge.view-D30pMUfi.js +0 -14
  301. package/_chunks/chevron-right-sxHQMSkq.js +0 -4
  302. package/_chunks/field-configurator-BCINdXpU.js +0 -223
  303. package/_chunks/mount-Cw2zk58T.js +0 -266
  304. package/_shared/data-query/binding.d.ts +0 -30
  305. package/_shared/data-query/blocks.d.ts +0 -30
  306. package/_shared/data-query/commands.d.ts +0 -47
  307. package/_shared/data-query/contracts.d.ts +0 -106
  308. package/_shared/data-query/cursor-reader.d.ts +0 -25
  309. package/_shared/data-query/direct-binding.d.ts +0 -3
  310. package/_shared/data-query/index.d.ts +0 -23
  311. package/_shared/data-query/infinite-binding.d.ts +0 -18
  312. package/_shared/data-query/keys.d.ts +0 -9
  313. package/_shared/data-query/limiter.d.ts +0 -12
  314. package/_shared/data-query/load-options.d.ts +0 -25
  315. package/_shared/data-query/materialize.d.ts +0 -2
  316. package/_shared/data-query/policy.d.ts +0 -14
  317. package/_shared/data-query/provider-queries.d.ts +0 -22
  318. package/_shared/data-query/reader.d.ts +0 -23
  319. package/_shared/data-query/remote-load.d.ts +0 -7
  320. package/_shared/data-query/source.d.ts +0 -40
@@ -2,23 +2,24 @@ import { c as e, i as t, u as n } from "./preact.module-BBM36DnO.js";
2
2
  import { c as r, i, n as a, o, r as s, s as c, t as l } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
4
4
  import { renderPreactInto as d } from "../preact-mount.js";
5
- import { i as f } from "./top-layer-popup-CNSDdfJV.js";
6
- import { t as p } from "./title-tooltip-Cw6LOZhb.js";
7
- import { t as m } from "./field-context-D57PnBbH.js";
8
- import { r as h, t as g } from "./popup-C35Isk7p.js";
9
- import { useDropdownService as _ } from "../dropdown/dropdown.service.js";
10
- import { RemoveButton as v } from "../buttons/remove-button.js";
11
- import { t as y } from "./chevron-down-GbplLa6s.js";
12
- import { registerControl as b, renderControl as x } from "../control-presentation.js";
13
- //#region src/dropdown/remote.ts
14
- var S = {
5
+ import { i as f } from "./top-layer-popup-CKJ7VJOF.js";
6
+ import { t as p } from "./title-tooltip-ncldbUwS.js";
7
+ import { t as m } from "./field-context-C4_WrO2z.js";
8
+ import { r as h, t as g } from "./popup-DECYM9FI.js";
9
+ import { t as _ } from "./selection-list-tooltips-m00U3L6z.js";
10
+ import { useDropdownService as v } from "../dropdown/dropdown.service.js";
11
+ import { RemoveButton as y } from "../buttons/remove-button.js";
12
+ import { t as b } from "./chevron-down-GbplLa6s.js";
13
+ import { registerControl as x, renderControl as S } from "../control-presentation.js";
14
+ //#region package/dropdown/remote.ts
15
+ var C = {
15
16
  loading: "Loading…",
16
17
  empty: "No results found",
17
18
  error: "Unable to load options.",
18
19
  retry: "Retry",
19
20
  loadMore: "Load more",
20
21
  unavailable: (e) => `Unavailable (${String(e)})`
21
- }, C = class {
22
+ }, w = class {
22
23
  source;
23
24
  context;
24
25
  changed;
@@ -41,7 +42,7 @@ var S = {
41
42
  failedCursor;
42
43
  resolveFailed = !1;
43
44
  opened = !1;
44
- constructor(e, t, n, r = S, i = {}) {
45
+ constructor(e, t, n, r = C, i = {}) {
45
46
  this.source = e, this.context = t, this.changed = n, this.text = r, this.settings = i;
46
47
  }
47
48
  remember(e) {
@@ -118,10 +119,10 @@ var S = {
118
119
  }
119
120
  };
120
121
  //#endregion
121
- //#region src/dropdown/remote-hook.ts
122
- function w(e) {
122
+ //#region package/dropdown/remote-hook.ts
123
+ function T(e) {
123
124
  let t = a(() => ({
124
- ...S,
125
+ ...C,
125
126
  ...e.remoteText
126
127
  }), [e.remoteText]), [n, o] = i({
127
128
  items: [],
@@ -141,7 +142,7 @@ function w(e) {
141
142
  });
142
143
  return;
143
144
  }
144
- let n = new C(e.dataSource, e.dataContext, o, t);
145
+ let n = new w(e.dataSource, e.dataContext, o, t);
145
146
  return c.current = n, () => {
146
147
  n.destroy(), c.current === n && (c.current = void 0);
147
148
  };
@@ -177,39 +178,43 @@ function w(e) {
177
178
  };
178
179
  }
179
180
  //#endregion
180
- //#region src/dropdown/content.tsx
181
- function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, config: o, multiSelect: c, search: d, searchPlaceholder: f, listboxId: p, searchId: m, renderOption: h, renderNoResults: g, onClose: v, onTabNavigation: y, theme: b }) {
182
- let x = l(null), S = l(null), C = l(null), w = l(!1), { searchValue: T, focusedIndex: D, selectedOptions: ee, filteredOptions: O, handleSelect: te, handleKeyDown: k, handleSearchChange: A, setFocusedIndex: j } = _(e, i, a, o, v, n && {
181
+ //#region package/dropdown/content.tsx
182
+ function E({ options: e, selectedValues: t, remote: n, value: i, onChange: a, config: c, multiSelect: d, search: f, searchPlaceholder: p, listboxId: m, searchId: h, renderOption: g, renderNoResults: y, onClose: b, onTabNavigation: x, theme: S }) {
183
+ let C = l(null), w = l(null), T = l(null), E = l(!1), { searchValue: ee, focusedIndex: O, selectedOptions: k, filteredOptions: A, handleSelect: j, handleKeyDown: M, handleSearchChange: N, setFocusedIndex: P } = v(e, i, a, c, b, n && {
183
184
  selected: t ?? [],
184
185
  search: n.search
185
- }), M = D >= 0 && D < O.length && !O[D].disabled ? `${p}-option-${D}` : void 0;
186
- return s(() => {
187
- let e = C.current;
188
- if (!w.current || !e || !M) return;
189
- w.current = !1;
190
- let t = e.ownerDocument.getElementById(M);
186
+ }), F = O >= 0 && O < A.length && !A[O].disabled ? `${m}-option-${O}` : void 0;
187
+ s(() => {
188
+ let e = T.current;
189
+ if (!E.current || !e || !F) return;
190
+ E.current = !1;
191
+ let t = e.ownerDocument.getElementById(F);
191
192
  if (!t) return;
192
193
  let n = e.getBoundingClientRect(), { top: r, bottom: i } = t.getBoundingClientRect();
193
194
  r < n.top ? e.scrollTop += r - n.top : i > n.bottom && (e.scrollTop += i - n.bottom);
194
- }), r(() => {
195
- if (!o.autoFocus) return;
195
+ });
196
+ let I = _(), L = o((e) => {
197
+ w.current = e, I(e);
198
+ }, [I]);
199
+ return r(() => {
200
+ if (!c.autoFocus) return;
196
201
  let e = () => {
197
- d && x.current ? x.current.focus({ preventScroll: !0 }) : S.current?.focus({ preventScroll: !0 });
198
- }, t = S.current?.ownerDocument.defaultView ?? (typeof window < "u" ? window : void 0);
202
+ f && C.current ? C.current.focus({ preventScroll: !0 }) : w.current?.focus({ preventScroll: !0 });
203
+ }, t = w.current?.ownerDocument.defaultView ?? (typeof window < "u" ? window : void 0);
199
204
  if (!t) return;
200
205
  e();
201
206
  let n = t.setTimeout(e, 0), r = t.requestAnimationFrame(e), i = t.setTimeout(e, 16);
202
207
  return () => {
203
208
  t.clearTimeout(n), t.cancelAnimationFrame(r), t.clearTimeout(i);
204
209
  };
205
- }, [o.autoFocus, d]), /* @__PURE__ */ u("div", {
206
- ref: S,
210
+ }, [c.autoFocus, f]), /* @__PURE__ */ u("div", {
211
+ ref: L,
207
212
  className: "dropdown-listbox",
208
- "data-theme": b ?? "default",
213
+ "data-theme": S ?? "default",
209
214
  role: "listbox",
210
- id: p,
211
- "aria-multiselectable": c,
212
- "aria-activedescendant": M,
215
+ id: m,
216
+ "aria-multiselectable": d,
217
+ "aria-activedescendant": F,
213
218
  tabIndex: -1,
214
219
  "aria-busy": n?.loading,
215
220
  onScrollCapture: (e) => {
@@ -218,28 +223,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
218
223
  },
219
224
  onKeyUp: (e) => e.stopPropagation(),
220
225
  onKeyDown: (e) => {
221
- if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(), v(!1);
226
+ if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(), b(!1);
222
227
  else if (e.key === "Tab") {
223
- if (o.nativeTabNavigation && y) {
224
- y();
228
+ if (c.nativeTabNavigation && x) {
229
+ x();
225
230
  return;
226
231
  }
227
- e.preventDefault(), e.stopPropagation(), o.closeOnTab && v(!0);
228
- } else (e.key !== " " || e.target !== x.current) && (w.current = e.key === "ArrowDown" || e.key === "ArrowUp", k(e));
232
+ e.preventDefault(), e.stopPropagation(), c.closeOnTab && b(!0);
233
+ } else (e.key !== " " || e.target !== C.current) && (E.current = e.key === "ArrowDown" || e.key === "ArrowUp", M(e));
229
234
  },
230
235
  children: [
231
- d && /* @__PURE__ */ u("div", {
236
+ f && /* @__PURE__ */ u("div", {
232
237
  className: "dropdown-search",
233
238
  children: /* @__PURE__ */ u("input", {
234
- ref: x,
239
+ ref: C,
235
240
  type: "text",
236
- id: m,
237
- className: `dropdown-search-input ${b ? `theme-${b}` : ""}`,
238
- placeholder: f,
239
- value: T,
240
- onChange: A,
241
- onInput: A,
242
- "aria-label": o.searchAriaLabel ?? "Search options"
241
+ id: h,
242
+ className: `dropdown-search-input ${S ? `theme-${S}` : ""}`,
243
+ placeholder: p,
244
+ value: ee,
245
+ onChange: N,
246
+ onInput: N,
247
+ "aria-label": c.searchAriaLabel ?? "Search options"
243
248
  })
244
249
  }),
245
250
  n?.loading && /* @__PURE__ */ u("div", {
@@ -251,28 +256,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
251
256
  children: [
252
257
  n.text.error,
253
258
  " ",
254
- /* @__PURE__ */ u(B, {
259
+ /* @__PURE__ */ u(H, {
255
260
  onClick: n.retry,
256
261
  children: n.text.retry
257
262
  })
258
263
  ]
259
264
  }),
260
- /* @__PURE__ */ u(E, {
265
+ /* @__PURE__ */ u(D, {
261
266
  options: e,
262
- filteredOptions: O,
263
- multiSelect: c,
264
- focusedIndex: D,
265
- selectedOptions: ee,
266
- onKeyDown: k,
267
- onSelect: te,
268
- onFocusChange: j,
269
- renderOption: h,
270
- renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty : g,
271
- dropdownListRef: C,
272
- theme: b,
273
- optionIdPrefix: p
267
+ filteredOptions: A,
268
+ multiSelect: d,
269
+ focusedIndex: O,
270
+ selectedOptions: k,
271
+ onKeyDown: M,
272
+ onSelect: j,
273
+ onFocusChange: P,
274
+ renderOption: g,
275
+ renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty : y,
276
+ dropdownListRef: T,
277
+ theme: S,
278
+ optionIdPrefix: m
274
279
  }),
275
- n?.hasMore && /* @__PURE__ */ u(B, {
280
+ n?.hasMore && /* @__PURE__ */ u(H, {
276
281
  disabled: n.loading,
277
282
  onClick: n.loadMore,
278
283
  children: n.text.loadMore
@@ -280,7 +285,7 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
280
285
  ]
281
286
  });
282
287
  }
283
- function E({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, selectedOptions: s, onKeyDown: c, onSelect: l, onFocusChange: d, renderOption: f, renderNoResults: p, dropdownListRef: m, theme: h, optionIdPrefix: g }) {
288
+ function D({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, selectedOptions: s, onKeyDown: c, onSelect: l, onFocusChange: d, renderOption: f, renderNoResults: p, dropdownListRef: m, theme: h, optionIdPrefix: g }) {
284
289
  let _ = o((e) => s.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), [s]), v = o((t, n) => {
285
290
  let r = _(t), o = a === n;
286
291
  return /* @__PURE__ */ u("li", {
@@ -328,15 +333,15 @@ function E({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, se
328
333
  }) });
329
334
  }
330
335
  //#endregion
331
- //#region src/dropdown/index.tsx
332
- var D = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("span", {
336
+ //#region package/dropdown/index.tsx
337
+ var ee = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("span", {
333
338
  className: `selected-value ${n}`,
334
339
  children: r ? r(e, t[0]) : t[0].label
335
- }), ee = ({ options: t, removeOption: n, className: r, renderValue: i, disabled: a, removeLabel: o }) => /* @__PURE__ */ u("div", {
340
+ }), O = ({ options: t, removeOption: n, className: r, renderValue: i, disabled: a, removeLabel: o }) => /* @__PURE__ */ u("div", {
336
341
  className: `selected-values ${r}`,
337
342
  children: t.map((t, r) => /* @__PURE__ */ u("span", {
338
343
  className: "selected-tag",
339
- children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(v, {
344
+ children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(y, {
340
345
  compact: !0,
341
346
  onClick: (e) => {
342
347
  e.stopPropagation(), n(t);
@@ -347,22 +352,22 @@ var D = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("spa
347
352
  }
348
353
  })]
349
354
  }, r))
350
- }), O = ({ className: e }) => /* @__PURE__ */ u("span", {
355
+ }), k = ({ className: e }) => /* @__PURE__ */ u("span", {
351
356
  className: `dropdown-arrow ${e}`,
352
357
  "aria-hidden": "true",
353
- dangerouslySetInnerHTML: { __html: y }
354
- }), te = ({ placeholder: e, className: t }) => [/* @__PURE__ */ u("span", {
358
+ dangerouslySetInnerHTML: { __html: b }
359
+ }), A = ({ placeholder: e, className: t }) => [/* @__PURE__ */ u("span", {
355
360
  className: `placeholder px-2 ${t}`,
356
361
  children: e
357
- }), /* @__PURE__ */ u(O, { className: "mr-2" })];
358
- function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, remoteText: c, value: d, onChange: m, placeholder: h = "Select an option", disabled: _ = !1, name: v, id: y, className: b = "", style: x, config: S = {}, renderContent: C, renderOption: E, renderValue: k, renderPlaceholder: A, renderSelectedValue: j, renderNoResults: M, onClose: N, beforeOutsideClose: P, environment: F }) {
359
- let { search: I = !1, searchPlaceholder: L = "Search...", closeOnClickOutside: R = !0, autoOpen: z = !1, multiSelect: B = !1, portalTarget: V, ariaLabel: H, ariaLabelledBy: ne, ariaDescribedBy: re, popupClassName: ie, maxHeight: ae } = S, { title: oe, ...se } = n ?? {}, U = p(typeof oe == "string" ? oe : void 0), W = V ?? (S.topLayer ? U.current?.closest("dialog[open], [role=dialog], revo-grid") : void 0) ?? (typeof document < "u" ? document.body : null), G = a(() => y || `dropdown-${Math.random().toString(36).substring(2, 9)}`, [y]), K = `${G}-listbox`, ce = `${G}-search`, q = `${G}-menu`, [J, Y] = i(z && !_), [le, ue] = i(!_ && (z || !!S.autoFocus)), de = l(z), fe = S.theme ?? "default";
362
+ }), /* @__PURE__ */ u(k, { className: "mr-2" })];
363
+ function j({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, remoteText: c, value: d, onChange: m, placeholder: h = "Select an option", disabled: _ = !1, name: v, id: y, className: b = "", style: x, config: S = {}, renderContent: C, renderOption: w, renderValue: D, renderPlaceholder: j, renderSelectedValue: M, renderNoResults: N, onClose: P, beforeOutsideClose: F, environment: I }) {
364
+ let { search: L = !1, searchPlaceholder: R = "Search...", closeOnClickOutside: z = !0, autoOpen: B = !1, multiSelect: V = !1, portalTarget: H, ariaLabel: te, ariaLabelledBy: ne, ariaDescribedBy: re, popupClassName: ie, maxHeight: ae } = S, { title: oe, ...se } = n ?? {}, U = p(typeof oe == "string" ? oe : void 0), W = H ?? (S.topLayer ? U.current?.closest("dialog[open], [role=dialog], revo-grid") : void 0) ?? (typeof document < "u" ? document.body : null), G = a(() => y || `dropdown-${Math.random().toString(36).substring(2, 9)}`, [y]), K = `${G}-listbox`, ce = `${G}-search`, q = `${G}-menu`, [J, Y] = i(B && !_), [le, ue] = i(!_ && (B || !!S.autoFocus)), de = l(B), fe = S.theme ?? "default";
360
365
  r(() => {
361
- z && !de.current && !_ && (ue(!0), Y(!0)), de.current = z;
362
- }, [z, _]), r(() => {
363
- _ && J && (Y(!1), N?.(!1));
366
+ B && !de.current && !_ && (ue(!0), Y(!0)), de.current = B;
367
+ }, [B, _]), r(() => {
368
+ _ && J && (Y(!1), P?.(!1));
364
369
  }, [_, J]);
365
- let X = w({
370
+ let X = T({
366
371
  dataSource: o,
367
372
  dataContext: s,
368
373
  remoteText: c,
@@ -373,7 +378,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
373
378
  initialQuery: S.initialSearch ?? ""
374
379
  }), Z = o ? [...new Map([...X.selected, ...X.items].map((e) => [e.value, e])).values()] : t, Q = a(() => {
375
380
  if (d === void 0) return [];
376
- if (B && Array.isArray(d)) return Z.filter((e) => d.some((t) => JSON.stringify(t) === JSON.stringify(e.value)));
381
+ if (V && Array.isArray(d)) return Z.filter((e) => d.some((t) => JSON.stringify(t) === JSON.stringify(e.value)));
377
382
  {
378
383
  let e = Z.find((e) => JSON.stringify(e.value) === JSON.stringify(d));
379
384
  return e ? [e] : [];
@@ -381,66 +386,66 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
381
386
  }, [
382
387
  d,
383
388
  Z,
384
- B
389
+ V
385
390
  ]), pe = () => {
386
391
  _ || Y((e) => {
387
392
  let t = !e;
388
393
  return t && ue(!0), t;
389
394
  });
390
395
  }, $ = (e = !1) => {
391
- Y((t) => (t && N?.(e), !1));
396
+ Y((t) => (t && P?.(e), !1));
392
397
  };
393
398
  r(() => {
394
399
  if (!J) return;
395
400
  let e = U.current;
396
- if (e) return F?.onOpen?.(e, $);
401
+ if (e) return I?.onOpen?.(e, $);
397
402
  }, [J]);
398
403
  let me = (e) => {
399
404
  if (!(_ || e.disabled)) {
400
- if (B) {
405
+ if (V) {
401
406
  let t = Q.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), n;
402
407
  n = t ? Q.filter((t) => JSON.stringify(t.value) !== JSON.stringify(e.value)) : [...Q, e], m && m(n.map((e) => e.value));
403
408
  } else m && m(e.value), $();
404
409
  }
405
410
  };
406
411
  r(() => {
407
- if (!R || !J) return;
412
+ if (!z || !J) return;
408
413
  let e = W?.ownerDocument ?? U.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
409
414
  if (!e) return;
410
415
  let t = (t) => {
411
416
  let n = e.getElementById(q), r = t.target;
412
417
  if (n && r && !f(n, r) && U.current && !U.current.contains(r)) {
413
- if (P?.() === !1) {
418
+ if (F?.() === !1) {
414
419
  t.preventDefault(), t.stopImmediatePropagation();
415
420
  return;
416
421
  }
417
422
  $();
418
423
  }
419
- }, n = !!P;
424
+ }, n = !!F;
420
425
  return e.addEventListener("pointerdown", t, n), () => {
421
426
  e.removeEventListener("pointerdown", t, n);
422
427
  };
423
428
  }, [
424
- R,
429
+ z,
425
430
  J,
426
431
  q,
427
432
  W,
428
- P
433
+ F
429
434
  ]);
430
435
  let he = () => {
431
- let t = [O({})];
432
- return j ? j(e, Q, t) : Q.length > 0 ? B ? [/* @__PURE__ */ u(ee, {
436
+ let t = [k({})];
437
+ return M ? M(e, Q, t) : Q.length > 0 ? V ? [/* @__PURE__ */ u(O, {
433
438
  options: Q,
434
439
  removeOption: me,
435
- renderValue: k,
440
+ renderValue: D,
436
441
  disabled: _,
437
442
  removeLabel: S.removeLabel
438
- }), /* @__PURE__ */ u(O, { className: "mr-2" })] : [/* @__PURE__ */ u(D, {
443
+ }), /* @__PURE__ */ u(k, { className: "mr-2" })] : [/* @__PURE__ */ u(ee, {
439
444
  options: Q,
440
- renderValue: k
441
- }), /* @__PURE__ */ u(O, { className: "mr-2" })] : A ? A(e, h, t) : /* @__PURE__ */ u(te, { placeholder: h });
445
+ renderValue: D
446
+ }), /* @__PURE__ */ u(k, { className: "mr-2" })] : j ? j(e, h, t) : /* @__PURE__ */ u(A, { placeholder: h });
442
447
  }, ge = () => /* @__PURE__ */ u(g, {
443
- onPointerRelease: F?.onPointerRelease,
448
+ onPointerRelease: I?.onPointerRelease,
444
449
  topLayer: S.topLayer,
445
450
  triggerRef: U,
446
451
  portalTarget: W,
@@ -451,13 +456,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
451
456
  children: C ? C({
452
457
  id: K,
453
458
  close: $
454
- }) : /* @__PURE__ */ u(T, {
459
+ }) : /* @__PURE__ */ u(E, {
455
460
  options: o ? X.items : Z,
456
461
  selectedValues: o ? X.selected : void 0,
457
462
  remote: o ? X : void 0,
458
463
  value: d,
459
464
  onChange: (e) => {
460
- if (!_ && (m?.(e), !B)) {
465
+ if (!_ && (m?.(e), !V)) {
461
466
  let e = U.current;
462
467
  e?.ownerDocument.defaultView?.requestAnimationFrame(() => {
463
468
  let t = e.ownerDocument.activeElement;
@@ -469,13 +474,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
469
474
  ...S,
470
475
  autoFocus: S.autoFocus || le
471
476
  },
472
- multiSelect: B,
473
- search: !!o || I,
474
- searchPlaceholder: L,
477
+ multiSelect: V,
478
+ search: !!o || L,
479
+ searchPlaceholder: R,
475
480
  listboxId: K,
476
481
  searchId: ce,
477
- renderOption: E,
478
- renderNoResults: M,
482
+ renderOption: w,
483
+ renderNoResults: N,
479
484
  onClose: $,
480
485
  onTabNavigation: () => {
481
486
  $(), U.current?.focus();
@@ -498,7 +503,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
498
503
  "aria-disabled": _,
499
504
  "aria-owns": K,
500
505
  "aria-controls": K,
501
- "aria-label": H,
506
+ "aria-label": te,
502
507
  "aria-labelledby": ne,
503
508
  "aria-describedby": re,
504
509
  tabIndex: _ ? -1 : 0,
@@ -512,32 +517,32 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
512
517
  v && /* @__PURE__ */ u("input", {
513
518
  type: "hidden",
514
519
  name: v,
515
- value: JSON.stringify(B ? Q.map((e) => e.value) : Q[0]?.value || "")
520
+ value: JSON.stringify(V ? Q.map((e) => e.value) : Q[0]?.value || "")
516
521
  })
517
522
  ]
518
523
  });
519
524
  }
520
- var A = (e, t) => {
521
- d(e, /* @__PURE__ */ u(k, { ...t }));
522
- }, j = (e) => {
525
+ var M = (e, t) => {
526
+ d(e, /* @__PURE__ */ u(j, { ...t }));
527
+ }, N = (e) => {
523
528
  d(e, null);
524
529
  };
525
530
  //#endregion
526
- //#region src/select.tsx
527
- function M(e) {
528
- return Array.isArray(e) ? e.map(M).join("") : n(e) ? M(e.props.children) : e == null || typeof e == "boolean" ? "" : String(e);
531
+ //#region package/select.tsx
532
+ function P(e) {
533
+ return Array.isArray(e) ? e.map(P).join("") : n(e) ? P(e.props.children) : e == null || typeof e == "boolean" ? "" : String(e);
529
534
  }
530
- function N(e, r, i = "", a = !1) {
531
- if (Array.isArray(e)) return e.flatMap((e) => N(e, r, i, a));
535
+ function F(e, r, i = "", a = !1) {
536
+ if (Array.isArray(e)) return e.flatMap((e) => F(e, r, i, a));
532
537
  if (!n(e)) return [];
533
538
  let o = e.props;
534
- if (e.type === t) return N(o.children, r, i, a);
535
- if (e.type === "optgroup") return N(o.children, r, o.label ?? "", a || !!o.disabled);
539
+ if (e.type === t) return F(o.children, r, i, a);
540
+ if (e.type === "optgroup") return F(o.children, r, o.label ?? "", a || !!o.disabled);
536
541
  let s = r ? r(o) : o, c = {
537
542
  ...s,
538
543
  disabled: o.disabled || s.disabled,
539
544
  hidden: o.hidden || s.hidden
540
- }, l = String(c.label ?? M(c.children)).trim();
545
+ }, l = String(c.label ?? P(c.children)).trim();
541
546
  return [{
542
547
  value: String(c.value ?? l),
543
548
  label: i ? `${i}: ${l}` : l,
@@ -546,12 +551,12 @@ function N(e, r, i = "", a = !1) {
546
551
  selected: !!c.selected
547
552
  }];
548
553
  }
549
- function P(e) {
550
- let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x = N(n, l), [S, C] = i(() => {
554
+ function I(e) {
555
+ let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x = F(n, l), [S, C] = i(() => {
551
556
  let e = o ?? (d ? x.filter((e) => e.selected).map((e) => e.value) : x.find((e) => e.selected)?.value ?? x[0]?.value ?? "");
552
557
  return Array.isArray(e) ? [...e] : String(e);
553
558
  }), w = a === void 0 ? S : Array.isArray(a) ? [...a] : String(a), T = Array.isArray(w) ? w : [w], E = x.filter((e) => !e.hidden || T.includes(e.value)), D = `rv-select rv-select-control ${typeof h == "string" ? h : ""} ${g ?? ""}`.replace(/\brv-control\b/g, "").trim();
554
- return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(k, {
559
+ return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(j, {
555
560
  environment: r,
556
561
  renderOption: (e, t) => /* @__PURE__ */ u("span", {
557
562
  "data-select-option": t.value,
@@ -586,8 +591,8 @@ function P(e) {
586
591
  }))] });
587
592
  }
588
593
  //#endregion
589
- //#region src/fieldset.tsx
590
- function F(e) {
594
+ //#region package/fieldset.tsx
595
+ function L(e) {
591
596
  let t = c(m), n = t.disabled || !!e.disabled;
592
597
  return /* @__PURE__ */ u(m.Provider, {
593
598
  value: {
@@ -601,44 +606,44 @@ function F(e) {
601
606
  });
602
607
  }
603
608
  //#endregion
604
- //#region src/native-control.tsx
605
- function I(t, n, ...r) {
606
- let { onChange: i, ...a } = n, o = x(e, t, a, ...r);
609
+ //#region package/native-control.tsx
610
+ function R(t, n, ...r) {
611
+ let { onChange: i, ...a } = n, o = S(e, t, a, ...r);
607
612
  return i && !(t === "button" && n.busy) && Object.assign(o.props, { onChange: i }), o;
608
613
  }
609
- function L(e, t) {
614
+ function z(e, t) {
610
615
  let n = p(typeof e == "string" ? e : void 0);
611
616
  return o((e) => {
612
617
  n.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
613
618
  }, [t]);
614
619
  }
615
- var R = b(h(({ title: e, ...t }, n) => {
616
- let r = L(e, n);
617
- return I("input", {
620
+ var B = x(h(({ title: e, ...t }, n) => {
621
+ let r = z(e, n);
622
+ return R("input", {
618
623
  ...t,
619
624
  ref: r
620
625
  });
621
- }), "input"), z = b(h(({ children: e, title: t, ...n }, r) => {
622
- let i = L(t, r);
623
- return I("textarea", {
626
+ }), "input"), V = x(h(({ children: e, title: t, ...n }, r) => {
627
+ let i = z(t, r);
628
+ return R("textarea", {
624
629
  ...n,
625
630
  ref: i
626
631
  }, e);
627
- }), "textarea"), B = b(h(({ children: e, title: t, ...n }, r) => {
632
+ }), "textarea"), H = x(h(({ children: e, title: t, ...n }, r) => {
628
633
  let i = p(typeof t == "string" ? t : void 0), a = o((e) => {
629
634
  i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
630
635
  }, [r]);
631
- return I("button", {
636
+ return R("button", {
632
637
  ...n,
633
638
  ref: a,
634
639
  "aria-label": n["aria-label"] ?? (!e && typeof t == "string" ? t : void 0)
635
640
  }, e);
636
- }), "button"), V = b(h(({ children: e, title: t, ...n }, r) => {
637
- let i = L(t, r);
638
- return I("summary", {
641
+ }), "button"), te = x(h(({ children: e, title: t, ...n }, r) => {
642
+ let i = z(t, r);
643
+ return R("summary", {
639
644
  ...n,
640
645
  ref: i
641
646
  }, e);
642
- }), "summary"), H = b(P, "select");
647
+ }), "summary"), ne = x(I, "select");
643
648
  //#endregion
644
- export { z as a, N as c, j as d, E as f, V as i, k as l, R as n, F as o, T as p, H as r, P as s, B as t, A as u };
649
+ export { V as a, F as c, N as d, D as f, te as i, j as l, B as n, L as o, E as p, ne as r, I as s, H as t, M as u };
@@ -1,10 +1,10 @@
1
1
  import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
2
2
  import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
3
3
  import { createControlId as i } from "../core/control-id.js";
4
- import { n as a } from "./native-control-pFMuHf3G.js";
5
- import { t as o } from "./controls-FUU-MUKC.js";
4
+ import { n as a } from "./native-control-um1L1wgZ.js";
5
+ import { t as o } from "./controls-B3EgM_DS.js";
6
6
  import { EditorActions as s } from "../editor-actions.js";
7
- //#region src/number-input/model.ts
7
+ //#region package/number-input/model.ts
8
8
  var c = {
9
9
  invalid: "Enter a valid number in the configured locale.",
10
10
  configuration: "The number input configuration is unsupported or invalid.",
@@ -150,7 +150,7 @@ function _(e, t, n = {}) {
150
150
  return !Number.isFinite(l) || Math.abs(l) > 2 ** 53 - 1 ? { error: n.text?.invalid ?? c.invalid } : h(m(l, n), n);
151
151
  }
152
152
  //#endregion
153
- //#region src/number-input/index.tsx
153
+ //#region package/number-input/index.tsx
154
154
  function v({ value: l, options: u, apply: d, cancel: f, initialSelection: p = "all" }) {
155
155
  let [g, v] = t(() => {
156
156
  try {
@@ -1,12 +1,12 @@
1
1
  import { i as e } from "./preact.module-BBM36DnO.js";
2
2
  import { i as t } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
4
- import { t as r } from "./native-control-pFMuHf3G.js";
4
+ import { t as r } from "./native-control-um1L1wgZ.js";
5
5
  import { DEFAULT_CALENDAR_TRANSLATIONS as i } from "../calendar/translations.js";
6
- import { n as a } from "./iso-B0YHBK7m.js";
7
- import { f as o, h as s, m as c, o as l, p as u } from "./model-mPO2tG2f.js";
8
- import { t as d } from "./calendar-QWDyYzdo.js";
9
- //#region src/calendar/picker.tsx
6
+ import { n as a } from "./iso-CJQl2kmq.js";
7
+ import { f as o, h as s, m as c, o as l, p as u } from "./model-CFrBgRHm.js";
8
+ import { t as d } from "./calendar-BQYQLu8Q.js";
9
+ //#region package/calendar/picker.tsx
10
10
  function f(f) {
11
11
  let { selected: p, onSelectionChange: ee, presets: m, mode: h = "single", min: g = 0, max: _ = Infinity, required: v = !1, excludeDisabled: y = !1, month: b, defaultMonth: x, onMonthChange: S, ...C } = f, w = typeof p == "string" ? p : Array.isArray(p) ? p[0] : p?.from, [T, E] = t(x ?? w ?? f.referenceDate ?? s()), [D, O] = t(w ?? T), [k, A] = t(), [j, M] = t(), N = (e) => {
12
12
  A(e), M(void 0);
@@ -1,7 +1,7 @@
1
1
  import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
2
2
  import { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
4
- import { i as d, r as f, t as p } from "./top-layer-popup-CNSDdfJV.js";
4
+ import { i as d, r as f, t as p } from "./top-layer-popup-CKJ7VJOF.js";
5
5
  import { inheritUiMotion as m } from "../core/motion.js";
6
6
  //#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
7
7
  function h(e, t) {
@@ -229,7 +229,7 @@ n.diffed = function(e) {
229
229
  n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
230
230
  };
231
231
  //#endregion
232
- //#region src/dropdown/popup.tsx
232
+ //#region package/dropdown/popup.tsx
233
233
  var U = 5, W = 4;
234
234
  function G(e, t, n) {
235
235
  let r = e.ownerDocument.defaultView;
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
2
  import { SvgIcon as t } from "../icons/icon.js";
3
- import { t as n } from "./native-control-pFMuHf3G.js";
3
+ import { t as n } from "./native-control-um1L1wgZ.js";
4
4
  //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/star.svg?raw
5
5
  var r = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>", i = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>";
6
6
  //#endregion
7
- //#region src/rating-choice.tsx
7
+ //#region package/rating-choice.tsx
8
8
  function a({ filled: n }) {
9
9
  return /* @__PURE__ */ e("span", {
10
10
  class: "rv-rating__star",
@@ -3,7 +3,7 @@ import { c as t, i as n, t as r } from "./hooks.module-CG3gN83z.js";
3
3
  import { renderHeader as i } from "../status-feedback/header.js";
4
4
  import { renderItem as a } from "../status-feedback/item.js";
5
5
  import { renderStatusBadge as o } from "../status-feedback/badge.js";
6
- //#region src/status-feedback/use-auto-dismiss.ts
6
+ //#region package/status-feedback/use-auto-dismiss.ts
7
7
  function s(e, i = 0, a) {
8
8
  let [o, s] = n(/* @__PURE__ */ new Set()), c = r(a);
9
9
  c.current = a;
@@ -37,7 +37,7 @@ function s(e, i = 0, a) {
37
37
  } : e);
38
38
  }
39
39
  //#endregion
40
- //#region src/status-feedback/render.ts
40
+ //#region package/status-feedback/render.ts
41
41
  function c(e, t) {
42
42
  let { title: n, items: r, ariaLabel: o, className: s, popover: c, onCollapsedChange: l } = t;
43
43
  if (!r.length) return c?.hide(!0), null;