@revolist/ui 4.0.1-rc → 4.0.1

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 (427) hide show
  1. package/LICENSE +21 -0
  2. package/MIGRATION.md +36 -0
  3. package/OWNERSHIP.md +32 -32
  4. package/README.md +405 -264
  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-DJqiFwFT.js +258 -0
  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-yr6Uzmof.js +126 -0
  13. package/_chunks/clock-BOhPNlW3.js +4 -0
  14. package/_chunks/color-palette-DMJUChWC.js +92 -0
  15. package/_chunks/{color-picker-BRv-__AM.js → color-picker-CMWxQlWt.js} +61 -56
  16. package/_chunks/component-DyWiItBR.js +878 -0
  17. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
  18. package/_chunks/configurator-actions-DCodxcUw.js +155 -0
  19. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  20. package/_chunks/control-CbOYUakE.js +118 -0
  21. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  22. package/_chunks/controls-DD1qvPfE.js +650 -0
  23. package/_chunks/{date-control-CYCkb1aQ.js → date-control-XI2cpKI_.js} +21 -21
  24. package/_chunks/date-time-CGJdC1Qa.js +807 -0
  25. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
  26. package/_chunks/dialog.parts-CJ3FVxC9.js +131 -0
  27. package/_chunks/duration-CBJWK82T.js +272 -0
  28. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  29. package/_chunks/editor-popup-ByU7qiub.js +82 -0
  30. package/_chunks/field-configurator-B-qtIwx1.js +288 -0
  31. package/_chunks/field-context-D57PnBbH.js +5 -0
  32. package/_chunks/framework-mount-Bk4O_T7T.js +54 -0
  33. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  34. package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
  35. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  36. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  37. package/_chunks/minus-BOAR3A1C.js +4 -0
  38. package/_chunks/mount-C7i5gsKI.js +267 -0
  39. package/_chunks/native-Blr3byjO.js +32 -0
  40. package/_chunks/native-control-B9MNibfa.js +649 -0
  41. package/_chunks/{number-input-NnH57J4j.js → number-input-CgbZes5B.js} +89 -89
  42. package/_chunks/picker-DqpjDC90.js +122 -0
  43. package/_chunks/plus-CbGRkIGl.js +4 -0
  44. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  45. package/_chunks/popup-C35Isk7p.js +378 -0
  46. package/_chunks/preact.module-BBM36DnO.js +290 -0
  47. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-WDrfiluf.js} +10 -10
  48. package/_chunks/render-m5eMMwFR.js +83 -0
  49. package/_chunks/reorder-list-C4HSda4n.js +59 -0
  50. package/_chunks/request-trail-SHynDFdM.js +762 -0
  51. package/_chunks/rich-text-CtjqRvv8.js +842 -0
  52. package/_chunks/rotate-left-BF6G883o.js +4 -0
  53. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  54. package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
  55. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  56. package/_chunks/tooltip-D4xkio5G.js +54 -0
  57. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  58. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  59. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  60. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  61. package/_dialog.scss +55 -21
  62. package/_form.scss +71 -21
  63. package/_legend.scss +25 -7
  64. package/_shared/data-query/index.d.ts +2 -2
  65. package/_shared/data-query/load-options.d.ts +2 -2
  66. package/_variables.scss +34 -32
  67. package/_vendor/preact/LICENSE +21 -0
  68. package/_vendor/preact/compat/src/index.d.ts +353 -0
  69. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  70. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  71. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  72. package/_vendor/preact/src/dom.d.ts +2548 -0
  73. package/_vendor/preact/src/index.d.ts +373 -0
  74. package/_vendor/preact/src/jsx.d.ts +2958 -0
  75. package/_view-switcher.scss +6 -0
  76. package/activity-message.d.ts +2 -2
  77. package/activity-message.js +16 -16
  78. package/ai/_chat.scss +227 -0
  79. package/ai/_style.scss +170 -39
  80. package/ai/chat.d.ts +65 -0
  81. package/ai/components.d.ts +35 -6
  82. package/ai/index.d.ts +3 -0
  83. package/ai/index.js +3 -3
  84. package/ai/mount.d.ts +59 -6
  85. package/ai/prompt-history.d.ts +13 -0
  86. package/ai/request-trail.d.ts +9 -3
  87. package/ai/results/_style.scss +83 -0
  88. package/ai/results/index.d.ts +11 -0
  89. package/ai/results/metrics.d.ts +5 -0
  90. package/ai/results/table.d.ts +5 -0
  91. package/ai/results/text.d.ts +5 -0
  92. package/ai/results/types.d.ts +29 -0
  93. package/ai/transcript.d.ts +27 -0
  94. package/ai/translation-context.d.ts +1 -1
  95. package/ai/translations.d.ts +1 -1
  96. package/alert.d.ts +2 -2
  97. package/angular/angular.d.ts +1 -1
  98. package/angular/angular.js +13 -10
  99. package/assignee/assignee.scss +28 -6
  100. package/assignee/field.d.ts +2 -2
  101. package/assignee/index.js +86 -87
  102. package/assignee/layout.d.ts +2 -2
  103. package/assignee/picker.d.ts +1 -1
  104. package/avatar/avatar.style.scss +23 -6
  105. package/avatar/index.d.ts +25 -2
  106. package/avatar/index.js +42 -41
  107. package/badge.d.ts +1 -1
  108. package/badge.view.d.ts +8 -0
  109. package/brush-range/_brush-range.scss +55 -49
  110. package/brush-range/component.d.ts +2 -4
  111. package/brush-range/component.js +19 -19
  112. package/buttons/delete-button.d.ts +2 -1
  113. package/buttons/delete-button.js +1 -1
  114. package/buttons/delete-button.style.scss +6 -2
  115. package/buttons/remove-button.d.ts +2 -2
  116. package/buttons/remove-button.js +3 -3
  117. package/buttons/remove-button.style.scss +1 -1
  118. package/buttons/svg-button.d.ts +3 -2
  119. package/buttons/svg-button.js +23 -23
  120. package/calendar/_calendar.scss +27 -26
  121. package/calendar/calendar.d.ts +1 -1
  122. package/calendar/calendar.js +1 -1
  123. package/calendar/caption.d.ts +1 -1
  124. package/calendar/day.d.ts +1 -1
  125. package/calendar/day.js +4 -4
  126. package/calendar/header.d.ts +1 -1
  127. package/calendar/header.js +34 -35
  128. package/calendar/index.js +2 -2
  129. package/calendar/month-grid.d.ts +1 -1
  130. package/calendar/month-grid.js +37 -37
  131. package/calendar/picker.d.ts +1 -1
  132. package/calendar/types.d.ts +1 -1
  133. package/calendar/year-grid.d.ts +1 -1
  134. package/calendar/year-grid.js +12 -12
  135. package/cell-input.scss +3 -7
  136. package/cell-visuals/badge.style.scss +6 -3
  137. package/cell-visuals/bar-chart.style.scss +2 -1
  138. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  139. package/cell-visuals/progress-line.style.scss +1 -4
  140. package/cell-visuals/sparkline.style.scss +2 -1
  141. package/cell-visuals/timeline.style.css +4 -2
  142. package/checkbox/checkbox.scss +6 -24
  143. package/checkbox/index.d.ts +2 -2
  144. package/checkbox/index.js +9 -9
  145. package/choice-chips/index.d.ts +4 -2
  146. package/choice-chips/index.js +1 -1
  147. package/color-palette/color-palette.d.ts +1 -1
  148. package/color-palette/color-palette.js +1 -1
  149. package/color-palette/color-palette.style.scss +88 -25
  150. package/color-palette/color-picker.d.ts +1 -1
  151. package/color-palette/color-picker.js +2 -2
  152. package/color-palette/color-picker.style.scss +23 -10
  153. package/color-palette/common-palettes.d.ts +1 -1
  154. package/color-palette/common-palettes.js +1 -1
  155. package/color-palette/native.d.ts +15 -2
  156. package/component-catalog.d.ts +42 -29
  157. package/configurator-actions.d.ts +67 -0
  158. package/configurator-actions.js +1 -0
  159. package/configurator-aggregation-list.d.ts +14 -0
  160. package/configurator-aggregation-list.js +63 -0
  161. package/configurator-drop-zone.d.ts +39 -0
  162. package/configurator-drop-zone.js +66 -0
  163. package/configurator-field-icon.d.ts +10 -0
  164. package/configurator-field-icon.js +1 -0
  165. package/configurator-focus.d.ts +4 -0
  166. package/configurator-focus.js +39 -0
  167. package/configurator-sections.d.ts +42 -0
  168. package/configurator-sections.js +71 -0
  169. package/control-attributes.js +7 -7
  170. package/control-presentation.d.ts +8 -2
  171. package/control-presentation.js +31 -26
  172. package/controls.d.ts +23 -11
  173. package/controls.js +4 -3
  174. package/core/editor-commit.d.ts +1 -1
  175. package/core/editor-popup-position.d.ts +6 -2
  176. package/core/editor-popup.d.ts +5 -1
  177. package/core/editor-popup.js +1 -1
  178. package/core/popover-controller.d.ts +35 -0
  179. package/core/popup-ownership.d.ts +2 -0
  180. package/core/selection-list-tooltips.d.ts +2 -0
  181. package/core/title-tooltip.d.ts +2 -0
  182. package/core/tooltip-session.d.ts +29 -0
  183. package/core/tooltip-surface.d.ts +13 -0
  184. package/core/tooltip-text.d.ts +6 -0
  185. package/core/tooltip.d.ts +35 -0
  186. package/core/top-layer-popup.d.ts +4 -0
  187. package/core/top-layer-popup.js +1 -23
  188. package/date-time/attach.d.ts +1 -1
  189. package/date-time/date-control.d.ts +2 -2
  190. package/date-time/field.d.ts +4 -3
  191. package/date-time/index.js +1 -1
  192. package/date-time/picker.d.ts +1 -1
  193. package/date-time/style.scss +242 -39
  194. package/date-time/time-control.d.ts +1 -1
  195. package/date-time/time-selection.d.ts +3 -1
  196. package/date-time/types.d.ts +6 -2
  197. package/dialog/dialog-action-footer.d.ts +17 -2
  198. package/dialog/dialog.dom.d.ts +15 -2
  199. package/dialog/dialog.dom.js +53 -53
  200. package/dialog/dialog.parts.d.ts +18 -18
  201. package/dialog/dialog.parts.js +1 -1
  202. package/dialog/dialog.preact.d.ts +1 -1
  203. package/dialog/dialog.preact.js +6 -6
  204. package/distribution-chart/_distribution-chart.scss +113 -77
  205. package/distribution-chart/area-chart.d.ts +1 -1
  206. package/distribution-chart/area-chart.js +25 -25
  207. package/distribution-chart/bar-chart.d.ts +6 -3
  208. package/distribution-chart/bar-chart.js +10 -6
  209. package/distribution-chart/chart-frame.d.ts +3 -2
  210. package/distribution-chart/index.d.ts +2 -2
  211. package/distribution-chart/index.js +6 -6
  212. package/distribution-chart/line-chart.d.ts +1 -1
  213. package/distribution-chart/line-chart.js +9 -9
  214. package/distribution-chart/types.d.ts +1 -1
  215. package/dropdown/content.d.ts +3 -2
  216. package/dropdown/content.js +1 -141
  217. package/dropdown/control.d.ts +14 -0
  218. package/dropdown/control.js +1 -0
  219. package/dropdown/control.view.d.ts +6 -0
  220. package/dropdown/dropdown.service.d.ts +1 -1
  221. package/dropdown/dropdown.service.js +9 -9
  222. package/dropdown/dropdown.types.d.ts +5 -1
  223. package/dropdown/editor-dropdown.style.scss +54 -16
  224. package/dropdown/index.d.ts +1 -1
  225. package/dropdown/index.js +3 -4
  226. package/dropdown/lookup-field.d.ts +6 -1
  227. package/dropdown/lookup-field.js +42 -41
  228. package/dropdown/popup.d.ts +2 -2
  229. package/dropdown/popup.js +1 -140
  230. package/duration/controls.d.ts +1 -1
  231. package/duration/index.d.ts +2 -2
  232. package/duration/index.js +1 -1
  233. package/duration/style.scss +1 -1
  234. package/editor-actions.d.ts +1 -1
  235. package/editor-actions.js +21 -20
  236. package/editor-layout/index.d.ts +5 -5
  237. package/editor-layout/index.js +43 -38
  238. package/editor-layout/style.scss +82 -18
  239. package/field-configurator.d.ts +40 -2
  240. package/field-configurator.js +4 -170
  241. package/field-expansion.d.ts +9 -0
  242. package/field-reorder.hook.js +32 -32
  243. package/fieldset.d.ts +3 -0
  244. package/filter/filters/slider/_single-slider.scss +57 -38
  245. package/filter/filters/slider/_slider.scss +41 -33
  246. package/filter/filters/slider/control.js +2 -0
  247. package/filter/filters/slider/preact.js +3 -3
  248. package/filter/filters/slider/runtime.js +49 -22
  249. package/filter/filters/slider/single.d.ts +1 -1
  250. package/filter/filters/slider/single.js +23 -23
  251. package/filter-badge.d.ts +1 -1
  252. package/filter-badge.js +23 -22
  253. package/filter-controls.d.ts +1 -2
  254. package/filter-controls.js +29 -30
  255. package/form-controls/field-context.d.ts +5 -0
  256. package/form-controls/index.d.ts +10 -2
  257. package/form-controls/index.js +17 -22
  258. package/form-controls/presentation.d.ts +2 -2
  259. package/form-controls/presentation.js +59 -51
  260. package/formatting/comparison-preview.d.ts +1 -1
  261. package/formatting/icon-controls.d.ts +1 -1
  262. package/formatting/index.d.ts +1 -1
  263. package/formatting/index.js +106 -100
  264. package/formatting/inspector-section.d.ts +1 -1
  265. package/formatting/styles.scss +14 -57
  266. package/formatting/typography-controls.d.ts +1 -1
  267. package/framework-mount.d.ts +1 -1
  268. package/framework.js +237 -226
  269. package/history-controls.d.ts +14 -0
  270. package/history-controls.js +27 -0
  271. package/icon-toolbar.d.ts +62 -0
  272. package/icon-toolbar.js +1 -0
  273. package/icons/icon.d.ts +2 -2
  274. package/icons/icon.js +1 -1
  275. package/legend.d.ts +2 -2
  276. package/legend.js +12 -12
  277. package/masked-input/index.d.ts +1 -1
  278. package/masked-input/index.js +109 -109
  279. package/native-control.d.ts +14 -13
  280. package/native-control.js +3 -26
  281. package/native-controls.d.ts +54 -2
  282. package/native-styles.css +1 -1
  283. package/native-styles.scss +6 -2
  284. package/native.d.ts +3 -3
  285. package/native.js +49 -45
  286. package/number-input/index.d.ts +2 -2
  287. package/number-input/index.js +1 -1
  288. package/package.json +88 -15
  289. package/pagination.d.ts +3 -0
  290. package/pagination.js +50 -40
  291. package/pdf-viewer/component.d.ts +1 -1
  292. package/pdf-viewer/controller.js +1 -1
  293. package/pdf-viewer/header.d.ts +2 -2
  294. package/pdf-viewer/index.d.ts +2 -2
  295. package/pdf-viewer/index.js +13 -13
  296. package/pdf-viewer/search-bar.d.ts +2 -2
  297. package/pdf-viewer/status.d.ts +2 -2
  298. package/pdf-viewer/style.scss +205 -45
  299. package/pdf-viewer/toolbar.d.ts +1 -1
  300. package/pickers.d.ts +6 -2
  301. package/preact-mount.d.ts +1 -1
  302. package/preact-mount.js +2 -2
  303. package/preact.d.ts +15 -10
  304. package/preact.js +109 -64
  305. package/progress/_bar.scss +9 -3
  306. package/progress/_circular.scss +2 -1
  307. package/rating-choice.d.ts +1 -1
  308. package/rating-choice.js +1 -1
  309. package/react-adapter.d.ts +5 -3
  310. package/react-control.d.ts +1 -0
  311. package/react.d.ts +20 -11
  312. package/react.js +72 -88
  313. package/reorder-list.d.ts +2 -2
  314. package/reorder-list.js +1 -1
  315. package/reorder-list.scss +59 -17
  316. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  317. package/resource-picker/resource-picker-avatar.js +14 -14
  318. package/resource-picker/resource-picker-option.d.ts +1 -1
  319. package/resource-picker/resource-picker-option.js +28 -28
  320. package/resource-picker/resource-picker-popup.d.ts +1 -1
  321. package/resource-picker/resource-picker-popup.js +3 -3
  322. package/resource-picker/resource-picker.d.ts +1 -1
  323. package/resource-picker/resource-picker.js +68 -66
  324. package/resource-picker/resource-picker.scss +66 -35
  325. package/rich-text/engine.d.ts +17 -19
  326. package/rich-text/format-html.d.ts +2 -0
  327. package/rich-text/index.d.ts +11 -7
  328. package/rich-text/index.js +1 -1
  329. package/rich-text/model.d.ts +6 -3
  330. package/rich-text/render-model.d.ts +4 -5
  331. package/rich-text/style.scss +295 -55
  332. package/rich-text/syntax.d.ts +5 -2
  333. package/rich-text/toolbar.d.ts +7 -7
  334. package/rich-text/translations.d.ts +5 -15
  335. package/search-input/index.js +12 -12
  336. package/search-input/native.d.ts +21 -2
  337. package/segmented-switch/index.d.ts +1 -1
  338. package/segmented-switch/index.js +1 -1
  339. package/select.d.ts +22 -0
  340. package/select.js +1 -0
  341. package/selection-list.d.ts +1 -0
  342. package/selection-list.js +3 -1
  343. package/status-feedback/exit-snapshot.js +1 -1
  344. package/status-feedback/index.js +2 -2
  345. package/status-feedback/popover.js +9 -9
  346. package/status-feedback/render.d.ts +2 -2
  347. package/status-feedback/render.js +3 -44
  348. package/status-feedback/status-feedback.scss +130 -34
  349. package/status-feedback/types.d.ts +4 -0
  350. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  351. package/styles/_activity-message.scss +24 -7
  352. package/styles/_alert.scss +78 -17
  353. package/styles/_cell-editor-frame.scss +11 -0
  354. package/styles/_compositions.scss +404 -82
  355. package/styles/_control.scss +42 -12
  356. package/styles/_disclosure.scss +15 -5
  357. package/styles/_editor-counter.scss +16 -6
  358. package/styles/_editor-slider.scss +8 -4
  359. package/styles/_field-configurator.scss +321 -23
  360. package/styles/_fields-grid.scss +49 -0
  361. package/styles/_filter-controls.scss +10 -2
  362. package/styles/_icon-action.scss +48 -15
  363. package/styles/_loading.scss +12 -3
  364. package/styles/_motion.scss +32 -9
  365. package/styles/_palette.scss +0 -24
  366. package/styles/_primitives.scss +376 -116
  367. package/styles/_theme.scss +130 -86
  368. package/styles/_thresholds.scss +28 -25
  369. package/styles/_time-grid.scss +8 -3
  370. package/styles/_tokens.scss +6 -1
  371. package/styles/configurator-actions.scss +241 -0
  372. package/styles/pagination.css +213 -0
  373. package/styles/{legacy-rating.css → rating.css} +8 -3
  374. package/styles.css +1 -1
  375. package/styles.scss +3 -5
  376. package/surfaces.d.ts +38 -2
  377. package/surfaces.js +37 -134
  378. package/svelte/UiComponent.server.js +1 -48
  379. package/svelte/UiComponent.svelte +44 -32
  380. package/svelte.d.ts +1 -1
  381. package/svelte.js +33 -68
  382. package/switch/index.js +3 -2
  383. package/time-grid.d.ts +1 -2
  384. package/time-grid.js +43 -42
  385. package/timeline-track/_style.scss +96 -24
  386. package/timeline-track/component.d.ts +5 -1
  387. package/timeline-track/index.js +91 -74
  388. package/timeline-track/model.d.ts +9 -0
  389. package/timeline-track/model.js +10 -1
  390. package/ui.css +1 -1
  391. package/view-switcher.d.ts +23 -0
  392. package/vue-adapter.d.ts +1 -1
  393. package/vue.d.ts +160 -144
  394. package/vue.js +149 -178
  395. package/_chunks/calendar-BsDxCYhI.js +0 -248
  396. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  397. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  398. package/_chunks/color-palette-BmZ7kH9R.js +0 -94
  399. package/_chunks/component-D4PH5UZT.js +0 -859
  400. package/_chunks/control-tooltip-BCNzQCXE.js +0 -100
  401. package/_chunks/controls-NEL5tDaz.js +0 -615
  402. package/_chunks/date-time-DjucJmbc.js +0 -769
  403. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  404. package/_chunks/dropdown-CkGQBm1Q.js +0 -357
  405. package/_chunks/duration-BCaktcvz.js +0 -270
  406. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  407. package/_chunks/editor-popup-B7fu_A_T.js +0 -81
  408. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  409. package/_chunks/mount-0-8opf1j.js +0 -90
  410. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  411. package/_chunks/picker-oazJ7sO_.js +0 -121
  412. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  413. package/_chunks/request-trail-D0oVzdRd.js +0 -347
  414. package/_chunks/rich-text-2Rla349o.js +0 -477
  415. package/avatar/index.view.d.ts +0 -25
  416. package/color-palette/native.view.d.ts +0 -15
  417. package/control-presentation.view.d.ts +0 -8
  418. package/dialog/dialog-action-footer.view.d.ts +0 -20
  419. package/dialog/dialog.dom.view.d.ts +0 -15
  420. package/form-controls/index.view.d.ts +0 -12
  421. package/formatting/control-tooltip.d.ts +0 -27
  422. package/native-controls.view.d.ts +0 -54
  423. package/react-native-select.d.ts +0 -6
  424. package/search-input/native.view.d.ts +0 -21
  425. package/styles/legacy-pagination.css +0 -112
  426. package/surfaces.view.d.ts +0 -63
  427. package/vue-native-select.d.ts +0 -9
