@gooddata/sdk-ui-gen-ai 10.28.0-alpha.2 → 10.28.0-alpha.21
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/NOTICE +3 -3
- package/esm/components/ConfigContext.d.ts +2 -0
- package/esm/components/ConfigContext.d.ts.map +1 -1
- package/esm/components/ConfigContext.js +3 -2
- package/esm/components/ConfigContext.js.map +1 -1
- package/esm/components/GenAIChat.d.ts +5 -1
- package/esm/components/GenAIChat.d.ts.map +1 -1
- package/esm/components/GenAIChat.js +2 -2
- package/esm/components/GenAIChat.js.map +1 -1
- package/esm/components/GenAIChatDialog.d.ts +2 -1
- package/esm/components/GenAIChatDialog.d.ts.map +1 -1
- package/esm/components/GenAIChatDialog.js +2 -2
- package/esm/components/GenAIChatDialog.js.map +1 -1
- package/esm/components/GenAIChatWrapper.d.ts.map +1 -1
- package/esm/components/GenAIChatWrapper.js +4 -2
- package/esm/components/GenAIChatWrapper.js.map +1 -1
- package/esm/components/Input.d.ts +3 -1
- package/esm/components/Input.d.ts.map +1 -1
- package/esm/components/Input.js +11 -6
- package/esm/components/Input.js.map +1 -1
- package/esm/components/completion/InfoComponent.d.ts +4 -0
- package/esm/components/completion/InfoComponent.d.ts.map +1 -0
- package/esm/components/completion/InfoComponent.js +27 -0
- package/esm/components/completion/InfoComponent.js.map +1 -0
- package/esm/components/completion/index.d.ts +2 -0
- package/esm/components/completion/index.d.ts.map +1 -0
- package/esm/components/completion/index.js +3 -0
- package/esm/components/completion/index.js.map +1 -0
- package/esm/components/completion/useCompletion.d.ts +9 -0
- package/esm/components/completion/useCompletion.d.ts.map +1 -0
- package/esm/components/completion/useCompletion.js +136 -0
- package/esm/components/completion/useCompletion.js.map +1 -0
- package/esm/components/completion/utils.d.ts +12 -0
- package/esm/components/completion/utils.d.ts.map +1 -0
- package/esm/components/completion/utils.js +57 -0
- package/esm/components/completion/utils.js.map +1 -0
- package/esm/components/highlight/index.d.ts +2 -0
- package/esm/components/highlight/index.d.ts.map +1 -0
- package/esm/components/highlight/index.js +3 -0
- package/esm/components/highlight/index.js.map +1 -0
- package/esm/components/highlight/useHighlight.d.ts +8 -0
- package/esm/components/highlight/useHighlight.d.ts.map +1 -0
- package/esm/components/highlight/useHighlight.js +68 -0
- package/esm/components/highlight/useHighlight.js.map +1 -0
- package/esm/localization/bundles/en-US.json +20 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts +20 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-US.localization-bundle.js +20 -0
- package/esm/localization/bundles/en-US.localization-bundle.js.map +1 -1
- package/esm/sdk-ui-gen-ai.d.ts +5 -0
- package/package.json +16 -13
- package/styles/css/input.css +142 -0
- package/styles/css/input.css.map +1 -1
- package/styles/css/main.css +144 -2
- package/styles/css/main.css.map +1 -1
- package/styles/css/messages.css +2 -2
- package/styles/css/messages.css.map +1 -1
- package/styles/scss/input.scss +159 -0
- package/styles/scss/messages.scss +2 -2
package/styles/scss/input.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// (C) 2024-2025 GoodData Corporation
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
2
3
|
|
|
3
4
|
@use "sass:color";
|
|
4
5
|
@use "@gooddata/sdk-ui-kit/styles/scss/variables" as kit-variables;
|
|
@@ -6,6 +7,27 @@
|
|
|
6
7
|
@use "@gooddata/sdk-ui-kit/styles/scss/Form/mixins" as form-mixins;
|
|
7
8
|
@use "variables" as variables;
|
|
8
9
|
|
|
10
|
+
$base_path: "~@gooddata/sdk-ui-kit/styles";
|
|
11
|
+
|
|
12
|
+
@mixin gd-svg-icon-base {
|
|
13
|
+
&::before {
|
|
14
|
+
content: "";
|
|
15
|
+
display: block;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-position: center;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin gd-svg-icon($filename) {
|
|
24
|
+
@include gd-svg-icon-base;
|
|
25
|
+
|
|
26
|
+
&::before {
|
|
27
|
+
background-image: url($base_path + "/icons/" + $filename + ".svg");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
9
31
|
.gd-gen-ai-chat__input {
|
|
10
32
|
position: relative;
|
|
11
33
|
margin: 0 variables.$x-spacing;
|
|
@@ -82,4 +104,141 @@
|
|
|
82
104
|
}
|
|
83
105
|
}
|
|
84
106
|
}
|
|
107
|
+
|
|
108
|
+
//CodeMirror autocomplete restyle
|
|
109
|
+
.cm-tooltip.cm-tooltip-autocomplete {
|
|
110
|
+
background: kit-variables.$gd-color-white;
|
|
111
|
+
border: 1px solid kit-variables.$gd-border-color;
|
|
112
|
+
border-radius: 3px;
|
|
113
|
+
|
|
114
|
+
& > ul {
|
|
115
|
+
padding: 6px 0;
|
|
116
|
+
min-width: 240px;
|
|
117
|
+
max-height: 234px;
|
|
118
|
+
|
|
119
|
+
& > li {
|
|
120
|
+
display: flex;
|
|
121
|
+
padding: 5px 10px;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: 7px;
|
|
124
|
+
align-self: stretch;
|
|
125
|
+
|
|
126
|
+
&[aria-selected="true"],
|
|
127
|
+
&:hover {
|
|
128
|
+
background: kit-variables.$is-focused-background;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.cm-completionIcon {
|
|
132
|
+
width: 17px;
|
|
133
|
+
aspect-ratio: 1 / 1;
|
|
134
|
+
|
|
135
|
+
&-metric {
|
|
136
|
+
@include gd-svg-icon("metric");
|
|
137
|
+
}
|
|
138
|
+
&-attribute {
|
|
139
|
+
@include gd-svg-icon("attribute");
|
|
140
|
+
}
|
|
141
|
+
&-fact {
|
|
142
|
+
@include gd-svg-icon("measure");
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.cm-completionLabel {
|
|
147
|
+
font-family: kit-variables.$gd-font-primary;
|
|
148
|
+
color: kit-variables.$gd-color-text;
|
|
149
|
+
flex: 1 0 0;
|
|
150
|
+
font-size: 12px;
|
|
151
|
+
font-style: normal;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
line-height: 18px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
//CodeMirror completion info restyle
|
|
160
|
+
.cm-tooltip.cm-completionInfo {
|
|
161
|
+
min-width: 220px;
|
|
162
|
+
background: kit-variables.$gd-color-white;
|
|
163
|
+
border: 1px solid kit-variables.$gd-border-color;
|
|
164
|
+
border-radius: 3px;
|
|
165
|
+
padding: 0;
|
|
166
|
+
|
|
167
|
+
.gd-gen-ai-chat__autocomplete__info {
|
|
168
|
+
display: flex;
|
|
169
|
+
min-width: 220px;
|
|
170
|
+
max-width: 220px;
|
|
171
|
+
padding: 15px;
|
|
172
|
+
gap: 10px;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
align-items: flex-start;
|
|
175
|
+
font-family: kit-variables.$gd-font-primary;
|
|
176
|
+
|
|
177
|
+
h3 {
|
|
178
|
+
align-self: stretch;
|
|
179
|
+
padding: 0;
|
|
180
|
+
margin: 0;
|
|
181
|
+
color: kit-variables.$gd-color-text;
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
font-style: normal;
|
|
184
|
+
font-weight: 700;
|
|
185
|
+
line-height: 23px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
p {
|
|
189
|
+
margin: 0;
|
|
190
|
+
padding: 0;
|
|
191
|
+
line-clamp: 4;
|
|
192
|
+
align-self: stretch;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
color: kit-variables.$gd-color-link;
|
|
195
|
+
text-overflow: ellipsis;
|
|
196
|
+
font-size: 13px;
|
|
197
|
+
font-style: normal;
|
|
198
|
+
font-weight: 400;
|
|
199
|
+
line-height: 18px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.type {
|
|
203
|
+
display: flex;
|
|
204
|
+
gap: 3px;
|
|
205
|
+
padding-top: 5px;
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
align-items: flex-start;
|
|
208
|
+
align-self: stretch;
|
|
209
|
+
|
|
210
|
+
.type-title {
|
|
211
|
+
color: kit-variables.$gd-color-state-blank;
|
|
212
|
+
align-self: stretch;
|
|
213
|
+
font-size: 10px;
|
|
214
|
+
font-style: normal;
|
|
215
|
+
font-weight: 400;
|
|
216
|
+
line-height: normal;
|
|
217
|
+
text-transform: uppercase;
|
|
218
|
+
}
|
|
219
|
+
.type-value {
|
|
220
|
+
color: kit-variables.$gd-color-text;
|
|
221
|
+
font-size: 12px;
|
|
222
|
+
font-style: normal;
|
|
223
|
+
font-weight: 400;
|
|
224
|
+
line-height: 19px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
//CodeMirror highlight restyle
|
|
231
|
+
.cm-editor .cm-highlight-phrase {
|
|
232
|
+
font-weight: bold;
|
|
233
|
+
|
|
234
|
+
&.metric {
|
|
235
|
+
color: kit-variables.$gd-palette-success-base;
|
|
236
|
+
}
|
|
237
|
+
&.fact {
|
|
238
|
+
color: kit-variables.$gd-palette-success-base;
|
|
239
|
+
}
|
|
240
|
+
&.attribute {
|
|
241
|
+
color: kit-variables.$gd-palette-warning-base-text;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
85
244
|
}
|
|
@@ -226,11 +226,11 @@
|
|
|
226
226
|
width: 40px;
|
|
227
227
|
|
|
228
228
|
svg path {
|
|
229
|
-
fill: color-mix(in sRGB, kit-variables.$gd-
|
|
229
|
+
fill: color-mix(in sRGB, kit-variables.$gd-color-white, transparent 20%);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
&:hover svg path {
|
|
233
|
-
fill: kit-variables.$gd-
|
|
233
|
+
fill: kit-variables.$gd-color-white;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|