@revolist/ui 4.0.2-rc → 4.0.3-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +345 -263
- package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
- package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
- package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
- package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
- package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
- package/_chunks/control-AHKXD5Eu.js +93 -0
- package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
- package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
- package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
- package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
- package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
- package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
- package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
- package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
- package/_chunks/history-controls-B3u3INEK.js +27 -0
- package/_chunks/mount-DQ1cpppK.js +257 -0
- package/_chunks/native-control-C_yok8_-.js +605 -0
- package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
- package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
- package/_chunks/popup-CT2uD3go.js +367 -0
- package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
- package/_chunks/request-trail-DSlFix6i.js +618 -0
- package/_chunks/rich-text-CH7gIqOS.js +636 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_form.scss +1 -1
- package/ai/_chat.scss +195 -0
- package/ai/_style.scss +105 -34
- package/ai/chat.d.ts +63 -0
- package/ai/components.d.ts +19 -3
- package/ai/index.d.ts +2 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -1
- package/ai/prompt-history.d.ts +13 -0
- package/ai/transcript.d.ts +25 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.js +0 -3
- package/assignee/index.js +34 -35
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.js +1 -1
- package/buttons/svg-button.d.ts +1 -0
- package/buttons/svg-button.js +5 -5
- package/calendar/_calendar.scss +7 -2
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +16 -5
- package/control-attributes.js +7 -7
- package/controls.d.ts +8 -6
- package/controls.js +3 -3
- package/core/editor-popup.js +1 -1
- package/date-time/index.js +1 -1
- package/date-time/style.scss +4 -4
- package/dialog/dialog.dom.js +8 -8
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.d.ts +5 -2
- package/distribution-chart/bar-chart.js +7 -3
- package/distribution-chart/chart-frame.d.ts +2 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.d.ts +2 -1
- package/dropdown/content.js +1 -142
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.types.d.ts +4 -0
- package/dropdown/editor-dropdown.style.scss +37 -9
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.js +1 -1
- package/dropdown/popup.js +1 -141
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.js +1 -1
- package/field-configurator.js +6 -6
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.js +7 -7
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.js +7 -12
- package/form-controls/index.view.d.ts +2 -4
- package/form-controls/presentation.js +51 -43
- package/formatting/index.js +25 -21
- package/framework.js +215 -207
- package/history-controls.d.ts +14 -0
- package/history-controls.js +1 -0
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +6 -4
- package/native-control.js +3 -26
- package/native-styles.css +1 -1
- package/native.js +31 -30
- package/number-input/index.js +1 -1
- package/package.json +18 -13
- package/pagination.d.ts +3 -0
- package/pagination.js +43 -33
- package/pdf-viewer/index.js +1 -1
- package/pdf-viewer/style.scss +3 -4
- package/preact.d.ts +2 -0
- package/preact.js +62 -62
- package/rating-choice.js +1 -1
- package/react-control.d.ts +0 -1
- package/react-control.js +2 -2
- package/react.d.ts +13 -3
- package/react.js +71 -88
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +4 -4
- package/resource-picker/resource-picker.scss +6 -3
- package/rich-text/engine.d.ts +16 -19
- package/rich-text/index.d.ts +7 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +4 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +3 -12
- package/rich-text/toolbar.d.ts +6 -6
- package/rich-text/translations.d.ts +3 -15
- package/select.d.ts +20 -0
- package/select.js +1 -0
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +10 -10
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +7 -0
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_compositions.scss +3 -1
- package/styles/_control.scss +12 -4
- package/styles/_primitives.scss +9 -8
- package/styles.css +1 -1
- package/surfaces.js +45 -45
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +0 -21
- package/svelte.js +33 -68
- package/time-grid.js +1 -1
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +71 -54
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/vue.d.ts +24 -5
- package/vue.js +140 -164
- package/_chunks/compat.module-DDB2pm9O.js +0 -229
- package/_chunks/dropdown-voWqmwAe.js +0 -357
- package/_chunks/mount-DZe_6VtR.js +0 -90
- package/_chunks/request-trail-IdNiFvKH.js +0 -347
- package/_chunks/rich-text-BzI1DyfF.js +0 -477
- package/react-native-select.d.ts +0 -6
- package/rich-text/syntax.d.ts +0 -2
- package/vue-native-select.d.ts +0 -9
|
@@ -1,31 +1,31 @@
|
|
|
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
3
|
import { badgeClassName as a } from "../badge.js";
|
|
4
|
-
import { n as o } from "./rating-choice-
|
|
4
|
+
import { n as o } from "./rating-choice-DZgmaic0.js";
|
|
5
5
|
import { t as s } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { paginationItems as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { createControlId as
|
|
14
|
-
import { SvgButton as
|
|
15
|
-
import { SegmentedSwitch as
|
|
16
|
-
import { attachMenuKeyboard as
|
|
17
|
-
import { normalizeProgressRange as
|
|
6
|
+
import { a as c, n as l, t as u } from "./native-control-C_yok8_-.js";
|
|
7
|
+
import { r as d } from "./popup-CT2uD3go.js";
|
|
8
|
+
import { createPreactElement as f } from "../preact-mount.js";
|
|
9
|
+
import { registerControl as p, renderControl as m } from "../control-presentation.js";
|
|
10
|
+
import { paginationItems as ee, renderPaginationButton as h } from "../pagination.js";
|
|
11
|
+
import { t as g } from "./chevron-left-D0nc4Z5S.js";
|
|
12
|
+
import { t as _ } from "./chevron-right-sxHQMSkq.js";
|
|
13
|
+
import { createControlId as v } from "../core/control-id.js";
|
|
14
|
+
import { SvgButton as y } from "../buttons/svg-button.js";
|
|
15
|
+
import { SegmentedSwitch as b } from "../segmented-switch/index.js";
|
|
16
|
+
import { attachMenuKeyboard as x, attachResizeHandle as te } from "../surfaces.js";
|
|
17
|
+
import { normalizeProgressRange as S } from "../progress/range.js";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/icons/pagination.ts
|
|
20
|
-
var
|
|
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: g,
|
|
23
|
+
next: _,
|
|
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 w(e, t) {
|
|
29
29
|
return e("div", {
|
|
30
30
|
class: t.className ?? "rv-spinner",
|
|
31
31
|
role: "status",
|
|
@@ -36,8 +36,8 @@ function T(e, t) {
|
|
|
36
36
|
"aria-hidden": "true"
|
|
37
37
|
})] : []);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function ne(e, t) {
|
|
40
|
+
return f(e, /* @__PURE__ */ s(u, {
|
|
41
41
|
unstyled: !0,
|
|
42
42
|
type: "button",
|
|
43
43
|
class: t.className ?? "rv-btn",
|
|
@@ -47,7 +47,7 @@ function E(e, t) {
|
|
|
47
47
|
children: t.text ?? t.label
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function T(e, t) {
|
|
51
51
|
return e("button", {
|
|
52
52
|
type: "button",
|
|
53
53
|
role: "menuitem",
|
|
@@ -63,11 +63,11 @@ function D(e, t) {
|
|
|
63
63
|
style: "float:inline-end;margin-inline-start:16px"
|
|
64
64
|
}, "›") : null]);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function E(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 D(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 k(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 O(e, t) {
|
|
103
|
+
let n = (n, r, i) => m(e, "button", {
|
|
104
104
|
class: {
|
|
105
105
|
"revo-counter-button": !0,
|
|
106
106
|
"revo-counter-button-disabled": r
|
|
@@ -121,7 +121,7 @@ function A(e, t) {
|
|
|
121
121
|
}
|
|
122
122
|
//#endregion
|
|
123
123
|
//#region src/alert.tsx
|
|
124
|
-
function
|
|
124
|
+
function k(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,26 +133,50 @@ function j(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 A(t) {
|
|
137
|
+
return k(e, t);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/controls.tsx
|
|
141
|
-
var
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
var j = p(d(function({ href: e, target: t, rel: n, rounded: r = !1, variant: i = "default", size: a = "default", className: o = "", class: c, ...l }, d) {
|
|
142
|
+
let f = [
|
|
143
|
+
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
144
|
+
a === "compact" ? "rv-btn-sm" : "",
|
|
145
|
+
r ? "rv-btn-rounded" : "",
|
|
146
|
+
c,
|
|
147
|
+
o
|
|
148
|
+
].filter(Boolean).join(" ");
|
|
149
|
+
if (e !== void 0) {
|
|
150
|
+
let r = l.disabled || l.busy, { busy: i, disabled: a, ...o } = l;
|
|
151
|
+
return /* @__PURE__ */ s("a", {
|
|
152
|
+
...o,
|
|
153
|
+
href: r ? void 0 : e,
|
|
154
|
+
target: t,
|
|
155
|
+
rel: n,
|
|
156
|
+
class: f,
|
|
157
|
+
"aria-disabled": r || void 0,
|
|
158
|
+
"aria-busy": i || void 0,
|
|
159
|
+
tabIndex: r ? -1 : l.tabIndex,
|
|
160
|
+
onClick: (e) => {
|
|
161
|
+
r ? e.preventDefault() : l.onClick?.(e);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return /* @__PURE__ */ s(u, {
|
|
166
|
+
ref: d,
|
|
167
|
+
rounded: r,
|
|
144
168
|
type: "button",
|
|
145
|
-
...
|
|
169
|
+
...l,
|
|
146
170
|
class: [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
171
|
+
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
172
|
+
a === "compact" ? "rv-btn-sm" : "",
|
|
173
|
+
c,
|
|
174
|
+
o
|
|
151
175
|
].filter(Boolean).join(" ")
|
|
152
176
|
});
|
|
153
177
|
}), "button");
|
|
154
|
-
function
|
|
155
|
-
return /* @__PURE__ */ s(
|
|
178
|
+
function M({ label: e, icon: t, badge: n, children: r, className: i = "", variant: a = "ghost", size: o = "default", ...c }) {
|
|
179
|
+
return /* @__PURE__ */ s(y, {
|
|
156
180
|
...c,
|
|
157
181
|
label: e,
|
|
158
182
|
icon: t,
|
|
@@ -161,8 +185,8 @@ function P({ label: e, icon: t, badge: n, children: r, className: i = "", varian
|
|
|
161
185
|
children: r
|
|
162
186
|
});
|
|
163
187
|
}
|
|
164
|
-
function
|
|
165
|
-
return /* @__PURE__ */ s(
|
|
188
|
+
function N({ pressed: e, onPressedChange: t, ...n }) {
|
|
189
|
+
return /* @__PURE__ */ s(j, {
|
|
166
190
|
...n,
|
|
167
191
|
"aria-pressed": e,
|
|
168
192
|
onClick: (r) => {
|
|
@@ -170,7 +194,7 @@ function F({ pressed: e, onPressedChange: t, ...n }) {
|
|
|
170
194
|
}
|
|
171
195
|
});
|
|
172
196
|
}
|
|
173
|
-
function
|
|
197
|
+
function P({ children: e, className: t = "", label: n }) {
|
|
174
198
|
return /* @__PURE__ */ s("div", {
|
|
175
199
|
role: "group",
|
|
176
200
|
"aria-label": n,
|
|
@@ -178,19 +202,19 @@ function I({ children: e, className: t = "", label: n }) {
|
|
|
178
202
|
children: e
|
|
179
203
|
});
|
|
180
204
|
}
|
|
181
|
-
function
|
|
182
|
-
return /* @__PURE__ */ s(
|
|
205
|
+
function F(e) {
|
|
206
|
+
return /* @__PURE__ */ s(b, {
|
|
183
207
|
...e,
|
|
184
208
|
role: "radiogroup"
|
|
185
209
|
});
|
|
186
210
|
}
|
|
187
|
-
function
|
|
188
|
-
return /* @__PURE__ */ s(
|
|
211
|
+
function I(e) {
|
|
212
|
+
return /* @__PURE__ */ s(b, {
|
|
189
213
|
...e,
|
|
190
214
|
role: "tablist"
|
|
191
215
|
});
|
|
192
216
|
}
|
|
193
|
-
function
|
|
217
|
+
function L({ id: e, labelledBy: t, active: n, children: r }) {
|
|
194
218
|
return /* @__PURE__ */ s("div", {
|
|
195
219
|
id: e,
|
|
196
220
|
role: "tabpanel",
|
|
@@ -199,22 +223,22 @@ function z({ id: e, labelledBy: t, active: n, children: r }) {
|
|
|
199
223
|
children: r
|
|
200
224
|
});
|
|
201
225
|
}
|
|
202
|
-
function
|
|
203
|
-
let [
|
|
226
|
+
function R({ className: e = "", value: t, options: r, onChange: i, label: a, disabled: o, name: c }) {
|
|
227
|
+
let [u] = n(() => v("rv-ui"));
|
|
204
228
|
return /* @__PURE__ */ s("fieldset", {
|
|
205
229
|
class: `rv-radio-group ${e}`,
|
|
206
230
|
disabled: o,
|
|
207
|
-
children: [/* @__PURE__ */ s("legend", { children: a }), r.map((e) => /* @__PURE__ */ s("label", { children: [/* @__PURE__ */ s(
|
|
231
|
+
children: [/* @__PURE__ */ s("legend", { children: a }), r.map((e) => /* @__PURE__ */ s("label", { children: [/* @__PURE__ */ s(l, {
|
|
208
232
|
type: "radio",
|
|
209
|
-
name: c ??
|
|
233
|
+
name: c ?? u,
|
|
210
234
|
checked: t === e.value,
|
|
211
235
|
disabled: e.disabled,
|
|
212
236
|
onChange: () => i(e.value)
|
|
213
237
|
}), e.label] }, e.value))]
|
|
214
238
|
});
|
|
215
239
|
}
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */ s(
|
|
240
|
+
function z({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
241
|
+
return /* @__PURE__ */ s(l, {
|
|
218
242
|
type: "text",
|
|
219
243
|
...i,
|
|
220
244
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
@@ -223,8 +247,8 @@ function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
223
247
|
}
|
|
224
248
|
});
|
|
225
249
|
}
|
|
226
|
-
function
|
|
227
|
-
return /* @__PURE__ */ s(
|
|
250
|
+
function B({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
251
|
+
return /* @__PURE__ */ s(c, {
|
|
228
252
|
...i,
|
|
229
253
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
230
254
|
onInput: (e) => {
|
|
@@ -232,8 +256,8 @@ function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
232
256
|
}
|
|
233
257
|
});
|
|
234
258
|
}
|
|
235
|
-
function
|
|
236
|
-
return /* @__PURE__ */ s(
|
|
259
|
+
function V({ onValueChange: e, ...t }) {
|
|
260
|
+
return /* @__PURE__ */ s(z, {
|
|
237
261
|
...t,
|
|
238
262
|
type: "number",
|
|
239
263
|
onValueChange: (t) => {
|
|
@@ -241,7 +265,7 @@ function U({ onValueChange: e, ...t }) {
|
|
|
241
265
|
}
|
|
242
266
|
});
|
|
243
267
|
}
|
|
244
|
-
function
|
|
268
|
+
function H({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: a, decreaseLabel: o, increaseLabel: c, disabled: l, readOnly: u }) {
|
|
245
269
|
let d = (e) => {
|
|
246
270
|
Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
|
|
247
271
|
};
|
|
@@ -250,13 +274,13 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
250
274
|
role: "group",
|
|
251
275
|
"aria-label": a,
|
|
252
276
|
children: [
|
|
253
|
-
/* @__PURE__ */ s(
|
|
277
|
+
/* @__PURE__ */ s(j, {
|
|
254
278
|
disabled: l || u || e <= t,
|
|
255
279
|
"aria-label": o,
|
|
256
280
|
onClick: () => d(e - r),
|
|
257
281
|
children: "−"
|
|
258
282
|
}),
|
|
259
|
-
/* @__PURE__ */ s(
|
|
283
|
+
/* @__PURE__ */ s(V, {
|
|
260
284
|
"aria-label": a,
|
|
261
285
|
value: e,
|
|
262
286
|
min: Number.isFinite(t) ? t : void 0,
|
|
@@ -268,7 +292,7 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
268
292
|
e !== void 0 && d(e);
|
|
269
293
|
}
|
|
270
294
|
}),
|
|
271
|
-
/* @__PURE__ */ s(
|
|
295
|
+
/* @__PURE__ */ s(j, {
|
|
272
296
|
disabled: l || u || e >= n,
|
|
273
297
|
"aria-label": c,
|
|
274
298
|
onClick: () => d(e + r),
|
|
@@ -277,47 +301,38 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
277
301
|
]
|
|
278
302
|
});
|
|
279
303
|
}
|
|
280
|
-
function
|
|
281
|
-
return /* @__PURE__ */ s(
|
|
304
|
+
function U(e) {
|
|
305
|
+
return /* @__PURE__ */ s(z, {
|
|
282
306
|
...e,
|
|
283
307
|
type: "date"
|
|
284
308
|
});
|
|
285
309
|
}
|
|
286
|
-
function
|
|
287
|
-
return /* @__PURE__ */ s(
|
|
310
|
+
function W(e) {
|
|
311
|
+
return /* @__PURE__ */ s(z, {
|
|
288
312
|
...e,
|
|
289
313
|
type: "time"
|
|
290
314
|
});
|
|
291
315
|
}
|
|
292
|
-
function
|
|
293
|
-
return /* @__PURE__ */ s(
|
|
316
|
+
function G(e) {
|
|
317
|
+
return /* @__PURE__ */ s(z, {
|
|
294
318
|
...e,
|
|
295
319
|
type: "datetime-local"
|
|
296
320
|
});
|
|
297
321
|
}
|
|
298
|
-
function
|
|
299
|
-
return /* @__PURE__ */ s(m, {
|
|
300
|
-
...i,
|
|
301
|
-
class: `rv-control ${t ?? ""} ${e}`,
|
|
302
|
-
onChange: (e) => {
|
|
303
|
-
r?.(e), e.defaultPrevented || n?.(e.currentTarget.value);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function Y({ children: e, className: t = "" }) {
|
|
322
|
+
function K({ children: e, className: t = "" }) {
|
|
308
323
|
return /* @__PURE__ */ s("span", {
|
|
309
324
|
class: `rv-btn-pill ${t}`,
|
|
310
325
|
children: e
|
|
311
326
|
});
|
|
312
327
|
}
|
|
313
|
-
function
|
|
328
|
+
function q({ children: e, id: t }) {
|
|
314
329
|
return /* @__PURE__ */ s("span", {
|
|
315
330
|
class: "rv-field__hint",
|
|
316
331
|
id: t,
|
|
317
332
|
children: e
|
|
318
333
|
});
|
|
319
334
|
}
|
|
320
|
-
function
|
|
335
|
+
function re({ children: e, id: t }) {
|
|
321
336
|
return /* @__PURE__ */ s("span", {
|
|
322
337
|
class: "rv-field__error",
|
|
323
338
|
id: t,
|
|
@@ -325,7 +340,7 @@ function X({ children: e, id: t }) {
|
|
|
325
340
|
children: e
|
|
326
341
|
});
|
|
327
342
|
}
|
|
328
|
-
function
|
|
343
|
+
function J({ children: e, title: t, description: n }) {
|
|
329
344
|
return /* @__PURE__ */ s("fieldset", {
|
|
330
345
|
class: "rv-form-section",
|
|
331
346
|
children: [
|
|
@@ -341,7 +356,7 @@ function Z({ children: e, title: t, description: n }) {
|
|
|
341
356
|
]
|
|
342
357
|
});
|
|
343
358
|
}
|
|
344
|
-
function
|
|
359
|
+
function Y({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
|
|
345
360
|
return /* @__PURE__ */ s("details", {
|
|
346
361
|
class: `rv-disclosure ${t}`.trim(),
|
|
347
362
|
open: r,
|
|
@@ -352,14 +367,14 @@ function re({ children: e, className: t = "", summary: n, open: r, onToggle: i }
|
|
|
352
367
|
}), e]
|
|
353
368
|
});
|
|
354
369
|
}
|
|
355
|
-
function
|
|
370
|
+
function X({ children: e, className: t = "", label: n }) {
|
|
356
371
|
return /* @__PURE__ */ s("section", {
|
|
357
372
|
class: `rv-panel ${t}`,
|
|
358
373
|
"aria-label": n,
|
|
359
374
|
children: e
|
|
360
375
|
});
|
|
361
376
|
}
|
|
362
|
-
function
|
|
377
|
+
function ie({ children: e, className: t = "", label: n }) {
|
|
363
378
|
return /* @__PURE__ */ s("div", {
|
|
364
379
|
class: `rv-toolbar ${t}`,
|
|
365
380
|
role: "toolbar",
|
|
@@ -367,7 +382,7 @@ function ae({ children: e, className: t = "", label: n }) {
|
|
|
367
382
|
children: e
|
|
368
383
|
});
|
|
369
384
|
}
|
|
370
|
-
function
|
|
385
|
+
function ae({ children: e, className: t = "", label: n }) {
|
|
371
386
|
return /* @__PURE__ */ s("div", {
|
|
372
387
|
class: `rv-toolbar-group ${t}`,
|
|
373
388
|
role: "group",
|
|
@@ -375,14 +390,14 @@ function oe({ children: e, className: t = "", label: n }) {
|
|
|
375
390
|
children: e
|
|
376
391
|
});
|
|
377
392
|
}
|
|
378
|
-
function
|
|
393
|
+
function oe() {
|
|
379
394
|
return /* @__PURE__ */ s("span", {
|
|
380
395
|
class: "rv-toolbar-separator",
|
|
381
396
|
role: "separator",
|
|
382
397
|
"aria-orientation": "vertical"
|
|
383
398
|
});
|
|
384
399
|
}
|
|
385
|
-
function
|
|
400
|
+
function se({ children: e, className: t = "", variant: n, shape: r }) {
|
|
386
401
|
return /* @__PURE__ */ s("span", {
|
|
387
402
|
class: `${a({
|
|
388
403
|
variant: n,
|
|
@@ -391,30 +406,30 @@ function ce({ children: e, className: t = "", variant: n, shape: r }) {
|
|
|
391
406
|
children: e
|
|
392
407
|
});
|
|
393
408
|
}
|
|
394
|
-
function
|
|
409
|
+
function ce({ count: e, label: t }) {
|
|
395
410
|
return /* @__PURE__ */ s("span", {
|
|
396
411
|
class: "rv-count",
|
|
397
412
|
"aria-label": t,
|
|
398
413
|
children: e
|
|
399
414
|
});
|
|
400
415
|
}
|
|
401
|
-
function
|
|
402
|
-
return
|
|
416
|
+
function Z({ label: t }) {
|
|
417
|
+
return w(e, {
|
|
403
418
|
label: t,
|
|
404
419
|
showSpinner: !0
|
|
405
420
|
});
|
|
406
421
|
}
|
|
407
|
-
function
|
|
422
|
+
function le({ busy: e, label: t, children: n }) {
|
|
408
423
|
return /* @__PURE__ */ s("div", {
|
|
409
424
|
class: "rv-loading-container",
|
|
410
425
|
"aria-busy": e,
|
|
411
426
|
children: [n, e && /* @__PURE__ */ s("div", {
|
|
412
427
|
class: "rv-loading-overlay",
|
|
413
|
-
children: /* @__PURE__ */ s(
|
|
428
|
+
children: /* @__PURE__ */ s(Z, { label: t })
|
|
414
429
|
})]
|
|
415
430
|
});
|
|
416
431
|
}
|
|
417
|
-
function
|
|
432
|
+
function ue({ title: e, description: t, children: n }) {
|
|
418
433
|
return /* @__PURE__ */ s("div", {
|
|
419
434
|
class: "rv-empty-state",
|
|
420
435
|
children: [
|
|
@@ -424,9 +439,9 @@ function de({ title: e, description: t, children: n }) {
|
|
|
424
439
|
]
|
|
425
440
|
});
|
|
426
441
|
}
|
|
427
|
-
function
|
|
442
|
+
function Q({ children: e, label: t, onClose: n }) {
|
|
428
443
|
let a = i(null);
|
|
429
|
-
return r(() => a.current ?
|
|
444
|
+
return r(() => a.current ? x(a.current, n) : void 0, [n]), /* @__PURE__ */ s("div", {
|
|
430
445
|
ref: a,
|
|
431
446
|
class: "rv-menu",
|
|
432
447
|
role: "menu",
|
|
@@ -434,22 +449,22 @@ function $({ children: e, label: t, onClose: n }) {
|
|
|
434
449
|
children: e
|
|
435
450
|
});
|
|
436
451
|
}
|
|
437
|
-
function
|
|
438
|
-
return /* @__PURE__ */ s(
|
|
452
|
+
function de({ children: e, ...t }) {
|
|
453
|
+
return /* @__PURE__ */ s(j, {
|
|
439
454
|
variant: "ghost",
|
|
440
455
|
...t,
|
|
441
456
|
role: "menuitem",
|
|
442
457
|
children: e
|
|
443
458
|
});
|
|
444
459
|
}
|
|
445
|
-
function
|
|
460
|
+
function $() {
|
|
446
461
|
return /* @__PURE__ */ s("div", {
|
|
447
462
|
role: "separator",
|
|
448
463
|
class: "rv-menu-separator"
|
|
449
464
|
});
|
|
450
465
|
}
|
|
451
|
-
function
|
|
452
|
-
let [a, o] = n(!1), c = i(null), l = i(null), [u] = n(() =>
|
|
466
|
+
function fe({ label: e, children: t }) {
|
|
467
|
+
let [a, o] = n(!1), c = i(null), l = i(null), [u] = n(() => v("rv-ui"));
|
|
453
468
|
r(() => {
|
|
454
469
|
a && c.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
455
470
|
}, [a]);
|
|
@@ -462,7 +477,7 @@ function me({ label: e, children: t }) {
|
|
|
462
477
|
onKeyDown: (e) => {
|
|
463
478
|
a && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), d());
|
|
464
479
|
},
|
|
465
|
-
children: [/* @__PURE__ */ s(
|
|
480
|
+
children: [/* @__PURE__ */ s(j, {
|
|
466
481
|
ref: l,
|
|
467
482
|
variant: "ghost",
|
|
468
483
|
role: "menuitem",
|
|
@@ -476,7 +491,7 @@ function me({ label: e, children: t }) {
|
|
|
476
491
|
children: e
|
|
477
492
|
}), a && /* @__PURE__ */ s("div", {
|
|
478
493
|
id: u,
|
|
479
|
-
children: /* @__PURE__ */ s(
|
|
494
|
+
children: /* @__PURE__ */ s(Q, {
|
|
480
495
|
label: e,
|
|
481
496
|
onClose: d,
|
|
482
497
|
children: t
|
|
@@ -484,9 +499,9 @@ function me({ label: e, children: t }) {
|
|
|
484
499
|
})]
|
|
485
500
|
});
|
|
486
501
|
}
|
|
487
|
-
function
|
|
502
|
+
function pe(e) {
|
|
488
503
|
let t = i(null), n = i(e);
|
|
489
|
-
return n.current = e, r(() => t.current ?
|
|
504
|
+
return n.current = e, r(() => t.current ? te(t.current, () => n.current) : void 0, []), /* @__PURE__ */ s("div", {
|
|
490
505
|
class: "rv-resize-handle",
|
|
491
506
|
ref: t,
|
|
492
507
|
role: "separator",
|
|
@@ -498,15 +513,15 @@ function he(e) {
|
|
|
498
513
|
"aria-valuemax": e.max
|
|
499
514
|
});
|
|
500
515
|
}
|
|
501
|
-
function
|
|
502
|
-
let
|
|
503
|
-
let n =
|
|
516
|
+
function me({ 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: g, children: _, className: v = "" }) {
|
|
517
|
+
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 = g?.[e];
|
|
504
519
|
if (n === !1) return null;
|
|
505
|
-
let r = e === "first" ? 0 : e === "last" ?
|
|
506
|
-
return /* @__PURE__ */ s(
|
|
520
|
+
let r = e === "first" ? 0 : e === "last" ? y - 1 : b + (e === "previous" ? -1 : 1), a = f || !!n?.disabled || !y || r < 0 || r >= y || r === b;
|
|
521
|
+
return /* @__PURE__ */ s(M, {
|
|
507
522
|
...n,
|
|
508
523
|
label: t,
|
|
509
|
-
icon:
|
|
524
|
+
icon: C[e],
|
|
510
525
|
size: "compact",
|
|
511
526
|
className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
|
|
512
527
|
disabled: a,
|
|
@@ -516,51 +531,51 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
516
531
|
});
|
|
517
532
|
};
|
|
518
533
|
return /* @__PURE__ */ s("nav", {
|
|
519
|
-
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${
|
|
534
|
+
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${v}`,
|
|
520
535
|
"aria-label": a,
|
|
521
536
|
children: [
|
|
522
|
-
p && m &&
|
|
523
|
-
p &&
|
|
524
|
-
|
|
537
|
+
p && m && x("first", l),
|
|
538
|
+
p && x("previous", o),
|
|
539
|
+
_,
|
|
525
540
|
d === "numbered" ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("span", {
|
|
526
|
-
class: `rv-pagination-pages ${
|
|
527
|
-
children:
|
|
541
|
+
class: `rv-pagination-pages ${y <= 5 ? "rv-pagination-pages--compact" : ""}`,
|
|
542
|
+
children: ee(b, y, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ s("span", {
|
|
528
543
|
class: "rv-pagination-ellipsis",
|
|
529
544
|
"aria-label": "More pages",
|
|
530
545
|
children: "…"
|
|
531
|
-
}, `gap-${n}`) :
|
|
546
|
+
}, `gap-${n}`) : h(e, {
|
|
532
547
|
text: String(t + 1),
|
|
533
548
|
label: `${t + 1}`,
|
|
534
|
-
active: t ===
|
|
549
|
+
active: t === b,
|
|
535
550
|
disabled: f,
|
|
536
551
|
onClick: () => {
|
|
537
|
-
!f && t !==
|
|
552
|
+
!f && t !== b && i(t);
|
|
538
553
|
}
|
|
539
554
|
}))
|
|
540
|
-
}),
|
|
555
|
+
}), y > 5 && /* @__PURE__ */ s("span", {
|
|
541
556
|
class: "rv-pagination-summary rv-pagination-summary--responsive",
|
|
542
557
|
"aria-live": "polite",
|
|
543
558
|
children: [
|
|
544
|
-
|
|
559
|
+
y ? b + 1 : 0,
|
|
545
560
|
" / ",
|
|
546
|
-
|
|
561
|
+
y
|
|
547
562
|
]
|
|
548
563
|
})] }) : d === "compact" ? /* @__PURE__ */ s("span", {
|
|
549
564
|
class: "rv-pagination-summary",
|
|
550
565
|
"aria-live": "polite",
|
|
551
566
|
children: [
|
|
552
|
-
|
|
567
|
+
y ? b + 1 : 0,
|
|
553
568
|
" / ",
|
|
554
|
-
|
|
569
|
+
y
|
|
555
570
|
]
|
|
556
571
|
}) : null,
|
|
557
|
-
p &&
|
|
558
|
-
p && m &&
|
|
572
|
+
p && x("next", c),
|
|
573
|
+
p && m && x("last", u)
|
|
559
574
|
]
|
|
560
575
|
});
|
|
561
576
|
}
|
|
562
|
-
function
|
|
563
|
-
let i =
|
|
577
|
+
function he({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
578
|
+
let i = S(e, t, n);
|
|
564
579
|
return /* @__PURE__ */ s("svg", {
|
|
565
580
|
viewBox: "0 0 36 36",
|
|
566
581
|
class: "rv-circular-progress",
|
|
@@ -588,9 +603,9 @@ function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
588
603
|
})]
|
|
589
604
|
});
|
|
590
605
|
}
|
|
591
|
-
function
|
|
606
|
+
function ge({ value: e, max: n = 5, label: r, onChange: i, disabled: a }) {
|
|
592
607
|
let c = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
|
|
593
|
-
return i ? /* @__PURE__ */ s(
|
|
608
|
+
return i ? /* @__PURE__ */ s(R, {
|
|
594
609
|
className: "rv-rating",
|
|
595
610
|
label: r,
|
|
596
611
|
value: e,
|
|
@@ -610,6 +625,6 @@ function ve({ value: e, max: n = 5, label: r, onChange: i, disabled: a }) {
|
|
|
610
625
|
children: c.map((t) => /* @__PURE__ */ s(o, { filled: t <= e }))
|
|
611
626
|
});
|
|
612
627
|
}
|
|
613
|
-
|
|
628
|
+
p(z, "input"), p(V, "input"), p(U, "input"), p(W, "input"), p(G, "input"), p(B, "textarea");
|
|
614
629
|
//#endregion
|
|
615
|
-
export {
|
|
630
|
+
export { I as A, ne as B, R as C, Z as D, F as E, ie as F, D as G, w as H, ae as I, oe as L, B as M, W as N, fe as O, N as P, A as R, X as S, pe as T, T as U, O as V, E as W, de as _, he as a, H as b, G as c, re as d, q as f, Q as g, le as h, K as i, z as j, L as k, Y as l, M as m, j as n, ce as o, J as p, P as r, U as s, se as t, ue as u, $ as v, ge as w, me as x, V as y, k as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { n } from "./native-control-C_yok8_-.js";
|
|
4
4
|
import { s as r } from "./iso-B0YHBK7m.js";
|
|
5
5
|
import { u as i } from "./model-mPO2tG2f.js";
|
|
6
6
|
//#region ../dates/src/date-entry.ts
|