@webority/theme 0.127.0 → 0.129.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/README.md +8 -3
- package/dist/published-theme.json +2 -1
- package/dist/purge-safelist.json +55 -53
- package/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +33 -3
- package/scss/_tokens.generated.scss +395 -23
- package/scss/_variables.scss +12 -15
- package/scss/_wui-components.scss +7 -1
- package/scss/_wui-core.scss +7 -0
- package/scss/wui/_account-switcher.scss +70 -0
- package/scss/wui/_auth-layout.scss +77 -0
- package/scss/wui/_card-options.scss +45 -0
- package/scss/wui/_card.scss +5 -3
- package/scss/wui/_cell.scss +56 -0
- package/scss/wui/_choice.scss +6 -8
- package/scss/wui/_controls.scss +8 -14
- package/scss/wui/_data.scss +6 -1
- package/scss/wui/_dialog-motion.scss +90 -0
- package/scss/wui/_display.scss +12 -1
- package/scss/wui/_field-busy.scss +50 -0
- package/scss/wui/_field-floor.scss +0 -4
- package/scss/wui/_field-sizes.scss +55 -0
- package/scss/wui/_floating.scss +9 -2
- package/scss/wui/_inline-edit.scss +6 -0
- package/scss/wui/_interaction.scss +9 -1
- package/scss/wui/_overlays.scss +18 -1
- package/scss/wui/_pagination.scss +20 -2
- package/scss/wui/_rich-text.scss +5 -0
- package/scss/wui/_shell-parts.scss +17 -0
- package/scss/wui/_shell.scss +65 -0
- package/scss/wui/_typography.scss +25 -7
- package/scss/wui/_utilities.scss +35 -0
- package/scss/wui/_workspace.scss +12 -0
- package/token-meanings.json +15 -0
- package/scss/wui/_chat.scss +0 -156
package/scss/wui/_chat.scss
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
// ── Assistant chat ──
|
|
2
|
-
// <wui-chat> / <app-chat>: a launcher pinned to a bottom corner and a side panel holding the
|
|
3
|
-
// conversation and the question box. The header, buttons, form field and alerts inside are the
|
|
4
|
-
// theme's own (.drawer-header, .btn, .form-control, .alert); only the placement and the two chat
|
|
5
|
-
// shapes live here. A compact launcher is the shared .wui-floating-btn circle (_floating.scss).
|
|
6
|
-
//
|
|
7
|
-
// Part of the wui-components layer — see _wui-components.scss for load order.
|
|
8
|
-
|
|
9
|
-
// The element is a plain host: its two parts are fixed to the viewport.
|
|
10
|
-
wui-chat {
|
|
11
|
-
display: contents;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.wui-chat-launcher {
|
|
15
|
-
position: fixed;
|
|
16
|
-
// Rises above an open consent banner, which publishes its room on html.
|
|
17
|
-
bottom: var(--wui-consent-banner-block, 0px);
|
|
18
|
-
inset-inline-end: 0;
|
|
19
|
-
z-index: var(--wui-z-fixed);
|
|
20
|
-
margin: 1rem;
|
|
21
|
-
}
|
|
22
|
-
wui-chat[position="start"] .wui-chat-launcher {
|
|
23
|
-
inset-inline-end: auto;
|
|
24
|
-
inset-inline-start: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Above the shell chrome and below modals, like the drawer it stands in for.
|
|
28
|
-
.wui-chat-panel {
|
|
29
|
-
position: fixed;
|
|
30
|
-
top: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
inset-inline-end: 0;
|
|
33
|
-
z-index: var(--wui-z-shell-drawer);
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
width: min(440px, 100%);
|
|
37
|
-
background: var(--color-surface);
|
|
38
|
-
border-inline-start: 1px solid var(--color-border);
|
|
39
|
-
box-shadow: var(--wui-shadow-modal);
|
|
40
|
-
}
|
|
41
|
-
wui-chat[position="start"] .wui-chat-panel {
|
|
42
|
-
inset-inline-end: auto;
|
|
43
|
-
inset-inline-start: 0;
|
|
44
|
-
border-inline-start: 0;
|
|
45
|
-
border-inline-end: 1px solid var(--color-border);
|
|
46
|
-
}
|
|
47
|
-
// `hidden` is how the element closes the panel; display: flex above would otherwise win over it.
|
|
48
|
-
.wui-chat-panel[hidden] {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.wui-chat-body {
|
|
53
|
-
flex: 1 1 auto;
|
|
54
|
-
min-height: 0;
|
|
55
|
-
padding: 20px;
|
|
56
|
-
overflow-y: auto;
|
|
57
|
-
}
|
|
58
|
-
.wui-chat-empty {
|
|
59
|
-
padding-block: 2rem;
|
|
60
|
-
}
|
|
61
|
-
.wui-chat-foot {
|
|
62
|
-
flex: none;
|
|
63
|
-
padding: 16px 20px;
|
|
64
|
-
border-top: 1px solid var(--color-border);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// The person's question, on the right; the answer is plain text on the panel.
|
|
68
|
-
.wui-chat-question {
|
|
69
|
-
max-width: 85%;
|
|
70
|
-
}
|
|
71
|
-
.wui-chat-bubble {
|
|
72
|
-
padding: 10px 14px;
|
|
73
|
-
background: var(--color-bg-muted);
|
|
74
|
-
border-radius: var(--wui-radius-lg);
|
|
75
|
-
white-space: pre-wrap;
|
|
76
|
-
overflow-wrap: anywhere;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// The question box starts one line tall, as tall as Send beside it, and grows with its text
|
|
80
|
-
// up to a few lines. Its padding is equal top and bottom, so one line of text sits centred in it.
|
|
81
|
-
.wui-chat-composer .form-control {
|
|
82
|
-
min-height: var(--wui-control-md);
|
|
83
|
-
max-height: 9rem;
|
|
84
|
-
padding-block: 10px;
|
|
85
|
-
resize: none;
|
|
86
|
-
}
|
|
87
|
-
// A form reserves a line under each field for its error; the question box has none, and the
|
|
88
|
-
// empty line pushed Send below the box.
|
|
89
|
-
.wui-chat-composer .wui-field-message:empty {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Attachments wrap onto new rows as the composer or a sent question grows.
|
|
94
|
-
.wui-chat-attachments {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-wrap: wrap;
|
|
97
|
-
gap: var(--wui-space-xs);
|
|
98
|
-
}
|
|
99
|
-
.wui-chat-question-attachments {
|
|
100
|
-
display: flex;
|
|
101
|
-
flex-wrap: wrap;
|
|
102
|
-
justify-content: flex-end;
|
|
103
|
-
gap: var(--wui-space-xs);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// The banner that says a question is being edited, with its cancel control beside the text.
|
|
107
|
-
.wui-chat-editing {
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
gap: var(--wui-space-sm);
|
|
111
|
-
padding: var(--wui-space-sm) var(--wui-space-md);
|
|
112
|
-
background: var(--color-bg-muted);
|
|
113
|
-
border-radius: var(--wui-radius-md);
|
|
114
|
-
color: var(--color-text-muted);
|
|
115
|
-
font-size: var(--wui-fs-sm);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Copy, edit, retry and the other actions under an answer; they wrap rather than overflow the panel.
|
|
119
|
-
.wui-chat-turn-actions {
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-wrap: wrap;
|
|
122
|
-
gap: var(--wui-space-xs);
|
|
123
|
-
margin-block-start: var(--wui-space-xs);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Suggested follow-up questions under an answer, as wrapping chips.
|
|
127
|
-
.wui-chat-suggestions {
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-wrap: wrap;
|
|
130
|
-
gap: var(--wui-space-xs);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Past chats: a scrolling list in the body's padding, one row per chat.
|
|
134
|
-
.wui-chat-past {
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: column;
|
|
137
|
-
flex: 1 1 auto;
|
|
138
|
-
min-height: 0;
|
|
139
|
-
gap: var(--wui-space-xs);
|
|
140
|
-
padding: var(--wui-space-lg);
|
|
141
|
-
overflow: auto;
|
|
142
|
-
}
|
|
143
|
-
// min-width 0 lets the title inside the row shrink and truncate instead of pushing the row wider.
|
|
144
|
-
.wui-chat-past-row {
|
|
145
|
-
display: flex;
|
|
146
|
-
align-items: center;
|
|
147
|
-
gap: var(--wui-space-sm);
|
|
148
|
-
min-width: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// Bootstrap's d-flex is !important, so hidden needs its own rule.
|
|
152
|
-
.wui-chat-foot[hidden],
|
|
153
|
-
.wui-chat-past[hidden],
|
|
154
|
-
.wui-chat-suggestions[hidden] {
|
|
155
|
-
display: none !important;
|
|
156
|
-
}
|