@revolist/ui 4.0.1-rc → 4.0.3-rc

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 (288) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -262
  3. package/_chunks/calendar-xpZ0v3xf.js +258 -0
  4. package/_chunks/chart-frame-Cmc7xU1i.js +130 -0
  5. package/_chunks/choice-chips-CHQTUdLs.js +110 -0
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-D8vyPfld.js} +41 -41
  8. package/_chunks/color-picker-CudqPYZo.js +138 -0
  9. package/_chunks/component-C_T2VN5u.js +863 -0
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-uscKfAnV.js} +29 -29
  13. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  14. package/_chunks/{controls-NEL5tDaz.js → controls-DsNi8V8I.js} +229 -214
  15. package/_chunks/{date-control-CYCkb1aQ.js → date-control-DrVFX13g.js} +21 -21
  16. package/_chunks/date-time-qIhp5vaX.js +768 -0
  17. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
  18. package/_chunks/dialog.parts-CKGkC5zP.js +134 -0
  19. package/_chunks/duration-CL68Em0o.js +272 -0
  20. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  21. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-WDdtVDNA.js} +8 -8
  22. package/_chunks/field-context-D57PnBbH.js +5 -0
  23. package/_chunks/framework-mount--RTLIqE-.js +54 -0
  24. package/_chunks/history-controls-B3u3INEK.js +27 -0
  25. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  26. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  27. package/_chunks/mount-DQ1cpppK.js +257 -0
  28. package/_chunks/native-control-C_yok8_-.js +605 -0
  29. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  30. package/_chunks/{number-input-NnH57J4j.js → number-input-BKwA5FnM.js} +89 -89
  31. package/_chunks/picker-h1P5RUgp.js +122 -0
  32. package/_chunks/popup-CT2uD3go.js +367 -0
  33. package/_chunks/preact.module-BBM36DnO.js +290 -0
  34. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-DZgmaic0.js} +10 -10
  35. package/_chunks/render-m5eMMwFR.js +83 -0
  36. package/_chunks/reorder-list-CSlqAGHw.js +59 -0
  37. package/_chunks/request-trail-DSlFix6i.js +618 -0
  38. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  39. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  40. package/_form.scss +1 -1
  41. package/_vendor/preact/LICENSE +21 -0
  42. package/_vendor/preact/compat/src/index.d.ts +353 -0
  43. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  44. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  45. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  46. package/_vendor/preact/src/dom.d.ts +2548 -0
  47. package/_vendor/preact/src/index.d.ts +373 -0
  48. package/_vendor/preact/src/jsx.d.ts +2958 -0
  49. package/activity-message.d.ts +1 -1
  50. package/activity-message.js +16 -16
  51. package/ai/_chat.scss +195 -0
  52. package/ai/_style.scss +105 -34
  53. package/ai/chat.d.ts +63 -0
  54. package/ai/components.d.ts +20 -4
  55. package/ai/index.d.ts +2 -0
  56. package/ai/index.js +3 -3
  57. package/ai/mount.d.ts +30 -1
  58. package/ai/prompt-history.d.ts +13 -0
  59. package/ai/request-trail.d.ts +1 -1
  60. package/ai/transcript.d.ts +25 -0
  61. package/ai/translation-context.d.ts +1 -1
  62. package/ai/translations.d.ts +1 -1
  63. package/alert.d.ts +2 -2
  64. package/angular/angular.js +0 -3
  65. package/assignee/field.d.ts +2 -2
  66. package/assignee/index.js +86 -87
  67. package/assignee/layout.d.ts +2 -2
  68. package/assignee/picker.d.ts +1 -1
  69. package/avatar/index.js +25 -25
  70. package/avatar/index.view.d.ts +1 -1
  71. package/brush-range/component.d.ts +1 -1
  72. package/brush-range/component.js +30 -30
  73. package/buttons/delete-button.d.ts +2 -1
  74. package/buttons/delete-button.js +1 -1
  75. package/buttons/remove-button.d.ts +1 -1
  76. package/buttons/remove-button.js +3 -3
  77. package/buttons/svg-button.d.ts +2 -1
  78. package/buttons/svg-button.js +35 -35
  79. package/calendar/_calendar.scss +7 -2
  80. package/calendar/calendar.d.ts +1 -1
  81. package/calendar/calendar.js +1 -1
  82. package/calendar/caption.d.ts +1 -1
  83. package/calendar/day.d.ts +1 -1
  84. package/calendar/day.js +4 -4
  85. package/calendar/header.d.ts +1 -1
  86. package/calendar/header.js +35 -35
  87. package/calendar/index.js +2 -2
  88. package/calendar/month-grid.d.ts +1 -1
  89. package/calendar/month-grid.js +37 -37
  90. package/calendar/picker.d.ts +1 -1
  91. package/calendar/types.d.ts +1 -1
  92. package/calendar/year-grid.d.ts +1 -1
  93. package/calendar/year-grid.js +12 -12
  94. package/checkbox/index.d.ts +2 -2
  95. package/checkbox/index.js +9 -9
  96. package/choice-chips/index.d.ts +1 -1
  97. package/choice-chips/index.js +1 -1
  98. package/color-palette/color-palette.d.ts +1 -1
  99. package/color-palette/color-palette.js +1 -1
  100. package/color-palette/color-picker.d.ts +1 -1
  101. package/color-palette/color-picker.js +2 -2
  102. package/component-catalog.d.ts +34 -23
  103. package/control-attributes.js +7 -7
  104. package/control-presentation.js +18 -18
  105. package/controls.d.ts +12 -10
  106. package/controls.js +3 -3
  107. package/core/editor-commit.d.ts +1 -1
  108. package/core/editor-popup.d.ts +1 -1
  109. package/core/editor-popup.js +1 -1
  110. package/date-time/date-control.d.ts +1 -1
  111. package/date-time/field.d.ts +2 -2
  112. package/date-time/index.js +1 -1
  113. package/date-time/picker.d.ts +1 -1
  114. package/date-time/style.scss +4 -4
  115. package/date-time/time-control.d.ts +1 -1
  116. package/date-time/time-selection.d.ts +1 -1
  117. package/date-time/types.d.ts +1 -1
  118. package/dialog/dialog-action-footer.view.d.ts +1 -1
  119. package/dialog/dialog.dom.js +52 -52
  120. package/dialog/dialog.parts.d.ts +18 -18
  121. package/dialog/dialog.parts.js +1 -1
  122. package/dialog/dialog.preact.d.ts +1 -1
  123. package/dialog/dialog.preact.js +6 -6
  124. package/distribution-chart/area-chart.d.ts +1 -1
  125. package/distribution-chart/area-chart.js +25 -25
  126. package/distribution-chart/bar-chart.d.ts +6 -3
  127. package/distribution-chart/bar-chart.js +10 -6
  128. package/distribution-chart/chart-frame.d.ts +3 -2
  129. package/distribution-chart/index.d.ts +1 -1
  130. package/distribution-chart/index.js +6 -6
  131. package/distribution-chart/line-chart.d.ts +1 -1
  132. package/distribution-chart/line-chart.js +9 -9
  133. package/distribution-chart/types.d.ts +1 -1
  134. package/dropdown/content.d.ts +3 -2
  135. package/dropdown/content.js +1 -141
  136. package/dropdown/control.d.ts +14 -0
  137. package/dropdown/control.js +1 -0
  138. package/dropdown/control.view.d.ts +6 -0
  139. package/dropdown/dropdown.service.d.ts +1 -1
  140. package/dropdown/dropdown.service.js +9 -9
  141. package/dropdown/dropdown.types.d.ts +4 -0
  142. package/dropdown/editor-dropdown.style.scss +37 -9
  143. package/dropdown/index.d.ts +1 -1
  144. package/dropdown/index.js +3 -4
  145. package/dropdown/lookup-field.d.ts +1 -1
  146. package/dropdown/lookup-field.js +41 -41
  147. package/dropdown/popup.d.ts +1 -1
  148. package/dropdown/popup.js +1 -140
  149. package/duration/controls.d.ts +1 -1
  150. package/duration/index.d.ts +2 -2
  151. package/duration/index.js +1 -1
  152. package/duration/style.scss +1 -1
  153. package/editor-actions.d.ts +1 -1
  154. package/editor-actions.js +21 -20
  155. package/editor-layout/index.d.ts +1 -1
  156. package/editor-layout/index.js +27 -27
  157. package/field-configurator.d.ts +1 -1
  158. package/field-configurator.js +93 -93
  159. package/field-reorder.hook.js +32 -32
  160. package/fieldset.d.ts +3 -0
  161. package/filter/filters/slider/preact.js +3 -3
  162. package/filter/filters/slider/single.d.ts +1 -1
  163. package/filter/filters/slider/single.js +23 -23
  164. package/filter-badge.d.ts +1 -1
  165. package/filter-badge.js +23 -22
  166. package/filter-controls.d.ts +1 -1
  167. package/filter-controls.js +30 -30
  168. package/form-controls/field-context.d.ts +5 -0
  169. package/form-controls/index.js +16 -21
  170. package/form-controls/index.view.d.ts +2 -4
  171. package/form-controls/presentation.d.ts +1 -1
  172. package/form-controls/presentation.js +59 -51
  173. package/formatting/comparison-preview.d.ts +1 -1
  174. package/formatting/control-tooltip.d.ts +1 -1
  175. package/formatting/icon-controls.d.ts +1 -1
  176. package/formatting/index.js +105 -100
  177. package/formatting/inspector-section.d.ts +1 -1
  178. package/formatting/typography-controls.d.ts +1 -1
  179. package/framework-mount.d.ts +1 -1
  180. package/framework.js +215 -207
  181. package/history-controls.d.ts +14 -0
  182. package/history-controls.js +1 -0
  183. package/icons/icon.d.ts +1 -1
  184. package/icons/icon.js +1 -1
  185. package/legend.d.ts +1 -1
  186. package/legend.js +12 -12
  187. package/masked-input/index.d.ts +1 -1
  188. package/masked-input/index.js +109 -109
  189. package/native-control.d.ts +14 -12
  190. package/native-control.js +3 -26
  191. package/native-styles.css +1 -1
  192. package/native.js +40 -39
  193. package/number-input/index.d.ts +1 -1
  194. package/number-input/index.js +1 -1
  195. package/package.json +18 -14
  196. package/pagination.d.ts +3 -0
  197. package/pagination.js +43 -33
  198. package/pdf-viewer/component.d.ts +1 -1
  199. package/pdf-viewer/controller.js +1 -1
  200. package/pdf-viewer/header.d.ts +1 -1
  201. package/pdf-viewer/index.js +13 -13
  202. package/pdf-viewer/search-bar.d.ts +1 -1
  203. package/pdf-viewer/status.d.ts +1 -1
  204. package/pdf-viewer/style.scss +3 -4
  205. package/pdf-viewer/toolbar.d.ts +1 -1
  206. package/pickers.d.ts +1 -1
  207. package/preact-mount.d.ts +1 -1
  208. package/preact-mount.js +1 -1
  209. package/preact.d.ts +2 -0
  210. package/preact.js +62 -62
  211. package/rating-choice.d.ts +1 -1
  212. package/rating-choice.js +1 -1
  213. package/react-adapter.d.ts +1 -1
  214. package/react-control.d.ts +0 -1
  215. package/react-control.js +2 -2
  216. package/react.d.ts +13 -3
  217. package/react.js +71 -88
  218. package/reorder-list.d.ts +1 -1
  219. package/reorder-list.js +1 -1
  220. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  221. package/resource-picker/resource-picker-avatar.js +14 -14
  222. package/resource-picker/resource-picker-option.d.ts +1 -1
  223. package/resource-picker/resource-picker-option.js +28 -28
  224. package/resource-picker/resource-picker-popup.d.ts +1 -1
  225. package/resource-picker/resource-picker-popup.js +3 -3
  226. package/resource-picker/resource-picker.d.ts +1 -1
  227. package/resource-picker/resource-picker.js +88 -88
  228. package/resource-picker/resource-picker.scss +6 -3
  229. package/rich-text/engine.d.ts +16 -19
  230. package/rich-text/index.d.ts +7 -7
  231. package/rich-text/index.js +1 -1
  232. package/rich-text/model.d.ts +4 -3
  233. package/rich-text/render-model.d.ts +4 -5
  234. package/rich-text/style.scss +3 -12
  235. package/rich-text/toolbar.d.ts +7 -7
  236. package/rich-text/translations.d.ts +3 -15
  237. package/search-input/index.js +12 -12
  238. package/segmented-switch/index.d.ts +1 -1
  239. package/segmented-switch/index.js +1 -1
  240. package/select.d.ts +20 -0
  241. package/select.js +1 -0
  242. package/status-feedback/exit-snapshot.js +4 -4
  243. package/status-feedback/index.js +2 -2
  244. package/status-feedback/popover.js +10 -10
  245. package/status-feedback/render.d.ts +2 -2
  246. package/status-feedback/render.js +3 -44
  247. package/status-feedback/status-feedback.scss +7 -0
  248. package/status-feedback/types.d.ts +4 -0
  249. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  250. package/styles/_compositions.scss +3 -1
  251. package/styles/_control.scss +12 -4
  252. package/styles/_primitives.scss +9 -8
  253. package/styles.css +1 -1
  254. package/surfaces.js +49 -49
  255. package/svelte/UiComponent.server.js +1 -48
  256. package/svelte/UiComponent.svelte +0 -21
  257. package/svelte.js +33 -68
  258. package/switch/index.js +15 -15
  259. package/time-grid.d.ts +1 -1
  260. package/time-grid.js +58 -58
  261. package/timeline-track/component.d.ts +5 -1
  262. package/timeline-track/index.js +91 -74
  263. package/timeline-track/model.d.ts +9 -0
  264. package/timeline-track/model.js +10 -1
  265. package/ui.css +1 -1
  266. package/vue-adapter.d.ts +1 -1
  267. package/vue.d.ts +138 -119
  268. package/vue.js +150 -174
  269. package/_chunks/calendar-BsDxCYhI.js +0 -248
  270. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  271. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  272. package/_chunks/color-picker-BRv-__AM.js +0 -138
  273. package/_chunks/component-D4PH5UZT.js +0 -859
  274. package/_chunks/date-time-DjucJmbc.js +0 -769
  275. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  276. package/_chunks/dropdown-CkGQBm1Q.js +0 -357
  277. package/_chunks/duration-BCaktcvz.js +0 -270
  278. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  279. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  280. package/_chunks/mount-0-8opf1j.js +0 -90
  281. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  282. package/_chunks/picker-oazJ7sO_.js +0 -121
  283. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  284. package/_chunks/request-trail-D0oVzdRd.js +0 -347
  285. package/_chunks/rich-text-2Rla349o.js +0 -477
  286. package/react-native-select.d.ts +0 -6
  287. package/rich-text/syntax.d.ts +0 -2
  288. package/vue-native-select.d.ts +0 -9
