@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
@@ -17,23 +17,6 @@
17
17
  color: var(--text-color, var(--rv-ui-text-muted));
18
18
  }
19
19
 
20
- .slider-tooltip {
21
- position: absolute;
22
- top: -40px;
23
- transform: translateX(-50%);
24
- background: var(--tooltip-bg, var(--rv-ui-text));
25
- color: var(--tooltip-color, var(--rv-ui-surface));
26
- padding: 2px 6px;
27
- border-radius: 3px;
28
- font-size: 12px;
29
- line-height: 18px;
30
- opacity: 0;
31
- transition: opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1));
32
- pointer-events: none;
33
- white-space: nowrap;
34
- z-index: 10;
35
- }
36
-
37
20
  .range-inputs {
38
21
  display: grid;
39
22
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
@@ -72,7 +55,11 @@
72
55
  top: 0;
73
56
  margin: 0;
74
57
  border-radius: 999px;
75
- background: linear-gradient(var(--slider-color, var(--rv-ui-border)), var(--slider-color, var(--rv-ui-border))) center / 100% 4px no-repeat;
58
+ background: linear-gradient(
59
+ var(--slider-color, var(--rv-ui-border)),
60
+ var(--slider-color, var(--rv-ui-border))
61
+ )
62
+ center / 100% 4px no-repeat;
76
63
  pointer-events: none;
77
64
 
78
65
  &:focus-visible {
@@ -85,41 +72,59 @@
85
72
  z-index: 1;
86
73
  }
87
74
 
88
- $size: 24px;
89
-
90
75
  &::-webkit-slider-thumb {
91
76
  -webkit-appearance: none;
92
77
  pointer-events: all;
93
- width: $size;
94
- height: $size;
95
- background-color: var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface));
96
- border: 3px solid var(--range-color, var(--rv-ui-accent));
78
+ box-sizing: border-box;
79
+ width: var(--slider-thumb-size, 20px);
80
+ height: var(--slider-thumb-size, 20px);
81
+ background-color: var(
82
+ --revo-grid-filter-control-thumb-bg,
83
+ var(--rv-ui-surface)
84
+ );
85
+ border: var(--slider-thumb-border-width, 3px) solid
86
+ var(--range-color, var(--rv-ui-accent));
97
87
  border-radius: 50%;
98
88
  box-shadow: 0 1px 3px var(--rv-ui-shadow);
99
- transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1));
89
+ transition: box-shadow var(--rv-ui-motion-fast, 120ms)
90
+ var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
100
91
  cursor: pointer;
101
92
 
102
93
  &:hover {
103
- background: var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface));
94
+ background: var(
95
+ --revo-grid-filter-control-thumb-bg,
96
+ var(--rv-ui-surface)
97
+ );
104
98
  }
105
99
 
106
100
  &:active {
107
101
  box-shadow:
108
102
  0 1px 3px var(--rv-ui-shadow),
109
- 0 0 0 4px color-mix(in srgb, var(--range-color, var(--rv-ui-accent)) 18%, transparent);
103
+ 0 0 0 4px
104
+ color-mix(
105
+ in srgb,
106
+ var(--range-color, var(--rv-ui-accent)) 18%,
107
+ transparent
108
+ );
110
109
  }
111
110
  }
112
111
 
113
112
  &::-moz-range-thumb {
114
113
  -webkit-appearance: none;
115
114
  pointer-events: all;
116
- width: $size;
117
- height: $size;
118
- background-color: var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface));
119
- border: 3px solid var(--range-color, var(--rv-ui-accent));
115
+ box-sizing: border-box;
116
+ width: var(--slider-thumb-size, 20px);
117
+ height: var(--slider-thumb-size, 20px);
118
+ background-color: var(
119
+ --revo-grid-filter-control-thumb-bg,
120
+ var(--rv-ui-surface)
121
+ );
122
+ border: var(--slider-thumb-border-width, 3px) solid
123
+ var(--range-color, var(--rv-ui-accent));
120
124
  border-radius: 50%;
121
125
  box-shadow: 0 1px 3px var(--rv-ui-shadow);
