@opencode-ai/ui 0.0.0-dev-202608201855 → 0.0.0-dev-17751
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/actions/button/button.d.ts +10 -0
- package/dist/actions/icon-button/icon-button.d.ts +11 -0
- package/dist/actions/split-button/split-button.d.ts +5 -0
- package/dist/components/card.d.ts +1 -1
- package/dist/components/list.d.ts +1 -1
- package/dist/components/scroll-view.d.ts +3 -3
- package/dist/context/i18n.d.ts +10 -7
- package/dist/{components → data-display/accordion}/accordion.d.ts +6 -6
- package/dist/{v2/components/avatar-v2.d.ts → data-display/avatar/avatar.d.ts} +1 -1
- package/dist/data-display/badge/badge.d.ts +7 -0
- package/dist/{components → data-display/diff-changes}/diff-changes.d.ts +2 -1
- package/dist/data-display/keybind/keybind.d.ts +7 -0
- package/dist/{v2/components/line-comment-v2.d.ts → data-display/line-comment/line-comment.d.ts} +9 -9
- package/dist/{v2/components/project-avatar-v2.d.ts → data-display/project-avatar/project-avatar.d.ts} +1 -1
- package/dist/feedback/loader/loader.d.ts +3 -0
- package/dist/{components → feedback/progress-circle}/progress-circle.d.ts +2 -0
- package/dist/feedback/toast/toast.d.ts +57 -0
- package/dist/{components → forms/checkbox}/checkbox.d.ts +2 -2
- package/dist/{v2/components/field-v2.d.ts → forms/field/field.d.ts} +4 -10
- package/dist/forms/radio/radio.d.ts +16 -0
- package/dist/{v2/components/select-v2.d.ts → forms/select/select.d.ts} +4 -6
- package/dist/{components → forms/switch}/switch.d.ts +4 -2
- package/dist/{v2/components/text-input-v2.d.ts → forms/text-input/text-input.d.ts} +3 -3
- package/dist/forms/textarea/textarea.d.ts +7 -0
- package/dist/i18n/ar.d.ts +0 -2
- package/dist/i18n/bg.d.ts +0 -2
- package/dist/i18n/br.d.ts +0 -2
- package/dist/i18n/bs.d.ts +0 -2
- package/dist/i18n/da.d.ts +0 -2
- package/dist/i18n/de.d.ts +0 -2
- package/dist/i18n/en.d.ts +209 -1
- package/dist/i18n/es.d.ts +0 -2
- package/dist/i18n/fr.d.ts +0 -2
- package/dist/i18n/he.d.ts +197 -0
- package/dist/i18n/ja.d.ts +0 -2
- package/dist/i18n/km.d.ts +0 -2
- package/dist/i18n/ko.d.ts +0 -2
- package/dist/i18n/lo.d.ts +0 -2
- package/dist/i18n/mk.d.ts +0 -2
- package/dist/i18n/mn.d.ts +0 -2
- package/dist/i18n/my.d.ts +0 -2
- package/dist/i18n/pl.d.ts +0 -2
- package/dist/i18n/ru.d.ts +0 -2
- package/dist/i18n/sr.d.ts +0 -2
- package/dist/i18n/tg.d.ts +0 -2
- package/dist/i18n/th.d.ts +0 -2
- package/dist/i18n/tr.d.ts +0 -2
- package/dist/i18n/zh.d.ts +0 -2
- package/dist/i18n/zht.d.ts +0 -2
- package/dist/{components/icon.d.ts → icons/icon/additional-icons.d.ts} +8 -8
- package/dist/{v2/components → icons/icon}/icon.d.ts +16 -1
- package/dist/layout/divider/divider.d.ts +5 -0
- package/dist/navigation/menu/menu.d.ts +59 -0
- package/dist/{v2/components/segmented-control-v2.d.ts → navigation/segmented-control/segmented-control.d.ts} +5 -5
- package/dist/{components → navigation/tabs}/tabs.d.ts +15 -8
- package/dist/{v2/components/dialog-v2.d.ts → overlays/dialog/dialog.d.ts} +1 -2
- package/dist/overlays/tooltip/tooltip.d.ts +14 -0
- package/dist/{components → typography/text-shimmer}/text-shimmer.d.ts +1 -0
- package/dist/typography/wordmark/wordmark.d.ts +2 -0
- package/package.json +131 -13
- package/src/{v2/components/button-v2.tsx → actions/button/button.tsx} +8 -8
- package/src/actions/icon-button/icon-button.tsx +32 -0
- package/src/{v2/components/split-button-v2.css → actions/split-button/split-button.css} +1 -6
- package/src/{v2/components/split-button-v2.tsx → actions/split-button/split-button.tsx} +4 -4
- package/src/components/animated-number.css +29 -11
- package/src/components/animated-number.tsx +2 -2
- package/src/components/card.css +2 -23
- package/src/components/card.tsx +4 -4
- package/src/components/collapsible.tsx +1 -1
- package/src/components/image-preview.tsx +3 -2
- package/src/components/list.css +5 -5
- package/src/components/list.tsx +7 -5
- package/src/components/popover.tsx +3 -2
- package/src/components/provider-icon.tsx +1 -1
- package/src/components/scroll-view.tsx +5 -20
- package/src/components/sticky-accordion-header.tsx +1 -1
- package/src/components/text-field.tsx +12 -4
- package/src/context/i18n.tsx +17 -14
- package/src/{components → data-display/accordion}/accordion.css +1 -26
- package/src/{components → data-display/accordion}/accordion.tsx +14 -14
- package/src/{v2/components/avatar-v2.tsx → data-display/avatar/avatar.tsx} +1 -1
- package/src/{v2/components/badge-v2.css → data-display/badge/badge.css} +19 -0
- package/src/{v2/components/badge-v2.tsx → data-display/badge/badge.tsx} +6 -4
- package/src/{components → data-display/diff-changes}/diff-changes.css +22 -19
- package/src/{v2/components/diff-changes-v2.tsx → data-display/diff-changes/diff-changes.tsx} +7 -2
- package/src/{v2/components/keybind-v2.css → data-display/keybind/keybind.css} +1 -1
- package/src/{v2/components/keybind-v2.tsx → data-display/keybind/keybind.tsx} +3 -3
- package/src/{v2/components/line-comment-v2.tsx → data-display/line-comment/line-comment.tsx} +17 -15
- package/src/{v2/components/project-avatar-v2.tsx → data-display/project-avatar/project-avatar.tsx} +1 -1
- package/src/{v2/components/loader-v2.tsx → feedback/loader/loader.tsx} +2 -2
- package/src/feedback/progress-circle/progress-circle.css +28 -0
- package/src/feedback/progress-circle/progress-circle.tsx +64 -0
- package/src/{v2/components/toast-v2.tsx → feedback/toast/toast.tsx} +60 -58
- package/src/{components → forms/checkbox}/checkbox.css +1 -7
- package/src/{components → forms/checkbox}/checkbox.tsx +13 -13
- package/src/{v2/components/field-v2.tsx → forms/field/field.tsx} +9 -11
- package/src/{v2/components/radio-v2.tsx → forms/radio/radio.tsx} +30 -20
- package/src/{v2/components/select-v2.css → forms/select/select.css} +2 -8
- package/src/{v2/components/select-v2.tsx → forms/select/select.tsx} +38 -32
- package/src/{v2/components/switch-v2.css → forms/switch/switch.css} +110 -0
- package/src/forms/switch/switch.tsx +34 -0
- package/src/{v2/components/text-input-v2.tsx → forms/text-input/text-input.tsx} +4 -4
- package/src/{v2/components/textarea-v2.tsx → forms/textarea/textarea.tsx} +3 -3
- package/src/hooks/create-auto-scroll.tsx +20 -0
- package/src/i18n/am.ts +0 -2
- package/src/i18n/ar.ts +0 -2
- package/src/i18n/az.ts +0 -2
- package/src/i18n/bg.ts +0 -2
- package/src/i18n/bn.ts +0 -2
- package/src/i18n/br.ts +0 -2
- package/src/i18n/bs.ts +0 -2
- package/src/i18n/ca.ts +0 -2
- package/src/i18n/cs.ts +0 -2
- package/src/i18n/da.ts +0 -2
- package/src/i18n/de.ts +0 -2
- package/src/i18n/dv.ts +0 -2
- package/src/i18n/dz.ts +0 -2
- package/src/i18n/el.ts +0 -2
- package/src/i18n/en.ts +18 -4
- package/src/i18n/es.ts +0 -2
- package/src/i18n/et.ts +0 -2
- package/src/i18n/fa.ts +0 -2
- package/src/i18n/fi.ts +0 -2
- package/src/i18n/fo.ts +0 -2
- package/src/i18n/fr.ts +0 -2
- package/src/i18n/he.ts +199 -0
- package/src/i18n/hi.ts +0 -2
- package/src/i18n/hr.ts +0 -2
- package/src/i18n/hu.ts +0 -2
- package/src/i18n/hy.ts +0 -2
- package/src/i18n/id.ts +0 -2
- package/src/i18n/is.ts +0 -2
- package/src/i18n/it.ts +0 -2
- package/src/i18n/ja.ts +0 -2
- package/src/i18n/ka.ts +0 -2
- package/src/i18n/km.ts +0 -2
- package/src/i18n/ko.ts +0 -2
- package/src/i18n/lo.ts +0 -2
- package/src/i18n/lt.ts +0 -2
- package/src/i18n/lv.ts +0 -2
- package/src/i18n/mk.ts +0 -2
- package/src/i18n/mn.ts +0 -2
- package/src/i18n/ms.ts +0 -2
- package/src/i18n/my.ts +0 -2
- package/src/i18n/ne.ts +0 -2
- package/src/i18n/nl.ts +0 -2
- package/src/i18n/no.ts +0 -2
- package/src/i18n/pa.ts +0 -2
- package/src/i18n/pl.ts +0 -2
- package/src/i18n/ro.ts +0 -2
- package/src/i18n/ru.ts +0 -2
- package/src/i18n/si.ts +0 -2
- package/src/i18n/sk.ts +0 -2
- package/src/i18n/sl.ts +0 -2
- package/src/i18n/sq.ts +0 -2
- package/src/i18n/sr.ts +0 -2
- package/src/i18n/sv.ts +0 -2
- package/src/i18n/tg.ts +0 -2
- package/src/i18n/th.ts +0 -2
- package/src/i18n/tk.ts +0 -2
- package/src/i18n/tr.ts +0 -2
- package/src/i18n/uk.ts +0 -2
- package/src/i18n/ur.ts +0 -2
- package/src/i18n/uz.ts +0 -2
- package/src/i18n/vi.ts +0 -2
- package/src/i18n/zh.ts +0 -2
- package/src/i18n/zht.ts +0 -2
- package/src/{components/icon.tsx → icons/icon/additional-icons.ts} +8 -74
- package/src/icons/icon/icon.css +3 -0
- package/src/{v2/components → icons/icon}/icon.tsx +42 -9
- package/src/{v2/components/divider-v2.tsx → layout/divider/divider.tsx} +3 -3
- package/src/{v2/components/menu-v2.css → navigation/menu/menu.css} +121 -0
- package/src/{v2/components/menu-v2.tsx → navigation/menu/menu.tsx} +96 -32
- package/src/{v2/components/segmented-control-v2.tsx → navigation/segmented-control/segmented-control.tsx} +9 -8
- package/src/{v2/components/tabs-v2.css → navigation/tabs/tabs-current.css} +24 -9
- package/src/{components → navigation/tabs}/tabs.css +39 -229
- package/src/navigation/tabs/tabs.tsx +194 -0
- package/src/{v2/components/dialog-v2.css → overlays/dialog/dialog.css} +3 -0
- package/src/{v2/components/dialog-v2.tsx → overlays/dialog/dialog.tsx} +11 -13
- package/src/{v2/components/tooltip-v2.css → overlays/tooltip/tooltip.css} +26 -0
- package/src/{v2/components/tooltip-v2.tsx → overlays/tooltip/tooltip.tsx} +18 -14
- package/src/styles/index.css +4 -20
- package/src/styles/tailwind/index.css +15 -1
- package/src/{v2/styles → styles/tokens}/theme.css +0 -12
- package/src/theme/context.tsx +19 -11
- package/src/theme/themes/oc-2.json +1 -1
- package/src/{components → typography/text-shimmer}/text-shimmer.css +2 -1
- package/src/{components → typography/text-shimmer}/text-shimmer.tsx +1 -0
- package/src/{v2/components/wordmark-v2.tsx → typography/wordmark/wordmark.tsx} +1 -1
- package/dist/components/avatar.d.ts +0 -9
- package/dist/components/button.d.ts +0 -9
- package/dist/components/dialog.d.ts +0 -12
- package/dist/components/dropdown-menu.d.ts +0 -80
- package/dist/components/icon-button.d.ts +0 -10
- package/dist/components/keybind.d.ts +0 -6
- package/dist/components/radio-group.d.ts +0 -16
- package/dist/components/select.d.ts +0 -21
- package/dist/components/tag.d.ts +0 -5
- package/dist/components/toast.d.ts +0 -56
- package/dist/components/tooltip.d.ts +0 -17
- package/dist/v2/components/accordion-v2.d.ts +0 -26
- package/dist/v2/components/badge-v2.d.ts +0 -6
- package/dist/v2/components/button-v2.d.ts +0 -10
- package/dist/v2/components/checkbox-v2.d.ts +0 -10
- package/dist/v2/components/diff-changes-v2.d.ts +0 -11
- package/dist/v2/components/divider-v2.d.ts +0 -5
- package/dist/v2/components/icon-button-v2.d.ts +0 -11
- package/dist/v2/components/inline-input-v2.d.ts +0 -21
- package/dist/v2/components/keybind-v2.d.ts +0 -7
- package/dist/v2/components/loader-v2.d.ts +0 -3
- package/dist/v2/components/menu-v2.d.ts +0 -52
- package/dist/v2/components/progress-circle-v2.d.ts +0 -8
- package/dist/v2/components/radio-v2.d.ts +0 -16
- package/dist/v2/components/split-button-v2.d.ts +0 -5
- package/dist/v2/components/switch-v2.d.ts +0 -7
- package/dist/v2/components/tabs-v2.d.ts +0 -34
- package/dist/v2/components/text-shimmer-v2.d.ts +0 -9
- package/dist/v2/components/textarea-v2.d.ts +0 -7
- package/dist/v2/components/toast-v2.d.ts +0 -57
- package/dist/v2/components/tooltip-v2.d.ts +0 -13
- package/dist/v2/components/wordmark-v2.d.ts +0 -2
- package/src/components/avatar.css +0 -49
- package/src/components/avatar.tsx +0 -55
- package/src/components/button.css +0 -194
- package/src/components/button.tsx +0 -33
- package/src/components/dialog.css +0 -181
- package/src/components/dialog.tsx +0 -72
- package/src/components/diff-changes.tsx +0 -115
- package/src/components/dropdown-menu.css +0 -135
- package/src/components/dropdown-menu.tsx +0 -308
- package/src/components/icon-button.css +0 -181
- package/src/components/icon-button.tsx +0 -29
- package/src/components/icon.css +0 -39
- package/src/components/keybind.css +0 -18
- package/src/components/keybind.tsx +0 -20
- package/src/components/progress-circle.css +0 -16
- package/src/components/progress-circle.tsx +0 -64
- package/src/components/radio-group.css +0 -187
- package/src/components/radio-group.tsx +0 -83
- package/src/components/select.css +0 -201
- package/src/components/select.tsx +0 -174
- package/src/components/switch.css +0 -136
- package/src/components/switch.tsx +0 -29
- package/src/components/tabs.tsx +0 -126
- package/src/components/tag.css +0 -37
- package/src/components/tag.tsx +0 -22
- package/src/components/toast.css +0 -236
- package/src/components/toast.tsx +0 -185
- package/src/components/tooltip.css +0 -74
- package/src/components/tooltip.tsx +0 -163
- package/src/v2/components/accordion-v2.css +0 -139
- package/src/v2/components/accordion-v2.tsx +0 -86
- package/src/v2/components/checkbox-v2.css +0 -184
- package/src/v2/components/checkbox-v2.tsx +0 -65
- package/src/v2/components/diff-changes-v2.css +0 -26
- package/src/v2/components/icon-button-v2.tsx +0 -37
- package/src/v2/components/inline-input-v2.css +0 -225
- package/src/v2/components/inline-input-v2.tsx +0 -107
- package/src/v2/components/progress-circle-v2.css +0 -13
- package/src/v2/components/progress-circle-v2.tsx +0 -52
- package/src/v2/components/switch-v2.tsx +0 -28
- package/src/v2/components/tabs-v2.tsx +0 -149
- package/src/v2/components/text-shimmer-v2.css +0 -125
- package/src/v2/components/text-shimmer-v2.tsx +0 -63
- /package/dist/{components → forms/inline-input}/inline-input.d.ts +0 -0
- /package/dist/{v2/components → navigation}/tab-state-indicator.d.ts +0 -0
- /package/src/{v2/components/button-v2.css → actions/button/button.css} +0 -0
- /package/src/{v2/components/icon-button-v2.css → actions/icon-button/icon-button.css} +0 -0
- /package/src/{v2/components/avatar-v2.css → data-display/avatar/avatar.css} +0 -0
- /package/src/{v2/components/line-comment-v2.css → data-display/line-comment/line-comment.css} +0 -0
- /package/src/{v2/components/project-avatar-v2.css → data-display/project-avatar/project-avatar.css} +0 -0
- /package/src/{v2/components/loader-v2.css → feedback/loader/loader.css} +0 -0
- /package/src/{v2/components/toast-v2.css → feedback/toast/toast.css} +0 -0
- /package/src/{v2/components/field-v2.css → forms/field/field.css} +0 -0
- /package/src/{components → forms/inline-input}/inline-input.css +0 -0
- /package/src/{components → forms/inline-input}/inline-input.tsx +0 -0
- /package/src/{v2/components/radio-v2.css → forms/radio/radio.css} +0 -0
- /package/src/{v2/components/text-input-v2.css → forms/text-input/text-input.css} +0 -0
- /package/src/{v2/components/textarea-v2.css → forms/textarea/textarea.css} +0 -0
- /package/src/{v2/components/divider-v2.css → layout/divider/divider.css} +0 -0
- /package/src/{v2/components/segmented-control-v2.css → navigation/segmented-control/segmented-control.css} +0 -0
- /package/src/{v2/components → navigation}/tab-state-indicator.tsx +0 -0
- /package/src/{v2/components/file-tree-v2.css → styles/file-tree.css} +0 -0
- /package/src/{v2/styles → styles/tokens}/colors.css +0 -0
- /package/src/{v2/styles/tailwind.css → styles/tokens/index.css} +0 -0
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
[data-component="accordion-v2"] {
|
|
2
|
-
--accordion-v2-fg: var(--v2-text-text-base);
|
|
3
|
-
--accordion-v2-icon: var(--v2-icon-icon-base);
|
|
4
|
-
--accordion-v2-border: var(--v2-border-border-strong);
|
|
5
|
-
--accordion-v2-bg: var(--v2-background-bg-base);
|
|
6
|
-
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
align-items: stretch;
|
|
11
|
-
|
|
12
|
-
width: 100%;
|
|
13
|
-
background: var(--accordion-v2-bg);
|
|
14
|
-
border-radius: 6px;
|
|
15
|
-
box-shadow: 0 0 0 0.5px var(--accordion-v2-border);
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
|
|
18
|
-
color: var(--accordion-v2-fg);
|
|
19
|
-
|
|
20
|
-
-webkit-font-smoothing: antialiased;
|
|
21
|
-
-moz-osx-font-smoothing: grayscale;
|
|
22
|
-
text-rendering: geometricPrecision;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[data-component="accordion-v2-item"] {
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
align-items: stretch;
|
|
30
|
-
width: 100%;
|
|
31
|
-
background: var(--accordion-v2-bg);
|
|
32
|
-
box-shadow: inset 0 -0.5px 0 var(--accordion-v2-border);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[data-component="accordion-v2-item"]:last-child {
|
|
36
|
-
box-shadow: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[data-slot="accordion-v2-header"] {
|
|
40
|
-
display: flex;
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[data-component="accordion-v2-trigger"] {
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 4px;
|
|
50
|
-
|
|
51
|
-
width: 100%;
|
|
52
|
-
min-height: 30px;
|
|
53
|
-
padding: 0 12px;
|
|
54
|
-
|
|
55
|
-
background: transparent;
|
|
56
|
-
border: 0;
|
|
57
|
-
outline: none;
|
|
58
|
-
cursor: default;
|
|
59
|
-
user-select: none;
|
|
60
|
-
|
|
61
|
-
font-size: 13px;
|
|
62
|
-
font-weight: 440;
|
|
63
|
-
line-height: 100%;
|
|
64
|
-
letter-spacing: -0.04px;
|
|
65
|
-
color: var(--accordion-v2-fg);
|
|
66
|
-
text-align: left;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[data-component="accordion-v2-trigger"] [data-slot="accordion-v2-trigger-content"] {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex: 1 1 auto;
|
|
72
|
-
flex-direction: row;
|
|
73
|
-
align-items: center;
|
|
74
|
-
gap: 8px;
|
|
75
|
-
min-width: 0;
|
|
76
|
-
height: 30px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[data-component="accordion-v2-trigger"] [data-slot="accordion-v2-chevron"] {
|
|
80
|
-
flex: none;
|
|
81
|
-
width: 14px;
|
|
82
|
-
height: 14px;
|
|
83
|
-
color: var(--accordion-v2-icon);
|
|
84
|
-
transition: transform 150ms ease;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
[data-component="accordion-v2-trigger"][data-expanded] [data-slot="accordion-v2-chevron"] {
|
|
88
|
-
transform: rotate(180deg);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[data-component="accordion-v2-item"][data-expanded] [data-component="accordion-v2-trigger"] {
|
|
92
|
-
box-shadow: inset 0 -0.5px 0 var(--accordion-v2-border);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
[data-component="accordion-v2-trigger"][data-disabled] {
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
opacity: 0.5;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[data-component="accordion-v2-content"] {
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
font-size: 13px;
|
|
103
|
-
line-height: 140%;
|
|
104
|
-
color: var(--accordion-v2-fg);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[data-component="accordion-v2-content"][data-expanded] {
|
|
108
|
-
animation: accordion-v2-down 180ms ease-out;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[data-component="accordion-v2-content"][data-closed] {
|
|
112
|
-
animation: accordion-v2-up 180ms ease-out;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
[data-component="accordion-v2-content"] [data-slot="accordion-v2-content-inner"] {
|
|
116
|
-
display: flex;
|
|
117
|
-
flex-direction: row;
|
|
118
|
-
align-items: flex-start;
|
|
119
|
-
width: 100%;
|
|
120
|
-
padding: 12px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@keyframes accordion-v2-down {
|
|
124
|
-
from {
|
|
125
|
-
height: 0;
|
|
126
|
-
}
|
|
127
|
-
to {
|
|
128
|
-
height: var(--kb-collapsible-content-height);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@keyframes accordion-v2-up {
|
|
133
|
-
from {
|
|
134
|
-
height: var(--kb-collapsible-content-height);
|
|
135
|
-
}
|
|
136
|
-
to {
|
|
137
|
-
height: 0;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Accordion as Kobalte } from "@kobalte/core/accordion"
|
|
2
|
-
import { Show, splitProps, type Component, type ComponentProps, type ParentProps } from "solid-js"
|
|
3
|
-
import "./accordion-v2.css"
|
|
4
|
-
|
|
5
|
-
const ChevronDown: Component = () => (
|
|
6
|
-
<svg
|
|
7
|
-
data-slot="accordion-v2-chevron"
|
|
8
|
-
width="14"
|
|
9
|
-
height="14"
|
|
10
|
-
viewBox="0 0 14 14"
|
|
11
|
-
fill="none"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
aria-hidden="true"
|
|
14
|
-
>
|
|
15
|
-
<path d="M4 5.5L7 8.5L10 5.5" stroke="currentColor" />
|
|
16
|
-
</svg>
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
export interface AccordionV2Props extends ComponentProps<typeof Kobalte> {}
|
|
20
|
-
export interface AccordionV2ItemProps extends ComponentProps<typeof Kobalte.Item> {}
|
|
21
|
-
export interface AccordionV2HeaderProps extends ComponentProps<typeof Kobalte.Header> {}
|
|
22
|
-
export interface AccordionV2TriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
23
|
-
hideChevron?: boolean
|
|
24
|
-
}
|
|
25
|
-
export interface AccordionV2ContentProps extends ComponentProps<typeof Kobalte.Content> {}
|
|
26
|
-
|
|
27
|
-
function AccordionV2Root(props: ParentProps<AccordionV2Props>) {
|
|
28
|
-
const [s, r] = splitProps(props, ["class", "classList"])
|
|
29
|
-
return <Kobalte {...r} data-component="accordion-v2" classList={{ ...s.classList, [s.class ?? ""]: !!s.class }} />
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function AccordionV2Item(props: ParentProps<AccordionV2ItemProps>) {
|
|
33
|
-
const [s, r] = splitProps(props, ["class", "classList"])
|
|
34
|
-
return (
|
|
35
|
-
<Kobalte.Item
|
|
36
|
-
{...r}
|
|
37
|
-
data-component="accordion-v2-item"
|
|
38
|
-
classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
|
|
39
|
-
/>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function AccordionV2Header(props: ParentProps<AccordionV2HeaderProps>) {
|
|
44
|
-
const [s, r] = splitProps(props, ["class", "classList", "children"])
|
|
45
|
-
return (
|
|
46
|
-
<Kobalte.Header {...r} data-slot="accordion-v2-header" classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}>
|
|
47
|
-
{s.children}
|
|
48
|
-
</Kobalte.Header>
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function AccordionV2Trigger(props: ParentProps<AccordionV2TriggerProps>) {
|
|
53
|
-
const [s, r] = splitProps(props, ["class", "classList", "children", "hideChevron"])
|
|
54
|
-
return (
|
|
55
|
-
<Kobalte.Trigger
|
|
56
|
-
{...r}
|
|
57
|
-
data-component="accordion-v2-trigger"
|
|
58
|
-
classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
|
|
59
|
-
>
|
|
60
|
-
<span data-slot="accordion-v2-trigger-content">{s.children}</span>
|
|
61
|
-
<Show when={!s.hideChevron}>
|
|
62
|
-
<ChevronDown />
|
|
63
|
-
</Show>
|
|
64
|
-
</Kobalte.Trigger>
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function AccordionV2Content(props: ParentProps<AccordionV2ContentProps>) {
|
|
69
|
-
const [s, r] = splitProps(props, ["class", "classList", "children"])
|
|
70
|
-
return (
|
|
71
|
-
<Kobalte.Content
|
|
72
|
-
{...r}
|
|
73
|
-
data-component="accordion-v2-content"
|
|
74
|
-
classList={{ ...s.classList, [s.class ?? ""]: !!s.class }}
|
|
75
|
-
>
|
|
76
|
-
<div data-slot="accordion-v2-content-inner">{s.children}</div>
|
|
77
|
-
</Kobalte.Content>
|
|
78
|
-
)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export const AccordionV2 = Object.assign(AccordionV2Root, {
|
|
82
|
-
Item: AccordionV2Item,
|
|
83
|
-
Header: AccordionV2Header,
|
|
84
|
-
Trigger: AccordionV2Trigger,
|
|
85
|
-
Content: AccordionV2Content,
|
|
86
|
-
})
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
[data-slot="checkbox-v2"] {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 6px;
|
|
5
|
-
cursor: default;
|
|
6
|
-
|
|
7
|
-
&:where([data-disabled]) {
|
|
8
|
-
cursor: not-allowed;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
[data-slot="checkbox-v2-error"] {
|
|
12
|
-
color: var(--v2-state-fg-danger);
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
font-weight: var(--font-weight-regular);
|
|
15
|
-
line-height: var(--line-height-normal);
|
|
16
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-slot="checkbox-v2-error"]:empty {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[data-slot="checkbox-v2-row"] {
|
|
25
|
-
position: relative;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
align-items: flex-start;
|
|
29
|
-
padding: 0px;
|
|
30
|
-
gap: 8px;
|
|
31
|
-
|
|
32
|
-
[data-slot="checkbox-v2-input"] {
|
|
33
|
-
position: absolute;
|
|
34
|
-
width: 1px;
|
|
35
|
-
height: 1px;
|
|
36
|
-
padding: 0;
|
|
37
|
-
margin: -1px;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
clip: rect(0, 0, 0, 0);
|
|
40
|
-
white-space: nowrap;
|
|
41
|
-
border-width: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[data-slot="checkbox-v2-control-stack"] {
|
|
45
|
-
position: relative;
|
|
46
|
-
width: 16px;
|
|
47
|
-
height: 20px;
|
|
48
|
-
flex: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
[data-slot="checkbox-v2-control"] {
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
position: absolute;
|
|
54
|
-
width: 16px;
|
|
55
|
-
height: 16px;
|
|
56
|
-
flex: none;
|
|
57
|
-
flex-shrink: 0;
|
|
58
|
-
left: 0;
|
|
59
|
-
top: calc(50% - 16px / 2);
|
|
60
|
-
border-radius: 4px;
|
|
61
|
-
border: none;
|
|
62
|
-
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-strong);
|
|
63
|
-
|
|
64
|
-
background:
|
|
65
|
-
linear-gradient(180deg, var(--v2-alpha-light-6) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
66
|
-
transition:
|
|
67
|
-
background 170ms ease-out,
|
|
68
|
-
opacity 170ms ease-out,
|
|
69
|
-
outline-color 170ms ease-out;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
[data-slot="checkbox-v2-indicator"] {
|
|
73
|
-
position: absolute;
|
|
74
|
-
inset: 0;
|
|
75
|
-
width: 16px;
|
|
76
|
-
height: 16px;
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
[data-slot="checkbox-v2-text"] {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
align-items: flex-start;
|
|
85
|
-
padding: 0px;
|
|
86
|
-
gap: 6px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[data-slot="checkbox-v2-label"] {
|
|
90
|
-
display: inline-flex;
|
|
91
|
-
user-select: none;
|
|
92
|
-
color: inherit;
|
|
93
|
-
font-style: normal;
|
|
94
|
-
font-weight: 440;
|
|
95
|
-
font-variant-numeric: tabular-nums;
|
|
96
|
-
font-variation-settings: "slnt" 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
[data-slot="checkbox-v2-label-text"] {
|
|
100
|
-
display: inline-flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
user-select: none;
|
|
103
|
-
color: var(--v2-text-text-base);
|
|
104
|
-
font-size: 13px;
|
|
105
|
-
line-height: 20px;
|
|
106
|
-
letter-spacing: -0.04px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
[data-slot="checkbox-v2-description"] {
|
|
110
|
-
color: var(--v2-text-text-muted);
|
|
111
|
-
font-size: 11px;
|
|
112
|
-
font-weight: 440;
|
|
113
|
-
line-height: 1;
|
|
114
|
-
letter-spacing: 0.05px;
|
|
115
|
-
font-variant-numeric: tabular-nums;
|
|
116
|
-
user-select: none;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
[data-slot="checkbox-v2"]:where(:not([data-readonly]))
|
|
121
|
-
[data-slot="checkbox-v2-input"]:focus-visible
|
|
122
|
-
~ [data-slot="checkbox-v2-control-stack"]
|
|
123
|
-
[data-slot="checkbox-v2-control"] {
|
|
124
|
-
outline: 2px solid var(--v2-border-border-focus);
|
|
125
|
-
outline-offset: 1px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
[data-slot="checkbox-v2"]:where(:hover):where(:not([data-disabled], [data-readonly], [data-invalid])):where(
|
|
129
|
-
:not([data-checked], [data-indeterminate])
|
|
130
|
-
)
|
|
131
|
-
[data-slot="checkbox-v2-control"] {
|
|
132
|
-
background:
|
|
133
|
-
linear-gradient(0deg, var(--v2-overlay-simple-overlay-hover), var(--v2-overlay-simple-overlay-hover)),
|
|
134
|
-
linear-gradient(180deg, var(--v2-alpha-light-6) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
[data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-control"] {
|
|
138
|
-
opacity: 0.5;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
[data-slot="checkbox-v2"]:where([data-checked], [data-indeterminate]) [data-slot="checkbox-v2-control"] {
|
|
142
|
-
background:
|
|
143
|
-
linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-accent);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
[data-slot="checkbox-v2"]:where([data-checked], [data-indeterminate]):where(:hover):where(
|
|
147
|
-
:not([data-disabled], [data-readonly])
|
|
148
|
-
)
|
|
149
|
-
[data-slot="checkbox-v2-control"] {
|
|
150
|
-
background:
|
|
151
|
-
linear-gradient(
|
|
152
|
-
0deg,
|
|
153
|
-
var(--v2-overlay-simple-overlay-contrast-hover),
|
|
154
|
-
var(--v2-overlay-simple-overlay-contrast-hover)
|
|
155
|
-
),
|
|
156
|
-
linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-accent);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
[data-slot="checkbox-v2"]:where([data-invalid]):where(:not([data-checked], [data-indeterminate]))
|
|
160
|
-
[data-slot="checkbox-v2-control"] {
|
|
161
|
-
background: var(--v2-state-bg-danger);
|
|
162
|
-
box-shadow: inset 0 0 0 0.5px var(--v2-state-border-danger);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
[data-slot="checkbox-v2"] .checkbox-v2-icon {
|
|
166
|
-
position: absolute;
|
|
167
|
-
left: 50%;
|
|
168
|
-
top: 50%;
|
|
169
|
-
transform: translate(-50%, -50%);
|
|
170
|
-
display: none;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
[data-slot="checkbox-v2"]:where([data-checked]):where(:not([data-indeterminate])) .checkbox-v2-icon--check {
|
|
174
|
-
display: block;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
[data-slot="checkbox-v2"]:where([data-indeterminate]) .checkbox-v2-icon--minus {
|
|
178
|
-
display: block;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
[data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-label"],
|
|
182
|
-
[data-slot="checkbox-v2"]:where([data-disabled]) [data-slot="checkbox-v2-description"] {
|
|
183
|
-
opacity: 0.5;
|
|
184
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Checkbox as Kobalte } from "@kobalte/core/checkbox"
|
|
2
|
-
import { Show, splitProps, type JSX } from "solid-js"
|
|
3
|
-
import type { ComponentProps } from "solid-js"
|
|
4
|
-
import "./checkbox-v2.css"
|
|
5
|
-
|
|
6
|
-
export interface CheckboxV2Props extends ComponentProps<typeof Kobalte> {
|
|
7
|
-
label: JSX.Element
|
|
8
|
-
description?: JSX.Element
|
|
9
|
-
hideLabel?: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function CheckboxV2(props: CheckboxV2Props) {
|
|
13
|
-
const [local, others] = splitProps(props, ["class", "classList", "label", "description", "hideLabel"])
|
|
14
|
-
return (
|
|
15
|
-
<Kobalte
|
|
16
|
-
{...others}
|
|
17
|
-
data-slot="checkbox-v2"
|
|
18
|
-
classList={{
|
|
19
|
-
...local.classList,
|
|
20
|
-
[local.class ?? ""]: !!local.class,
|
|
21
|
-
}}
|
|
22
|
-
>
|
|
23
|
-
<div data-slot="checkbox-v2-row">
|
|
24
|
-
<Kobalte.Input data-slot="checkbox-v2-input" />
|
|
25
|
-
<div data-slot="checkbox-v2-control-stack">
|
|
26
|
-
<Kobalte.Control data-slot="checkbox-v2-control">
|
|
27
|
-
<Kobalte.Indicator data-slot="checkbox-v2-indicator">
|
|
28
|
-
<svg
|
|
29
|
-
class="checkbox-v2-icon checkbox-v2-icon--check"
|
|
30
|
-
width="16"
|
|
31
|
-
height="16"
|
|
32
|
-
viewBox="0 0 16 16"
|
|
33
|
-
fill="none"
|
|
34
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
-
aria-hidden="true"
|
|
36
|
-
>
|
|
37
|
-
<path d="M3.53564 8.17857L6.39279 11.75L12.4642 4.25" stroke="#FAFAFA" stroke-width="1" />
|
|
38
|
-
</svg>
|
|
39
|
-
<svg
|
|
40
|
-
class="checkbox-v2-icon checkbox-v2-icon--minus"
|
|
41
|
-
width="16"
|
|
42
|
-
height="16"
|
|
43
|
-
viewBox="0 0 16 16"
|
|
44
|
-
fill="none"
|
|
45
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
>
|
|
48
|
-
<path d="M12.75 8H3.25" stroke="#FAFAFA" stroke-linejoin="round" stroke-width="1" />
|
|
49
|
-
</svg>
|
|
50
|
-
</Kobalte.Indicator>
|
|
51
|
-
</Kobalte.Control>
|
|
52
|
-
</div>
|
|
53
|
-
<Kobalte.Label data-slot="checkbox-v2-label" classList={{ "sr-only": local.hideLabel }}>
|
|
54
|
-
<div data-slot="checkbox-v2-text">
|
|
55
|
-
<span data-slot="checkbox-v2-label-text">{local.label}</span>
|
|
56
|
-
<Show when={local.description}>
|
|
57
|
-
{(description) => <span data-slot="checkbox-v2-description">{description()}</span>}
|
|
58
|
-
</Show>
|
|
59
|
-
</div>
|
|
60
|
-
</Kobalte.Label>
|
|
61
|
-
</div>
|
|
62
|
-
<Kobalte.ErrorMessage data-slot="checkbox-v2-error" />
|
|
63
|
-
</Kobalte>
|
|
64
|
-
)
|
|
65
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
[data-component="diff-changes"] {
|
|
2
|
-
display: flex;
|
|
3
|
-
direction: ltr;
|
|
4
|
-
unicode-bidi: isolate;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
justify-content: flex-end;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
[data-slot="diff-changes-additions"],
|
|
10
|
-
[data-slot="diff-changes-deletions"] {
|
|
11
|
-
font-size: 11px;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
font-weight: 440;
|
|
14
|
-
line-height: 1;
|
|
15
|
-
letter-spacing: 0.05px;
|
|
16
|
-
text-align: right;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-slot="diff-changes-additions"] {
|
|
20
|
-
color: var(--v2-state-fg-success);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[data-slot="diff-changes-deletions"] {
|
|
24
|
-
color: var(--v2-state-fg-danger);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Button as Kobalte } from "@kobalte/core/button"
|
|
2
|
-
import { type ComponentProps, splitProps } from "solid-js"
|
|
3
|
-
import { JSX } from "solid-js"
|
|
4
|
-
import "./icon-button-v2.css"
|
|
5
|
-
|
|
6
|
-
export interface IconButtonV2Props
|
|
7
|
-
extends ComponentProps<typeof Kobalte>,
|
|
8
|
-
Pick<ComponentProps<"button">, "class" | "classList"> {
|
|
9
|
-
// temporary
|
|
10
|
-
icon?: JSX.Element
|
|
11
|
-
// icon: IconProps["name"]
|
|
12
|
-
size?: "small" | "normal" | "large"
|
|
13
|
-
// iconSize?: IconProps["size"]
|
|
14
|
-
variant?: "neutral" | "contrast" | "ghost" | "ghost-muted"
|
|
15
|
-
state?: "rest" | "hover" | "pressed"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function IconButtonV2(props: ComponentProps<"button"> & IconButtonV2Props) {
|
|
19
|
-
const [split, rest] = splitProps(props, ["variant", "size", "iconSize", "class", "classList", "state"])
|
|
20
|
-
return (
|
|
21
|
-
<Kobalte
|
|
22
|
-
{...rest}
|
|
23
|
-
data-component="icon-button-v2"
|
|
24
|
-
// data-icon={props.icon}
|
|
25
|
-
data-size={split.size || "normal"}
|
|
26
|
-
data-variant={split.variant || "neutral"}
|
|
27
|
-
data-state={split.state}
|
|
28
|
-
classList={{
|
|
29
|
-
...split.classList,
|
|
30
|
-
[split.class ?? ""]: !!split.class,
|
|
31
|
-
}}
|
|
32
|
-
>
|
|
33
|
-
{props.icon}
|
|
34
|
-
{/*<Icon name={props.icon} size={split.iconSize ?? (split.size === "large" ? "normal" : "small")} />*/}
|
|
35
|
-
</Kobalte>
|
|
36
|
-
)
|
|
37
|
-
}
|