@@ -1,15 +1,26 @@
1
1
  import { NumberDraft as PreactNumberDraft } from './number-input/index';
2
2
  import { MaskedDraft as PreactMaskedDraft } from './masked-input/index';
3
3
  import { DurationField as PreactDurationField, DurationDraft as PreactDurationDraft } from './duration/index';
4
- import { MarkdownEditor as PreactMarkdownEditor } from './rich-text/index';
4
+ import { HtmlEditor as PreactHtmlEditor } from './rich-text/index';
5
5
  import { TemporalPicker as PreactTemporalPicker, TemporalDraft as PreactTemporalDraft, DateTimeField as PreactDateTimeField } from './date-time/index';
6
6
  import { AssigneePicker as PreactAssigneePicker, AssigneeField as PreactAssigneeField, AssigneePickerLayout as PreactAssigneePickerLayout } from './assignee/index';
7
7
  import * as ui from './preact';
8
8
  export declare const uiComponents: {
9
+ readonly AiChat: typeof ui.AiChat;
10
+ readonly AiChatContent: typeof ui.AiChatContent;
11
+ readonly AiChatComposer: typeof ui.AiChatComposer;
12
+ readonly AiChatEmptyState: typeof ui.AiChatEmptyState;
13
+ readonly AiMessage: typeof ui.AiMessage;
14
+ readonly AiMessageContent: typeof ui.AiMessageContent;
15
+ readonly AiMessageActions: typeof ui.AiMessageActions;
16
+ readonly AiReasoning: typeof ui.AiReasoning;
17
+ readonly AiTask: typeof ui.AiTask;
18
+ readonly AiTaskItem: typeof ui.AiTaskItem;
9
19
  readonly AiPromptInput: typeof ui.AiPromptInput;
10
20
  readonly AiSuggestions: typeof ui.AiSuggestions;
11
21
  readonly AiActionStatus: typeof ui.AiActionStatus;
12
22
  readonly AiResult: typeof ui.AiResult;
23
+ readonly AiChangePreview: typeof ui.AiChangePreview;
13
24
  readonly AiAssistant: typeof ui.AiAssistant;
14
25
  readonly AiRequestTrail: typeof ui.AiRequestTrail;
15
26
  readonly Icon: typeof ui.SvgIcon;
@@ -18,17 +29,18 @@ export declare const uiComponents: {
18
29
  readonly RangeSlider: typeof ui.PreactRangeSlider;
19
30
  readonly ResourcePicker: typeof ui.SharedResourcePicker;
20
31
  readonly FeedbackPanel: typeof ui.StatusFeedbackPanel;
21
- readonly Input: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<import("preact").JSX.InputHTMLAttributes<HTMLInputElement>, "className" | "class" | "ref"> & {
22
- class?: import("preact").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
23
- className?: import("preact").JSX.Signalish<string | undefined>;
32
+ readonly Input: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "className" | "ref" | "class"> & {
33
+ class?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined> | Record<string, boolean | undefined>;
34
+ className?: import("./_vendor/preact/src/index").JSX.Signalish<string | undefined>;
24
35
  }> & {
25
- ref?: import('preact').Ref<HTMLInputElement> | undefined;
36
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
26
37
  }>;
27
38
  readonly SvgIcon: typeof ui.SvgIcon;
28
39
  readonly SvgButton: typeof ui.SvgButton;
29
- readonly DeleteButton: ({ onClick, disabled, className, onMouseDown, onDblClick, locale, }: {
40
+ readonly DeleteButton: ({ onClick, disabled, rounded, className, onMouseDown, onDblClick, locale, }: {
30
41
  onClick: (e: MouseEvent) => void;
31
42
  disabled?: boolean;
43
+ rounded?: boolean;
32
44
  onMouseDown?: (event: MouseEvent) => void;
33
45
  onDblClick?: (event: MouseEvent) => void;
34
46
  className?: string;
@@ -107,8 +119,8 @@ export declare const uiComponents: {
107
119
  readonly Pagination: typeof ui.Pagination;
108
120
  readonly CircularProgress: typeof ui.CircularProgress;
109
121
  readonly Rating: typeof ui.Rating;
110
- readonly Button: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ui.ButtonProps> & {
111
- ref?: import('preact').Ref<HTMLButtonElement> | undefined;
122
+ readonly Button: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ui.ButtonProps> & {
123
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
112
124
  }>;
113
125
  readonly Pane: typeof ui.EditorPane;
114
126
  readonly SplitLayout: typeof ui.EditorSplitLayout;
@@ -129,14 +141,14 @@ export declare const uiComponents: {
129
141
  readonly ConfirmDialog: typeof ui.ConfirmDialog;
130
142
  readonly DatePicker: typeof ui.DatePicker;
131
143
  readonly DateRangePicker: typeof ui.DateRangePicker;
132
- readonly DialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLElement>> & {
133
- ref?: import('preact').Ref<HTMLElement> | undefined;
144
+ readonly DialogHeader: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLElement>> & {
145
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
134
146
  }>;
135
- readonly DialogBody: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLDivElement>> & {
136
- ref?: import('preact').Ref<HTMLDivElement> | undefined;
147
+ readonly DialogBody: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLDivElement>> & {
148
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
137
149
  }>;
138
- readonly DialogFooter: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLElement>> & {
139
- ref?: import('preact').Ref<HTMLElement> | undefined;
150
+ readonly DialogFooter: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLElement>> & {
151
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
140
152
  }>;
141
153
  readonly DistributionChart: typeof ui.DistributionChart;
142
154
  readonly BarChart: typeof ui.BarChart;
@@ -167,14 +179,14 @@ export declare const uiComponents: {
167
179
  readonly DialogForm: typeof ui.DialogForm;
168
180
  readonly DialogCloseButton: typeof ui.DialogCloseButton;
169
181
  readonly DialogActionFooter: typeof ui.DialogActionFooter;
170
- readonly DialogActions: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<import("preact").JSX.HTMLAttributes<HTMLDivElement>> & {
171
- ref?: import('preact').Ref<HTMLDivElement> | undefined;
182
+ readonly DialogActions: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<import("./_vendor/preact/src/index").JSX.HTMLAttributes<HTMLDivElement>> & {
183
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
172
184
  }>;
173
- readonly DialogTitleInput: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<import("preact").JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
174
- ref?: import('preact').Ref<HTMLInputElement> | undefined;
185
+ readonly DialogTitleInput: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<Omit<import("./_vendor/preact/src/index").JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
186
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
175
187
  }>;
176
- readonly EditableDialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ui.EditableDialogHeaderProps> & {
177
- ref?: import('preact').Ref<HTMLElement> | undefined;
188
+ readonly EditableDialogHeader: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ui.EditableDialogHeaderProps> & {
189
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLElement> | undefined;
178
190
  }>;
179
191
  readonly ControlTooltip: typeof ui.ControlTooltip;
180
192
  readonly InspectorSection: typeof ui.InspectorSection;
@@ -196,14 +208,13 @@ export declare const uiComponents: {
196
208
  readonly MaskedDraft: typeof PreactMaskedDraft;
197
209
  readonly DurationField: typeof PreactDurationField;
198
210
  readonly DurationDraft: typeof PreactDurationDraft;
199
- readonly MarkdownEditor: typeof PreactMarkdownEditor;
211
+ readonly HtmlEditor: typeof PreactHtmlEditor;
200
212
  readonly TemporalPicker: typeof PreactTemporalPicker;
201
213
  readonly TemporalDraft: typeof PreactTemporalDraft;
202
214
  readonly DateTimeField: typeof PreactDateTimeField;
203
215
  readonly AssigneePicker: typeof PreactAssigneePicker;
204
216
  readonly AssigneeField: typeof PreactAssigneeField;
205
217
  readonly AssigneePickerLayout: typeof PreactAssigneePickerLayout;
206
- readonly NativeSelect: typeof ui.NativeSelect;
207
218
  };
208
219
  export type UiComponentName = keyof typeof uiComponents;
209
- export type UiComponentProps<K extends UiComponentName> = import('preact').ComponentProps<(typeof uiComponents)[K]>;
220
+ export type UiComponentProps<K extends UiComponentName> = import('./_vendor/preact/src/index').ComponentProps<(typeof uiComponents)[K]>;
@@ -5,18 +5,18 @@ function e(...e) {
5
5
  return [...new Set(t.filter(Boolean))].join(" ");
6
6
  }
7
7
  function t(t, n = {}) {
8
- let { class: r, className: i, unstyled: a, busy: o, ...s } = n, c = t === "button" && o === !0;
9
- if (c) {
10
- for (let e of Object.keys(s)) /^on/i.test(e) && delete s[e];
11
- s.disabled = !0, s["aria-busy"] = !0, s.onClickCapture = (e) => {
8
+ let { class: r, className: i, unstyled: a, busy: o, rounded: s, ...c } = n, l = t === "button" && o === !0;
9
+ if (l) {
10
+ for (let e of Object.keys(c)) /^on/i.test(e) && delete c[e];
11
+ c.disabled = !0, c["aria-busy"] = !0, c.onClickCapture = (e) => {
12
12
  e.preventDefault(), e.stopPropagation();
13
13
  };
14
14
  }
15
- let l = t === "input" ? n.type ?? "text" : void 0, u = t === "button" ? a ? "" : "rv-btn" : t === "summary" ? "rv-disclosure-summary" : l === "checkbox" ? "rv-checkbox" : l === "radio" ? "rv-radio" : l === "range" ? "rv-native-slider" : l === "hidden" ? "" : "rv-control";
15
+ let u = t === "input" ? n.type ?? "text" : void 0, d = t === "button" ? a ? "" : "rv-btn" : t === "summary" ? "rv-disclosure-summary" : u === "checkbox" ? "rv-checkbox" : u === "radio" ? "rv-radio" : u === "range" ? "rv-native-slider" : u === "hidden" ? "" : "rv-control";
16
16
  return {
17
17
  ...t === "button" ? { type: "button" } : {},
18
- ...s,
19
- class: e(u, r, i, c && "rv-btn-busy", c && n.disabled && "rv-btn-busy-disabled")
18
+ ...c,
19
+ class: e(d, r, i, t === "button" && s && "rv-btn-rounded", l && "rv-btn-busy", l && n.disabled && "rv-btn-busy-disabled")
20
20
  };
21
21
  }
22
22
  //#endregion
@@ -1,22 +1,22 @@
1
- import { createPreactElement as e } from "./preact-mount.js";
2
- import { controlAttributes as t, controlClassName as n } from "./control-attributes.js";
3
- import { h as r } from "preact";
4
- import { jsx as i } from "preact/jsx-runtime";
1
+ import { c as e } from "./_chunks/preact.module-BBM36DnO.js";
2
+ import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
3
+ import { createPreactElement as n } from "./preact-mount.js";
4
+ import { controlAttributes as r, controlClassName as i } from "./control-attributes.js";
5
5
  //#region src/control-presentation.view.tsx
6
- function a(e, n, r, ...i) {
7
- let a = r ?? {};
8
- if (n === "button" && a.busy === !0) {
9
- let r = i.length ? i : [a.children];
10
- return e(n, t(n, a), e("span", {
6
+ function a(e, t, n, ...i) {
7
+ let a = n ?? {};
8
+ if (t === "button" && a.busy === !0) {
9
+ let n = i.length ? i : [a.children];
10
+ return e(t, r(t, a), e("span", {
11
11
  class: "rv-button-spinner",
12
12
  "aria-hidden": "true"
13
- }), ...r);
13
+ }), ...n);
14
14
  }
15
- return e(n, t(n, a), ...i);
15
+ return e(t, r(t, a), ...i);
16
16
  }
17
- function o(t, n, i = {}) {
18
- let o = a(r, n, i);
19
- return i.onChange && !(n === "button" && i.busy) && Object.assign(o.props, { onChange: i.onChange }), e(t, o);
17
+ function o(t, r, i = {}) {
18
+ let o = a(e, r, i);
19
+ return i.onChange && !(r === "button" && i.busy) && Object.assign(o.props, { onChange: i.onChange }), n(t, o);
20
20
  }
21
21
  var s = /* @__PURE__ */ new WeakMap();
22
22
  function c(e, t) {
@@ -25,12 +25,12 @@ function c(e, t) {
25
25
  function l(e) {
26
26
  return typeof e == "string" ? e : e && (typeof e == "function" || typeof e == "object") ? s.get(e) : void 0;
27
27
  }
28
- function u(t, n) {
29
- t.classList.add("rv-btn", "rv-btn-ghost", "rv-btn-icon"), t.setAttribute("aria-label", n), t.title = n, t.querySelector(".rv-control-tooltip")?.remove(), t.append(e(t.ownerDocument, /* @__PURE__ */ i("span", {
28
+ function u(e, r) {
29
+ e.classList.add("rv-btn", "rv-btn-ghost", "rv-btn-icon"), e.setAttribute("aria-label", r), e.title = r, e.querySelector(".rv-control-tooltip")?.remove(), e.append(n(e.ownerDocument, /* @__PURE__ */ t("span", {
30
30
  class: "rv-control-tooltip",
31
31
  "aria-hidden": "true",
32
- children: n
32
+ children: r
33
33
  })));
34
34
  }
35
35
  //#endregion
36
- export { t as controlAttributes, n as controlClassName, o as createControl, u as decorateIconAction, l as nativeControlTag, c as registerControl, a as renderControl };
36
+ export { r as controlAttributes, i as controlClassName, o as createControl, u as decorateIconAction, l as nativeControlTag, c as registerControl, a as renderControl };
package/controls.d.ts CHANGED
@@ -1,18 +1,24 @@
1
1
  import { BadgeOptions } from './badge';
2
- import { h, ComponentChildren, JSX } from 'preact';
2
+ import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
3
3
  import { SegmentedSwitchProps, SegmentedSwitchValue } from './segmented-switch';
4
4
  import { EditorPane, EditorSplitLayout } from './editor-layout';
5
5
  import { ResizeOptions } from './surfaces';
6
6
  type ButtonAttributes = Omit<JSX.IntrinsicElements['button'], 'className'>;
7
7
  export type ButtonProps = ButtonAttributes & {
8
+ /** Pill-shaped corners for any button variant. */
9
+ rounded?: boolean;
10
+ /** Render navigation with native anchor semantics. */
11
+ href?: string;
12
+ target?: JSX.IntrinsicElements['a']['target'];
13
+ rel?: string;
8
14
  /** Show progress and block activation until cleared, preserving variant colors. */
9
15
  busy?: boolean;
10
16
  className?: string;
11
17
  variant?: 'default' | 'primary' | 'secondary' | 'danger' | 'danger-outline' | 'ghost' | 'link' | 'solid';
12
18
  size?: 'compact' | 'default';
13
19
  };
14
- export declare const Button: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ButtonProps> & {
15
- ref?: import('preact').Ref<HTMLButtonElement> | undefined;
20
+ export declare const Button: import('./_vendor/preact/src/index').FunctionalComponent<import('./_vendor/preact/compat/src/index').PropsWithoutRef<ButtonProps> & {
21
+ ref?: import('./_vendor/preact/src/index').Ref<HTMLButtonElement> | undefined;
16
22
  }>;
17
23
  /** Preact convenience composition of the shared SVG command button owner. */
18
24
  export declare function IconButton({ label, icon, badge, children, className, variant, size, ...props }: ButtonProps & {
@@ -79,10 +85,6 @@ export declare function NumberStepper({ value, min, max, step, onChange, label,
79
85
  export declare function DateInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
80
86
  export declare function TimeInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
81
87
  export declare function DateTimeInput(props: Omit<TextInputProps, 'type'>): h.JSX.Element;
82
- export declare function NativeSelect({ className, class: nativeClass, onValueChange, onChange, ...props }: Omit<JSX.IntrinsicElements['select'], 'className'> & {
83
- className?: string;
84
- onValueChange?: (value: string) => void;
85
- }): h.JSX.Element;
86
88
  export declare function Chip({ children, className }: ShellProps): h.JSX.Element;
87
89
  export declare function FieldHint({ children, id }: ShellProps & {
88
90
  id?: string;
@@ -99,12 +101,12 @@ export declare function Disclosure({ children, className, summary, open, onToggl
99
101
  open?: boolean;
100
102
  onToggle?: JSX.GenericEventHandler<HTMLDetailsElement>;
101
103
  }): h.JSX.Element;
102
- export { EditorPane as Pane, EditorSplitLayout as SplitLayout, };
104
+ export { EditorPane as Pane, EditorSplitLayout as SplitLayout };
103
105
  export declare function Panel({ children, className, label }: ShellProps): h.JSX.Element;
104
106
  export declare function Toolbar({ children, className, label }: ShellProps): h.JSX.Element;
105
107
  export declare function ToolbarGroup({ children, className, label }: ShellProps): h.JSX.Element;
106
108
  export declare function ToolbarSeparator(): h.JSX.Element;
107
- export declare function Badge({ children, className, variant, shape }: ShellProps & BadgeOptions): h.JSX.Element;
109
+ export declare function Badge({ children, className, variant, shape, }: ShellProps & BadgeOptions): h.JSX.Element;
108
110
  export declare function CountBadge({ count, label }: {
109
111
  count: number;
110
112
  label: string;
@@ -112,7 +114,7 @@ export declare function CountBadge({ count, label }: {
112
114
  export { Alert } from './alert';
113
115
  export declare function Spinner({ label }: {
114
116
  label: string;
115
- }): import('preact').VNode<import('preact').Attributes>;
117
+ }): import('./_vendor/preact/src/index').VNode<import('./_vendor/preact/src/index').Attributes>;
116
118
  export declare function LoadingOverlay({ busy, label, children, }: {
117
119
  busy: boolean;
118
120
  label: string;
package/controls.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./_chunks/controls-NEL5tDaz.js";
2
- import { EditorList as z, EditorListGroup as B, EditorListItem as V, EditorListItemContent as H, EditorPane as U, EditorSplitLayout as W } from "./editor-layout/index.js";
3
- export { R as Alert, M as Badge, D as Button, A as ButtonGroup, S as Chip, h as CircularProgress, O as CountBadge, j as DateInput, _ as DateTimeInput, T as Disclosure, N as EmptyState, v as FieldError, y as FieldHint, k as FormSection, E as IconButton, z as Listbox, B as ListboxGroup, V as ListboxOption, H as ListboxOptionContent, x as LoadingOverlay, b as Menu, m as MenuItem, P as MenuSeparator, L as NativeSelect, g as NumberInput, I as NumberStepper, f as Pagination, U as Pane, t as Panel, F as RadioGroup, p as Rating, r as ResizeHandle, n as SegmentedControl, l as Spinner, W as SplitLayout, w as Submenu, e as TabPanel, C as Tabs, s as TextInput, c as Textarea, u as TimeInput, i as ToggleButton, a as Toolbar, o as ToolbarGroup, d as ToolbarSeparator };
1
+ import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, S as f, T as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L } from "./_chunks/controls-DsNi8V8I.js";
2
+ import { EditorList as R, EditorListGroup as z, EditorListItem as B, EditorListItemContent as V, EditorPane as H, EditorSplitLayout as U } from "./editor-layout/index.js";
3
+ export { d as Alert, M as Badge, D as Button, A as ButtonGroup, S as Chip, h as CircularProgress, O as CountBadge, j as DateInput, _ as DateTimeInput, T as Disclosure, N as EmptyState, v as FieldError, y as FieldHint, k as FormSection, E as IconButton, R as Listbox, z as ListboxGroup, B as ListboxOption, V as ListboxOptionContent, x as LoadingOverlay, b as Menu, m as MenuItem, P as MenuSeparator, L as NumberInput, g as NumberStepper, I as Pagination, H as Pane, f as Panel, t as RadioGroup, F as Rating, p as ResizeHandle, r as SegmentedControl, n as Spinner, U as SplitLayout, l as Submenu, w as TabPanel, e as Tabs, C as TextInput, s as Textarea, c as TimeInput, u as ToggleButton, i as Toolbar, a as ToolbarGroup, o as ToolbarSeparator };
@@ -1,4 +1,4 @@
1
1
  export type EditorCommit = () => boolean | void;
2
2
  /** A popup registers one draft owner. Programmatic close and Escape never commit. */
3
- export declare const EditorCommitContext: import('preact').Context<((commit: EditorCommit) => () => void) | undefined>;
3
+ export declare const EditorCommitContext: import('../_vendor/preact/src/index').Context<((commit: EditorCommit) => () => void) | undefined>;
4
4
  export declare function useEditorAutoApply(commit: EditorCommit, enabled?: boolean): void;
@@ -1,4 +1,4 @@
1
- import { ComponentChildren } from 'preact';
1
+ import { ComponentChildren } from '../_vendor/preact/src/index';
2
2
  export interface EditorPopupHandle {
3
3
  readonly element: HTMLElement;
4
4
  close(): void;
@@ -1 +1 @@
1
- export { t as mountEditorPopup } from "../_chunks/editor-popup-B7fu_A_T.js";
1
+ export { t as mountEditorPopup } from "../_chunks/editor-popup-WDdtVDNA.js";
@@ -17,4 +17,4 @@ export declare function DateControl({ value, label, options, multiple, invalid,
17
17
  errorId?: string;
18
18
  onFocus?: () => void;
19
19
  onChange: (date: string | string[]) => void;
20
- }): import("preact").JSX.Element;
20
+ }): import("../_vendor/preact/src/index").JSX.Element;
@@ -6,6 +6,6 @@ export declare function TemporalDraft({ value, options, apply, cancel, clearable
6
6
  options: TemporalPickerOptions;
7
7
  apply: (value: TemporalControlValue) => void | string;
8
8
  cancel: () => void;
9
- }): import("preact").JSX.Element;
9
+ }): import("../_vendor/preact/src/index").JSX.Element;
10
10
  /** Native text entry plus the original shared CalendarPicker, usable in any product form. */
11
- export declare function DateTimeField({ value, kind, picker, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("preact").JSX.Element;
11
+ export declare function DateTimeField({ value, kind, picker, onValueChange, onInput, formatValue, parseValue, ...input }: DateTimeFieldProps): import("../_vendor/preact/src/index").JSX.Element;
@@ -1 +1 @@
1
- export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-DjucJmbc.js";
1
+ export { r as DateTimeField, i as TemporalDraft, a as TemporalPicker, n as attachTemporalPicker, o as defaultTemporalPickerText, t as renderTemporalValue, s as temporalPickerLabel } from "../_chunks/date-time-qIhp5vaX.js";
@@ -1,2 +1,2 @@
1
1
  import { TemporalPickerProps } from './types';
2
- export declare function TemporalPicker(props: TemporalPickerProps): import("preact").JSX.Element;
2
+ export declare function TemporalPicker(props: TemporalPickerProps): import("../_vendor/preact/src/index").JSX.Element;
@@ -57,9 +57,9 @@
57
57
 
58
58
  .rv-temporal-picker__header .rv-control,
59
59
  .rv-temporal-picker__times .rv-control {
60
- font-size: 12px;
61
- min-height: 32px;
62
- padding: 6px 8px;
60
+ font-size: var(--rv-control-font-size, 0.875rem);
61
+ min-height: var(--rv-control-height, 32px);
62
+ padding: var(--rv-control-padding, 6px 12px);
63
63
  }
64
64
  .rv-temporal-picker__dates { flex-wrap: wrap; }
65
65
  .rv-temporal-picker__endpoint {
@@ -94,7 +94,7 @@
94
94
  width: 100%;
95
95
  font-variant-numeric: tabular-nums;
96
96
  &__entry { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; }
97
- &__entry > .rv-control { width: 100%; min-width: 0; height: 34px; font: inherit; font-size: 14px; font-weight: 400; }
97
+ &__entry > .rv-control { width: 100%; min-width: 0; height: var(--rv-control-height, 32px); font: inherit; font-size: var(--rv-control-font-size, 0.875rem); font-weight: 400; }
98
98
  &__entry input[type='time']::-webkit-calendar-picker-indicator { display: none; }
99
99
  &__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
100
100
  &__columns--seconds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@@ -8,4 +8,4 @@ export declare function TimeControl({ value, label, format, precision, locale, m
8
8
  max?: string;
9
9
  step?: number;
10
10
  onChange: (value: string) => void;
11
- }): import("preact").JSX.Element;
11
+ }): import("../_vendor/preact/src/index").JSX.Element;
@@ -12,4 +12,4 @@ export interface TimeSelectionProps {
12
12
  step?: number;
13
13
  }
14
14
  /** Shared typed entry and bounded clock columns for time-only and date-time pickers. */
15
- export declare function TimeSelection({ value, label, text, onChange, format, precision, locale, min, max, step }: TimeSelectionProps): import("preact").JSX.Element;
15
+ export declare function TimeSelection({ value, label, text, onChange, format, precision, locale, min, max, step }: TimeSelectionProps): import("../_vendor/preact/src/index").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { DateInputOptions } from './date-control';
2
- import { JSX } from 'preact';
2
+ import { JSX } from '../_vendor/preact/src/index';
3
3
  import { CalendarPickerProps } from '../calendar/picker';
4
4
  import { LocalDateControlKind, TemporalControlValue } from '../_shared/dates/index';
5
5
  import { EditorActionText, EditorCommitOptions } from '../editor-actions';
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { ElementFactory } from '../native-controls';
3
3
  export interface NativeDialogAction {
4
4
  label?: string;
@@ -1,83 +1,83 @@
1
- import { createPreactElement as e } from "../preact-mount.js";
2
- import { ButtonControl as t } from "../native-control.js";
3
- import { a as n, i as r, n as i, r as a, s as o } from "../_chunks/dialog.parts-Dt3KinUz.js";
4
- import { jsx as s, jsxs as c } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { t } from "../_chunks/native-control-C_yok8_-.js";
3
+ import { createPreactElement as n } from "../preact-mount.js";
4
+ import { a as r, i, n as a, r as o, s } from "../_chunks/dialog.parts-CKGkC5zP.js";
5
5
  //#region src/dialog/dialog.dom.view.tsx
6
- function l(t, l, u) {
7
- let d = p(), f, m, h, g, _;
6
+ function c(t, c, l) {
7
+ let u = f(), d, p, m, h, g;
8
8
  return {
9
- root: e(t, /* @__PURE__ */ s("div", {
10
- class: ["rv-dialog-overlay", l.overlayClass].filter(Boolean).join(" "),
9
+ root: n(t, /* @__PURE__ */ e("div", {
10
+ class: ["rv-dialog-overlay", c.overlayClass].filter(Boolean).join(" "),
11
11
  role: "dialog",
12
12
  "aria-modal": "true",
13
- "aria-labelledby": d,
14
- "aria-describedby": l.ariaDescribedBy,
13
+ "aria-labelledby": u,
14
+ "aria-describedby": c.ariaDescribedBy,
15
15
  tabIndex: -1,
16
- children: /* @__PURE__ */ c("section", {
16
+ children: /* @__PURE__ */ e("section", {
17
17
  ref: (e) => {
18
- f = e;
18
+ d = e;
19
19
  },
20
- class: ["rv-dialog__surface", l.surfaceClass].filter(Boolean).join(" "),
20
+ class: ["rv-dialog__surface", c.surfaceClass].filter(Boolean).join(" "),
21
21
  children: [
22
- /* @__PURE__ */ c(o, {
22
+ /* @__PURE__ */ e(s, {
23
23
  ref: (e) => {
24
- m = e;
24
+ p = e;
25
25
  },
26
- children: [/* @__PURE__ */ s("div", {
26
+ children: [/* @__PURE__ */ e("div", {
27
27
  class: "rv-dialog__heading",
28
- children: /* @__PURE__ */ s("h3", {
29
- id: d,
28
+ children: /* @__PURE__ */ e("h3", {
29
+ id: u,
30
30
  class: "rv-dialog__title",
31
- children: l.title
31
+ children: c.title
32
32
  })
33
- }), /* @__PURE__ */ s(r, {
34
- "aria-label": l.closeLabel,
35
- title: l.closeLabel,
36
- onClick: u
33
+ }), /* @__PURE__ */ e(i, {
34
+ "aria-label": c.closeLabel,
35
+ title: c.closeLabel,
36
+ onClick: l
37
37
  })]
38
38
  }),
39
- /* @__PURE__ */ s(a, { ref: (e) => {
40
- h = e;
39
+ /* @__PURE__ */ e(o, { ref: (e) => {
40
+ m = e;
41
41
  } }),
42
- /* @__PURE__ */ s(n, {
42
+ /* @__PURE__ */ e(r, {
43
43
  ref: (e) => {
44
- g = e;
44
+ h = e;
45
45
  },
46
- children: /* @__PURE__ */ s(i, { ref: (e) => {
47
- _ = e;
46
+ children: /* @__PURE__ */ e(a, { ref: (e) => {
47
+ g = e;
48
48
  } })
49
49
  })
50
50
  ]
51
51
  })
52
52
  })),
53
- surface: f,
54
- header: m,
55
- body: h,
56
- footer: g,
57
- actions: _
53
+ surface: d,
54
+ header: p,
55
+ body: m,
56
+ footer: h,
57
+ actions: g
58
58
  };
59
59
  }
60
- function u(t, n, i) {
61
- return e(t, /* @__PURE__ */ s(r, {
62
- "aria-label": n,
63
- title: n,
64
- onClick: i
60
+ function l(t, r, a) {
61
+ return n(t, /* @__PURE__ */ e(i, {
62
+ "aria-label": r,
63
+ title: r,
64
+ onClick: a
65
65
  }));
66
66
  }
67
- function d(n, r, i, a = "default") {
68
- return e(n, /* @__PURE__ */ s(t, {
69
- title: r || void 0,
70
- class: a === "default" ? "rv-btn" : `rv-btn-${a}`,
71
- onClick: i,
72
- children: r
67
+ function u(r, i, a, o = "default") {
68
+ return n(r, /* @__PURE__ */ e(t, {
69
+ title: i || void 0,
70
+ class: o === "default" ? "rv-btn" : `rv-btn-${o}`,
71
+ onClick: a,
72
+ children: i
73
73
  }));
74
74
  }
75
- var f = 0;
76
- function p() {
77
- return f += 1, `rv-dialog-title-${f}`;
75
+ var d = 0;
76
+ function f() {
77
+ return d += 1, `rv-dialog-title-${d}`;
78
78
  }
79
- function m(e, t) {
80
- let n = h(e);
79
+ function p(e, t) {
80
+ let n = m(e);
81
81
  if (!n.length) {
82
82
  t.preventDefault(), e.focus();
83
83
  return;
@@ -85,8 +85,8 @@ function m(e, t) {
85
85
  let r = e.ownerDocument.activeElement, i = n.findIndex((e) => e === r), a = i < 0 ? t.shiftKey ? n.length - 1 : 0 : t.shiftKey ? (i - 1 + n.length) % n.length : (i + 1) % n.length;
86
86
  t.preventDefault(), n[a].focus();
87
87
  }
88
- function h(e) {
88
+ function m(e) {
89
89
  return Array.from(e.querySelectorAll("a[href], area[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), iframe, object, embed, summary, audio[controls], video[controls], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])")).filter((e) => !e.hidden && !e.closest("[hidden], [inert], [aria-hidden=\"true\"]") && !e.matches("[tabindex=\"-1\"], :disabled, input[type=\"hidden\"]"));
90
90
  }
91
91
  //#endregion
92
- export { d as createDialogButton, u as createDialogCloseButton, l as createDialogElements, h as getDialogFocusableElements, m as trapDialogFocus };
92
+ export { u as createDialogButton, l as createDialogCloseButton, c as createDialogElements, m as getDialogFocusableElements, p as trapDialogFocus };
@@ -1,32 +1,32 @@
1
- import { h, JSX } from 'preact';
1
+ import { h, JSX } from '../_vendor/preact/src/index';
2
2
  /** Composable chrome: consumers retain native dialog lifecycle and form policy. */
3
- export declare const DialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
4
- ref?: import('preact').Ref<HTMLElement> | undefined;
3
+ export declare const DialogHeader: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
4
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
5
5
  }>;
6
6
  export declare function DialogForm({ class: className, ...props }: JSX.IntrinsicElements['form']): h.JSX.Element;
7
- export declare const DialogBody: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
8
- ref?: import('preact').Ref<HTMLDivElement> | undefined;
7
+ export declare const DialogBody: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
8
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
9
9
  }>;
10
- export declare const DialogFooter: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
11
- ref?: import('preact').Ref<HTMLElement> | undefined;
10
+ export declare const DialogFooter: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLElement>> & {
11
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
12
12
  }>;
13
- export declare const DialogActions: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
14
- ref?: import('preact').Ref<HTMLDivElement> | undefined;
13
+ export declare const DialogActions: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<h.JSX.HTMLAttributes<HTMLDivElement>> & {
14
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLDivElement> | undefined;
15
15
  }>;
16
16
  export declare function DialogCloseButton({ class: className, iconClass, ...props }: Omit<JSX.IntrinsicElements['button'], 'ref'> & {
17
17
  'aria-label': string;
18
18
  iconClass?: string;
19
19
  }): h.JSX.Element;
20
20
  /** A native input with shared title styling; labels and commit policy stay explicit. */
21
- export declare const DialogTitleInput: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<Omit<h.JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
22
- ref?: import('preact').Ref<HTMLInputElement> | undefined;
21
+ export declare const DialogTitleInput: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<Omit<h.JSX.InputHTMLAttributes<HTMLInputElement>, "ref">> & {
22
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLInputElement> | undefined;
23
23
  }>;
24
24
  export interface EditableDialogHeaderProps extends Omit<JSX.IntrinsicElements['header'], 'title'> {
25
25
  readonly titleId: string;
26
26
  readonly title: string;
27
27
  /** Optional dialog name above the editable item title. */
28
28
  readonly name?: string;
29
- readonly description?: import('preact').ComponentChildren;
29
+ readonly description?: import('../_vendor/preact/src/index').ComponentChildren;
30
30
  readonly inputLabel: string;
31
31
  readonly titleHidden?: boolean;
32
32
  readonly headingClass?: string;
@@ -41,11 +41,11 @@ export interface EditableDialogHeaderProps extends Omit<JSX.IntrinsicElements['h
41
41
  readonly onClose?: () => void;
42
42
  }
43
43
  /** One owner for editable item names, dialog captions, close actions and spacing. */
44
- export declare const EditableDialogHeader: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<EditableDialogHeaderProps> & {
45
- ref?: import('preact').Ref<HTMLElement> | undefined;
44
+ export declare const EditableDialogHeader: import('../_vendor/preact/src/index').FunctionalComponent<import('../_vendor/preact/compat/src/index').PropsWithoutRef<EditableDialogHeaderProps> & {
45
+ ref?: import('../_vendor/preact/src/index').Ref<HTMLElement> | undefined;
46
46
  }>;
47
47
  export type DialogAction = Omit<JSX.IntrinsicElements['button'], 'children' | 'ref'> & {
48
- readonly label?: import('preact').ComponentChildren;
48
+ readonly label?: import('../_vendor/preact/src/index').ComponentChildren;
49
49
  [attribute: `data-${string}`]: unknown;
50
50
  };
51
51
  export type DialogActionFooterProps = JSX.IntrinsicElements['footer'] & {
@@ -54,9 +54,9 @@ export type DialogActionFooterProps = JSX.IntrinsicElements['footer'] & {
54
54
  readonly deleteAction?: DialogAction | false;
55
55
  readonly reset?: DialogAction | false;
56
56
  /** Custom actions on either side of the standard bottom panel. */
57
- readonly start?: import('preact').ComponentChildren;
58
- readonly end?: import('preact').ComponentChildren;
57
+ readonly start?: import('../_vendor/preact/src/index').ComponentChildren;
58
+ readonly end?: import('../_vendor/preact/src/index').ComponentChildren;
59
59
  readonly actionsClass?: string;
60
60
  };
61
61
  /** Default Cancel/Save, opt-in Delete/Reset; false hides any standard action. */
62
- export declare function DialogActionFooter(props: DialogActionFooterProps): import('preact').VNode<import('preact').Attributes>;
62
+ export declare function DialogActionFooter(props: DialogActionFooterProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes>;
@@ -1 +1 @@
1
- export { t as DialogActionFooter, n as DialogActions, r as DialogBody, i as DialogCloseButton, a as DialogFooter, o as DialogForm, s as DialogHeader, c as DialogTitleInput, l as EditableDialogHeader } from "../_chunks/dialog.parts-Dt3KinUz.js";
1
+ export { t as DialogActionFooter, n as DialogActions, r as DialogBody, i as DialogCloseButton, a as DialogFooter, o as DialogForm, s as DialogHeader, c as DialogTitleInput, l as EditableDialogHeader } from "../_chunks/dialog.parts-CKGkC5zP.js";
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'preact';
1
+ import { RefObject } from '../_vendor/preact/src/index';
2
2
  export interface UseDialogDragOptions<Target extends HTMLElement, Handle extends HTMLElement> {
3
3
  readonly targetRef: RefObject<Target>;
4
4
  readonly handleRef: RefObject<Handle>;