@jonsoc/ui 1.1.34 → 1.1.46

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