@opencode-ai/ui 0.0.0-dev-18424 → 0.0.0-dev-202608272004
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/dist/{data-display/accordion → components}/accordion.d.ts +6 -6
- package/dist/components/avatar.d.ts +9 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/card.d.ts +1 -1
- package/dist/{forms/checkbox → components}/checkbox.d.ts +2 -2
- package/dist/components/dialog.d.ts +12 -0
- package/dist/{data-display/diff-changes → components}/diff-changes.d.ts +1 -2
- package/dist/components/dropdown-menu.d.ts +80 -0
- package/dist/components/icon-button.d.ts +10 -0
- package/dist/{icons/icon/additional-icons.d.ts → components/icon.d.ts} +8 -8
- package/dist/components/keybind.d.ts +6 -0
- package/dist/components/list.d.ts +1 -1
- package/dist/{feedback/progress-circle → components}/progress-circle.d.ts +0 -2
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/scroll-view.d.ts +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/{forms/switch → components}/switch.d.ts +2 -4
- package/dist/{navigation/tabs → components}/tabs.d.ts +8 -15
- package/dist/components/tag.d.ts +5 -0
- package/dist/{typography/text-shimmer → components}/text-shimmer.d.ts +0 -1
- package/dist/components/toast.d.ts +56 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/context/i18n.d.ts +7 -10
- package/dist/i18n/ar.d.ts +2 -0
- package/dist/i18n/bg.d.ts +2 -0
- package/dist/i18n/br.d.ts +2 -0
- package/dist/i18n/bs.d.ts +2 -0
- package/dist/i18n/da.d.ts +2 -0
- package/dist/i18n/de.d.ts +2 -0
- package/dist/i18n/en.d.ts +1 -227
- package/dist/i18n/es.d.ts +2 -0
- package/dist/i18n/fr.d.ts +2 -0
- package/dist/i18n/ja.d.ts +2 -0
- package/dist/i18n/km.d.ts +2 -0
- package/dist/i18n/ko.d.ts +2 -0
- package/dist/i18n/lo.d.ts +2 -0
- package/dist/i18n/mk.d.ts +2 -0
- package/dist/i18n/mn.d.ts +2 -0
- package/dist/i18n/my.d.ts +2 -0
- package/dist/i18n/pl.d.ts +2 -0
- package/dist/i18n/ru.d.ts +2 -0
- package/dist/i18n/sr.d.ts +2 -0
- package/dist/i18n/tg.d.ts +2 -0
- package/dist/i18n/th.d.ts +2 -0
- package/dist/i18n/tr.d.ts +2 -0
- package/dist/i18n/zh.d.ts +2 -0
- package/dist/i18n/zht.d.ts +2 -0
- package/dist/v2/components/accordion-v2.d.ts +26 -0
- package/dist/{data-display/avatar/avatar.d.ts → v2/components/avatar-v2.d.ts} +1 -1
- package/dist/v2/components/badge-v2.d.ts +6 -0
- package/dist/v2/components/button-v2.d.ts +10 -0
- package/dist/v2/components/checkbox-v2.d.ts +10 -0
- package/dist/{overlays/dialog/dialog.d.ts → v2/components/dialog-v2.d.ts} +2 -1
- package/dist/v2/components/diff-changes-v2.d.ts +11 -0
- package/dist/v2/components/divider-v2.d.ts +5 -0
- package/dist/{forms/field/field.d.ts → v2/components/field-v2.d.ts} +10 -4
- package/dist/v2/components/icon-button-v2.d.ts +11 -0
- package/dist/{icons/icon → v2/components}/icon.d.ts +1 -24
- package/dist/v2/components/inline-input-v2.d.ts +21 -0
- package/dist/v2/components/keybind-v2.d.ts +7 -0
- package/dist/{data-display/line-comment/line-comment.d.ts → v2/components/line-comment-v2.d.ts} +9 -9
- package/dist/v2/components/loader-v2.d.ts +3 -0
- package/dist/v2/components/menu-v2.d.ts +52 -0
- package/dist/v2/components/progress-circle-v2.d.ts +8 -0
- package/dist/{data-display/project-avatar/project-avatar.d.ts → v2/components/project-avatar-v2.d.ts} +1 -1
- package/dist/v2/components/radio-v2.d.ts +16 -0
- package/dist/{navigation/segmented-control/segmented-control.d.ts → v2/components/segmented-control-v2.d.ts} +5 -5
- package/dist/{forms/select/select.d.ts → v2/components/select-v2.d.ts} +6 -4
- package/dist/v2/components/split-button-v2.d.ts +5 -0
- package/dist/v2/components/switch-v2.d.ts +7 -0
- package/dist/v2/components/tabs-v2.d.ts +34 -0
- package/dist/{forms/text-input/text-input.d.ts → v2/components/text-input-v2.d.ts} +3 -3
- package/dist/v2/components/text-shimmer-v2.d.ts +9 -0
- package/dist/v2/components/textarea-v2.d.ts +7 -0
- package/dist/v2/components/toast-v2.d.ts +57 -0
- package/dist/v2/components/tooltip-v2.d.ts +13 -0
- package/dist/v2/components/wordmark-v2.d.ts +2 -0
- package/package.json +13 -131
- package/src/{data-display/accordion → components}/accordion.css +26 -1
- package/src/{data-display/accordion → components}/accordion.tsx +14 -14
- package/src/components/animated-number.css +11 -29
- package/src/components/animated-number.tsx +2 -2
- package/src/components/avatar.css +49 -0
- package/src/components/avatar.tsx +55 -0
- package/src/components/button.css +194 -0
- package/src/{actions/button → components}/button.tsx +11 -10
- package/src/components/card.css +23 -2
- package/src/components/card.tsx +4 -4
- package/src/{forms/checkbox → components}/checkbox.css +7 -1
- package/src/{forms/checkbox → components}/checkbox.tsx +13 -13
- package/src/components/collapsible.tsx +2 -2
- package/src/components/dialog.css +181 -0
- package/src/components/dialog.tsx +72 -0
- package/src/{data-display/diff-changes → components}/diff-changes.css +19 -22
- package/src/components/diff-changes.tsx +115 -0
- package/src/components/dock-surface.css +9 -2
- package/src/components/dropdown-menu.css +135 -0
- package/src/components/dropdown-menu.tsx +308 -0
- package/src/components/icon-button.css +181 -0
- package/src/components/icon-button.tsx +29 -0
- package/src/components/icon.css +39 -0
- package/src/{icons/icon/additional-icons.ts → components/icon.tsx} +74 -8
- package/src/components/image-preview.tsx +2 -3
- package/src/components/keybind.css +18 -0
- package/src/components/keybind.tsx +20 -0
- package/src/components/list.css +5 -5
- package/src/components/list.tsx +5 -7
- package/src/components/popover.tsx +2 -3
- package/src/components/progress-circle.css +16 -0
- package/src/components/progress-circle.tsx +64 -0
- package/src/components/radio-group.css +187 -0
- package/src/components/radio-group.tsx +83 -0
- package/src/components/scroll-view.tsx +20 -5
- package/src/components/select.css +201 -0
- package/src/components/select.tsx +174 -0
- package/src/components/sticky-accordion-header.tsx +1 -1
- package/src/components/switch.css +136 -0
- package/src/components/switch.tsx +29 -0
- package/src/{navigation/tabs → components}/tabs.css +229 -39
- package/src/components/tabs.tsx +126 -0
- package/src/components/tag.css +37 -0
- package/src/components/tag.tsx +22 -0
- package/src/components/text-field.tsx +4 -12
- package/src/{typography/text-shimmer → components}/text-shimmer.css +1 -2
- package/src/{typography/text-shimmer → components}/text-shimmer.tsx +0 -1
- package/src/components/toast.css +236 -0
- package/src/components/toast.tsx +185 -0
- package/src/components/tooltip.css +74 -0
- package/src/components/tooltip.tsx +163 -0
- package/src/context/dialog.tsx +0 -1
- package/src/context/i18n.tsx +14 -17
- package/src/hooks/create-auto-scroll.tsx +0 -20
- package/src/i18n/am.ts +3 -1
- package/src/i18n/ar.ts +3 -1
- package/src/i18n/az.ts +3 -1
- package/src/i18n/bg.ts +3 -1
- package/src/i18n/bn.ts +3 -1
- package/src/i18n/br.ts +3 -1
- package/src/i18n/bs.ts +3 -1
- package/src/i18n/ca.ts +3 -1
- package/src/i18n/cs.ts +3 -1
- package/src/i18n/da.ts +3 -1
- package/src/i18n/de.ts +3 -1
- package/src/i18n/dv.ts +3 -1
- package/src/i18n/dz.ts +3 -1
- package/src/i18n/el.ts +3 -1
- package/src/i18n/en.ts +5 -37
- package/src/i18n/es.ts +3 -1
- package/src/i18n/et.ts +3 -1
- package/src/i18n/fa.ts +3 -1
- package/src/i18n/fi.ts +3 -1
- package/src/i18n/fo.ts +3 -1
- package/src/i18n/fr.ts +3 -1
- package/src/i18n/hi.ts +3 -1
- package/src/i18n/hr.ts +3 -1
- package/src/i18n/hu.ts +3 -1
- package/src/i18n/hy.ts +3 -1
- package/src/i18n/id.ts +3 -1
- package/src/i18n/is.ts +3 -1
- package/src/i18n/it.ts +3 -1
- package/src/i18n/ja.ts +3 -1
- package/src/i18n/ka.ts +3 -1
- package/src/i18n/km.ts +3 -1
- package/src/i18n/ko.ts +3 -1
- package/src/i18n/lo.ts +3 -1
- package/src/i18n/lt.ts +3 -1
- package/src/i18n/lv.ts +3 -1
- package/src/i18n/mk.ts +3 -1
- package/src/i18n/mn.ts +3 -1
- package/src/i18n/ms.ts +3 -1
- package/src/i18n/my.ts +3 -1
- package/src/i18n/ne.ts +3 -1
- package/src/i18n/nl.ts +3 -1
- package/src/i18n/no.ts +3 -1
- package/src/i18n/pa.ts +3 -1
- package/src/i18n/pl.ts +3 -1
- package/src/i18n/ro.ts +3 -1
- package/src/i18n/ru.ts +3 -1
- package/src/i18n/si.ts +3 -1
- package/src/i18n/sk.ts +3 -1
- package/src/i18n/sl.ts +3 -1
- package/src/i18n/sq.ts +3 -1
- package/src/i18n/sr.ts +3 -1
- package/src/i18n/sv.ts +3 -1
- package/src/i18n/tg.ts +3 -1
- package/src/i18n/th.ts +3 -1
- package/src/i18n/tk.ts +3 -1
- package/src/i18n/tr.ts +3 -1
- package/src/i18n/uk.ts +3 -1
- package/src/i18n/ur.ts +3 -1
- package/src/i18n/uz.ts +3 -1
- package/src/i18n/vi.ts +3 -1
- package/src/i18n/zh.ts +3 -1
- package/src/i18n/zht.ts +3 -1
- package/src/styles/index.css +20 -4
- package/src/styles/tailwind/colors.css +0 -1
- package/src/styles/tailwind/index.css +1 -18
- package/src/styles/theme.css +2 -2
- package/src/theme/context.tsx +11 -19
- package/src/theme/themes/oc-2.json +1 -3
- package/src/theme/v2/foreground.ts +0 -1
- package/src/v2/components/accordion-v2.css +139 -0
- package/src/v2/components/accordion-v2.tsx +86 -0
- package/src/{data-display/avatar/avatar.tsx → v2/components/avatar-v2.tsx} +1 -1
- package/src/{data-display/badge/badge.css → v2/components/badge-v2.css} +0 -19
- package/src/{data-display/badge/badge.tsx → v2/components/badge-v2.tsx} +4 -6
- package/src/v2/components/button-v2.tsx +35 -0
- package/src/v2/components/checkbox-v2.css +184 -0
- package/src/v2/components/checkbox-v2.tsx +65 -0
- package/src/{overlays/dialog/dialog.css → v2/components/dialog-v2.css} +0 -3
- package/src/{overlays/dialog/dialog.tsx → v2/components/dialog-v2.tsx} +13 -11
- package/src/v2/components/diff-changes-v2.css +26 -0
- package/src/{data-display/diff-changes/diff-changes.tsx → v2/components/diff-changes-v2.tsx} +2 -7
- package/src/{layout/divider/divider.tsx → v2/components/divider-v2.tsx} +3 -3
- package/src/{forms/field/field.css → v2/components/field-v2.css} +1 -1
- package/src/{forms/field/field.tsx → v2/components/field-v2.tsx} +11 -9
- package/src/v2/components/icon-button-v2.tsx +37 -0
- package/src/{icons/icon → v2/components}/icon.tsx +9 -50
- package/src/v2/components/inline-input-v2.css +225 -0
- package/src/v2/components/inline-input-v2.tsx +107 -0
- package/src/{data-display/keybind/keybind.css → v2/components/keybind-v2.css} +1 -1
- package/src/{data-display/keybind/keybind.tsx → v2/components/keybind-v2.tsx} +3 -3
- package/src/{data-display/line-comment/line-comment.css → v2/components/line-comment-v2.css} +3 -3
- package/src/{data-display/line-comment/line-comment.tsx → v2/components/line-comment-v2.tsx} +15 -17
- package/src/{feedback/loader/loader.tsx → v2/components/loader-v2.tsx} +2 -2
- package/src/{navigation/menu/menu.css → v2/components/menu-v2.css} +2 -122
- package/src/{navigation/menu/menu.tsx → v2/components/menu-v2.tsx} +32 -96
- package/src/v2/components/progress-circle-v2.css +13 -0
- package/src/v2/components/progress-circle-v2.tsx +52 -0
- package/src/{data-display/project-avatar/project-avatar.tsx → v2/components/project-avatar-v2.tsx} +1 -1
- package/src/{forms/radio/radio.tsx → v2/components/radio-v2.tsx} +20 -30
- package/src/{navigation/segmented-control/segmented-control.css → v2/components/segmented-control-v2.css} +1 -1
- package/src/{navigation/segmented-control/segmented-control.tsx → v2/components/segmented-control-v2.tsx} +8 -9
- package/src/{forms/select/select.css → v2/components/select-v2.css} +8 -2
- package/src/{forms/select/select.tsx → v2/components/select-v2.tsx} +32 -38
- package/src/{actions/split-button/split-button.css → v2/components/split-button-v2.css} +6 -1
- package/src/{actions/split-button/split-button.tsx → v2/components/split-button-v2.tsx} +4 -4
- package/src/{forms/switch/switch.css → v2/components/switch-v2.css} +0 -110
- package/src/v2/components/switch-v2.tsx +28 -0
- package/src/{navigation/tabs/tabs-current.css → v2/components/tabs-v2.css} +10 -25
- package/src/v2/components/tabs-v2.tsx +149 -0
- package/src/{forms/text-input/text-input.css → v2/components/text-input-v2.css} +1 -1
- package/src/{forms/text-input/text-input.tsx → v2/components/text-input-v2.tsx} +4 -4
- package/src/v2/components/text-shimmer-v2.css +125 -0
- package/src/v2/components/text-shimmer-v2.tsx +63 -0
- package/src/{forms/textarea/textarea.tsx → v2/components/textarea-v2.tsx} +3 -3
- package/src/{feedback/toast/toast.tsx → v2/components/toast-v2.tsx} +58 -60
- package/src/{overlays/tooltip/tooltip.css → v2/components/tooltip-v2.css} +0 -26
- package/src/{overlays/tooltip/tooltip.tsx → v2/components/tooltip-v2.tsx} +14 -21
- package/src/{typography/wordmark/wordmark.tsx → v2/components/wordmark-v2.tsx} +1 -1
- package/src/{styles/tokens → v2/styles}/theme.css +14 -10
- package/dist/actions/button/button.d.ts +0 -10
- package/dist/actions/icon-button/icon-button.d.ts +0 -11
- package/dist/actions/split-button/split-button.d.ts +0 -5
- package/dist/data-display/badge/badge.d.ts +0 -7
- package/dist/data-display/keybind/keybind.d.ts +0 -7
- package/dist/feedback/loader/loader.d.ts +0 -3
- package/dist/feedback/toast/toast.d.ts +0 -57
- package/dist/forms/radio/radio.d.ts +0 -16
- package/dist/forms/textarea/textarea.d.ts +0 -7
- package/dist/i18n/he.d.ts +0 -197
- package/dist/layout/divider/divider.d.ts +0 -5
- package/dist/navigation/menu/menu.d.ts +0 -59
- package/dist/overlays/tooltip/tooltip.d.ts +0 -15
- package/dist/typography/wordmark/wordmark.d.ts +0 -2
- package/src/actions/icon-button/icon-button.tsx +0 -32
- package/src/feedback/progress-circle/progress-circle.css +0 -28
- package/src/feedback/progress-circle/progress-circle.tsx +0 -64
- package/src/forms/switch/switch.tsx +0 -34
- package/src/i18n/he.ts +0 -199
- package/src/icons/icon/icon.css +0 -3
- package/src/navigation/tabs/tabs.tsx +0 -194
- /package/dist/{forms/inline-input → components}/inline-input.d.ts +0 -0
- /package/dist/{navigation → v2/components}/tab-state-indicator.d.ts +0 -0
- /package/src/{forms/inline-input → components}/inline-input.css +0 -0
- /package/src/{forms/inline-input → components}/inline-input.tsx +0 -0
- /package/src/{data-display/avatar/avatar.css → v2/components/avatar-v2.css} +0 -0
- /package/src/{actions/button/button.css → v2/components/button-v2.css} +0 -0
- /package/src/{layout/divider/divider.css → v2/components/divider-v2.css} +0 -0
- /package/src/{styles/file-tree.css → v2/components/file-tree-v2.css} +0 -0
- /package/src/{actions/icon-button/icon-button.css → v2/components/icon-button-v2.css} +0 -0
- /package/src/{feedback/loader/loader.css → v2/components/loader-v2.css} +0 -0
- /package/src/{data-display/project-avatar/project-avatar.css → v2/components/project-avatar-v2.css} +0 -0
- /package/src/{forms/radio/radio.css → v2/components/radio-v2.css} +0 -0
- /package/src/{navigation → v2/components}/tab-state-indicator.tsx +0 -0
- /package/src/{forms/textarea/textarea.css → v2/components/textarea-v2.css} +0 -0
- /package/src/{feedback/toast/toast.css → v2/components/toast-v2.css} +0 -0
- /package/src/{styles/tokens → v2/styles}/colors.css +0 -0
- /package/src/{styles/tokens/index.css → v2/styles/tailwind.css} +0 -0
|
@@ -18,13 +18,15 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
overflow-x: auto;
|
|
21
|
+
|
|
22
|
+
/* Hide scrollbar */
|
|
21
23
|
scrollbar-width: none;
|
|
22
24
|
-ms-overflow-style: none;
|
|
23
|
-
|
|
24
25
|
&::-webkit-scrollbar {
|
|
25
26
|
display: none;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
/* After element to fill remaining space */
|
|
28
30
|
&::after {
|
|
29
31
|
content: "";
|
|
30
32
|
display: block;
|
|
@@ -46,12 +48,15 @@
|
|
|
46
48
|
align-items: center;
|
|
47
49
|
gap: 12px;
|
|
48
50
|
color: var(--text-base);
|
|
51
|
+
|
|
52
|
+
/* text-14-medium */
|
|
49
53
|
font-family: var(--font-family-sans);
|
|
50
54
|
font-size: 14px;
|
|
51
55
|
font-style: normal;
|
|
52
56
|
font-weight: var(--font-weight-medium);
|
|
53
|
-
line-height: var(--line-height-large);
|
|
57
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
54
58
|
letter-spacing: var(--letter-spacing-normal);
|
|
59
|
+
|
|
55
60
|
white-space: nowrap;
|
|
56
61
|
flex-shrink: 0;
|
|
57
62
|
max-width: 280px;
|
|
@@ -81,13 +86,6 @@
|
|
|
81
86
|
justify-content: center;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
|
-
[data-slot="tabs-close-button"] {
|
|
85
|
-
padding: 0;
|
|
86
|
-
display: flex;
|
|
87
|
-
align-items: center;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
89
|
[data-component="icon-button"] {
|
|
92
90
|
margin: -0.25rem;
|
|
93
91
|
}
|
|
@@ -96,17 +94,14 @@
|
|
|
96
94
|
pointer-events: none;
|
|
97
95
|
color: var(--text-weaker);
|
|
98
96
|
}
|
|
99
|
-
|
|
100
97
|
&:focus-visible {
|
|
101
98
|
outline: none;
|
|
102
99
|
box-shadow: none;
|
|
103
100
|
}
|
|
104
|
-
|
|
105
101
|
&:has([data-selected]) {
|
|
106
102
|
color: var(--text-strong);
|
|
107
103
|
background-color: transparent;
|
|
108
104
|
border-bottom-color: transparent;
|
|
109
|
-
|
|
110
105
|
[data-slot="tabs-trigger-close-button"] {
|
|
111
106
|
opacity: 1;
|
|
112
107
|
}
|
|
@@ -115,7 +110,6 @@
|
|
|
115
110
|
&:hover:not(:disabled):not([data-selected]) {
|
|
116
111
|
color: var(--text-strong);
|
|
117
112
|
}
|
|
118
|
-
|
|
119
113
|
&:has([data-slot="tabs-trigger-close-button"]) {
|
|
120
114
|
padding-inline-end: 12px;
|
|
121
115
|
|
|
@@ -128,9 +122,10 @@
|
|
|
128
122
|
[data-slot="tabs-content"] {
|
|
129
123
|
overflow-y: auto;
|
|
130
124
|
flex: 1;
|
|
125
|
+
|
|
126
|
+
/* Hide scrollbar */
|
|
131
127
|
scrollbar-width: none;
|
|
132
128
|
-ms-overflow-style: none;
|
|
133
|
-
|
|
134
129
|
&::-webkit-scrollbar {
|
|
135
130
|
display: none;
|
|
136
131
|
}
|
|
@@ -223,7 +218,6 @@
|
|
|
223
218
|
|
|
224
219
|
&:has([data-slot="tabs-trigger-close-button"]) {
|
|
225
220
|
padding-inline-end: 5px;
|
|
226
|
-
|
|
227
221
|
[data-slot="tabs-trigger"] {
|
|
228
222
|
padding-inline-end: 0 !important;
|
|
229
223
|
}
|
|
@@ -245,6 +239,10 @@
|
|
|
245
239
|
background-color: var(--surface-base-hover);
|
|
246
240
|
}
|
|
247
241
|
|
|
242
|
+
/*
|
|
243
|
+
File tabs: use monochrome icon by default.
|
|
244
|
+
Full-color icon is shown on hover/selected.
|
|
245
|
+
*/
|
|
248
246
|
[data-slot="tabs-trigger"] {
|
|
249
247
|
.tab-fileicon-color,
|
|
250
248
|
.tab-fileicon-mono {
|
|
@@ -331,6 +329,9 @@
|
|
|
331
329
|
border: none;
|
|
332
330
|
background-color: transparent;
|
|
333
331
|
}
|
|
332
|
+
&:empty::after {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
[data-slot="tabs-trigger-wrapper"] {
|
|
@@ -341,11 +342,13 @@
|
|
|
341
342
|
border-bottom-style: solid;
|
|
342
343
|
border-bottom-color: transparent;
|
|
343
344
|
gap: 4px;
|
|
345
|
+
|
|
346
|
+
/* text-14-regular */
|
|
344
347
|
font-family: var(--font-family-sans);
|
|
345
348
|
font-size: var(--font-size-base);
|
|
346
349
|
font-style: normal;
|
|
347
350
|
font-weight: var(--font-weight-regular);
|
|
348
|
-
line-height: var(--line-height-x-large);
|
|
351
|
+
line-height: var(--line-height-x-large); /* 171.429% */
|
|
349
352
|
letter-spacing: var(--letter-spacing-normal);
|
|
350
353
|
|
|
351
354
|
[data-slot="tabs-trigger"] {
|
|
@@ -356,6 +359,18 @@
|
|
|
356
359
|
border-bottom-color: transparent;
|
|
357
360
|
}
|
|
358
361
|
|
|
362
|
+
[data-slot="tabs-trigger-close-button"] {
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: center;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
[data-component="icon-button"] {
|
|
369
|
+
width: 16px;
|
|
370
|
+
height: 16px;
|
|
371
|
+
margin: 0;
|
|
372
|
+
}
|
|
373
|
+
|
|
359
374
|
&:has([data-selected]) {
|
|
360
375
|
color: var(--text-strong);
|
|
361
376
|
background-color: transparent;
|
|
@@ -368,12 +383,14 @@
|
|
|
368
383
|
|
|
369
384
|
&:has([data-slot="tabs-trigger-close-button"]) {
|
|
370
385
|
padding-inline-end: 0;
|
|
371
|
-
|
|
372
386
|
[data-slot="tabs-trigger"] {
|
|
373
387
|
padding-inline-end: 0;
|
|
374
388
|
}
|
|
375
389
|
}
|
|
376
390
|
}
|
|
391
|
+
|
|
392
|
+
/* [data-slot="tabs-content"] { */
|
|
393
|
+
/* } */
|
|
377
394
|
}
|
|
378
395
|
|
|
379
396
|
&[data-variant="pill"][data-orientation="horizontal"] {
|
|
@@ -396,6 +413,8 @@
|
|
|
396
413
|
border-radius: var(--radius-sm);
|
|
397
414
|
background-color: transparent;
|
|
398
415
|
gap: 0;
|
|
416
|
+
|
|
417
|
+
/* text-13-medium */
|
|
399
418
|
font-family: var(--font-family-sans);
|
|
400
419
|
font-size: var(--font-size-small);
|
|
401
420
|
font-style: normal;
|
|
@@ -415,13 +434,17 @@
|
|
|
415
434
|
color: var(--text-strong);
|
|
416
435
|
}
|
|
417
436
|
|
|
418
|
-
&:active:not(:disabled)
|
|
419
|
-
&:has([data-selected]) {
|
|
437
|
+
&:active:not(:disabled) {
|
|
420
438
|
background-color: var(--surface-base-active);
|
|
421
439
|
}
|
|
422
440
|
|
|
423
441
|
&:has([data-selected]) {
|
|
442
|
+
background-color: var(--surface-base-active);
|
|
424
443
|
color: var(--text-strong);
|
|
444
|
+
|
|
445
|
+
&:hover:not(:disabled) {
|
|
446
|
+
background-color: var(--surface-base-active);
|
|
447
|
+
}
|
|
425
448
|
}
|
|
426
449
|
}
|
|
427
450
|
}
|
|
@@ -458,6 +481,170 @@
|
|
|
458
481
|
}
|
|
459
482
|
}
|
|
460
483
|
}
|
|
484
|
+
|
|
485
|
+
&[data-orientation="vertical"] {
|
|
486
|
+
flex-direction: row;
|
|
487
|
+
|
|
488
|
+
[data-slot="tabs-list"] {
|
|
489
|
+
flex-direction: column;
|
|
490
|
+
width: auto;
|
|
491
|
+
height: 100%;
|
|
492
|
+
overflow-x: hidden;
|
|
493
|
+
overflow-y: auto;
|
|
494
|
+
padding: 8px;
|
|
495
|
+
gap: 4px;
|
|
496
|
+
background-color: var(--background-base);
|
|
497
|
+
border-inline-end: 1px solid var(--border-weak-base);
|
|
498
|
+
|
|
499
|
+
&::after {
|
|
500
|
+
display: none;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
[data-slot="tabs-trigger-wrapper"] {
|
|
505
|
+
width: 100%;
|
|
506
|
+
height: 32px;
|
|
507
|
+
border: none;
|
|
508
|
+
border-radius: 8px;
|
|
509
|
+
background-color: transparent;
|
|
510
|
+
|
|
511
|
+
[data-slot="tabs-trigger"] {
|
|
512
|
+
height: 100%;
|
|
513
|
+
padding: 0 8px;
|
|
514
|
+
gap: 8px;
|
|
515
|
+
justify-content: flex-start;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
&:hover:not(:disabled) {
|
|
519
|
+
background-color: var(--surface-base-hover);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
&:has([data-selected]) {
|
|
523
|
+
background-color: var(--surface-base-active);
|
|
524
|
+
color: var(--text-strong);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
[data-slot="tabs-content"] {
|
|
529
|
+
overflow-x: auto;
|
|
530
|
+
overflow-y: auto;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
&[data-variant="alt"] {
|
|
534
|
+
[data-slot="tabs-list"] {
|
|
535
|
+
padding: 8px;
|
|
536
|
+
gap: 4px;
|
|
537
|
+
border: none;
|
|
538
|
+
|
|
539
|
+
&::after {
|
|
540
|
+
display: none;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
[data-slot="tabs-trigger-wrapper"] {
|
|
545
|
+
height: 32px;
|
|
546
|
+
border: none;
|
|
547
|
+
border-radius: 8px;
|
|
548
|
+
|
|
549
|
+
[data-slot="tabs-trigger"] {
|
|
550
|
+
border: none;
|
|
551
|
+
padding: 0 8px;
|
|
552
|
+
gap: 8px;
|
|
553
|
+
justify-content: flex-start;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
&:hover:not(:disabled) {
|
|
557
|
+
background-color: var(--surface-base-hover);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
&:has([data-selected]) {
|
|
561
|
+
background-color: var(--surface-base-hover);
|
|
562
|
+
color: var(--text-strong);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
&[data-variant="settings"] {
|
|
568
|
+
[data-slot="tabs-list"] {
|
|
569
|
+
width: 150px;
|
|
570
|
+
min-width: 150px;
|
|
571
|
+
|
|
572
|
+
@media (min-width: 640px) {
|
|
573
|
+
width: 200px;
|
|
574
|
+
min-width: 200px;
|
|
575
|
+
}
|
|
576
|
+
padding: 12px;
|
|
577
|
+
gap: 0;
|
|
578
|
+
background-color: var(--background-base);
|
|
579
|
+
border-inline-end: 1px solid var(--border-weak-base);
|
|
580
|
+
|
|
581
|
+
&::after {
|
|
582
|
+
display: none;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-slot="tabs-section-title"] {
|
|
587
|
+
width: 100%;
|
|
588
|
+
padding: 0;
|
|
589
|
+
padding-inline-start: 4px;
|
|
590
|
+
font-family: var(--font-family-sans);
|
|
591
|
+
font-size: var(--font-size-small);
|
|
592
|
+
font-weight: var(--font-weight-medium);
|
|
593
|
+
color: var(--text-weak);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
[data-slot="tabs-trigger-wrapper"] {
|
|
597
|
+
height: 32px;
|
|
598
|
+
border: none;
|
|
599
|
+
border-radius: var(--radius-md);
|
|
600
|
+
|
|
601
|
+
/* text-14-medium */
|
|
602
|
+
font-family: var(--font-family-sans);
|
|
603
|
+
font-size: var(--font-size-base);
|
|
604
|
+
font-weight: var(--font-weight-medium);
|
|
605
|
+
line-height: var(--line-height-large);
|
|
606
|
+
|
|
607
|
+
[data-slot="tabs-trigger"] {
|
|
608
|
+
border: none;
|
|
609
|
+
padding: 0 8px;
|
|
610
|
+
gap: 12px;
|
|
611
|
+
justify-content: flex-start;
|
|
612
|
+
width: 100%;
|
|
613
|
+
height: 100%;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
[data-component="icon"] {
|
|
617
|
+
color: var(--icon-base);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
&:hover:not(:disabled) {
|
|
621
|
+
background-color: var(--surface-base-hover);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
&:has([data-slot="tabs-trigger"]:focus-visible) {
|
|
625
|
+
background-color: var(--surface-base-hover);
|
|
626
|
+
box-shadow: var(--shadow-xs-border-focus);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
&:has([data-selected]) {
|
|
630
|
+
background-color: var(--surface-base-active);
|
|
631
|
+
color: var(--text-strong);
|
|
632
|
+
|
|
633
|
+
[data-component="icon"] {
|
|
634
|
+
color: var(--icon-strong-base);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
&:hover:not(:disabled) {
|
|
638
|
+
background-color: var(--surface-base-active);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
[data-slot="tabs-content"] {
|
|
644
|
+
background-color: var(--surface-stronger-non-alpha);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
461
648
|
}
|
|
462
649
|
|
|
463
650
|
[data-component="tabs-drag-preview"] {
|
|
@@ -498,10 +685,10 @@
|
|
|
498
685
|
position: relative;
|
|
499
686
|
}
|
|
500
687
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
688
|
+
body[data-new-layout] #review-panel [data-component="tabs"],
|
|
689
|
+
body[data-new-layout] #terminal-panel [data-component="tabs"],
|
|
690
|
+
body[data-new-layout] #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"],
|
|
691
|
+
body[data-new-layout] #terminal-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
|
|
505
692
|
background-color: var(--v2-background-bg-base);
|
|
506
693
|
|
|
507
694
|
[data-slot="tabs-list"] {
|
|
@@ -521,7 +708,7 @@
|
|
|
521
708
|
}
|
|
522
709
|
}
|
|
523
710
|
|
|
524
|
-
|
|
711
|
+
body[data-new-layout] #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
|
|
525
712
|
[data-slot="tabs-list"] {
|
|
526
713
|
height: 52px;
|
|
527
714
|
padding-inline-end: 12px;
|
|
@@ -578,15 +765,16 @@
|
|
|
578
765
|
[data-slot="icon-svg"] {
|
|
579
766
|
margin-inline-start: -2px;
|
|
580
767
|
}
|
|
768
|
+
}
|
|
581
769
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
770
|
+
/* Preview/temporary tabs: beat trigger + .text-14-medium upright defaults */
|
|
771
|
+
[data-slot="tabs-trigger"] .italic {
|
|
772
|
+
font-style: italic !important;
|
|
773
|
+
font-variation-settings: "slnt" -10 !important;
|
|
586
774
|
}
|
|
587
775
|
}
|
|
588
776
|
|
|
589
|
-
|
|
777
|
+
body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-tabs-bar {
|
|
590
778
|
width: 100%;
|
|
591
779
|
min-width: 0;
|
|
592
780
|
gap: 8px;
|
|
@@ -595,9 +783,8 @@
|
|
|
595
783
|
background-color: var(--v2-background-bg-base);
|
|
596
784
|
}
|
|
597
785
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
body
|
|
786
|
+
body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-tabs-bar [data-slot="tabs-list"],
|
|
787
|
+
body[data-new-layout]
|
|
601
788
|
#review-panel
|
|
602
789
|
[data-component="tabs"][data-variant="normal"][data-orientation="horizontal"]
|
|
603
790
|
.session-review-v2-tabs-bar
|
|
@@ -608,7 +795,12 @@
|
|
|
608
795
|
border-bottom: none;
|
|
609
796
|
}
|
|
610
797
|
|
|
611
|
-
|
|
798
|
+
body[data-new-layout]
|
|
799
|
+
#review-panel
|
|
800
|
+
[data-component="tabs"]
|
|
801
|
+
.session-review-v2-tabs-bar
|
|
802
|
+
[data-slot="tabs-list"]
|
|
803
|
+
> .sticky {
|
|
612
804
|
padding-inline-end: 0;
|
|
613
805
|
|
|
614
806
|
[data-component="icon-button-v2"] {
|
|
@@ -628,8 +820,7 @@
|
|
|
628
820
|
}
|
|
629
821
|
}
|
|
630
822
|
|
|
631
|
-
|
|
632
|
-
body
|
|
823
|
+
body[data-new-layout]
|
|
633
824
|
#review-panel
|
|
634
825
|
[data-component="tabs"]
|
|
635
826
|
.session-review-v2-tabs-bar
|
|
@@ -640,8 +831,7 @@
|
|
|
640
831
|
inset-inline-end: 0;
|
|
641
832
|
}
|
|
642
833
|
|
|
643
|
-
|
|
644
|
-
body
|
|
834
|
+
body[data-new-layout]
|
|
645
835
|
#review-panel
|
|
646
836
|
[data-component="tabs"]
|
|
647
837
|
.session-review-v2-tabs-bar
|
|
@@ -689,11 +879,11 @@
|
|
|
689
879
|
}
|
|
690
880
|
}
|
|
691
881
|
|
|
692
|
-
|
|
882
|
+
body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-open-in-app-slot {
|
|
693
883
|
flex-shrink: 0;
|
|
694
884
|
margin-inline-start: auto;
|
|
695
885
|
}
|
|
696
886
|
|
|
697
|
-
|
|
887
|
+
body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-open-in-app {
|
|
698
888
|
flex-shrink: 0;
|
|
699
889
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Tabs as Kobalte } from "@kobalte/core/tabs"
|
|
2
|
+
import { Show, splitProps, type JSX } from "solid-js"
|
|
3
|
+
import type { ComponentProps, ParentProps, Component } from "solid-js"
|
|
4
|
+
|
|
5
|
+
export interface TabsProps extends ComponentProps<typeof Kobalte> {
|
|
6
|
+
variant?: "normal" | "alt" | "pill" | "settings"
|
|
7
|
+
orientation?: "horizontal" | "vertical"
|
|
8
|
+
}
|
|
9
|
+
export interface TabsListProps extends ComponentProps<typeof Kobalte.List> {}
|
|
10
|
+
export interface TabsTriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
11
|
+
classes?: {
|
|
12
|
+
button?: string
|
|
13
|
+
}
|
|
14
|
+
hideCloseButton?: boolean
|
|
15
|
+
closeButton?: JSX.Element
|
|
16
|
+
onMiddleClick?: () => void
|
|
17
|
+
}
|
|
18
|
+
export interface TabsContentProps extends ComponentProps<typeof Kobalte.Content> {}
|
|
19
|
+
|
|
20
|
+
function TabsRoot(props: TabsProps) {
|
|
21
|
+
const [split, rest] = splitProps(props, ["class", "classList", "variant", "orientation"])
|
|
22
|
+
return (
|
|
23
|
+
<Kobalte
|
|
24
|
+
{...rest}
|
|
25
|
+
orientation={split.orientation}
|
|
26
|
+
data-component="tabs"
|
|
27
|
+
data-variant={split.variant || "normal"}
|
|
28
|
+
data-orientation={split.orientation || "horizontal"}
|
|
29
|
+
classList={{
|
|
30
|
+
...split.classList,
|
|
31
|
+
[split.class ?? ""]: !!split.class,
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function TabsList(props: TabsListProps) {
|
|
38
|
+
const [split, rest] = splitProps(props, ["class", "classList"])
|
|
39
|
+
return (
|
|
40
|
+
<Kobalte.List
|
|
41
|
+
{...rest}
|
|
42
|
+
data-slot="tabs-list"
|
|
43
|
+
classList={{
|
|
44
|
+
...split.classList,
|
|
45
|
+
[split.class ?? ""]: !!split.class,
|
|
46
|
+
}}
|
|
47
|
+
/>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function TabsTrigger(props: ParentProps<TabsTriggerProps>) {
|
|
52
|
+
const [split, rest] = splitProps(props, [
|
|
53
|
+
"class",
|
|
54
|
+
"classList",
|
|
55
|
+
"classes",
|
|
56
|
+
"children",
|
|
57
|
+
"closeButton",
|
|
58
|
+
"hideCloseButton",
|
|
59
|
+
"onMiddleClick",
|
|
60
|
+
])
|
|
61
|
+
return (
|
|
62
|
+
<div
|
|
63
|
+
data-slot="tabs-trigger-wrapper"
|
|
64
|
+
data-value={props.value}
|
|
65
|
+
classList={{
|
|
66
|
+
...split.classList,
|
|
67
|
+
[split.class ?? ""]: !!split.class,
|
|
68
|
+
}}
|
|
69
|
+
onMouseDown={(e) => {
|
|
70
|
+
if (e.button === 1 && split.onMiddleClick) {
|
|
71
|
+
e.preventDefault()
|
|
72
|
+
}
|
|
73
|
+
}}
|
|
74
|
+
onAuxClick={(e) => {
|
|
75
|
+
if (e.button === 1 && split.onMiddleClick) {
|
|
76
|
+
e.preventDefault()
|
|
77
|
+
split.onMiddleClick()
|
|
78
|
+
}
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
<Kobalte.Trigger
|
|
82
|
+
{...rest}
|
|
83
|
+
dir={rest.dir ?? "auto"}
|
|
84
|
+
data-slot="tabs-trigger"
|
|
85
|
+
data-value={props.value}
|
|
86
|
+
classList={{ [split.classes?.button ?? ""]: split.classes?.button }}
|
|
87
|
+
>
|
|
88
|
+
{split.children}
|
|
89
|
+
</Kobalte.Trigger>
|
|
90
|
+
<Show when={split.closeButton}>
|
|
91
|
+
{(closeButton) => (
|
|
92
|
+
<div data-slot="tabs-trigger-close-button" data-hidden={split.hideCloseButton}>
|
|
93
|
+
{closeButton()}
|
|
94
|
+
</div>
|
|
95
|
+
)}
|
|
96
|
+
</Show>
|
|
97
|
+
</div>
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function TabsContent(props: ParentProps<TabsContentProps>) {
|
|
102
|
+
const [split, rest] = splitProps(props, ["class", "classList", "children"])
|
|
103
|
+
return (
|
|
104
|
+
<Kobalte.Content
|
|
105
|
+
{...rest}
|
|
106
|
+
data-slot="tabs-content"
|
|
107
|
+
classList={{
|
|
108
|
+
...split.classList,
|
|
109
|
+
[split.class ?? ""]: !!split.class,
|
|
110
|
+
}}
|
|
111
|
+
>
|
|
112
|
+
{split.children}
|
|
113
|
+
</Kobalte.Content>
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const TabsSectionTitle: Component<ParentProps> = (props) => {
|
|
118
|
+
return <div data-slot="tabs-section-title">{props.children}</div>
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const Tabs = Object.assign(TabsRoot, {
|
|
122
|
+
List: TabsList,
|
|
123
|
+
Trigger: TabsTrigger,
|
|
124
|
+
Content: TabsContent,
|
|
125
|
+
SectionTitle: TabsSectionTitle,
|
|
126
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[data-component="tag"] {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
user-select: none;
|
|
6
|
+
|
|
7
|
+
border-radius: var(--radius-xs);
|
|
8
|
+
border: 0.5px solid var(--border-weak-base);
|
|
9
|
+
background: var(--surface-raised-base);
|
|
10
|
+
color: var(--text-base);
|
|
11
|
+
|
|
12
|
+
&[data-size="normal"] {
|
|
13
|
+
height: 18px;
|
|
14
|
+
padding: 0 6px;
|
|
15
|
+
|
|
16
|
+
/* text-12-medium */
|
|
17
|
+
font-family: var(--font-family-sans);
|
|
18
|
+
font-size: var(--font-size-small);
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: var(--font-weight-medium);
|
|
21
|
+
line-height: var(--line-height-large); /* 166.667% */
|
|
22
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[data-size="large"] {
|
|
26
|
+
height: 22px;
|
|
27
|
+
padding: 0 8px;
|
|
28
|
+
|
|
29
|
+
/* text-14-medium */
|
|
30
|
+
font-family: var(--font-family-sans);
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: var(--font-weight-medium);
|
|
34
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
35
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ComponentProps, splitProps } from "solid-js"
|
|
2
|
+
|
|
3
|
+
export interface TagProps extends ComponentProps<"span"> {
|
|
4
|
+
size?: "normal" | "large"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function Tag(props: TagProps) {
|
|
8
|
+
const [split, rest] = splitProps(props, ["size", "class", "classList", "children"])
|
|
9
|
+
return (
|
|
10
|
+
<span
|
|
11
|
+
{...rest}
|
|
12
|
+
data-component="tag"
|
|
13
|
+
data-size={split.size || "normal"}
|
|
14
|
+
classList={{
|
|
15
|
+
...split.classList,
|
|
16
|
+
[split.class ?? ""]: !!split.class,
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
19
|
+
{split.children}
|
|
20
|
+
</span>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -2,9 +2,8 @@ import { TextField as Kobalte } from "@kobalte/core/text-field"
|
|
|
2
2
|
import { createSignal, Show, splitProps } from "solid-js"
|
|
3
3
|
import type { ComponentProps } from "solid-js"
|
|
4
4
|
import { useI18n } from "../context/i18n"
|
|
5
|
-
import { IconButton } from "
|
|
6
|
-
import {
|
|
7
|
-
import { Tooltip } from "@opencode-ai/ui/tooltip"
|
|
5
|
+
import { IconButton } from "./icon-button"
|
|
6
|
+
import { Tooltip } from "./tooltip"
|
|
8
7
|
|
|
9
8
|
export interface TextFieldProps
|
|
10
9
|
extends ComponentProps<typeof Kobalte.Input>,
|
|
@@ -107,17 +106,10 @@ export function TextField(props: TextFieldProps) {
|
|
|
107
106
|
<Kobalte.TextArea {...others} autoResize data-slot="input-input" class={local.class} />
|
|
108
107
|
</Show>
|
|
109
108
|
<Show when={local.copyable}>
|
|
110
|
-
<Tooltip
|
|
111
|
-
appearance="standard"
|
|
112
|
-
value={label()}
|
|
113
|
-
placement="top"
|
|
114
|
-
gutter={4}
|
|
115
|
-
forceOpen={copied() ? true : undefined}
|
|
116
|
-
skipDelayDuration={0}
|
|
117
|
-
>
|
|
109
|
+
<Tooltip value={label()} placement="top" gutter={4} forceOpen={copied()} skipDelayDuration={0}>
|
|
118
110
|
<IconButton
|
|
119
111
|
type="button"
|
|
120
|
-
icon={
|
|
112
|
+
icon={icon()}
|
|
121
113
|
variant="ghost"
|
|
122
114
|
onClick={handleCopy}
|
|
123
115
|
tabIndex={-1}
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
--text-shimmer-index: 0;
|
|
6
6
|
--text-shimmer-angle: 90deg;
|
|
7
7
|
--text-shimmer-spread: 5.2ch;
|
|
8
|
-
--text-shimmer-
|
|
9
|
-
--text-shimmer-size: calc(200% + var(--text-shimmer-gutter) + var(--text-shimmer-gutter));
|
|
8
|
+
--text-shimmer-size: 360%;
|
|
10
9
|
--text-shimmer-base-color: var(--text-weak);
|
|
11
10
|
--text-shimmer-peak-color: var(--text-strong);
|
|
12
11
|
--text-shimmer-sweep: linear-gradient(
|