@gravity-ui/aikit 1.7.0 → 1.8.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 +0 -2
- package/dist/components/atoms/Alert/Alert.css +28 -0
- package/dist/components/atoms/ChatDate/ChatDate.css +9 -0
- package/dist/components/atoms/ContextIndicator/ContextIndicator.css +66 -0
- package/dist/components/atoms/DiffStat/DiffStat.css +23 -0
- package/dist/components/atoms/Disclaimer/Disclaimer.css +7 -0
- package/dist/components/atoms/IntersectionContainer/IntersectionContainer.css +3 -0
- package/dist/components/atoms/Loader/Loader.css +48 -0
- package/dist/components/atoms/MarkdownRenderer/MarkdownRenderer.css +5 -0
- package/dist/components/atoms/MessageBalloon/MessageBalloon.css +7 -0
- package/dist/components/atoms/Shimmer/Shimmer.css +18 -0
- package/dist/components/atoms/SubmitButton/SubmitButton.css +20 -0
- package/dist/components/atoms/ToolIndicator/ToolIndicator.css +9 -0
- package/dist/components/molecules/BaseMessage/BaseMessage.css +26 -0
- package/dist/components/molecules/ButtonGroup/ButtonGroup.css +13 -0
- package/dist/components/molecules/PromptInputBody/PromptInputBody.css +15 -0
- package/dist/components/molecules/PromptInputFooter/PromptInputFooter.css +18 -0
- package/dist/components/molecules/PromptInputHeader/PromptInputHeader.css +21 -0
- package/dist/components/molecules/PromptInputPanel/PromptInputPanel.css +7 -0
- package/dist/components/molecules/Suggestions/Suggestions.css +71 -0
- package/dist/components/molecules/Tabs/Tabs.css +35 -0
- package/dist/components/molecules/ToolFooter/ToolFooter.css +10 -0
- package/dist/components/molecules/ToolHeader/ToolHeader.css +18 -0
- package/dist/components/molecules/ToolStatus/ToolStatus.css +1 -0
- package/dist/components/organisms/AssistantMessage/AssistantMessage.css +6 -0
- package/dist/components/organisms/Header/Header.css +40 -0
- package/dist/components/organisms/MessageList/MessageList.css +26 -0
- package/dist/components/organisms/PromptInput/PromptInput.css +50 -0
- package/dist/components/organisms/ThinkingMessage/ThinkingMessage.css +20 -0
- package/dist/components/organisms/ToolMessage/ToolMessage.css +13 -0
- package/dist/components/organisms/UserMessage/UserMessage.css +10 -0
- package/dist/components/pages/ChatContainer/ChatContainer.css +49 -0
- package/dist/components/templates/ChatContent/ChatContent.css +23 -0
- package/dist/components/templates/EmptyContainer/EmptyContainer.css +64 -0
- package/dist/components/templates/History/History.css +81 -0
- package/dist/demo/ContentWrapper/ContentWrapper.css +6 -0
- package/dist/demo/DocsDecorator/DocsDecorator.css +87 -0
- package/dist/demo/Showcase/Showcase.css +34 -0
- package/dist/demo/ShowcaseItem/ShowcaseItem.css +7 -0
- package/dist/demo/SwapArea/SwapArea.css +11 -0
- package/dist/styles/variables.css +1 -0
- package/package.json +5 -5
- package/dist/components/atoms/Alert/Alert.scss +0 -39
- package/dist/components/atoms/ChatDate/ChatDate.scss +0 -15
- package/dist/components/atoms/ContextIndicator/ContextIndicator.scss +0 -93
- package/dist/components/atoms/DiffStat/DiffStat.scss +0 -36
- package/dist/components/atoms/Disclaimer/Disclaimer.scss +0 -13
- package/dist/components/atoms/IntersectionContainer/IntersectionContainer.scss +0 -7
- package/dist/components/atoms/Loader/Loader.scss +0 -72
- package/dist/components/atoms/MarkdownRenderer/MarkdownRenderer.scss +0 -10
- package/dist/components/atoms/MessageBalloon/MessageBalloon.scss +0 -11
- package/dist/components/atoms/Shimmer/Shimmer.scss +0 -32
- package/dist/components/atoms/SubmitButton/SubmitButton.scss +0 -29
- package/dist/components/atoms/ToolIndicator/ToolIndicator.scss +0 -15
- package/dist/components/molecules/BaseMessage/BaseMessage.scss +0 -41
- package/dist/components/molecules/ButtonGroup/ButtonGroup.scss +0 -19
- package/dist/components/molecules/PromptInputBody/PromptInputBody.scss +0 -22
- package/dist/components/molecules/PromptInputFooter/PromptInputFooter.scss +0 -25
- package/dist/components/molecules/PromptInputHeader/PromptInputHeader.scss +0 -27
- package/dist/components/molecules/PromptInputPanel/PromptInputPanel.scss +0 -11
- package/dist/components/molecules/Suggestions/Suggestions.scss +0 -90
- package/dist/components/molecules/Tabs/Tabs.scss +0 -46
- package/dist/components/molecules/ToolFooter/ToolFooter.scss +0 -15
- package/dist/components/molecules/ToolHeader/ToolHeader.scss +0 -24
- package/dist/components/molecules/ToolStatus/ToolStatus.scss +0 -6
- package/dist/components/organisms/AssistantMessage/AssistantMessage.scss +0 -10
- package/dist/components/organisms/Header/Header.scss +0 -51
- package/dist/components/organisms/MessageList/MessageList.scss +0 -35
- package/dist/components/organisms/PromptInput/PromptInput.scss +0 -77
- package/dist/components/organisms/ThinkingMessage/ThinkingMessage.scss +0 -27
- package/dist/components/organisms/ToolMessage/ToolMessage.scss +0 -19
- package/dist/components/organisms/UserMessage/UserMessage.scss +0 -14
- package/dist/components/pages/ChatContainer/ChatContainer.scss +0 -60
- package/dist/components/templates/ChatContent/ChatContent.scss +0 -30
- package/dist/components/templates/EmptyContainer/EmptyContainer.scss +0 -86
- package/dist/components/templates/History/History.scss +0 -103
- package/dist/styles/_functions.scss +0 -5
- package/dist/styles/variables.scss +0 -1
- /package/dist/styles/{styles.scss → styles.css} +0 -0
package/README.md
CHANGED
|
@@ -185,10 +185,8 @@ If you're on Linux, you can run tests locally:
|
|
|
185
185
|
```bash
|
|
186
186
|
# Install Playwright browsers (run once)
|
|
187
187
|
npm run playwright:install
|
|
188
|
-
|
|
189
188
|
# Run all component tests
|
|
190
189
|
npm run playwright
|
|
191
|
-
|
|
192
190
|
# Update screenshot baselines
|
|
193
191
|
npm run playwright:update
|
|
194
192
|
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.g-aikit-alert {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--g-spacing-2);
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-alert__header {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: var(--g-spacing-2);
|
|
10
|
+
}
|
|
11
|
+
.g-aikit-alert__text {
|
|
12
|
+
flex: 1;
|
|
13
|
+
}
|
|
14
|
+
.g-aikit-alert__icon {
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
.g-aikit-alert__icon_variant_error {
|
|
18
|
+
color: var(--g-color-text-danger);
|
|
19
|
+
}
|
|
20
|
+
.g-aikit-alert__icon_variant_warning {
|
|
21
|
+
color: var(--g-color-text-warning-heavy);
|
|
22
|
+
}
|
|
23
|
+
.g-aikit-alert__icon_variant_info {
|
|
24
|
+
color: var(--g-color-text-info);
|
|
25
|
+
}
|
|
26
|
+
.g-aikit-alert__action {
|
|
27
|
+
margin-left: auto;
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.g-aikit-chat-date {
|
|
2
|
+
color: var(--g-color-text-secondary);
|
|
3
|
+
font-family: var(--g-text-body-font-family);
|
|
4
|
+
font-size: var(--g-text-body-1-font-size);
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: var(--g-text-body-font-weight);
|
|
7
|
+
line-height: var(--g-text-body-1-line-height);
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.g-aikit-context-indicator__container {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
}
|
|
7
|
+
.g-aikit-context-indicator__container_orientation_horizontal {
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
}
|
|
10
|
+
.g-aikit-context-indicator__container_orientation_horizontal.g-aikit-context-indicator__container_reversed {
|
|
11
|
+
flex-direction: row-reverse;
|
|
12
|
+
}
|
|
13
|
+
.g-aikit-context-indicator__container_orientation_vertical {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
.g-aikit-context-indicator__container_orientation_vertical.g-aikit-context-indicator__container_reversed {
|
|
17
|
+
flex-direction: column-reverse;
|
|
18
|
+
}
|
|
19
|
+
.g-aikit-context-indicator__progress {
|
|
20
|
+
--percentage: 0;
|
|
21
|
+
--progress-color: var(--g-aikit-ci-color-progress-1);
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
.g-aikit-context-indicator__progress::before {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 0;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
opacity: 0.3;
|
|
36
|
+
background: var(--progress-color);
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
}
|
|
39
|
+
.g-aikit-context-indicator__progress::after {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
opacity: 1;
|
|
45
|
+
background: conic-gradient(var(--progress-color) 0deg, var(--progress-color) calc(3.6deg * var(--percentage)), transparent calc(3.6deg * var(--percentage)), transparent 360deg);
|
|
46
|
+
}
|
|
47
|
+
.g-aikit-context-indicator__inner {
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
width: calc(100% - 4px);
|
|
50
|
+
height: calc(100% - 4px);
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
background: var(--g-aikit-color-bg-primary);
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
}
|
|
56
|
+
.g-aikit-context-indicator__value {
|
|
57
|
+
color: var(--g-color-text-primary);
|
|
58
|
+
font-family: var(--g-text-body-font-family);
|
|
59
|
+
font-size: var(--g-text-body-1-font-size);
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: var(--g-text-body-font-weight);
|
|
62
|
+
line-height: var(--g-text-body-1-line-height);
|
|
63
|
+
}
|
|
64
|
+
.g-aikit-context-indicator__value::after {
|
|
65
|
+
content: "%";
|
|
66
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.g-aikit-diff-stat {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
color: var(--g-color-text-danger);
|
|
6
|
+
font-family: var(--g-text-code-font-family);
|
|
7
|
+
font-size: var(--g-text-code-inline-1);
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: var(--g-text-code-font-weight);
|
|
10
|
+
line-height: var(--g-text-code-inline-1-line-height);
|
|
11
|
+
}
|
|
12
|
+
.g-aikit-diff-stat__added {
|
|
13
|
+
color: var(--g-color-text-positive-heavy);
|
|
14
|
+
}
|
|
15
|
+
.g-aikit-diff-stat__added_allow_sign::before {
|
|
16
|
+
content: "+";
|
|
17
|
+
}
|
|
18
|
+
.g-aikit-diff-stat__deleted {
|
|
19
|
+
color: var(--g-color-text-danger);
|
|
20
|
+
}
|
|
21
|
+
.g-aikit-diff-stat__deleted_allow_sign::before {
|
|
22
|
+
content: "-";
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@keyframes pulse {
|
|
2
|
+
100% {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
50% {
|
|
6
|
+
opacity: 70%;
|
|
7
|
+
}
|
|
8
|
+
0% {
|
|
9
|
+
opacity: 40%;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.g-aikit-loader {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--g-spacing-1);
|
|
16
|
+
}
|
|
17
|
+
.g-aikit-loader__left, .g-aikit-loader__center, .g-aikit-loader__right {
|
|
18
|
+
background: var(--g-color-text-secondary);
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
animation: pulse ease 800ms infinite;
|
|
21
|
+
}
|
|
22
|
+
.g-aikit-loader_size_xs .g-aikit-loader__left,
|
|
23
|
+
.g-aikit-loader_size_xs .g-aikit-loader__center,
|
|
24
|
+
.g-aikit-loader_size_xs .g-aikit-loader__right {
|
|
25
|
+
width: 3px;
|
|
26
|
+
height: 3px;
|
|
27
|
+
}
|
|
28
|
+
.g-aikit-loader_size_s .g-aikit-loader__left,
|
|
29
|
+
.g-aikit-loader_size_s .g-aikit-loader__center,
|
|
30
|
+
.g-aikit-loader_size_s .g-aikit-loader__right {
|
|
31
|
+
width: 5px;
|
|
32
|
+
height: 5px;
|
|
33
|
+
}
|
|
34
|
+
.g-aikit-loader_size_m .g-aikit-loader__left,
|
|
35
|
+
.g-aikit-loader_size_m .g-aikit-loader__center,
|
|
36
|
+
.g-aikit-loader_size_m .g-aikit-loader__right {
|
|
37
|
+
width: 8px;
|
|
38
|
+
height: 8px;
|
|
39
|
+
}
|
|
40
|
+
.g-aikit-loader__left {
|
|
41
|
+
animation-delay: 200ms;
|
|
42
|
+
}
|
|
43
|
+
.g-aikit-loader__center {
|
|
44
|
+
animation-delay: 400ms;
|
|
45
|
+
}
|
|
46
|
+
.g-aikit-loader__right {
|
|
47
|
+
animation-delay: 600ms;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.g-aikit-shimmer__container {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
color: var(--g-aikit-text-primary, inherit);
|
|
5
|
+
mask-image: linear-gradient(90deg, var(--g-aikit-shimmer-color-from) 0%, var(--g-aikit-shimmer-color-from) 40%, var(--g-aikit-shimmer-color-to) 50%, var(--g-aikit-shimmer-color-from) 60%, var(--g-aikit-shimmer-color-from) 100%);
|
|
6
|
+
mask-size: var(--g-aikit-shimmer-gradient-size) 100%;
|
|
7
|
+
mask-clip: text;
|
|
8
|
+
animation: shimmer var(--g-aikit-shimmer-duration) infinite linear;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes shimmer {
|
|
12
|
+
0% {
|
|
13
|
+
mask-position: 200% 50%;
|
|
14
|
+
}
|
|
15
|
+
100% {
|
|
16
|
+
mask-position: 0% 50%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.g-aikit-submit-button {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-submit-button_size_s.g-aikit-submit-button_loading {
|
|
7
|
+
padding: 4px;
|
|
8
|
+
}
|
|
9
|
+
.g-aikit-submit-button_size_m.g-aikit-submit-button_loading {
|
|
10
|
+
padding: 6px;
|
|
11
|
+
}
|
|
12
|
+
.g-aikit-submit-button_size_l.g-aikit-submit-button_loading {
|
|
13
|
+
padding: 10px;
|
|
14
|
+
}
|
|
15
|
+
.g-aikit-submit-button__loader {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
.g-aikit-submit-button__spinner {
|
|
19
|
+
--g-color-line-brand: var(--g-color-text-brand-contrast);
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.g-aikit-base-message {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--g-spacing-1);
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-base-message_variant_user {
|
|
7
|
+
align-items: flex-end;
|
|
8
|
+
max-width: 90%;
|
|
9
|
+
}
|
|
10
|
+
.g-aikit-base-message_variant_system, .g-aikit-base-message_variant_assistant {
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
}
|
|
13
|
+
.g-aikit-base-message_btn-hover .g-aikit-base-message__actions {
|
|
14
|
+
visibility: hidden;
|
|
15
|
+
}
|
|
16
|
+
.g-aikit-base-message_btn-hover:hover .g-aikit-base-message__actions {
|
|
17
|
+
visibility: visible;
|
|
18
|
+
}
|
|
19
|
+
.g-aikit-base-message__actions {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--g-spacing-3);
|
|
23
|
+
}
|
|
24
|
+
.g-aikit-base-message__actions_reverse {
|
|
25
|
+
flex-direction: row-reverse;
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.g-aikit-button-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
gap: var(--g-spacing-1);
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-button-group_or_vertical {
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
}
|
|
10
|
+
.g-aikit-button-group_or_horizontal {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.g-aikit-prompt-input-body {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
flex: 1;
|
|
5
|
+
align-self: stretch;
|
|
6
|
+
}
|
|
7
|
+
.g-aikit-prompt-input-body__textarea {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
.g-aikit-prompt-input-body__textarea-control {
|
|
11
|
+
resize: none;
|
|
12
|
+
}
|
|
13
|
+
.g-aikit-prompt-input-body .g-text-area_disabled {
|
|
14
|
+
--_--background-color: none;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.g-aikit-prompt-input-footer {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-end;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-self: stretch;
|
|
6
|
+
gap: var(--g-spacing-1);
|
|
7
|
+
}
|
|
8
|
+
.g-aikit-prompt-input-footer__action-button {
|
|
9
|
+
color: var(--g-color-text-secondary);
|
|
10
|
+
}
|
|
11
|
+
.g-aikit-prompt-input-footer__action-button:hover {
|
|
12
|
+
color: var(--g-color-text-primary);
|
|
13
|
+
}
|
|
14
|
+
.g-aikit-prompt-input-footer__content {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
flex: 1;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.g-aikit-prompt-input-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
gap: var(--g-spacing-2);
|
|
6
|
+
align-self: stretch;
|
|
7
|
+
}
|
|
8
|
+
.g-aikit-prompt-input-header__context-items {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--g-spacing-1);
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
flex: 1;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
.g-aikit-prompt-input-header__context-indicator {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
margin-left: auto;
|
|
21
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.g-aikit-suggestions__container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--g-spacing-2);
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-suggestions__title {
|
|
7
|
+
padding-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
.g-aikit-suggestions {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
align-content: flex-start;
|
|
13
|
+
gap: var(--g-spacing-2) var(--g-spacing-2);
|
|
14
|
+
align-self: stretch;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
}
|
|
17
|
+
.g-aikit-suggestions_layout_grid {
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
}
|
|
20
|
+
.g-aikit-suggestions_layout_list {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
.g-aikit-suggestions_layout_list .g-aikit-suggestions__button {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
.g-aikit-suggestions__button {
|
|
27
|
+
padding: calc(var(--g-spacing-base) * 2) calc(var(--g-spacing-base) * 4);
|
|
28
|
+
height: 100%;
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
}
|
|
31
|
+
.g-aikit-suggestions__button .g-button__text {
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
.g-aikit-suggestions__button-content {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
flex: 1;
|
|
40
|
+
gap: calc(var(--g-spacing-base) * 1);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
.g-aikit-suggestions__button-content_text-align_left {
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
}
|
|
46
|
+
.g-aikit-suggestions__button-content_text-align_center {
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
.g-aikit-suggestions__button-content_text-align_right {
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
}
|
|
52
|
+
.g-aikit-suggestions__button-text {
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
}
|
|
58
|
+
.g-aikit-suggestions__button-text-wrap {
|
|
59
|
+
word-break: break-word;
|
|
60
|
+
white-space: normal;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
text-align: left;
|
|
63
|
+
}
|
|
64
|
+
.g-aikit-suggestions__button-icon {
|
|
65
|
+
width: 16px;
|
|
66
|
+
height: 16px;
|
|
67
|
+
color: var(--g-color-text-hint);
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.g-aikit-tabs {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: var(--g-spacing-2);
|
|
7
|
+
overflow: scroll hidden;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
padding: var(--g-spacing-1) 0;
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
transition: scrollbar-color 0.3s ease-in-out;
|
|
12
|
+
scrollbar-color: transparent transparent;
|
|
13
|
+
}
|
|
14
|
+
.g-aikit-tabs:hover {
|
|
15
|
+
scrollbar-color: var(--g-color-base-generic-medium) transparent;
|
|
16
|
+
}
|
|
17
|
+
.g-aikit-tabs::-webkit-scrollbar {
|
|
18
|
+
height: 6px;
|
|
19
|
+
}
|
|
20
|
+
.g-aikit-tabs::-webkit-scrollbar-track {
|
|
21
|
+
background: transparent;
|
|
22
|
+
}
|
|
23
|
+
.g-aikit-tabs::-webkit-scrollbar-thumb {
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
border-radius: 3px;
|
|
26
|
+
transition: background-color 0.3s ease-in-out;
|
|
27
|
+
}
|
|
28
|
+
.g-aikit-tabs:hover::-webkit-scrollbar-thumb {
|
|
29
|
+
background-color: var(--g-color-base-generic-medium);
|
|
30
|
+
}
|
|
31
|
+
.g-aikit-tabs__tab {
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
cursor: default;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.g-aikit-tool-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
height: 24px;
|
|
6
|
+
gap: var(--g-spacing-2);
|
|
7
|
+
}
|
|
8
|
+
.g-aikit-tool-header__left {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--g-spacing-2);
|
|
13
|
+
}
|
|
14
|
+
.g-aikit-tool-header__right {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--g-spacing-3);
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.g-aikit-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
gap: var(--g-spacing-2);
|
|
6
|
+
width: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background: var(--g-aikit-header-background);
|
|
9
|
+
}
|
|
10
|
+
.g-aikit-header__icon {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
}
|
|
15
|
+
.g-aikit-header__title-container {
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: var(--g-spacing-1);
|
|
18
|
+
flex: 1;
|
|
19
|
+
align-items: baseline;
|
|
20
|
+
}
|
|
21
|
+
.g-aikit-header__title-container_position_left {
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
}
|
|
24
|
+
.g-aikit-header__title-container_position_center {
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
.g-aikit-header__title {
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
.g-aikit-header__preview {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
}
|
|
38
|
+
.g-aikit-header__action-button {
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.g-aikit-message-list {
|
|
2
|
+
overflow-y: auto;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
flex: 1;
|
|
7
|
+
align-self: stretch;
|
|
8
|
+
}
|
|
9
|
+
.g-aikit-message-list__messages {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--g-spacing-4);
|
|
13
|
+
}
|
|
14
|
+
.g-aikit-message-list__retry-button {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--g-spacing-1);
|
|
18
|
+
}
|
|
19
|
+
.g-aikit-message-list__loader, .g-aikit-message-list__error-alert {
|
|
20
|
+
margin-top: var(--g-spacing-4);
|
|
21
|
+
}
|
|
22
|
+
.g-aikit-message-list__load-trigger {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding: var(--g-spacing-2);
|
|
26
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.g-aikit-prompt-input {
|
|
2
|
+
border-radius: var(--g-border-radius-xl);
|
|
3
|
+
border: 1px solid var(--g-color-line-generic);
|
|
4
|
+
background: var(--g-color-base-float);
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
.g-aikit-prompt-input_view_simple {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
padding: var(--g-spacing-1) var(--g-spacing-1) var(--g-spacing-1) var(--g-spacing-3);
|
|
11
|
+
}
|
|
12
|
+
.g-aikit-prompt-input_view_full {
|
|
13
|
+
display: flex;
|
|
14
|
+
padding: var(--g-spacing-2);
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
gap: var(--g-spacing-2);
|
|
18
|
+
}
|
|
19
|
+
.g-aikit-prompt-input_view_full .g-aikit-prompt-input__textarea {
|
|
20
|
+
padding-top: 0;
|
|
21
|
+
}
|
|
22
|
+
.g-aikit-prompt-input__content {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: flex-end;
|
|
25
|
+
gap: var(--g-spacing-2);
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
.g-aikit-prompt-input__panel-wrapper {
|
|
29
|
+
background: var(--g-color-base-simple-hover-solid);
|
|
30
|
+
border-radius: var(--g-border-radius-xl);
|
|
31
|
+
}
|
|
32
|
+
.g-aikit-prompt-input__panel {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
|
|
35
|
+
will-change: max-height, opacity, margin;
|
|
36
|
+
max-height: 0;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
.g-aikit-prompt-input__panel_open {
|
|
41
|
+
max-height: var(--g-aikit-prompt-input-panel-max-height);
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
.g-aikit-prompt-input__suggestions-wrapper {
|
|
45
|
+
align-self: stretch;
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
48
|
+
.g-aikit-prompt-input__suggestions {
|
|
49
|
+
padding-bottom: var(--g-spacing-2);
|
|
50
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.g-aikit-thinking-message {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--g-spacing-2);
|
|
5
|
+
padding: var(--g-spacing-1) 0 var(--g-spacing-1) var(--g-spacing-4);
|
|
6
|
+
border-left: 2px solid var(--g-color-line-generic);
|
|
7
|
+
}
|
|
8
|
+
.g-aikit-thinking-message__buttons {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--g-spacing-2);
|
|
12
|
+
}
|
|
13
|
+
.g-aikit-thinking-message__container {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--g-spacing-6);
|
|
17
|
+
}
|
|
18
|
+
.g-aikit-thinking-message__content {
|
|
19
|
+
color: var(--g-color-text-complementary);
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.g-aikit-tool-message {
|
|
2
|
+
padding: var(--g-spacing-2);
|
|
3
|
+
border-radius: var(--g-border-radius-xl);
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
.g-aikit-tool-message_waiting {
|
|
7
|
+
border-color: var(--g-color-line-brand);
|
|
8
|
+
}
|
|
9
|
+
.g-aikit-tool-message__container {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--g-spacing-2);
|
|
13
|
+
}
|