@vokality/design-system 4.0.2 → 5.1.0
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/CHANGELOG.md +31 -0
- package/README.md +3 -3
- package/dist/chat.d.ts +65 -2
- package/dist/components/ChatInbox/ChatInbox.d.ts +3 -1
- package/dist/components/ChatInbox/ChatInbox.js +3 -2
- package/dist/components/ChatPanel/ChatPanel.d.ts +1 -1
- package/dist/components/ChatPanel/ChatPanel.js +2 -2
- package/dist/components/ChatPanel/activity.d.ts +6 -0
- package/dist/components/ChatPanel/activity.js +102 -0
- package/dist/components/ChatPanel/transcript.d.ts +3 -3
- package/dist/components/ChatPanel/transcript.js +5 -4
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Select/Select.js +2 -2
- package/dist/components.css +65 -6
- package/dist/icons/refresh.svg +1 -0
- package/dist/icons/settings.svg +1 -0
- package/dist/internal/useThrottled.d.ts +2 -0
- package/dist/internal/useThrottled.js +17 -0
- package/dist/lib/icons.d.ts +15 -0
- package/dist/lib/icons.js +9 -0
- package/dist/localization.d.ts +13 -0
- package/dist/localization.js +13 -1
- package/dist/vokality.css +65 -6
- package/dist/vokality.iife.js +485 -98
- package/docs/components/ChatInbox/README.md +24 -7
- package/docs/components/ChatWidget/README.md +48 -7
- package/docs/components/Icon/README.md +1 -1
- package/docs/components/Menu/README.md +1 -1
- package/docs/components/Popover/README.md +3 -2
- package/docs/components/Select/README.md +2 -1
- package/package.json +1 -1
- package/skills/vokality-design-system/SKILL.md +2 -2
- package/skills/vokality-design-system/references/examples.tsx +8 -8
package/dist/components.css
CHANGED
|
@@ -115,6 +115,8 @@ body {
|
|
|
115
115
|
border: 1px solid transparent;
|
|
116
116
|
}
|
|
117
117
|
.vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
|
|
118
|
+
/* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
|
|
119
|
+
.vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
|
|
118
120
|
.vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
|
|
119
121
|
.vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
120
122
|
|
|
@@ -1941,6 +1943,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1941
1943
|
.vk-chat-message-outgoing .vk-chat-message-body { border-color: var(--primary-line); background: var(--primary-tint); }
|
|
1942
1944
|
.vk-chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); }
|
|
1943
1945
|
.vk-chat-message-author { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
|
|
1946
|
+
.vk-chat-message-source { display: inline-flex; align-items: center; gap: var(--space-xs); padding-inline: var(--space-xs); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1947
|
+
.vk-chat-message-source > svg, .vk-chat-message-source > img { flex: none; width: 0.75rem; height: 0.75rem; }
|
|
1944
1948
|
.vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
1945
1949
|
.vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
1946
1950
|
.vk-chat-message-content > :last-child { margin-bottom: 0; }
|
|
@@ -1951,24 +1955,73 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1951
1955
|
.vk-chat-delivery { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1952
1956
|
.vk-chat-delivery-failed { color: var(--danger); }
|
|
1953
1957
|
.vk-chat-delivery .vk-btn { width: auto; }
|
|
1958
|
+
.vk-chat-message-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
|
|
1959
|
+
.vk-chat-message-outgoing .vk-chat-message-actions { justify-content: flex-end; }
|
|
1960
|
+
.vk-chat-message-actions .vk-btn { width: auto; }
|
|
1961
|
+
/* An agent run: a status line over its narration and steps. The log ignores the entries; a throttled status announces them. */
|
|
1962
|
+
.vk-chat-activity { min-width: 0; border: 1px solid var(--border-subtle); color: var(--foreground); }
|
|
1963
|
+
.vk-chat-activity-line { display: flex; align-items: flex-start; gap: var(--space-sm); box-sizing: border-box; width: 100%; min-width: 0; padding: calc((var(--control-height) - 1.5em) / 2) var(--space-md); border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--text-sm); line-height: 1.5; text-align: start; }
|
|
1964
|
+
/* Marks line up with the first line of text when the summary wraps. */
|
|
1965
|
+
.vk-chat-activity-line > .vk-icon { margin-top: calc((1.5em - 16px) / 2); }
|
|
1966
|
+
.vk-chat-activity-line > .vk-chat-activity-spinner { margin-top: calc((1.5em - 0.75rem) / 2); }
|
|
1967
|
+
.vk-chat-activity-toggle { cursor: pointer; }
|
|
1968
|
+
.vk-chat-activity-toggle:hover { background: var(--card-fill); }
|
|
1969
|
+
.vk-chat-activity-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
1970
|
+
.vk-chat-activity-text { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-sm); min-width: 0; }
|
|
1971
|
+
.vk-chat-activity-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
1972
|
+
.vk-chat-activity-state, .vk-chat-activity-outcome { color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1973
|
+
.vk-chat-activity-elapsed { margin-inline-start: auto; font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
1974
|
+
.vk-chat-activity-icon { flex: none; color: var(--muted-foreground); }
|
|
1975
|
+
.vk-chat-activity[data-state="finished"] .vk-chat-activity-icon { color: var(--success); }
|
|
1976
|
+
/* Waiting on a person: the accent, with the word "Waiting" beside it. */
|
|
1977
|
+
.vk-chat-activity[data-state="waiting"] { border-color: var(--primary-line); }
|
|
1978
|
+
.vk-chat-activity[data-state="waiting"] .vk-chat-activity-icon, .vk-chat-activity[data-state="waiting"] .vk-chat-activity-state { color: var(--primary); }
|
|
1979
|
+
.vk-chat-activity[data-state="failed"] .vk-chat-activity-icon, .vk-chat-activity[data-state="failed"] .vk-chat-activity-state { color: var(--danger); }
|
|
1980
|
+
.vk-chat-activity-spinner { flex: none; width: 0.75rem; height: 0.75rem; }
|
|
1981
|
+
.vk-chat-activity-chevron { flex: none; color: var(--muted-foreground); transition: transform 0.16s ease-out; }
|
|
1982
|
+
[data-state="open"] > .vk-chat-activity-chevron { transform: rotate(180deg); }
|
|
1983
|
+
.vk-chat-activity-body { display: grid; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--border-subtle); }
|
|
1984
|
+
.vk-chat-activity-body[hidden] { display: none; }
|
|
1985
|
+
.vk-chat-activity-earlier { display: grid; gap: var(--space-xs); justify-items: start; }
|
|
1986
|
+
.vk-chat-activity-earlier > .vk-btn { width: auto; }
|
|
1987
|
+
.vk-chat-activity-entries { display: grid; gap: var(--space-xs); width: 100%; margin: 0; padding: 0; list-style: none; }
|
|
1988
|
+
.vk-chat-narration { max-width: none; padding-block: var(--space-xs); font-size: var(--text-sm); color: var(--foreground); overflow-wrap: anywhere; }
|
|
1989
|
+
.vk-chat-narration > :last-child { margin-bottom: 0; }
|
|
1990
|
+
.vk-chat-step { display: flex; align-items: baseline; gap: var(--space-sm); min-width: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
|
|
1991
|
+
.vk-chat-step-icon { flex: none; align-self: center; }
|
|
1992
|
+
.vk-chat-step-text { display: flex; flex: 1; flex-wrap: wrap; gap: 0 var(--space-sm); min-width: 0; }
|
|
1993
|
+
.vk-chat-step-label { color: var(--foreground); overflow-wrap: anywhere; }
|
|
1994
|
+
.vk-chat-step-outcome { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
1995
|
+
.vk-chat-step-state { display: inline-flex; flex: none; align-items: center; align-self: center; gap: var(--space-xs); }
|
|
1996
|
+
.vk-chat-step[data-state="failed"] .vk-chat-step-state { color: var(--danger); }
|
|
1997
|
+
.vk-chat-activity-omitted { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
|
|
1954
1998
|
.vk-chat-empty { display: grid; align-content: center; min-width: 0; padding: var(--space-xl) var(--space-md); font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1955
1999
|
.vk-chat-pending { padding-block: var(--space-md); font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
1956
2000
|
.vk-chat-feedback { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--danger-line); color: var(--danger); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
1957
2001
|
.vk-chat-feedback > div { flex: 1; min-width: 0; }
|
|
1958
2002
|
.vk-chat-feedback .vk-btn { width: auto; }
|
|
2003
|
+
.vk-chat-read-only { display: flex; flex: none; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md); border-top: 1px solid var(--border-subtle); background: var(--background); font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2004
|
+
.vk-chat-read-only > svg { flex: none; margin-top: 0.125rem; }
|
|
2005
|
+
.vk-chat-read-only > div { flex: 1; min-width: 0; }
|
|
1959
2006
|
.vk-chat-composer { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 0 1 auto; gap: var(--space-sm); box-sizing: border-box; min-width: 0; min-height: 0; max-height: 65%; overflow: hidden; padding: var(--space-md); border-top: 1px solid var(--border-subtle); background: var(--background); }
|
|
1960
2007
|
.vk-chat-composer > .vk-field { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
1961
2008
|
.vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
|
|
1962
2009
|
.vk-chat-composer-actions { display: flex; justify-content: flex-end; }
|
|
1963
2010
|
.vk-chat-composer-actions .vk-btn { width: auto; }
|
|
1964
2011
|
@media (max-width: 40rem) {
|
|
1965
|
-
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer { padding: var(--space-sm); }
|
|
2012
|
+
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer, .vk-chat-read-only { padding: var(--space-sm); }
|
|
2013
|
+
.vk-chat-activity-line, .vk-chat-activity-body { padding-inline: var(--space-sm); }
|
|
1966
2014
|
.vk-chat-message { max-width: 100%; }
|
|
1967
2015
|
.vk-chat-message-body { padding: var(--space-sm); }
|
|
1968
2016
|
}
|
|
1969
2017
|
@media (forced-colors: active) {
|
|
1970
2018
|
.vk-chat-message-outgoing .vk-chat-message-body { border-color: Highlight; }
|
|
1971
|
-
.vk-chat-delivery-failed, .vk-chat-feedback { color: CanvasText; }
|
|
2019
|
+
.vk-chat-delivery-failed, .vk-chat-feedback, .vk-chat-step[data-state="failed"] .vk-chat-step-state, .vk-chat-activity[data-state="failed"] .vk-chat-activity-state, .vk-chat-activity[data-state="waiting"] .vk-chat-activity-state, .vk-chat-activity-icon { color: CanvasText; }
|
|
2020
|
+
.vk-chat-activity[data-state="waiting"] { border-color: Highlight; }
|
|
2021
|
+
.vk-chat-activity-toggle { color: ButtonText; }
|
|
2022
|
+
}
|
|
2023
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2024
|
+
.vk-chat-activity-chevron { transition: none; }
|
|
1972
2025
|
}
|
|
1973
2026
|
.vk-chat-widget-launcher { position: fixed; z-index: var(--z-fixed); inset-block-end: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(var(--space-lg) + env(safe-area-inset-right, 0px)); }
|
|
1974
2027
|
.vk-chat-widget-start { inset-inline-end: auto; inset-inline-start: calc(var(--space-lg) + env(safe-area-inset-left, 0px)); }
|
|
@@ -1980,7 +2033,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1980
2033
|
.vk-chat-widget-panel { transform-origin: var(--radix-popover-content-transform-origin); }
|
|
1981
2034
|
.vk-chat-widget-panel[data-state="closed"] { pointer-events: none; }
|
|
1982
2035
|
@media (max-height: 32rem) {
|
|
1983
|
-
.vk-chat-widget-panel .vk-chat-header, .vk-chat-widget-panel .vk-chat-transcript, .vk-chat-widget-panel .vk-chat-composer { padding: var(--space-sm); }
|
|
2036
|
+
.vk-chat-widget-panel .vk-chat-header, .vk-chat-widget-panel .vk-chat-transcript, .vk-chat-widget-panel .vk-chat-composer, .vk-chat-widget-panel .vk-chat-read-only { padding: var(--space-sm); }
|
|
1984
2037
|
.vk-chat-widget-panel .vk-chat-transcript { flex: 0 1 4rem; min-height: 0; max-height: 25%; }
|
|
1985
2038
|
.vk-chat-widget-panel .vk-chat-composer { flex: 1; max-height: none; }
|
|
1986
2039
|
.vk-chat-widget-panel .vk-chat-composer .vk-rich-content { min-height: 2rem; padding-block: var(--space-xs); }
|
|
@@ -1989,7 +2042,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
1989
2042
|
.vk-chat-widget-trigger { border-color: ButtonText; color: ButtonText; }
|
|
1990
2043
|
.vk-chat-unread { background: Highlight; color: HighlightText; }
|
|
1991
2044
|
}
|
|
1992
|
-
|
|
2045
|
+
/* The inbox fills its container; the application gives the container a height (a docked pane, a page region). */
|
|
2046
|
+
.vk-chat-inbox { container-type: inline-size; display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; border: 1px solid var(--border-subtle); background: var(--background); color: var(--foreground); }
|
|
1993
2047
|
.vk-chat-inbox-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-end: 1px solid var(--border-subtle); }
|
|
1994
2048
|
.vk-chat-threads { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
|
|
1995
2049
|
.vk-chat-threads > li + li { border-top: 1px solid var(--border-subtle); }
|
|
@@ -2006,6 +2060,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2006
2060
|
.vk-chat-inbox-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
2007
2061
|
.vk-chat-no-selection { flex: 1; }
|
|
2008
2062
|
.vk-chat-back { display: none; }
|
|
2063
|
+
.vk-chat-header-actions { display: flex; flex: none; align-items: center; gap: var(--space-xs); margin-inline-start: auto; }
|
|
2064
|
+
.vk-chat-header-actions .vk-btn { width: auto; }
|
|
2009
2065
|
@container (max-width: 40rem) {
|
|
2010
2066
|
.vk-chat-inbox-list { border-inline-end: 0; }
|
|
2011
2067
|
.vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
|
|
@@ -2088,16 +2144,19 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2088
2144
|
@media (max-width: 40rem) {
|
|
2089
2145
|
.vk-btn-xs { width: auto; justify-content: flex-start; }
|
|
2090
2146
|
}
|
|
2091
|
-
/* Extra-small
|
|
2092
|
-
Menu, Popover and
|
|
2147
|
+
/* Extra-small controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
|
|
2148
|
+
Menu, Popover, SegmentedControl and Select. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
|
|
2093
2149
|
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2094
2150
|
.vk-btn-xs { min-height: var(--control-height-xs); font-size: 0.6875rem; }
|
|
2095
2151
|
.vk-btn-xs .vk-btn-label, .vk-btn-xs .vk-btn-label:only-child { padding: 0 var(--space-sm); }
|
|
2096
2152
|
.vk-btn-xs .vk-btn-glyph { width: var(--control-height-xs); }
|
|
2097
2153
|
.vk-btn-text.vk-btn-xs { font-size: var(--text-xs); }
|
|
2098
2154
|
.vk-btn-text.vk-btn-xs .vk-btn-label, .vk-btn-text.vk-btn-xs .vk-btn-label:only-child { padding: 0; }
|
|
2155
|
+
.vk-btn-text.vk-btn-xs .vk-btn-glyph { width: auto; }
|
|
2099
2156
|
.vk-icon-btn-xs { width: var(--control-height-xs); height: var(--control-height-xs); }
|
|
2100
2157
|
.vk-icon-btn-xs .vk-icon { width: 16px; height: 16px; }
|
|
2158
|
+
.vk-select-xs .vk-select-trigger { min-height: var(--control-height-xs); padding: 0 calc(var(--space-sm) + 14px + var(--space-xs)) 0 var(--space-sm); font-size: var(--text-xs); }
|
|
2159
|
+
.vk-select-xs .vk-select-icon { top: calc(var(--control-height-xs) / 2); right: var(--space-sm); width: 14px; height: 14px; }
|
|
2101
2160
|
.vk-segmented-xs .vk-segment { min-height: calc(var(--control-height-xs) - 2px); padding: 0 var(--space-sm); font-size: var(--text-xs); }
|
|
2102
2161
|
}
|
|
2103
2162
|
/* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#e1dfdb" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#e1dfdb" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/></svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
/** Follows `value` at most once per `interval` milliseconds; the latest value always arrives. */
|
|
4
|
+
export function useThrottled(value, interval) {
|
|
5
|
+
const [shown, setShown] = useState(value);
|
|
6
|
+
const last = useRef(0);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
if (Object.is(value, shown))
|
|
9
|
+
return;
|
|
10
|
+
const timer = setTimeout(() => {
|
|
11
|
+
last.current = Date.now();
|
|
12
|
+
setShown(value);
|
|
13
|
+
}, Math.max(0, last.current + interval - Date.now()));
|
|
14
|
+
return () => { clearTimeout(timer); };
|
|
15
|
+
}, [value, shown, interval]);
|
|
16
|
+
return shown;
|
|
17
|
+
}
|
package/dist/lib/icons.d.ts
CHANGED
|
@@ -196,6 +196,21 @@ export declare const ICONS: {
|
|
|
196
196
|
stroke: number;
|
|
197
197
|
d: string[];
|
|
198
198
|
};
|
|
199
|
+
settings: {
|
|
200
|
+
size: number;
|
|
201
|
+
stroke: number;
|
|
202
|
+
d: string[];
|
|
203
|
+
circle: {
|
|
204
|
+
cx: number;
|
|
205
|
+
cy: number;
|
|
206
|
+
r: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
refresh: {
|
|
210
|
+
size: number;
|
|
211
|
+
stroke: number;
|
|
212
|
+
d: string[];
|
|
213
|
+
};
|
|
199
214
|
menu: {
|
|
200
215
|
size: number;
|
|
201
216
|
stroke: number;
|
package/dist/lib/icons.js
CHANGED
|
@@ -38,6 +38,15 @@ export const ICONS = {
|
|
|
38
38
|
chart: { size: 16, stroke: 1.5, d: ["M3 3v16a2 2 0 0 0 2 2h16", "M18 17V9", "M13 17V5", "M8 17v-3"] },
|
|
39
39
|
clock: { size: 16, stroke: 1.75, d: ["M12 6v6l4 2"], circle: { cx: 12, cy: 12, r: 10 } },
|
|
40
40
|
sidebar: { size: 18, stroke: 1.75, d: ["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z", "M9 3v18"] },
|
|
41
|
+
// https://github.com/lucide-icons/lucide/blob/main/icons/settings.svg
|
|
42
|
+
settings: {
|
|
43
|
+
size: 18,
|
|
44
|
+
stroke: 1.75,
|
|
45
|
+
d: ["M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"],
|
|
46
|
+
circle: { cx: 12, cy: 12, r: 3 }
|
|
47
|
+
},
|
|
48
|
+
// https://github.com/lucide-icons/lucide/blob/main/icons/rotate-cw.svg
|
|
49
|
+
refresh: { size: 18, stroke: 1.75, d: ["M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", "M21 3v5h-5"] },
|
|
41
50
|
menu: { size: 22, stroke: 1.75, d: ["M4 6h16M4 12h16M4 18h16"] },
|
|
42
51
|
x: { size: 22, stroke: 1.75, d: ["M18 6 6 18M6 6l12 12"] },
|
|
43
52
|
phone: {
|
package/dist/localization.d.ts
CHANGED
|
@@ -54,6 +54,19 @@ export interface ChatMessages {
|
|
|
54
54
|
noThreads: string;
|
|
55
55
|
conversations: string;
|
|
56
56
|
unread: (count: number) => string;
|
|
57
|
+
readOnly: string;
|
|
58
|
+
activityWorking: string;
|
|
59
|
+
activityWaiting: string;
|
|
60
|
+
activityFinished: string;
|
|
61
|
+
activityFailed: string;
|
|
62
|
+
activityStopped: string;
|
|
63
|
+
stepStarted: string;
|
|
64
|
+
stepFailed: string;
|
|
65
|
+
stepKeptRunning: string;
|
|
66
|
+
earlierEntries: (count: number) => string;
|
|
67
|
+
omittedSteps: (count: number) => string;
|
|
68
|
+
activityStep: (title: string, step: string, state?: string) => string;
|
|
69
|
+
activityStatus: (title: string, state: string) => string;
|
|
57
70
|
}
|
|
58
71
|
/** Built-in interface copy. Functions keep interpolation and plurals typed. */
|
|
59
72
|
export interface LocaleMessages {
|
package/dist/localization.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext, useMemo } from "react";
|
|
4
|
-
import { resolveLocale } from "./lib/format.js";
|
|
4
|
+
import { formatNumber, resolveLocale } from "./lib/format.js";
|
|
5
5
|
const englishEmojiNames = {
|
|
6
6
|
"😀": "Grinning face", "🙂": "Smile", "❤️": "Heart", "👍": "Thumbs up", "👎": "Thumbs down", "🎉": "Celebration",
|
|
7
7
|
"✅": "Check", "⚠️": "Warning", "💡": "Idea", "🚀": "Rocket", "👀": "Eyes", "🙏": "Thank you",
|
|
@@ -16,6 +16,12 @@ const english = {
|
|
|
16
16
|
send: "Send message", sending: "Sending message", failed: "Message not sent", retry: "Retry", retryMessage: (author) => "Retry message from " + author,
|
|
17
17
|
tryAgain: "Try again", back: "Back to conversations", empty: "No messages yet. Start the conversation.", chooseThread: "Choose a conversation to read and reply.", noThreads: "No conversations yet.",
|
|
18
18
|
conversations: "Conversations", unread: (count) => String(count) + (count === 1 ? " unread message" : " unread messages"),
|
|
19
|
+
readOnly: "Replies aren't available in this conversation.",
|
|
20
|
+
activityWorking: "Working", activityWaiting: "Waiting", activityFinished: "Finished", activityFailed: "Failed", activityStopped: "Stopped",
|
|
21
|
+
stepStarted: "In progress", stepFailed: "Failed", stepKeptRunning: "Kept running",
|
|
22
|
+
earlierEntries: (count) => formatNumber(count, { locale: "en-US" }) + (count === 1 ? " earlier entry" : " earlier entries"),
|
|
23
|
+
omittedSteps: (count) => "and " + formatNumber(count, { locale: "en-US" }) + (count === 1 ? " more step" : " more steps"),
|
|
24
|
+
activityStep: (title, step, state) => title + ": " + step + (state ? " (" + state + ")" : ""), activityStatus: (title, state) => title + ": " + state,
|
|
19
25
|
},
|
|
20
26
|
richText: {
|
|
21
27
|
formatting: "Formatting options",
|
|
@@ -66,6 +72,12 @@ const dutch = {
|
|
|
66
72
|
send: "Bericht verzenden", sending: "Bericht wordt verzonden", failed: "Bericht niet verzonden", retry: "Opnieuw proberen", retryMessage: (author) => "Bericht van " + author + " opnieuw proberen",
|
|
67
73
|
tryAgain: "Opnieuw proberen", back: "Terug naar gesprekken", empty: "Nog geen berichten. Begin het gesprek.", chooseThread: "Kies een gesprek om te lezen en te antwoorden.", noThreads: "Nog geen gesprekken.",
|
|
68
74
|
conversations: "Gesprekken", unread: (count) => String(count) + (count === 1 ? " ongelezen bericht" : " ongelezen berichten"),
|
|
75
|
+
readOnly: "In dit gesprek kun je niet antwoorden.",
|
|
76
|
+
activityWorking: "Bezig", activityWaiting: "Wacht op jou", activityFinished: "Klaar", activityFailed: "Mislukt", activityStopped: "Gestopt",
|
|
77
|
+
stepStarted: "Bezig", stepFailed: "Mislukt", stepKeptRunning: "Blijft actief",
|
|
78
|
+
earlierEntries: (count) => formatNumber(count, { locale: "nl-NL" }) + (count === 1 ? " eerdere regel" : " eerdere regels"),
|
|
79
|
+
omittedSteps: (count) => "en nog " + formatNumber(count, { locale: "nl-NL" }) + (count === 1 ? " stap" : " stappen"),
|
|
80
|
+
activityStep: (title, step, state) => title + ": " + step + (state ? " (" + state + ")" : ""), activityStatus: (title, state) => title + ": " + state,
|
|
69
81
|
},
|
|
70
82
|
richText: {
|
|
71
83
|
formatting: "Opmaakopties",
|
package/dist/vokality.css
CHANGED
|
@@ -459,6 +459,8 @@ body {
|
|
|
459
459
|
border: 1px solid transparent;
|
|
460
460
|
}
|
|
461
461
|
.vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
|
|
462
|
+
/* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
|
|
463
|
+
.vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
|
|
462
464
|
.vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
|
|
463
465
|
.vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
464
466
|
|
|
@@ -2285,6 +2287,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2285
2287
|
.vk-chat-message-outgoing .vk-chat-message-body { border-color: var(--primary-line); background: var(--primary-tint); }
|
|
2286
2288
|
.vk-chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); }
|
|
2287
2289
|
.vk-chat-message-author { font-size: var(--text-xs); font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
|
|
2290
|
+
.vk-chat-message-source { display: inline-flex; align-items: center; gap: var(--space-xs); padding-inline: var(--space-xs); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2291
|
+
.vk-chat-message-source > svg, .vk-chat-message-source > img { flex: none; width: 0.75rem; height: 0.75rem; }
|
|
2288
2292
|
.vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
2289
2293
|
.vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
2290
2294
|
.vk-chat-message-content > :last-child { margin-bottom: 0; }
|
|
@@ -2295,24 +2299,73 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2295
2299
|
.vk-chat-delivery { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2296
2300
|
.vk-chat-delivery-failed { color: var(--danger); }
|
|
2297
2301
|
.vk-chat-delivery .vk-btn { width: auto; }
|
|
2302
|
+
.vk-chat-message-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
|
|
2303
|
+
.vk-chat-message-outgoing .vk-chat-message-actions { justify-content: flex-end; }
|
|
2304
|
+
.vk-chat-message-actions .vk-btn { width: auto; }
|
|
2305
|
+
/* An agent run: a status line over its narration and steps. The log ignores the entries; a throttled status announces them. */
|
|
2306
|
+
.vk-chat-activity { min-width: 0; border: 1px solid var(--border-subtle); color: var(--foreground); }
|
|
2307
|
+
.vk-chat-activity-line { display: flex; align-items: flex-start; gap: var(--space-sm); box-sizing: border-box; width: 100%; min-width: 0; padding: calc((var(--control-height) - 1.5em) / 2) var(--space-md); border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--text-sm); line-height: 1.5; text-align: start; }
|
|
2308
|
+
/* Marks line up with the first line of text when the summary wraps. */
|
|
2309
|
+
.vk-chat-activity-line > .vk-icon { margin-top: calc((1.5em - 16px) / 2); }
|
|
2310
|
+
.vk-chat-activity-line > .vk-chat-activity-spinner { margin-top: calc((1.5em - 0.75rem) / 2); }
|
|
2311
|
+
.vk-chat-activity-toggle { cursor: pointer; }
|
|
2312
|
+
.vk-chat-activity-toggle:hover { background: var(--card-fill); }
|
|
2313
|
+
.vk-chat-activity-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
|
|
2314
|
+
.vk-chat-activity-text { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-sm); min-width: 0; }
|
|
2315
|
+
.vk-chat-activity-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
2316
|
+
.vk-chat-activity-state, .vk-chat-activity-outcome { color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2317
|
+
.vk-chat-activity-elapsed { margin-inline-start: auto; font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
|
|
2318
|
+
.vk-chat-activity-icon { flex: none; color: var(--muted-foreground); }
|
|
2319
|
+
.vk-chat-activity[data-state="finished"] .vk-chat-activity-icon { color: var(--success); }
|
|
2320
|
+
/* Waiting on a person: the accent, with the word "Waiting" beside it. */
|
|
2321
|
+
.vk-chat-activity[data-state="waiting"] { border-color: var(--primary-line); }
|
|
2322
|
+
.vk-chat-activity[data-state="waiting"] .vk-chat-activity-icon, .vk-chat-activity[data-state="waiting"] .vk-chat-activity-state { color: var(--primary); }
|
|
2323
|
+
.vk-chat-activity[data-state="failed"] .vk-chat-activity-icon, .vk-chat-activity[data-state="failed"] .vk-chat-activity-state { color: var(--danger); }
|
|
2324
|
+
.vk-chat-activity-spinner { flex: none; width: 0.75rem; height: 0.75rem; }
|
|
2325
|
+
.vk-chat-activity-chevron { flex: none; color: var(--muted-foreground); transition: transform 0.16s ease-out; }
|
|
2326
|
+
[data-state="open"] > .vk-chat-activity-chevron { transform: rotate(180deg); }
|
|
2327
|
+
.vk-chat-activity-body { display: grid; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--border-subtle); }
|
|
2328
|
+
.vk-chat-activity-body[hidden] { display: none; }
|
|
2329
|
+
.vk-chat-activity-earlier { display: grid; gap: var(--space-xs); justify-items: start; }
|
|
2330
|
+
.vk-chat-activity-earlier > .vk-btn { width: auto; }
|
|
2331
|
+
.vk-chat-activity-entries { display: grid; gap: var(--space-xs); width: 100%; margin: 0; padding: 0; list-style: none; }
|
|
2332
|
+
.vk-chat-narration { max-width: none; padding-block: var(--space-xs); font-size: var(--text-sm); color: var(--foreground); overflow-wrap: anywhere; }
|
|
2333
|
+
.vk-chat-narration > :last-child { margin-bottom: 0; }
|
|
2334
|
+
.vk-chat-step { display: flex; align-items: baseline; gap: var(--space-sm); min-width: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
|
|
2335
|
+
.vk-chat-step-icon { flex: none; align-self: center; }
|
|
2336
|
+
.vk-chat-step-text { display: flex; flex: 1; flex-wrap: wrap; gap: 0 var(--space-sm); min-width: 0; }
|
|
2337
|
+
.vk-chat-step-label { color: var(--foreground); overflow-wrap: anywhere; }
|
|
2338
|
+
.vk-chat-step-outcome { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
2339
|
+
.vk-chat-step-state { display: inline-flex; flex: none; align-items: center; align-self: center; gap: var(--space-xs); }
|
|
2340
|
+
.vk-chat-step[data-state="failed"] .vk-chat-step-state { color: var(--danger); }
|
|
2341
|
+
.vk-chat-activity-omitted { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); }
|
|
2298
2342
|
.vk-chat-empty { display: grid; align-content: center; min-width: 0; padding: var(--space-xl) var(--space-md); font-size: var(--text-sm); line-height: 1.6; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2299
2343
|
.vk-chat-pending { padding-block: var(--space-md); font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2300
2344
|
.vk-chat-feedback { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--danger-line); color: var(--danger); font-size: var(--text-sm); overflow-wrap: anywhere; }
|
|
2301
2345
|
.vk-chat-feedback > div { flex: 1; min-width: 0; }
|
|
2302
2346
|
.vk-chat-feedback .vk-btn { width: auto; }
|
|
2347
|
+
.vk-chat-read-only { display: flex; flex: none; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md); border-top: 1px solid var(--border-subtle); background: var(--background); font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
2348
|
+
.vk-chat-read-only > svg { flex: none; margin-top: 0.125rem; }
|
|
2349
|
+
.vk-chat-read-only > div { flex: 1; min-width: 0; }
|
|
2303
2350
|
.vk-chat-composer { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 0 1 auto; gap: var(--space-sm); box-sizing: border-box; min-width: 0; min-height: 0; max-height: 65%; overflow: hidden; padding: var(--space-md); border-top: 1px solid var(--border-subtle); background: var(--background); }
|
|
2304
2351
|
.vk-chat-composer > .vk-field { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
2305
2352
|
.vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
|
|
2306
2353
|
.vk-chat-composer-actions { display: flex; justify-content: flex-end; }
|
|
2307
2354
|
.vk-chat-composer-actions .vk-btn { width: auto; }
|
|
2308
2355
|
@media (max-width: 40rem) {
|
|
2309
|
-
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer { padding: var(--space-sm); }
|
|
2356
|
+
.vk-chat-header, .vk-chat-transcript, .vk-chat-composer, .vk-chat-read-only { padding: var(--space-sm); }
|
|
2357
|
+
.vk-chat-activity-line, .vk-chat-activity-body { padding-inline: var(--space-sm); }
|
|
2310
2358
|
.vk-chat-message { max-width: 100%; }
|
|
2311
2359
|
.vk-chat-message-body { padding: var(--space-sm); }
|
|
2312
2360
|
}
|
|
2313
2361
|
@media (forced-colors: active) {
|
|
2314
2362
|
.vk-chat-message-outgoing .vk-chat-message-body { border-color: Highlight; }
|
|
2315
|
-
.vk-chat-delivery-failed, .vk-chat-feedback { color: CanvasText; }
|
|
2363
|
+
.vk-chat-delivery-failed, .vk-chat-feedback, .vk-chat-step[data-state="failed"] .vk-chat-step-state, .vk-chat-activity[data-state="failed"] .vk-chat-activity-state, .vk-chat-activity[data-state="waiting"] .vk-chat-activity-state, .vk-chat-activity-icon { color: CanvasText; }
|
|
2364
|
+
.vk-chat-activity[data-state="waiting"] { border-color: Highlight; }
|
|
2365
|
+
.vk-chat-activity-toggle { color: ButtonText; }
|
|
2366
|
+
}
|
|
2367
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2368
|
+
.vk-chat-activity-chevron { transition: none; }
|
|
2316
2369
|
}
|
|
2317
2370
|
.vk-chat-widget-launcher { position: fixed; z-index: var(--z-fixed); inset-block-end: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(var(--space-lg) + env(safe-area-inset-right, 0px)); }
|
|
2318
2371
|
.vk-chat-widget-start { inset-inline-end: auto; inset-inline-start: calc(var(--space-lg) + env(safe-area-inset-left, 0px)); }
|
|
@@ -2324,7 +2377,7 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2324
2377
|
.vk-chat-widget-panel { transform-origin: var(--radix-popover-content-transform-origin); }
|
|
2325
2378
|
.vk-chat-widget-panel[data-state="closed"] { pointer-events: none; }
|
|
2326
2379
|
@media (max-height: 32rem) {
|
|
2327
|
-
.vk-chat-widget-panel .vk-chat-header, .vk-chat-widget-panel .vk-chat-transcript, .vk-chat-widget-panel .vk-chat-composer { padding: var(--space-sm); }
|
|
2380
|
+
.vk-chat-widget-panel .vk-chat-header, .vk-chat-widget-panel .vk-chat-transcript, .vk-chat-widget-panel .vk-chat-composer, .vk-chat-widget-panel .vk-chat-read-only { padding: var(--space-sm); }
|
|
2328
2381
|
.vk-chat-widget-panel .vk-chat-transcript { flex: 0 1 4rem; min-height: 0; max-height: 25%; }
|
|
2329
2382
|
.vk-chat-widget-panel .vk-chat-composer { flex: 1; max-height: none; }
|
|
2330
2383
|
.vk-chat-widget-panel .vk-chat-composer .vk-rich-content { min-height: 2rem; padding-block: var(--space-xs); }
|
|
@@ -2333,7 +2386,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2333
2386
|
.vk-chat-widget-trigger { border-color: ButtonText; color: ButtonText; }
|
|
2334
2387
|
.vk-chat-unread { background: Highlight; color: HighlightText; }
|
|
2335
2388
|
}
|
|
2336
|
-
|
|
2389
|
+
/* The inbox fills its container; the application gives the container a height (a docked pane, a page region). */
|
|
2390
|
+
.vk-chat-inbox { container-type: inline-size; display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; border: 1px solid var(--border-subtle); background: var(--background); color: var(--foreground); }
|
|
2337
2391
|
.vk-chat-inbox-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-inline-end: 1px solid var(--border-subtle); }
|
|
2338
2392
|
.vk-chat-threads { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
|
|
2339
2393
|
.vk-chat-threads > li + li { border-top: 1px solid var(--border-subtle); }
|
|
@@ -2350,6 +2404,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
|
|
|
2350
2404
|
.vk-chat-inbox-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
2351
2405
|
.vk-chat-no-selection { flex: 1; }
|
|
2352
2406
|
.vk-chat-back { display: none; }
|
|
2407
|
+
.vk-chat-header-actions { display: flex; flex: none; align-items: center; gap: var(--space-xs); margin-inline-start: auto; }
|
|
2408
|
+
.vk-chat-header-actions .vk-btn { width: auto; }
|
|
2353
2409
|
@container (max-width: 40rem) {
|
|
2354
2410
|
.vk-chat-inbox-list { border-inline-end: 0; }
|
|
2355
2411
|
.vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
|
|
@@ -2432,16 +2488,19 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
|
|
|
2432
2488
|
@media (max-width: 40rem) {
|
|
2433
2489
|
.vk-btn-xs { width: auto; justify-content: flex-start; }
|
|
2434
2490
|
}
|
|
2435
|
-
/* Extra-small
|
|
2436
|
-
Menu, Popover and
|
|
2491
|
+
/* Extra-small controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
|
|
2492
|
+
Menu, Popover, SegmentedControl and Select. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
|
|
2437
2493
|
@media (pointer: fine) and (not (any-pointer: coarse)) {
|
|
2438
2494
|
.vk-btn-xs { min-height: var(--control-height-xs); font-size: 0.6875rem; }
|
|
2439
2495
|
.vk-btn-xs .vk-btn-label, .vk-btn-xs .vk-btn-label:only-child { padding: 0 var(--space-sm); }
|
|
2440
2496
|
.vk-btn-xs .vk-btn-glyph { width: var(--control-height-xs); }
|
|
2441
2497
|
.vk-btn-text.vk-btn-xs { font-size: var(--text-xs); }
|
|
2442
2498
|
.vk-btn-text.vk-btn-xs .vk-btn-label, .vk-btn-text.vk-btn-xs .vk-btn-label:only-child { padding: 0; }
|
|
2499
|
+
.vk-btn-text.vk-btn-xs .vk-btn-glyph { width: auto; }
|
|
2443
2500
|
.vk-icon-btn-xs { width: var(--control-height-xs); height: var(--control-height-xs); }
|
|
2444
2501
|
.vk-icon-btn-xs .vk-icon { width: 16px; height: 16px; }
|
|
2502
|
+
.vk-select-xs .vk-select-trigger { min-height: var(--control-height-xs); padding: 0 calc(var(--space-sm) + 14px + var(--space-xs)) 0 var(--space-sm); font-size: var(--text-xs); }
|
|
2503
|
+
.vk-select-xs .vk-select-icon { top: calc(var(--control-height-xs) / 2); right: var(--space-sm); width: 14px; height: 14px; }
|
|
2445
2504
|
.vk-segmented-xs .vk-segment { min-height: calc(var(--control-height-xs) - 2px); padding: 0 var(--space-sm); font-size: var(--text-xs); }
|
|
2446
2505
|
}
|
|
2447
2506
|
/* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
|