@revolist/ui 4.0.4-rc → 4.0.6-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/MIGRATION.md +36 -0
- package/OWNERSHIP.md +10 -10
- package/README.md +22 -4
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/badge.view-D30pMUfi.js +14 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/{calendar-xpZ0v3xf.js → calendar-QWDyYzdo.js} +19 -19
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/check-BwI7iCAm.js +4 -0
- package/_chunks/choice-chips-A6WR-WJe.js +126 -0
- package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
- package/_chunks/color-picker-BK4W1nd6.js +143 -0
- package/_chunks/{component-C_T2VN5u.js → component-CMkF17YZ.js} +281 -265
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-BKd7U8OW.js} +0 -8
- package/_chunks/configurator-actions-By8WSL2m.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/{control-AHKXD5Eu.js → control-mlH7l0Uq.js} +42 -17
- package/_chunks/{controls-DsNi8V8I.js → controls-FUU-MUKC.js} +171 -186
- package/_chunks/{date-control-DrVFX13g.js → date-control-Dup_P3w5.js} +1 -1
- package/_chunks/{date-time-qIhp5vaX.js → date-time-9z6pAG5T.js} +317 -278
- package/_chunks/dialog.parts-Bi7YbXqS.js +131 -0
- package/_chunks/{duration-CL68Em0o.js → duration-D7oRjsmP.js} +5 -5
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-BCINdXpU.js +223 -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-Cw2zk58T.js +266 -0
- package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
- package/_chunks/native-control-pFMuHf3G.js +644 -0
- package/_chunks/{number-input-BKwA5FnM.js → number-input-DqXV6vgP.js} +7 -7
- package/_chunks/{picker-h1P5RUgp.js → picker-gEGTu1Ki.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-DbxdUJr-.js} +1 -1
- package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-B0_13Sja.js} +1 -1
- package/_chunks/request-trail-CCSK6TJA.js +753 -0
- package/_chunks/rich-text-5rnc8lpI.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -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/_variables.scss +33 -32
- package/ai/_chat.scss +28 -3
- package/ai/_style.scss +55 -2
- package/ai/chat.d.ts +3 -1
- package/ai/components.d.ts +13 -2
- package/ai/index.d.ts +1 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +17 -1
- 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/assignee/assignee.scss +5 -1
- package/assignee/index.js +2 -2
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +33 -32
- package/badge.view.d.ts +8 -0
- package/brush-range/component.d.ts +1 -3
- package/brush-range/component.js +27 -27
- 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 +2 -2
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/checkbox/checkbox.scss +1 -22
- 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 +1 -1
- package/color-palette/color-picker.js +2 -2
- 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 +61 -0
- package/configurator-drop-zone.d.ts +38 -0
- package/configurator-drop-zone.js +64 -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 +1 -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/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/field.d.ts +3 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +64 -7
- 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 +12 -54
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.js +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/editor-dropdown.style.scss +5 -0
- 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/field-configurator.d.ts +27 -0
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/filter/filters/slider/_slider.scss +8 -25
- 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.js +12 -12
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +22 -21
- package/formatting/styles.scss +2 -47
- package/framework.js +226 -222
- package/history-controls.js +27 -1
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- 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.js +46 -43
- package/number-input/index.js +1 -1
- package/package.json +36 -1
- package/pagination.js +11 -11
- package/pdf-viewer/index.js +1 -1
- package/pickers.d.ts +5 -1
- package/preact-mount.js +1 -1
- package/preact.d.ts +8 -6
- package/preact.js +71 -64
- package/rating-choice.js +1 -1
- package/react-control.d.ts +2 -0
- package/react-control.js +2 -2
- package/react.d.ts +5 -6
- package/react.js +68 -66
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +4 -4
- 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 +165 -70
- package/rich-text/syntax.d.ts +5 -0
- 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/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/popover.js +4 -4
- package/styles/_alert.scss +18 -4
- package/styles/_compositions.scss +3 -3
- package/styles/_editor-slider.scss +0 -2
- package/styles/_field-configurator.scss +147 -0
- package/styles/_fields-grid.scss +37 -0
- package/styles/_palette.scss +0 -24
- package/styles/_primitives.scss +28 -19
- package/styles/configurator-actions.scss +141 -0
- package/styles/{legacy-pagination.css → pagination.css} +19 -2
- package/styles.css +1 -1
- package/styles.scss +2 -2
- package/surfaces.d.ts +36 -2
- package/surfaces.js +35 -132
- 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/index.js +2 -2
- package/ui.css +1 -1
- package/vue.d.ts +26 -30
- package/vue.js +117 -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/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/surfaces.view.d.ts +0 -63
- /package/styles/{legacy-rating.css → rating.css} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.rv-ai-result-content {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
border: 1px solid var(--rv-ui-border);
|
|
7
|
+
border-radius: 0.75rem;
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
background: var(--rv-ui-surface);
|
|
10
|
+
overflow-wrap: anywhere;
|
|
11
|
+
}
|
|
12
|
+
.rv-ai-result-table-scroll {
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
overflow: auto;
|
|
15
|
+
}
|
|
16
|
+
.rv-ai-result-content--grid {
|
|
17
|
+
border: 0;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
.rv-ai-result-table {
|
|
23
|
+
width: 100%;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
overflow-wrap: normal;
|
|
26
|
+
border-collapse: collapse;
|
|
27
|
+
font: inherit;
|
|
28
|
+
caption {
|
|
29
|
+
text-align: start;
|
|
30
|
+
padding-block-end: 0.75rem;
|
|
31
|
+
}
|
|
32
|
+
caption span {
|
|
33
|
+
display: block;
|
|
34
|
+
color: var(--rv-ui-text-muted);
|
|
35
|
+
font-size: 0.8125rem;
|
|
36
|
+
margin-block-start: 0.25rem;
|
|
37
|
+
}
|
|
38
|
+
th,
|
|
39
|
+
td {
|
|
40
|
+
min-width: 6rem;
|
|
41
|
+
padding: 0.625rem;
|
|
42
|
+
text-align: start;
|
|
43
|
+
border-block-end: 1px solid var(--rv-ui-border);
|
|
44
|
+
}
|
|
45
|
+
th {
|
|
46
|
+
color: var(--rv-ui-text-muted);
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
}
|
|
49
|
+
tbody tr:last-child td {
|
|
50
|
+
border: 0;
|
|
51
|
+
}
|
|
52
|
+
.rv-ai-result-number {
|
|
53
|
+
min-width: 4rem;
|
|
54
|
+
text-align: end;
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.rv-ai-result-description,
|
|
60
|
+
.rv-ai-result-empty {
|
|
61
|
+
color: var(--rv-ui-text-muted);
|
|
62
|
+
margin-block: 0.25rem 0;
|
|
63
|
+
}
|
|
64
|
+
.rv-ai-result-metrics {
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
|
|
67
|
+
gap: 1rem;
|
|
68
|
+
margin-block: 1rem 0;
|
|
69
|
+
dt {
|
|
70
|
+
color: var(--rv-ui-text-muted);
|
|
71
|
+
font-size: 0.8125rem;
|
|
72
|
+
}
|
|
73
|
+
dd {
|
|
74
|
+
margin: 0.25rem 0 0;
|
|
75
|
+
font-size: 1.25rem;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.rv-ai-result-text {
|
|
81
|
+
margin-block-end: 0;
|
|
82
|
+
white-space: pre-wrap;
|
|
83
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentChildren } from '../../_vendor/preact/src/index';
|
|
2
|
+
import { AiResultContent, AiTableResult } from './types';
|
|
3
|
+
export type AiTableRenderer = (result: AiTableResult) => ComponentChildren;
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './table';
|
|
6
|
+
export * from './metrics';
|
|
7
|
+
export * from './text';
|
|
8
|
+
export declare function AiResultView({ result, renderTable }: {
|
|
9
|
+
result: AiResultContent;
|
|
10
|
+
renderTable?: AiTableRenderer;
|
|
11
|
+
}): ComponentChildren;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Presentation-only values. No HTML, grid records or executable render callbacks. */
|
|
2
|
+
export type AiResultValue = string | number | boolean | null;
|
|
3
|
+
interface ResultBase {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AiTableResult extends ResultBase {
|
|
8
|
+
kind: 'table';
|
|
9
|
+
columns: readonly {
|
|
10
|
+
label: string;
|
|
11
|
+
numeric?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
rows: readonly (readonly AiResultValue[])[];
|
|
14
|
+
}
|
|
15
|
+
export interface AiMetricsResult extends ResultBase {
|
|
16
|
+
kind: 'metrics';
|
|
17
|
+
items: readonly {
|
|
18
|
+
label: string;
|
|
19
|
+
value: AiResultValue;
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
export interface AiTextResult extends ResultBase {
|
|
23
|
+
kind: 'text';
|
|
24
|
+
text: string;
|
|
25
|
+
}
|
|
26
|
+
/** Add new result kinds here and their renderer in AiResultView. */
|
|
27
|
+
export type AiResultContent = AiTableResult | AiMetricsResult | AiTextResult;
|
|
28
|
+
export declare function formatAiResultValue(value: AiResultValue): string;
|
|
29
|
+
export {};
|
package/ai/transcript.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AiAssistantMountState } from './mount';
|
|
2
|
+
import { AiResultContent } from './results';
|
|
2
3
|
export interface AiTranscriptMessage {
|
|
3
4
|
id: string;
|
|
4
5
|
group: string;
|
|
@@ -6,6 +7,7 @@ export interface AiTranscriptMessage {
|
|
|
6
7
|
text: string;
|
|
7
8
|
phase?: AiAssistantMountState['phase'];
|
|
8
9
|
details?: string;
|
|
10
|
+
result?: AiResultContent;
|
|
9
11
|
pending?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/** Local presentation state only. Never supplies model context or persists values. */
|
package/ai/translations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** English message IDs and fallbacks; hosts supply translated values. */
|
|
2
|
-
export declare const AI_UI_MESSAGES: readonly ["AI chat", "Clear chat", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
2
|
+
export declare const AI_UI_MESSAGES: readonly ["AI chat", "No results", "Clear chat", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Proposed changes", "Change", "Current", "Proposed", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
3
3
|
export type AiUiTranslations = Partial<Record<(typeof AI_UI_MESSAGES)[number], string>>;
|
|
4
4
|
export declare function translateAiText(text: string, translations?: Readonly<Record<string, string | undefined>>, values?: Readonly<Record<string, string | number>>): string;
|
package/assignee/assignee.scss
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.rv-assignee-editor .selected-tag {
|
|
48
|
+
.rv-assignee-editor.dropdown-container .selected-tag {
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
border-radius: 16px;
|
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
font-size: 14px;
|
|
54
54
|
line-height: 18px;
|
|
55
55
|
white-space: nowrap;
|
|
56
|
+
color: var(--rv-ui-text);
|
|
57
|
+
|
|
58
|
+
// Keep the full 24px remove target within the 24px value pill.
|
|
59
|
+
> button.rv-remove-button { margin-block: -3px; }
|
|
56
60
|
}
|
|
57
61
|
.rv-assignee-picker__allocations {
|
|
58
62
|
display: grid;
|
package/assignee/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { l as r, n as i } from "../_chunks/native-control-
|
|
4
|
-
import {
|
|
3
|
+
import { l as r, n as i } from "../_chunks/native-control-pFMuHf3G.js";
|
|
4
|
+
import { L as a } from "../_chunks/controls-FUU-MUKC.js";
|
|
5
5
|
import { SearchInput as o } from "../search-input/index.js";
|
|
6
6
|
import { SharedResourcePicker as s } from "../resource-picker/resource-picker.js";
|
|
7
7
|
import { EditorActions as c } from "../editor-actions.js";
|
package/avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
|
+
export { AVATAR_CELL_BACKGROUNDS } from '../color-palette/common-palettes';
|
|
3
|
+
export type AvatarTemplateOptions = {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
index?: number;
|
|
7
|
+
initials?: string;
|
|
8
|
+
key?: string | number;
|
|
9
|
+
label?: string;
|
|
10
|
+
rectangular?: boolean;
|
|
11
|
+
size?: number;
|
|
12
|
+
style?: Record<string, string | number | null | undefined>;
|
|
13
|
+
value?: unknown;
|
|
14
|
+
};
|
|
15
|
+
/** Shared Preact avatar, including image-error fallback. */
|
|
16
|
+
export declare function AvatarElement({ options }: {
|
|
17
|
+
options?: AvatarTemplateOptions;
|
|
18
|
+
}): h.JSX.Element;
|
|
19
|
+
export declare function createAvatarElement(document: Document, options?: AvatarTemplateOptions): HTMLSpanElement;
|
|
20
|
+
export declare function getAvatarCellBackground(index?: number): "linear-gradient(135deg, #7dd3fc, #2563eb)" | "linear-gradient(135deg, #facc15, #b45309)" | "linear-gradient(135deg, #f9a8d4, #be185d)" | "linear-gradient(135deg, #a5b4fc, #4f46e5)" | "linear-gradient(135deg, #86efac, #15803d)" | "linear-gradient(135deg, #fda4af, #be123c)" | "linear-gradient(135deg, #c4b5fd, #7c3aed)" | "linear-gradient(135deg, #fdba74, #c2410c)";
|
|
21
|
+
export declare function getAvatarInitials(value: unknown): string;
|
|
22
|
+
export declare function getAvatarIndex(value: unknown): number;
|
|
23
|
+
export declare function avatarTemplate(h: any, options?: AvatarTemplateOptions): any;
|
|
24
|
+
/** Shared avatar-and-label presentation; resource/row lookup stays with consumers. */
|
|
25
|
+
export declare function avatarWithTextTemplate(h: any, options?: AvatarTemplateOptions): any;
|
package/avatar/index.js
CHANGED
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createPreactElement as n } from "../preact-mount.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { t as r } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
5
|
+
import { AVATAR_CELL_BACKGROUNDS as i } from "../color-palette/common-palettes.js";
|
|
6
|
+
//#region src/avatar/index.tsx
|
|
7
|
+
function a({ options: n = {} }) {
|
|
8
|
+
let [a, o] = e(!1), { index: s = 0, initials: u, rectangular: f = !1, size: p, value: m } = n, h = [
|
|
8
9
|
"avatar-cell",
|
|
9
|
-
`avatar-cell--${Math.max(
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
`avatar-cell--${Math.max(s, 0) % i.length}`,
|
|
11
|
+
f ? "avatar-cell--rectangular rectangular" : "",
|
|
12
|
+
d(p),
|
|
12
13
|
n.className
|
|
13
14
|
].filter(Boolean).join(" ");
|
|
14
|
-
return /* @__PURE__ */ t(
|
|
15
|
-
class:
|
|
16
|
-
title: n.label || String(
|
|
15
|
+
return /* @__PURE__ */ t(r, {
|
|
16
|
+
class: h,
|
|
17
|
+
title: n.label || String(m ?? ""),
|
|
17
18
|
role: "img",
|
|
18
19
|
"aria-label": n.ariaLabel || n.label || void 0,
|
|
19
20
|
style: n.style,
|
|
20
|
-
children:
|
|
21
|
+
children: l(m) && !a ? /* @__PURE__ */ t("img", {
|
|
21
22
|
class: "avatar-cell__image",
|
|
22
|
-
src: String(
|
|
23
|
+
src: String(m),
|
|
23
24
|
alt: n.label || "",
|
|
24
|
-
onError: () =>
|
|
25
|
-
}) :
|
|
25
|
+
onError: () => o(!0)
|
|
26
|
+
}) : u ?? c(m)
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
return n(e, /* @__PURE__ */ t(
|
|
29
|
+
function o(e, r = {}) {
|
|
30
|
+
return n(e, /* @__PURE__ */ t(a, { options: r }));
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
32
|
+
function s(e = 0) {
|
|
33
|
+
return i[Math.max(e, 0) % i.length];
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function c(e) {
|
|
35
36
|
return String(e ?? "").split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function l(e) {
|
|
38
39
|
return typeof e == "string" && /^(https?:|data:image\/|blob:|\/|\.\.?\/)/.test(e);
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function u(e) {
|
|
41
42
|
let t = Number(e);
|
|
42
43
|
return Number.isFinite(t) ? Math.max(t - 1, 0) : 0;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function d(e) {
|
|
45
46
|
if (e) return e <= 16 ? "avatar-cell--size-16" : e <= 20 ? "avatar-cell--size-20" : e <= 32 ? "avatar-cell--size-32" : e <= 40 ? "avatar-cell--size-40" : "avatar-cell--size-48";
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
let { index: n = 0, initials:
|
|
48
|
+
function f(e, t = {}) {
|
|
49
|
+
let { index: n = 0, initials: r, rectangular: a = !1, size: o, value: s } = t, u = l(s), f = d(o), p = {
|
|
49
50
|
class: [
|
|
50
51
|
"avatar-cell",
|
|
51
|
-
`avatar-cell--${Math.max(n, 0) %
|
|
52
|
+
`avatar-cell--${Math.max(n, 0) % i.length}`,
|
|
52
53
|
a ? "avatar-cell--rectangular rectangular" : "",
|
|
53
54
|
f,
|
|
54
55
|
t.className
|
|
55
56
|
].filter(Boolean).join(" "),
|
|
56
|
-
title: t.label || String(
|
|
57
|
+
title: t.label || String(s ?? "")
|
|
57
58
|
};
|
|
58
|
-
return t.key !== void 0 && (p.key = t.key), t.style !== void 0 && (p.style = t.style), t.ariaLabel !== void 0 && (p["aria-label"] = t.ariaLabel),
|
|
59
|
+
return t.key !== void 0 && (p.key = t.key), t.style !== void 0 && (p.style = t.style), t.ariaLabel !== void 0 && (p["aria-label"] = t.ariaLabel), u ? e("span", p, [e("img", {
|
|
59
60
|
class: "avatar-cell__image",
|
|
60
|
-
src: String(
|
|
61
|
+
src: String(s),
|
|
61
62
|
alt: t.label || ""
|
|
62
|
-
})]) : e("span", p,
|
|
63
|
+
})]) : e("span", p, r ?? c(s));
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
return e("span", { class: "avatar-cell-with-text" }, [
|
|
65
|
+
function p(e, t = {}) {
|
|
66
|
+
return e("span", { class: "avatar-cell-with-text" }, [f(e, t), e("span", { class: "avatar-cell-with-text__label" }, String(t.label ?? t.value ?? ""))]);
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
|
-
export {
|
|
69
|
+
export { i as AVATAR_CELL_BACKGROUNDS, a as AvatarElement, f as avatarTemplate, p as avatarWithTextTemplate, o as createAvatarElement, s as getAvatarCellBackground, u as getAvatarIndex, c as getAvatarInitials };
|
package/badge.view.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h, ComponentChildren } from './_vendor/preact/src/index';
|
|
2
|
+
import { BadgeOptions } from './badge';
|
|
3
|
+
/** Shared badge presentation, independent of toolbar and form controls. */
|
|
4
|
+
export declare function Badge({ children, className, variant, shape }: BadgeOptions & {
|
|
5
|
+
children?: ComponentChildren;
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
}): h.JSX.Element;
|
|
@@ -7,11 +7,9 @@ export interface BrushRangeProps {
|
|
|
7
7
|
readonly startLabel: ComponentChildren;
|
|
8
8
|
readonly selectionLabel: ComponentChildren;
|
|
9
9
|
readonly endLabel: ComponentChildren;
|
|
10
|
-
/** Retains the established filter-specific selectors while sharing the markup owner. */
|
|
11
|
-
readonly legacyClassPrefix?: string;
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* Shared presentation for distribution-backed brush filters. Domain editors own
|
|
15
13
|
* the chart data and translate slider positions to their filter conditions.
|
|
16
14
|
*/
|
|
17
|
-
export declare function BrushRange({ chart, slider, startLabel, selectionLabel, endLabel,
|
|
15
|
+
export declare function BrushRange({ chart, slider, startLabel, selectionLabel, endLabel, }: BrushRangeProps): h.JSX.Element;
|
package/brush-range/component.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t } from "../_chunks/tooltip-text-BXsUEmBH.js";
|
|
3
|
+
import { PreactRangeSlider as n } from "../filter/filters/slider/preact.js";
|
|
4
|
+
import { DistributionChart as r } from "../distribution-chart/index.js";
|
|
4
5
|
//#region src/brush-range/component.tsx
|
|
5
|
-
function
|
|
6
|
+
function i(...e) {
|
|
6
7
|
return e.filter(Boolean).join(" ");
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function a(e) {
|
|
9
10
|
return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
-
let d = (e) => u ? `${u}__${e}` : void 0;
|
|
12
|
+
function o({ chart: o, slider: s, startLabel: c, selectionLabel: l, endLabel: u }) {
|
|
13
13
|
return /* @__PURE__ */ e("div", {
|
|
14
14
|
class: "brush-range",
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
...a,
|
|
18
|
-
className: r("brush-range__chart", d("chart"), a.className)
|
|
19
|
-
}) : null,
|
|
20
|
-
/* @__PURE__ */ e(t, {
|
|
16
|
+
o ? /* @__PURE__ */ e(r, {
|
|
21
17
|
...o,
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
className: i("brush-range__chart", o.className)
|
|
19
|
+
}) : null,
|
|
20
|
+
/* @__PURE__ */ e(n, {
|
|
21
|
+
...s,
|
|
22
|
+
className: i("brush-range__range", s.className),
|
|
23
|
+
controlClassName: i("brush-range__controls", s.controlClassName),
|
|
24
|
+
fromClassName: s.fromClassName,
|
|
25
|
+
toClassName: s.toClassName
|
|
26
26
|
}),
|
|
27
27
|
/* @__PURE__ */ e("div", {
|
|
28
|
-
class:
|
|
28
|
+
class: "brush-range__labels",
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */ e(
|
|
30
|
+
/* @__PURE__ */ e(t, {
|
|
31
31
|
class: "brush-range__label brush-range__label--start",
|
|
32
|
-
title:
|
|
33
|
-
children:
|
|
32
|
+
title: a(c),
|
|
33
|
+
children: c
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */ e(
|
|
36
|
-
class:
|
|
35
|
+
/* @__PURE__ */ e(t, {
|
|
36
|
+
class: i("brush-range__label", "brush-range__selection"),
|
|
37
37
|
role: "status",
|
|
38
|
-
title:
|
|
39
|
-
children:
|
|
38
|
+
title: a(l),
|
|
39
|
+
children: l
|
|
40
40
|
}),
|
|
41
|
-
/* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ e(t, {
|
|
42
42
|
class: "brush-range__label brush-range__label--end",
|
|
43
|
-
title:
|
|
44
|
-
children:
|
|
43
|
+
title: a(u),
|
|
44
|
+
children: u
|
|
45
45
|
})
|
|
46
46
|
]
|
|
47
47
|
})
|
|
@@ -49,4 +49,4 @@ function a({ chart: a, slider: o, startLabel: s, selectionLabel: c, endLabel: l,
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
|
-
export {
|
|
52
|
+
export { o as BrushRange };
|
|
@@ -4,5 +4,5 @@ export type RemoveButtonProps = Parameters<typeof DeleteButton>[0] & {
|
|
|
4
4
|
/** Compact hit area for an action embedded inside a selected-value chip. */
|
|
5
5
|
compact?: boolean;
|
|
6
6
|
};
|
|
7
|
-
/** Neutral close/remove action; DeleteButton
|
|
7
|
+
/** Neutral close/remove action; DeleteButton uses destructive action styling. */
|
|
8
8
|
export declare function RemoveButton({ compact, className, ...props }: RemoveButtonProps): h.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use '../styles/icon-action';
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// Neutral remove actions override destructive button styling.
|
|
4
4
|
button.remove-btn.rv-remove-button {
|
|
5
5
|
@include icon-action.neutral;
|
|
6
6
|
&.rv-remove-button--compact {
|
package/buttons/svg-button.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'c
|
|
|
16
16
|
readonly children?: ComponentChildren;
|
|
17
17
|
}
|
|
18
18
|
/** Shared native button presentation for trusted bundled SVG controls. */
|
|
19
|
-
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, ...attributes }: SvgButtonProps): h.JSX.Element;
|
|
19
|
+
export declare function SvgButton({ label, variant, icon, visibleLabel, className, iconClassName, labelClassName, children, iconContent, badge, badgeClassName, class: nativeClass, disabled, title, ...attributes }: SvgButtonProps): h.JSX.Element;
|
package/buttons/svg-button.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
-
import { t as n } from "../_chunks/native-control-
|
|
3
|
+
import { t as n } from "../_chunks/native-control-pFMuHf3G.js";
|
|
4
4
|
import { controlClassName as r } from "../control-attributes.js";
|
|
5
|
-
import { n as i } from "../_chunks/
|
|
5
|
+
import { n as i } from "../_chunks/tooltip-D4xkio5G.js";
|
|
6
6
|
//#region src/buttons/svg-button.tsx
|
|
7
|
-
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _,
|
|
8
|
-
let
|
|
7
|
+
function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _, title: v, ...y }) {
|
|
8
|
+
let b = i(typeof v == "string" ? v : a, !0, {
|
|
9
9
|
className: "rv-control-tooltip",
|
|
10
10
|
placement: "above"
|
|
11
11
|
});
|
|
12
12
|
return /* @__PURE__ */ e(n, {
|
|
13
13
|
type: "button",
|
|
14
14
|
"aria-label": m === void 0 ? a : `${a} ${m}`,
|
|
15
|
-
...
|
|
15
|
+
...y,
|
|
16
16
|
disabled: _,
|
|
17
|
-
...
|
|
18
|
-
"aria-describedby": [
|
|
17
|
+
...b.triggerProps,
|
|
18
|
+
"aria-describedby": [y["aria-describedby"], b.id].filter(Boolean).join(" "),
|
|
19
19
|
onFocus: (e) => {
|
|
20
|
-
|
|
20
|
+
b.triggerProps.onFocus(e), y.onFocus?.(e);
|
|
21
21
|
},
|
|
22
22
|
onBlur: (e) => {
|
|
23
|
-
|
|
23
|
+
b.triggerProps.onBlur(), y.onBlur?.(e);
|
|
24
24
|
},
|
|
25
25
|
onMouseEnter: (e) => {
|
|
26
|
-
|
|
26
|
+
b.triggerProps.onMouseEnter(e), y.onMouseEnter?.(e);
|
|
27
27
|
},
|
|
28
28
|
onMouseLeave: (e) => {
|
|
29
|
-
|
|
29
|
+
b.triggerProps.onMouseLeave(), y.onMouseLeave?.(e);
|
|
30
30
|
},
|
|
31
31
|
onPointerDown: (e) => {
|
|
32
|
-
|
|
32
|
+
b.triggerProps.onPointerDown(e), y.onPointerDown?.(e);
|
|
33
33
|
},
|
|
34
34
|
onPointerCancel: (e) => {
|
|
35
|
-
|
|
35
|
+
b.triggerProps.onPointerCancel(), y.onPointerCancel?.(e);
|
|
36
36
|
},
|
|
37
37
|
onKeyDown: (e) => {
|
|
38
|
-
|
|
38
|
+
b.triggerProps.onKeyDown(e), y.onKeyDown?.(e);
|
|
39
39
|
},
|
|
40
40
|
onClick: (e) => {
|
|
41
|
-
|
|
41
|
+
b.hide(), y.onClick?.(e);
|
|
42
42
|
},
|
|
43
43
|
class: r(l ?? (o ? "" : "rv-btn-ghost"), o && `rv-btn-${o}`, g, "rv-icon-action", !c && "rv-btn-icon"),
|
|
44
44
|
children: [
|
|
@@ -56,7 +56,7 @@ function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconC
|
|
|
56
56
|
children: m
|
|
57
57
|
}),
|
|
58
58
|
f,
|
|
59
|
-
|
|
59
|
+
b.tooltip
|
|
60
60
|
]
|
|
61
61
|
});
|
|
62
62
|
}
|
package/calendar/_calendar.scss
CHANGED
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
}
|
|
300
300
|
.revo-calendar__caption .rv-select .dropdown-trigger {
|
|
301
301
|
min-width: 0;
|
|
302
|
-
width:
|
|
303
|
-
max-width:
|
|
302
|
+
width: 100%;
|
|
303
|
+
max-width: 100%;
|
|
304
304
|
min-height: var(--calendar-cell-size);
|
|
305
305
|
height: var(--calendar-cell-size);
|
|
306
306
|
padding-block: 2px;
|
package/calendar/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Calendar } from "../_chunks/calendar-
|
|
1
|
+
export { t as Calendar } from "../_chunks/calendar-QWDyYzdo.js";
|
package/calendar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_CALENDAR_TRANSLATIONS as e } from "./translations.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "../_chunks/model-mPO2tG2f.js";
|
|
3
3
|
import { CalendarHeader as s, CalendarWeekdays as c } from "./header.js";
|
|
4
|
-
import { t as l } from "../_chunks/calendar-
|
|
4
|
+
import { t as l } from "../_chunks/calendar-QWDyYzdo.js";
|
|
5
5
|
import { CalendarDay as u } from "./day.js";
|
|
6
6
|
import { CalendarMonthGrid as d } from "./month-grid.js";
|
|
7
7
|
import { CalendarYearGrid as f } from "./year-grid.js";
|
|
8
|
-
import { t as p } from "../_chunks/picker-
|
|
8
|
+
import { t as p } from "../_chunks/picker-gEGTu1Ki.js";
|
|
9
9
|
export { l as Calendar, u as CalendarDay, s as CalendarHeader, d as CalendarMonthGrid, p as CalendarPicker, c as CalendarWeekdays, f as CalendarYearGrid, e as DEFAULT_CALENDAR_TRANSLATIONS, o as createCalendarMonth, r as isCalendarDateDisabled, a as isCalendarMonthDisabled, n as isDateInCalendarRange, t as moveCalendarFocus, i as orderCalendarRange };
|
package/checkbox/checkbox.scss
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
@use '../styles/motion';
|
|
2
2
|
@use './layout';
|
|
3
|
-
/**
|
|
4
|
-
* Shared native checkbox primitive.
|
|
5
|
-
*
|
|
6
|
-
* Legacy ColumnDialog and RowSelectPlugin variables remain supported as
|
|
7
|
-
* fallbacks so existing customizations keep working after consumers move to
|
|
8
|
-
* rv-checkbox.
|
|
9
|
-
*/
|
|
10
|
-
revo-grid {
|
|
11
|
-
--rv-ui-checkbox-bg: var(--revo-row-select-checkbox-bg, var(--rv-ui-surface));
|
|
12
|
-
--rv-ui-checkbox-border: var(--rv-column-dialog-check-border, var(--revo-row-select-checkbox-border, var(--rv-ui-border-strong)));
|
|
13
|
-
--rv-ui-checkbox-checked: var(--rv-column-dialog-check-bg, var(--revo-row-select-checkbox-checked, var(--rv-ui-accent)));
|
|
14
|
-
--rv-ui-checkbox-check: var(--revo-row-select-checkbox-check, var(--rv-ui-accent-fg));
|
|
15
|
-
--rv-ui-checkbox-focus: var(--revo-row-select-checkbox-focus, var(--rv-ui-focus-ring));
|
|
16
|
-
|
|
17
|
-
&[theme^='dark'] {
|
|
18
|
-
--rv-ui-checkbox-bg: var(--revo-row-select-checkbox-bg, var(--rv-ui-surface-sunken));
|
|
19
|
-
--rv-ui-checkbox-border: var(--rv-column-dialog-check-border, var(--revo-row-select-checkbox-border, var(--rv-ui-border-strong)));
|
|
20
|
-
--rv-ui-checkbox-checked: var(--rv-column-dialog-check-bg, var(--revo-row-select-checkbox-checked, var(--rv-ui-accent)));
|
|
21
|
-
--rv-ui-checkbox-focus: var(--revo-row-select-checkbox-focus, var(--rv-ui-focus-ring));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
3
|
+
/** Shared native checkbox primitive. */
|
|
25
4
|
.rv-checkbox {
|
|
26
5
|
appearance: none;
|
|
27
6
|
-webkit-appearance: none;
|
package/choice-chips/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export type ChoiceChipsProps<T extends ChoiceChipValue = ChoiceChipValue> = {
|
|
|
20
20
|
onChange: (value: T, option: ChoiceChipOption<T>) => void;
|
|
21
21
|
ariaLabel: string;
|
|
22
22
|
appearance?: 'soft' | 'outlined';
|
|
23
|
+
/** Keep choices on one scrollable row, with hidden scrollbars and soft edge fades. */
|
|
24
|
+
scrollable?: boolean;
|
|
23
25
|
size?: 'small' | 'medium';
|
|
24
26
|
className?: string;
|
|
25
27
|
itemClassName?: string;
|
|
@@ -27,7 +29,7 @@ export type ChoiceChipsProps<T extends ChoiceChipValue = ChoiceChipValue> = {
|
|
|
27
29
|
testId?: string;
|
|
28
30
|
};
|
|
29
31
|
/** Shared wrapping choice control for compact presets and granularities. */
|
|
30
|
-
export declare function ChoiceChips<T extends ChoiceChipValue = ChoiceChipValue>({ value, options, onChange, ariaLabel, appearance, size, className, itemClassName, disabled, testId, }: ChoiceChipsProps<T>): any;
|
|
32
|
+
export declare function ChoiceChips<T extends ChoiceChipValue = ChoiceChipValue>({ value, options, onChange, ariaLabel, appearance, scrollable, size, className, itemClassName, disabled, testId, }: ChoiceChipsProps<T>): any;
|
|
31
33
|
export declare function ChoiceChipInfoButton({ 'data-tooltip': details, title, ref: forwardedRef, ...props }: JSX.IntrinsicElements['button'] & {
|
|
32
34
|
'data-tooltip'?: string;
|
|
33
35
|
}): h.JSX.Element;
|
package/choice-chips/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-
|
|
1
|
+
export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-A6WR-WJe.js";
|
|
@@ -242,7 +242,7 @@ revo-grid .rv-context-menu .rv-color-palette-menu__swatch-item[aria-checked='tru
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.rv-color-palette-menu[aria-expanded='true'] > .rv-context-menu__submenu {
|
|
245
|
-
grid-template-columns: repeat(5, 32px); gap: 10px 14px; width:
|
|
245
|
+
grid-template-columns: repeat(5, 32px); gap: 10px 14px; width: 242px;
|
|
246
246
|
}
|
|
247
247
|
.rv-color-palette-menu__default-item {
|
|
248
248
|
grid-column: auto; width: 32px; min-width: 32px; min-height: 32px;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e } from "../_chunks/color-palette-
|
|
2
|
-
import { t } from "../_chunks/color-picker-
|
|
1
|
+
import { n as e } from "../_chunks/color-palette-DMJUChWC.js";
|
|
2
|
+
import { t } from "../_chunks/color-picker-BK4W1nd6.js";
|
|
3
3
|
export { t as ColorPicker, e as normalizeHexColor };
|