@revolist/ui 4.0.3-rc → 4.0.3
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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +136 -78
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-CgXQgkga.js} +19 -19
- 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/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-BpCTuIdm.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-CfeHXgIw.js} +279 -264
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-BKd7U8OW.js} +0 -8
- package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-Dcrjsunl.js} +42 -17
- package/_chunks/controls-B_6NJarZ.js +650 -0
- package/_chunks/{date-control-DrVFX13g.js → date-control-C4h4m75W.js} +1 -1
- package/_chunks/{date-time-qIhp5vaX.js → date-time-CTOSbzb0.js} +317 -278
- package/_chunks/dialog.parts-3w5FR06n.js +131 -0
- package/_chunks/{duration-CL68Em0o.js → duration-Bf2OS1V5.js} +5 -5
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-D5dZRhDe.js +288 -0
- package/_chunks/{framework-mount--RTLIqE-.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-BKwA5FnM.js → number-input-CmM6_2vR.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.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-CT2uD3go.js → popup-C35Isk7p.js} +115 -104
- package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-C-6wcb9U.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.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/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 +57 -22
- 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 +35 -3
- package/ai/_style.scss +76 -16
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +16 -3
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -6
- 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 +2 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +28 -6
- package/assignee/index.js +2 -2
- 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.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +16 -16
- package/calendar/_calendar.scss +21 -25
- 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 +9 -7
- 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-presentation.d.ts +8 -2
- package/control-presentation.js +25 -20
- package/controls.d.ts +12 -2
- 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 +239 -36
- 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 +9 -9
- 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.js +1 -1
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +19 -9
- package/dropdown/index.js +2 -2
- 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 -1
- package/duration/index.js +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/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 +5 -6
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +7 -7
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +12 -12
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +14 -57
- package/framework.js +227 -224
- package/history-controls.js +27 -1
- 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 +1 -2
- package/native-control.js +1 -1
- 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 +46 -43
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +71 -2
- package/pagination.js +11 -11
- 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 +203 -42
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +13 -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 +2 -0
- package/react-control.js +2 -2
- package/react.d.ts +7 -8
- package/react.js +67 -66
- 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 +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/rich-text/engine.d.ts +1 -0
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +4 -0
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +2 -0
- package/rich-text/style.scss +293 -44
- package/rich-text/syntax.d.ts +5 -0
- package/rich-text/toolbar.d.ts +1 -1
- package/rich-text/translations.d.ts +2 -0
- package/search-input/index.js +1 -1
- package/search-input/native.d.ts +21 -2
- package/select.d.ts +3 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/popover.js +4 -4
- package/status-feedback/status-feedback.scss +124 -35
- 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 +400 -80
- package/styles/_control.scss +30 -8
- 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 +369 -110
- 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.svelte +44 -11
- package/svelte.d.ts +1 -1
- package/svelte.js +3 -3
- 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/index.js +2 -2
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue.d.ts +29 -32
- package/vue.js +116 -121
- package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
- package/_chunks/choice-chips-CHQTUdLs.js +0 -110
- package/_chunks/color-picker-CudqPYZo.js +0 -138
- package/_chunks/control-tooltip-uscKfAnV.js +0 -100
- package/_chunks/controls-DsNi8V8I.js +0 -630
- package/_chunks/dialog.parts-CKGkC5zP.js +0 -134
- package/_chunks/editor-popup-WDdtVDNA.js +0 -81
- package/_chunks/history-controls-B3u3INEK.js +0 -27
- package/_chunks/mount-DQ1cpppK.js +0 -257
- package/_chunks/native-control-C_yok8_-.js +0 -605
- package/_chunks/request-trail-DSlFix6i.js +0 -618
- package/_chunks/rich-text-CH7gIqOS.js +0 -636
- 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 -10
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
|
@@ -1,27 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, r as t, t as n } from "../../../_chunks/top-layer-popup-CNSDdfJV.js";
|
|
2
|
+
import { n as r, t as i } from "../../../_chunks/tooltip-owner-DjdvqKzz.js";
|
|
3
|
+
import { createControlId as a } from "../../../core/control-id.js";
|
|
4
|
+
import { toSliderRange as o, unscaleSliderValue as s } from "./logic.js";
|
|
2
5
|
//#region src/filter/filters/slider/runtime.ts
|
|
3
|
-
function
|
|
4
|
-
return
|
|
6
|
+
function c(e) {
|
|
7
|
+
return o(Number(e.refs.fromSlider?.value ?? e.state.fromValueInt), Number(e.refs.toSlider?.value ?? e.state.toValueInt), e.scaleFactor);
|
|
5
8
|
}
|
|
6
|
-
function
|
|
7
|
-
let { fromValue: t, toValue:
|
|
8
|
-
e.refs.fromLabel && (e.refs.fromLabel.textContent =
|
|
9
|
+
function l(e) {
|
|
10
|
+
let { fromValue: t, toValue: n } = c(e), r = e.formatFromValue(t), i = e.formatToValue(n);
|
|
11
|
+
e.refs.fromLabel && (e.refs.fromLabel.textContent = r), e.refs.toLabel && (e.refs.toLabel.textContent = i), e.refs.fromInput && (e.refs.fromInput.value = e.formatInputValue(t)), e.refs.toInput && (e.refs.toInput.value = e.formatInputValue(n)), e.refs.fromSlider?.setAttribute("aria-valuetext", r), e.refs.toSlider?.setAttribute("aria-valuetext", i);
|
|
9
12
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
var u = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
function d(n, r, o, c, l = 100) {
|
|
15
|
+
if (r.textContent = c(s(Number(n.value), l)), e(r), !u.has(r)) {
|
|
16
|
+
r.id ||= a("rv-tooltip");
|
|
17
|
+
let e = n.getAttribute("aria-describedby");
|
|
18
|
+
n.setAttribute("aria-describedby", [e, r.id].filter(Boolean).join(" ")), r.hidden = !1, Object.assign(r.style, {
|
|
19
|
+
position: "fixed",
|
|
20
|
+
inset: "auto",
|
|
21
|
+
margin: "0",
|
|
22
|
+
transform: "none"
|
|
23
|
+
});
|
|
24
|
+
let o = t(r, "block"), s = n.ownerDocument.defaultView?.MutationObserver, c = s ? new s(() => {
|
|
25
|
+
n.isConnected || p(r);
|
|
26
|
+
}) : void 0;
|
|
27
|
+
c?.observe(n.ownerDocument, {
|
|
28
|
+
childList: !0,
|
|
29
|
+
subtree: !0
|
|
30
|
+
}), u.set(r, {
|
|
31
|
+
mode: o,
|
|
32
|
+
slider: n,
|
|
33
|
+
original: e,
|
|
34
|
+
disconnect: () => c?.disconnect()
|
|
35
|
+
}), i(n.ownerDocument, r, () => p(r));
|
|
36
|
+
}
|
|
37
|
+
let d = o.maxInt - o.minInt || 1, m = (Number(n.value) - o.minInt) / d * 100, h = r.parentElement?.getBoundingClientRect(), g = r.getBoundingClientRect();
|
|
38
|
+
h && g ? (r.style.left = `${h.left + f(m, h.width, g.width) - g.width / 2}px`, r.style.top = `${Math.max(8, h.top - g.height - 8)}px`) : r.style.left = `${m}%`, r.style.opacity = "1";
|
|
14
39
|
}
|
|
15
|
-
function
|
|
40
|
+
function f(e, t, n, r = 8) {
|
|
16
41
|
let i = n / 2, a = r + i, o = t - r - i;
|
|
17
42
|
if (a > o) return t / 2;
|
|
18
43
|
let s = Math.min(Math.max(e, 0), 100) / 100 * t;
|
|
19
44
|
return Math.min(Math.max(s, a), o);
|
|
20
45
|
}
|
|
21
|
-
function
|
|
46
|
+
function p(e) {
|
|
22
47
|
e.style.opacity = "0";
|
|
48
|
+
let t = u.get(e);
|
|
49
|
+
t && (t.disconnect?.(), n(e, t.mode), e.hidden = !0, t.original === null ? t.slider.removeAttribute("aria-describedby") : t.slider.setAttribute("aria-describedby", t.original), u.delete(e), r(e.ownerDocument, e));
|
|
23
50
|
}
|
|
24
|
-
function
|
|
51
|
+
function m(e, t, n) {
|
|
25
52
|
let r = getComputedStyle(n), i = r.getPropertyValue("--slider-color").trim() || r.getPropertyValue("--rv-ui-border").trim() || "var(--rv-ui-border)", a = r.getPropertyValue("--range-color").trim() || r.getPropertyValue("--rv-ui-accent").trim() || "var(--rv-ui-accent)", o = parseInt(t.max, 10) - parseInt(t.min, 10) || 1, s = parseInt(e.value, 10) - parseInt(e.min, 10), c = parseInt(t.value, 10) - parseInt(t.min, 10), l = s / o * 100, u = c / o * 100;
|
|
26
53
|
n.style.background = `linear-gradient(
|
|
27
54
|
to right,
|
|
@@ -32,20 +59,20 @@ function s(e, t, n) {
|
|
|
32
59
|
${i} ${u}%,
|
|
33
60
|
${i} 100%) center / 100% 4px no-repeat`;
|
|
34
61
|
}
|
|
35
|
-
function
|
|
62
|
+
function h(e) {
|
|
36
63
|
let { fromSlider: t, toSlider: n } = e.refs;
|
|
37
|
-
t && n && (
|
|
64
|
+
t && n && (m(t, n, n), l(e));
|
|
38
65
|
}
|
|
39
|
-
function
|
|
66
|
+
function g(e) {
|
|
40
67
|
e.refs.toSlider && (e.refs.toSlider.style.zIndex = Number(e.refs.toSlider.value) <= e.state.minInt ? "2" : "0");
|
|
41
68
|
}
|
|
42
|
-
function
|
|
43
|
-
e.onRangeChange(
|
|
69
|
+
function _(e) {
|
|
70
|
+
e.onRangeChange(c(e));
|
|
44
71
|
}
|
|
45
|
-
function
|
|
46
|
-
e.onRangeCommit?.(
|
|
72
|
+
function v(e) {
|
|
73
|
+
e.onRangeCommit?.(c(e));
|
|
47
74
|
}
|
|
48
|
-
function
|
|
75
|
+
function y(e) {
|
|
49
76
|
e.metaKey || e.ctrlKey || [
|
|
50
77
|
"ArrowDown",
|
|
51
78
|
"ArrowLeft",
|
|
@@ -60,4 +87,4 @@ function f(e) {
|
|
|
60
87
|
].includes(e.key) || /^[\d.,-]$/.test(e.key) || e.preventDefault();
|
|
61
88
|
}
|
|
62
89
|
//#endregion
|
|
63
|
-
export {
|
|
90
|
+
export { _ as emitRangeChange, v as emitRangeCommit, m as fillSlider, c as getCurrentRange, f as getTooltipCenterPosition, p as hideTooltip, y as preventInvalidNumberKey, g as setToggleAccessible, l as syncRangeText, h as syncVisuals, d as updateTooltip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { n as t } from "../../../_chunks/native-control-
|
|
2
|
+
import { n as t } from "../../../_chunks/native-control-B_fVA5bL.js";
|
|
3
3
|
//#region src/filter/filters/slider/single.tsx
|
|
4
4
|
function n({ min: n, max: r, value: i, step: a = 1, disabled: o = !1, id: s, className: c = "", ariaLabel: l, ariaValueText: u, ariaDescribedBy: d, onChange: f, onCommit: p, onKeyDown: m }) {
|
|
5
5
|
let h = r - n, g = h > 0 ? Math.max(0, Math.min(100, (i - n) / h * 100)) : 0;
|
package/filter-badge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { a as t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { n as r, t as i } from "./_chunks/choice-chips-
|
|
4
|
+
import { n as r, t as i } from "./_chunks/choice-chips-SkllS5Kl.js";
|
|
5
5
|
//#region src/filter-badge.tsx
|
|
6
6
|
function a(e) {
|
|
7
7
|
return /* @__PURE__ */ n(r, {
|
package/filter-controls.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare function OptionButton({ label, detail, selected, className, detai
|
|
|
7
7
|
className?: string;
|
|
8
8
|
detailClassName?: string;
|
|
9
9
|
}): h.JSX.Element;
|
|
10
|
-
export { Legend, type LegendItem } from './legend';
|
|
11
10
|
/** Caller supplies highlighting; UI owns overlay geometry and scroll synchronization. */
|
|
12
11
|
export declare function HighlightedTextInput({ highlight, className, inputClassName, highlightClassName, ...props }: Omit<JSX.IntrinsicElements['textarea'], 'className'> & {
|
|
13
12
|
highlight: ComponentChildren;
|
package/filter-controls.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { a as n, t as r } from "./_chunks/native-control-
|
|
4
|
-
import { Legend as i } from "./legend.js";
|
|
3
|
+
import { a as n, t as r } from "./_chunks/native-control-B_fVA5bL.js";
|
|
5
4
|
//#region src/filter-controls.tsx
|
|
6
|
-
function
|
|
5
|
+
function i({ label: e, detail: n, selected: i, className: a = "", detailClassName: o = "", ...s }) {
|
|
7
6
|
return /* @__PURE__ */ t(r, {
|
|
8
7
|
...s,
|
|
9
8
|
class: `rv-option-button ${a}`,
|
|
@@ -14,7 +13,7 @@ function a({ label: e, detail: n, selected: i, className: a = "", detailClassNam
|
|
|
14
13
|
})]
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
function
|
|
16
|
+
function a({ highlight: r, className: i = "", inputClassName: a = "", highlightClassName: o = "", ...s }) {
|
|
18
17
|
let c = e(null);
|
|
19
18
|
return /* @__PURE__ */ t("div", {
|
|
20
19
|
class: `rv-highlighted-input ${i}`,
|
|
@@ -34,7 +33,7 @@ function o({ highlight: r, className: i = "", inputClassName: a = "", highlightC
|
|
|
34
33
|
})]
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
|
-
function
|
|
36
|
+
function o({ children: e, className: n = "", label: r }) {
|
|
38
37
|
return /* @__PURE__ */ t("div", {
|
|
39
38
|
role: "group",
|
|
40
39
|
"aria-label": r,
|
|
@@ -43,4 +42,4 @@ function s({ children: e, className: n = "", label: r }) {
|
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
//#endregion
|
|
46
|
-
export {
|
|
45
|
+
export { a as HighlightedTextInput, o as InlineFieldGroup, i as OptionButton };
|
package/form-controls/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface FormFieldOptions {
|
|
2
|
+
readonly label: string;
|
|
3
|
+
readonly control: HTMLElement;
|
|
4
|
+
readonly hint?: string;
|
|
5
|
+
readonly className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createFormField(document: Document, options: FormFieldOptions): HTMLLabelElement;
|
|
8
|
+
export declare function createTextControl(document: Document, placeholder: string): HTMLInputElement;
|
|
9
|
+
/** DOM counterpart of Dropdown; callers own its lifetime. */
|
|
10
|
+
export { createDropdownControl } from '../dropdown/control';
|
package/form-controls/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "../_chunks/control-
|
|
5
|
-
//#region src/form-controls/index.
|
|
6
|
-
function i(
|
|
7
|
-
return n
|
|
2
|
+
import { createPreactElement as t } from "../preact-mount.js";
|
|
3
|
+
import { n } from "../_chunks/native-control-B_fVA5bL.js";
|
|
4
|
+
import { t as r } from "../_chunks/control-Dcrjsunl.js";
|
|
5
|
+
//#region src/form-controls/index.tsx
|
|
6
|
+
function i(n, r) {
|
|
7
|
+
return t(n, /* @__PURE__ */ e("label", {
|
|
8
8
|
class: ["rv-field", r.className].filter(Boolean).join(" "),
|
|
9
9
|
children: [
|
|
10
10
|
/* @__PURE__ */ e("span", {
|
|
@@ -25,7 +25,7 @@ function i(t, r) {
|
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
27
|
function a(r, i) {
|
|
28
|
-
return
|
|
28
|
+
return t(r, /* @__PURE__ */ e(n, {
|
|
29
29
|
type: "text",
|
|
30
30
|
placeholder: i
|
|
31
31
|
}));
|
|
@@ -8,7 +8,7 @@ export type FilterChipProps = {
|
|
|
8
8
|
readonly role?: 'listitem';
|
|
9
9
|
};
|
|
10
10
|
/** Removable chip shell; consumers retain filter policy and label/detail slots. */
|
|
11
|
-
export declare function FilterChip({ children, removeLabel, onRemove, className, removeClassName, role }: FilterChipProps): h.JSX.Element;
|
|
11
|
+
export declare function FilterChip({ children, removeLabel, onRemove, className, removeClassName, role, }: FilterChipProps): h.JSX.Element;
|
|
12
12
|
export interface FormFieldContentOptions {
|
|
13
13
|
readonly label: ComponentChildren;
|
|
14
14
|
readonly children: ComponentChildren;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e, o as t, u as n } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as r, s as i } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { createControlId as o } from "../core/control-id.js";
|
|
5
|
+
import { t as s } from "../_chunks/field-context-D57PnBbH.js";
|
|
6
|
+
import { nativeControlTag as c } from "../control-presentation.js";
|
|
7
7
|
//#region src/form-controls/presentation.tsx
|
|
8
8
|
function l({ children: e, removeLabel: t, onRemove: n, className: r = "", removeClassName: i = "", role: o }) {
|
|
9
9
|
return /* @__PURE__ */ a("span", {
|
|
@@ -34,9 +34,9 @@ function u({ label: e, children: t, hint: n, hintId: r, labelId: i = r ? `${r}-l
|
|
|
34
34
|
}) : null
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
|
-
function d({ label: e, children: t, hint: n, hintId:
|
|
38
|
-
let [h] = r(() =>
|
|
39
|
-
return /* @__PURE__ */ a(
|
|
37
|
+
function d({ label: e, children: t, hint: n, hintId: c, labelId: l, controlId: d, className: f = "", class: p, ...m }) {
|
|
38
|
+
let [h] = r(() => o("rv-field")), g = i(s), _ = c ?? `rv-field-hint-${h}`, v = l ?? `${_}-label`;
|
|
39
|
+
return /* @__PURE__ */ a(s.Provider, {
|
|
40
40
|
value: {
|
|
41
41
|
disabled: g.disabled,
|
|
42
42
|
labelId: v,
|
|
@@ -64,21 +64,21 @@ function f(r, i, a) {
|
|
|
64
64
|
if (Array.isArray(r)) return r.map((e) => f(e, i, a));
|
|
65
65
|
if (!n(r)) return r;
|
|
66
66
|
if (r.type === e) return t(r, { children: f(r.props.children, i, a) });
|
|
67
|
-
let o =
|
|
67
|
+
let o = c(r.type);
|
|
68
68
|
if (!o) return r;
|
|
69
|
-
let
|
|
69
|
+
let s = r;
|
|
70
70
|
if ([
|
|
71
71
|
"input",
|
|
72
72
|
"select",
|
|
73
73
|
"textarea"
|
|
74
74
|
].includes(o)) {
|
|
75
|
-
let e = new Set(`${
|
|
76
|
-
return t(
|
|
75
|
+
let e = new Set(`${s.props["aria-describedby"] ?? ""} ${i}`.trim().split(/\s+/));
|
|
76
|
+
return t(s, {
|
|
77
77
|
"aria-describedby": [...e].join(" "),
|
|
78
|
-
"aria-labelledby":
|
|
78
|
+
"aria-labelledby": s.props["aria-labelledby"] ?? (s.props["aria-label"] ? void 0 : a)
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return t(
|
|
81
|
+
return t(s, { children: f(s.props.children, i, a) });
|
|
82
82
|
}
|
|
83
83
|
function p({ children: e, icon: t, iconClassName: n = "", iconPosition: r = "before", className: i = "", class: o, ...s }) {
|
|
84
84
|
let c = t == null ? null : /* @__PURE__ */ a("span", {
|
package/formatting/index.d.ts
CHANGED
package/formatting/index.js
CHANGED
|
@@ -2,12 +2,13 @@ import { i as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { i as t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { SvgIcon as r } from "../icons/icon.js";
|
|
5
|
-
import { i, l as a, n as o, t as s } from "../_chunks/native-control-
|
|
5
|
+
import { i, l as a, n as o, t as s } from "../_chunks/native-control-B_fVA5bL.js";
|
|
6
6
|
import { t as c } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
7
|
-
import { n as l,
|
|
7
|
+
import { n as l, r as u, t as d } from "../_chunks/tooltip-D4xkio5G.js";
|
|
8
|
+
import { t as f } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
8
9
|
//#region src/formatting/inspector-section.tsx
|
|
9
|
-
function
|
|
10
|
-
let [f, p] = t(u), m = f ? s : o, h = l(m);
|
|
10
|
+
function p({ title: e, icon: a, expandLabel: o, collapseLabel: s, open: u = !1, children: d }) {
|
|
11
|
+
let [f, p] = t(u), m = f ? s : o, h = l(m, !0);
|
|
11
12
|
return /* @__PURE__ */ n("details", {
|
|
12
13
|
class: "rv-format-inspector-section",
|
|
13
14
|
open: f,
|
|
@@ -39,16 +40,16 @@ function d({ title: e, icon: a, expandLabel: o, collapseLabel: s, open: u = !1,
|
|
|
39
40
|
}
|
|
40
41
|
//#endregion
|
|
41
42
|
//#region src/formatting/icon-controls.tsx
|
|
42
|
-
var
|
|
43
|
+
var m = ({ icon: e }) => /* @__PURE__ */ n(r, {
|
|
43
44
|
svg: e,
|
|
44
45
|
className: "rv-format-icon"
|
|
45
46
|
});
|
|
46
|
-
function
|
|
47
|
+
function h({ value: e, options: t, ariaLabel: r, onChange: i }) {
|
|
47
48
|
return /* @__PURE__ */ n("div", {
|
|
48
49
|
class: "rv-format-segmented",
|
|
49
50
|
role: "group",
|
|
50
51
|
"aria-label": r,
|
|
51
|
-
children: t.map((t) => /* @__PURE__ */ n(
|
|
52
|
+
children: t.map((t) => /* @__PURE__ */ n(_, {
|
|
52
53
|
selected: t.value === e,
|
|
53
54
|
label: t.label,
|
|
54
55
|
icon: t.icon,
|
|
@@ -56,16 +57,16 @@ function p({ value: e, options: t, ariaLabel: r, onChange: i }) {
|
|
|
56
57
|
}, t.value))
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
return /* @__PURE__ */ n(
|
|
60
|
+
function g({ value: e, label: t, icon: r, onChange: i }) {
|
|
61
|
+
return /* @__PURE__ */ n(_, {
|
|
61
62
|
selected: e,
|
|
62
63
|
label: t,
|
|
63
64
|
icon: r,
|
|
64
65
|
onClick: () => i(!e)
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
let a = l(t);
|
|
68
|
+
function _({ selected: e, label: t, icon: r, onClick: i }) {
|
|
69
|
+
let a = l(t, !0);
|
|
69
70
|
return /* @__PURE__ */ n(s, {
|
|
70
71
|
type: "button",
|
|
71
72
|
class: `rv-format-segmented__button${e ? " rv-format-segmented__button--selected" : ""}`,
|
|
@@ -73,12 +74,12 @@ function h({ selected: e, label: t, icon: r, onClick: i }) {
|
|
|
73
74
|
"aria-pressed": e,
|
|
74
75
|
onClick: i,
|
|
75
76
|
...a.triggerProps,
|
|
76
|
-
children: [/* @__PURE__ */ n(
|
|
77
|
+
children: [/* @__PURE__ */ n(m, { icon: r }), a.tooltip]
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region src/formatting/typography-controls.tsx
|
|
81
|
-
var
|
|
82
|
+
var v = [
|
|
82
83
|
"Inter",
|
|
83
84
|
"Arial",
|
|
84
85
|
"Helvetica",
|
|
@@ -86,7 +87,7 @@ var g = [
|
|
|
86
87
|
"Times New Roman",
|
|
87
88
|
"Courier New"
|
|
88
89
|
];
|
|
89
|
-
function
|
|
90
|
+
function y({ value: t, fonts: r = v, labels: i, icons: s, onChange: c }) {
|
|
90
91
|
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("div", {
|
|
91
92
|
class: "rv-form-grid",
|
|
92
93
|
children: [/* @__PURE__ */ n("label", {
|
|
@@ -129,25 +130,25 @@ function _({ value: t, fonts: r = g, labels: i, icons: s, onChange: c }) {
|
|
|
129
130
|
role: "group",
|
|
130
131
|
"aria-label": i.typographySection,
|
|
131
132
|
children: [
|
|
132
|
-
/* @__PURE__ */ n(
|
|
133
|
+
/* @__PURE__ */ n(g, {
|
|
133
134
|
value: t.bold ?? !1,
|
|
134
135
|
label: i.bold,
|
|
135
136
|
icon: s.bold,
|
|
136
137
|
onChange: (e) => c({ bold: e })
|
|
137
138
|
}),
|
|
138
|
-
/* @__PURE__ */ n(
|
|
139
|
+
/* @__PURE__ */ n(g, {
|
|
139
140
|
value: t.italic ?? !1,
|
|
140
141
|
label: i.italic,
|
|
141
142
|
icon: s.italic,
|
|
142
143
|
onChange: (e) => c({ italic: e })
|
|
143
144
|
}),
|
|
144
|
-
/* @__PURE__ */ n(
|
|
145
|
+
/* @__PURE__ */ n(g, {
|
|
145
146
|
value: t.underline ?? !1,
|
|
146
147
|
label: i.underline,
|
|
147
148
|
icon: s.underline,
|
|
148
149
|
onChange: (e) => c({ underline: e })
|
|
149
150
|
}),
|
|
150
|
-
/* @__PURE__ */ n(
|
|
151
|
+
/* @__PURE__ */ n(g, {
|
|
151
152
|
value: t.strike ?? !1,
|
|
152
153
|
label: i.strike,
|
|
153
154
|
icon: s.strike,
|
|
@@ -158,7 +159,7 @@ function _({ value: t, fonts: r = g, labels: i, icons: s, onChange: c }) {
|
|
|
158
159
|
}
|
|
159
160
|
//#endregion
|
|
160
161
|
//#region src/formatting/comparison-preview.tsx
|
|
161
|
-
function
|
|
162
|
+
function b({ originalValue: e, formatted: t, formattedStyle: r, visual: i = !1, formattedClassName: a = "", labels: o }) {
|
|
162
163
|
return /* @__PURE__ */ n("section", {
|
|
163
164
|
class: `rv-format-preview${i ? " rv-format-preview--visual" : ""}`,
|
|
164
165
|
children: [
|
|
@@ -198,7 +199,7 @@ function v({ originalValue: e, formatted: t, formattedStyle: r, visual: i = !1,
|
|
|
198
199
|
role: "rowheader",
|
|
199
200
|
children: "1"
|
|
200
201
|
}),
|
|
201
|
-
/* @__PURE__ */ n(
|
|
202
|
+
/* @__PURE__ */ n(f, {
|
|
202
203
|
class: "rv-format-preview__gridcell",
|
|
203
204
|
role: "cell",
|
|
204
205
|
title: e,
|
|
@@ -228,4 +229,4 @@ function v({ originalValue: e, formatted: t, formattedStyle: r, visual: i = !1,
|
|
|
228
229
|
});
|
|
229
230
|
}
|
|
230
231
|
//#endregion
|
|
231
|
-
export {
|
|
232
|
+
export { b as ComparisonPreview, d as ControlTooltip, h as IconChoiceGroup, g as IconToggleButton, p as InspectorSection, y as TypographyControls, l as useControlTooltip, u as useTooltip };
|
package/formatting/styles.scss
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
display: grid;
|
|
6
6
|
gap: 10px;
|
|
7
7
|
padding: 14px 16px;
|
|
8
|
-
border-bottom: 1px solid
|
|
9
|
-
var(--rv-format-divider, var(--rv-ui-border));
|
|
8
|
+
border-bottom: 1px solid var(--rv-format-divider, var(--rv-ui-border));
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
.rv-format-preview__grid {
|
|
@@ -33,8 +32,7 @@
|
|
|
33
32
|
|
|
34
33
|
.rv-format-preview__corner,
|
|
35
34
|
.rv-format-preview__columnheader {
|
|
36
|
-
border-bottom: 1px solid
|
|
37
|
-
var(--rv-format-divider, var(--rv-ui-border));
|
|
35
|
+
border-bottom: 1px solid var(--rv-format-divider, var(--rv-ui-border));
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
.rv-format-preview__columnheader,
|
|
@@ -49,7 +47,9 @@
|
|
|
49
47
|
font-weight: var(--rv-ui-font-weight-medium, 500);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
.rv-format-preview__row {
|
|
50
|
+
.rv-format-preview__row {
|
|
51
|
+
display: contents;
|
|
52
|
+
}
|
|
53
53
|
|
|
54
54
|
.rv-format-preview__row > :last-child {
|
|
55
55
|
border-right: 0;
|
|
@@ -73,7 +73,9 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* Percentage-width timelines need their renderer wrapper to fill the flex cell. */
|
|
76
|
-
.rv-format-preview--visual
|
|
76
|
+
.rv-format-preview--visual
|
|
77
|
+
.rv-format-preview__formatted
|
|
78
|
+
> :first-child:has(.rv-timeline-container) {
|
|
77
79
|
width: 100%;
|
|
78
80
|
min-width: 0;
|
|
79
81
|
}
|
|
@@ -98,8 +100,7 @@
|
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
.rv-format-inspector-section {
|
|
101
|
-
border-bottom: 1px solid
|
|
102
|
-
var(--rv-format-divider, var(--rv-ui-border));
|
|
103
|
+
border-bottom: 1px solid var(--rv-format-divider, var(--rv-ui-border));
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.rv-format-inspector-section:last-child {
|
|
@@ -149,7 +150,8 @@
|
|
|
149
150
|
.rv-format-inspector-section__chevron {
|
|
150
151
|
flex: 0 0 auto;
|
|
151
152
|
color: var(--rv-format-muted, var(--rv-ui-text-muted));
|
|
152
|
-
transition: transform var(--rv-ui-motion-normal, 160ms)
|
|
153
|
+
transition: transform var(--rv-ui-motion-normal, 160ms)
|
|
154
|
+
var(--rv-ui-motion-ease, ease-out);
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
.rv-format-inspector-section[open] .rv-format-inspector-section__chevron {
|
|
@@ -195,7 +197,8 @@
|
|
|
195
197
|
color: inherit;
|
|
196
198
|
cursor: pointer;
|
|
197
199
|
transition:
|
|
198
|
-
background-color var(--rv-ui-motion-fast, 120ms)
|
|
200
|
+
background-color var(--rv-ui-motion-fast, 120ms)
|
|
201
|
+
var(--rv-ui-motion-ease, ease-out),
|
|
199
202
|
color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
200
203
|
}
|
|
201
204
|
|
|
@@ -216,59 +219,13 @@
|
|
|
216
219
|
box-shadow: none;
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
.rv-format-control-tooltip {
|
|
220
|
-
position: absolute;
|
|
221
|
-
z-index: 4;
|
|
222
|
-
top: calc(100% + 7px);
|
|
223
|
-
left: 50%;
|
|
224
|
-
width: max-content;
|
|
225
|
-
max-width: 220px;
|
|
226
|
-
padding: 5px 8px;
|
|
227
|
-
border: 1px solid var(--rv-format-divider, var(--rv-ui-border));
|
|
228
|
-
border-radius: 6px;
|
|
229
|
-
background: var(--rv-dialog-color, var(--rv-ui-text));
|
|
230
|
-
color: var(--rv-dialog-bg, var(--rv-ui-surface));
|
|
231
|
-
box-shadow: 0 6px 16px var(--rv-ui-shadow);
|
|
232
|
-
font-size: 12px;
|
|
233
|
-
font-weight: 400;
|
|
234
|
-
line-height: 1.3;
|
|
235
|
-
opacity: 0;
|
|
236
|
-
pointer-events: none;
|
|
237
|
-
transform: translate(-50%, -2px);
|
|
238
|
-
transition:
|
|
239
|
-
opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
|
|
240
|
-
transform var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.rv-format-inspector-section__summary > .rv-format-control-tooltip {
|
|
244
|
-
right: 0;
|
|
245
|
-
left: auto;
|
|
246
|
-
transform: translateY(-2px);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.rv-format-control-tooltip[data-visible='true'] {
|
|
250
|
-
opacity: 1;
|
|
251
|
-
transform: translate(-50%, 0);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.rv-format-inspector-section__summary
|
|
255
|
-
> .rv-format-control-tooltip[data-visible='true'] {
|
|
256
|
-
transform: translateY(0);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
222
|
@media (forced-colors: active) {
|
|
260
223
|
.rv-format-segmented__button--selected {
|
|
261
224
|
outline: 2px solid Highlight;
|
|
262
225
|
}
|
|
263
|
-
.rv-format-control-tooltip {
|
|
264
|
-
border: 1px solid CanvasText;
|
|
265
|
-
background: Canvas;
|
|
266
|
-
color: CanvasText;
|
|
267
|
-
}
|
|
268
226
|
}
|
|
269
227
|
@media (prefers-reduced-motion: reduce) {
|
|
270
|
-
.rv-format-inspector-section__chevron
|
|
271
|
-
.rv-format-control-tooltip {
|
|
228
|
+
.rv-format-inspector-section__chevron {
|
|
272
229
|
transition: none;
|
|
273
230
|
}
|
|
274
231
|
}
|