@revolist/ui 4.0.1-rc → 4.0.2-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/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- 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/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -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.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- 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 +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- 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/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 +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- 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 +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- 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 +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +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/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 +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- 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 +99 -98
- 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 +19 -19
- 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 +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- 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/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.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- 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/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- 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 +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- 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/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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../../../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { Input as t } from "../../../native-control.js";
|
|
3
3
|
//#region src/filter/filters/slider/single.tsx
|
|
4
|
-
function
|
|
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;
|
|
6
|
-
return /* @__PURE__ */ t
|
|
6
|
+
return /* @__PURE__ */ e(t, {
|
|
7
7
|
class: `rv-single-slider ${c}`.trim(),
|
|
8
8
|
id: s,
|
|
9
9
|
type: "range",
|
|
@@ -21,43 +21,43 @@ function r({ min: n, max: r, value: i, step: a = 1, disabled: o = !1, id: s, cla
|
|
|
21
21
|
onChange: (e) => p?.(Number(e.currentTarget.value), e)
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
class: `rv-slider-field rv-slider-field--${
|
|
28
|
-
style:
|
|
24
|
+
function r({ label: t, layout: r = "inline", valuePlacement: i = "end", formatValue: a = String, ticks: o, accentColor: s, ...c }) {
|
|
25
|
+
let l = a(c.value), u = c.max > c.min ? Math.max(0, Math.min(100, (c.value - c.min) / (c.max - c.min) * 100)) : 0, d = o && Number.isFinite(o) ? Math.max(2, Math.min(101, Math.floor(o))) : 0;
|
|
26
|
+
return /* @__PURE__ */ e("label", {
|
|
27
|
+
class: `rv-slider-field rv-slider-field--${r} rv-slider-field--${i}${c.disabled ? " is-disabled" : ""}`,
|
|
28
|
+
style: s ? { "--rv-slider-field-accent": s } : void 0,
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ e("span", {
|
|
31
31
|
class: "rv-slider-field__label",
|
|
32
|
-
children:
|
|
32
|
+
children: t
|
|
33
33
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ e("span", {
|
|
35
35
|
class: "rv-slider-field__track",
|
|
36
|
-
style: { "--rv-slider-field-position": `${
|
|
36
|
+
style: { "--rv-slider-field-position": `${u / 100}` },
|
|
37
37
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
...
|
|
40
|
-
ariaValueText:
|
|
38
|
+
/* @__PURE__ */ e(n, {
|
|
39
|
+
...c,
|
|
40
|
+
ariaValueText: c.ariaValueText ?? l
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
d > 0 && /* @__PURE__ */ e("span", {
|
|
43
43
|
class: "rv-slider-field__ticks",
|
|
44
44
|
"aria-hidden": "true",
|
|
45
|
-
children: Array.from({ length:
|
|
45
|
+
children: Array.from({ length: d }, (t, n) => /* @__PURE__ */ e("i", {}, n))
|
|
46
46
|
}),
|
|
47
|
-
|
|
47
|
+
i === "thumb" && /* @__PURE__ */ e("span", {
|
|
48
48
|
class: "rv-slider-field__thumb-value",
|
|
49
49
|
"aria-hidden": "true",
|
|
50
|
-
children:
|
|
50
|
+
children: l
|
|
51
51
|
})
|
|
52
52
|
]
|
|
53
53
|
}),
|
|
54
|
-
|
|
54
|
+
i === "end" && /* @__PURE__ */ e("span", {
|
|
55
55
|
class: "rv-slider-field__value rv-badge rv-badge--inline",
|
|
56
56
|
"aria-hidden": "true",
|
|
57
|
-
children:
|
|
57
|
+
children: l
|
|
58
58
|
})
|
|
59
59
|
]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
//#endregion
|
|
63
|
-
export {
|
|
63
|
+
export { n as SingleValueSlider, r as SliderField };
|
package/filter-badge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
2
2
|
import { FilterChipProps } from './form-controls/presentation';
|
|
3
3
|
/** Shared click-only details action; consumers provide localized labels. */
|
|
4
4
|
export declare function FilterBadgeInfoButton(props: Omit<JSX.IntrinsicElements['button'], 'children'>): h.JSX.Element;
|
package/filter-badge.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { a as t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { n as r, t as i } from "./_chunks/choice-chips-Cs4D-3nH.js";
|
|
4
5
|
//#region src/filter-badge.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
...
|
|
6
|
+
function a(e) {
|
|
7
|
+
return /* @__PURE__ */ n(r, {
|
|
8
|
+
...e,
|
|
8
9
|
type: "button",
|
|
9
|
-
class: `rv-filter-badge-info ${
|
|
10
|
+
class: `rv-filter-badge-info ${e.className ?? e.class ?? ""}`.trim()
|
|
10
11
|
});
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
return /* @__PURE__ */ i
|
|
15
|
-
...
|
|
13
|
+
function o({ label: r, details: o, detailsLabel: s, descriptionId: c, className: l = "", ...u }) {
|
|
14
|
+
let d = t(), f = c ?? `rv-filter-badge-${d}`;
|
|
15
|
+
return /* @__PURE__ */ n(i, {
|
|
16
|
+
...u,
|
|
16
17
|
selected: !0,
|
|
17
|
-
className: `rv-filter-badge ${
|
|
18
|
-
info:
|
|
19
|
-
"aria-label":
|
|
20
|
-
"aria-describedby":
|
|
21
|
-
"data-tooltip":
|
|
18
|
+
className: `rv-filter-badge ${l}`.trim(),
|
|
19
|
+
info: o ? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n(a, {
|
|
20
|
+
"aria-label": s,
|
|
21
|
+
"aria-describedby": f,
|
|
22
|
+
"data-tooltip": o,
|
|
22
23
|
"tooltip-position": "bottom"
|
|
23
|
-
}), /* @__PURE__ */
|
|
24
|
+
}), /* @__PURE__ */ n("span", {
|
|
24
25
|
class: "rv-filter-badge-description",
|
|
25
|
-
id:
|
|
26
|
-
children:
|
|
26
|
+
id: f,
|
|
27
|
+
children: o
|
|
27
28
|
})] }) : void 0,
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ n("span", {
|
|
29
30
|
class: "rv-filter-badge-label",
|
|
30
|
-
children:
|
|
31
|
+
children: r
|
|
31
32
|
})
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
+
export { o as FilterBadge, a as FilterBadgeInfoButton };
|
package/filter-controls.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
2
2
|
/** A selected action with a trailing, caller-formatted summary. */
|
|
3
3
|
export declare function OptionButton({ label, detail, selected, className, detailClassName, ...props }: Omit<JSX.IntrinsicElements['button'], 'className' | 'children'> & {
|
|
4
4
|
label: ComponentChildren;
|
package/filter-controls.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { ButtonControl as n, TextArea as r } from "./native-control.js";
|
|
4
|
+
import { Legend as i } from "./legend.js";
|
|
5
5
|
//#region src/filter-controls.tsx
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
...
|
|
9
|
-
class: `rv-option-button ${
|
|
10
|
-
"aria-pressed":
|
|
11
|
-
children: [/* @__PURE__ */
|
|
12
|
-
class: `rv-option-button__detail ${
|
|
13
|
-
children:
|
|
6
|
+
function a({ label: e, detail: r, selected: i, className: a = "", detailClassName: o = "", ...s }) {
|
|
7
|
+
return /* @__PURE__ */ t(n, {
|
|
8
|
+
...s,
|
|
9
|
+
class: `rv-option-button ${a}`,
|
|
10
|
+
"aria-pressed": i,
|
|
11
|
+
children: [/* @__PURE__ */ t("strong", { children: e }), /* @__PURE__ */ t("span", {
|
|
12
|
+
class: `rv-option-button__detail ${o}`,
|
|
13
|
+
children: r
|
|
14
14
|
})]
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
class: `rv-highlighted-input ${
|
|
21
|
-
"data-invalid":
|
|
22
|
-
children: [/* @__PURE__ */
|
|
23
|
-
class: `rv-highlighted-input__highlight ${
|
|
17
|
+
function o({ highlight: n, className: i = "", inputClassName: a = "", highlightClassName: o = "", ...s }) {
|
|
18
|
+
let c = e(null);
|
|
19
|
+
return /* @__PURE__ */ t("div", {
|
|
20
|
+
class: `rv-highlighted-input ${i}`,
|
|
21
|
+
"data-invalid": s["aria-invalid"] || void 0,
|
|
22
|
+
children: [/* @__PURE__ */ t("pre", {
|
|
23
|
+
class: `rv-highlighted-input__highlight ${o}`,
|
|
24
24
|
"aria-hidden": "true",
|
|
25
|
-
ref:
|
|
26
|
-
children:
|
|
27
|
-
}), /* @__PURE__ */
|
|
28
|
-
...
|
|
29
|
-
class: `rv-highlighted-input__input ${
|
|
30
|
-
spellcheck:
|
|
25
|
+
ref: c,
|
|
26
|
+
children: n
|
|
27
|
+
}), /* @__PURE__ */ t(r, {
|
|
28
|
+
...s,
|
|
29
|
+
class: `rv-highlighted-input__input ${a}`,
|
|
30
|
+
spellcheck: s.spellcheck ?? !1,
|
|
31
31
|
onScroll: (e) => {
|
|
32
|
-
|
|
32
|
+
c.current && (c.current.scrollTop = e.currentTarget.scrollTop, c.current.scrollLeft = e.currentTarget.scrollLeft), s.onScroll?.(e);
|
|
33
33
|
}
|
|
34
34
|
})]
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return /* @__PURE__ */
|
|
37
|
+
function s({ children: e, className: n = "", label: r }) {
|
|
38
|
+
return /* @__PURE__ */ t("div", {
|
|
39
39
|
role: "group",
|
|
40
|
-
"aria-label":
|
|
41
|
-
class: `rv-inline-field-group ${
|
|
40
|
+
"aria-label": r,
|
|
41
|
+
class: `rv-inline-field-group ${n}`,
|
|
42
42
|
children: e
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
|
-
export {
|
|
46
|
+
export { o as HighlightedTextInput, s as InlineFieldGroup, i as Legend, a as OptionButton };
|
package/form-controls/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { createPreactElement as t } from "../preact-mount.js";
|
|
3
|
+
import { Input as n, Select as r } from "../native-control.js";
|
|
4
4
|
//#region src/form-controls/index.view.tsx
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
class: ["rv-field",
|
|
5
|
+
function i(n, r) {
|
|
6
|
+
return t(n, /* @__PURE__ */ e("label", {
|
|
7
|
+
class: ["rv-field", r.className].filter(Boolean).join(" "),
|
|
8
8
|
children: [
|
|
9
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ e("span", {
|
|
10
10
|
class: "rv-field__label",
|
|
11
|
-
children:
|
|
11
|
+
children: r.label
|
|
12
12
|
}),
|
|
13
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ e("span", {
|
|
14
14
|
style: { display: "contents" },
|
|
15
15
|
ref: (e) => {
|
|
16
|
-
e && e.append(
|
|
16
|
+
e && e.append(r.control);
|
|
17
17
|
}
|
|
18
18
|
}),
|
|
19
|
-
|
|
19
|
+
r.hint && /* @__PURE__ */ e("span", {
|
|
20
20
|
class: "rv-field__hint",
|
|
21
|
-
children:
|
|
21
|
+
children: r.hint
|
|
22
22
|
})
|
|
23
23
|
]
|
|
24
24
|
}));
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function a(r, i) {
|
|
27
|
+
return t(r, /* @__PURE__ */ e(n, {
|
|
28
28
|
type: "text",
|
|
29
29
|
placeholder: i
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
34
|
-
value:
|
|
35
|
-
children:
|
|
36
|
-
},
|
|
32
|
+
function o(n, i) {
|
|
33
|
+
return t(n, /* @__PURE__ */ e(r, { children: i.map((t) => /* @__PURE__ */ e("option", {
|
|
34
|
+
value: t.value,
|
|
35
|
+
children: t.label
|
|
36
|
+
}, t.value)) }));
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
export {
|
|
39
|
+
export { i as createFormField, o as createSelectControl, a as createTextControl };
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { i as e, o as t, u as n } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { i as r } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
3
|
+
import { t as i } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { nativeControlTag as a } from "../control-presentation.js";
|
|
5
|
+
import { createControlId as o } from "../core/control-id.js";
|
|
6
6
|
//#region src/form-controls/presentation.tsx
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function s({ children: e, removeLabel: t, onRemove: n, className: r = "", removeClassName: a = "", role: o }) {
|
|
8
|
+
return /* @__PURE__ */ i("span", {
|
|
9
9
|
class: `rv-btn-pill ${r}`.trim(),
|
|
10
|
-
role:
|
|
11
|
-
children: [e, n && /* @__PURE__ */
|
|
10
|
+
role: o,
|
|
11
|
+
children: [e, n && /* @__PURE__ */ i("button", {
|
|
12
12
|
type: "button",
|
|
13
|
-
class: `rv-chip-remove ${
|
|
13
|
+
class: `rv-chip-remove ${a}`.trim(),
|
|
14
14
|
"aria-label": t,
|
|
15
15
|
onClick: n,
|
|
16
16
|
children: "×"
|
|
17
17
|
})]
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
let
|
|
20
|
+
function c({ label: e, children: t, hint: n, hintId: r, labelId: a = r ? `${r}-label` : void 0 }) {
|
|
21
|
+
let o = n != null && n !== !1;
|
|
22
22
|
return [
|
|
23
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ i("span", {
|
|
24
24
|
class: "rv-field__label",
|
|
25
|
-
id:
|
|
25
|
+
id: a,
|
|
26
26
|
children: e
|
|
27
27
|
}),
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
o && r ? u(t, r, a) : t,
|
|
29
|
+
o ? /* @__PURE__ */ i("span", {
|
|
30
30
|
class: "rv-field__hint",
|
|
31
31
|
id: r,
|
|
32
32
|
children: n
|
|
33
33
|
}) : null
|
|
34
34
|
];
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let [p] =
|
|
38
|
-
return /* @__PURE__ */
|
|
36
|
+
function l({ label: e, children: t, hint: n, hintId: a, labelId: s, controlId: l, className: u = "", class: d, ...f }) {
|
|
37
|
+
let [p] = r(() => o("rv-field"));
|
|
38
|
+
return /* @__PURE__ */ i("label", {
|
|
39
39
|
...f,
|
|
40
|
-
htmlFor:
|
|
40
|
+
htmlFor: l ?? f.htmlFor,
|
|
41
41
|
class: [
|
|
42
42
|
"rv-field",
|
|
43
43
|
u,
|
|
44
44
|
d
|
|
45
45
|
].filter(Boolean).join(" "),
|
|
46
|
-
children:
|
|
46
|
+
children: c({
|
|
47
47
|
label: e,
|
|
48
|
-
children:
|
|
49
|
-
hint:
|
|
48
|
+
children: t,
|
|
49
|
+
hint: n,
|
|
50
50
|
labelId: s,
|
|
51
|
-
hintId:
|
|
51
|
+
hintId: a ?? `rv-field-hint-${p}`
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (Array.isArray(
|
|
57
|
-
if (!
|
|
58
|
-
if (
|
|
59
|
-
let s =
|
|
60
|
-
if (!s) return
|
|
61
|
-
let c =
|
|
55
|
+
function u(r, i, o) {
|
|
56
|
+
if (Array.isArray(r)) return r.map((e) => u(e, i, o));
|
|
57
|
+
if (!n(r)) return r;
|
|
58
|
+
if (r.type === e) return t(r, { children: u(r.props.children, i, o) });
|
|
59
|
+
let s = a(r.type);
|
|
60
|
+
if (!s) return r;
|
|
61
|
+
let c = r;
|
|
62
62
|
if ([
|
|
63
63
|
"input",
|
|
64
64
|
"select",
|
|
65
65
|
"textarea"
|
|
66
66
|
].includes(s)) {
|
|
67
|
-
let e = new Set(`${c.props["aria-describedby"] ?? ""} ${
|
|
68
|
-
return
|
|
67
|
+
let e = new Set(`${c.props["aria-describedby"] ?? ""} ${i}`.trim().split(/\s+/));
|
|
68
|
+
return t(c, {
|
|
69
69
|
"aria-describedby": [...e].join(" "),
|
|
70
70
|
"aria-labelledby": c.props["aria-labelledby"] ?? (c.props["aria-label"] ? void 0 : o)
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return t(c, { children: u(c.props.children, i, o) });
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
let
|
|
75
|
+
function d({ children: e, icon: t, iconClassName: n = "", iconPosition: r = "before", className: a = "", class: o, ...s }) {
|
|
76
|
+
let c = t == null ? null : /* @__PURE__ */ i("span", {
|
|
77
77
|
class: ["rv-disclosure-summary__icon", n].filter(Boolean).join(" "),
|
|
78
78
|
"aria-hidden": "true",
|
|
79
79
|
children: t
|
|
80
80
|
});
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
...
|
|
81
|
+
return /* @__PURE__ */ i("summary", {
|
|
82
|
+
...s,
|
|
83
83
|
class: [
|
|
84
84
|
"rv-disclosure-summary",
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
a,
|
|
86
|
+
o
|
|
87
87
|
].filter(Boolean).join(" "),
|
|
88
88
|
children: [
|
|
89
|
-
r === "before" &&
|
|
90
|
-
/* @__PURE__ */
|
|
89
|
+
r === "before" && c,
|
|
90
|
+
/* @__PURE__ */ i("span", {
|
|
91
91
|
class: "rv-disclosure-summary__label",
|
|
92
92
|
children: e
|
|
93
93
|
}),
|
|
94
|
-
r === "after" &&
|
|
94
|
+
r === "after" && c
|
|
95
95
|
]
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
|
-
export {
|
|
99
|
+
export { d as DisclosureSummary, s as FilterChip, l as FormField, c as renderFormFieldContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren, JSX } from 'preact';
|
|
1
|
+
import { h, ComponentChildren, JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
/** Pure comparison presentation; the caller formats values and styles. */
|
|
3
3
|
export declare function ComparisonPreview({ originalValue, formatted, formattedStyle, visual, formattedClassName, labels, }: {
|
|
4
4
|
readonly originalValue: string;
|