@revolist/ui 4.0.5-rc → 4.0.6-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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +10 -10
- package/README.md +6 -4
- package/_chunks/{calendar-DsXIhybL.js → calendar-QWDyYzdo.js} +1 -1
- package/_chunks/{chart-frame-CuZABXVI.js → chart-frame-hcOlnQ1K.js} +13 -9
- package/_chunks/{choice-chips-BhP8MZjs.js → choice-chips-A6WR-WJe.js} +1 -1
- package/_chunks/{color-picker-B4TQvxxB.js → color-picker-BK4W1nd6.js} +1 -1
- package/_chunks/{component-qKctqdzk.js → component-CMkF17YZ.js} +5 -5
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-BKd7U8OW.js} +0 -8
- package/_chunks/{configurator-actions-C19O1rda.js → configurator-actions-By8WSL2m.js} +3 -3
- package/_chunks/{control-BkWukVt9.js → control-mlH7l0Uq.js} +30 -5
- package/_chunks/{controls-BLQnWEd7.js → controls-FUU-MUKC.js} +26 -33
- package/_chunks/{date-control-Cgw5PwlZ.js → date-control-Dup_P3w5.js} +1 -1
- package/_chunks/{date-time-B8rK5gpC.js → date-time-9z6pAG5T.js} +304 -281
- package/_chunks/dialog.parts-Bi7YbXqS.js +131 -0
- package/_chunks/{duration-DwFXonEV.js → duration-D7oRjsmP.js} +5 -2
- package/_chunks/{editor-popup-BaaxL89T.js → editor-popup-ByU7qiub.js} +8 -7
- package/_chunks/{field-configurator-1eQP0tKy.js → field-configurator-BCINdXpU.js} +1 -1
- package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/{icon-toolbar-xbqa0hu9.js → icon-toolbar-DSjOdwM7.js} +39 -33
- package/_chunks/mount-Cw2zk58T.js +266 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/{native-control-DO0d1kgx.js → native-control-pFMuHf3G.js} +106 -98
- package/_chunks/{number-input-s9ddPwX6.js → number-input-DqXV6vgP.js} +2 -2
- package/_chunks/{picker-AY05b41W.js → picker-gEGTu1Ki.js} +2 -2
- package/_chunks/{popup-UXGCiv3n.js → popup-C35Isk7p.js} +19 -8
- package/_chunks/{rating-choice-BEs_QFZC.js → rating-choice-DbxdUJr-.js} +1 -1
- package/_chunks/{reorder-list-A49l172e.js → reorder-list-B0_13Sja.js} +1 -1
- package/_chunks/{request-trail-DCOfa5zw.js → request-trail-CCSK6TJA.js} +2 -2
- package/_chunks/{rich-text-xfMWadGi.js → rich-text-5rnc8lpI.js} +3 -3
- package/_variables.scss +33 -32
- package/ai/index.js +2 -2
- package/ai/results/_style.scss +3 -0
- package/assignee/assignee.scss +5 -1
- package/assignee/index.js +2 -2
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +1 -1
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +8 -9
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.js +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/checkbox/checkbox.scss +1 -22
- package/choice-chips/index.js +1 -1
- package/color-palette/color-picker.js +1 -1
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +3 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.js +1 -1
- package/configurator-drop-zone.d.ts +1 -1
- package/configurator-drop-zone.js +1 -1
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +1 -1
- package/controls.js +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/date-time/attach.d.ts +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +16 -2
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +14 -0
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/editor-dropdown.style.scss +5 -0
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +1 -1
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/field-configurator.d.ts +8 -0
- package/field-configurator.js +1 -1
- package/filter/filters/slider/_slider.scss +8 -8
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +5 -6
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +3 -3
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +1 -1
- package/framework.js +202 -205
- package/icon-toolbar.d.ts +5 -1
- package/icon-toolbar.js +1 -1
- package/masked-input/index.js +1 -1
- package/native-control.js +1 -1
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native.js +29 -29
- package/number-input/index.js +1 -1
- package/package.json +1 -1
- package/pagination.js +11 -11
- package/pdf-viewer/index.js +1 -1
- package/preact.d.ts +1 -6
- package/preact.js +60 -60
- package/rating-choice.js +1 -1
- package/react-control.d.ts +2 -0
- package/react-control.js +2 -2
- package/react.d.ts +0 -6
- package/react.js +54 -54
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/rich-text/index.js +1 -1
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- package/select.js +1 -1
- package/styles/_alert.scss +18 -4
- package/styles/_editor-slider.scss +0 -2
- package/styles/_field-configurator.scss +2 -1
- package/styles/_fields-grid.scss +2 -0
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +3 -1
- package/styles.css +1 -1
- package/styles.scss +2 -2
- package/surfaces.d.ts +34 -3
- package/surfaces.js +2 -2
- package/svelte.js +3 -3
- package/switch/index.js +1 -1
- package/time-grid.d.ts +0 -1
- package/time-grid.js +4 -4
- package/timeline-track/index.js +1 -1
- package/ui.css +1 -1
- package/vue.d.ts +2 -21
- package/vue.js +83 -89
- package/_chunks/dialog.parts-BSbvnEwX.js +0 -134
- package/_chunks/mount-D1i5DLRn.js +0 -266
- package/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -2
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/surfaces.view.d.ts +0 -33
- /package/styles/{legacy-pagination.css → pagination.css} +0 -0
- /package/styles/{legacy-rating.css → rating.css} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "../_chunks/chart-frame-
|
|
2
|
+
import { i as t, n, r, t as i } from "../_chunks/chart-frame-hcOlnQ1K.js";
|
|
3
3
|
//#region src/distribution-chart/line-chart.tsx
|
|
4
4
|
function a(a) {
|
|
5
5
|
let { points: o } = r(a.data);
|
package/dropdown/content.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as DropdownContent, p as DropdownPopupContent } from "../_chunks/native-control-
|
|
1
|
+
export { f as DropdownContent, p as DropdownPopupContent } from "../_chunks/native-control-pFMuHf3G.js";
|
package/dropdown/control.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createDropdownControl, n as renderDropdownControl } from "../_chunks/control-
|
|
1
|
+
export { t as createDropdownControl, n as renderDropdownControl } from "../_chunks/control-mlH7l0Uq.js";
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
revo-grid,
|
|
18
18
|
.rv-formula-bar,
|
|
19
|
+
.rv-native-controls,
|
|
19
20
|
:root {
|
|
20
21
|
--rv-dropdown-container-tag-background: #{palette.$gray-eeeeee};
|
|
21
22
|
--rv-dropdown-placeholder-color: var(--rv-ui-text-muted);
|
|
@@ -150,6 +151,10 @@ revo-grid,
|
|
|
150
151
|
padding-inline-end: 0;
|
|
151
152
|
font-size: 14px;
|
|
152
153
|
|
|
154
|
+
// Custom tag palettes also own the remove glyph's foreground.
|
|
155
|
+
> button.rv-remove-button {
|
|
156
|
+
color: inherit;
|
|
157
|
+
}
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
.placeholder {
|
package/dropdown/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as e, l as t, p as n, u as r } from "../_chunks/native-control-
|
|
2
|
-
import { t as i } from "../_chunks/popup-
|
|
1
|
+
import { d as e, l as t, p as n, u as r } from "../_chunks/native-control-pFMuHf3G.js";
|
|
2
|
+
import { t as i } from "../_chunks/popup-C35Isk7p.js";
|
|
3
3
|
export { t as Dropdown, i as DropdownPopup, n as DropdownPopupContent, r as defineDropdown, e as destroyDropdown };
|
|
@@ -21,9 +21,14 @@ export interface LookupFieldOptions extends EditorCommitOptions {
|
|
|
21
21
|
renderValue?: import('./dropdown.types').DropdownProps<LookupId>['renderValue'];
|
|
22
22
|
}
|
|
23
23
|
export declare function LookupField({ initial, options, context, apply, cancel, }: {
|
|
24
|
+
/** Initial selected record ID, multiple IDs, or null for an empty selection. */
|
|
24
25
|
initial: LookupId | LookupId[] | null;
|
|
26
|
+
/** Remote data source, selection mode, validation, text and commit behavior. */
|
|
25
27
|
options: LookupFieldOptions;
|
|
28
|
+
/** Application context forwarded to the remote data source as dataContext. */
|
|
26
29
|
context: unknown;
|
|
30
|
+
/** Commits the selected record IDs. Update application state and close the editor. */
|
|
27
31
|
apply: (value: LookupId | LookupId[] | null) => void;
|
|
32
|
+
/** Closes the editor without applying the current draft. */
|
|
28
33
|
cancel: () => void;
|
|
29
34
|
}): import("../_vendor/preact/src/index").JSX.Element;
|
package/dropdown/lookup-field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { l as r } from "../_chunks/native-control-
|
|
3
|
+
import { l as r } from "../_chunks/native-control-pFMuHf3G.js";
|
|
4
4
|
import { n as i } from "../_chunks/editor-commit-Bq3wSgvr.js";
|
|
5
5
|
import { EditorActions as a } from "../editor-actions.js";
|
|
6
6
|
//#region src/dropdown/lookup-field.tsx
|
package/dropdown/popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DropdownPopup } from "../_chunks/popup-
|
|
1
|
+
export { t as DropdownPopup } from "../_chunks/popup-C35Isk7p.js";
|
package/duration/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DurationDraft, n as DurationField } from "../_chunks/duration-
|
|
1
|
+
export { t as DurationDraft, n as DurationField } from "../_chunks/duration-D7oRjsmP.js";
|
package/editor-actions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "./_chunks/controls-
|
|
3
|
+
import { t as n } from "./_chunks/controls-FUU-MUKC.js";
|
|
4
4
|
//#region src/editor-actions.tsx
|
|
5
5
|
var r = {
|
|
6
6
|
apply: "Apply",
|
package/field-configurator.d.ts
CHANGED
|
@@ -74,13 +74,21 @@ export declare function FieldDropIndicator({ position, index, className, }: {
|
|
|
74
74
|
className?: string;
|
|
75
75
|
}): h.JSX.Element;
|
|
76
76
|
export interface CollapsibleSectionProps {
|
|
77
|
+
/** Heading displayed in the keyboard-accessible expand/collapse trigger. */
|
|
77
78
|
title: ComponentChildren;
|
|
79
|
+
/** Supporting text displayed above the expanded content. */
|
|
78
80
|
description?: ComponentChildren;
|
|
81
|
+
/** Expand initially. Later toggles are owned by the native disclosure. */
|
|
79
82
|
defaultOpen?: boolean;
|
|
83
|
+
/** Section content; stays mounted when collapsed to preserve drafts. */
|
|
80
84
|
children: ComponentChildren;
|
|
85
|
+
/** Additional CSS classes on the outer disclosure. */
|
|
81
86
|
className?: string;
|
|
87
|
+
/** Additional CSS classes on the summary trigger. */
|
|
82
88
|
summaryClassName?: string;
|
|
89
|
+
/** Additional CSS classes on the content container. */
|
|
83
90
|
contentClassName?: string;
|
|
91
|
+
/** Additional CSS classes on the supporting description. */
|
|
84
92
|
descriptionClassName?: string;
|
|
85
93
|
/** Host policies can wrap the native details without owning its presentation. */
|
|
86
94
|
renderRoot?: (props: JSX.IntrinsicElements['details']) => ComponentChildren;
|
package/field-configurator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./_chunks/field-configurator-
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./_chunks/field-configurator-BCINdXpU.js";
|
|
2
2
|
import { fieldDropIndex as x, reorderFields as S } from "./field-reorder.js";
|
|
3
3
|
import { useFieldDropTarget as C, useFieldReorder as w } from "./field-reorder.hook.js";
|
|
4
4
|
export { g as CollapsibleSection, d as ConfiguratorPanel, m as FieldActions, c as FieldContent, t as FieldDropIndicator, f as FieldGroup, h as FieldGroupHeading, r as FieldIcon, l as FieldItem, _ as FieldLibrary, i as FieldLibraryList, a as FieldList, p as FieldRemoveButton, u as FieldRemoveIcon, s as FieldRow, o as FieldStatusBadge, e as FieldSummary, v as SelectedField, b as createFieldExpansion, x as fieldDropIndex, n as fieldExpansionIds, y as recordFieldExpansion, S as reorderFields, C as useFieldDropTarget, w as useFieldReorder };
|
|
@@ -68,15 +68,14 @@
|
|
|
68
68
|
z-index: 1;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
$size: 24px;
|
|
72
|
-
|
|
73
71
|
&::-webkit-slider-thumb {
|
|
74
72
|
-webkit-appearance: none;
|
|
75
73
|
pointer-events: all;
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
width: var(--slider-thumb-size, 20px);
|
|
76
|
+
height: var(--slider-thumb-size, 20px);
|
|
78
77
|
background-color: var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface));
|
|
79
|
-
border: 3px solid var(--range-color, var(--rv-ui-accent));
|
|
78
|
+
border: var(--slider-thumb-border-width, 3px) solid var(--range-color, var(--rv-ui-accent));
|
|
80
79
|
border-radius: 50%;
|
|
81
80
|
box-shadow: 0 1px 3px var(--rv-ui-shadow);
|
|
82
81
|
transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1));
|
|
@@ -96,10 +95,11 @@
|
|
|
96
95
|
&::-moz-range-thumb {
|
|
97
96
|
-webkit-appearance: none;
|
|
98
97
|
pointer-events: all;
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
width: var(--slider-thumb-size, 20px);
|
|
100
|
+
height: var(--slider-thumb-size, 20px);
|
|
101
101
|
background-color: var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface));
|
|
102
|
-
border: 3px solid var(--range-color, var(--rv-ui-accent));
|
|
102
|
+
border: var(--slider-thumb-border-width, 3px) solid var(--range-color, var(--rv-ui-accent));
|
|
103
103
|
border-radius: 50%;
|
|
104
104
|
box-shadow: 0 1px 3px var(--rv-ui-shadow);
|
|
105
105
|
transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "../../../_chunks/native-control-
|
|
2
|
+
import { n as t } from "../../../_chunks/native-control-pFMuHf3G.js";
|
|
3
3
|
//#region src/filter/filters/slider/single.tsx
|
|
4
4
|
function n({ min: n, max: r, value: i, step: a = 1, disabled: o = !1, id: s, className: c = "", ariaLabel: l, ariaValueText: u, ariaDescribedBy: d, onChange: f, onCommit: p, onKeyDown: m }) {
|
|
5
5
|
let h = r - n, g = h > 0 ? Math.max(0, Math.min(100, (i - n) / h * 100)) : 0;
|
package/filter-badge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { a as t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { n as r, t as i } from "./_chunks/choice-chips-
|
|
4
|
+
import { n as r, t as i } from "./_chunks/choice-chips-A6WR-WJe.js";
|
|
5
5
|
//#region src/filter-badge.tsx
|
|
6
6
|
function a(e) {
|
|
7
7
|
return /* @__PURE__ */ n(r, {
|
package/filter-controls.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare function OptionButton({ label, detail, selected, className, detai
|
|
|
7
7
|
className?: string;
|
|
8
8
|
detailClassName?: string;
|
|
9
9
|
}): h.JSX.Element;
|
|
10
|
-
export { Legend, type LegendItem } from './legend';
|
|
11
10
|
/** Caller supplies highlighting; UI owns overlay geometry and scroll synchronization. */
|
|
12
11
|
export declare function HighlightedTextInput({ highlight, className, inputClassName, highlightClassName, ...props }: Omit<JSX.IntrinsicElements['textarea'], 'className'> & {
|
|
13
12
|
highlight: ComponentChildren;
|
package/filter-controls.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { a as n, t as r } from "./_chunks/native-control-
|
|
4
|
-
import { Legend as i } from "./legend.js";
|
|
3
|
+
import { a as n, t as r } from "./_chunks/native-control-pFMuHf3G.js";
|
|
5
4
|
//#region src/filter-controls.tsx
|
|
6
|
-
function
|
|
5
|
+
function i({ label: e, detail: n, selected: i, className: a = "", detailClassName: o = "", ...s }) {
|
|
7
6
|
return /* @__PURE__ */ t(r, {
|
|
8
7
|
...s,
|
|
9
8
|
class: `rv-option-button ${a}`,
|
|
@@ -14,7 +13,7 @@ function a({ label: e, detail: n, selected: i, className: a = "", detailClassNam
|
|
|
14
13
|
})]
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
function
|
|
16
|
+
function a({ highlight: r, className: i = "", inputClassName: a = "", highlightClassName: o = "", ...s }) {
|
|
18
17
|
let c = e(null);
|
|
19
18
|
return /* @__PURE__ */ t("div", {
|
|
20
19
|
class: `rv-highlighted-input ${i}`,
|
|
@@ -34,7 +33,7 @@ function o({ highlight: r, className: i = "", inputClassName: a = "", highlightC
|
|
|
34
33
|
})]
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
|
-
function
|
|
36
|
+
function o({ children: e, className: n = "", label: r }) {
|
|
38
37
|
return /* @__PURE__ */ t("div", {
|
|
39
38
|
role: "group",
|
|
40
39
|
"aria-label": r,
|
|
@@ -43,4 +42,4 @@ function s({ children: e, className: n = "", label: r }) {
|
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
//#endregion
|
|
46
|
-
export {
|
|
45
|
+
export { a as HighlightedTextInput, o as InlineFieldGroup, i as OptionButton };
|
package/form-controls/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface FormFieldOptions {
|
|
2
|
+
readonly label: string;
|
|
3
|
+
readonly control: HTMLElement;
|
|
4
|
+
readonly hint?: string;
|
|
5
|
+
readonly className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createFormField(document: Document, options: FormFieldOptions): HTMLLabelElement;
|
|
8
|
+
export declare function createTextControl(document: Document, placeholder: string): HTMLInputElement;
|
|
9
|
+
/** DOM counterpart of Dropdown; callers own its lifetime. */
|
|
10
|
+
export { createDropdownControl } from '../dropdown/control';
|
package/form-controls/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { createPreactElement as t } from "../preact-mount.js";
|
|
3
|
-
import { n } from "../_chunks/native-control-
|
|
4
|
-
import { t as r } from "../_chunks/control-
|
|
5
|
-
//#region src/form-controls/index.
|
|
3
|
+
import { n } from "../_chunks/native-control-pFMuHf3G.js";
|
|
4
|
+
import { t as r } from "../_chunks/control-mlH7l0Uq.js";
|
|
5
|
+
//#region src/form-controls/index.tsx
|
|
6
6
|
function i(n, r) {
|
|
7
7
|
return t(n, /* @__PURE__ */ e("label", {
|
|
8
8
|
class: ["rv-field", r.className].filter(Boolean).join(" "),
|
package/formatting/index.d.ts
CHANGED
package/formatting/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { i as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { i as t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { SvgIcon as r } from "../icons/icon.js";
|
|
5
|
-
import { i, l as a, n as o, t as s } from "../_chunks/native-control-
|
|
5
|
+
import { i, l as a, n as o, t as s } from "../_chunks/native-control-pFMuHf3G.js";
|
|
6
6
|
import { t as c } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
7
7
|
import { n as l, r as u, t as d } from "../_chunks/tooltip-D4xkio5G.js";
|
|
8
8
|
import { t as f } from "../_chunks/tooltip-text-BXsUEmBH.js";
|