@opencode-ai/ui 0.0.0-beta-202606251302
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/LICENSE +21 -0
- package/package.json +110 -0
- package/src/assets/audio/alert-01.aac +0 -0
- package/src/assets/audio/alert-01.mp3 +0 -0
- package/src/assets/audio/alert-02.aac +0 -0
- package/src/assets/audio/alert-02.mp3 +0 -0
- package/src/assets/audio/alert-03.aac +0 -0
- package/src/assets/audio/alert-03.mp3 +0 -0
- package/src/assets/audio/alert-04.aac +0 -0
- package/src/assets/audio/alert-04.mp3 +0 -0
- package/src/assets/audio/alert-05.aac +0 -0
- package/src/assets/audio/alert-05.mp3 +0 -0
- package/src/assets/audio/alert-06.aac +0 -0
- package/src/assets/audio/alert-06.mp3 +0 -0
- package/src/assets/audio/alert-07.aac +0 -0
- package/src/assets/audio/alert-07.mp3 +0 -0
- package/src/assets/audio/alert-08.aac +0 -0
- package/src/assets/audio/alert-08.mp3 +0 -0
- package/src/assets/audio/alert-09.aac +0 -0
- package/src/assets/audio/alert-09.mp3 +0 -0
- package/src/assets/audio/alert-10.aac +0 -0
- package/src/assets/audio/alert-10.mp3 +0 -0
- package/src/assets/audio/bip-bop-01.aac +0 -0
- package/src/assets/audio/bip-bop-01.mp3 +0 -0
- package/src/assets/audio/bip-bop-02.aac +0 -0
- package/src/assets/audio/bip-bop-02.mp3 +0 -0
- package/src/assets/audio/bip-bop-03.aac +0 -0
- package/src/assets/audio/bip-bop-03.mp3 +0 -0
- package/src/assets/audio/bip-bop-04.aac +0 -0
- package/src/assets/audio/bip-bop-04.mp3 +0 -0
- package/src/assets/audio/bip-bop-05.aac +0 -0
- package/src/assets/audio/bip-bop-05.mp3 +0 -0
- package/src/assets/audio/bip-bop-06.aac +0 -0
- package/src/assets/audio/bip-bop-06.mp3 +0 -0
- package/src/assets/audio/bip-bop-07.aac +0 -0
- package/src/assets/audio/bip-bop-07.mp3 +0 -0
- package/src/assets/audio/bip-bop-08.aac +0 -0
- package/src/assets/audio/bip-bop-08.mp3 +0 -0
- package/src/assets/audio/bip-bop-09.aac +0 -0
- package/src/assets/audio/bip-bop-09.mp3 +0 -0
- package/src/assets/audio/bip-bop-10.aac +0 -0
- package/src/assets/audio/bip-bop-10.mp3 +0 -0
- package/src/assets/audio/nope-01.aac +0 -0
- package/src/assets/audio/nope-01.mp3 +0 -0
- package/src/assets/audio/nope-02.aac +0 -0
- package/src/assets/audio/nope-02.mp3 +0 -0
- package/src/assets/audio/nope-03.aac +0 -0
- package/src/assets/audio/nope-03.mp3 +0 -0
- package/src/assets/audio/nope-04.aac +0 -0
- package/src/assets/audio/nope-04.mp3 +0 -0
- package/src/assets/audio/nope-05.aac +0 -0
- package/src/assets/audio/nope-05.mp3 +0 -0
- package/src/assets/audio/nope-06.aac +0 -0
- package/src/assets/audio/nope-06.mp3 +0 -0
- package/src/assets/audio/nope-07.aac +0 -0
- package/src/assets/audio/nope-07.mp3 +0 -0
- package/src/assets/audio/nope-08.aac +0 -0
- package/src/assets/audio/nope-08.mp3 +0 -0
- package/src/assets/audio/nope-09.aac +0 -0
- package/src/assets/audio/nope-09.mp3 +0 -0
- package/src/assets/audio/nope-10.aac +0 -0
- package/src/assets/audio/nope-10.mp3 +0 -0
- package/src/assets/audio/nope-11.aac +0 -0
- package/src/assets/audio/nope-11.mp3 +0 -0
- package/src/assets/audio/nope-12.aac +0 -0
- package/src/assets/audio/nope-12.mp3 +0 -0
- package/src/assets/audio/staplebops-01.aac +0 -0
- package/src/assets/audio/staplebops-01.mp3 +0 -0
- package/src/assets/audio/staplebops-02.aac +0 -0
- package/src/assets/audio/staplebops-02.mp3 +0 -0
- package/src/assets/audio/staplebops-03.aac +0 -0
- package/src/assets/audio/staplebops-03.mp3 +0 -0
- package/src/assets/audio/staplebops-04.aac +0 -0
- package/src/assets/audio/staplebops-04.mp3 +0 -0
- package/src/assets/audio/staplebops-05.aac +0 -0
- package/src/assets/audio/staplebops-05.mp3 +0 -0
- package/src/assets/audio/staplebops-06.aac +0 -0
- package/src/assets/audio/staplebops-06.mp3 +0 -0
- package/src/assets/audio/staplebops-07.aac +0 -0
- package/src/assets/audio/staplebops-07.mp3 +0 -0
- package/src/assets/audio/yup-01.aac +0 -0
- package/src/assets/audio/yup-01.mp3 +0 -0
- package/src/assets/audio/yup-02.aac +0 -0
- package/src/assets/audio/yup-02.mp3 +0 -0
- package/src/assets/audio/yup-03.aac +0 -0
- package/src/assets/audio/yup-03.mp3 +0 -0
- package/src/assets/audio/yup-04.aac +0 -0
- package/src/assets/audio/yup-04.mp3 +0 -0
- package/src/assets/audio/yup-05.aac +0 -0
- package/src/assets/audio/yup-05.mp3 +0 -0
- package/src/assets/audio/yup-06.aac +0 -0
- package/src/assets/audio/yup-06.mp3 +0 -0
- package/src/assets/fonts/Inter.ttf +0 -0
- package/src/assets/fonts/JetBrainsMonoNerdFontMono-Regular.woff2 +0 -0
- package/src/assets/icons/app/android-studio.svg +369 -0
- package/src/assets/icons/app/antigravity.svg +97 -0
- package/src/assets/icons/app/cursor.svg +16 -0
- package/src/assets/icons/app/file-explorer.svg +20 -0
- package/src/assets/icons/app/finder.png +0 -0
- package/src/assets/icons/app/ghostty.svg +13 -0
- package/src/assets/icons/app/iterm2.svg +13 -0
- package/src/assets/icons/app/powershell.svg +14 -0
- package/src/assets/icons/app/sublimetext.svg +17 -0
- package/src/assets/icons/app/terminal.png +0 -0
- package/src/assets/icons/app/textmate.png +0 -0
- package/src/assets/icons/app/vscode.svg +39 -0
- package/src/assets/icons/app/warp.png +0 -0
- package/src/assets/icons/app/xcode.png +0 -0
- package/src/assets/icons/app/zed-dark.svg +15 -0
- package/src/assets/icons/app/zed.svg +15 -0
- package/src/components/accordion.css +123 -0
- package/src/components/accordion.tsx +92 -0
- package/src/components/animated-number.css +75 -0
- package/src/components/animated-number.tsx +109 -0
- package/src/components/app-icon.css +5 -0
- package/src/components/app-icon.tsx +85 -0
- package/src/components/app-icons/sprite.svg +114 -0
- package/src/components/app-icons/types.ts +21 -0
- package/src/components/avatar.css +49 -0
- package/src/components/avatar.tsx +55 -0
- package/src/components/button.css +194 -0
- package/src/components/button.tsx +33 -0
- package/src/components/card.css +94 -0
- package/src/components/card.tsx +123 -0
- package/src/components/checkbox.css +131 -0
- package/src/components/checkbox.tsx +43 -0
- package/src/components/collapsible.css +148 -0
- package/src/components/collapsible.tsx +48 -0
- package/src/components/context-menu.css +134 -0
- package/src/components/context-menu.tsx +308 -0
- package/src/components/dialog.css +181 -0
- package/src/components/dialog.tsx +72 -0
- package/src/components/diff-changes.css +42 -0
- package/src/components/diff-changes.tsx +115 -0
- package/src/components/dock-surface.css +23 -0
- package/src/components/dock-surface.tsx +54 -0
- package/src/components/dropdown-menu.css +135 -0
- package/src/components/dropdown-menu.tsx +308 -0
- package/src/components/favicon.tsx +13 -0
- package/src/components/file-icon.css +26 -0
- package/src/components/file-icon.tsx +588 -0
- package/src/components/file-icons/sprite.svg +11707 -0
- package/src/components/file-icons/types.ts +1095 -0
- package/src/components/font.tsx +1 -0
- package/src/components/hover-card.css +61 -0
- package/src/components/hover-card.tsx +32 -0
- package/src/components/icon-button.css +181 -0
- package/src/components/icon-button.tsx +29 -0
- package/src/components/icon.css +34 -0
- package/src/components/icon.tsx +169 -0
- package/src/components/image-preview.css +63 -0
- package/src/components/image-preview.tsx +32 -0
- package/src/components/inline-input.css +17 -0
- package/src/components/inline-input.tsx +22 -0
- package/src/components/keybind.css +18 -0
- package/src/components/keybind.tsx +20 -0
- package/src/components/list.css +331 -0
- package/src/components/list.tsx +394 -0
- package/src/components/logo.css +4 -0
- package/src/components/logo.tsx +62 -0
- package/src/components/motion-spring.tsx +58 -0
- package/src/components/popover.css +98 -0
- package/src/components/popover.tsx +153 -0
- package/src/components/progress-circle.css +12 -0
- package/src/components/progress-circle.tsx +57 -0
- package/src/components/progress.css +63 -0
- package/src/components/progress.tsx +39 -0
- package/src/components/provider-icon.css +5 -0
- package/src/components/provider-icon.tsx +25 -0
- package/src/components/provider-icons/sprite.svg +1135 -0
- package/src/components/provider-icons/types.ts +105 -0
- package/src/components/radio-group.css +187 -0
- package/src/components/radio-group.tsx +83 -0
- package/src/components/resize-handle.css +58 -0
- package/src/components/resize-handle.tsx +82 -0
- package/src/components/scroll-view.css +66 -0
- package/src/components/scroll-view.tsx +250 -0
- package/src/components/select.css +202 -0
- package/src/components/select.tsx +174 -0
- package/src/components/spinner.css +6 -0
- package/src/components/spinner.tsx +52 -0
- package/src/components/sticky-accordion-header.css +6 -0
- package/src/components/sticky-accordion-header.tsx +18 -0
- package/src/components/switch.css +132 -0
- package/src/components/switch.tsx +29 -0
- package/src/components/tabs.css +635 -0
- package/src/components/tabs.tsx +125 -0
- package/src/components/tag.css +37 -0
- package/src/components/tag.tsx +22 -0
- package/src/components/text-field.css +134 -0
- package/src/components/text-field.tsx +128 -0
- package/src/components/text-reveal.css +150 -0
- package/src/components/text-reveal.tsx +143 -0
- package/src/components/text-shimmer.css +119 -0
- package/src/components/text-shimmer.tsx +62 -0
- package/src/components/text-strikethrough.css +27 -0
- package/src/components/text-strikethrough.tsx +84 -0
- 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 +161 -0
- package/src/components/typewriter.css +14 -0
- package/src/components/typewriter.tsx +55 -0
- package/src/context/dialog.tsx +197 -0
- package/src/context/file.tsx +10 -0
- package/src/context/helper.tsx +38 -0
- package/src/context/i18n.tsx +38 -0
- package/src/context/index.ts +4 -0
- package/src/context/marked.tsx +522 -0
- package/src/context/worker-pool.tsx +20 -0
- package/src/custom-elements.d.ts +17 -0
- package/src/hooks/create-auto-scroll.tsx +237 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/use-filtered-list.tsx +134 -0
- package/src/i18n/ar.ts +168 -0
- package/src/i18n/br.ts +168 -0
- package/src/i18n/bs.ts +172 -0
- package/src/i18n/da.ts +167 -0
- package/src/i18n/de.ts +173 -0
- package/src/i18n/en.ts +176 -0
- package/src/i18n/es.ts +168 -0
- package/src/i18n/fr.ts +168 -0
- package/src/i18n/ja.ts +167 -0
- package/src/i18n/ko.ts +168 -0
- package/src/i18n/no.ts +171 -0
- package/src/i18n/pl.ts +167 -0
- package/src/i18n/ru.ts +167 -0
- package/src/i18n/th.ts +169 -0
- package/src/i18n/tr.ts +174 -0
- package/src/i18n/uk.ts +167 -0
- package/src/i18n/zh.ts +171 -0
- package/src/i18n/zht.ts +171 -0
- package/src/storybook/fixtures.ts +51 -0
- package/src/storybook/scaffold.tsx +62 -0
- package/src/styles/animations.css +141 -0
- package/src/styles/base.css +404 -0
- package/src/styles/colors.css +772 -0
- package/src/styles/index.css +53 -0
- package/src/styles/tailwind/colors.css +285 -0
- package/src/styles/tailwind/index.css +78 -0
- package/src/styles/tailwind/utilities.css +131 -0
- package/src/styles/theme.css +609 -0
- package/src/styles/utilities.css +118 -0
- package/src/theme/color.ts +299 -0
- package/src/theme/context.tsx +370 -0
- package/src/theme/default-themes.ts +116 -0
- package/src/theme/index.ts +78 -0
- package/src/theme/loader.ts +112 -0
- package/src/theme/resolve.ts +540 -0
- package/src/theme/themes/amoled.json +49 -0
- package/src/theme/themes/aura.json +51 -0
- package/src/theme/themes/ayu.json +51 -0
- package/src/theme/themes/carbonfox.json +53 -0
- package/src/theme/themes/catppuccin-frappe.json +85 -0
- package/src/theme/themes/catppuccin-macchiato.json +85 -0
- package/src/theme/themes/catppuccin.json +45 -0
- package/src/theme/themes/cobalt2.json +87 -0
- package/src/theme/themes/cursor.json +91 -0
- package/src/theme/themes/dracula.json +49 -0
- package/src/theme/themes/everforest.json +89 -0
- package/src/theme/themes/flexoki.json +86 -0
- package/src/theme/themes/github.json +85 -0
- package/src/theme/themes/gruvbox.json +45 -0
- package/src/theme/themes/kanagawa.json +89 -0
- package/src/theme/themes/lucent-orng.json +87 -0
- package/src/theme/themes/material.json +87 -0
- package/src/theme/themes/matrix.json +113 -0
- package/src/theme/themes/mercury.json +86 -0
- package/src/theme/themes/monokai.json +49 -0
- package/src/theme/themes/nightowl.json +46 -0
- package/src/theme/themes/nord.json +46 -0
- package/src/theme/themes/oc-2.json +468 -0
- package/src/theme/themes/one-dark.json +89 -0
- package/src/theme/themes/onedarkpro.json +45 -0
- package/src/theme/themes/opencode.json +89 -0
- package/src/theme/themes/orng.json +87 -0
- package/src/theme/themes/osaka-jade.json +88 -0
- package/src/theme/themes/palenight.json +85 -0
- package/src/theme/themes/rosepine.json +85 -0
- package/src/theme/themes/shadesofpurple.json +51 -0
- package/src/theme/themes/solarized.json +49 -0
- package/src/theme/themes/synthwave84.json +87 -0
- package/src/theme/themes/tokyonight.json +47 -0
- package/src/theme/themes/vercel.json +90 -0
- package/src/theme/themes/vesper.json +51 -0
- package/src/theme/themes/zenburn.json +87 -0
- package/src/theme/types.ts +75 -0
- package/src/theme/v2/avatar.ts +48 -0
- package/src/theme/v2/default-primitives.ts +114 -0
- package/src/theme/v2/foreground.ts +60 -0
- package/src/theme/v2/mapping.ts +138 -0
- package/src/theme/v2/resolve.ts +153 -0
- package/src/v2/components/accordion-v2.css +139 -0
- package/src/v2/components/accordion-v2.tsx +86 -0
- package/src/v2/components/avatar-v2.css +70 -0
- package/src/v2/components/avatar-v2.tsx +59 -0
- package/src/v2/components/badge-v2.css +27 -0
- package/src/v2/components/badge-v2.tsx +20 -0
- package/src/v2/components/button-v2.css +186 -0
- 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/v2/components/dialog-v2.css +150 -0
- package/src/v2/components/dialog-v2.tsx +93 -0
- package/src/v2/components/diff-changes-v2.css +24 -0
- package/src/v2/components/diff-changes-v2.tsx +28 -0
- package/src/v2/components/field-v2.css +94 -0
- package/src/v2/components/field-v2.tsx +265 -0
- package/src/v2/components/icon-button-v2.css +155 -0
- package/src/v2/components/icon-button-v2.tsx +37 -0
- package/src/v2/components/icon.tsx +129 -0
- package/src/v2/components/inline-input-v2.css +218 -0
- package/src/v2/components/inline-input-v2.tsx +90 -0
- package/src/v2/components/keybind-v2.css +76 -0
- package/src/v2/components/keybind-v2.tsx +30 -0
- package/src/v2/components/line-comment-v2.css +204 -0
- package/src/v2/components/line-comment-v2.tsx +155 -0
- package/src/v2/components/menu-v2.css +190 -0
- package/src/v2/components/menu-v2.tsx +225 -0
- package/src/v2/components/project-avatar-v2.css +126 -0
- package/src/v2/components/project-avatar-v2.tsx +64 -0
- package/src/v2/components/radio-v2.css +202 -0
- package/src/v2/components/radio-v2.tsx +72 -0
- package/src/v2/components/segmented-control-v2.css +80 -0
- package/src/v2/components/segmented-control-v2.tsx +208 -0
- package/src/v2/components/select-v2.css +285 -0
- package/src/v2/components/select-v2.tsx +208 -0
- package/src/v2/components/switch-v2.css +154 -0
- package/src/v2/components/switch-v2.tsx +28 -0
- package/src/v2/components/tab-state-indicator.tsx +37 -0
- package/src/v2/components/tabs-v2.css +225 -0
- package/src/v2/components/tabs-v2.tsx +147 -0
- package/src/v2/components/text-input-v2.css +145 -0
- package/src/v2/components/text-input-v2.tsx +67 -0
- package/src/v2/components/text-shimmer-v2.css +125 -0
- package/src/v2/components/text-shimmer-v2.tsx +63 -0
- package/src/v2/components/textarea-v2.css +78 -0
- package/src/v2/components/textarea-v2.tsx +31 -0
- package/src/v2/components/toast-v2.css +215 -0
- package/src/v2/components/toast-v2.tsx +144 -0
- package/src/v2/components/tooltip-v2.css +53 -0
- package/src/v2/components/tooltip-v2.tsx +146 -0
- package/src/v2/components/wordmark-v2.tsx +92 -0
- package/src/v2/styles/colors.css +172 -0
- package/src/v2/styles/tailwind.css +2 -0
- package/src/v2/styles/theme.css +441 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// @refresh reload
|
|
2
|
+
|
|
3
|
+
import { generateNeutralScale, hexToOklch, oklchToHex, shift } from "../color"
|
|
4
|
+
import { mapV2Foreground } from "./foreground"
|
|
5
|
+
import { mapV2Semantics, mergeV2Tokens } from "./mapping"
|
|
6
|
+
import type { DesktopTheme, HexColor, ResolvedV2Theme, ThemeVariant, V2ColorValue } from "../types"
|
|
7
|
+
import { V2_PRIMITIVES_DEFAULT } from "./default-primitives"
|
|
8
|
+
|
|
9
|
+
const V2_STEPS = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200] as const
|
|
10
|
+
|
|
11
|
+
interface PaletteInput {
|
|
12
|
+
neutral: HexColor
|
|
13
|
+
ink: HexColor
|
|
14
|
+
primary: HexColor
|
|
15
|
+
accent: HexColor
|
|
16
|
+
success: HexColor
|
|
17
|
+
warning: HexColor
|
|
18
|
+
error: HexColor
|
|
19
|
+
info: HexColor
|
|
20
|
+
interactive: HexColor
|
|
21
|
+
diffAdd: HexColor
|
|
22
|
+
diffDelete: HexColor
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function clamp(v: number, min: number, max: number) {
|
|
26
|
+
return Math.max(min, Math.min(max, v))
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** v2 ramps: 100 = lightest, 1200 = darkest — wider spread than v1 `generateScale`. */
|
|
30
|
+
function generateV2HueScale(seed: HexColor, isDark: boolean): HexColor[] {
|
|
31
|
+
const base = hexToOklch(seed)
|
|
32
|
+
const chromaBoost = isDark ? 1 : 1.05
|
|
33
|
+
const lightSteps = [
|
|
34
|
+
0.99,
|
|
35
|
+
0.965,
|
|
36
|
+
0.93,
|
|
37
|
+
0.885,
|
|
38
|
+
0.835,
|
|
39
|
+
clamp(base.l, 0.48, 0.72),
|
|
40
|
+
clamp(base.l - 0.07, 0.4, 0.64),
|
|
41
|
+
clamp(base.l - 0.14, 0.32, 0.55),
|
|
42
|
+
clamp(base.l - 0.21, 0.24, 0.46),
|
|
43
|
+
clamp(base.l - 0.28, 0.17, 0.38),
|
|
44
|
+
clamp(base.l - 0.34, 0.12, 0.3),
|
|
45
|
+
clamp(base.l - 0.4, 0.08, 0.22),
|
|
46
|
+
]
|
|
47
|
+
const chromaMultipliers = [0.28, 0.48, 0.68, 0.86, 1.02, 1.28, 1.34, 1.28, 1.18, 1.08, 0.98, 0.88]
|
|
48
|
+
|
|
49
|
+
return lightSteps.map((l, i) =>
|
|
50
|
+
oklchToHex({
|
|
51
|
+
l,
|
|
52
|
+
c: base.c * chromaMultipliers[i]! * chromaBoost,
|
|
53
|
+
h: base.h,
|
|
54
|
+
}),
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Grey ramp: 100 = lightest, 1200 = darkest. Derived from palette neutral → ink like v1. */
|
|
59
|
+
function generateV2NeutralScale(neutral: HexColor, ink: HexColor, isDark: boolean): HexColor[] {
|
|
60
|
+
const scale = generateNeutralScale(neutral, isDark, ink)
|
|
61
|
+
return isDark ? scale.toReversed() : scale
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function assignHueRamp(prefix: string, scale: HexColor[]): Record<string, V2ColorValue> {
|
|
65
|
+
const tokens: Record<string, V2ColorValue> = {}
|
|
66
|
+
for (let i = 0; i < V2_STEPS.length; i++) {
|
|
67
|
+
tokens[`v2-${prefix}-${V2_STEPS[i]}`] = scale[i]!
|
|
68
|
+
}
|
|
69
|
+
return tokens
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function readPalette(variant: ThemeVariant): PaletteInput {
|
|
73
|
+
if ("palette" in variant && variant.palette) {
|
|
74
|
+
const palette = variant.palette
|
|
75
|
+
return {
|
|
76
|
+
neutral: palette.neutral,
|
|
77
|
+
ink: palette.ink,
|
|
78
|
+
primary: palette.primary,
|
|
79
|
+
accent: palette.accent ?? palette.info,
|
|
80
|
+
success: palette.success,
|
|
81
|
+
warning: palette.warning,
|
|
82
|
+
error: palette.error,
|
|
83
|
+
info: palette.info,
|
|
84
|
+
interactive: palette.interactive ?? palette.primary,
|
|
85
|
+
diffAdd: palette.diffAdd ?? shift(palette.success, { c: 0.55, l: 0.14 }),
|
|
86
|
+
diffDelete: palette.diffDelete ?? palette.error,
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if ("seeds" in variant && variant.seeds) {
|
|
90
|
+
const seeds = variant.seeds
|
|
91
|
+
return {
|
|
92
|
+
neutral: seeds.neutral,
|
|
93
|
+
ink: seeds.neutral,
|
|
94
|
+
primary: seeds.primary,
|
|
95
|
+
accent: seeds.info,
|
|
96
|
+
success: seeds.success,
|
|
97
|
+
warning: seeds.warning,
|
|
98
|
+
error: seeds.error,
|
|
99
|
+
info: seeds.info,
|
|
100
|
+
interactive: seeds.interactive,
|
|
101
|
+
diffAdd: seeds.diffAdd,
|
|
102
|
+
diffDelete: seeds.diffDelete,
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
throw new Error("Theme variant requires `palette` or `seeds`")
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Build v2 primitive ramps (100 = lightest). Alpha ramps are static in `v2/styles/colors.css`. */
|
|
109
|
+
export function generateV2Primitives(variant: ThemeVariant, isDark: boolean): Record<string, V2ColorValue> {
|
|
110
|
+
const colors = readPalette(variant)
|
|
111
|
+
const grey = generateV2NeutralScale(colors.neutral, colors.ink, isDark)
|
|
112
|
+
const blue = generateV2HueScale(colors.interactive, isDark)
|
|
113
|
+
const green = generateV2HueScale(colors.success, isDark)
|
|
114
|
+
const yellow = generateV2HueScale(colors.warning, isDark)
|
|
115
|
+
const red = generateV2HueScale(colors.error, isDark)
|
|
116
|
+
const purple = generateV2HueScale(colors.accent, isDark)
|
|
117
|
+
const pink = generateV2HueScale(colors.info, isDark)
|
|
118
|
+
const orange = generateV2HueScale(shift(colors.warning, { h: -22, l: -0.082, c: 0.94 }), isDark)
|
|
119
|
+
const cyan = generateV2HueScale(shift(colors.info, { h: -12, l: 0.128, c: 1.12 }), isDark)
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
...V2_PRIMITIVES_DEFAULT,
|
|
123
|
+
...assignHueRamp("grey", grey),
|
|
124
|
+
...assignHueRamp("blue", blue),
|
|
125
|
+
...assignHueRamp("green", green),
|
|
126
|
+
...assignHueRamp("yellow", yellow),
|
|
127
|
+
...assignHueRamp("red", red),
|
|
128
|
+
...assignHueRamp("purple", purple),
|
|
129
|
+
...assignHueRamp("pink", pink),
|
|
130
|
+
...assignHueRamp("orange", orange),
|
|
131
|
+
...assignHueRamp("cyan", cyan),
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function resolveThemeVariantV2(variant: ThemeVariant, isDark: boolean): ResolvedV2Theme {
|
|
136
|
+
const primitives = generateV2Primitives(variant, isDark)
|
|
137
|
+
const semantics = mapV2Semantics(isDark)
|
|
138
|
+
const foreground = mapV2Foreground(readPalette(variant).ink, isDark, primitives, variant.overrides)
|
|
139
|
+
return mergeV2Tokens(primitives, semantics, foreground, variant.v2Overrides ?? {})
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function resolveThemeV2(theme: DesktopTheme): { light: ResolvedV2Theme; dark: ResolvedV2Theme } {
|
|
143
|
+
return {
|
|
144
|
+
light: resolveThemeVariantV2(theme.light, false),
|
|
145
|
+
dark: resolveThemeVariantV2(theme.dark, true),
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function themeV2ToCss(tokens: ResolvedV2Theme): string {
|
|
150
|
+
return Object.entries(tokens)
|
|
151
|
+
.map(([key, value]) => `--${key}: ${value};`)
|
|
152
|
+
.join("\n ")
|
|
153
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
})
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[data-component="avatar-v2"] {
|
|
2
|
+
--avatar-bg: var(--v2-background-bg-layer-02);
|
|
3
|
+
--avatar-fg: var(--v2-text-text-muted);
|
|
4
|
+
--avatar-radius: 9999px;
|
|
5
|
+
--avatar-font-size: 11px;
|
|
6
|
+
--avatar-tracking: 0.05px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
width: 28px;
|
|
14
|
+
height: 28px;
|
|
15
|
+
border-radius: var(--avatar-radius);
|
|
16
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
17
|
+
font-weight: 530;
|
|
18
|
+
font-size: var(--avatar-font-size);
|
|
19
|
+
line-height: 1;
|
|
20
|
+
letter-spacing: var(--avatar-tracking);
|
|
21
|
+
text-transform: uppercase;
|
|
22
|
+
background-color: var(--avatar-bg);
|
|
23
|
+
color: var(--avatar-fg);
|
|
24
|
+
user-select: none;
|
|
25
|
+
-webkit-user-select: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-component="avatar-v2"]::before {
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
background: linear-gradient(180deg, var(--v2-alpha-light-16) 0%, var(--v2-alpha-light-0) 100%);
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-component="avatar-v2"][data-has-image]::before {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-component="avatar-v2"][data-kind="org"] {
|
|
41
|
+
--avatar-radius: 6px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-component="avatar-v2"][data-kind="org"][data-size="normal"],
|
|
45
|
+
[data-component="avatar-v2"][data-kind="org"][data-size="small"] {
|
|
46
|
+
--avatar-radius: 4px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-component="avatar-v2"][data-size="normal"] {
|
|
50
|
+
width: 20px;
|
|
51
|
+
height: 20px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-component="avatar-v2"][data-size="small"] {
|
|
55
|
+
width: 16px;
|
|
56
|
+
height: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-component="avatar-v2"] [data-slot="avatar-image"] {
|
|
60
|
+
position: relative;
|
|
61
|
+
z-index: 1;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
display: block;
|
|
65
|
+
object-fit: cover;
|
|
66
|
+
border-radius: inherit;
|
|
67
|
+
user-select: none;
|
|
68
|
+
-webkit-user-select: none;
|
|
69
|
+
-webkit-user-drag: none;
|
|
70
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type ComponentProps, splitProps, Show } from "solid-js"
|
|
2
|
+
import "./avatar-v2.css"
|
|
3
|
+
|
|
4
|
+
const segmenter =
|
|
5
|
+
typeof Intl !== "undefined" && "Segmenter" in Intl
|
|
6
|
+
? new Intl.Segmenter(undefined, { granularity: "grapheme" })
|
|
7
|
+
: undefined
|
|
8
|
+
|
|
9
|
+
function first(value: string) {
|
|
10
|
+
if (!value) return ""
|
|
11
|
+
if (!segmenter) return Array.from(value)[0] ?? ""
|
|
12
|
+
return segmenter.segment(value)[Symbol.iterator]().next().value?.segment ?? Array.from(value)[0] ?? ""
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AvatarProps extends ComponentProps<"div"> {
|
|
16
|
+
fallback: string
|
|
17
|
+
src?: string
|
|
18
|
+
background?: string
|
|
19
|
+
foreground?: string
|
|
20
|
+
size?: "small" | "normal" | "large"
|
|
21
|
+
kind?: "user" | "org"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function Avatar(props: AvatarProps) {
|
|
25
|
+
const [split, rest] = splitProps(props, [
|
|
26
|
+
"fallback",
|
|
27
|
+
"src",
|
|
28
|
+
"background",
|
|
29
|
+
"foreground",
|
|
30
|
+
"size",
|
|
31
|
+
"kind",
|
|
32
|
+
"class",
|
|
33
|
+
"classList",
|
|
34
|
+
"style",
|
|
35
|
+
])
|
|
36
|
+
const src = split.src // did this so i can zero it out to test fallback
|
|
37
|
+
return (
|
|
38
|
+
<div
|
|
39
|
+
{...rest}
|
|
40
|
+
data-component="avatar-v2"
|
|
41
|
+
data-size={split.size || "large"}
|
|
42
|
+
data-kind={split.kind || "user"}
|
|
43
|
+
data-has-image={src ? "" : undefined}
|
|
44
|
+
classList={{
|
|
45
|
+
...split.classList,
|
|
46
|
+
[split.class ?? ""]: !!split.class,
|
|
47
|
+
}}
|
|
48
|
+
style={{
|
|
49
|
+
...(typeof split.style === "object" ? split.style : {}),
|
|
50
|
+
...(!src && split.background ? { "--avatar-bg": split.background } : {}),
|
|
51
|
+
...(!src && split.foreground ? { "--avatar-fg": split.foreground } : {}),
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<Show when={src} fallback={first(split.fallback)}>
|
|
55
|
+
{(src) => <img src={src()} draggable={false} data-slot="avatar-image" />}
|
|
56
|
+
</Show>
|
|
57
|
+
</div>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[data-component="tag"] {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
height: 16px;
|
|
9
|
+
padding: 0 4px;
|
|
10
|
+
user-select: none;
|
|
11
|
+
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
14
|
+
background: var(--v2-background-bg-layer-02);
|
|
15
|
+
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 530;
|
|
18
|
+
font-size: 11px;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
letter-spacing: 0.05px;
|
|
21
|
+
color: var(--v2-text-text-muted);
|
|
22
|
+
font-variant-numeric: tabular-nums;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-component="tag"][data-high-contrast] {
|
|
26
|
+
border-color: var(--v2-border-border-strong);
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentProps, splitProps } from "solid-js"
|
|
2
|
+
import "./badge-v2.css"
|
|
3
|
+
|
|
4
|
+
export interface TagProps extends ComponentProps<"span"> {}
|
|
5
|
+
|
|
6
|
+
export function Tag(props: TagProps) {
|
|
7
|
+
const [split, rest] = splitProps(props, ["class", "classList", "children"])
|
|
8
|
+
return (
|
|
9
|
+
<span
|
|
10
|
+
{...rest}
|
|
11
|
+
data-component="tag"
|
|
12
|
+
classList={{
|
|
13
|
+
...split.classList,
|
|
14
|
+
[split.class ?? ""]: !!split.class,
|
|
15
|
+
}}
|
|
16
|
+
>
|
|
17
|
+
{split.children}
|
|
18
|
+
</span>
|
|
19
|
+
)
|
|
20
|
+
}
|