@revolist/ui 4.0.2-rc → 4.0.2
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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +405 -265
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-CpaUK7w1.js → calendar-CgXQgkga.js} +28 -18
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-SkllS5Kl.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BBMFmUNA.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/{color-picker-D90Jg-M8.js → color-picker-BpCTuIdm.js} +77 -72
- package/_chunks/{component-YDcfoOLz.js → component-CfeHXgIw.js} +301 -282
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-Dcrjsunl.js +118 -0
- package/_chunks/{controls-DIum-E66.js → controls-B_6NJarZ.js} +217 -182
- package/_chunks/{date-control-BJSzu79z.js → date-control-C4h4m75W.js} +1 -1
- package/_chunks/{date-time-BxPJusp9.js → date-time-CTOSbzb0.js} +344 -307
- package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
- package/_chunks/dialog.parts-3w5FR06n.js +131 -0
- package/_chunks/{duration-87U2EoMS.js → duration-Bf2OS1V5.js} +19 -18
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-D5dZRhDe.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount-Bk4O_T7T.js} +1 -1
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-BRdcG60g.js +267 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-B_fVA5bL.js +649 -0
- package/_chunks/{number-input-BeIadZuL.js → number-input-CmM6_2vR.js} +7 -7
- package/_chunks/{picker-DpP7iQLA.js → picker-DTqET-2W.js} +2 -2
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/popup-C35Isk7p.js +378 -0
- package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-C-6wcb9U.js} +1 -1
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-DIl1gkV6.js} +1 -1
- package/_chunks/request-trail-DrhdpWiH.js +762 -0
- package/_chunks/rich-text-BnilBbhU.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +55 -21
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +34 -5
- package/ai/index.d.ts +3 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +59 -6
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +27 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +34 -35
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +27 -27
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +2 -1
- package/buttons/svg-button.js +19 -19
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.js +1 -1
- package/calendar/header.js +1 -2
- package/calendar/index.js +2 -2
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +6 -24
- package/choice-chips/index.d.ts +3 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +24 -11
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-attributes.js +7 -7
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +19 -7
- package/controls.js +4 -3
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +242 -39
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/_distribution-chart.scss +113 -77
- 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/index.d.ts +1 -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 +5 -1
- package/dropdown/editor-dropdown.style.scss +54 -16
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +5 -0
- package/dropdown/lookup-field.js +2 -1
- package/dropdown/popup.d.ts +2 -2
- 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/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +39 -34
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +39 -1
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.d.ts +0 -1
- package/filter-controls.js +9 -10
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +4 -9
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +53 -45
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +40 -35
- package/formatting/styles.scss +14 -57
- package/framework.js +237 -226
- package/history-controls.d.ts +14 -0
- package/history-controls.js +27 -0
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +1 -1
- package/legend.d.ts +1 -1
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +6 -5
- package/native-control.js +3 -26
- package/native-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +41 -37
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +88 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +1 -1
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +205 -45
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +15 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +73 -71
- package/resource-picker/resource-picker.scss +66 -35
- package/rich-text/engine.d.ts +17 -19
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +11 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +6 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +295 -55
- package/rich-text/syntax.d.ts +5 -2
- package/rich-text/toolbar.d.ts +6 -6
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- package/select.d.ts +22 -0
- package/select.js +1 -0
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +9 -9
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +130 -34
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +78 -17
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +404 -82
- package/styles/_control.scss +42 -12
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -4
- package/styles/_field-configurator.scss +321 -23
- package/styles/_fields-grid.scss +49 -0
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +376 -116
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/configurator-actions.scss +241 -0
- package/styles/pagination.css +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +44 -32
- package/svelte.d.ts +1 -1
- package/svelte.js +33 -68
- package/switch/index.js +15 -14
- package/time-grid.d.ts +0 -1
- package/time-grid.js +38 -37
- package/timeline-track/_style.scss +96 -24
- 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/view-switcher.d.ts +23 -0
- package/vue.d.ts +51 -35
- package/vue.js +149 -178
- package/_chunks/chart-frame-BC99KjGa.js +0 -127
- package/_chunks/choice-chips-Cs4D-3nH.js +0 -110
- package/_chunks/compat.module-DDB2pm9O.js +0 -229
- package/_chunks/control-tooltip-ztgmsG7H.js +0 -100
- package/_chunks/dialog.parts-DBqo3Qwb.js +0 -134
- package/_chunks/dropdown-voWqmwAe.js +0 -357
- package/_chunks/editor-popup-D3JdS8l3.js +0 -81
- 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/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -12
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/react-native-select.d.ts +0 -6
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
- package/vue-native-select.d.ts +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { c as e, i as t } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as n, r, t as i } from "./hooks.module-CG3gN83z.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
+
import { createPreactElement as o } from "../preact-mount.js";
|
|
5
|
+
import { createControlId as s } from "../core/control-id.js";
|
|
6
|
+
import { t as c } from "./title-tooltip-Cw6LOZhb.js";
|
|
7
|
+
import { n as l } from "./rating-choice-C-6wcb9U.js";
|
|
8
|
+
import { a as u, n as d, t as f } from "./native-control-B_fVA5bL.js";
|
|
9
|
+
import { r as p } from "./popup-C35Isk7p.js";
|
|
10
|
+
import { registerControl as m, renderControl as h } from "../control-presentation.js";
|
|
10
11
|
import { paginationItems as g, renderPaginationButton as _ } from "../pagination.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { SegmentedSwitch as S } from "../segmented-switch/index.js";
|
|
16
|
-
import { attachMenuKeyboard as C, attachResizeHandle as ee } from "../surfaces.js";
|
|
12
|
+
import { n as v, t as y } from "./chevron-right-CM3ljziP.js";
|
|
13
|
+
import { SvgButton as b } from "../buttons/svg-button.js";
|
|
14
|
+
import { SegmentedSwitch as x } from "../segmented-switch/index.js";
|
|
15
|
+
import { attachMenuKeyboard as S, attachResizeHandle as C } from "../surfaces.js";
|
|
17
16
|
import { normalizeProgressRange as w } from "../progress/range.js";
|
|
17
|
+
import { badgeClassName as ee } from "../badge.js";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/icons/pagination.ts
|
|
20
20
|
var te = {
|
|
@@ -24,7 +24,7 @@ var te = {
|
|
|
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
|
-
//#region src/native-controls.
|
|
27
|
+
//#region src/native-controls.tsx
|
|
28
28
|
function T(e, t) {
|
|
29
29
|
return e("div", {
|
|
30
30
|
class: t.className ?? "rv-spinner",
|
|
@@ -37,7 +37,7 @@ function T(e, t) {
|
|
|
37
37
|
})] : []);
|
|
38
38
|
}
|
|
39
39
|
function E(e, t) {
|
|
40
|
-
return
|
|
40
|
+
return o(e, /* @__PURE__ */ a(f, {
|
|
41
41
|
unstyled: !0,
|
|
42
42
|
type: "button",
|
|
43
43
|
class: t.className ?? "rv-btn",
|
|
@@ -69,38 +69,31 @@ function O(e, t, n = Math.max(0, Math.floor(t))) {
|
|
|
69
69
|
}
|
|
70
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
|
-
return e("div", { class: `revo-slider ${t.thresholdClassNames ?? ""}` }, [e("div", { class: `revo-slider-container ${t.thresholdClassNames ?? ""}` }, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
value
|
|
85
|
-
"
|
|
86
|
-
"aria-valuetext"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
onMouseDown: t.onMouseDown
|
|
95
|
-
}),
|
|
96
|
-
...(t.thresholds ?? []).map((t) => e("div", {
|
|
97
|
-
class: `revo-slider-threshold ${t.className}`,
|
|
98
|
-
style: { left: `${n(t.value)}%` }
|
|
99
|
-
}))
|
|
100
|
-
]), ...t.hideValue ? [] : [e("span", { class: `revo-slider-value rv-badge rv-badge--inline ${t.thresholdClassNames ?? ""}` }, t.displayValue ?? t.value)]]);
|
|
72
|
+
return e("div", { class: `revo-slider ${t.thresholdClassNames ?? ""}` }, [e("div", { class: `revo-slider-container ${t.thresholdClassNames ?? ""}` }, [e("input", {
|
|
73
|
+
class: "revo-slider-input rv-single-slider",
|
|
74
|
+
style: { "--rv-single-slider-value": `${n(t.value)}%` },
|
|
75
|
+
type: "range",
|
|
76
|
+
min: t.min,
|
|
77
|
+
max: t.max,
|
|
78
|
+
step: t.step,
|
|
79
|
+
value: t.value,
|
|
80
|
+
"aria-label": t.label,
|
|
81
|
+
"aria-valuetext": String(t.displayValue ?? t.value),
|
|
82
|
+
onInput: (e) => {
|
|
83
|
+
let r = e.target;
|
|
84
|
+
r.style.setProperty("--rv-single-slider-value", `${n(Number(r.value))}%`);
|
|
85
|
+
let i = r.closest(".revo-slider")?.querySelector(".revo-slider-value"), a = String(t.formatValue?.(Number(r.value)) ?? Number(r.value));
|
|
86
|
+
r.setAttribute("aria-valuetext", a), i && (i.textContent = a);
|
|
87
|
+
},
|
|
88
|
+
onChange: (e) => t.onChange(Number(e.target.value), e),
|
|
89
|
+
onMouseDown: t.onMouseDown
|
|
90
|
+
}), ...(t.thresholds ?? []).map((t) => e("div", {
|
|
91
|
+
class: `revo-slider-threshold ${t.className}`,
|
|
92
|
+
style: { left: `${n(t.value)}%` }
|
|
93
|
+
}))]), ...t.hideValue ? [] : [e("span", { class: `revo-slider-value rv-badge rv-badge--inline ${t.thresholdClassNames ?? ""}` }, t.displayValue ?? t.value)]]);
|
|
101
94
|
}
|
|
102
95
|
function A(e, t) {
|
|
103
|
-
let n = (n, r, i) =>
|
|
96
|
+
let n = (n, r, i) => h(e, "button", {
|
|
104
97
|
class: {
|
|
105
98
|
"revo-counter-button": !0,
|
|
106
99
|
"revo-counter-button-disabled": r
|
|
@@ -120,8 +113,19 @@ function A(e, t) {
|
|
|
120
113
|
]);
|
|
121
114
|
}
|
|
122
115
|
//#endregion
|
|
116
|
+
//#region src/badge.view.tsx
|
|
117
|
+
function j({ children: e, className: t = "", variant: n, shape: r }) {
|
|
118
|
+
return /* @__PURE__ */ a("span", {
|
|
119
|
+
class: `${ee({
|
|
120
|
+
variant: n,
|
|
121
|
+
shape: r
|
|
122
|
+
})} ${t}`,
|
|
123
|
+
children: e
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
123
127
|
//#region src/alert.tsx
|
|
124
|
-
function
|
|
128
|
+
function M(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, description: o, actions: s, className: c = "", class: l = "", ...u }) {
|
|
125
129
|
let d = (t, n, ...r) => e(t, n, r);
|
|
126
130
|
return /* @__PURE__ */ d("div", {
|
|
127
131
|
...u,
|
|
@@ -133,36 +137,61 @@ function j(e, { children: t, tone: n = "neutral", label: r, icon: i, title: a, d
|
|
|
133
137
|
"aria-hidden": "true"
|
|
134
138
|
}, 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
139
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
140
|
+
function ne(t) {
|
|
141
|
+
return M(e, t);
|
|
138
142
|
}
|
|
139
143
|
//#endregion
|
|
140
144
|
//#region src/controls.tsx
|
|
141
|
-
var N =
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
var N = m(p(function({ href: e, target: t, rel: n, rounded: r = !1, variant: i = "default", size: o = "default", className: s = "", class: l, ...u }, d) {
|
|
146
|
+
let p = c(e !== void 0 && typeof u.title == "string" ? u.title : void 0), m = [
|
|
147
|
+
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
148
|
+
o === "compact" ? "rv-btn-sm" : "",
|
|
149
|
+
r ? "rv-btn-rounded" : "",
|
|
150
|
+
l,
|
|
151
|
+
s
|
|
152
|
+
].filter(Boolean).join(" ");
|
|
153
|
+
if (e !== void 0) {
|
|
154
|
+
let r = u.disabled || u.busy, { busy: i, disabled: o, title: s, ...c } = u;
|
|
155
|
+
return /* @__PURE__ */ a("a", {
|
|
156
|
+
...c,
|
|
157
|
+
ref: p,
|
|
158
|
+
href: r ? void 0 : e,
|
|
159
|
+
target: t,
|
|
160
|
+
rel: n,
|
|
161
|
+
class: m,
|
|
162
|
+
"aria-disabled": r || void 0,
|
|
163
|
+
"aria-busy": i || void 0,
|
|
164
|
+
tabIndex: r ? -1 : u.tabIndex,
|
|
165
|
+
onClick: (e) => {
|
|
166
|
+
r ? e.preventDefault() : u.onClick?.(e);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
return /* @__PURE__ */ a(f, {
|
|
171
|
+
ref: d,
|
|
172
|
+
rounded: r,
|
|
144
173
|
type: "button",
|
|
145
|
-
...
|
|
174
|
+
...u,
|
|
146
175
|
class: [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
176
|
+
i === "default" ? "rv-btn" : `rv-btn-${i}`,
|
|
177
|
+
o === "compact" ? "rv-btn-sm" : "",
|
|
178
|
+
l,
|
|
179
|
+
s
|
|
151
180
|
].filter(Boolean).join(" ")
|
|
152
181
|
});
|
|
153
182
|
}), "button");
|
|
154
|
-
function P({ label: e, icon: t, badge: n, children: r, className: i = "", variant:
|
|
155
|
-
return /* @__PURE__ */
|
|
183
|
+
function P({ label: e, icon: t, badge: n, children: r, className: i = "", variant: o = "ghost", size: s = "default", ...c }) {
|
|
184
|
+
return /* @__PURE__ */ a(b, {
|
|
156
185
|
...c,
|
|
157
186
|
label: e,
|
|
158
187
|
icon: t,
|
|
159
188
|
badge: n,
|
|
160
|
-
className: `rv-btn-icon ${
|
|
189
|
+
className: `rv-btn-icon ${o === "default" ? "rv-btn" : `rv-btn-${o}`} ${s === "compact" ? "rv-btn-sm" : ""} ${i}`,
|
|
161
190
|
children: r
|
|
162
191
|
});
|
|
163
192
|
}
|
|
164
193
|
function F({ pressed: e, onPressedChange: t, ...n }) {
|
|
165
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ a(N, {
|
|
166
195
|
...n,
|
|
167
196
|
"aria-pressed": e,
|
|
168
197
|
onClick: (r) => {
|
|
@@ -171,7 +200,7 @@ function F({ pressed: e, onPressedChange: t, ...n }) {
|
|
|
171
200
|
});
|
|
172
201
|
}
|
|
173
202
|
function I({ children: e, className: t = "", label: n }) {
|
|
174
|
-
return /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ a("div", {
|
|
175
204
|
role: "group",
|
|
176
205
|
"aria-label": n,
|
|
177
206
|
class: `rv-btn-group ${t}`,
|
|
@@ -179,19 +208,19 @@ function I({ children: e, className: t = "", label: n }) {
|
|
|
179
208
|
});
|
|
180
209
|
}
|
|
181
210
|
function L(e) {
|
|
182
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ a(x, {
|
|
183
212
|
...e,
|
|
184
213
|
role: "radiogroup"
|
|
185
214
|
});
|
|
186
215
|
}
|
|
187
216
|
function R(e) {
|
|
188
|
-
return /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ a(x, {
|
|
189
218
|
...e,
|
|
190
219
|
role: "tablist"
|
|
191
220
|
});
|
|
192
221
|
}
|
|
193
222
|
function z({ id: e, labelledBy: t, active: n, children: r }) {
|
|
194
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ a("div", {
|
|
195
224
|
id: e,
|
|
196
225
|
role: "tabpanel",
|
|
197
226
|
"aria-labelledby": t,
|
|
@@ -199,14 +228,14 @@ function z({ id: e, labelledBy: t, active: n, children: r }) {
|
|
|
199
228
|
children: r
|
|
200
229
|
});
|
|
201
230
|
}
|
|
202
|
-
function B({ className: e = "", value: t, options: r, onChange: i, label:
|
|
203
|
-
let [
|
|
204
|
-
return /* @__PURE__ */
|
|
231
|
+
function B({ className: e = "", value: t, options: r, onChange: i, label: o, disabled: c, name: l }) {
|
|
232
|
+
let [u] = n(() => s("rv-ui"));
|
|
233
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
205
234
|
class: `rv-radio-group ${e}`,
|
|
206
|
-
disabled:
|
|
207
|
-
children: [/* @__PURE__ */
|
|
235
|
+
disabled: c,
|
|
236
|
+
children: [/* @__PURE__ */ a("legend", { children: o }), r.map((e) => /* @__PURE__ */ a("label", { children: [/* @__PURE__ */ a(d, {
|
|
208
237
|
type: "radio",
|
|
209
|
-
name:
|
|
238
|
+
name: l ?? u,
|
|
210
239
|
checked: t === e.value,
|
|
211
240
|
disabled: e.disabled,
|
|
212
241
|
onChange: () => i(e.value)
|
|
@@ -214,7 +243,7 @@ function B({ className: e = "", value: t, options: r, onChange: i, label: a, dis
|
|
|
214
243
|
});
|
|
215
244
|
}
|
|
216
245
|
function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
217
|
-
return /* @__PURE__ */
|
|
246
|
+
return /* @__PURE__ */ a(d, {
|
|
218
247
|
type: "text",
|
|
219
248
|
...i,
|
|
220
249
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
@@ -224,7 +253,7 @@ function V({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
224
253
|
});
|
|
225
254
|
}
|
|
226
255
|
function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i }) {
|
|
227
|
-
return /* @__PURE__ */
|
|
256
|
+
return /* @__PURE__ */ a(u, {
|
|
228
257
|
...i,
|
|
229
258
|
class: `rv-control ${t ?? ""} ${e}`,
|
|
230
259
|
onInput: (e) => {
|
|
@@ -233,7 +262,7 @@ function H({ className: e = "", class: t, onValueChange: n, onInput: r, ...i })
|
|
|
233
262
|
});
|
|
234
263
|
}
|
|
235
264
|
function U({ onValueChange: e, ...t }) {
|
|
236
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ a(V, {
|
|
237
266
|
...t,
|
|
238
267
|
type: "number",
|
|
239
268
|
onValueChange: (t) => {
|
|
@@ -241,23 +270,23 @@ function U({ onValueChange: e, ...t }) {
|
|
|
241
270
|
}
|
|
242
271
|
});
|
|
243
272
|
}
|
|
244
|
-
function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label:
|
|
273
|
+
function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onChange: i, label: o, decreaseLabel: s, increaseLabel: c, disabled: l, readOnly: u }) {
|
|
245
274
|
let d = (e) => {
|
|
246
275
|
Number.isFinite(e) && i(Math.max(t, Math.min(n, e)));
|
|
247
276
|
};
|
|
248
|
-
return /* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ a("div", {
|
|
249
278
|
class: "rv-number-stepper",
|
|
250
279
|
role: "group",
|
|
251
|
-
"aria-label":
|
|
280
|
+
"aria-label": o,
|
|
252
281
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ a(N, {
|
|
254
283
|
disabled: l || u || e <= t,
|
|
255
|
-
"aria-label":
|
|
284
|
+
"aria-label": s,
|
|
256
285
|
onClick: () => d(e - r),
|
|
257
286
|
children: "−"
|
|
258
287
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
"aria-label":
|
|
288
|
+
/* @__PURE__ */ a(U, {
|
|
289
|
+
"aria-label": o,
|
|
261
290
|
value: e,
|
|
262
291
|
min: Number.isFinite(t) ? t : void 0,
|
|
263
292
|
max: Number.isFinite(n) ? n : void 0,
|
|
@@ -268,7 +297,7 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
268
297
|
e !== void 0 && d(e);
|
|
269
298
|
}
|
|
270
299
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ a(N, {
|
|
272
301
|
disabled: l || u || e >= n,
|
|
273
302
|
"aria-label": c,
|
|
274
303
|
onClick: () => d(e + r),
|
|
@@ -278,62 +307,53 @@ function W({ value: e, min: t = -Infinity, max: n = Infinity, step: r = 1, onCha
|
|
|
278
307
|
});
|
|
279
308
|
}
|
|
280
309
|
function G(e) {
|
|
281
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ a(V, {
|
|
282
311
|
...e,
|
|
283
312
|
type: "date"
|
|
284
313
|
});
|
|
285
314
|
}
|
|
286
315
|
function K(e) {
|
|
287
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ a(V, {
|
|
288
317
|
...e,
|
|
289
318
|
type: "time"
|
|
290
319
|
});
|
|
291
320
|
}
|
|
292
321
|
function q(e) {
|
|
293
|
-
return /* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ a(V, {
|
|
294
323
|
...e,
|
|
295
324
|
type: "datetime-local"
|
|
296
325
|
});
|
|
297
326
|
}
|
|
298
|
-
function J({
|
|
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__ */ s("span", {
|
|
327
|
+
function J({ children: e, className: t = "" }) {
|
|
328
|
+
return /* @__PURE__ */ a("span", {
|
|
309
329
|
class: `rv-btn-pill ${t}`,
|
|
310
330
|
children: e
|
|
311
331
|
});
|
|
312
332
|
}
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */
|
|
333
|
+
function re({ children: e, id: t }) {
|
|
334
|
+
return /* @__PURE__ */ a("span", {
|
|
315
335
|
class: "rv-field__hint",
|
|
316
336
|
id: t,
|
|
317
337
|
children: e
|
|
318
338
|
});
|
|
319
339
|
}
|
|
320
|
-
function
|
|
321
|
-
return /* @__PURE__ */
|
|
340
|
+
function Y({ children: e, id: t }) {
|
|
341
|
+
return /* @__PURE__ */ a("span", {
|
|
322
342
|
class: "rv-field__error",
|
|
323
343
|
id: t,
|
|
324
344
|
role: "alert",
|
|
325
345
|
children: e
|
|
326
346
|
});
|
|
327
347
|
}
|
|
328
|
-
function
|
|
329
|
-
return /* @__PURE__ */
|
|
348
|
+
function X({ children: e, title: t, description: n }) {
|
|
349
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
330
350
|
class: "rv-form-section",
|
|
331
351
|
children: [
|
|
332
|
-
t && /* @__PURE__ */
|
|
352
|
+
t && /* @__PURE__ */ a("legend", {
|
|
333
353
|
class: "rv-form-section__title",
|
|
334
354
|
children: t
|
|
335
355
|
}),
|
|
336
|
-
n && /* @__PURE__ */
|
|
356
|
+
n && /* @__PURE__ */ a("p", {
|
|
337
357
|
class: "rv-form-description",
|
|
338
358
|
children: n
|
|
339
359
|
}),
|
|
@@ -341,93 +361,84 @@ function Z({ children: e, title: t, description: n }) {
|
|
|
341
361
|
]
|
|
342
362
|
});
|
|
343
363
|
}
|
|
344
|
-
function
|
|
345
|
-
return /* @__PURE__ */
|
|
364
|
+
function ie({ children: e, className: t = "", summary: n, open: r, onToggle: i }) {
|
|
365
|
+
return /* @__PURE__ */ a("details", {
|
|
346
366
|
class: `rv-disclosure ${t}`.trim(),
|
|
347
367
|
open: r,
|
|
348
368
|
onToggle: i,
|
|
349
|
-
children: [/* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ a("summary", {
|
|
350
370
|
class: "rv-disclosure-summary",
|
|
351
371
|
children: n
|
|
352
372
|
}), e]
|
|
353
373
|
});
|
|
354
374
|
}
|
|
355
|
-
function
|
|
356
|
-
return /* @__PURE__ */
|
|
375
|
+
function ae({ children: e, className: t = "", label: n }) {
|
|
376
|
+
return /* @__PURE__ */ a("section", {
|
|
357
377
|
class: `rv-panel ${t}`,
|
|
358
378
|
"aria-label": n,
|
|
359
379
|
children: e
|
|
360
380
|
});
|
|
361
381
|
}
|
|
362
|
-
function
|
|
363
|
-
return /* @__PURE__ */
|
|
382
|
+
function oe({ children: e, className: t = "", label: n }) {
|
|
383
|
+
return /* @__PURE__ */ a("div", {
|
|
364
384
|
class: `rv-toolbar ${t}`,
|
|
365
385
|
role: "toolbar",
|
|
366
386
|
"aria-label": n,
|
|
367
387
|
children: e
|
|
368
388
|
});
|
|
369
389
|
}
|
|
370
|
-
function
|
|
371
|
-
return /* @__PURE__ */
|
|
390
|
+
function se({ children: e, className: t = "", label: n }) {
|
|
391
|
+
return /* @__PURE__ */ a("div", {
|
|
372
392
|
class: `rv-toolbar-group ${t}`,
|
|
373
393
|
role: "group",
|
|
374
394
|
"aria-label": n,
|
|
375
395
|
children: e
|
|
376
396
|
});
|
|
377
397
|
}
|
|
378
|
-
function
|
|
379
|
-
return /* @__PURE__ */
|
|
398
|
+
function ce() {
|
|
399
|
+
return /* @__PURE__ */ a("span", {
|
|
380
400
|
class: "rv-toolbar-separator",
|
|
381
401
|
role: "separator",
|
|
382
402
|
"aria-orientation": "vertical"
|
|
383
403
|
});
|
|
384
404
|
}
|
|
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
|
-
});
|
|
393
|
-
}
|
|
394
405
|
function le({ count: e, label: t }) {
|
|
395
|
-
return /* @__PURE__ */
|
|
406
|
+
return /* @__PURE__ */ a("span", {
|
|
396
407
|
class: "rv-count",
|
|
397
408
|
"aria-label": t,
|
|
398
409
|
children: e
|
|
399
410
|
});
|
|
400
411
|
}
|
|
401
|
-
function
|
|
412
|
+
function Z({ label: t }) {
|
|
402
413
|
return T(e, {
|
|
403
414
|
label: t,
|
|
404
415
|
showSpinner: !0
|
|
405
416
|
});
|
|
406
417
|
}
|
|
407
418
|
function ue({ busy: e, label: t, children: n }) {
|
|
408
|
-
return /* @__PURE__ */
|
|
419
|
+
return /* @__PURE__ */ a("div", {
|
|
409
420
|
class: "rv-loading-container",
|
|
410
421
|
"aria-busy": e,
|
|
411
|
-
children: [n, e && /* @__PURE__ */
|
|
422
|
+
children: [n, e && /* @__PURE__ */ a("div", {
|
|
412
423
|
class: "rv-loading-overlay",
|
|
413
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ a(Z, { label: t })
|
|
414
425
|
})]
|
|
415
426
|
});
|
|
416
427
|
}
|
|
417
428
|
function de({ title: e, description: t, children: n }) {
|
|
418
|
-
return /* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ a("div", {
|
|
419
430
|
class: "rv-empty-state",
|
|
420
431
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
t && /* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ a("strong", { children: e }),
|
|
433
|
+
t && /* @__PURE__ */ a("p", { children: t }),
|
|
423
434
|
n
|
|
424
435
|
]
|
|
425
436
|
});
|
|
426
437
|
}
|
|
427
|
-
function
|
|
428
|
-
let
|
|
429
|
-
return r(() =>
|
|
430
|
-
ref:
|
|
438
|
+
function Q({ children: e, label: t, onClose: n }) {
|
|
439
|
+
let o = i(null);
|
|
440
|
+
return r(() => o.current ? S(o.current, n) : void 0, [n]), /* @__PURE__ */ a("div", {
|
|
441
|
+
ref: o,
|
|
431
442
|
class: "rv-menu",
|
|
432
443
|
role: "menu",
|
|
433
444
|
"aria-label": t,
|
|
@@ -435,7 +446,7 @@ function $({ children: e, label: t, onClose: n }) {
|
|
|
435
446
|
});
|
|
436
447
|
}
|
|
437
448
|
function fe({ children: e, ...t }) {
|
|
438
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ a(N, {
|
|
439
450
|
variant: "ghost",
|
|
440
451
|
...t,
|
|
441
452
|
role: "menuitem",
|
|
@@ -443,50 +454,50 @@ function fe({ children: e, ...t }) {
|
|
|
443
454
|
});
|
|
444
455
|
}
|
|
445
456
|
function pe() {
|
|
446
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ a("div", {
|
|
447
458
|
role: "separator",
|
|
448
459
|
class: "rv-menu-separator"
|
|
449
460
|
});
|
|
450
461
|
}
|
|
451
462
|
function me({ label: e, children: t }) {
|
|
452
|
-
let [
|
|
463
|
+
let [o, c] = n(!1), l = i(null), u = i(null), [d] = n(() => s("rv-ui"));
|
|
453
464
|
r(() => {
|
|
454
|
-
|
|
455
|
-
}, [
|
|
456
|
-
let
|
|
457
|
-
|
|
465
|
+
o && l.current?.querySelector("[role=\"menu\"]")?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
|
|
466
|
+
}, [o]);
|
|
467
|
+
let f = () => {
|
|
468
|
+
c(!1), u.current?.focus();
|
|
458
469
|
};
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
ref:
|
|
470
|
+
return /* @__PURE__ */ a("div", {
|
|
471
|
+
ref: l,
|
|
461
472
|
class: "rv-submenu",
|
|
462
473
|
onKeyDown: (e) => {
|
|
463
|
-
|
|
474
|
+
o && (e.key === "ArrowLeft" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), f());
|
|
464
475
|
},
|
|
465
|
-
children: [/* @__PURE__ */
|
|
466
|
-
ref:
|
|
476
|
+
children: [/* @__PURE__ */ a(N, {
|
|
477
|
+
ref: u,
|
|
467
478
|
variant: "ghost",
|
|
468
479
|
role: "menuitem",
|
|
469
480
|
"aria-haspopup": "menu",
|
|
470
|
-
"aria-expanded":
|
|
471
|
-
"aria-controls":
|
|
472
|
-
onClick: () =>
|
|
481
|
+
"aria-expanded": o,
|
|
482
|
+
"aria-controls": d,
|
|
483
|
+
onClick: () => c(!o),
|
|
473
484
|
onKeyDown: (e) => {
|
|
474
|
-
e.key === "ArrowRight" && (e.preventDefault(),
|
|
485
|
+
e.key === "ArrowRight" && (e.preventDefault(), c(!0));
|
|
475
486
|
},
|
|
476
487
|
children: e
|
|
477
|
-
}),
|
|
478
|
-
id:
|
|
479
|
-
children: /* @__PURE__ */
|
|
488
|
+
}), o && /* @__PURE__ */ a("div", {
|
|
489
|
+
id: d,
|
|
490
|
+
children: /* @__PURE__ */ a(Q, {
|
|
480
491
|
label: e,
|
|
481
|
-
onClose:
|
|
492
|
+
onClose: f,
|
|
482
493
|
children: t
|
|
483
494
|
})
|
|
484
495
|
})]
|
|
485
496
|
});
|
|
486
497
|
}
|
|
487
|
-
function
|
|
498
|
+
function $(e) {
|
|
488
499
|
let t = i(null), n = i(e);
|
|
489
|
-
return n.current = e, r(() => t.current ?
|
|
500
|
+
return n.current = e, r(() => t.current ? C(t.current, () => n.current) : void 0, []), /* @__PURE__ */ a("div", {
|
|
490
501
|
class: "rv-resize-handle",
|
|
491
502
|
ref: t,
|
|
492
503
|
role: "separator",
|
|
@@ -498,33 +509,57 @@ function he(e) {
|
|
|
498
509
|
"aria-valuemax": e.max
|
|
499
510
|
});
|
|
500
511
|
}
|
|
501
|
-
function
|
|
512
|
+
function he({ edge: e, initialWidth: t, anchorRef: o, resizeParent: s = !1, max: c, ...l }) {
|
|
513
|
+
let u = i(null), d = o ?? u, [f, p] = n(t);
|
|
514
|
+
return r(() => {
|
|
515
|
+
let e = d.current?.parentElement, t = s ? e?.parentElement : e;
|
|
516
|
+
if (!t) return;
|
|
517
|
+
let n = () => {
|
|
518
|
+
let e = Math.round(t.getBoundingClientRect().width);
|
|
519
|
+
e > 0 && p(e);
|
|
520
|
+
};
|
|
521
|
+
n();
|
|
522
|
+
let r = t.ownerDocument.defaultView?.ResizeObserver, i = r && new r(n);
|
|
523
|
+
return i?.observe(t, { box: "border-box" }), () => i?.disconnect();
|
|
524
|
+
}, [d, s]), /* @__PURE__ */ a("div", {
|
|
525
|
+
ref: d,
|
|
526
|
+
class: "rv-panel-resize-handle",
|
|
527
|
+
"data-edge": e,
|
|
528
|
+
children: /* @__PURE__ */ a($, {
|
|
529
|
+
...l,
|
|
530
|
+
value: f,
|
|
531
|
+
max: c === void 0 ? void 0 : Math.max(c, f),
|
|
532
|
+
direction: e === "left" ? "rtl" : "ltr"
|
|
533
|
+
})
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function ge({ page: n, pageCount: r, onChange: i, label: o, previousLabel: s, nextLabel: c, firstLabel: l = "First page", lastLabel: u = "Last page", variant: d = "compact", disabled: f = !1, navigation: p = !0, boundaryButtons: m = !1, buttons: h, children: v, className: y = "" }) {
|
|
502
537
|
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
538
|
let n = h?.[e];
|
|
504
539
|
if (n === !1) return null;
|
|
505
|
-
let r = e === "first" ? 0 : e === "last" ? b - 1 : x + (e === "previous" ? -1 : 1),
|
|
506
|
-
return /* @__PURE__ */
|
|
540
|
+
let r = e === "first" ? 0 : e === "last" ? b - 1 : x + (e === "previous" ? -1 : 1), o = f || !!n?.disabled || !b || r < 0 || r >= b || r === x;
|
|
541
|
+
return /* @__PURE__ */ a(P, {
|
|
507
542
|
...n,
|
|
508
543
|
label: t,
|
|
509
544
|
icon: te[e],
|
|
510
545
|
size: "compact",
|
|
511
546
|
className: `rv-pagination-button rv-pagination-button--icon ${n?.className ?? ""}`,
|
|
512
|
-
disabled:
|
|
547
|
+
disabled: o,
|
|
513
548
|
onClick: () => {
|
|
514
|
-
|
|
549
|
+
o || i(r);
|
|
515
550
|
}
|
|
516
551
|
});
|
|
517
552
|
};
|
|
518
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ a("nav", {
|
|
519
554
|
class: `rv-pagination ${d === "numbered" ? "rv-pagination--numbered" : ""} ${y}`,
|
|
520
|
-
"aria-label":
|
|
555
|
+
"aria-label": o,
|
|
521
556
|
children: [
|
|
522
557
|
p && m && S("first", l),
|
|
523
|
-
p && S("previous",
|
|
558
|
+
p && S("previous", s),
|
|
524
559
|
v,
|
|
525
|
-
d === "numbered" ? /* @__PURE__ */
|
|
560
|
+
d === "numbered" ? /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a("span", {
|
|
526
561
|
class: `rv-pagination-pages ${b <= 5 ? "rv-pagination-pages--compact" : ""}`,
|
|
527
|
-
children: g(x, b, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */
|
|
562
|
+
children: g(x, b, 3).map((t, n) => t === "ellipsis" ? /* @__PURE__ */ a("span", {
|
|
528
563
|
class: "rv-pagination-ellipsis",
|
|
529
564
|
"aria-label": "More pages",
|
|
530
565
|
children: "…"
|
|
@@ -537,7 +572,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
537
572
|
!f && t !== x && i(t);
|
|
538
573
|
}
|
|
539
574
|
}))
|
|
540
|
-
}), b > 5 && /* @__PURE__ */
|
|
575
|
+
}), b > 5 && /* @__PURE__ */ a("span", {
|
|
541
576
|
class: "rv-pagination-summary rv-pagination-summary--responsive",
|
|
542
577
|
"aria-live": "polite",
|
|
543
578
|
children: [
|
|
@@ -545,7 +580,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
545
580
|
" / ",
|
|
546
581
|
b
|
|
547
582
|
]
|
|
548
|
-
})] }) : d === "compact" ? /* @__PURE__ */
|
|
583
|
+
})] }) : d === "compact" ? /* @__PURE__ */ a("span", {
|
|
549
584
|
class: "rv-pagination-summary",
|
|
550
585
|
"aria-live": "polite",
|
|
551
586
|
children: [
|
|
@@ -561,7 +596,7 @@ function ge({ page: n, pageCount: r, onChange: i, label: a, previousLabel: o, ne
|
|
|
561
596
|
}
|
|
562
597
|
function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
563
598
|
let i = w(e, t, n);
|
|
564
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ a("svg", {
|
|
565
600
|
viewBox: "0 0 36 36",
|
|
566
601
|
class: "rv-circular-progress",
|
|
567
602
|
role: "progressbar",
|
|
@@ -569,14 +604,14 @@ function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
569
604
|
"aria-valuemin": i.min,
|
|
570
605
|
"aria-valuemax": i.max,
|
|
571
606
|
"aria-valuenow": i.min + (i.max - i.min) * i.percent / 100,
|
|
572
|
-
children: [/* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ a("circle", {
|
|
573
608
|
cx: "18",
|
|
574
609
|
cy: "18",
|
|
575
610
|
r: "16",
|
|
576
611
|
fill: "none",
|
|
577
612
|
stroke: "currentColor",
|
|
578
613
|
opacity: "0.15"
|
|
579
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ a("circle", {
|
|
580
615
|
cx: "18",
|
|
581
616
|
cy: "18",
|
|
582
617
|
r: "16",
|
|
@@ -588,28 +623,28 @@ function _e({ value: e, min: t = 0, max: n = 100, label: r }) {
|
|
|
588
623
|
})]
|
|
589
624
|
});
|
|
590
625
|
}
|
|
591
|
-
function ve({ value: e, max: n = 5, label: r, onChange: i, disabled:
|
|
592
|
-
let
|
|
593
|
-
return i ? /* @__PURE__ */
|
|
626
|
+
function ve({ value: e, max: n = 5, label: r, onChange: i, disabled: o }) {
|
|
627
|
+
let s = Array.from({ length: Math.max(0, Math.min(100, Math.floor(n))) }, (e, t) => t + 1);
|
|
628
|
+
return i ? /* @__PURE__ */ a(B, {
|
|
594
629
|
className: "rv-rating",
|
|
595
630
|
label: r,
|
|
596
631
|
value: e,
|
|
597
|
-
disabled:
|
|
598
|
-
options:
|
|
632
|
+
disabled: o,
|
|
633
|
+
options: s.map((n) => ({
|
|
599
634
|
value: n,
|
|
600
|
-
label: /* @__PURE__ */
|
|
635
|
+
label: /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a(l, { filled: n <= e }), /* @__PURE__ */ a("span", {
|
|
601
636
|
class: "rv-visually-hidden",
|
|
602
637
|
children: n
|
|
603
638
|
})] })
|
|
604
639
|
})),
|
|
605
640
|
onChange: i
|
|
606
|
-
}) : /* @__PURE__ */
|
|
641
|
+
}) : /* @__PURE__ */ a("span", {
|
|
607
642
|
class: "rv-rating",
|
|
608
643
|
role: "img",
|
|
609
644
|
"aria-label": `${r}: ${e} / ${n}`,
|
|
610
|
-
children:
|
|
645
|
+
children: s.map((t) => /* @__PURE__ */ a(l, { filled: t <= e }))
|
|
611
646
|
});
|
|
612
647
|
}
|
|
613
|
-
|
|
648
|
+
m(V, "input"), m(U, "input"), m(G, "input"), m(K, "input"), m(q, "input"), m(H, "textarea");
|
|
614
649
|
//#endregion
|
|
615
|
-
export {
|
|
650
|
+
export { R as A, j as B, B as C, Z as D, L as E, oe as F, O as G, A as H, se as I, k as K, ce as L, H as M, K as N, me as O, F as P, ne as R, he as S, $ as T, T as U, E as V, D as W, pe as _, le as a, ge as b, ie as c, re as d, X as f, fe as g, Q as h, _e as i, V as j, z as k, de as l, ue as m, I as n, G as o, P as p, J as r, q as s, N as t, Y as u, U as v, ve as w, ae as x, W as y, M as z };
|