@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,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { c as e, i as t } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
|
|
3
|
+
import { badgeClassName as a } from "../badge.js";
|
|
4
|
+
import { n as o } from "./rating-choice-Ca8ZBty3.js";
|
|
5
|
+
import { t as s } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
6
|
+
import { n as c } from "./compat.module-DDB2pm9O.js";
|
|
7
|
+
import { createPreactElement as l } from "../preact-mount.js";
|
|
8
|
+
import { registerControl as u, renderControl as d } from "../control-presentation.js";
|
|
9
|
+
import { ButtonControl as f, Input as p, Select as m, TextArea as h } from "../native-control.js";
|
|
10
|
+
import { paginationItems as g, renderPaginationButton as _ } from "../pagination.js";
|
|
11
|
+
import { t as v } from "./chevron-left-D0nc4Z5S.js";
|
|
12
|
+
import { t as y } from "./chevron-right-sxHQMSkq.js";
|
|
13
|
+
import { createControlId as b } from "../core/control-id.js";
|
|
14
|
+
import { SvgButton as x } from "../buttons/svg-button.js";
|
|
15
|
+
import { SegmentedSwitch as S } from "../segmented-switch/index.js";
|
|
16
|
+
import { attachMenuKeyboard as C, attachResizeHandle as ee } from "../surfaces.js";
|
|
17
|
+
import { normalizeProgressRange as w } from "../progress/range.js";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/icons/pagination.ts
|
|
20
|
-
var
|
|
20
|
+
var te = {
|
|
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: v,
|
|
23
|
+
next: y,
|
|
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
|
|
27
27
|
//#region src/native-controls.view.tsx
|
|
28
|
-
function
|
|
28
|
+
function T(e, t) {
|
|
29
29
|
return e("div", {
|
|
30
30
|
class: t.className ?? "rv-spinner",
|
|
31
31
|
role: "status",
|
|
@@ -36,8 +36,8 @@ function O(e, t) {
|
|
|
36
36
|
"aria-hidden": "true"
|
|
37
37
|
})] : []);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function E(e, t) {
|
|
40
|
+
return l(e, /* @__PURE__ */ s(f, {
|
|
41
41
|
unstyled: !0,
|
|
42
42
|
type: "button",
|
|
43
43
|
class: t.className ?? "rv-btn",
|
|
@@ -47,7 +47,7 @@ function k(e, t) {
|
|
|
47
47
|
children: t.text ?? t.label
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function D(e, t) {
|
|
51
51
|
return e("button", {
|
|
52
52
|
type: "button",
|
|
53
53
|
role: "menuitem",
|
|
@@ -63,11 +63,11 @@ function A(e, t) {
|
|
|
63
63
|
style: "float:inline-end;margin-inline-start:16px"
|
|
64
64
|
}, "›") : null]);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function O(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 k(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 M(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,
|
|
102
|
+
function A(e, t) {
|
|
103
|
+
let n = (n, r, i) => d(e, "button", {
|
|
104
104
|
class: {
|
|
105
105
|
"revo-counter-button": !0,
|
|
106
106
|
"revo-counter-button-disabled": r
|
|
@@ -112,7 +112,7 @@ function N(e, t) {
|
|
|
112
112
|
onClick: (e) => {
|
|
113
113
|
r || t.onChange(Math.min(t.max, Math.max(t.min, t.value + n)), e);
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, i);
|
|
116
116
|
return e("div", { class: "revo-counter" }, [
|
|
117
117
|
n(-t.step, t.value <= t.min, "-"),
|
|
118
118
|
...t.hideValue ? [] : [e("span", { class: "revo-counter-value" }, String(t.value))],
|
|
@@ -121,7 +121,7 @@ function N(e, t) {
|
|
|
121
121
|
}
|
|
122
122
|
//#endregion
|
|
123
123
|
//#region src/alert.tsx
|
|
124
|
-
function
|
|
124
|
+
function j(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,14 +133,14 @@ function P(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 M(t) {
|
|
137
|
+
return j(e, t);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/controls.tsx
|
|
141
|
-
var
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
ref:
|
|
141
|
+
var N = u(c(function({ variant: e = "default", size: t = "default", className: n = "", class: r, ...i }, a) {
|
|
142
|
+
return /* @__PURE__ */ s(f, {
|
|
143
|
+
ref: a,
|
|
144
144
|
type: "button",
|
|
145
145
|
...i,
|
|
146
146
|
class: [
|
|
@@ -151,9 +151,9 @@ var I = r(E(function({ variant: e = "default", size: t = "default", className: n
|
|
|
151
151
|
].filter(Boolean).join(" ")
|
|
152
152
|
});
|
|
153
153
|
}), "button");
|
|
154
|
-
function
|
|
155
|
-
return /* @__PURE__ */
|
|
156
|
-
...
|
|
154
|
+
function P({ label: e, icon: t, badge: n, children: r, className: i = "", variant: a = "ghost", size: o = "default", ...c }) {
|
|
155
|
+
return /* @__PURE__ */ s(x, {
|
|
156
|
+
...c,
|
|
157
157
|
label: e,
|
|
158
158
|
icon: t,
|
|
159
159
|
badge: n,
|
|
@@ -161,8 +161,8 @@ function L({ label: e, icon: t, badge: n, children: r, className: i = "", varian
|
|
|
161
161
|
children: r
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return /* @__PURE__ */
|
|
164
|
+
function F({ pressed: e, onPressedChange: t, ...n }) {
|
|
165
|
+
return /* @__PURE__ */ s(N, {
|
|
166
166
|
...n,
|
|
167
167
|
"aria-pressed": e,
|
|
168
168
|
onClick: (r) => {
|
|
@@ -170,28 +170,28 @@ function R({ pressed: e, onPressedChange: t, ...n }) {
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
return /* @__PURE__ */
|
|
173
|
+
function I({ children: e, className: t = "", label: n }) {
|
|
174
|
+
return /* @__PURE__ */ s("div", {
|
|
175
175
|
role: "group",
|
|
176
176
|
"aria-label": n,
|
|
177
177
|
class: `rv-btn-group ${t}`,
|
|
178
178
|
children: e
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return /* @__PURE__ */
|
|
181
|
+
function L(e) {
|
|
182
|
+
return /* @__PURE__ */ s(S, {
|
|
183
183
|
...e,
|
|
184
184
|
role: "radiogroup"
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return /* @__PURE__ */
|
|
187
|
+
function R(e) {
|
|
188
|
+
return /* @__PURE__ */ s(S, {
|
|
189
189
|
...e,
|
|
190
190
|
role: "tablist"
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
function z({ id: e, labelledBy: t, active: n, children: r }) {
|
|
194
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ s("div", {
|
|
195
195
|
id: e,
|
|
196
196
|
role: "tabpanel",
|
|
197
197
|
"aria-labelledby": t,
|
|
@@ -199,22 +199,22 @@ function z({ id: e, labelledBy: t, active: n, children: r }) {
|
|
|
199
199
|
children: r
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
function B({ className: e = "", value: t, options:
|
|
203
|
-
let [
|
|
204
|
-
return /* @__PURE__ */
|
|
202
|
+
function B({ className: e = "", value: t, options: r, onChange: i, label: a, disabled: o, name: c }) {
|
|
203
|
+
let [l] = n(() => b("rv-ui"));
|
|
204
|
+
return /* @__PURE__ */ s("fieldset", {
|
|
205
205
|
class: `rv-radio-group ${e}`,
|
|
206
|
-
disabled:
|
|
207
|
-
children: [/* @__PURE__ */
|
|
206
|
+
disabled: o,
|
|
207
|
+
children: [/* @__PURE__ */ s("legend", { children: a }), r.map((e) => /* @__PURE__ */ s("label", { children: [/* @__PURE__ */ s(p, {
|
|
208
208
|
type: "radio",
|
|
209
|
-
name:
|
|
209
|
+
name: c ?? l,
|
|
210
210
|
checked: t === e.value,
|
|
211
211
|
disabled: e.disabled,
|
|
212
|
-
onChange: () =>
|
|
212
|
+
onChange: () => i(e.value)
|
|
213
213
|
}), e.label] }, e.value))]
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
217
|
-
return /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ s(p, {
|
|
218
218
|
type: "text",
|
|
219
219
|
...i,
|
|
220
220
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
@@ -224,7 +224,7 @@ function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
227
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ s(h, {
|
|
228
228
|
...i,
|
|
229
229
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
230
230
|
onInput: (e) => {
|
|
@@ -233,7 +233,7 @@ function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
function U({ onValueChange: e, ...t }) {
|
|
236
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ s(V, {
|
|
237
237
|
...t,
|
|
238
238
|
type: "number",
|
|
239
239
|
onValueChange: (t) => {
|
|
@@ -241,62 +241,62 @@ function U({ onValueChange: e, ...t }) {
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: a, decreaseLabel: o, increaseLabel:
|
|
245
|
-
let
|
|
244
|
+
function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: a, decreaseLabel: o, increaseLabel: c, disabled: l, readOnly: u }) {
|
|
245
|
+
let d = (e) => {
|
|
246
246
|
Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
|
|
247
247
|
};
|
|
248
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ s("div", {
|
|
249
249
|
class: "rv-number-stepper",
|
|
250
250
|
role: "group",
|
|
251
251
|
"aria-label": a,
|
|
252
252
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
disabled:
|
|
253
|
+
/* @__PURE__ */ s(N, {
|
|
254
|
+
disabled: l || u || e <= t,
|
|
255
255
|
"aria-label": o,
|
|
256
|
-
onClick: () =>
|
|
256
|
+
onClick: () => d(e - r),
|
|
257
257
|
children: "−"
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ s(U, {
|
|
260
260
|
"aria-label": a,
|
|
261
261
|
value: e,
|
|
262
262
|
min: Number.isFinite(t) ? t : void 0,
|
|
263
263
|
max: Number.isFinite(n) ? n : void 0,
|
|
264
264
|
step: r,
|
|
265
|
-
disabled:
|
|
266
|
-
readOnly:
|
|
265
|
+
disabled: l,
|
|
266
|
+
readOnly: u,
|
|
267
267
|
onValueChange: (e) => {
|
|
268
|
-
e !== void 0 &&
|
|
268
|
+
e !== void 0 && d(e);
|
|
269
269
|
}
|
|
270
270
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
disabled:
|
|
273
|
-
"aria-label":
|
|
274
|
-
onClick: () =>
|
|
271
|
+
/* @__PURE__ */ s(N, {
|
|
272
|
+
disabled: l || u || e >= n,
|
|
273
|
+
"aria-label": c,
|
|
274
|
+
onClick: () => d(e + r),
|
|
275
275
|
children: "+"
|
|
276
276
|
})
|
|
277
277
|
]
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
function G(e) {
|
|
281
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ s(V, {
|
|
282
282
|
...e,
|
|
283
283
|
type: "date"
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
function K(e) {
|
|
287
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ s(V, {
|
|
288
288
|
...e,
|
|
289
289
|
type: "time"
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
function q(e) {
|
|
293
|
-
return /* @__PURE__ */
|
|
293
|
+
return /* @__PURE__ */ s(V, {
|
|
294
294
|
...e,
|
|
295
295
|
type: "datetime-local"
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
function J({ className: e = "", class: t, onValueChange: n, onChange: r, ...i }) {
|
|
299
|
-
return /* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ s(m, {
|
|
300
300
|
...i,
|
|
301
301
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
302
302
|
onChange: (e) => {
|
|
@@ -305,35 +305,35 @@ function J({ className: e = "", class: t, onValueChange: n, onChange: r, ...i })
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
function Y({ children: e, className: t = "" }) {
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ s("span", {
|
|
309
309
|
class: `rv-btn-pill ${t}`,
|
|
310
310
|
children: e
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */
|
|
313
|
+
function ne({ children: e, id: t }) {
|
|
314
|
+
return /* @__PURE__ */ s("span", {
|
|
315
315
|
class: "rv-field__hint",
|
|
316
316
|
id: t,
|
|
317
317
|
children: e
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return /* @__PURE__ */
|
|
320
|
+
function X({ children: e, id: t }) {
|
|
321
|
+
return /* @__PURE__ */ s("span", {
|
|
322
322
|
class: "rv-field__error",
|
|
323
323
|
id: t,
|
|
324
324
|
role: "alert",
|
|
325
325
|
children: e
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return /* @__PURE__ */
|
|
328
|
+
function Z({ children: e, title: t, description: n }) {
|
|
329
|
+
return /* @__PURE__ */ s("fieldset", {
|
|
330
330
|
class: "rv-form-section",
|
|
331
331
|
children: [
|
|
332
|
-
t && /* @__PURE__ */
|
|
332
|
+
t && /* @__PURE__ */ s("legend", {
|
|
333
333
|
class: "rv-form-section__title",
|
|
334
334
|
children: t
|
|
335
335
|
}),
|
|
336
|
-
n && /* @__PURE__ */
|
|
336
|
+
n && /* @__PURE__ */ s("p", {
|
|
337
337
|
class: "rv-form-description",
|
|
338
338
|
children: n
|
|
339
339
|
}),
|
|
@@ -341,152 +341,152 @@ function re({ children: e, title: t, description: n }) {
|
|
|
341
341
|
]
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
return /* @__PURE__ */
|
|
344
|
+
function re({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
|
|
345
|
+
return /* @__PURE__ */ s("details", {
|
|
346
346
|
class: `rv-disclosure ${t}`.trim(),
|
|
347
347
|
open: r,
|
|
348
348
|
onToggle: i,
|
|
349
|
-
children: [/* @__PURE__ */
|
|
349
|
+
children: [/* @__PURE__ */ s("summary", {
|
|
350
350
|
class: "rv-disclosure-summary",
|
|
351
351
|
children: n
|
|
352
352
|
}), e]
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return /* @__PURE__ */
|
|
355
|
+
function ie({ children: e, className: t = "", label: n }) {
|
|
356
|
+
return /* @__PURE__ */ s("section", {
|
|
357
357
|
class: `rv-panel ${t}`,
|
|
358
358
|
"aria-label": n,
|
|
359
359
|
children: e
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
return /* @__PURE__ */
|
|
362
|
+
function ae({ children: e, className: t = "", label: n }) {
|
|
363
|
+
return /* @__PURE__ */ s("div", {
|
|
364
364
|
class: `rv-toolbar ${t}`,
|
|
365
365
|
role: "toolbar",
|
|
366
366
|
"aria-label": n,
|
|
367
367
|
children: e
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return /* @__PURE__ */
|
|
370
|
+
function oe({ children: e, className: t = "", label: n }) {
|
|
371
|
+
return /* @__PURE__ */ s("div", {
|
|
372
372
|
class: `rv-toolbar-group ${t}`,
|
|
373
373
|
role: "group",
|
|
374
374
|
"aria-label": n,
|
|
375
375
|
children: e
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
return /* @__PURE__ */
|
|
378
|
+
function se() {
|
|
379
|
+
return /* @__PURE__ */ s("span", {
|
|
380
380
|
class: "rv-toolbar-separator",
|
|
381
381
|
role: "separator",
|
|
382
382
|
"aria-orientation": "vertical"
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
class: `${
|
|
388
|
-
variant:
|
|
389
|
-
shape:
|
|
390
|
-
})} ${
|
|
391
|
-
children:
|
|
385
|
+
function ce({ children: e, className: t = "", variant: n, shape: r }) {
|
|
386
|
+
return /* @__PURE__ */ s("span", {
|
|
387
|
+
class: `${a({
|
|
388
|
+
variant: n,
|
|
389
|
+
shape: r
|
|
390
|
+
})} ${t}`,
|
|
391
|
+
children: e
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return /* @__PURE__ */
|
|
394
|
+
function le({ count: e, label: t }) {
|
|
395
|
+
return /* @__PURE__ */ s("span", {
|
|
396
396
|
class: "rv-count",
|
|
397
397
|
"aria-label": t,
|
|
398
398
|
children: e
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
function Q({ label:
|
|
402
|
-
return
|
|
403
|
-
label:
|
|
401
|
+
function Q({ label: t }) {
|
|
402
|
+
return T(e, {
|
|
403
|
+
label: t,
|
|
404
404
|
showSpinner: !0
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
return /* @__PURE__ */
|
|
407
|
+
function ue({ busy: e, label: t, children: n }) {
|
|
408
|
+
return /* @__PURE__ */ s("div", {
|
|
409
409
|
class: "rv-loading-container",
|
|
410
410
|
"aria-busy": e,
|
|
411
|
-
children: [n, e && /* @__PURE__ */
|
|
411
|
+
children: [n, e && /* @__PURE__ */ s("div", {
|
|
412
412
|
class: "rv-loading-overlay",
|
|
413
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ s(Q, { label: t })
|
|
414
414
|
})]
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
return /* @__PURE__ */
|
|
417
|
+
function de({ title: e, description: t, children: n }) {
|
|
418
|
+
return /* @__PURE__ */ s("div", {
|
|
419
419
|
class: "rv-empty-state",
|
|
420
420
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
t && /* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ s("strong", { children: e }),
|
|
422
|
+
t && /* @__PURE__ */ s("p", { children: t }),
|
|
423
423
|
n
|
|
424
424
|
]
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
function $({ children: e, label: t, onClose: n }) {
|
|
428
|
-
let
|
|
429
|
-
return
|
|
430
|
-
ref:
|
|
428
|
+
let a = i(null);
|
|
429
|
+
return r(() => a.current ? C(a.current, n) : void 0, [n]), /* @__PURE__ */ s("div", {
|
|
430
|
+
ref: a,
|
|
431
431
|
class: "rv-menu",
|
|
432
432
|
role: "menu",
|
|
433
433
|
"aria-label": t,
|
|
434
434
|
children: e
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return /* @__PURE__ */
|
|
437
|
+
function fe({ children: e, ...t }) {
|
|
438
|
+
return /* @__PURE__ */ s(N, {
|
|
439
439
|
variant: "ghost",
|
|
440
440
|
...t,
|
|
441
441
|
role: "menuitem",
|
|
442
442
|
children: e
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
return /* @__PURE__ */
|
|
445
|
+
function pe() {
|
|
446
|
+
return /* @__PURE__ */ s("div", {
|
|
447
447
|
role: "separator",
|
|
448
448
|
class: "rv-menu-separator"
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
let [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}, [
|
|
456
|
-
let
|
|
457
|
-
|
|
451
|
+
function me({ label: e, children: t }) {
|
|
452
|
+
let [a, o] = n(!1), c = i(null), l = i(null), [u] = n(() => b("rv-ui"));
|
|
453
|
+
r(() => {
|
|
454
|
+
a && c.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
455
|
+
}, [a]);
|
|
456
|
+
let d = () => {
|
|
457
|
+
o(!1), l.current?.focus();
|
|
458
458
|
};
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
ref:
|
|
459
|
+
return /* @__PURE__ */ s("div", {
|
|
460
|
+
ref: c,
|
|
461
461
|
class: "rv-submenu",
|
|
462
462
|
onKeyDown: (e) => {
|
|
463
|
-
|
|
463
|
+
a && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), d());
|
|
464
464
|
},
|
|
465
|
-
children: [/* @__PURE__ */
|
|
466
|
-
ref:
|
|
465
|
+
children: [/* @__PURE__ */ s(N, {
|
|
466
|
+
ref: l,
|
|
467
467
|
variant: "ghost",
|
|
468
468
|
role: "menuitem",
|
|
469
469
|
"aria-haspopup": "menu",
|
|
470
|
-
"aria-expanded":
|
|
471
|
-
"aria-controls":
|
|
472
|
-
onClick: () =>
|
|
470
|
+
"aria-expanded": a,
|
|
471
|
+
"aria-controls": u,
|
|
472
|
+
onClick: () => o(!a),
|
|
473
473
|
onKeyDown: (e) => {
|
|
474
|
-
e.key === "ArrowRight" && (e.preventDefault(),
|
|
474
|
+
e.key === "ArrowRight" && (e.preventDefault(), o(!0));
|
|
475
475
|
},
|
|
476
476
|
children: e
|
|
477
|
-
}),
|
|
478
|
-
id:
|
|
479
|
-
children: /* @__PURE__ */
|
|
477
|
+
}), a && /* @__PURE__ */ s("div", {
|
|
478
|
+
id: u,
|
|
479
|
+
children: /* @__PURE__ */ s($, {
|
|
480
480
|
label: e,
|
|
481
|
-
onClose:
|
|
481
|
+
onClose: d,
|
|
482
482
|
children: t
|
|
483
483
|
})
|
|
484
484
|
})]
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
let t =
|
|
489
|
-
return n.current = e,
|
|
487
|
+
function he(e) {
|
|
488
|
+
let t = i(null), n = i(e);
|
|
489
|
+
return n.current = e, r(() => t.current ? ee(t.current, () => n.current) : void 0, []), /* @__PURE__ */ s("div", {
|
|
490
490
|
class: "rv-resize-handle",
|
|
491
491
|
ref: t,
|
|
492
492
|
role: "separator",
|
|
@@ -498,70 +498,70 @@ function ge(e) {
|
|
|
498
498
|
"aria-valuemax": e.max
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
let
|
|
503
|
-
let
|
|
504
|
-
if (
|
|
505
|
-
let
|
|
506
|
-
return /* @__PURE__ */
|
|
507
|
-
...
|
|
501
|
+
function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, 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: v, className: y = "" }) {
|
|
502
|
+
let b = Number.isFinite(r) ? Math.max(0, Math.floor(r)) : 0, x = Math.min(Math.max(0, Math.floor(n) || 0), Math.max(0, b - 1)), S = (e, t) => {
|
|
503
|
+
let n = h?.[e];
|
|
504
|
+
if (n === !1) return null;
|
|
505
|
+
let r = e === "first" ? 0 : e === "last" ? b - 1 : x + (e === "previous" ? -1 : 1), a = f || !!n?.disabled || !b || r < 0 || r >= b || r === x;
|
|
506
|
+
return /* @__PURE__ */ s(P, {
|
|
507
|
+
...n,
|
|
508
508
|
label: t,
|
|
509
|
-
icon:
|
|
509
|
+
icon: te[e],
|
|
510
510
|
size: "compact",
|
|
511
|
-
className: `rv-pagination-button rv-pagination-button--icon ${
|
|
511
|
+
className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
|
|
512
512
|
disabled: a,
|
|
513
513
|
onClick: () => {
|
|
514
|
-
a ||
|
|
514
|
+
a || i(r);
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
class: `rv-pagination ${
|
|
520
|
-
"aria-label":
|
|
518
|
+
return /* @__PURE__ */ s("nav", {
|
|
519
|
+
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${y}`,
|
|
520
|
+
"aria-label": a,
|
|
521
521
|
children: [
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
class: `rv-pagination-pages ${
|
|
527
|
-
children:
|
|
522
|
+
p && m && S("first", l),
|
|
523
|
+
p && S("previous", o),
|
|
524
|
+
v,
|
|
525
|
+
d === "numbered" ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("span", {
|
|
526
|
+
class: `rv-pagination-pages ${b <= 5 ? "rv-pagination-pages--compact" : ""}`,
|
|
527
|
+
children: g(x, b, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ s("span", {
|
|
528
528
|
class: "rv-pagination-ellipsis",
|
|
529
529
|
"aria-label": "More pages",
|
|
530
530
|
children: "…"
|
|
531
|
-
}, `gap-${
|
|
532
|
-
text: String(
|
|
533
|
-
label: `${
|
|
534
|
-
active:
|
|
535
|
-
disabled:
|
|
531
|
+
}, `gap-${n}`) : _(e, {
|
|
532
|
+
text: String(t + 1),
|
|
533
|
+
label: `${t + 1}`,
|
|
534
|
+
active: t === x,
|
|
535
|
+
disabled: f,
|
|
536
536
|
onClick: () => {
|
|
537
|
-
!
|
|
537
|
+
!f && t !== x && i(t);
|
|
538
538
|
}
|
|
539
539
|
}))
|
|
540
|
-
}),
|
|
540
|
+
}), b > 5 && /* @__PURE__ */ s("span", {
|
|
541
541
|
class: "rv-pagination-summary rv-pagination-summary--responsive",
|
|
542
542
|
"aria-live": "polite",
|
|
543
543
|
children: [
|
|
544
|
-
|
|
544
|
+
b ? x + 1 : 0,
|
|
545
545
|
" / ",
|
|
546
|
-
|
|
546
|
+
b
|
|
547
547
|
]
|
|
548
|
-
})] }) :
|
|
548
|
+
})] }) : d === "compact" ? /* @__PURE__ */ s("span", {
|
|
549
549
|
class: "rv-pagination-summary",
|
|
550
550
|
"aria-live": "polite",
|
|
551
551
|
children: [
|
|
552
|
-
|
|
552
|
+
b ? x + 1 : 0,
|
|
553
553
|
" / ",
|
|
554
|
-
|
|
554
|
+
b
|
|
555
555
|
]
|
|
556
556
|
}) : null,
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
p && S("next", c),
|
|
558
|
+
p && m && S("last", u)
|
|
559
559
|
]
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
let i =
|
|
564
|
-
return /* @__PURE__ */
|
|
562
|
+
function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
563
|
+
let i = w(e, t, n);
|
|
564
|
+
return /* @__PURE__ */ s("svg", {
|
|
565
565
|
viewBox: "0 0 36 36",
|
|
566
566
|
class: "rv-circular-progress",
|
|
567
567
|
role: "progressbar",
|
|
@@ -569,14 +569,14 @@ function ve({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
569
569
|
"aria-valuemin": i.min,
|
|
570
570
|
"aria-valuemax": i.max,
|
|
571
571
|
"aria-valuenow": i.min + (i.max - i.min) * i.percent / 100,
|
|
572
|
-
children: [/* @__PURE__ */
|
|
572
|
+
children: [/* @__PURE__ */ s("circle", {
|
|
573
573
|
cx: "18",
|
|
574
574
|
cy: "18",
|
|
575
575
|
r: "16",
|
|
576
576
|
fill: "none",
|
|
577
577
|
stroke: "currentColor",
|
|
578
578
|
opacity: "0.15"
|
|
579
|
-
}), /* @__PURE__ */
|
|
579
|
+
}), /* @__PURE__ */ s("circle", {
|
|
580
580
|
cx: "18",
|
|
581
581
|
cy: "18",
|
|
582
582
|
r: "16",
|
|
@@ -588,28 +588,28 @@ function ve({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
588
588
|
})]
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
let
|
|
593
|
-
return i ? /* @__PURE__ */
|
|
591
|
+
function ve({ value: e, max: n = 5, label: r, onChange: i, disabled: a }) {
|
|
592
|
+
let c = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
|
|
593
|
+
return i ? /* @__PURE__ */ s(B, {
|
|
594
594
|
className: "rv-rating",
|
|
595
595
|
label: r,
|
|
596
596
|
value: e,
|
|
597
597
|
disabled: a,
|
|
598
|
-
options:
|
|
598
|
+
options: c.map((n) => ({
|
|
599
599
|
value: n,
|
|
600
|
-
label: /* @__PURE__ */
|
|
600
|
+
label: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(o, { filled: n <= e }), /* @__PURE__ */ s("span", {
|
|
601
601
|
class: "rv-visually-hidden",
|
|
602
602
|
children: n
|
|
603
603
|
})] })
|
|
604
604
|
})),
|
|
605
605
|
onChange: i
|
|
606
|
-
}) : /* @__PURE__ */
|
|
606
|
+
}) : /* @__PURE__ */ s("span", {
|
|
607
607
|
class: "rv-rating",
|
|
608
608
|
role: "img",
|
|
609
609
|
"aria-label": `${r}: ${e} / ${n}`,
|
|
610
|
-
children:
|
|
610
|
+
children: c.map((t) => /* @__PURE__ */ s(o, { filled: t <= e }))
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
u(V, "input"), u(U, "input"), u(G, "input"), u(K, "input"), u(q, "input"), u(H, "textarea"), u(J, "select");
|
|
614
614
|
//#endregion
|
|
615
|
-
export { z as A,
|
|
615
|
+
export { z as A, j as B, ie as C, L as D, he as E, F, O as G, A as H, ae as I, k as K, oe as L, V as M, H as N, Q as O, K as P, se as R, ge as S, ve as T, T as U, E as V, D as W, fe as _, _e as a, U as b, q as c, X as d, ne as f, $ as g, ue as h, Y as i, R as j, me as k, re as l, P as m, N as n, le as o, Z as p, I as r, G as s, ce as t, de as u, pe as v, B as w, W as x, J as y, M as z };
|