@revolist/ui 4.0.4-rc → 4.0.5-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/OWNERSHIP.md +1 -1
- package/README.md +16 -0
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/badge.view-D30pMUfi.js +14 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-DsXIhybL.js} +19 -19
- package/_chunks/chart-frame-CuZABXVI.js +141 -0
- package/_chunks/check-BwI7iCAm.js +4 -0
- package/_chunks/choice-chips-BhP8MZjs.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-B4TQvxxB.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-qKctqdzk.js} +281 -265
- package/_chunks/configurator-actions-C19O1rda.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-BkWukVt9.js} +13 -13
- package/_chunks/{controls-DsNi8V8I.js → controls-BLQnWEd7.js} +147 -155
- package/_chunks/{date-control-DrVFX13g.js → date-control-Cgw5PwlZ.js} +1 -1
- package/_chunks/date-time-B8rK5gpC.js +784 -0
- package/_chunks/{dialog.parts-CKGkC5zP.js → dialog.parts-BSbvnEwX.js} +21 -21
- package/_chunks/{duration-CL68Em0o.js → duration-DwFXonEV.js} +1 -4
- package/_chunks/editor-popup-BaaxL89T.js +81 -0
- package/_chunks/field-configurator-1eQP0tKy.js +223 -0
- package/_chunks/icon-toolbar-xbqa0hu9.js +128 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-D1i5DLRn.js +266 -0
- package/_chunks/native-control-DO0d1kgx.js +636 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-s9ddPwX6.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.js → picker-AY05b41W.js} +2 -2
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/{popup-CT2uD3go.js → popup-UXGCiv3n.js} +97 -97
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-BEs_QFZC.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-A49l172e.js} +1 -1
- package/_chunks/request-trail-DCOfa5zw.js +753 -0
- package/_chunks/rich-text-xfMWadGi.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/ai/_chat.scss +28 -3
- package/ai/_style.scss +55 -2
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +13 -2
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +17 -1
- package/ai/results/_style.scss +80 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +2 -0
- package/ai/translations.d.ts +1 -1
- package/assignee/index.js +2 -2
- package/avatar/index.js +32 -31
- package/badge.view.d.ts +8 -0
- package/brush-range/component.js +28 -27
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +16 -16
- package/calendar/_calendar.scss +2 -2
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +6 -1
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +61 -0
- package/configurator-drop-zone.d.ts +38 -0
- package/configurator-drop-zone.js +64 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-presentation.js +24 -19
- package/controls.d.ts +1 -2
- package/controls.js +4 -3
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/index.js +1 -1
- package/date-time/style.scss +50 -7
- package/date-time/time-selection.d.ts +3 -1
- package/dialog/dialog.dom.js +8 -8
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +1 -57
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/field-configurator.d.ts +19 -0
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/filter/filters/slider/_slider.scss +0 -17
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.js +1 -1
- package/form-controls/index.js +6 -6
- package/form-controls/presentation.js +12 -12
- package/formatting/control-tooltip.d.ts +2 -27
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +2 -47
- package/framework.js +215 -208
- package/history-controls.js +27 -1
- package/icon-toolbar.d.ts +58 -0
- package/icon-toolbar.js +1 -0
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +1 -2
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native.js +45 -42
- package/number-input/index.js +1 -1
- package/package.json +36 -1
- package/pagination.js +1 -1
- package/pdf-viewer/index.js +1 -1
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +7 -0
- package/preact.js +68 -61
- package/rating-choice.js +1 -1
- package/react.d.ts +5 -0
- package/react.js +67 -65
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +4 -4
- package/rich-text/engine.d.ts +1 -0
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +4 -0
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +2 -0
- package/rich-text/style.scss +165 -70
- package/rich-text/syntax.d.ts +5 -0
- package/rich-text/translations.d.ts +2 -0
- package/select.d.ts +3 -1
- package/select.js +1 -1
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/popover.js +4 -4
- package/styles/_compositions.scss +3 -3
- package/styles/_field-configurator.scss +146 -0
- package/styles/_fields-grid.scss +35 -0
- package/styles/_primitives.scss +25 -18
- package/styles/configurator-actions.scss +141 -0
- package/styles/legacy-pagination.css +19 -2
- package/styles.css +1 -1
- package/surfaces.d.ts +3 -0
- package/surfaces.js +34 -131
- package/surfaces.view.d.ts +4 -34
- package/svelte.js +1 -1
- package/switch/index.js +15 -14
- package/time-grid.js +37 -36
- package/timeline-track/index.js +2 -2
- package/ui.css +1 -1
- package/vue.d.ts +24 -9
- package/vue.js +118 -116
- package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
- package/_chunks/choice-chips-CHQTUdLs.js +0 -110
- package/_chunks/color-picker-CudqPYZo.js +0 -138
- package/_chunks/control-tooltip-uscKfAnV.js +0 -100
- package/_chunks/date-time-qIhp5vaX.js +0 -768
- package/_chunks/editor-popup-WDdtVDNA.js +0 -81
- package/_chunks/history-controls-B3u3INEK.js +0 -27
- package/_chunks/mount-DQ1cpppK.js +0 -257
- package/_chunks/native-control-C_yok8_-.js +0 -605
- package/_chunks/request-trail-DSlFix6i.js +0 -618
- package/_chunks/rich-text-CH7gIqOS.js +0 -636
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as e, i as t } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as _ } from "./chevron-
|
|
13
|
-
import {
|
|
3
|
+
import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { createPreactElement as o } from "../preact-mount.js";
|
|
5
|
+
import { createControlId as s } from "../core/control-id.js";
|
|
6
|
+
import { t as c } from "./title-tooltip-Cw6LOZhb.js";
|
|
7
|
+
import { n as l } from "./rating-choice-BEs_QFZC.js";
|
|
8
|
+
import { a as u, n as d, t as f } from "./native-control-DO0d1kgx.js";
|
|
9
|
+
import { r as p } from "./popup-UXGCiv3n.js";
|
|
10
|
+
import { registerControl as m, renderControl as h } from "../control-presentation.js";
|
|
11
|
+
import { paginationItems as ee, renderPaginationButton as g } from "../pagination.js";
|
|
12
|
+
import { t as _ } from "./chevron-left-D0nc4Z5S.js";
|
|
13
|
+
import { t as v } from "./chevron-right-sxHQMSkq.js";
|
|
14
14
|
import { SvgButton as y } from "../buttons/svg-button.js";
|
|
15
15
|
import { SegmentedSwitch as b } from "../segmented-switch/index.js";
|
|
16
16
|
import { attachMenuKeyboard as x, attachResizeHandle as te } from "../surfaces.js";
|
|
@@ -19,8 +19,8 @@ import { normalizeProgressRange as S } from "../progress/range.js";
|
|
|
19
19
|
//#region src/icons/pagination.ts
|
|
20
20
|
var C = {
|
|
21
21
|
first: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L269.3 256 406.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z\"/></svg>",
|
|
22
|
-
previous:
|
|
23
|
-
next:
|
|
22
|
+
previous: _,
|
|
23
|
+
next: v,
|
|
24
24
|
last: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M439.1 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L371.2 256 233.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L179.2 256 41.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z\"/></svg>"
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
@@ -36,8 +36,8 @@ function w(e, t) {
|
|
|
36
36
|
"aria-hidden": "true"
|
|
37
37
|
})] : []);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function T(e, t) {
|
|
40
|
+
return o(e, /* @__PURE__ */ a(f, {
|
|
41
41
|
unstyled: !0,
|
|
42
42
|
type: "button",
|
|
43
43
|
class: t.className ?? "rv-btn",
|
|
@@ -47,7 +47,7 @@ function ne(e, t) {
|
|
|
47
47
|
children: t.text ?? t.label
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function E(e, t) {
|
|
51
51
|
return e("button", {
|
|
52
52
|
type: "button",
|
|
53
53
|
role: "menuitem",
|
|
@@ -63,11 +63,11 @@ function T(e, t) {
|
|
|
63
63
|
style: "float:inline-end;margin-inline-start:16px"
|
|
64
64
|
}, "›") : null]);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function D(e, t, n = Math.max(0, Math.floor(t))) {
|
|
67
67
|
let r = Math.round(t);
|
|
68
68
|
return Array.from({ length: Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0 }, (t, n) => e("span", { class: n < r ? "star filled-star" : "star empty-star" }));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function O(e, t) {
|
|
71
71
|
let n = (e) => t.max > t.min ? Math.max(0, Math.min(100, (e - t.min) / (t.max - t.min) * 100)) : 0;
|
|
72
72
|
return e("div", { class: `revo-slider ${t.thresholdClassNames ?? ""}` }, [e("div", { class: `revo-slider-container ${t.thresholdClassNames ?? ""}` }, [
|
|
73
73
|
e("div", {
|
|
@@ -99,8 +99,8 @@ function D(e, t) {
|
|
|
99
99
|
}))
|
|
100
100
|
]), ...t.hideValue ? [] : [e("span", { class: `revo-slider-value rv-badge rv-badge--inline ${t.thresholdClassNames ?? ""}` }, t.displayValue ?? t.value)]]);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
let n = (n, r, i) =>
|
|
102
|
+
function k(e, t) {
|
|
103
|
+
let n = (n, r, i) => h(e, "button", {
|
|
104
104
|
class: {
|
|
105
105
|
"revo-counter-button": !0,
|
|
106
106
|
"revo-counter-button-disabled": r
|
|
@@ -121,7 +121,7 @@ function O(e, t) {
|
|
|
121
121
|
}
|
|
122
122
|
//#endregion
|
|
123
123
|
//#region src/alert.tsx
|
|
124
|
-
function
|
|
124
|
+
function A(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, description: o, actions: s, className: c = "", class: l = "", ...u }) {
|
|
125
125
|
let d = (t, n, ...r) => e(t, n, r);
|
|
126
126
|
return /* @__PURE__ */ d("div", {
|
|
127
127
|
...u,
|
|
@@ -133,60 +133,61 @@ function k(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, d
|
|
|
133
133
|
"aria-hidden": "true"
|
|
134
134
|
}, i), /* @__PURE__ */ d("div", { class: "rv-alert__content" }, a && /* @__PURE__ */ d("div", { class: "rv-alert__title" }, a), o && /* @__PURE__ */ d("div", { class: "rv-alert__description" }, o), t), s && /* @__PURE__ */ d("div", { class: "rv-alert__actions" }, s));
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function ne(t) {
|
|
137
|
+
return A(e, t);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/controls.tsx
|
|
141
|
-
var j = p(
|
|
142
|
-
let
|
|
141
|
+
var j = m(p(function({ href: e, target: t, rel: n, rounded: r = !1, variant: i = "default", size: o = "default", className: s = "", class: l, ...u }, d) {
|
|
142
|
+
let p = c(e !== void 0 && typeof u.title == "string" ? u.title : void 0), m = [
|
|
143
143
|
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
144
|
-
|
|
144
|
+
o === "compact" ? "rv-btn-sm" : "",
|
|
145
145
|
r ? "rv-btn-rounded" : "",
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
l,
|
|
147
|
+
s
|
|
148
148
|
].filter(Boolean).join(" ");
|
|
149
149
|
if (e !== void 0) {
|
|
150
|
-
let r =
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
-
...
|
|
150
|
+
let r = u.disabled || u.busy, { busy: i, disabled: o, title: s, ...c } = u;
|
|
151
|
+
return /* @__PURE__ */ a("a", {
|
|
152
|
+
...c,
|
|
153
|
+
ref: p,
|
|
153
154
|
href: r ? void 0 : e,
|
|
154
155
|
target: t,
|
|
155
156
|
rel: n,
|
|
156
|
-
class:
|
|
157
|
+
class: m,
|
|
157
158
|
"aria-disabled": r || void 0,
|
|
158
159
|
"aria-busy": i || void 0,
|
|
159
|
-
tabIndex: r ? -1 :
|
|
160
|
+
tabIndex: r ? -1 : u.tabIndex,
|
|
160
161
|
onClick: (e) => {
|
|
161
|
-
r ? e.preventDefault() :
|
|
162
|
+
r ? e.preventDefault() : u.onClick?.(e);
|
|
162
163
|
}
|
|
163
164
|
});
|
|
164
165
|
}
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ a(f, {
|
|
166
167
|
ref: d,
|
|
167
168
|
rounded: r,
|
|
168
169
|
type: "button",
|
|
169
|
-
...
|
|
170
|
+
...u,
|
|
170
171
|
class: [
|
|
171
172
|
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
o === "compact" ? "rv-btn-sm" : "",
|
|
174
|
+
l,
|
|
175
|
+
s
|
|
175
176
|
].filter(Boolean).join(" ")
|
|
176
177
|
});
|
|
177
178
|
}), "button");
|
|
178
|
-
function M({ label: e, icon: t, badge: n, children: r, className: i = "", variant:
|
|
179
|
-
return /* @__PURE__ */
|
|
179
|
+
function M({ label: e, icon: t, badge: n, children: r, className: i = "", variant: o = "ghost", size: s = "default", ...c }) {
|
|
180
|
+
return /* @__PURE__ */ a(y, {
|
|
180
181
|
...c,
|
|
181
182
|
label: e,
|
|
182
183
|
icon: t,
|
|
183
184
|
badge: n,
|
|
184
|
-
className: `rv-btn-icon ${
|
|
185
|
+
className: `rv-btn-icon ${o === "default" ? "rv-btn" : `rv-btn-${o}`} ${s === "compact" ? "rv-btn-sm" : ""} ${i}`,
|
|
185
186
|
children: r
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
189
|
function N({ pressed: e, onPressedChange: t, ...n }) {
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ a(j, {
|
|
190
191
|
...n,
|
|
191
192
|
"aria-pressed": e,
|
|
192
193
|
onClick: (r) => {
|
|
@@ -195,7 +196,7 @@ function N({ pressed: e, onPressedChange: t, ...n }) {
|
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
198
|
function P({ children: e, className: t = "", label: n }) {
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ a("div", {
|
|
199
200
|
role: "group",
|
|
200
201
|
"aria-label": n,
|
|
201
202
|
class: `rv-btn-group ${t}`,
|
|
@@ -203,19 +204,19 @@ function P({ children: e, className: t = "", label: n }) {
|
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
function F(e) {
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
+
return /* @__PURE__ */ a(b, {
|
|
207
208
|
...e,
|
|
208
209
|
role: "radiogroup"
|
|
209
210
|
});
|
|
210
211
|
}
|
|
211
212
|
function I(e) {
|
|
212
|
-
return /* @__PURE__ */
|
|
213
|
+
return /* @__PURE__ */ a(b, {
|
|
213
214
|
...e,
|
|
214
215
|
role: "tablist"
|
|
215
216
|
});
|
|
216
217
|
}
|
|
217
218
|
function L({ id: e, labelledBy: t, active: n, children: r }) {
|
|
218
|
-
return /* @__PURE__ */
|
|
219
|
+
return /* @__PURE__ */ a("div", {
|
|
219
220
|
id: e,
|
|
220
221
|
role: "tabpanel",
|
|
221
222
|
"aria-labelledby": t,
|
|
@@ -223,14 +224,14 @@ function L({ id: e, labelledBy: t, active: n, children: r }) {
|
|
|
223
224
|
children: r
|
|
224
225
|
});
|
|
225
226
|
}
|
|
226
|
-
function R({ className: e = "", value: t, options: r, onChange: i, label:
|
|
227
|
-
let [u] = n(() =>
|
|
228
|
-
return /* @__PURE__ */
|
|
227
|
+
function R({ className: e = "", value: t, options: r, onChange: i, label: o, disabled: c, name: l }) {
|
|
228
|
+
let [u] = n(() => s("rv-ui"));
|
|
229
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
229
230
|
class: `rv-radio-group ${e}`,
|
|
230
|
-
disabled:
|
|
231
|
-
children: [/* @__PURE__ */
|
|
231
|
+
disabled: c,
|
|
232
|
+
children: [/* @__PURE__ */ a("legend", { children: o }), r.map((e) => /* @__PURE__ */ a("label", { children: [/* @__PURE__ */ a(d, {
|
|
232
233
|
type: "radio",
|
|
233
|
-
name:
|
|
234
|
+
name: l ?? u,
|
|
234
235
|
checked: t === e.value,
|
|
235
236
|
disabled: e.disabled,
|
|
236
237
|
onChange: () => i(e.value)
|
|
@@ -238,7 +239,7 @@ function R({ className: e = "", value: t, options: r, onChange: i, label: a, dis
|
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
241
|
function z({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ a(d, {
|
|
242
243
|
type: "text",
|
|
243
244
|
...i,
|
|
244
245
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
@@ -248,7 +249,7 @@ function z({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
251
|
function B({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ a(u, {
|
|
252
253
|
...i,
|
|
253
254
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
254
255
|
onInput: (e) => {
|
|
@@ -257,7 +258,7 @@ function B({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
260
|
function V({ onValueChange: e, ...t }) {
|
|
260
|
-
return /* @__PURE__ */
|
|
261
|
+
return /* @__PURE__ */ a(z, {
|
|
261
262
|
...t,
|
|
262
263
|
type: "number",
|
|
263
264
|
onValueChange: (t) => {
|
|
@@ -265,23 +266,23 @@ function V({ onValueChange: e, ...t }) {
|
|
|
265
266
|
}
|
|
266
267
|
});
|
|
267
268
|
}
|
|
268
|
-
function H({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label:
|
|
269
|
+
function H({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: o, decreaseLabel: s, increaseLabel: c, disabled: l, readOnly: u }) {
|
|
269
270
|
let d = (e) => {
|
|
270
271
|
Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
|
|
271
272
|
};
|
|
272
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ a("div", {
|
|
273
274
|
class: "rv-number-stepper",
|
|
274
275
|
role: "group",
|
|
275
|
-
"aria-label":
|
|
276
|
+
"aria-label": o,
|
|
276
277
|
children: [
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ a(j, {
|
|
278
279
|
disabled: l || u || e <= t,
|
|
279
|
-
"aria-label":
|
|
280
|
+
"aria-label": s,
|
|
280
281
|
onClick: () => d(e - r),
|
|
281
282
|
children: "−"
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
"aria-label":
|
|
284
|
+
/* @__PURE__ */ a(V, {
|
|
285
|
+
"aria-label": o,
|
|
285
286
|
value: e,
|
|
286
287
|
min: Number.isFinite(t) ? t : void 0,
|
|
287
288
|
max: Number.isFinite(n) ? n : void 0,
|
|
@@ -292,7 +293,7 @@ function H({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
292
293
|
e !== void 0 && d(e);
|
|
293
294
|
}
|
|
294
295
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ a(j, {
|
|
296
297
|
disabled: l || u || e >= n,
|
|
297
298
|
"aria-label": c,
|
|
298
299
|
onClick: () => d(e + r),
|
|
@@ -302,38 +303,38 @@ function H({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
302
303
|
});
|
|
303
304
|
}
|
|
304
305
|
function U(e) {
|
|
305
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ a(z, {
|
|
306
307
|
...e,
|
|
307
308
|
type: "date"
|
|
308
309
|
});
|
|
309
310
|
}
|
|
310
311
|
function W(e) {
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ a(z, {
|
|
312
313
|
...e,
|
|
313
314
|
type: "time"
|
|
314
315
|
});
|
|
315
316
|
}
|
|
316
317
|
function G(e) {
|
|
317
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ a(z, {
|
|
318
319
|
...e,
|
|
319
320
|
type: "datetime-local"
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
323
|
function K({ children: e, className: t = "" }) {
|
|
323
|
-
return /* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ a("span", {
|
|
324
325
|
class: `rv-btn-pill ${t}`,
|
|
325
326
|
children: e
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
329
|
function q({ children: e, id: t }) {
|
|
329
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ a("span", {
|
|
330
331
|
class: "rv-field__hint",
|
|
331
332
|
id: t,
|
|
332
333
|
children: e
|
|
333
334
|
});
|
|
334
335
|
}
|
|
335
336
|
function re({ children: e, id: t }) {
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ a("span", {
|
|
337
338
|
class: "rv-field__error",
|
|
338
339
|
id: t,
|
|
339
340
|
role: "alert",
|
|
@@ -341,14 +342,14 @@ function re({ children: e, id: t }) {
|
|
|
341
342
|
});
|
|
342
343
|
}
|
|
343
344
|
function J({ children: e, title: t, description: n }) {
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
345
346
|
class: "rv-form-section",
|
|
346
347
|
children: [
|
|
347
|
-
t && /* @__PURE__ */
|
|
348
|
+
t && /* @__PURE__ */ a("legend", {
|
|
348
349
|
class: "rv-form-section__title",
|
|
349
350
|
children: t
|
|
350
351
|
}),
|
|
351
|
-
n && /* @__PURE__ */
|
|
352
|
+
n && /* @__PURE__ */ a("p", {
|
|
352
353
|
class: "rv-form-description",
|
|
353
354
|
children: n
|
|
354
355
|
}),
|
|
@@ -357,25 +358,25 @@ function J({ children: e, title: t, description: n }) {
|
|
|
357
358
|
});
|
|
358
359
|
}
|
|
359
360
|
function Y({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
|
|
360
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ a("details", {
|
|
361
362
|
class: `rv-disclosure ${t}`.trim(),
|
|
362
363
|
open: r,
|
|
363
364
|
onToggle: i,
|
|
364
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ a("summary", {
|
|
365
366
|
class: "rv-disclosure-summary",
|
|
366
367
|
children: n
|
|
367
368
|
}), e]
|
|
368
369
|
});
|
|
369
370
|
}
|
|
370
371
|
function X({ children: e, className: t = "", label: n }) {
|
|
371
|
-
return /* @__PURE__ */
|
|
372
|
+
return /* @__PURE__ */ a("section", {
|
|
372
373
|
class: `rv-panel ${t}`,
|
|
373
374
|
"aria-label": n,
|
|
374
375
|
children: e
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
378
|
function ie({ children: e, className: t = "", label: n }) {
|
|
378
|
-
return /* @__PURE__ */
|
|
379
|
+
return /* @__PURE__ */ a("div", {
|
|
379
380
|
class: `rv-toolbar ${t}`,
|
|
380
381
|
role: "toolbar",
|
|
381
382
|
"aria-label": n,
|
|
@@ -383,7 +384,7 @@ function ie({ children: e, className: t = "", label: n }) {
|
|
|
383
384
|
});
|
|
384
385
|
}
|
|
385
386
|
function ae({ children: e, className: t = "", label: n }) {
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ a("div", {
|
|
387
388
|
class: `rv-toolbar-group ${t}`,
|
|
388
389
|
role: "group",
|
|
389
390
|
"aria-label": n,
|
|
@@ -391,23 +392,14 @@ function ae({ children: e, className: t = "", label: n }) {
|
|
|
391
392
|
});
|
|
392
393
|
}
|
|
393
394
|
function oe() {
|
|
394
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ a("span", {
|
|
395
396
|
class: "rv-toolbar-separator",
|
|
396
397
|
role: "separator",
|
|
397
398
|
"aria-orientation": "vertical"
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
|
-
function se({
|
|
401
|
-
return /* @__PURE__ */
|
|
402
|
-
class: `${a({
|
|
403
|
-
variant: n,
|
|
404
|
-
shape: r
|
|
405
|
-
})} ${t}`,
|
|
406
|
-
children: e
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
function ce({ count: e, label: t }) {
|
|
410
|
-
return /* @__PURE__ */ s("span", {
|
|
401
|
+
function se({ count: e, label: t }) {
|
|
402
|
+
return /* @__PURE__ */ a("span", {
|
|
411
403
|
class: "rv-count",
|
|
412
404
|
"aria-label": t,
|
|
413
405
|
children: e
|
|
@@ -419,89 +411,89 @@ function Z({ label: t }) {
|
|
|
419
411
|
showSpinner: !0
|
|
420
412
|
});
|
|
421
413
|
}
|
|
422
|
-
function
|
|
423
|
-
return /* @__PURE__ */
|
|
414
|
+
function Q({ busy: e, label: t, children: n }) {
|
|
415
|
+
return /* @__PURE__ */ a("div", {
|
|
424
416
|
class: "rv-loading-container",
|
|
425
417
|
"aria-busy": e,
|
|
426
|
-
children: [n, e && /* @__PURE__ */
|
|
418
|
+
children: [n, e && /* @__PURE__ */ a("div", {
|
|
427
419
|
class: "rv-loading-overlay",
|
|
428
|
-
children: /* @__PURE__ */
|
|
420
|
+
children: /* @__PURE__ */ a(Z, { label: t })
|
|
429
421
|
})]
|
|
430
422
|
});
|
|
431
423
|
}
|
|
432
|
-
function
|
|
433
|
-
return /* @__PURE__ */
|
|
424
|
+
function ce({ title: e, description: t, children: n }) {
|
|
425
|
+
return /* @__PURE__ */ a("div", {
|
|
434
426
|
class: "rv-empty-state",
|
|
435
427
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
t && /* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ a("strong", { children: e }),
|
|
429
|
+
t && /* @__PURE__ */ a("p", { children: t }),
|
|
438
430
|
n
|
|
439
431
|
]
|
|
440
432
|
});
|
|
441
433
|
}
|
|
442
|
-
function
|
|
443
|
-
let
|
|
444
|
-
return r(() =>
|
|
445
|
-
ref:
|
|
434
|
+
function $({ children: e, label: t, onClose: n }) {
|
|
435
|
+
let o = i(null);
|
|
436
|
+
return r(() => o.current ? x(o.current, n) : void 0, [n]), /* @__PURE__ */ a("div", {
|
|
437
|
+
ref: o,
|
|
446
438
|
class: "rv-menu",
|
|
447
439
|
role: "menu",
|
|
448
440
|
"aria-label": t,
|
|
449
441
|
children: e
|
|
450
442
|
});
|
|
451
443
|
}
|
|
452
|
-
function
|
|
453
|
-
return /* @__PURE__ */
|
|
444
|
+
function le({ children: e, ...t }) {
|
|
445
|
+
return /* @__PURE__ */ a(j, {
|
|
454
446
|
variant: "ghost",
|
|
455
447
|
...t,
|
|
456
448
|
role: "menuitem",
|
|
457
449
|
children: e
|
|
458
450
|
});
|
|
459
451
|
}
|
|
460
|
-
function
|
|
461
|
-
return /* @__PURE__ */
|
|
452
|
+
function ue() {
|
|
453
|
+
return /* @__PURE__ */ a("div", {
|
|
462
454
|
role: "separator",
|
|
463
455
|
class: "rv-menu-separator"
|
|
464
456
|
});
|
|
465
457
|
}
|
|
466
|
-
function
|
|
467
|
-
let [
|
|
458
|
+
function de({ label: e, children: t }) {
|
|
459
|
+
let [o, c] = n(!1), l = i(null), u = i(null), [d] = n(() => s("rv-ui"));
|
|
468
460
|
r(() => {
|
|
469
|
-
|
|
470
|
-
}, [
|
|
471
|
-
let
|
|
472
|
-
|
|
461
|
+
o && l.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
462
|
+
}, [o]);
|
|
463
|
+
let f = () => {
|
|
464
|
+
c(!1), u.current?.focus();
|
|
473
465
|
};
|
|
474
|
-
return /* @__PURE__ */
|
|
475
|
-
ref:
|
|
466
|
+
return /* @__PURE__ */ a("div", {
|
|
467
|
+
ref: l,
|
|
476
468
|
class: "rv-submenu",
|
|
477
469
|
onKeyDown: (e) => {
|
|
478
|
-
|
|
470
|
+
o && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), f());
|
|
479
471
|
},
|
|
480
|
-
children: [/* @__PURE__ */
|
|
481
|
-
ref:
|
|
472
|
+
children: [/* @__PURE__ */ a(j, {
|
|
473
|
+
ref: u,
|
|
482
474
|
variant: "ghost",
|
|
483
475
|
role: "menuitem",
|
|
484
476
|
"aria-haspopup": "menu",
|
|
485
|
-
"aria-expanded":
|
|
486
|
-
"aria-controls":
|
|
487
|
-
onClick: () =>
|
|
477
|
+
"aria-expanded": o,
|
|
478
|
+
"aria-controls": d,
|
|
479
|
+
onClick: () => c(!o),
|
|
488
480
|
onKeyDown: (e) => {
|
|
489
|
-
e.key === "ArrowRight" && (e.preventDefault(),
|
|
481
|
+
e.key === "ArrowRight" && (e.preventDefault(), c(!0));
|
|
490
482
|
},
|
|
491
483
|
children: e
|
|
492
|
-
}),
|
|
493
|
-
id:
|
|
494
|
-
children: /* @__PURE__ */
|
|
484
|
+
}), o && /* @__PURE__ */ a("div", {
|
|
485
|
+
id: d,
|
|
486
|
+
children: /* @__PURE__ */ a($, {
|
|
495
487
|
label: e,
|
|
496
|
-
onClose:
|
|
488
|
+
onClose: f,
|
|
497
489
|
children: t
|
|
498
490
|
})
|
|
499
491
|
})]
|
|
500
492
|
});
|
|
501
493
|
}
|
|
502
|
-
function
|
|
494
|
+
function fe(e) {
|
|
503
495
|
let t = i(null), n = i(e);
|
|
504
|
-
return n.current = e, r(() => t.current ? te(t.current, () => n.current) : void 0, []), /* @__PURE__ */
|
|
496
|
+
return n.current = e, r(() => t.current ? te(t.current, () => n.current) : void 0, []), /* @__PURE__ */ a("div", {
|
|
505
497
|
class: "rv-resize-handle",
|
|
506
498
|
ref: t,
|
|
507
499
|
role: "separator",
|
|
@@ -513,37 +505,37 @@ function pe(e) {
|
|
|
513
505
|
"aria-valuemax": e.max
|
|
514
506
|
});
|
|
515
507
|
}
|
|
516
|
-
function
|
|
508
|
+
function pe({ page: n, pageCount: r, onChange: i, label: o, previousLabel: s, nextLabel: c, firstLabel: l = "First page", lastLabel: u = "Last page", variant: d = "compact", disabled: f = !1, navigation: p = !0, boundaryButtons: m = !1, buttons: h, children: _, className: v = "" }) {
|
|
517
509
|
let y = Number.isFinite(r) ? Math.max(0, Math.floor(r)) : 0, b = Math.min(Math.max(0, Math.floor(n) || 0), Math.max(0, y - 1)), x = (e, t) => {
|
|
518
|
-
let n =
|
|
510
|
+
let n = h?.[e];
|
|
519
511
|
if (n === !1) return null;
|
|
520
|
-
let r = e === "first" ? 0 : e === "last" ? y - 1 : b + (e === "previous" ? -1 : 1),
|
|
521
|
-
return /* @__PURE__ */
|
|
512
|
+
let r = e === "first" ? 0 : e === "last" ? y - 1 : b + (e === "previous" ? -1 : 1), o = f || !!n?.disabled || !y || r < 0 || r >= y || r === b;
|
|
513
|
+
return /* @__PURE__ */ a(M, {
|
|
522
514
|
...n,
|
|
523
515
|
label: t,
|
|
524
516
|
icon: C[e],
|
|
525
517
|
size: "compact",
|
|
526
518
|
className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
|
|
527
|
-
disabled:
|
|
519
|
+
disabled: o,
|
|
528
520
|
onClick: () => {
|
|
529
|
-
|
|
521
|
+
o || i(r);
|
|
530
522
|
}
|
|
531
523
|
});
|
|
532
524
|
};
|
|
533
|
-
return /* @__PURE__ */
|
|
525
|
+
return /* @__PURE__ */ a("nav", {
|
|
534
526
|
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${v}`,
|
|
535
|
-
"aria-label":
|
|
527
|
+
"aria-label": o,
|
|
536
528
|
children: [
|
|
537
529
|
p && m && x("first", l),
|
|
538
|
-
p && x("previous",
|
|
530
|
+
p && x("previous", s),
|
|
539
531
|
_,
|
|
540
|
-
d === "numbered" ? /* @__PURE__ */
|
|
532
|
+
d === "numbered" ? /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a("span", {
|
|
541
533
|
class: `rv-pagination-pages ${y <= 5 ? "rv-pagination-pages--compact" : ""}`,
|
|
542
|
-
children: ee(b, y, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */
|
|
534
|
+
children: ee(b, y, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ a("span", {
|
|
543
535
|
class: "rv-pagination-ellipsis",
|
|
544
536
|
"aria-label": "More pages",
|
|
545
537
|
children: "…"
|
|
546
|
-
}, `gap-${n}`) :
|
|
538
|
+
}, `gap-${n}`) : g(e, {
|
|
547
539
|
text: String(t + 1),
|
|
548
540
|
label: `${t + 1}`,
|
|
549
541
|
active: t === b,
|
|
@@ -552,7 +544,7 @@ function me({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
552
544
|
!f && t !== b && i(t);
|
|
553
545
|
}
|
|
554
546
|
}))
|
|
555
|
-
}), y > 5 && /* @__PURE__ */
|
|
547
|
+
}), y > 5 && /* @__PURE__ */ a("span", {
|
|
556
548
|
class: "rv-pagination-summary rv-pagination-summary--responsive",
|
|
557
549
|
"aria-live": "polite",
|
|
558
550
|
children: [
|
|
@@ -560,7 +552,7 @@ function me({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
560
552
|
" / ",
|
|
561
553
|
y
|
|
562
554
|
]
|
|
563
|
-
})] }) : d === "compact" ? /* @__PURE__ */
|
|
555
|
+
})] }) : d === "compact" ? /* @__PURE__ */ a("span", {
|
|
564
556
|
class: "rv-pagination-summary",
|
|
565
557
|
"aria-live": "polite",
|
|
566
558
|
children: [
|
|
@@ -574,9 +566,9 @@ function me({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
574
566
|
]
|
|
575
567
|
});
|
|
576
568
|
}
|
|
577
|
-
function
|
|
569
|
+
function me({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
578
570
|
let i = S(e, t, n);
|
|
579
|
-
return /* @__PURE__ */
|
|
571
|
+
return /* @__PURE__ */ a("svg", {
|
|
580
572
|
viewBox: "0 0 36 36",
|
|
581
573
|
class: "rv-circular-progress",
|
|
582
574
|
role: "progressbar",
|
|
@@ -584,14 +576,14 @@ function he({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
584
576
|
"aria-valuemin": i.min,
|
|
585
577
|
"aria-valuemax": i.max,
|
|
586
578
|
"aria-valuenow": i.min + (i.max - i.min) * i.percent / 100,
|
|
587
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ a("circle", {
|
|
588
580
|
cx: "18",
|
|
589
581
|
cy: "18",
|
|
590
582
|
r: "16",
|
|
591
583
|
fill: "none",
|
|
592
584
|
stroke: "currentColor",
|
|
593
585
|
opacity: "0.15"
|
|
594
|
-
}), /* @__PURE__ */
|
|
586
|
+
}), /* @__PURE__ */ a("circle", {
|
|
595
587
|
cx: "18",
|
|
596
588
|
cy: "18",
|
|
597
589
|
r: "16",
|
|
@@ -603,28 +595,28 @@ function he({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
603
595
|
})]
|
|
604
596
|
});
|
|
605
597
|
}
|
|
606
|
-
function
|
|
607
|
-
let
|
|
608
|
-
return i ? /* @__PURE__ */
|
|
598
|
+
function he({ value: e, max: n = 5, label: r, onChange: i, disabled: o }) {
|
|
599
|
+
let s = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
|
|
600
|
+
return i ? /* @__PURE__ */ a(R, {
|
|
609
601
|
className: "rv-rating",
|
|
610
602
|
label: r,
|
|
611
603
|
value: e,
|
|
612
|
-
disabled:
|
|
613
|
-
options:
|
|
604
|
+
disabled: o,
|
|
605
|
+
options: s.map((n) => ({
|
|
614
606
|
value: n,
|
|
615
|
-
label: /* @__PURE__ */
|
|
607
|
+
label: /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a(l, { filled: n <= e }), /* @__PURE__ */ a("span", {
|
|
616
608
|
class: "rv-visually-hidden",
|
|
617
609
|
children: n
|
|
618
610
|
})] })
|
|
619
611
|
})),
|
|
620
612
|
onChange: i
|
|
621
|
-
}) : /* @__PURE__ */
|
|
613
|
+
}) : /* @__PURE__ */ a("span", {
|
|
622
614
|
class: "rv-rating",
|
|
623
615
|
role: "img",
|
|
624
616
|
"aria-label": `${r}: ${e} / ${n}`,
|
|
625
|
-
children:
|
|
617
|
+
children: s.map((t) => /* @__PURE__ */ a(l, { filled: t <= e }))
|
|
626
618
|
});
|
|
627
619
|
}
|
|
628
|
-
|
|
620
|
+
m(z, "input"), m(V, "input"), m(U, "input"), m(W, "input"), m(G, "input"), m(B, "textarea");
|
|
629
621
|
//#endregion
|
|
630
|
-
export {
|
|
622
|
+
export { z as A, k as B, he as C, de as D, Z as E, ae as F, E as H, oe as I, ne as L, W as M, N, L as O, ie as P, A as R, R as S, F as T, D as U, w as V, O as W, ue as _, se as a, pe as b, Y as c, q as d, J as f, le as g, $ as h, me as i, B as j, I as k, ce as l, Q as m, P as n, U as o, M as p, K as r, G as s, j as t, re as u, V as v, fe as w, X as x, H as y, T as z };
|