@jonsoc/ui 1.1.34 → 1.1.49
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/package.json +28 -24
- package/script/colors.txt +234 -234
- package/src/assets/favicon/favicon-v3.svg +6 -6
- package/src/assets/favicon/favicon.svg +6 -6
- package/src/assets/favicon/site.webmanifest +21 -21
- package/src/assets/icons/file-types/auto_light.svg +12 -12
- package/src/assets/icons/file-types/cursor.svg +1 -1
- package/src/assets/icons/file-types/cursor_light.svg +1 -1
- package/src/assets/icons/file-types/drone_light.svg +4 -4
- package/src/assets/icons/file-types/folder-admin-open.svg +6 -6
- package/src/assets/icons/file-types/folder-admin.svg +6 -6
- package/src/assets/icons/file-types/folder-circleci-open.svg +7 -7
- package/src/assets/icons/file-types/folder-circleci.svg +7 -7
- package/src/assets/icons/file-types/folder-flow-open.svg +6 -6
- package/src/assets/icons/file-types/folder-flow.svg +6 -6
- package/src/assets/icons/file-types/folder-gh-workflows-open.svg +6 -6
- package/src/assets/icons/file-types/folder-gh-workflows.svg +6 -6
- package/src/assets/icons/file-types/folder-github-open.svg +6 -6
- package/src/assets/icons/file-types/folder-github.svg +6 -6
- package/src/assets/icons/file-types/folder-intellij-open.svg +39 -39
- package/src/assets/icons/file-types/folder-intellij.svg +39 -39
- package/src/assets/icons/file-types/folder-macos-open.svg +6 -6
- package/src/assets/icons/file-types/folder-macos.svg +6 -6
- package/src/assets/icons/file-types/folder-next-open.svg +6 -6
- package/src/assets/icons/file-types/folder-next.svg +6 -6
- package/src/assets/icons/file-types/folder-nuxt-open.svg +6 -6
- package/src/assets/icons/file-types/folder-nuxt.svg +6 -6
- package/src/assets/icons/file-types/folder-open.svg +5 -5
- package/src/assets/icons/file-types/folder-scripts-open.svg +6 -6
- package/src/assets/icons/file-types/folder-scripts.svg +6 -6
- package/src/assets/icons/file-types/folder-target-open.svg +10 -10
- package/src/assets/icons/file-types/folder-target.svg +10 -10
- package/src/assets/icons/file-types/folder-turborepo-open.svg +15 -15
- package/src/assets/icons/file-types/folder-turborepo.svg +15 -15
- package/src/assets/icons/file-types/folder-vercel-open.svg +5 -5
- package/src/assets/icons/file-types/folder-vercel.svg +5 -5
- package/src/assets/icons/file-types/folder.svg +5 -5
- package/src/assets/icons/file-types/go_gopher.svg +35 -35
- package/src/assets/icons/file-types/nano-staged_light.svg +4 -4
- package/src/assets/icons/file-types/opa.svg +9 -9
- package/src/assets/icons/file-types/quarto.svg +5 -5
- package/src/assets/icons/file-types/rome.svg +6 -6
- package/src/assets/icons/file-types/stitches_light.svg +10 -10
- package/src/assets/icons/file-types/stylelint_light.svg +13 -13
- package/src/assets/icons/file-types/systemd.svg +0 -0
- package/src/assets/icons/file-types/systemd_light.svg +0 -0
- package/src/assets/icons/file-types/unocss.svg +5 -5
- package/src/assets/icons/file-types/vlang.svg +6 -6
- package/src/assets/icons/provider/abacus.svg +14 -14
- package/src/assets/icons/provider/aihubmix.svg +3 -3
- package/src/assets/icons/provider/alibaba-cn.svg +3 -3
- package/src/assets/icons/provider/alibaba.svg +3 -3
- package/src/assets/icons/provider/amazon-bedrock.svg +3 -3
- package/src/assets/icons/provider/anthropic.svg +2 -2
- package/src/assets/icons/provider/azure-cognitive-services.svg +24 -24
- package/src/assets/icons/provider/azure.svg +3 -3
- package/src/assets/icons/provider/bailing.svg +3 -3
- package/src/assets/icons/provider/baseten.svg +3 -3
- package/src/assets/icons/provider/cerebras.svg +4 -4
- package/src/assets/icons/provider/chutes.svg +24 -24
- package/src/assets/icons/provider/cloudflare-ai-gateway.svg +4 -4
- package/src/assets/icons/provider/cloudflare-workers-ai.svg +4 -4
- package/src/assets/icons/provider/cohere.svg +5 -5
- package/src/assets/icons/provider/cortecs.svg +24 -24
- package/src/assets/icons/provider/deepinfra.svg +4 -4
- package/src/assets/icons/provider/deepseek.svg +3 -3
- package/src/assets/icons/provider/fastrouter.svg +3 -3
- package/src/assets/icons/provider/fireworks-ai.svg +3 -3
- package/src/assets/icons/provider/friendli.svg +3 -3
- package/src/assets/icons/provider/github-copilot.svg +3 -3
- package/src/assets/icons/provider/github-models.svg +3 -3
- package/src/assets/icons/provider/google-vertex-anthropic.svg +24 -24
- package/src/assets/icons/provider/google-vertex.svg +10 -10
- package/src/assets/icons/provider/google.svg +3 -3
- package/src/assets/icons/provider/groq.svg +3 -3
- package/src/assets/icons/provider/helicone.svg +6 -6
- package/src/assets/icons/provider/huggingface.svg +3 -3
- package/src/assets/icons/provider/iflowcn.svg +3 -3
- package/src/assets/icons/provider/inception.svg +4 -4
- package/src/assets/icons/provider/inference.svg +3 -3
- package/src/assets/icons/provider/io-net.svg +5 -5
- package/src/assets/icons/provider/kimi-for-coding.svg +3 -3
- package/src/assets/icons/provider/llama.svg +3 -3
- package/src/assets/icons/provider/lmstudio.svg +24 -24
- package/src/assets/icons/provider/lucidquery.svg +3 -3
- package/src/assets/icons/provider/minimax-cn.svg +3 -3
- package/src/assets/icons/provider/minimax.svg +3 -3
- package/src/assets/icons/provider/mistral.svg +3 -3
- package/src/assets/icons/provider/modelscope.svg +5 -5
- package/src/assets/icons/provider/moonshotai-cn.svg +3 -3
- package/src/assets/icons/provider/moonshotai.svg +3 -3
- package/src/assets/icons/provider/morph.svg +24 -24
- package/src/assets/icons/provider/nano-gpt.svg +2 -2
- package/src/assets/icons/provider/nebius.svg +4 -4
- package/src/assets/icons/provider/nvidia.svg +3 -3
- package/src/assets/icons/provider/ollama-cloud.svg +7 -7
- package/src/assets/icons/provider/openai.svg +3 -3
- package/src/assets/icons/provider/opencode.svg +4 -4
- package/src/assets/icons/provider/openrouter.svg +8 -8
- package/src/assets/icons/provider/ovhcloud.svg +3 -3
- package/src/assets/icons/provider/perplexity.svg +3 -3
- package/src/assets/icons/provider/poe.svg +7 -7
- package/src/assets/icons/provider/requesty.svg +24 -24
- package/src/assets/icons/provider/sap-ai-core.svg +24 -24
- package/src/assets/icons/provider/scaleway.svg +5 -5
- package/src/assets/icons/provider/siliconflow-cn.svg +3 -3
- package/src/assets/icons/provider/siliconflow.svg +3 -3
- package/src/assets/icons/provider/submodel.svg +3 -3
- package/src/assets/icons/provider/synthetic.svg +24 -24
- package/src/assets/icons/provider/togetherai.svg +4 -4
- package/src/assets/icons/provider/upstage.svg +24 -24
- package/src/assets/icons/provider/v0.svg +3 -3
- package/src/assets/icons/provider/venice.svg +4 -4
- package/src/assets/icons/provider/vercel.svg +3 -3
- package/src/assets/icons/provider/vultr.svg +6 -6
- package/src/assets/icons/provider/wandb.svg +24 -24
- package/src/assets/icons/provider/xai.svg +3 -3
- package/src/assets/icons/provider/xiaomi.svg +3 -3
- package/src/assets/icons/provider/zai-coding-plan.svg +3 -3
- package/src/assets/icons/provider/zai.svg +3 -3
- package/src/assets/icons/provider/zenmux.svg +3 -3
- package/src/assets/icons/provider/zhipuai-coding-plan.svg +3 -3
- package/src/assets/icons/provider/zhipuai.svg +3 -3
- package/src/components/accordion.css +98 -98
- package/src/components/avatar.css +41 -41
- package/src/components/basic-tool.css +97 -97
- package/src/components/button.css +165 -165
- package/src/components/card.css +29 -29
- package/src/components/checkbox.css +121 -121
- package/src/components/code.css +4 -4
- package/src/components/collapsible.css +97 -97
- package/src/components/dialog.css +185 -185
- package/src/components/diff-changes.css +41 -41
- package/src/components/diff.css +35 -35
- package/src/components/dropdown-menu.css +125 -125
- package/src/components/file-icon.css +5 -5
- package/src/components/file-icons/sprite.svg +11707 -11707
- package/src/components/hover-card.css +61 -61
- package/src/components/icon-button.css +140 -140
- package/src/components/icon.css +34 -34
- package/src/components/image-preview.css +63 -63
- package/src/components/inline-input.css +17 -17
- package/src/components/keybind.css +18 -18
- package/src/components/list.css +278 -278
- package/src/components/logo.css +4 -4
- package/src/components/markdown.css +209 -209
- package/src/components/message-nav.css +122 -122
- package/src/components/message-part.css +803 -803
- package/src/components/popover.css +98 -98
- package/src/components/progress-circle.css +12 -12
- package/src/components/provider-icon.css +5 -5
- package/src/components/provider-icons/sprite.svg +882 -882
- package/src/components/radio-group.css +157 -157
- package/src/components/resize-handle.css +46 -46
- package/src/components/select.css +202 -202
- package/src/components/session-review.css +323 -323
- package/src/components/session-turn.css +514 -514
- package/src/components/spinner.css +6 -6
- package/src/components/sticky-accordion-header.css +16 -16
- package/src/components/switch.css +132 -132
- package/src/components/tabs.css +359 -359
- package/src/components/tag.css +37 -37
- package/src/components/text-field.css +134 -134
- package/src/components/toast.css +205 -205
- package/src/components/tooltip.css +74 -74
- package/src/components/typewriter.css +14 -14
- package/src/styles/animations.css +130 -130
- package/src/styles/base.css +393 -393
- package/src/styles/colors.css +592 -592
- package/src/styles/index.css +52 -52
- package/src/styles/tailwind/colors.css +244 -244
- package/src/styles/tailwind/index.css +72 -72
- package/src/styles/tailwind/utilities.css +113 -113
- package/src/styles/theme.css +592 -592
- package/src/styles/utilities.css +131 -131
- package/src/assets/fonts/cascadia-code-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/cascadia-code-nerd-font.woff2 +0 -1
- package/src/assets/fonts/fira-code-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/fira-code-nerd-font.woff2 +0 -1
- package/src/assets/fonts/geist-mono-bold.woff2 +0 -1
- package/src/assets/fonts/geist-mono-medium.woff2 +0 -1
- package/src/assets/fonts/geist-mono.woff2 +0 -1
- package/src/assets/fonts/hack-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/hack-nerd-font.woff2 +0 -1
- package/src/assets/fonts/ibm-plex-mono-bold.woff2 +0 -1
- package/src/assets/fonts/ibm-plex-mono-medium.woff2 +0 -1
- package/src/assets/fonts/ibm-plex-mono.woff2 +0 -1
- package/src/assets/fonts/inconsolata-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/inconsolata-nerd-font.woff2 +0 -1
- package/src/assets/fonts/intel-one-mono-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/intel-one-mono-nerd-font.woff2 +0 -1
- package/src/assets/fonts/jetbrains-mono-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/jetbrains-mono-nerd-font.woff2 +0 -1
- package/src/assets/fonts/meslo-lgs-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/meslo-lgs-nerd-font.woff2 +0 -1
- package/src/assets/fonts/roboto-mono-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/roboto-mono-nerd-font.woff2 +0 -1
- package/src/assets/fonts/source-code-pro-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/source-code-pro-nerd-font.woff2 +0 -1
- package/src/assets/fonts/ubuntu-mono-nerd-font-bold.woff2 +0 -1
- package/src/assets/fonts/ubuntu-mono-nerd-font.woff2 +0 -1
package/src/components/toast.css
CHANGED
|
@@ -1,205 +1,205 @@
|
|
|
1
|
-
[data-component="toast-region"] {
|
|
2
|
-
position: fixed;
|
|
3
|
-
bottom: 48px;
|
|
4
|
-
right: 32px;
|
|
5
|
-
z-index: 1000;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
max-width: 400px;
|
|
10
|
-
width: 100%;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
|
|
13
|
-
[data-slot="toast-list"] {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
gap: 8px;
|
|
17
|
-
list-style: none;
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[data-component="toast"] {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
gap: 20px;
|
|
27
|
-
padding: 16px 20px;
|
|
28
|
-
pointer-events: auto;
|
|
29
|
-
transition: all 150ms ease-out;
|
|
30
|
-
|
|
31
|
-
border-radius: var(--radius-lg);
|
|
32
|
-
border: 1px solid var(--border-weak-base);
|
|
33
|
-
background: var(--surface-float-base);
|
|
34
|
-
color: var(--text-invert-base);
|
|
35
|
-
box-shadow: var(--shadow-md);
|
|
36
|
-
|
|
37
|
-
[data-slot="toast-inner"] {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: flex-start;
|
|
40
|
-
gap: 10px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&[data-opened] {
|
|
44
|
-
animation: toastPopIn 150ms ease-out;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&[data-closed] {
|
|
48
|
-
animation: toastPopOut 100ms ease-in forwards;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&[data-swipe="move"] {
|
|
52
|
-
transform: translateX(var(--kb-toast-swipe-move-x));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&[data-swipe="cancel"] {
|
|
56
|
-
transform: translateX(0);
|
|
57
|
-
transition: transform 200ms ease-out;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&[data-swipe="end"] {
|
|
61
|
-
animation: toastSwipeOut 100ms ease-out forwards;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* &[data-variant="success"] { */
|
|
65
|
-
/* border-color: var(--color-semantic-positive); */
|
|
66
|
-
/* } */
|
|
67
|
-
/**/
|
|
68
|
-
/* &[data-variant="error"] { */
|
|
69
|
-
/* border-color: var(--color-semantic-danger); */
|
|
70
|
-
/* } */
|
|
71
|
-
/**/
|
|
72
|
-
/* &[data-variant="loading"] { */
|
|
73
|
-
/* border-color: var(--color-semantic-info); */
|
|
74
|
-
/* } */
|
|
75
|
-
|
|
76
|
-
[data-slot="toast-icon"] {
|
|
77
|
-
flex-shrink: 0;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
justify-content: center;
|
|
81
|
-
|
|
82
|
-
[data-component="icon"] {
|
|
83
|
-
color: var(--text-invert-stronger);
|
|
84
|
-
/* color: var(--icon-invert-base); */
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
[data-slot="toast-content"] {
|
|
89
|
-
flex: 1;
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
gap: 2px;
|
|
93
|
-
min-width: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[data-slot="toast-title"] {
|
|
97
|
-
color: var(--text-invert-strong);
|
|
98
|
-
|
|
99
|
-
/* text-14-medium */
|
|
100
|
-
font-family: var(--font-family-sans);
|
|
101
|
-
font-size: 14px;
|
|
102
|
-
font-style: normal;
|
|
103
|
-
font-weight: var(--font-weight-medium);
|
|
104
|
-
line-height: var(--line-height-large); /* 142.857% */
|
|
105
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
106
|
-
|
|
107
|
-
margin: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
[data-slot="toast-description"] {
|
|
111
|
-
color: var(--text-invert-base);
|
|
112
|
-
text-wrap-style: pretty;
|
|
113
|
-
|
|
114
|
-
/* text-14-regular */
|
|
115
|
-
font-family: var(--font-family-sans);
|
|
116
|
-
font-size: var(--font-size-base);
|
|
117
|
-
font-style: normal;
|
|
118
|
-
font-weight: var(--font-weight-regular);
|
|
119
|
-
line-height: var(--line-height-x-large); /* 171.429% */
|
|
120
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
121
|
-
|
|
122
|
-
margin: 0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
[data-slot="toast-actions"] {
|
|
126
|
-
display: flex;
|
|
127
|
-
gap: 16px;
|
|
128
|
-
margin-top: 8px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
[data-slot="toast-action"] {
|
|
132
|
-
background: none;
|
|
133
|
-
border: none;
|
|
134
|
-
padding: 0;
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
|
|
137
|
-
color: var(--text-invert-weak);
|
|
138
|
-
font-family: var(--font-family-sans);
|
|
139
|
-
font-size: var(--font-size-base);
|
|
140
|
-
font-weight: var(--font-weight-medium);
|
|
141
|
-
line-height: var(--line-height-large);
|
|
142
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
143
|
-
|
|
144
|
-
&:hover {
|
|
145
|
-
text-decoration: underline;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&:first-child {
|
|
149
|
-
color: var(--text-invert-strong);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
[data-slot="toast-close-button"] {
|
|
154
|
-
flex-shrink: 0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
[data-slot="toast-progress-track"] {
|
|
158
|
-
position: absolute;
|
|
159
|
-
bottom: 0;
|
|
160
|
-
left: 0;
|
|
161
|
-
right: 0;
|
|
162
|
-
height: 3px;
|
|
163
|
-
background-color: var(--surface-base);
|
|
164
|
-
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
165
|
-
overflow: hidden;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
[data-slot="toast-progress-fill"] {
|
|
169
|
-
height: 100%;
|
|
170
|
-
width: var(--kb-toast-progress-fill-width);
|
|
171
|
-
background-color: var(--color-primary);
|
|
172
|
-
transition: width 250ms linear;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@keyframes toastPopIn {
|
|
177
|
-
from {
|
|
178
|
-
opacity: 0;
|
|
179
|
-
transform: translateY(20px);
|
|
180
|
-
}
|
|
181
|
-
to {
|
|
182
|
-
opacity: 1;
|
|
183
|
-
transform: translateY(0);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@keyframes toastPopOut {
|
|
188
|
-
from {
|
|
189
|
-
opacity: 1;
|
|
190
|
-
transform: translateY(0);
|
|
191
|
-
}
|
|
192
|
-
to {
|
|
193
|
-
opacity: 0;
|
|
194
|
-
transform: translateY(20px);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@keyframes toastSwipeOut {
|
|
199
|
-
from {
|
|
200
|
-
transform: translateX(var(--kb-toast-swipe-end-x));
|
|
201
|
-
}
|
|
202
|
-
to {
|
|
203
|
-
transform: translateX(100%);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
1
|
+
[data-component="toast-region"] {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 48px;
|
|
4
|
+
right: 32px;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
max-width: 400px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
|
|
13
|
+
[data-slot="toast-list"] {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
list-style: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-component="toast"] {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
gap: 20px;
|
|
27
|
+
padding: 16px 20px;
|
|
28
|
+
pointer-events: auto;
|
|
29
|
+
transition: all 150ms ease-out;
|
|
30
|
+
|
|
31
|
+
border-radius: var(--radius-lg);
|
|
32
|
+
border: 1px solid var(--border-weak-base);
|
|
33
|
+
background: var(--surface-float-base);
|
|
34
|
+
color: var(--text-invert-base);
|
|
35
|
+
box-shadow: var(--shadow-md);
|
|
36
|
+
|
|
37
|
+
[data-slot="toast-inner"] {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
gap: 10px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-opened] {
|
|
44
|
+
animation: toastPopIn 150ms ease-out;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-closed] {
|
|
48
|
+
animation: toastPopOut 100ms ease-in forwards;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[data-swipe="move"] {
|
|
52
|
+
transform: translateX(var(--kb-toast-swipe-move-x));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[data-swipe="cancel"] {
|
|
56
|
+
transform: translateX(0);
|
|
57
|
+
transition: transform 200ms ease-out;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-swipe="end"] {
|
|
61
|
+
animation: toastSwipeOut 100ms ease-out forwards;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* &[data-variant="success"] { */
|
|
65
|
+
/* border-color: var(--color-semantic-positive); */
|
|
66
|
+
/* } */
|
|
67
|
+
/**/
|
|
68
|
+
/* &[data-variant="error"] { */
|
|
69
|
+
/* border-color: var(--color-semantic-danger); */
|
|
70
|
+
/* } */
|
|
71
|
+
/**/
|
|
72
|
+
/* &[data-variant="loading"] { */
|
|
73
|
+
/* border-color: var(--color-semantic-info); */
|
|
74
|
+
/* } */
|
|
75
|
+
|
|
76
|
+
[data-slot="toast-icon"] {
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
|
|
82
|
+
[data-component="icon"] {
|
|
83
|
+
color: var(--text-invert-stronger);
|
|
84
|
+
/* color: var(--icon-invert-base); */
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-slot="toast-content"] {
|
|
89
|
+
flex: 1;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
gap: 2px;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-slot="toast-title"] {
|
|
97
|
+
color: var(--text-invert-strong);
|
|
98
|
+
|
|
99
|
+
/* text-14-medium */
|
|
100
|
+
font-family: var(--font-family-sans);
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-style: normal;
|
|
103
|
+
font-weight: var(--font-weight-medium);
|
|
104
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
105
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
106
|
+
|
|
107
|
+
margin: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-slot="toast-description"] {
|
|
111
|
+
color: var(--text-invert-base);
|
|
112
|
+
text-wrap-style: pretty;
|
|
113
|
+
|
|
114
|
+
/* text-14-regular */
|
|
115
|
+
font-family: var(--font-family-sans);
|
|
116
|
+
font-size: var(--font-size-base);
|
|
117
|
+
font-style: normal;
|
|
118
|
+
font-weight: var(--font-weight-regular);
|
|
119
|
+
line-height: var(--line-height-x-large); /* 171.429% */
|
|
120
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
121
|
+
|
|
122
|
+
margin: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-slot="toast-actions"] {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 16px;
|
|
128
|
+
margin-top: 8px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="toast-action"] {
|
|
132
|
+
background: none;
|
|
133
|
+
border: none;
|
|
134
|
+
padding: 0;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
|
|
137
|
+
color: var(--text-invert-weak);
|
|
138
|
+
font-family: var(--font-family-sans);
|
|
139
|
+
font-size: var(--font-size-base);
|
|
140
|
+
font-weight: var(--font-weight-medium);
|
|
141
|
+
line-height: var(--line-height-large);
|
|
142
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
text-decoration: underline;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:first-child {
|
|
149
|
+
color: var(--text-invert-strong);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[data-slot="toast-close-button"] {
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-slot="toast-progress-track"] {
|
|
158
|
+
position: absolute;
|
|
159
|
+
bottom: 0;
|
|
160
|
+
left: 0;
|
|
161
|
+
right: 0;
|
|
162
|
+
height: 3px;
|
|
163
|
+
background-color: var(--surface-base);
|
|
164
|
+
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-slot="toast-progress-fill"] {
|
|
169
|
+
height: 100%;
|
|
170
|
+
width: var(--kb-toast-progress-fill-width);
|
|
171
|
+
background-color: var(--color-primary);
|
|
172
|
+
transition: width 250ms linear;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@keyframes toastPopIn {
|
|
177
|
+
from {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
transform: translateY(20px);
|
|
180
|
+
}
|
|
181
|
+
to {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transform: translateY(0);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@keyframes toastPopOut {
|
|
188
|
+
from {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
transform: translateY(0);
|
|
191
|
+
}
|
|
192
|
+
to {
|
|
193
|
+
opacity: 0;
|
|
194
|
+
transform: translateY(20px);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes toastSwipeOut {
|
|
199
|
+
from {
|
|
200
|
+
transform: translateX(var(--kb-toast-swipe-end-x));
|
|
201
|
+
}
|
|
202
|
+
to {
|
|
203
|
+
transform: translateX(100%);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
[data-component="tooltip-trigger"] {
|
|
2
|
-
display: flex;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
[data-slot="tooltip-keybind"] {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
gap: 12px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
[data-slot="tooltip-keybind-key"] {
|
|
12
|
-
color: var(--text-invert-base);
|
|
13
|
-
font-size: var(--font-size-small);
|
|
14
|
-
font-weight: var(--font-weight-medium);
|
|
15
|
-
line-height: var(--line-height-large);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[data-component="tooltip"] {
|
|
19
|
-
z-index: 1000;
|
|
20
|
-
max-width: 320px;
|
|
21
|
-
border-radius: var(--radius-sm);
|
|
22
|
-
background-color: var(--surface-float-base);
|
|
23
|
-
color: var(--text-invert-strong);
|
|
24
|
-
background: var(--surface-float-base);
|
|
25
|
-
padding: 2px 8px;
|
|
26
|
-
border: 1px solid var(--border-weak-base, rgba(0, 0, 0, 0.07));
|
|
27
|
-
|
|
28
|
-
box-shadow: var(--shadow-md);
|
|
29
|
-
pointer-events: none !important;
|
|
30
|
-
/* transition: all 150ms ease-out; */
|
|
31
|
-
/* transform: translate3d(0, 0, 0); */
|
|
32
|
-
/* transform-origin: var(--kb-tooltip-content-transform-origin); */
|
|
33
|
-
|
|
34
|
-
/* text-12-medium */
|
|
35
|
-
font-family: var(--font-family-sans);
|
|
36
|
-
font-size: var(--font-size-small);
|
|
37
|
-
font-style: normal;
|
|
38
|
-
font-weight: var(--font-weight-medium);
|
|
39
|
-
line-height: var(--line-height-large); /* 166.667% */
|
|
40
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
41
|
-
|
|
42
|
-
&[data-expanded] {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
/* transform: translate3d(0, 0, 0); */
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&[data-closed] {
|
|
48
|
-
opacity: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* &[data-placement="top"] { */
|
|
52
|
-
/* &[data-closed] { */
|
|
53
|
-
/* transform: translate3d(0, 4px, 0); */
|
|
54
|
-
/* } */
|
|
55
|
-
/* } */
|
|
56
|
-
/**/
|
|
57
|
-
/* &[data-placement="bottom"] { */
|
|
58
|
-
/* &[data-closed] { */
|
|
59
|
-
/* transform: translate3d(0, -4px, 0); */
|
|
60
|
-
/* } */
|
|
61
|
-
/* } */
|
|
62
|
-
/**/
|
|
63
|
-
/* &[data-placement="left"] { */
|
|
64
|
-
/* &[data-closed] { */
|
|
65
|
-
/* transform: translate3d(4px, 0, 0); */
|
|
66
|
-
/* } */
|
|
67
|
-
/* } */
|
|
68
|
-
/**/
|
|
69
|
-
/* &[data-placement="right"] { */
|
|
70
|
-
/* &[data-closed] { */
|
|
71
|
-
/* transform: translate3d(-4px, 0, 0); */
|
|
72
|
-
/* } */
|
|
73
|
-
/* } */
|
|
74
|
-
}
|
|
1
|
+
[data-component="tooltip-trigger"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[data-slot="tooltip-keybind"] {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 12px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-slot="tooltip-keybind-key"] {
|
|
12
|
+
color: var(--text-invert-base);
|
|
13
|
+
font-size: var(--font-size-small);
|
|
14
|
+
font-weight: var(--font-weight-medium);
|
|
15
|
+
line-height: var(--line-height-large);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-component="tooltip"] {
|
|
19
|
+
z-index: 1000;
|
|
20
|
+
max-width: 320px;
|
|
21
|
+
border-radius: var(--radius-sm);
|
|
22
|
+
background-color: var(--surface-float-base);
|
|
23
|
+
color: var(--text-invert-strong);
|
|
24
|
+
background: var(--surface-float-base);
|
|
25
|
+
padding: 2px 8px;
|
|
26
|
+
border: 1px solid var(--border-weak-base, rgba(0, 0, 0, 0.07));
|
|
27
|
+
|
|
28
|
+
box-shadow: var(--shadow-md);
|
|
29
|
+
pointer-events: none !important;
|
|
30
|
+
/* transition: all 150ms ease-out; */
|
|
31
|
+
/* transform: translate3d(0, 0, 0); */
|
|
32
|
+
/* transform-origin: var(--kb-tooltip-content-transform-origin); */
|
|
33
|
+
|
|
34
|
+
/* text-12-medium */
|
|
35
|
+
font-family: var(--font-family-sans);
|
|
36
|
+
font-size: var(--font-size-small);
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: var(--font-weight-medium);
|
|
39
|
+
line-height: var(--line-height-large); /* 166.667% */
|
|
40
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
41
|
+
|
|
42
|
+
&[data-expanded] {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
/* transform: translate3d(0, 0, 0); */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-closed] {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* &[data-placement="top"] { */
|
|
52
|
+
/* &[data-closed] { */
|
|
53
|
+
/* transform: translate3d(0, 4px, 0); */
|
|
54
|
+
/* } */
|
|
55
|
+
/* } */
|
|
56
|
+
/**/
|
|
57
|
+
/* &[data-placement="bottom"] { */
|
|
58
|
+
/* &[data-closed] { */
|
|
59
|
+
/* transform: translate3d(0, -4px, 0); */
|
|
60
|
+
/* } */
|
|
61
|
+
/* } */
|
|
62
|
+
/**/
|
|
63
|
+
/* &[data-placement="left"] { */
|
|
64
|
+
/* &[data-closed] { */
|
|
65
|
+
/* transform: translate3d(4px, 0, 0); */
|
|
66
|
+
/* } */
|
|
67
|
+
/* } */
|
|
68
|
+
/**/
|
|
69
|
+
/* &[data-placement="right"] { */
|
|
70
|
+
/* &[data-closed] { */
|
|
71
|
+
/* transform: translate3d(-4px, 0, 0); */
|
|
72
|
+
/* } */
|
|
73
|
+
/* } */
|
|
74
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@keyframes blink {
|
|
2
|
-
0%,
|
|
3
|
-
50% {
|
|
4
|
-
opacity: 1;
|
|
5
|
-
}
|
|
6
|
-
51%,
|
|
7
|
-
100% {
|
|
8
|
-
opacity: 0;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.blinking-cursor {
|
|
13
|
-
animation: blink 1s step-end infinite;
|
|
14
|
-
}
|
|
1
|
+
@keyframes blink {
|
|
2
|
+
0%,
|
|
3
|
+
50% {
|
|
4
|
+
opacity: 1;
|
|
5
|
+
}
|
|
6
|
+
51%,
|
|
7
|
+
100% {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.blinking-cursor {
|
|
13
|
+
animation: blink 1s step-end infinite;
|
|
14
|
+
}
|