package/legend.js CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as e, jsxs as t } from "preact/jsx-runtime";
1
+ import { t as e } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
2
2
  //#region src/legend.tsx
3
- function n({ label: n, items: r, className: i = "", itemClassName: a = "" }) {
3
+ function t({ label: t, items: n, className: r = "", itemClassName: i = "" }) {
4
4
  return /* @__PURE__ */ e("div", {
5
- class: `rv-legend ${i}`,
5
+ class: `rv-legend ${r}`,
6
6
  role: "list",
7
- "aria-label": n,
8
- children: r.map((n) => /* @__PURE__ */ t("span", {
7
+ "aria-label": t,
8
+ children: n.map((t) => /* @__PURE__ */ e("span", {
9
9
  role: "listitem",
10
- class: `rv-legend__item ${a} ${n.className ?? ""}`,
11
- "data-tone": n.tone ?? "muted",
12
- style: n.color ? { "--rv-legend-marker-color": n.color } : void 0,
10
+ class: `rv-legend__item ${i} ${t.className ?? ""}`,
11
+ "data-tone": t.tone ?? "muted",
12
+ style: t.color ? { "--rv-legend-marker-color": t.color } : void 0,
13
13
  children: [/* @__PURE__ */ e("i", {
14
14
  "aria-hidden": "true",
15
- "data-marker": n.marker ?? "solid"
15
+ "data-marker": t.marker ?? "solid"
16
16
  }), /* @__PURE__ */ e("span", {
17
17
  class: "rv-legend__label",
18
- children: n.label
18
+ children: t.label
19
19
  })]
20
- }, n.id))
20
+ }, t.id))
21
21
  });
22
22
  }
23
23
  //#endregion
24
- export { n as Legend };
24
+ export { t as Legend };
@@ -7,4 +7,4 @@ export declare function MaskedDraft({ value, options, apply, cancel, }: {
7
7
  options: MaskedInputOptions;
8
8
  apply: (value: string | null) => void;
9
9
  cancel: () => void;
10
- }): import("preact").JSX.Element;
10
+ }): import("../_vendor/preact/src/index").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { Input as e } from "../native-control.js";
2
- import { EditorActions as t } from "../editor-actions.js";
3
- import { useId as n, useRef as r, useState as i } from "preact/hooks";
4
- import { jsx as a, jsxs as o } from "preact/jsx-runtime";
1
+ import { a as e, i as t, t as n } from "../_chunks/hooks.module-CG3gN83z.js";
2
+ import { t as r } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
3
+ import { n as i } from "../_chunks/native-control-B9MNibfa.js";
4
+ import { EditorActions as a } from "../editor-actions.js";
5
5
  //#region src/masked-input/model.ts