122
- transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1));
126
+ transition: box-shadow var(--rv-ui-motion-fast, 120ms)
127
+ var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
123
128
  cursor: pointer;
124
129
  }
125
130
  }
@@ -129,4 +134,7 @@
129
134
  }
130
135
  }
131
136
 
132
- .rv-single-slider:disabled { opacity: .55; cursor: not-allowed; }
137
+ .rv-single-slider:disabled {
138
+ opacity: 0.55;
139
+ cursor: not-allowed;
140
+ }
@@ -12,6 +12,7 @@ function l(r, s) {
12
12
  let l = [], { minInt: u, maxInt: d, fromValueInt: f, toValueInt: p } = s.state;
13
13
  return s.showTooltips && l.push(r("div", {
14
14
  className: "slider-tooltip",
15
+ hidden: !0,
15
16
  ref: (e) => s.refs.fromTooltip = e
16
17
  })), l.push(r("input", {
17
18
  ref: (e) => {
@@ -33,6 +34,7 @@ function l(r, s) {
33
34
  onMouseOut: () => s.showTooltips && s.refs.fromTooltip && i(s.refs.fromTooltip)
34
35
  })), s.showTooltips && l.push(r("div", {
35
36
  className: "slider-tooltip",
37
+ hidden: !0,
36
38
  ref: (e) => s.refs.toTooltip = e
37
39
  })), l.push(r("input", {
38
40
  ref: (e) => {
@@ -1,27 +1,54 @@
1
- import { toSliderRange as e, unscaleSliderValue as t } from "./logic.js";
1
+ import { c as e, r as t, t as n } from "../../../_chunks/top-layer-popup-CNSDdfJV.js";
2
+ import { n as r, t as i } from "../../../_chunks/tooltip-owner-DjdvqKzz.js";
3
+ import { createControlId as a } from "../../../core/control-id.js";
4
+ import { toSliderRange as o, unscaleSliderValue as s } from "./logic.js";
2
5
  //#region src/filter/filters/slider/runtime.ts
3
- function n(t) {
4
- return e(Number(t.refs.fromSlider?.value ?? t.state.fromValueInt), Number(t.refs.toSlider?.value ?? t.state.toValueInt), t.scaleFactor);
6
+ function c(e) {
7
+ return o(Number(e.refs.fromSlider?.value ?? e.state.fromValueInt), Number(e.refs.toSlider?.value ?? e.state.toValueInt), e.scaleFactor);
5
8
  }
6
- function r(e) {
7
- let { fromValue: t, toValue: r } = n(e), i = e.formatFromValue(t), a = e.formatToValue(r);
8
- e.refs.fromLabel && (e.refs.fromLabel.textContent = i), e.refs.toLabel && (e.refs.toLabel.textContent = a), e.refs.fromInput && (e.refs.fromInput.value = e.formatInputValue(t)), e.refs.toInput && (e.refs.toInput.value = e.formatInputValue(r)), e.refs.fromSlider?.setAttribute("aria-valuetext", i), e.refs.toSlider?.setAttribute("aria-valuetext", a);
9
+ function l(e) {
10
+ let { fromValue: t, toValue: n } = c(e), r = e.formatFromValue(t), i = e.formatToValue(n);
11
+ e.refs.fromLabel && (e.refs.fromLabel.textContent = r), e.refs.toLabel && (e.refs.toLabel.textContent = i), e.refs.fromInput && (e.refs.fromInput.value = e.formatInputValue(t)), e.refs.toInput && (e.refs.toInput.value = e.formatInputValue(n)), e.refs.fromSlider?.setAttribute("aria-valuetext", r), e.refs.toSlider?.setAttribute("aria-valuetext", i);
9
12
  }
10
- function i(e, n, r, i, o = 100) {
11
- n.textContent = i(t(Number(e.value), o));
12
- let s = r.maxInt - r.minInt || 1, c = (Number(e.value) - r.minInt) / s * 100, l = n.parentElement?.getBoundingClientRect(), u = n.getBoundingClientRect();
13
- l && u ? n.style.left = `${a(c, l.width, u.width)}px` : n.style.left = `${c}%`, n.style.opacity = "1";
13
+ var u = /* @__PURE__ */ new WeakMap();
14
+ function d(n, r, o, c, l = 100) {
15
+ if (r.textContent = c(s(Number(n.value), l)), e(r), !u.has(r)) {
16
+ r.id ||= a("rv-tooltip");
17
+ let e = n.getAttribute("aria-describedby");
18
+ n.setAttribute("aria-describedby", [e, r.id].filter(Boolean).join(" ")), r.hidden = !1, Object.assign(r.style, {
19
+ position: "fixed",
20
+ inset: "auto",
21
+ margin: "0",
22
+ transform: "none"
23
+ });
24
+ let o = t(r, "block"), s = n.ownerDocument.defaultView?.MutationObserver, c = s ? new s(() => {
25
+ n.isConnected || p(r);
26
+ }) : void 0;
27
+ c?.observe(n.ownerDocument, {
28
+ childList: !0,
29
+ subtree: !0
30
+ }), u.set(r, {
31
+ mode: o,
32
+ slider: n,
33
+ original: e,
34
+ disconnect: () => c?.disconnect()
35
+ }), i(n.ownerDocument, r, () => p(r));
36
+ }
37
+ let d = o.maxInt - o.minInt || 1, m = (Number(n.value) - o.minInt) / d * 100, h = r.parentElement?.getBoundingClientRect(), g = r.getBoundingClientRect();
38
+ h && g ? (r.style.left = `${h.left + f(m, h.width, g.width) - g.width / 2}px`, r.style.top = `${Math.max(8, h.top - g.height - 8)}px`) : r.style.left = `${m}%`, r.style.opacity = "1";
14
39
  }
15
- function a(e, t, n, r = 8) {
40
+ function f(e, t, n, r = 8) {
16
41
  let i = n / 2, a = r + i, o = t - r - i;
17
42
  if (a > o) return t / 2;
18
43
  let s = Math.min(Math.max(e, 0), 100) / 100 * t;
19
44
  return Math.min(Math.max(s, a), o);
20
45
  }
21
- function o(e) {
46
+ function p(e) {
22
47
  e.style.opacity = "0";
48
+ let t = u.get(e);
49
+ t && (t.disconnect?.(), n(e, t.mode), e.hidden = !0, t.original === null ? t.slider.removeAttribute("aria-describedby") : t.slider.setAttribute("aria-describedby", t.original), u.delete(e), r(e.ownerDocument, e));
23
50
  }
24
- function s(e, t, n) {
51
+ function m(e, t, n) {
25
52
  let r = getComputedStyle(n), i = r.getPropertyValue("--slider-color").trim() || r.getPropertyValue("--rv-ui-border").trim() || "var(--rv-ui-border)", a = r.getPropertyValue("--range-color").trim() || r.getPropertyValue("--rv-ui-accent").trim() || "var(--rv-ui-accent)", o = parseInt(t.max, 10) - parseInt(t.min, 10) || 1, s = parseInt(e.value, 10) - parseInt(e.min, 10), c = parseInt(t.value, 10) - parseInt(t.min, 10), l = s / o * 100, u = c / o * 100;
26
53
  n.style.background = `linear-gradient(
27
54
  to right,
@@ -32,20 +59,20 @@ function s(e, t, n) {
32
59
  ${i} ${u}%,
33
60
  ${i} 100%) center / 100% 4px no-repeat`;
34
61
  }
35
- function c(e) {
62
+ function h(e) {
36
63
  let { fromSlider: t, toSlider: n } = e.refs;
37
- t && n && (s(t, n, n), r(e));
64
+ t && n && (m(t, n, n), l(e));
38
65
  }
39
- function l(e) {
66
+ function g(e) {
40
67
  e.refs.toSlider && (e.refs.toSlider.style.zIndex = Number(e.refs.toSlider.value) <= e.state.minInt ? "2" : "0");
41
68
  }
42
- function u(e) {
43
- e.onRangeChange(n(e));
69
+ function _(e) {
70
+ e.onRangeChange(c(e));
44
71
  }
45
- function d(e) {
46
- e.onRangeCommit?.(n(e));
72
+ function v(e) {
73
+ e.onRangeCommit?.(c(e));
47
74
  }
48
- function f(e) {
75
+ function y(e) {
49
76
  e.metaKey || e.ctrlKey || [
50
77
  "ArrowDown",
51
78
  "ArrowLeft",
@@ -60,4 +87,4 @@ function f(e) {
60
87
  ].includes(e.key) || /^[\d.,-]$/.test(e.key) || e.preventDefault();
61
88
  }
62
89
  //#endregion
63
- export { u as emitRangeChange, d as emitRangeCommit, s as fillSlider, n as getCurrentRange, a as getTooltipCenterPosition, o as hideTooltip, f as preventInvalidNumberKey, l as setToggleAccessible, r as syncRangeText, c as syncVisuals, i as updateTooltip };
90
+ export { _ as emitRangeChange, v as emitRangeCommit, m as fillSlider, c as getCurrentRange, f as getTooltipCenterPosition, p as hideTooltip, y as preventInvalidNumberKey, g as setToggleAccessible, l as syncRangeText, h as syncVisuals, d as updateTooltip };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
- import { Input as t } from "../../../native-control.js";
2
+ import { n as t } from "../../../_chunks/native-control-B_fVA5bL.js";
3
3
  //#region src/filter/filters/slider/single.tsx
4
4
  function n({ min: n, max: r, value: i, step: a = 1, disabled: o = !1, id: s, className: c = "", ariaLabel: l, ariaValueText: u, ariaDescribedBy: d, onChange: f, onCommit: p, onKeyDown: m }) {
5
5
  let h = r - n, g = h > 0 ? Math.max(0, Math.min(100, (i - n) / h * 100)) : 0;
package/filter-badge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
2
2
  import { a as t } from "./_chunks/hooks.module-CG3gN83z.js";
3
3
  import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
4
- import { n as r, t as i } from "./_chunks/choice-chips-Cs4D-3nH.js";
4
+ import { n as r, t as i } from "./_chunks/choice-chips-SkllS5Kl.js";
5
5
  //#region src/filter-badge.tsx
6
6
  function a(e) {
7
7
  return /* @__PURE__ */ n(r, {
@@ -7,7 +7,6 @@ export declare function OptionButton({ label, detail, selected, className, detai
7
7
  className?: string;
8
8
  detailClassName?: string;
9
9
  }): h.JSX.Element;
10
- export { Legend, type LegendItem } from './legend';
11
10
  /** Caller supplies highlighting; UI owns overlay geometry and scroll synchronization. */
12
11
  export declare function HighlightedTextInput({ highlight, className, inputClassName, highlightClassName, ...props }: Omit<JSX.IntrinsicElements['textarea'], 'className'> & {
13
12
  highlight: ComponentChildren;
@@ -1,20 +1,19 @@
1
1
  import { t as e } from "./_chunks/hooks.module-CG3gN83z.js";
2
2
  import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
3
- import { ButtonControl as n, TextArea as r } from "./native-control.js";
4
- import { Legend as i } from "./legend.js";
3
+ import { a as n, t as r } from "./_chunks/native-control-B_fVA5bL.js";
5
4
  //#region src/filter-controls.tsx
6
- function a({ label: e, detail: r, selected: i, className: a = "", detailClassName: o = "", ...s }) {
7
- return /* @__PURE__ */ t(n, {
5
+ function i({ label: e, detail: n, selected: i, className: a = "", detailClassName: o = "", ...s }) {
6
+ return /* @__PURE__ */ t(r, {
8
7
  ...s,
9
8
  class: `rv-option-button ${a}`,
10
9
  "aria-pressed": i,
11
10
  children: [/* @__PURE__ */ t("strong", { children: e }), /* @__PURE__ */ t("span", {
12
11
  class: `rv-option-button__detail ${o}`,
13
- children: r
12
+ children: n
14
13
  })]
15
14
  });
16
15
  }
17
- function o({ highlight: n, className: i = "", inputClassName: a = "", highlightClassName: o = "", ...s }) {
16
+ function a({ highlight: r, className: i = "", inputClassName: a = "", highlightClassName: o = "", ...s }) {
18
17
  let c = e(null);
19
18
  return /* @__PURE__ */ t("div", {
20
19
  class: `rv-highlighted-input ${i}`,
@@ -23,8 +22,8 @@ function o({ highlight: n, className: i = "", inputClassName: a = "", highlightC
23
22
  class: `rv-highlighted-input__highlight ${o}`,
24
23
  "aria-hidden": "true",
25
24
  ref: c,
26
- children: n
27
- }), /* @__PURE__ */ t(r, {
25
+ children: r
26
+ }), /* @__PURE__ */ t(n, {
28
27
  ...s,
29
28
  class: `rv-highlighted-input__input ${a}`,
30
29
  spellcheck: s.spellcheck ?? !1,
@@ -34,7 +33,7 @@ function o({ highlight: n, className: i = "", inputClassName: a = "", highlightC
34
33
  })]
35
34
  });
36
35
  }
37
- function s({ children: e, className: n = "", label: r }) {
36
+ function o({ children: e, className: n = "", label: r }) {
38
37
  return /* @__PURE__ */ t("div", {
39
38
  role: "group",
40
39
  "aria-label": r,
@@ -43,4 +42,4 @@ function s({ children: e, className: n = "", label: r }) {
43
42
  });
44
43
  }
45
44
  //#endregion
46
- export { o as HighlightedTextInput, s as InlineFieldGroup, i as Legend, a as OptionButton };
45
+ export { a as HighlightedTextInput, o as InlineFieldGroup, i as OptionButton };
@@ -0,0 +1,5 @@
1
+ export declare const FormFieldContext: import('../_vendor/preact/src/index').Context<{
2
+ labelId?: string;
3
+ hintId?: string;
4
+ disabled?: boolean;
5
+ }>;
@@ -1,2 +1,10 @@
1
- /** Compatibility entry; markup is owned by the Preact TSX implementation. */
2
- export * from './index.view';
1
+ export interface FormFieldOptions {
2
+ readonly label: string;
3
+ readonly control: HTMLElement;
4
+ readonly hint?: string;
5
+ readonly className?: string;
6
+ }
7
+ export declare function createFormField(document: Document, options: FormFieldOptions): HTMLLabelElement;
8
+ export declare function createTextControl(document: Document, placeholder: string): HTMLInputElement;
9
+ /** DOM counterpart of Dropdown; callers own its lifetime. */
10
+ export { createDropdownControl } from '../dropdown/control';
@@ -1,7 +1,8 @@
1
1
  import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
2
  import { createPreactElement as t } from "../preact-mount.js";
3
- import { Input as n, Select as r } from "../native-control.js";
4
- //#region src/form-controls/index.view.tsx
3
+ import { n } from "../_chunks/native-control-B_fVA5bL.js";
4
+ import { t as r } from "../_chunks/control-Dcrjsunl.js";
5
+ //#region src/form-controls/index.tsx
5
6
  function i(n, r) {
6
7
  return t(n, /* @__PURE__ */ e("label", {
7
8
  class: ["rv-field", r.className].filter(Boolean).join(" "),
@@ -29,11 +30,5 @@ function a(r, i) {
29
30
  placeholder: i
30
31
  }));
31
32
  }
32
- function o(n, i) {
33
- return t(n, /* @__PURE__ */ e(r, { children: i.map((t) => /* @__PURE__ */ e("option", {
34
- value: t.value,
35
- children: t.label
36
- }, t.value)) }));
37
- }
38
33
  //#endregion
39
- export { i as createFormField, o as createSelectControl, a as createTextControl };
34
+ export { r as createDropdownControl, i as createFormField, a as createTextControl };
@@ -8,7 +8,7 @@ export type FilterChipProps = {
8
8
  readonly role?: 'listitem';
9
9
  };
10
10
  /** Removable chip shell; consumers retain filter policy and label/detail slots. */
11
- export declare function FilterChip({ children, removeLabel, onRemove, className, removeClassName, role }: FilterChipProps): h.JSX.Element;
11
+ export declare function FilterChip({ children, removeLabel, onRemove, className, removeClassName, role, }: FilterChipProps): h.JSX.Element;
12
12
  export interface FormFieldContentOptions {
13
13
  readonly label: ComponentChildren;
14
14
  readonly children: ComponentChildren;
@@ -1,93 +1,101 @@
1
1
  import { i as e, o as t, u as n } from "../_chunks/preact.module-BBM36DnO.js";
2
- import { i as r } from "../_chunks/hooks.module-CG3gN83z.js";
3
- import { t as i } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
4
- import { nativeControlTag as a } from "../control-presentation.js";
2
+ import { i as r, s as i } from "../_chunks/hooks.module-CG3gN83z.js";
3
+ import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
5
4
  import { createControlId as o } from "../core/control-id.js";
5
+ import { t as s } from "../_chunks/field-context-D57PnBbH.js";
6
+ import { nativeControlTag as c } from "../control-presentation.js";
6
7
  //#region src/form-controls/presentation.tsx
7
- function s({ children: e, removeLabel: t, onRemove: n, className: r = "", removeClassName: a = "", role: o }) {
8
- return /* @__PURE__ */ i("span", {
8
+ function l({ children: e, removeLabel: t, onRemove: n, className: r = "", removeClassName: i = "", role: o }) {
9
+ return /* @__PURE__ */ a("span", {
9
10
  class: `rv-btn-pill ${r}`.trim(),
10
11
  role: o,
11
- children: [e, n && /* @__PURE__ */ i("button", {
12
+ children: [e, n && /* @__PURE__ */ a("button", {
12
13
  type: "button",
13
- class: `rv-chip-remove ${a}`.trim(),
14
+ class: `rv-chip-remove ${i}`.trim(),
14
15
  "aria-label": t,
15
16
  onClick: n,
16
17
  children: "×"
17
18
  })]
18
19
  });
19
20
  }
20
- function c({ label: e, children: t, hint: n, hintId: r, labelId: a = r ? `${r}-label` : void 0 }) {
21
+ function u({ label: e, children: t, hint: n, hintId: r, labelId: i = r ? `${r}-label` : void 0 }) {
21
22
  let o = n != null && n !== !1;
22
23
  return [
23
- /* @__PURE__ */ i("span", {
24
+ /* @__PURE__ */ a("span", {
24
25
  class: "rv-field__label",
25
- id: a,
26
+ id: i,
26
27
  children: e
27
28
  }),
28
- o && r ? u(t, r, a) : t,
29
- o ? /* @__PURE__ */ i("span", {
29
+ o && r ? f(t, r, i) : t,
30
+ o ? /* @__PURE__ */ a("span", {
30
31
  class: "rv-field__hint",
31
32
  id: r,
32
33
  children: n
33
34
  }) : null
34
35
  ];
35
36
  }
36
- function l({ label: e, children: t, hint: n, hintId: a, labelId: s, controlId: l, className: u = "", class: d, ...f }) {
37
- let [p] = r(() => o("rv-field"));
38
- return /* @__PURE__ */ i("label", {
39
- ...f,
40
- htmlFor: l ?? f.htmlFor,
41
- class: [
42
- "rv-field",
43
- u,
44
- d
45
- ].filter(Boolean).join(" "),
46
- children: c({
47
- label: e,
48
- children: t,
49
- hint: n,
50
- labelId: s,
51
- hintId: a ?? `rv-field-hint-${p}`
37
+ function d({ label: e, children: t, hint: n, hintId: c, labelId: l, controlId: d, className: f = "", class: p, ...m }) {
38
+ let [h] = r(() => o("rv-field")), g = i(s), _ = c ?? `rv-field-hint-${h}`, v = l ?? `${_}-label`;
39
+ return /* @__PURE__ */ a(s.Provider, {
40
+ value: {
41
+ disabled: g.disabled,
42
+ labelId: v,
43
+ hintId: n == null || n === !1 ? void 0 : _
44
+ },
45
+ children: /* @__PURE__ */ a("label", {
46
+ ...m,
47
+ htmlFor: d ?? m.htmlFor,
48
+ class: [
49
+ "rv-field",
50
+ f,
51
+ p
52
+ ].filter(Boolean).join(" "),
53
+ children: u({
54
+ label: e,
55
+ children: t,
56
+ hint: n,
57
+ labelId: v,
58
+ hintId: _
59
+ })
52
60
  })
53
61
  });
54
62
  }
55
- function u(r, i, o) {
56
- if (Array.isArray(r)) return r.map((e) => u(e, i, o));
63
+ function f(r, i, a) {
64
+ if (Array.isArray(r)) return r.map((e) => f(e, i, a));
57
65
  if (!n(r)) return r;
58
- if (r.type === e) return t(r, { children: u(r.props.children, i, o) });
59
- let s = a(r.type);
60
- if (!s) return r;
61
- let c = r;
66
+ if (r.type === e) return t(r, { children: f(r.props.children, i, a) });
67
+ let o = c(r.type);
68
+ if (!o) return r;
69
+ let s = r;
62
70
  if ([
63
71
  "input",
64
72
  "select",
65
73
  "textarea"
66
- ].includes(s)) {
67
- let e = new Set(`${c.props["aria-describedby"] ?? ""} ${i}`.trim().split(/\s+/));
68
- return t(c, {
74
+ ].includes(o)) {
75
+ let e = new Set(`${s.props["aria-describedby"] ?? ""} ${i}`.trim().split(/\s+/));
76
+ return t(s, {
69
77
  "aria-describedby": [...e].join(" "),
70
- "aria-labelledby": c.props["aria-labelledby"] ?? (c.props["aria-label"] ? void 0 : o)
78
+ "aria-labelledby": s.props["aria-labelledby"] ?? (s.props["aria-label"] ? void 0 : a)
71
79
  });
72
80
  }
73
- return t(c, { children: u(c.props.children, i, o) });
81
+ return t(s, { children: f(s.props.children, i, a) });
74
82
  }
75
- function d({ children: e, icon: t, iconClassName: n = "", iconPosition: r = "before", className: a = "", class: o, ...s }) {
76
- let c = t == null ? null : /* @__PURE__ */ i("span", {
83
+ function p({ children: e, icon: t, iconClassName: n = "", iconPosition: r = "before", className: i = "", class: o, ...s }) {
84
+ let c = t == null ? null : /* @__PURE__ */ a("span", {
77
85
  class: ["rv-disclosure-summary__icon", n].filter(Boolean).join(" "),
78
86
  "aria-hidden": "true",
79
87
  children: t
80
88
  });
81
- return /* @__PURE__ */ i("summary", {
89
+ return /* @__PURE__ */ a("summary", {
82
90
  ...s,
83
91
  class: [
84
92
  "rv-disclosure-summary",
85
- a,
93
+ i,
86
94
  o
87
95
  ].filter(Boolean).join(" "),
88
96
  children: [
89
97
  r === "before" && c,
90
- /* @__PURE__ */ i("span", {
98
+ /* @__PURE__ */ a("span", {
91
99
  class: "rv-disclosure-summary__label",
92
100
  children: e
93
101
  }),
@@ -96,4 +104,4 @@ function d({ children: e, icon: t, iconClassName: n = "", iconPosition: r = "bef
96
104
  });
97
105
  }
98
106
  //#endregion
99
- export { d as DisclosureSummary, s as FilterChip, l as FormField, c as renderFormFieldContent };
107
+ export { p as DisclosureSummary, l as FilterChip, d as FormField, u as renderFormFieldContent };
@@ -1,4 +1,4 @@
1
- export * from './control-tooltip';
1
+ export { useTooltip, useControlTooltip, ControlTooltip } from '../core/tooltip';
2
2
  export * from './inspector-section';
3
3
  export * from './icon-controls';
4
4
  export * from './typography-controls';