@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.
- package/LICENSE +21 -0
- package/README.md +345 -262
- package/_chunks/calendar-xpZ0v3xf.js +258 -0
- package/_chunks/chart-frame-Cmc7xU1i.js +130 -0
- package/_chunks/choice-chips-CHQTUdLs.js +110 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-D8vyPfld.js} +41 -41
- package/_chunks/color-picker-CudqPYZo.js +138 -0
- package/_chunks/component-C_T2VN5u.js +863 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
- package/_chunks/control-AHKXD5Eu.js +93 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-uscKfAnV.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DsNi8V8I.js} +229 -214
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-DrVFX13g.js} +21 -21
- package/_chunks/date-time-qIhp5vaX.js +768 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CKGkC5zP.js +134 -0
- package/_chunks/duration-CL68Em0o.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-WDdtVDNA.js} +8 -8
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount--RTLIqE-.js +54 -0
- package/_chunks/history-controls-B3u3INEK.js +27 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DQ1cpppK.js +257 -0
- package/_chunks/native-control-C_yok8_-.js +605 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BKwA5FnM.js} +89 -89
- package/_chunks/picker-h1P5RUgp.js +122 -0
- package/_chunks/popup-CT2uD3go.js +367 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-DZgmaic0.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-CSlqAGHw.js +59 -0
- package/_chunks/request-trail-DSlFix6i.js +618 -0
- package/_chunks/rich-text-CH7gIqOS.js +636 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_form.scss +1 -1
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/_chat.scss +195 -0
- package/ai/_style.scss +105 -34
- package/ai/chat.d.ts +63 -0
- package/ai/components.d.ts +20 -4
- package/ai/index.d.ts +2 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -1
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +1 -1
- package/ai/transcript.d.ts +25 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.js +0 -3
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +2 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/_calendar.scss +7 -2
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +34 -23
- package/control-attributes.js +7 -7
- package/control-presentation.js +18 -18
- package/controls.d.ts +12 -10
- package/controls.js +3 -3
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/style.scss +4 -4
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/dropdown.types.d.ts +4 -0
- package/dropdown/editor-dropdown.style.scss +37 -9
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +30 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.js +16 -21
- package/form-controls/index.view.d.ts +2 -4
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +59 -51
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +105 -100
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +215 -207
- package/history-controls.d.ts +14 -0
- package/history-controls.js +1 -0
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +14 -12
- package/native-control.js +3 -26
- package/native-styles.css +1 -1
- package/native.js +40 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +18 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +43 -33
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +3 -4
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +2 -0
- package/preact.js +62 -62
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react-control.d.ts +0 -1
- package/react-control.js +2 -2
- package/react.d.ts +13 -3
- package/react.js +71 -88
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/resource-picker/resource-picker.scss +6 -3
- package/rich-text/engine.d.ts +16 -19
- package/rich-text/index.d.ts +7 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +4 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +3 -12
- package/rich-text/toolbar.d.ts +7 -7
- package/rich-text/translations.d.ts +3 -15
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/select.d.ts +20 -0
- package/select.js +1 -0
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +10 -10
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +7 -0
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_compositions.scss +3 -1
- package/styles/_control.scss +12 -4
- package/styles/_primitives.scss +9 -8
- package/styles.css +1 -1
- package/surfaces.js +49 -49
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +0 -21
- package/svelte.js +33 -68
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +138 -119
- package/vue.js +150 -174
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/dropdown-CkGQBm1Q.js +0 -357
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
- package/_chunks/rich-text-2Rla349o.js +0 -477
- package/react-native-select.d.ts +0 -6
- package/rich-text/syntax.d.ts +0 -2
- package/vue-native-select.d.ts +0 -9
package/component-catalog.d.ts
CHANGED
|
@@ -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 {
|
|
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" | "
|
|
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
|
|
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]>;
|
package/control-attributes.js
CHANGED
|
@@ -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,
|
|
9
|
-
if (
|
|
10
|
-
for (let e of Object.keys(
|
|
11
|
-
|
|
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
|
|
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
|
-
...
|
|
19
|
-
class: e(
|
|
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
|
package/control-presentation.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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,
|
|
7
|
-
let a =
|
|
8
|
-
if (
|
|
9
|
-
let
|
|
10
|
-
return e(
|
|
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
|
-
}), ...
|
|
13
|
+
}), ...n);
|
|
14
14
|
}
|
|
15
|
-
return e(
|
|
15
|
+
return e(t, r(t, a), ...i);
|
|
16
16
|
}
|
|
17
|
-
function o(t,
|
|
18
|
-
let o = a(
|
|
19
|
-
return i.onChange && !(
|
|
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(
|
|
29
|
-
|
|
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:
|
|
32
|
+
children: r
|
|
33
33
|
})));
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
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
|
|
2
|
-
import { EditorList as
|
|
3
|
-
export {
|
|
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 };
|
package/core/editor-commit.d.ts
CHANGED
|
@@ -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;
|
package/core/editor-popup.d.ts
CHANGED
package/core/editor-popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as mountEditorPopup } from "../_chunks/editor-popup-
|
|
1
|
+
export { t as mountEditorPopup } from "../_chunks/editor-popup-WDdtVDNA.js";
|
package/date-time/field.d.ts
CHANGED
|
@@ -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;
|
package/date-time/index.js
CHANGED
|
@@ -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-
|
|
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";
|
package/date-time/picker.d.ts
CHANGED
|
@@ -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;
|
package/date-time/style.scss
CHANGED
|
@@ -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:
|
|
61
|
-
min-height: 32px;
|
|
62
|
-
padding: 6px
|
|
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:
|
|
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)); }
|
|
@@ -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;
|
package/date-time/types.d.ts
CHANGED
|
@@ -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';
|
package/dialog/dialog.dom.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
let
|
|
6
|
+
function c(t, c, l) {
|
|
7
|
+
let u = f(), d, p, m, h, g;
|
|
8
8
|
return {
|
|
9
|
-
root:
|
|
10
|
-
class: ["rv-dialog-overlay",
|
|
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":
|
|
14
|
-
"aria-describedby":
|
|
13
|
+
"aria-labelledby": u,
|
|
14
|
+
"aria-describedby": c.ariaDescribedBy,
|
|
15
15
|
tabIndex: -1,
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ e("section", {
|
|
17
17
|
ref: (e) => {
|
|
18
|
-
|
|
18
|
+
d = e;
|
|
19
19
|
},
|
|
20
|
-
class: ["rv-dialog__surface",
|
|
20
|
+
class: ["rv-dialog__surface", c.surfaceClass].filter(Boolean).join(" "),
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ e(s, {
|
|
23
23
|
ref: (e) => {
|
|
24
|
-
|
|
24
|
+
p = e;
|
|
25
25
|
},
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ e("div", {
|
|
27
27
|
class: "rv-dialog__heading",
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
id:
|
|
28
|
+
children: /* @__PURE__ */ e("h3", {
|
|
29
|
+
id: u,
|
|
30
30
|
class: "rv-dialog__title",
|
|
31
|
-
children:
|
|
31
|
+
children: c.title
|
|
32
32
|
})
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
-
"aria-label":
|
|
35
|
-
title:
|
|
36
|
-
onClick:
|
|
33
|
+
}), /* @__PURE__ */ e(i, {
|
|
34
|
+
"aria-label": c.closeLabel,
|
|
35
|
+
title: c.closeLabel,
|
|
36
|
+
onClick: l
|
|
37
37
|
})]
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
/* @__PURE__ */ e(o, { ref: (e) => {
|
|
40
|
+
m = e;
|
|
41
41
|
} }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(r, {
|
|
43
43
|
ref: (e) => {
|
|
44
|
-
|
|
44
|
+
h = e;
|
|
45
45
|
},
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
children: /* @__PURE__ */ e(a, { ref: (e) => {
|
|
47
|
+
g = e;
|
|
48
48
|
} })
|
|
49
49
|
})
|
|
50
50
|
]
|
|
51
51
|
})
|
|
52
52
|
})),
|
|
53
|
-
surface:
|
|
54
|
-
header:
|
|
55
|
-
body:
|
|
56
|
-
footer:
|
|
57
|
-
actions:
|
|
53
|
+
surface: d,
|
|
54
|
+
header: p,
|
|
55
|
+
body: m,
|
|
56
|
+
footer: h,
|
|
57
|
+
actions: g
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
"aria-label":
|
|
63
|
-
title:
|
|
64
|
-
onClick:
|
|
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
|
|
68
|
-
return
|
|
69
|
-
title:
|
|
70
|
-
class:
|
|
71
|
-
onClick:
|
|
72
|
-
children:
|
|
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
|
|
76
|
-
function
|
|
77
|
-
return
|
|
75
|
+
var d = 0;
|
|
76
|
+
function f() {
|
|
77
|
+
return d += 1, `rv-dialog-title-${d}`;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
let n =
|
|
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
|
|
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 {
|
|
92
|
+
export { u as createDialogButton, l as createDialogCloseButton, c as createDialogElements, m as getDialogFocusableElements, p as trapDialogFocus };
|
package/dialog/dialog.parts.d.ts
CHANGED
|
@@ -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>;
|
package/dialog/dialog.parts.js
CHANGED
|
@@ -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-
|
|
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>;
|