6
- function s(e) {
6
+ function o(e) {
7
7
  if (typeof e != "string") return;
8
8
  let t = [], n = Array.from(e);
9
9
  for (let e = 0; e < n.length; e++) {
@@ -15,14 +15,14 @@ function s(e) {
15
15
  }
16
16
  return t.some((e) => "token" in e) ? t : void 0;
17
17
  }
18
- function c(e, t) {
18
+ function s(e, t) {
19
19
  return e === "0" ? /^[0-9]$/.test(t) : e === "A" ? /^[A-Za-z]$/.test(t) : /^[A-Za-z0-9]$/.test(t);
20
20
  }
21
- function l(e, t) {
21
+ function c(e, t) {
22
22
  let n = "";
23
23
  for (let r = 0; r < e.length; r++) {
24
24
  let i = t[r];
25
- if (!i || ("literal" in i ? e[r] !== i.literal : !c(i.token, e[r]))) return {
25
+ if (!i || ("literal" in i ? e[r] !== i.literal : !s(i.token, e[r]))) return {
26
26
  complete: !1,
27
27
  prefix: !1,
28
28
  raw: n
@@ -35,14 +35,14 @@ function l(e, t) {
35
35
  raw: n
36
36
  };
37
37
  }
38
- function u(e, t) {
38
+ function l(e, t) {
39
39
  let n = (e) => ({
40
40
  valid: !1,
41
41
  value: null,
42
42
  raw: null,
43
43
  formatted: null,
44
44
  error: e
45
- }), r = s(t.mask);
45
+ }), r = o(t.mask);
46
46
  if (!r || t.store !== void 0 && t.store !== "raw" && t.store !== "formatted") return n("configuration");
47
47
  if (e == null || e === "") return t.required ? n("required") : {
48
48
  valid: !0,
@@ -51,9 +51,9 @@ function u(e, t) {
51
51
  formatted: null
52
52
  };
53
53
  if (typeof e != "string") return n("invalid");
54
- let i = Array.from(e), a = l(i, r.filter((e) => "token" in e)), o = l(i, r), c = a.complete ? a : o.complete ? o : void 0;
55
- if (!c) return n(a.prefix || o.prefix ? "incomplete" : "invalid");
56
- let u = c.raw, d = Array.from(u), f = 0, p = r.map((e) => "literal" in e ? e.literal : d[f++]).join("");
54
+ let i = Array.from(e), a = c(i, r.filter((e) => "token" in e)), s = c(i, r), l = a.complete ? a : s.complete ? s : void 0;
55
+ if (!l) return n(a.prefix || s.prefix ? "incomplete" : "invalid");
56
+ let u = l.raw, d = Array.from(u), f = 0, p = r.map((e) => "literal" in e ? e.literal : d[f++]).join("");
57
57
  return {
58
58
  valid: !0,
59
59
  raw: u,
@@ -61,24 +61,24 @@ function u(e, t) {
61
61
  value: t.store === "formatted" ? p : u
62
62
  };
63
63
  }
64
- function d(e, t) {
65
- let n = u(e, t);
64
+ function u(e, t) {
65
+ let n = l(e, t);
66
66
  return n.valid ? n.formatted ?? "" : e == null ? "" : String(e);
67
67
  }
68
68
  //#endregion
69
69
  //#region src/masked-input/edit.ts
70
- var f = "_";
71
- function p(e, t) {
70
+ var d = "_";
71
+ function f(e, t) {
72
72
  let n = t.filter((e) => "token" in e), r = Array.from(e), i = n.map(() => "");
73
73
  if (!r.length) return i;
74
74
  if (r.length === t.length) {
75
75
  let e = 0;
76
76
  if (t.every((t, n) => {
77
77
  let a = r[n];
78
- return "literal" in t ? a === t.literal : a !== f && !c(t.token, a) ? !1 : (i[e++] = a === f ? "" : a, !0);
78
+ return "literal" in t ? a === t.literal : a !== d && !s(t.token, a) ? !1 : (i[e++] = a === d ? "" : a, !0);
79
79
  })) return i;
80
80
  }
81
- if (r.length <= n.length && r.every((e, t) => "token" in n[t] && c(n[t].token, e))) return i.map((e, t) => r[t] ?? "");
81
+ if (r.length <= n.length && r.every((e, t) => "token" in n[t] && s(n[t].token, e))) return i.map((e, t) => r[t] ?? "");
82
82
  let a = 0;
83
83
  for (let e = 0; e < r.length; e++) {
84
84
  let n = t[e], o = r[e];
@@ -86,125 +86,125 @@ function p(e, t) {
86
86
  if ("literal" in n) {
87
87
  if (o !== n.literal) return;
88
88
  } else {
89
- if (o !== f && !c(n.token, o)) return;
90
- i[a++] = o === f ? "" : o;
89
+ if (o !== d && !s(n.token, o)) return;
90
+ i[a++] = o === d ? "" : o;
91
91
  }
92
92
  }
93
93
  return i;
94
94
  }
95
- function m(e, t) {
95
+ function p(e, t) {
96
96
  let n = "", r = 0, i = [], a = [];
97
- for (let o of t) "literal" in o ? n += o.literal : (i.push(n.length), n += e[r++] || f, a.push(n.length));
97
+ for (let o of t) "literal" in o ? n += o.literal : (i.push(n.length), n += e[r++] || d, a.push(n.length));
98
98
  return {
99
99
  value: n,
100
100
  starts: i,
101
101
  ends: a
102
102
  };
103
103
  }
104
- function h(e, t) {
105
- let n = s(t.mask);
104
+ function m(e, t) {
105
+ let n = o(t.mask);
106
106
  if (!n) return e;
107
- let r = p(e, n);
108
- return r ? m(r, n).value : e;
107
+ let r = f(e, n);
108
+ return r ? p(r, n).value : e;
109
109
  }
110
- function g(e, t) {
111
- let n = s(t.mask), r = n && p(e, n);
110
+ function h(e, t) {
111
+ let n = o(t.mask), r = n && f(e, n);
112
112
  if (!n || !r) return e.length;
113
- let i = m(r, n), a = r.indexOf("");
113
+ let i = p(r, n), a = r.indexOf("");
114
114
  return i.starts[a] ?? i.value.length;
115
115
  }
116
- function _(e, t) {
117
- let n = u("", t);
116
+ function g(e, t) {
117
+ let n = l("", t);
118
118
  if (n.error === "configuration") return n;
119
- let r = s(t.mask), i = p(e, r);
119
+ let r = o(t.mask), i = f(e, r);
120
120
  return i ? i.every((e) => !e) ? n : i.some((e) => !e) ? {
121
121
  valid: !1,
122
122
  value: null,
123
123
  raw: null,
124
124
  formatted: null,
125
125
  error: "incomplete"
126
- } : u(m(i, r).value, t) : u(e, t);
126
+ } : l(p(i, r).value, t) : l(e, t);
127
127
  }
128
- function v(e, t, n, r, i, a) {
129
- let o = {
128
+ function _(e, t, n, r, i, a) {
129
+ let c = {
130
130
  value: e,
131
131
  caret: t,
132
132
  accepted: !1
133
- }, l = s(a.mask);
134
- if (!l) return o;
135
- let u = p(e, l);
133
+ }, l = o(a.mask);
134
+ if (!l) return c;
135
+ let u = f(e, l);
136
136
  if (!u) {
137
- if (t !== 0 || n !== e.length) return o;
137
+ if (t !== 0 || n !== e.length) return c;
138
138
  u = l.filter((e) => "token" in e).map(() => "");
139
139
  }
140
- let d = m(u, l), f = d.ends.filter((e) => e <= t).length, h = d.starts.filter((e) => e < n).length, g = [...u];
141
- for (let e = f; e < h; e++) g[e] = "";
142
- let _ = f;
140
+ let d = p(u, l), m = d.ends.filter((e) => e <= t).length, h = d.starts.filter((e) => e < n).length, g = [...u];
141
+ for (let e = m; e < h; e++) g[e] = "";
142
+ let _ = m;
143
143
  if ([
144
144
  "deleteContentBackward",
145
145
  "deleteContentForward",
146
146
  "deleteByCut"
147
- ].includes(r)) t === n && r !== "deleteByCut" && (_ = r === "deleteContentBackward" ? Math.max(0, f - 1) : f, _ < g.length && (g[_] = ""));
147
+ ].includes(r)) t === n && r !== "deleteByCut" && (_ = r === "deleteContentBackward" ? Math.max(0, m - 1) : m, _ < g.length && (g[_] = ""));
148
148
  else if (r.startsWith("insert") && i !== null) {
149
- let e = l.flatMap((e, t) => "token" in e ? [t] : []), r = e[f] ?? l.length, a = l.slice(f === 0 ? 0 : r), s = a.filter((e) => "token" in e), u = Array.from(i), m;
150
- if (u.length <= s.length && u.every((e, t) => "token" in s[t] && c(s[t].token, e))) m = u;
149
+ let e = l.flatMap((e, t) => "token" in e ? [t] : []), r = e[m] ?? l.length, a = l.slice(m === 0 ? 0 : r), o = a.filter((e) => "token" in e), u = Array.from(i), p;
150
+ if (u.length <= o.length && u.every((e, t) => "token" in o[t] && s(o[t].token, e))) p = u;
151
151
  else {
152
- let o = l.slice(f ? e[f - 1] + 1 : 0, r).map((e) => "literal" in e ? e.literal : "").join("");
152
+ let o = l.slice(m ? e[m - 1] + 1 : 0, r).map((e) => "literal" in e ? e.literal : "").join("");
153
153
  if (t === n && i && o.includes(i)) return {
154
154
  value: d.value,
155
- caret: d.starts[f] ?? d.value.length,
155
+ caret: d.starts[m] ?? d.value.length,
156
156
  accepted: !0
157
157
  };
158
- let s = p(i, a);
158
+ let s = f(i, a);
159
159
  if (s) {
160
160
  let e = s.findLastIndex(Boolean) + 1;
161
- s.slice(0, e).every(Boolean) && (m = s.slice(0, e));
161
+ s.slice(0, e).every(Boolean) && (p = s.slice(0, e));
162
162
  }
163
163
  }
164
- if (!m || f + m.length > g.length) return o;
165
- m.forEach((e, t) => {
166
- g[f + t] = e;
167
- }), _ = f + m.length;
168
- } else return o;
169
- let v = m(g, l);
164
+ if (!p || m + p.length > g.length) return c;
165
+ p.forEach((e, t) => {
166
+ g[m + t] = e;
167
+ }), _ = m + p.length;
168
+ } else return c;
169
+ let v = p(g, l);
170
170
  return {
171
171
  value: v.value,
172
172
  caret: v.starts[_] ?? v.value.length,
173
173
  accepted: !0
174
174
  };
175
175
  }
176
- var y = /* @__PURE__ */ new WeakMap(), b = (e) => ({
176
+ var v = /* @__PURE__ */ new WeakMap(), y = (e) => ({
177
177
  value: e.value,
178
178
  start: e.selectionStart ?? 0,
179
179
  end: e.selectionEnd ?? 0
180
180
  });
181
- function x(e, t, n, r) {
182
- let i = v(e.value, e.selectionStart ?? 0, e.selectionEnd ?? e.value.length, t, n, r);
181
+ function b(e, t, n, r) {
182
+ let i = _(e.value, e.selectionStart ?? 0, e.selectionEnd ?? e.value.length, t, n, r);
183
183
  if (i.accepted) {
184
184
  if (i.value !== e.value) {
185
- let t = y.get(e);
185
+ let t = v.get(e);
186
186
  (!t || t.current !== e.value) && (t = {
187
187
  current: e.value,
188
188
  past: [],
189
189
  future: []
190
- }, y.set(e, t)), t.past.push(b(e)), t.past.length > 100 && t.past.shift(), t.future = [], t.current = i.value;
190
+ }, v.set(e, t)), t.past.push(y(e)), t.past.length > 100 && t.past.shift(), t.future = [], t.current = i.value;
191
191
  }
192
192
  e.value = i.value, e.setSelectionRange(i.caret, i.caret);
193
193
  }
194
194
  return i.accepted;
195
195
  }
196
- function S(e, t) {
197
- let n = h(e.value, t);
196
+ function x(e, t) {
197
+ let n = m(e.value, t);
198
198
  if (n === e.value) return;
199
- let r = s(t.mask), i = p(e.value, r);
199
+ let r = o(t.mask), i = f(e.value, r);
200
200
  if (!i) return;
201
- let a = m(i, r), o = (t) => {
202
- let i = p(e.value.slice(0, t), r)?.filter(Boolean).length ?? 0;
201
+ let a = p(i, r), s = (t) => {
202
+ let i = f(e.value.slice(0, t), r)?.filter(Boolean).length ?? 0;
203
203
  return a.starts[i] ?? n.length;
204
- }, c = o(e.selectionStart ?? e.value.length), l = o(e.selectionEnd ?? e.value.length);
204
+ }, c = s(e.selectionStart ?? e.value.length), l = s(e.selectionEnd ?? e.value.length);
205
205
  e.value = n, e.setSelectionRange(c, l);
206
206
  }
207
- function C(e, t, n) {
207
+ function S(e, t, n) {
208
208
  return t.isComposing || !t.cancelable || ![
209
209
  "insertText",
210
210
  "insertReplacementText",
@@ -212,91 +212,91 @@ function C(e, t, n) {
212
212
  "deleteContentBackward",
213
213
  "deleteContentForward",
214
214
  "deleteByCut"
215
- ].includes(t.inputType) || t.inputType.startsWith("insert") && t.data === null ? !1 : (t.preventDefault(), x(e, t.inputType, t.data, n), !0);
215
+ ].includes(t.inputType) || t.inputType.startsWith("insert") && t.data === null ? !1 : (t.preventDefault(), b(e, t.inputType, t.data, n), !0);
216
216
  }
217
- function w(e, t, n) {
218
- return t.clipboardData ? (t.preventDefault(), x(e, "insertFromPaste", t.clipboardData.getData("text/plain"), n), !0) : !1;
217
+ function C(e, t, n) {
218
+ return t.clipboardData ? (t.preventDefault(), b(e, "insertFromPaste", t.clipboardData.getData("text/plain"), n), !0) : !1;
219
219
  }
220
- function T(e, t) {
220
+ function w(e, t) {
221
221
  if (t.isComposing || !(t.ctrlKey || t.metaKey) || t.altKey) return !1;
222
222
  let n = t.key.toLowerCase();
223
223
  if (n !== "z" && n !== "y") return !1;
224
224
  t.preventDefault(), t.stopPropagation();
225
- let r = y.get(e);
225
+ let r = v.get(e);
226
226
  if (!r || r.current !== e.value) return !0;
227
227
  let i = n === "y" || t.shiftKey, a = (i ? r.future : r.past).pop();
228
- return a && ((i ? r.past : r.future).push(b(e)), r.current = e.value = a.value, e.setSelectionRange(a.start, a.end)), !0;
228
+ return a && ((i ? r.past : r.future).push(y(e)), r.current = e.value = a.value, e.setSelectionRange(a.start, a.end)), !0;
229
229
  }
230
230
  //#endregion
231
231
  //#region src/masked-input/index.tsx
232
- var E = {
232
+ var T = {
233
233
  required: "Enter a value.",
234
234
  invalid: "Use only the characters and separators specified by the mask.",
235
235
  incomplete: "Complete every position in the mask.",
236
236
  configuration: "Configure a mask with 0, A, or * positions and valid escapes.",
237
237
  preview: "Formatted value"
238
238
  };
239
- function D({ value: s, options: c, apply: l, cancel: u }) {
240
- let [d, f] = i(() => h(String(s ?? ""), c)), [p, m] = i(!1), [g, v] = i(!1), y = r(!1), b = n(), x = {
241
- ...E,
242
- ...c.text
243
- }, D = _(d, c), O = p || D.error === "invalid" || D.error === "configuration", k = () => {
244
- m(!0), !y.current && D.valid && l(D.value);
239
+ function E({ value: o, options: s, apply: c, cancel: l }) {
240
+ let [u, d] = t(() => m(String(o ?? ""), s)), [f, p] = t(!1), [h, _] = t(!1), v = n(!1), y = e(), b = {
241
+ ...T,
242
+ ...s.text
243
+ }, E = g(u, s), D = f || E.error === "invalid" || E.error === "configuration", O = () => {
244
+ p(!0), !v.current && E.valid && c(E.value);
245
245
  };
246
- return /* @__PURE__ */ o("div", {
246
+ return /* @__PURE__ */ r("div", {
247
247
  class: "rv-masked-draft",
248
248
  onKeyDown: (e) => {
249
- !y.current && e.target instanceof HTMLInputElement && T(e.target, e) ? f(e.target.value) : e.key === "Enter" && (e.ctrlKey || e.metaKey || e.target instanceof HTMLInputElement) && !e.isComposing && !y.current && (e.preventDefault(), k());
249
+ !v.current && e.target instanceof HTMLInputElement && w(e.target, e) ? d(e.target.value) : e.key === "Enter" && (e.ctrlKey || e.metaKey || e.target instanceof HTMLInputElement) && !e.isComposing && !v.current && (e.preventDefault(), O());
250
250
  },
251
251
  children: [
252
- /* @__PURE__ */ a(e, {
252
+ /* @__PURE__ */ r(i, {
253
253
  type: "text",
254
- value: d,
255
- "aria-label": c.label ?? "Masked identifier",
256
- "aria-invalid": O && !D.valid,
257
- "aria-describedby": `${b}-hint${O && D.error ? ` ${b}-error` : ""}`,
258
- required: c.required,
259
- placeholder: c.placeholder ?? c.mask,
254
+ value: u,
255
+ "aria-label": s.label ?? "Masked identifier",
256
+ "aria-invalid": D && !E.valid,
257
+ "aria-describedby": `${y}-hint${D && E.error ? ` ${y}-error` : ""}`,
258
+ required: s.required,
259
+ placeholder: s.placeholder ?? s.mask,
260
260
  onBeforeInput: (e) => {
261
- !y.current && C(e.currentTarget, e, c) && f(e.currentTarget.value);
261
+ !v.current && S(e.currentTarget, e, s) && d(e.currentTarget.value);
262
262
  },
263
263
  onPaste: (e) => {
264
- !y.current && w(e.currentTarget, e, c) && f(e.currentTarget.value);
264
+ !v.current && C(e.currentTarget, e, s) && d(e.currentTarget.value);
265
265
  },
266
266
  onInput: (e) => {
267
- y.current || S(e.currentTarget, c), f(e.currentTarget.value);
267
+ v.current || x(e.currentTarget, s), d(e.currentTarget.value);
268
268
  },
269
269
  onCompositionStart: () => {
270
- y.current = !0, v(!0);
270
+ v.current = !0, _(!0);
271
271
  },
272
272
  onCompositionEnd: (e) => {
273
- y.current = !1, v(!1), S(e.currentTarget, c), f(e.currentTarget.value);
273
+ v.current = !1, _(!1), x(e.currentTarget, s), d(e.currentTarget.value);
274
274
  }
275
275
  }),
276
- /* @__PURE__ */ o("span", {
277
- id: `${b}-hint`,
276
+ /* @__PURE__ */ r("span", {
277
+ id: `${y}-hint`,
278
278
  class: "rv-masked-draft__preview",
279
279
  children: [
280
- x.preview,
280
+ b.preview,
281
281
  ": ",
282
- /* @__PURE__ */ a("output", { children: D.formatted ?? c.mask })
282
+ /* @__PURE__ */ r("output", { children: E.formatted ?? s.mask })
283
283
  ]
284
284
  }),
285
- O && D.error && /* @__PURE__ */ a("span", {
286
- id: `${b}-error`,
285
+ D && E.error && /* @__PURE__ */ r("span", {
286
+ id: `${y}-error`,
287
287
  role: "alert",
288
288
  class: "rv-editor-error",
289
- children: x[D.error]
289
+ children: b[E.error]
290
290
  }),
291
- /* @__PURE__ */ a(t, {
292
- text: c.actions,
293
- disabled: !D.valid || g,
294
- apply: k,
295
- cancel: u,
296
- clear: c.required ? void 0 : () => f(h("", c))
291
+ /* @__PURE__ */ r(a, {
292
+ text: s.actions,
293
+ disabled: !E.valid || h,
294
+ apply: O,
295
+ cancel: l,
296
+ clear: s.required ? void 0 : () => d(m("", s))
297
297
  })
298
298
  ]
299
299
  });
300
300
  }
301
301
  //#endregion
302
- export { D as MaskedDraft, c as acceptsMaskToken, x as applyMaskedEdit, v as editMaskedInput, h as formatMaskedDraft, d as formatMaskedValue, C as handleMaskedBeforeInput, T as handleMaskedHistory, w as handleMaskedPaste, s as maskParts, g as maskedDraftCaret, S as normalizeMaskedInput, _ as parseMaskedDraft, u as parseMaskedInput };
302
+ export { E as MaskedDraft, s as acceptsMaskToken, b as applyMaskedEdit, _ as editMaskedInput, m as formatMaskedDraft, u as formatMaskedValue, S as handleMaskedBeforeInput, w as handleMaskedHistory, C as handleMaskedPaste, o as maskParts, h as maskedDraftCaret, x as normalizeMaskedInput, g as parseMaskedDraft, l as parseMaskedInput };
@@ -1,28 +1,29 @@
1
- import { h, JSX } from 'preact';
1
+ import { Select as SharedSelect } from './select';
2
+ import { h, JSX } from './_vendor/preact/src/index';
2
3
  type NativeAttributes<K extends keyof JSX.IntrinsicElements> = Omit<JSX.IntrinsicElements[K], 'class' | 'className' | 'ref'> & {
3
4
  class?: JSX.IntrinsicElements[K]['class'] | Record<string, boolean | undefined>;
4
5
  className?: JSX.IntrinsicElements[K]['className'];
5
6
  };
6
- /** Transparent adapters preserve native event signatures and DOM refs. */
7
- export declare const Input: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<NativeAttributes<"input">> & {
8
- ref?: import('preact').Ref<HTMLInputElement> | undefined;
7
+ export declare const Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<NativeAttributes<"input">> & {
8
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
9
9
  }>;
10
- export declare const Select: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<NativeAttributes<"select">> & {
11
- ref?: import('preact').Ref<HTMLSelectElement> | undefined;
10
+ export declare const TextArea: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<NativeAttributes<"textarea">> & {
11
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLTextAreaElement> | undefined;
12
12
  }>;
13
- export declare const TextArea: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<NativeAttributes<"textarea">> & {
14
- ref?: import('preact').Ref<HTMLTextAreaElement> | undefined;
15
- }>;
16
- export declare const ButtonControl: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<h.JSX.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "class" | "ref"> & {
13
+ export declare const ButtonControl: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<h.JSX.ButtonHTMLAttributes<HTMLButtonElement>, "ref" | "className" | "class"> & {
17
14
  class?: h.JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
18
15
  className?: h.JSX.Signalish<string | undefined>;
19
16
  } & {
20
17
  unstyled?: boolean;
21
18
  busy?: boolean;
19
+ rounded?: boolean;
22
20
  }> & {
23
- ref?: import('preact').Ref<HTMLButtonElement> | undefined;
21
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
24
22
  }>;
25
- export declare const Summary: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<NativeAttributes<"summary">> & {
26
- ref?: import('preact').Ref<HTMLElement> | undefined;
23
+ export declare const Summary: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<NativeAttributes<"summary">> & {
24
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
27
25
  }>;
28
26
  export { nativeControlTag } from './control-presentation';
27
+ /** Selection uses the shared Dropdown rather than browser-native UI. */
28
+ export declare const Select: typeof SharedSelect;
29
+ export { Fieldset } from './fieldset';
package/native-control.js CHANGED
@@ -1,26 +1,3 @@
1
- import { nativeControlTag as e, registerControl as t, renderControl as n } from "./control-presentation.js";
2
- import { h as r } from "preact";
3
- import { forwardRef as i } from "preact/compat";
4
- //#region src/native-control.tsx
5
- function a(e, t, ...i) {
6
- let { onChange: a, ...o } = t, s = n(r, e, o, ...i);
7
- return a && !(e === "button" && t.busy) && Object.assign(s.props, { onChange: a }), s;
8
- }
9
- var o = t(i((e, t) => a("input", {
10
- ...e,
11
- ref: t
12
- })), "input"), s = t(i(({ children: e, ...t }, n) => a("select", {
13
- ...t,
14
- ref: n
15
- }, e)), "select"), c = t(i(({ children: e, ...t }, n) => a("textarea", {
16
- ...t,
17
- ref: n
18
- }, e)), "textarea"), l = t(i(({ children: e, ...t }, n) => a("button", {
19
- ...t,
20
- ref: n
21
- }, e)), "button"), u = t(i(({ children: e, ...t }, n) => a("summary", {
22
- ...t,
23
- ref: n
24
- }, e)), "summary");
25
- //#endregion
26
- export { l as ButtonControl, o as Input, s as Select, u as Summary, c as TextArea, e as nativeControlTag };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./_chunks/native-control-B9MNibfa.js";
2
+ import { nativeControlTag as o } from "./control-presentation.js";
3
+ export { a as ButtonControl, r as Fieldset, n as Input, i as Select, t as Summary, e as TextArea, o as nativeControlTag };
@@ -1,2 +1,54 @@
1
- /** Compatibility entry; markup is owned by the Preact TSX implementation. */
2
- export * from './native-controls.view';
1
+ /** Renderer-neutral controls shared by native DOM, Stencil and Preact hosts. */
2
+ export type ElementFactory = (...args: any[]) => any;
3
+ export declare function renderLoadingIndicator<H extends ElementFactory>(h: H, options: {
4
+ className?: string;
5
+ label?: string;
6
+ ref?: (element?: HTMLElement) => void;
7
+ showSpinner?: boolean;
8
+ }): ReturnType<H>;
9
+ export declare function createButtonElement(document: Document, options: {
10
+ label: string;
11
+ text?: string;
12
+ disabled?: boolean;
13
+ className?: string;
14
+ onClick?: (event: MouseEvent) => void;
15
+ }): HTMLButtonElement;
16
+ export declare function renderMenuItem<H extends ElementFactory>(h: H, options: {
17
+ label: string;
18
+ disabled: boolean;
19
+ submenu: boolean;
20
+ onActivate: () => void;
21
+ style?: string;
22
+ }): ReturnType<H>;
23
+ export declare function renderRatingStars<H extends ElementFactory>(h: H, value: number, maximum?: number): ReturnType<H>[];
24
+ export interface ScalarSliderOptions {
25
+ min: number;
26
+ max: number;
27
+ step: number;
28
+ value: number;
29
+ hideValue?: boolean;
30
+ displayValue?: string | number;
31
+ formatValue?: (value: number) => string | number;
32
+ thresholdClassNames?: string;
33
+ thresholds?: readonly {
34
+ value: number;
35
+ className: string;
36
+ }[];
37
+ label?: string;
38
+ onChange: (value: number, event: Event) => void;
39
+ onMouseDown?: (event: MouseEvent) => void;
40
+ }
41
+ /** Shared scalar slider presentation; edit commits and threshold policy are caller-owned. */
42
+ export declare function renderScalarSlider<H extends ElementFactory>(h: H, options: ScalarSliderOptions): ReturnType<H>;
43
+ export interface CounterOptions {
44
+ value: number;
45
+ min: number;
46
+ max: number;
47
+ step: number;
48
+ hideValue?: boolean;
49
+ onChange: (value: number, event: MouseEvent) => void;
50
+ decreaseLabel?: string;
51
+ increaseLabel?: string;
52
+ onMouseDown?: (event: MouseEvent) => void;
53
+ }
54
+ export declare function renderCounter<H extends ElementFactory>(h: H, options: CounterOptions): ReturnType<H>;