@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
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
[data-slot="hover-card-trigger"] {
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
min-width: 0;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
[data-component="hover-card-content"] {
|
|
8
|
-
z-index: 50;
|
|
9
|
-
min-width: 200px;
|
|
10
|
-
max-width: 320px;
|
|
11
|
-
max-height: calc(100vh - 1rem);
|
|
12
|
-
border-radius: 8px;
|
|
13
|
-
background-color: var(--surface-raised-stronger-non-alpha);
|
|
14
|
-
pointer-events: auto;
|
|
15
|
-
|
|
16
|
-
border: 1px solid color-mix(in oklch, var(--border-base) 50%, transparent);
|
|
17
|
-
background-clip: padding-box;
|
|
18
|
-
box-shadow: var(--shadow-md);
|
|
19
|
-
|
|
20
|
-
transform-origin: var(--kb-hovercard-content-transform-origin);
|
|
21
|
-
|
|
22
|
-
&:focus-within {
|
|
23
|
-
outline: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&[data-closed] {
|
|
27
|
-
animation: hover-card-close 0.15s ease-out;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&[data-expanded] {
|
|
31
|
-
animation: hover-card-open 0.15s ease-out;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[data-slot="hover-card-body"] {
|
|
35
|
-
padding: 4px;
|
|
36
|
-
max-height: inherit;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@keyframes hover-card-open {
|
|
42
|
-
from {
|
|
43
|
-
opacity: 0;
|
|
44
|
-
transform: scale(0.96);
|
|
45
|
-
}
|
|
46
|
-
to {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
transform: scale(1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes hover-card-close {
|
|
53
|
-
from {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
transform: scale(1);
|
|
56
|
-
}
|
|
57
|
-
to {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
transform: scale(0.96);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
[data-slot="hover-card-trigger"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-component="hover-card-content"] {
|
|
8
|
+
z-index: 50;
|
|
9
|
+
min-width: 200px;
|
|
10
|
+
max-width: 320px;
|
|
11
|
+
max-height: calc(100vh - 1rem);
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
background-color: var(--surface-raised-stronger-non-alpha);
|
|
14
|
+
pointer-events: auto;
|
|
15
|
+
|
|
16
|
+
border: 1px solid color-mix(in oklch, var(--border-base) 50%, transparent);
|
|
17
|
+
background-clip: padding-box;
|
|
18
|
+
box-shadow: var(--shadow-md);
|
|
19
|
+
|
|
20
|
+
transform-origin: var(--kb-hovercard-content-transform-origin);
|
|
21
|
+
|
|
22
|
+
&:focus-within {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-closed] {
|
|
27
|
+
animation: hover-card-close 0.15s ease-out;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-expanded] {
|
|
31
|
+
animation: hover-card-open 0.15s ease-out;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-slot="hover-card-body"] {
|
|
35
|
+
padding: 4px;
|
|
36
|
+
max-height: inherit;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes hover-card-open {
|
|
42
|
+
from {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transform: scale(0.96);
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@keyframes hover-card-close {
|
|
53
|
+
from {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
transform: scale(1);
|
|
56
|
+
}
|
|
57
|
+
to {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: scale(0.96);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
[data-component="icon-button"] {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
border-radius: var(--radius-sm);
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
user-select: none;
|
|
8
|
-
aspect-ratio: 1;
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
|
|
11
|
-
&[data-variant="primary"] {
|
|
12
|
-
background-color: var(--icon-strong-base);
|
|
13
|
-
|
|
14
|
-
[data-slot="icon-svg"] {
|
|
15
|
-
/* color: var(--icon-weak-base); */
|
|
16
|
-
color: var(--icon-invert-base);
|
|
17
|
-
|
|
18
|
-
/* &:hover:not(:disabled) { */
|
|
19
|
-
/* color: var(--icon-weak-hover); */
|
|
20
|
-
/* } */
|
|
21
|
-
/* &:active:not(:disabled) { */
|
|
22
|
-
/* color: var(--icon-strong-active); */
|
|
23
|
-
/* } */
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover:not(:disabled) {
|
|
27
|
-
background-color: var(--icon-strong-hover);
|
|
28
|
-
}
|
|
29
|
-
&:focus:not(:disabled) {
|
|
30
|
-
background-color: var(--icon-strong-focus);
|
|
31
|
-
}
|
|
32
|
-
&:active:not(:disabled) {
|
|
33
|
-
background-color: var(--icon-strong-active);
|
|
34
|
-
}
|
|
35
|
-
&:disabled {
|
|
36
|
-
background-color: var(--icon-strong-disabled);
|
|
37
|
-
|
|
38
|
-
[data-slot="icon-svg"] {
|
|
39
|
-
color: var(--icon-invert-base);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&[data-variant="secondary"] {
|
|
45
|
-
border: transparent;
|
|
46
|
-
background-color: var(--button-secondary-base);
|
|
47
|
-
color: var(--text-strong);
|
|
48
|
-
box-shadow: var(--shadow-xs-border);
|
|
49
|
-
|
|
50
|
-
&:hover:not(:disabled) {
|
|
51
|
-
background-color: var(--button-secondary-hover);
|
|
52
|
-
}
|
|
53
|
-
&:focus:not(:disabled) {
|
|
54
|
-
background-color: var(--button-secondary-base);
|
|
55
|
-
}
|
|
56
|
-
&:focus-visible:not(:active) {
|
|
57
|
-
background-color: var(--button-secondary-base);
|
|
58
|
-
box-shadow: var(--shadow-xs-border-focus);
|
|
59
|
-
}
|
|
60
|
-
&:focus-visible:active {
|
|
61
|
-
box-shadow: none;
|
|
62
|
-
}
|
|
63
|
-
&:active:not(:disabled) {
|
|
64
|
-
background-color: var(--button-secondary-base);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[data-slot="icon-svg"] {
|
|
68
|
-
color: var(--icon-strong-base);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:disabled {
|
|
72
|
-
background-color: var(--icon-strong-disabled);
|
|
73
|
-
color: var(--icon-invert-base);
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&[data-variant="ghost"] {
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
/* color: var(--icon-base); */
|
|
81
|
-
|
|
82
|
-
[data-slot="icon-svg"] {
|
|
83
|
-
color: var(--icon-base);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:hover:not(:disabled) {
|
|
87
|
-
background-color: var(--surface-raised-base-hover);
|
|
88
|
-
|
|
89
|
-
/* [data-slot="icon-svg"] { */
|
|
90
|
-
/* color: var(--icon-hover); */
|
|
91
|
-
/* } */
|
|
92
|
-
}
|
|
93
|
-
&:focus:not(:disabled) {
|
|
94
|
-
background-color: var(--surface-focus);
|
|
95
|
-
}
|
|
96
|
-
&:active:not(:disabled) {
|
|
97
|
-
background-color: var(--surface-raised-base-active);
|
|
98
|
-
/* [data-slot="icon-svg"] { */
|
|
99
|
-
/* color: var(--icon-active); */
|
|
100
|
-
/* } */
|
|
101
|
-
}
|
|
102
|
-
&:selected:not(:disabled) {
|
|
103
|
-
background-color: var(--surface-raised-base-active);
|
|
104
|
-
/* [data-slot="icon-svg"] { */
|
|
105
|
-
/* color: var(--icon-selected); */
|
|
106
|
-
/* } */
|
|
107
|
-
}
|
|
108
|
-
&:disabled {
|
|
109
|
-
color: var(--icon-invert-base);
|
|
110
|
-
cursor: not-allowed;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&[data-size="normal"] {
|
|
115
|
-
width: 24px;
|
|
116
|
-
height: 24px;
|
|
117
|
-
|
|
118
|
-
font-size: var(--font-size-small);
|
|
119
|
-
line-height: var(--line-height-large);
|
|
120
|
-
gap: calc(var(--spacing) * 0.5);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&[data-size="large"] {
|
|
124
|
-
height: 32px;
|
|
125
|
-
/* padding: 0 8px 0 6px; */
|
|
126
|
-
gap: 8px;
|
|
127
|
-
|
|
128
|
-
/* text-12-medium */
|
|
129
|
-
font-family: var(--font-family-sans);
|
|
130
|
-
font-size: var(--font-size-small);
|
|
131
|
-
font-style: normal;
|
|
132
|
-
font-weight: var(--font-weight-medium);
|
|
133
|
-
line-height: var(--line-height-large); /* 166.667% */
|
|
134
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&:focus {
|
|
138
|
-
outline: none;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
1
|
+
[data-component="icon-button"] {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
border-radius: var(--radius-sm);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
user-select: none;
|
|
8
|
+
aspect-ratio: 1;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
|
|
11
|
+
&[data-variant="primary"] {
|
|
12
|
+
background-color: var(--icon-strong-base);
|
|
13
|
+
|
|
14
|
+
[data-slot="icon-svg"] {
|
|
15
|
+
/* color: var(--icon-weak-base); */
|
|
16
|
+
color: var(--icon-invert-base);
|
|
17
|
+
|
|
18
|
+
/* &:hover:not(:disabled) { */
|
|
19
|
+
/* color: var(--icon-weak-hover); */
|
|
20
|
+
/* } */
|
|
21
|
+
/* &:active:not(:disabled) { */
|
|
22
|
+
/* color: var(--icon-strong-active); */
|
|
23
|
+
/* } */
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover:not(:disabled) {
|
|
27
|
+
background-color: var(--icon-strong-hover);
|
|
28
|
+
}
|
|
29
|
+
&:focus:not(:disabled) {
|
|
30
|
+
background-color: var(--icon-strong-focus);
|
|
31
|
+
}
|
|
32
|
+
&:active:not(:disabled) {
|
|
33
|
+
background-color: var(--icon-strong-active);
|
|
34
|
+
}
|
|
35
|
+
&:disabled {
|
|
36
|
+
background-color: var(--icon-strong-disabled);
|
|
37
|
+
|
|
38
|
+
[data-slot="icon-svg"] {
|
|
39
|
+
color: var(--icon-invert-base);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-variant="secondary"] {
|
|
45
|
+
border: transparent;
|
|
46
|
+
background-color: var(--button-secondary-base);
|
|
47
|
+
color: var(--text-strong);
|
|
48
|
+
box-shadow: var(--shadow-xs-border);
|
|
49
|
+
|
|
50
|
+
&:hover:not(:disabled) {
|
|
51
|
+
background-color: var(--button-secondary-hover);
|
|
52
|
+
}
|
|
53
|
+
&:focus:not(:disabled) {
|
|
54
|
+
background-color: var(--button-secondary-base);
|
|
55
|
+
}
|
|
56
|
+
&:focus-visible:not(:active) {
|
|
57
|
+
background-color: var(--button-secondary-base);
|
|
58
|
+
box-shadow: var(--shadow-xs-border-focus);
|
|
59
|
+
}
|
|
60
|
+
&:focus-visible:active {
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
}
|
|
63
|
+
&:active:not(:disabled) {
|
|
64
|
+
background-color: var(--button-secondary-base);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-slot="icon-svg"] {
|
|
68
|
+
color: var(--icon-strong-base);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:disabled {
|
|
72
|
+
background-color: var(--icon-strong-disabled);
|
|
73
|
+
color: var(--icon-invert-base);
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[data-variant="ghost"] {
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
/* color: var(--icon-base); */
|
|
81
|
+
|
|
82
|
+
[data-slot="icon-svg"] {
|
|
83
|
+
color: var(--icon-base);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:hover:not(:disabled) {
|
|
87
|
+
background-color: var(--surface-raised-base-hover);
|
|
88
|
+
|
|
89
|
+
/* [data-slot="icon-svg"] { */
|
|
90
|
+
/* color: var(--icon-hover); */
|
|
91
|
+
/* } */
|
|
92
|
+
}
|
|
93
|
+
&:focus:not(:disabled) {
|
|
94
|
+
background-color: var(--surface-focus);
|
|
95
|
+
}
|
|
96
|
+
&:active:not(:disabled) {
|
|
97
|
+
background-color: var(--surface-raised-base-active);
|
|
98
|
+
/* [data-slot="icon-svg"] { */
|
|
99
|
+
/* color: var(--icon-active); */
|
|
100
|
+
/* } */
|
|
101
|
+
}
|
|
102
|
+
&:selected:not(:disabled) {
|
|
103
|
+
background-color: var(--surface-raised-base-active);
|
|
104
|
+
/* [data-slot="icon-svg"] { */
|
|
105
|
+
/* color: var(--icon-selected); */
|
|
106
|
+
/* } */
|
|
107
|
+
}
|
|
108
|
+
&:disabled {
|
|
109
|
+
color: var(--icon-invert-base);
|
|
110
|
+
cursor: not-allowed;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&[data-size="normal"] {
|
|
115
|
+
width: 24px;
|
|
116
|
+
height: 24px;
|
|
117
|
+
|
|
118
|
+
font-size: var(--font-size-small);
|
|
119
|
+
line-height: var(--line-height-large);
|
|
120
|
+
gap: calc(var(--spacing) * 0.5);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&[data-size="large"] {
|
|
124
|
+
height: 32px;
|
|
125
|
+
/* padding: 0 8px 0 6px; */
|
|
126
|
+
gap: 8px;
|
|
127
|
+
|
|
128
|
+
/* text-12-medium */
|
|
129
|
+
font-family: var(--font-family-sans);
|
|
130
|
+
font-size: var(--font-size-small);
|
|
131
|
+
font-style: normal;
|
|
132
|
+
font-weight: var(--font-weight-medium);
|
|
133
|
+
line-height: var(--line-height-large); /* 166.667% */
|
|
134
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:focus {
|
|
138
|
+
outline: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
package/src/components/icon.css
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
[data-component="icon"] {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
/* resize: both; */
|
|
7
|
-
aspect-ratio: 1/1;
|
|
8
|
-
color: var(--icon-base);
|
|
9
|
-
|
|
10
|
-
&[data-size="small"] {
|
|
11
|
-
width: 16px;
|
|
12
|
-
height: 16px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&[data-size="normal"] {
|
|
16
|
-
width: 20px;
|
|
17
|
-
height: 20px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&[data-size="medium"] {
|
|
21
|
-
width: 24px;
|
|
22
|
-
height: 24px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&[data-size="large"] {
|
|
26
|
-
width: 24px;
|
|
27
|
-
height: 24px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[data-slot="icon-svg"] {
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: auto;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
[data-component="icon"] {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
/* resize: both; */
|
|
7
|
+
aspect-ratio: 1/1;
|
|
8
|
+
color: var(--icon-base);
|
|
9
|
+
|
|
10
|
+
&[data-size="small"] {
|
|
11
|
+
width: 16px;
|
|
12
|
+
height: 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&[data-size="normal"] {
|
|
16
|
+
width: 20px;
|
|
17
|
+
height: 20px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-size="medium"] {
|
|
21
|
+
width: 24px;
|
|
22
|
+
height: 24px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[data-size="large"] {
|
|
26
|
+
width: 24px;
|
|
27
|
+
height: 24px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-slot="icon-svg"] {
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
[data-component="image-preview"] {
|
|
2
|
-
position: fixed;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: 50;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
|
|
9
|
-
[data-slot="image-preview-container"] {
|
|
10
|
-
position: relative;
|
|
11
|
-
z-index: 50;
|
|
12
|
-
width: min(calc(100vw - 32px), 90vw);
|
|
13
|
-
max-width: 1200px;
|
|
14
|
-
height: min(calc(100vh - 32px), 90vh);
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
align-items: center;
|
|
18
|
-
justify-content: center;
|
|
19
|
-
|
|
20
|
-
[data-slot="image-preview-content"] {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
width: 100%;
|
|
25
|
-
max-height: 100%;
|
|
26
|
-
border-radius: var(--radius-lg);
|
|
27
|
-
background: var(--surface-raised-stronger-non-alpha);
|
|
28
|
-
box-shadow:
|
|
29
|
-
0 15px 45px 0 rgba(19, 16, 16, 0.35),
|
|
30
|
-
0 3.35px 10.051px 0 rgba(19, 16, 16, 0.25),
|
|
31
|
-
0 0.998px 2.993px 0 rgba(19, 16, 16, 0.2);
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
|
|
34
|
-
&:focus-visible {
|
|
35
|
-
outline: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[data-slot="image-preview-header"] {
|
|
39
|
-
display: flex;
|
|
40
|
-
padding: 8px 8px 0;
|
|
41
|
-
justify-content: flex-end;
|
|
42
|
-
align-items: center;
|
|
43
|
-
align-self: stretch;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
[data-slot="image-preview-body"] {
|
|
47
|
-
width: 100%;
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
padding: 16px;
|
|
52
|
-
overflow: auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
[data-slot="image-preview-image"] {
|
|
56
|
-
max-width: 100%;
|
|
57
|
-
max-height: calc(90vh - 100px);
|
|
58
|
-
object-fit: contain;
|
|
59
|
-
border-radius: var(--radius-md);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
[data-component="image-preview"] {
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: 50;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
|
|
9
|
+
[data-slot="image-preview-container"] {
|
|
10
|
+
position: relative;
|
|
11
|
+
z-index: 50;
|
|
12
|
+
width: min(calc(100vw - 32px), 90vw);
|
|
13
|
+
max-width: 1200px;
|
|
14
|
+
height: min(calc(100vh - 32px), 90vh);
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
|
|
20
|
+
[data-slot="image-preview-content"] {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
width: 100%;
|
|
25
|
+
max-height: 100%;
|
|
26
|
+
border-radius: var(--radius-lg);
|
|
27
|
+
background: var(--surface-raised-stronger-non-alpha);
|
|
28
|
+
box-shadow:
|
|
29
|
+
0 15px 45px 0 rgba(19, 16, 16, 0.35),
|
|
30
|
+
0 3.35px 10.051px 0 rgba(19, 16, 16, 0.25),
|
|
31
|
+
0 0.998px 2.993px 0 rgba(19, 16, 16, 0.2);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot="image-preview-header"] {
|
|
39
|
+
display: flex;
|
|
40
|
+
padding: 8px 8px 0;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
align-items: center;
|
|
43
|
+
align-self: stretch;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="image-preview-body"] {
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
padding: 16px;
|
|
52
|
+
overflow: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-slot="image-preview-image"] {
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
max-height: calc(90vh - 100px);
|
|
58
|
+
object-fit: contain;
|
|
59
|
+
border-radius: var(--radius-md);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
[data-component="inline-input"] {
|
|
2
|
-
color: inherit;
|
|
3
|
-
background: transparent;
|
|
4
|
-
border: 0;
|
|
5
|
-
border-radius: var(--radius-md);
|
|
6
|
-
padding: 0;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
font: inherit;
|
|
9
|
-
letter-spacing: inherit;
|
|
10
|
-
line-height: inherit;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
|
|
13
|
-
&:focus {
|
|
14
|
-
outline: none;
|
|
15
|
-
box-shadow: 0 0 0 1px var(--border-interactive-focus);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
[data-component="inline-input"] {
|
|
2
|
+
color: inherit;
|
|
3
|
+
background: transparent;
|
|
4
|
+
border: 0;
|
|
5
|
+
border-radius: var(--radius-md);
|
|
6
|
+
padding: 0;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
font: inherit;
|
|
9
|
+
letter-spacing: inherit;
|
|
10
|
+
line-height: inherit;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
outline: none;
|
|
15
|
+
box-shadow: 0 0 0 1px var(--border-interactive-focus);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
[data-component="keybind"] {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
height: 20px;
|
|
7
|
-
padding: 0 8px;
|
|
8
|
-
border-radius: 2px;
|
|
9
|
-
background: var(--surface-base);
|
|
10
|
-
box-shadow: var(--shadow-xxs-border);
|
|
11
|
-
|
|
12
|
-
/* text-12-medium */
|
|
13
|
-
font-family: var(--font-family-sans);
|
|
14
|
-
font-size: 12px;
|
|
15
|
-
font-weight: var(--font-weight-medium);
|
|
16
|
-
line-height: 1;
|
|
17
|
-
color: var(--text-weak);
|
|
18
|
-
}
|
|
1
|
+
[data-component="keybind"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
height: 20px;
|
|
7
|
+
padding: 0 8px;
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
background: var(--surface-base);
|
|
10
|
+
box-shadow: var(--shadow-xxs-border);
|
|
11
|
+
|
|
12
|
+
/* text-12-medium */
|
|
13
|
+
font-family: var(--font-family-sans);
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
font-weight: var(--font-weight-medium);
|
|
16
|
+
line-height: 1;
|
|
17
|
+
color: var(--text-weak);
|
|
18
|
+
}
|