@revolist/ui 4.0.1-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 -262
- package/_chunks/calendar-xpZ0v3xf.js +258 -0
- package/_chunks/chart-frame-Cmc7xU1i.js +130 -0
- package/_chunks/choice-chips-CHQTUdLs.js +110 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-D8vyPfld.js} +41 -41
- package/_chunks/color-picker-CudqPYZo.js +138 -0
- package/_chunks/component-C_T2VN5u.js +863 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
- package/_chunks/control-AHKXD5Eu.js +93 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-uscKfAnV.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DsNi8V8I.js} +229 -214
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-DrVFX13g.js} +21 -21
- package/_chunks/date-time-qIhp5vaX.js +768 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CKGkC5zP.js +134 -0
- package/_chunks/duration-CL68Em0o.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-WDdtVDNA.js} +8 -8
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount--RTLIqE-.js +54 -0
- package/_chunks/history-controls-B3u3INEK.js +27 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DQ1cpppK.js +257 -0
- package/_chunks/native-control-C_yok8_-.js +605 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BKwA5FnM.js} +89 -89
- package/_chunks/picker-h1P5RUgp.js +122 -0
- package/_chunks/popup-CT2uD3go.js +367 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-DZgmaic0.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-CSlqAGHw.js +59 -0
- 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/_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/_chat.scss +195 -0
- package/ai/_style.scss +105 -34
- package/ai/chat.d.ts +63 -0
- package/ai/components.d.ts +20 -4
- 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/request-trail.d.ts +1 -1
- package/ai/transcript.d.ts +25 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.js +0 -3
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -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.d.ts +2 -1
- 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 +2 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/_calendar.scss +7 -2
- 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 +34 -23
- package/control-attributes.js +7 -7
- package/control-presentation.js +18 -18
- package/controls.d.ts +12 -10
- package/controls.js +3 -3
- 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/style.scss +4 -4
- 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 +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- 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 +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- 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.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +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/fieldset.d.ts +3 -0
- 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 +30 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.js +16 -21
- package/form-controls/index.view.d.ts +2 -4
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +59 -51
- 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 +105 -100
- 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 +215 -207
- package/history-controls.d.ts +14 -0
- package/history-controls.js +1 -0
- 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 +14 -12
- package/native-control.js +3 -26
- package/native-styles.css +1 -1
- package/native.js +40 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +18 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +43 -33
- 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/style.scss +3 -4
- 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.d.ts +2 -0
- package/preact.js +62 -62
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +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.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/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 +7 -7
- package/rich-text/translations.d.ts +3 -15
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- 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.d.ts +2 -2
- 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 +49 -49
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +0 -21
- package/svelte.js +33 -68
- 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 +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +138 -119
- package/vue.js +150 -174
- 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/dropdown-CkGQBm1Q.js +0 -357
- 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
- package/_chunks/rich-text-2Rla349o.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
|
-
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-DZgmaic0.js";
|
|
5
|
+
import { t as s } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
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 O(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 k(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 A(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 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 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
|
|
@@ -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 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,27 +133,51 @@ 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 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__ */
|
|
156
|
-
...
|
|
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, {
|
|
180
|
+
...c,
|
|
157
181
|
label: e,
|
|
158
182
|
icon: t,
|
|
159
183
|
badge: n,
|
|
@@ -161,8 +185,8 @@ function L({ label: e, icon: t, badge: n, children: r, className: i = "", varian
|
|
|
161
185
|
children: r
|
|
162
186
|
});
|
|
163
187
|
}
|
|
164
|
-
function
|
|
165
|
-
return /* @__PURE__ */
|
|
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,28 +194,28 @@ function R({ pressed: e, onPressedChange: t, ...n }) {
|
|
|
170
194
|
}
|
|
171
195
|
});
|
|
172
196
|
}
|
|
173
|
-
function
|
|
174
|
-
return /* @__PURE__ */
|
|
197
|
+
function P({ children: e, className: t = "", label: n }) {
|
|
198
|
+
return /* @__PURE__ */ s("div", {
|
|
175
199
|
role: "group",
|
|
176
200
|
"aria-label": n,
|
|
177
201
|
class: `rv-btn-group ${t}`,
|
|
178
202
|
children: e
|
|
179
203
|
});
|
|
180
204
|
}
|
|
181
|
-
function
|
|
182
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
211
|
+
function I(e) {
|
|
212
|
+
return /* @__PURE__ */ s(b, {
|
|
189
213
|
...e,
|
|
190
214
|
role: "tablist"
|
|
191
215
|
});
|
|
192
216
|
}
|
|
193
|
-
function
|
|
194
|
-
return /* @__PURE__ */
|
|
217
|
+
function L({ id: e, labelledBy: t, active: n, children: r }) {
|
|
218
|
+
return /* @__PURE__ */ s("div", {
|
|
195
219
|
id: e,
|
|
196
220
|
role: "tabpanel",
|
|
197
221
|
"aria-labelledby": t,
|
|
@@ -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 [
|
|
204
|
-
return /* @__PURE__ */
|
|
226
|
+
function R({ className: e = "", value: t, options: r, onChange: i, label: a, disabled: o, name: c }) {
|
|
227
|
+
let [u] = n(() => v("rv-ui"));
|
|
228
|
+
return /* @__PURE__ */ s("fieldset", {
|
|
205
229
|
class: `rv-radio-group ${e}`,
|
|
206
|
-
disabled:
|
|
207
|
-
children: [/* @__PURE__ */
|
|
230
|
+
disabled: o,
|
|
231
|
+
children: [/* @__PURE__ */ s("legend", { children: a }), r.map((e) => /* @__PURE__ */ s("label", { children: [/* @__PURE__ */ s(l, {
|
|
208
232
|
type: "radio",
|
|
209
|
-
name:
|
|
233
|
+
name: c ?? u,
|
|
210
234
|
checked: t === e.value,
|
|
211
235
|
disabled: e.disabled,
|
|
212
|
-
onChange: () =>
|
|
236
|
+
onChange: () => i(e.value)
|
|
213
237
|
}), e.label] }, e.value))]
|
|
214
238
|
});
|
|
215
239
|
}
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
259
|
+
function V({ onValueChange: e, ...t }) {
|
|
260
|
+
return /* @__PURE__ */ s(z, {
|
|
237
261
|
...t,
|
|
238
262
|
type: "number",
|
|
239
263
|
onValueChange: (t) => {
|
|
@@ -241,99 +265,90 @@ function U({ onValueChange: e, ...t }) {
|
|
|
241
265
|
}
|
|
242
266
|
});
|
|
243
267
|
}
|
|
244
|
-
function
|
|
245
|
-
let
|
|
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 }) {
|
|
269
|
+
let d = (e) => {
|
|
246
270
|
Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
|
|
247
271
|
};
|
|
248
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ s("div", {
|
|
249
273
|
class: "rv-number-stepper",
|
|
250
274
|
role: "group",
|
|
251
275
|
"aria-label": a,
|
|
252
276
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
disabled:
|
|
277
|
+
/* @__PURE__ */ s(j, {
|
|
278
|
+
disabled: l || u || e <= t,
|
|
255
279
|
"aria-label": o,
|
|
256
|
-
onClick: () =>
|
|
280
|
+
onClick: () => d(e - r),
|
|
257
281
|
children: "−"
|
|
258
282
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ s(V, {
|
|
260
284
|
"aria-label": a,
|
|
261
285
|
value: e,
|
|
262
286
|
min: Number.isFinite(t) ? t : void 0,
|
|
263
287
|
max: Number.isFinite(n) ? n : void 0,
|
|
264
288
|
step: r,
|
|
265
|
-
disabled:
|
|
266
|
-
readOnly:
|
|
289
|
+
disabled: l,
|
|
290
|
+
readOnly: u,
|
|
267
291
|
onValueChange: (e) => {
|
|
268
|
-
e !== void 0 &&
|
|
292
|
+
e !== void 0 && d(e);
|
|
269
293
|
}
|
|
270
294
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
disabled:
|
|
273
|
-
"aria-label":
|
|
274
|
-
onClick: () =>
|
|
295
|
+
/* @__PURE__ */ s(j, {
|
|
296
|
+
disabled: l || u || e >= n,
|
|
297
|
+
"aria-label": c,
|
|
298
|
+
onClick: () => d(e + r),
|
|
275
299
|
children: "+"
|
|
276
300
|
})
|
|
277
301
|
]
|
|
278
302
|
});
|
|
279
303
|
}
|
|
280
|
-
function
|
|
281
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 = "" }) {
|
|
308
|
-
return /* @__PURE__ */ w("span", {
|
|
322
|
+
function K({ children: e, className: t = "" }) {
|
|
323
|
+
return /* @__PURE__ */ s("span", {
|
|
309
324
|
class: `rv-btn-pill ${t}`,
|
|
310
325
|
children: e
|
|
311
326
|
});
|
|
312
327
|
}
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */
|
|
328
|
+
function q({ children: e, id: t }) {
|
|
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
|
|
321
|
-
return /* @__PURE__ */
|
|
335
|
+
function re({ children: e, id: t }) {
|
|
336
|
+
return /* @__PURE__ */ s("span", {
|
|
322
337
|
class: "rv-field__error",
|
|
323
338
|
id: t,
|
|
324
339
|
role: "alert",
|
|
325
340
|
children: e
|
|
326
341
|
});
|
|
327
342
|
}
|
|
328
|
-
function
|
|
329
|
-
return /* @__PURE__ */
|
|
343
|
+
function J({ children: e, title: t, description: n }) {
|
|
344
|
+
return /* @__PURE__ */ s("fieldset", {
|
|
330
345
|
class: "rv-form-section",
|
|
331
346
|
children: [
|
|
332
|
-
t && /* @__PURE__ */
|
|
347
|
+
t && /* @__PURE__ */ s("legend", {
|
|
333
348
|
class: "rv-form-section__title",
|
|
334
349
|
children: t
|
|
335
350
|
}),
|
|
336
|
-
n && /* @__PURE__ */
|
|
351
|
+
n && /* @__PURE__ */ s("p", {
|
|
337
352
|
class: "rv-form-description",
|
|
338
353
|
children: n
|
|
339
354
|
}),
|
|
@@ -341,152 +356,152 @@ function re({ children: e, title: t, description: n }) {
|
|
|
341
356
|
]
|
|
342
357
|
});
|
|
343
358
|
}
|
|
344
|
-
function
|
|
345
|
-
return /* @__PURE__ */
|
|
359
|
+
function Y({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
|
|
360
|
+
return /* @__PURE__ */ s("details", {
|
|
346
361
|
class: `rv-disclosure ${t}`.trim(),
|
|
347
362
|
open: r,
|
|
348
363
|
onToggle: i,
|
|
349
|
-
children: [/* @__PURE__ */
|
|
364
|
+
children: [/* @__PURE__ */ s("summary", {
|
|
350
365
|
class: "rv-disclosure-summary",
|
|
351
366
|
children: n
|
|
352
367
|
}), e]
|
|
353
368
|
});
|
|
354
369
|
}
|
|
355
|
-
function
|
|
356
|
-
return /* @__PURE__ */
|
|
370
|
+
function X({ children: e, className: t = "", label: n }) {
|
|
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
|
|
363
|
-
return /* @__PURE__ */
|
|
377
|
+
function ie({ children: e, className: t = "", label: n }) {
|
|
378
|
+
return /* @__PURE__ */ s("div", {
|
|
364
379
|
class: `rv-toolbar ${t}`,
|
|
365
380
|
role: "toolbar",
|
|
366
381
|
"aria-label": n,
|
|
367
382
|
children: e
|
|
368
383
|
});
|
|
369
384
|
}
|
|
370
|
-
function
|
|
371
|
-
return /* @__PURE__ */
|
|
385
|
+
function ae({ children: e, className: t = "", label: n }) {
|
|
386
|
+
return /* @__PURE__ */ s("div", {
|
|
372
387
|
class: `rv-toolbar-group ${t}`,
|
|
373
388
|
role: "group",
|
|
374
389
|
"aria-label": n,
|
|
375
390
|
children: e
|
|
376
391
|
});
|
|
377
392
|
}
|
|
378
|
-
function
|
|
379
|
-
return /* @__PURE__ */
|
|
393
|
+
function oe() {
|
|
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
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
class: `${
|
|
388
|
-
variant:
|
|
389
|
-
shape:
|
|
390
|
-
})} ${
|
|
391
|
-
children:
|
|
400
|
+
function se({ children: e, className: t = "", variant: n, shape: r }) {
|
|
401
|
+
return /* @__PURE__ */ s("span", {
|
|
402
|
+
class: `${a({
|
|
403
|
+
variant: n,
|
|
404
|
+
shape: r
|
|
405
|
+
})} ${t}`,
|
|
406
|
+
children: e
|
|
392
407
|
});
|
|
393
408
|
}
|
|
394
|
-
function
|
|
395
|
-
return /* @__PURE__ */
|
|
409
|
+
function ce({ count: e, label: t }) {
|
|
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
|
|
403
|
-
label:
|
|
416
|
+
function Z({ label: t }) {
|
|
417
|
+
return w(e, {
|
|
418
|
+
label: t,
|
|
404
419
|
showSpinner: !0
|
|
405
420
|
});
|
|
406
421
|
}
|
|
407
|
-
function
|
|
408
|
-
return /* @__PURE__ */
|
|
422
|
+
function le({ busy: e, label: t, children: n }) {
|
|
423
|
+
return /* @__PURE__ */ s("div", {
|
|
409
424
|
class: "rv-loading-container",
|
|
410
425
|
"aria-busy": e,
|
|
411
|
-
children: [n, e && /* @__PURE__ */
|
|
426
|
+
children: [n, e && /* @__PURE__ */ s("div", {
|
|
412
427
|
class: "rv-loading-overlay",
|
|
413
|
-
children: /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ s(Z, { label: t })
|
|
414
429
|
})]
|
|
415
430
|
});
|
|
416
431
|
}
|
|
417
|
-
function
|
|
418
|
-
return /* @__PURE__ */
|
|
432
|
+
function ue({ title: e, description: t, children: n }) {
|
|
433
|
+
return /* @__PURE__ */ s("div", {
|
|
419
434
|
class: "rv-empty-state",
|
|
420
435
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
t && /* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ s("strong", { children: e }),
|
|
437
|
+
t && /* @__PURE__ */ s("p", { children: t }),
|
|
423
438
|
n
|
|
424
439
|
]
|
|
425
440
|
});
|
|
426
441
|
}
|
|
427
|
-
function
|
|
428
|
-
let
|
|
429
|
-
return
|
|
430
|
-
ref:
|
|
442
|
+
function Q({ children: e, label: t, onClose: n }) {
|
|
443
|
+
let a = i(null);
|
|
444
|
+
return r(() => a.current ? x(a.current, n) : void 0, [n]), /* @__PURE__ */ s("div", {
|
|
445
|
+
ref: a,
|
|
431
446
|
class: "rv-menu",
|
|
432
447
|
role: "menu",
|
|
433
448
|
"aria-label": t,
|
|
434
449
|
children: e
|
|
435
450
|
});
|
|
436
451
|
}
|
|
437
|
-
function
|
|
438
|
-
return /* @__PURE__ */
|
|
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
|
|
446
|
-
return /* @__PURE__ */
|
|
460
|
+
function $() {
|
|
461
|
+
return /* @__PURE__ */ s("div", {
|
|
447
462
|
role: "separator",
|
|
448
463
|
class: "rv-menu-separator"
|
|
449
464
|
});
|
|
450
465
|
}
|
|
451
|
-
function
|
|
452
|
-
let [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}, [
|
|
456
|
-
let
|
|
457
|
-
|
|
466
|
+
function fe({ label: e, children: t }) {
|
|
467
|
+
let [a, o] = n(!1), c = i(null), l = i(null), [u] = n(() => v("rv-ui"));
|
|
468
|
+
r(() => {
|
|
469
|
+
a && c.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
470
|
+
}, [a]);
|
|
471
|
+
let d = () => {
|
|
472
|
+
o(!1), l.current?.focus();
|
|
458
473
|
};
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
ref:
|
|
474
|
+
return /* @__PURE__ */ s("div", {
|
|
475
|
+
ref: c,
|
|
461
476
|
class: "rv-submenu",
|
|
462
477
|
onKeyDown: (e) => {
|
|
463
|
-
|
|
478
|
+
a && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), d());
|
|
464
479
|
},
|
|
465
|
-
children: [/* @__PURE__ */
|
|
466
|
-
ref:
|
|
480
|
+
children: [/* @__PURE__ */ s(j, {
|
|
481
|
+
ref: l,
|
|
467
482
|
variant: "ghost",
|
|
468
483
|
role: "menuitem",
|
|
469
484
|
"aria-haspopup": "menu",
|
|
470
|
-
"aria-expanded":
|
|
471
|
-
"aria-controls":
|
|
472
|
-
onClick: () =>
|
|
485
|
+
"aria-expanded": a,
|
|
486
|
+
"aria-controls": u,
|
|
487
|
+
onClick: () => o(!a),
|
|
473
488
|
onKeyDown: (e) => {
|
|
474
|
-
e.key === "ArrowRight" && (e.preventDefault(),
|
|
489
|
+
e.key === "ArrowRight" && (e.preventDefault(), o(!0));
|
|
475
490
|
},
|
|
476
491
|
children: e
|
|
477
|
-
}),
|
|
478
|
-
id:
|
|
479
|
-
children: /* @__PURE__ */
|
|
492
|
+
}), a && /* @__PURE__ */ s("div", {
|
|
493
|
+
id: u,
|
|
494
|
+
children: /* @__PURE__ */ s(Q, {
|
|
480
495
|
label: e,
|
|
481
|
-
onClose:
|
|
496
|
+
onClose: d,
|
|
482
497
|
children: t
|
|
483
498
|
})
|
|
484
499
|
})]
|
|
485
500
|
});
|
|
486
501
|
}
|
|
487
|
-
function
|
|
488
|
-
let t =
|
|
489
|
-
return n.current = e,
|
|
502
|
+
function pe(e) {
|
|
503
|
+
let t = i(null), n = i(e);
|
|
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,70 +513,70 @@ function ge(e) {
|
|
|
498
513
|
"aria-valuemax": e.max
|
|
499
514
|
});
|
|
500
515
|
}
|
|
501
|
-
function
|
|
502
|
-
let
|
|
503
|
-
let
|
|
504
|
-
if (
|
|
505
|
-
let
|
|
506
|
-
return /* @__PURE__ */
|
|
507
|
-
...
|
|
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];
|
|
519
|
+
if (n === !1) return null;
|
|
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, {
|
|
522
|
+
...n,
|
|
508
523
|
label: t,
|
|
509
|
-
icon:
|
|
524
|
+
icon: C[e],
|
|
510
525
|
size: "compact",
|
|
511
|
-
className: `rv-pagination-button rv-pagination-button--icon ${
|
|
526
|
+
className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
|
|
512
527
|
disabled: a,
|
|
513
528
|
onClick: () => {
|
|
514
|
-
a ||
|
|
529
|
+
a || i(r);
|
|
515
530
|
}
|
|
516
531
|
});
|
|
517
532
|
};
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
class: `rv-pagination ${
|
|
520
|
-
"aria-label":
|
|
533
|
+
return /* @__PURE__ */ s("nav", {
|
|
534
|
+
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${v}`,
|
|
535
|
+
"aria-label": a,
|
|
521
536
|
children: [
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
class: `rv-pagination-pages ${
|
|
527
|
-
children:
|
|
537
|
+
p && m && x("first", l),
|
|
538
|
+
p && x("previous", o),
|
|
539
|
+
_,
|
|
540
|
+
d === "numbered" ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("span", {
|
|
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-${
|
|
532
|
-
text: String(
|
|
533
|
-
label: `${
|
|
534
|
-
active:
|
|
535
|
-
disabled:
|
|
546
|
+
}, `gap-${n}`) : h(e, {
|
|
547
|
+
text: String(t + 1),
|
|
548
|
+
label: `${t + 1}`,
|
|
549
|
+
active: t === b,
|
|
550
|
+
disabled: f,
|
|
536
551
|
onClick: () => {
|
|
537
|
-
!
|
|
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
|
-
|
|
558
|
-
|
|
572
|
+
p && x("next", c),
|
|
573
|
+
p && m && x("last", u)
|
|
559
574
|
]
|
|
560
575
|
});
|
|
561
576
|
}
|
|
562
|
-
function
|
|
563
|
-
let i =
|
|
564
|
-
return /* @__PURE__ */
|
|
577
|
+
function he({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
578
|
+
let i = S(e, t, n);
|
|
579
|
+
return /* @__PURE__ */ s("svg", {
|
|
565
580
|
viewBox: "0 0 36 36",
|
|
566
581
|
class: "rv-circular-progress",
|
|
567
582
|
role: "progressbar",
|
|
@@ -569,14 +584,14 @@ function ve({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
569
584
|
"aria-valuemin": i.min,
|
|
570
585
|
"aria-valuemax": i.max,
|
|
571
586
|
"aria-valuenow": i.min + (i.max - i.min) * i.percent / 100,
|
|
572
|
-
children: [/* @__PURE__ */
|
|
587
|
+
children: [/* @__PURE__ */ s("circle", {
|
|
573
588
|
cx: "18",
|
|
574
589
|
cy: "18",
|
|
575
590
|
r: "16",
|
|
576
591
|
fill: "none",
|
|
577
592
|
stroke: "currentColor",
|
|
578
593
|
opacity: "0.15"
|
|
579
|
-
}), /* @__PURE__ */
|
|
594
|
+
}), /* @__PURE__ */ s("circle", {
|
|
580
595
|
cx: "18",
|
|
581
596
|
cy: "18",
|
|
582
597
|
r: "16",
|
|
@@ -588,28 +603,28 @@ function ve({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
588
603
|
})]
|
|
589
604
|
});
|
|
590
605
|
}
|
|
591
|
-
function
|
|
592
|
-
let
|
|
593
|
-
return i ? /* @__PURE__ */
|
|
606
|
+
function ge({ value: e, max: n = 5, label: r, onChange: i, disabled: a }) {
|
|
607
|
+
let c = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
|
|
608
|
+
return i ? /* @__PURE__ */ s(R, {
|
|
594
609
|
className: "rv-rating",
|
|
595
610
|
label: r,
|
|
596
611
|
value: e,
|
|
597
612
|
disabled: a,
|
|
598
|
-
options:
|
|
613
|
+
options: c.map((n) => ({
|
|
599
614
|
value: n,
|
|
600
|
-
label: /* @__PURE__ */
|
|
615
|
+
label: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(o, { filled: n <= e }), /* @__PURE__ */ s("span", {
|
|
601
616
|
class: "rv-visually-hidden",
|
|
602
617
|
children: n
|
|
603
618
|
})] })
|
|
604
619
|
})),
|
|
605
620
|
onChange: i
|
|
606
|
-
}) : /* @__PURE__ */
|
|
621
|
+
}) : /* @__PURE__ */ s("span", {
|
|
607
622
|
class: "rv-rating",
|
|
608
623
|
role: "img",
|
|
609
624
|
"aria-label": `${r}: ${e} / ${n}`,
|
|
610
|
-
children:
|
|
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 };
|