@opencode-ai/ui 0.0.0 → 1.17.13
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/dist/components/accordion.d.ts +24 -0
- package/dist/components/animated-number.d.ts +4 -0
- package/dist/components/app-icon.d.ts +6 -0
- package/dist/components/app-icons/types.d.ts +2 -0
- package/dist/components/avatar.d.ts +9 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/card.d.ts +22 -0
- package/dist/components/checkbox.d.ts +8 -0
- package/dist/components/collapsible.d.ts +17 -0
- package/dist/components/context-menu.d.ts +80 -0
- package/dist/components/dialog.d.ts +12 -0
- package/dist/components/diff-changes.d.ts +11 -0
- package/dist/components/dock-surface.d.ts +7 -0
- package/dist/components/dropdown-menu.d.ts +80 -0
- package/dist/components/favicon.d.ts +1 -0
- package/dist/components/file-icon.d.ts +12 -0
- package/dist/components/file-icons/types.d.ts +2 -0
- package/dist/components/font.d.ts +1 -0
- package/dist/components/hover-card.d.ts +9 -0
- package/dist/components/icon-button.d.ts +10 -0
- package/dist/components/icon.d.ts +104 -0
- package/dist/components/image-preview.d.ts +5 -0
- package/dist/components/inline-input.d.ts +5 -0
- package/dist/components/keybind.d.ts +6 -0
- package/dist/components/list.d.ts +45 -0
- package/dist/components/logo.d.ts +8 -0
- package/dist/components/motion-spring.d.ts +4 -0
- package/dist/components/popover.d.ts +14 -0
- package/dist/components/progress-circle.d.ts +7 -0
- package/dist/components/progress.d.ts +7 -0
- package/dist/components/provider-icon.d.ts +5 -0
- package/dist/components/provider-icons/types.d.ts +2 -0
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/resize-handle.d.ts +12 -0
- package/dist/components/scroll-view.d.ts +15 -0
- package/dist/components/select.d.ts +21 -0
- package/dist/components/spinner.d.ts +6 -0
- package/dist/components/sticky-accordion-header.d.ts +5 -0
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/tabs.d.ts +32 -0
- package/dist/components/tag.d.ts +5 -0
- package/dist/components/text-field.d.ts +13 -0
- package/dist/components/text-reveal.d.ts +13 -0
- package/dist/components/text-shimmer.d.ts +8 -0
- package/dist/components/text-strikethrough.d.ts +11 -0
- package/dist/components/toast.d.ts +56 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/typewriter.d.ts +6 -0
- package/dist/context/dialog.d.ts +18 -0
- package/dist/context/file.d.ts +5 -0
- package/dist/context/helper.d.ts +14 -0
- package/dist/context/i18n.d.ts +12 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/marked.d.ts +9 -0
- package/dist/context/worker-pool.d.ts +9 -0
- package/dist/hooks/create-auto-scroll.d.ts +17 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-filtered-list.d.ts +39 -0
- package/dist/i18n/ar.d.ts +148 -0
- package/dist/i18n/br.d.ts +148 -0
- package/dist/i18n/bs.d.ts +148 -0
- package/dist/i18n/da.d.ts +148 -0
- package/dist/i18n/de.d.ts +148 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/es.d.ts +148 -0
- package/dist/i18n/fr.d.ts +148 -0
- package/dist/i18n/ja.d.ts +148 -0
- package/dist/i18n/ko.d.ts +148 -0
- package/dist/i18n/no.d.ts +4 -0
- package/dist/i18n/pl.d.ts +148 -0
- package/dist/i18n/ru.d.ts +148 -0
- package/dist/i18n/th.d.ts +148 -0
- package/dist/i18n/tr.d.ts +148 -0
- package/dist/i18n/uk.d.ts +1 -0
- package/dist/i18n/zh.d.ts +148 -0
- package/dist/i18n/zht.d.ts +148 -0
- package/dist/storybook/fixtures.d.ts +19 -0
- package/dist/storybook/scaffold.d.ts +16 -0
- package/dist/theme/color.d.ts +30 -0
- package/dist/theme/context.d.ts +21 -0
- package/dist/theme/default-themes.d.ts +39 -0
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/loader.d.ts +6 -0
- package/dist/theme/resolve.d.ts +7 -0
- package/dist/theme/types.d.ts +56 -0
- package/dist/theme/v2/avatar.d.ts +5 -0
- package/dist/theme/v2/default-primitives.d.ts +3 -0
- package/dist/theme/v2/foreground.d.ts +2 -0
- package/dist/theme/v2/mapping.d.ts +3 -0
- package/dist/theme/v2/resolve.d.ts +9 -0
- package/dist/v2/components/accordion-v2.d.ts +26 -0
- package/dist/v2/components/avatar-v2.d.ts +11 -0
- package/dist/v2/components/badge-v2.d.ts +5 -0
- package/dist/v2/components/button-v2.d.ts +10 -0
- package/dist/v2/components/checkbox-v2.d.ts +10 -0
- package/dist/v2/components/dialog-v2.d.ts +26 -0
- package/dist/v2/components/diff-changes-v2.d.ts +11 -0
- package/dist/v2/components/divider-v2.d.ts +5 -0
- package/dist/v2/components/field-v2.d.ts +28 -0
- package/dist/v2/components/icon-button-v2.d.ts +11 -0
- package/dist/v2/components/icon.d.ts +121 -0
- package/dist/v2/components/inline-input-v2.d.ts +21 -0
- package/dist/v2/components/keybind-v2.d.ts +7 -0
- package/dist/v2/components/line-comment-v2.d.ts +28 -0
- 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/v2/components/project-avatar-v2.d.ts +11 -0
- package/dist/v2/components/radio-v2.d.ts +16 -0
- package/dist/v2/components/segmented-control-v2.d.ts +21 -0
- package/dist/v2/components/select-v2.d.ts +24 -0
- package/dist/v2/components/switch-v2.d.ts +7 -0
- package/dist/v2/components/tab-state-indicator.d.ts +2 -0
- package/dist/v2/components/tabs-v2.d.ts +34 -0
- package/dist/v2/components/text-input-v2.d.ts +17 -0
- 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 +48 -0
- package/dist/v2/components/tooltip-v2.d.ts +13 -0
- package/dist/v2/components/wordmark-v2.d.ts +2 -0
- package/package.json +148 -6
- 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 +147 -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 +115 -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 +16 -0
- package/src/components/progress-circle.tsx +64 -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 +199 -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 +163 -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 +286 -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 +474 -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 +140 -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 +239 -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 +177 -0
- package/src/v2/components/dialog-v2.tsx +114 -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/divider-v2.css +11 -0
- package/src/v2/components/divider-v2.tsx +20 -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 +173 -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/loader-v2.css +32 -0
- package/src/v2/components/loader-v2.tsx +31 -0
- package/src/v2/components/menu-v2.css +190 -0
- package/src/v2/components/menu-v2.tsx +225 -0
- package/src/v2/components/progress-circle-v2.css +13 -0
- package/src/v2/components/progress-circle-v2.tsx +52 -0
- package/src/v2/components/project-avatar-v2.css +125 -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 +64 -0
- package/src/v2/components/tooltip-v2.tsx +147 -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 +457 -0
- package/README.md +0 -3
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare const dict: {
|
|
2
|
+
"ui.sessionReview.title": string;
|
|
3
|
+
"ui.sessionReview.title.lastTurn": string;
|
|
4
|
+
"ui.sessionReview.diffStyle.unified": string;
|
|
5
|
+
"ui.sessionReview.diffStyle.split": string;
|
|
6
|
+
"ui.sessionReview.openFile": string;
|
|
7
|
+
"ui.sessionReview.selection.line": string;
|
|
8
|
+
"ui.sessionReview.selection.lines": string;
|
|
9
|
+
"ui.sessionReview.expandAll": string;
|
|
10
|
+
"ui.sessionReview.collapseAll": string;
|
|
11
|
+
"ui.sessionReview.change.added": string;
|
|
12
|
+
"ui.sessionReview.change.removed": string;
|
|
13
|
+
"ui.sessionReview.change.modified": string;
|
|
14
|
+
"ui.sessionReview.image.loading": string;
|
|
15
|
+
"ui.sessionReview.image.placeholder": string;
|
|
16
|
+
"ui.sessionReview.largeDiff.title": string;
|
|
17
|
+
"ui.sessionReview.largeDiff.meta": string;
|
|
18
|
+
"ui.sessionReview.largeDiff.renderAnyway": string;
|
|
19
|
+
"ui.fileMedia.kind.image": string;
|
|
20
|
+
"ui.fileMedia.kind.audio": string;
|
|
21
|
+
"ui.fileMedia.state.removed": string;
|
|
22
|
+
"ui.fileMedia.state.loading": string;
|
|
23
|
+
"ui.fileMedia.state.error": string;
|
|
24
|
+
"ui.fileMedia.state.unavailable": string;
|
|
25
|
+
"ui.fileMedia.binary.title": string;
|
|
26
|
+
"ui.fileMedia.binary.description.path": string;
|
|
27
|
+
"ui.fileMedia.binary.description.default": string;
|
|
28
|
+
"ui.lineComment.label.prefix": string;
|
|
29
|
+
"ui.lineComment.label.suffix": string;
|
|
30
|
+
"ui.lineComment.editorLabel.prefix": string;
|
|
31
|
+
"ui.lineComment.editorLabel.suffix": string;
|
|
32
|
+
"ui.lineComment.placeholder": string;
|
|
33
|
+
"ui.lineComment.submit": string;
|
|
34
|
+
"ui.sessionTurn.steps.show": string;
|
|
35
|
+
"ui.sessionTurn.steps.hide": string;
|
|
36
|
+
"ui.sessionTurn.summary.response": string;
|
|
37
|
+
"ui.sessionTurn.diff.showMore": string;
|
|
38
|
+
"ui.sessionTurn.retry.retrying": string;
|
|
39
|
+
"ui.sessionTurn.retry.inSeconds": string;
|
|
40
|
+
"ui.sessionTurn.retry.attempt": string;
|
|
41
|
+
"ui.sessionTurn.retry.attemptLine": string;
|
|
42
|
+
"ui.sessionTurn.retry.geminiHot": string;
|
|
43
|
+
"ui.sessionTurn.error.freeUsageExceeded": string;
|
|
44
|
+
"ui.sessionTurn.error.addCredits": string;
|
|
45
|
+
"dialog.usageExceeded.freeTier.title": string;
|
|
46
|
+
"dialog.usageExceeded.freeTier.description": string;
|
|
47
|
+
"dialog.usageExceeded.freeTier.actionLabel": string;
|
|
48
|
+
"dialog.usageExceeded.accountRateLimit.title": string;
|
|
49
|
+
"dialog.usageExceeded.accountRateLimit.description": string;
|
|
50
|
+
"dialog.usageExceeded.accountRateLimit.actionLabel": string;
|
|
51
|
+
"ui.sessionTurn.status.delegating": string;
|
|
52
|
+
"ui.sessionTurn.status.planning": string;
|
|
53
|
+
"ui.sessionTurn.status.gatheringContext": string;
|
|
54
|
+
"ui.sessionTurn.status.gatheredContext": string;
|
|
55
|
+
"ui.sessionTurn.status.searchingCodebase": string;
|
|
56
|
+
"ui.sessionTurn.status.searchingWeb": string;
|
|
57
|
+
"ui.sessionTurn.status.makingEdits": string;
|
|
58
|
+
"ui.sessionTurn.status.runningCommands": string;
|
|
59
|
+
"ui.sessionTurn.status.thinking": string;
|
|
60
|
+
"ui.sessionTurn.status.thinkingWithTopic": string;
|
|
61
|
+
"ui.sessionTurn.status.gatheringThoughts": string;
|
|
62
|
+
"ui.sessionTurn.status.consideringNextSteps": string;
|
|
63
|
+
"ui.messagePart.questions.dismissed": string;
|
|
64
|
+
"ui.messagePart.compaction": string;
|
|
65
|
+
"ui.messagePart.context.read.one": string;
|
|
66
|
+
"ui.messagePart.context.read.other": string;
|
|
67
|
+
"ui.messagePart.context.search.one": string;
|
|
68
|
+
"ui.messagePart.context.search.other": string;
|
|
69
|
+
"ui.messagePart.context.list.one": string;
|
|
70
|
+
"ui.messagePart.context.list.other": string;
|
|
71
|
+
"ui.messagePart.diagnostic.error": string;
|
|
72
|
+
"ui.messagePart.title.edit": string;
|
|
73
|
+
"ui.messagePart.title.write": string;
|
|
74
|
+
"ui.messagePart.option.typeOwnAnswer": string;
|
|
75
|
+
"ui.messagePart.review.title": string;
|
|
76
|
+
"ui.list.loading": string;
|
|
77
|
+
"ui.list.empty": string;
|
|
78
|
+
"ui.list.clearFilter": string;
|
|
79
|
+
"ui.list.emptyWithFilter.prefix": string;
|
|
80
|
+
"ui.list.emptyWithFilter.suffix": string;
|
|
81
|
+
"ui.messageNav.newMessage": string;
|
|
82
|
+
"ui.textField.copyToClipboard": string;
|
|
83
|
+
"ui.textField.copyLink": string;
|
|
84
|
+
"ui.textField.copied": string;
|
|
85
|
+
"ui.imagePreview.alt": string;
|
|
86
|
+
"ui.scrollView.ariaLabel": string;
|
|
87
|
+
"ui.tool.read": string;
|
|
88
|
+
"ui.tool.loaded": string;
|
|
89
|
+
"ui.tool.list": string;
|
|
90
|
+
"ui.tool.glob": string;
|
|
91
|
+
"ui.tool.grep": string;
|
|
92
|
+
"ui.tool.webfetch": string;
|
|
93
|
+
"ui.tool.websearch": string;
|
|
94
|
+
"ui.tool.shell": string;
|
|
95
|
+
"ui.tool.patch": string;
|
|
96
|
+
"ui.tool.todos": string;
|
|
97
|
+
"ui.tool.todos.read": string;
|
|
98
|
+
"ui.tool.questions": string;
|
|
99
|
+
"ui.tool.agent": string;
|
|
100
|
+
"ui.tool.agent.default": string;
|
|
101
|
+
"ui.common.file.one": string;
|
|
102
|
+
"ui.common.file.other": string;
|
|
103
|
+
"ui.common.question.one": string;
|
|
104
|
+
"ui.common.question.other": string;
|
|
105
|
+
"ui.common.add": string;
|
|
106
|
+
"ui.common.back": string;
|
|
107
|
+
"ui.common.cancel": string;
|
|
108
|
+
"ui.common.confirm": string;
|
|
109
|
+
"ui.common.dismiss": string;
|
|
110
|
+
"ui.common.close": string;
|
|
111
|
+
"ui.common.next": string;
|
|
112
|
+
"ui.common.submit": string;
|
|
113
|
+
"ui.permission.deny": string;
|
|
114
|
+
"ui.permission.allowAlways": string;
|
|
115
|
+
"ui.permission.allowOnce": string;
|
|
116
|
+
"ui.message.expand": string;
|
|
117
|
+
"ui.message.collapse": string;
|
|
118
|
+
"ui.message.copy": string;
|
|
119
|
+
"ui.message.copyMessage": string;
|
|
120
|
+
"ui.message.forkMessage": string;
|
|
121
|
+
"ui.message.revertMessage": string;
|
|
122
|
+
"ui.message.copyResponse": string;
|
|
123
|
+
"ui.message.copied": string;
|
|
124
|
+
"ui.message.interrupted": string;
|
|
125
|
+
"ui.message.queued": string;
|
|
126
|
+
"ui.message.attachment.alt": string;
|
|
127
|
+
"ui.patch.action.deleted": string;
|
|
128
|
+
"ui.patch.action.created": string;
|
|
129
|
+
"ui.patch.action.moved": string;
|
|
130
|
+
"ui.patch.action.patched": string;
|
|
131
|
+
"ui.question.subtitle.answered": string;
|
|
132
|
+
"ui.question.answer.none": string;
|
|
133
|
+
"ui.question.review.notAnswered": string;
|
|
134
|
+
"ui.question.multiHint": string;
|
|
135
|
+
"ui.question.singleHint": string;
|
|
136
|
+
"ui.question.custom.placeholder": string;
|
|
137
|
+
"ui.fileSearch.placeholder": string;
|
|
138
|
+
"ui.fileSearch.previousMatch": string;
|
|
139
|
+
"ui.fileSearch.nextMatch": string;
|
|
140
|
+
"ui.fileSearch.close": string;
|
|
141
|
+
"ui.tool.task": string;
|
|
142
|
+
"ui.tool.skill": string;
|
|
143
|
+
"ui.basicTool.called": string;
|
|
144
|
+
"ui.toolErrorCard.failed": string;
|
|
145
|
+
"ui.toolErrorCard.copyError": string;
|
|
146
|
+
"ui.message.duration.seconds": string;
|
|
147
|
+
"ui.message.duration.minutesSeconds": string;
|
|
148
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare const dict: {
|
|
2
|
+
"ui.sessionReview.title": string;
|
|
3
|
+
"ui.sessionReview.title.lastTurn": string;
|
|
4
|
+
"ui.sessionReview.diffStyle.unified": string;
|
|
5
|
+
"ui.sessionReview.diffStyle.split": string;
|
|
6
|
+
"ui.sessionReview.openFile": string;
|
|
7
|
+
"ui.sessionReview.selection.line": string;
|
|
8
|
+
"ui.sessionReview.selection.lines": string;
|
|
9
|
+
"ui.sessionReview.expandAll": string;
|
|
10
|
+
"ui.sessionReview.collapseAll": string;
|
|
11
|
+
"ui.sessionReview.change.added": string;
|
|
12
|
+
"ui.sessionReview.change.removed": string;
|
|
13
|
+
"ui.sessionReview.change.modified": string;
|
|
14
|
+
"ui.sessionReview.image.loading": string;
|
|
15
|
+
"ui.sessionReview.image.placeholder": string;
|
|
16
|
+
"ui.sessionReview.largeDiff.title": string;
|
|
17
|
+
"ui.sessionReview.largeDiff.meta": string;
|
|
18
|
+
"ui.sessionReview.largeDiff.renderAnyway": string;
|
|
19
|
+
"ui.fileMedia.kind.image": string;
|
|
20
|
+
"ui.fileMedia.kind.audio": string;
|
|
21
|
+
"ui.fileMedia.state.removed": string;
|
|
22
|
+
"ui.fileMedia.state.loading": string;
|
|
23
|
+
"ui.fileMedia.state.error": string;
|
|
24
|
+
"ui.fileMedia.state.unavailable": string;
|
|
25
|
+
"ui.fileMedia.binary.title": string;
|
|
26
|
+
"ui.fileMedia.binary.description.path": string;
|
|
27
|
+
"ui.fileMedia.binary.description.default": string;
|
|
28
|
+
"ui.lineComment.label.prefix": string;
|
|
29
|
+
"ui.lineComment.label.suffix": string;
|
|
30
|
+
"ui.lineComment.editorLabel.prefix": string;
|
|
31
|
+
"ui.lineComment.editorLabel.suffix": string;
|
|
32
|
+
"ui.lineComment.placeholder": string;
|
|
33
|
+
"ui.lineComment.submit": string;
|
|
34
|
+
"ui.sessionTurn.steps.show": string;
|
|
35
|
+
"ui.sessionTurn.steps.hide": string;
|
|
36
|
+
"ui.sessionTurn.summary.response": string;
|
|
37
|
+
"ui.sessionTurn.diff.showMore": string;
|
|
38
|
+
"ui.sessionTurn.retry.retrying": string;
|
|
39
|
+
"ui.sessionTurn.retry.inSeconds": string;
|
|
40
|
+
"ui.sessionTurn.retry.attempt": string;
|
|
41
|
+
"ui.sessionTurn.retry.attemptLine": string;
|
|
42
|
+
"ui.sessionTurn.retry.geminiHot": string;
|
|
43
|
+
"ui.sessionTurn.error.freeUsageExceeded": string;
|
|
44
|
+
"ui.sessionTurn.error.addCredits": string;
|
|
45
|
+
"dialog.usageExceeded.freeTier.title": string;
|
|
46
|
+
"dialog.usageExceeded.freeTier.description": string;
|
|
47
|
+
"dialog.usageExceeded.freeTier.actionLabel": string;
|
|
48
|
+
"dialog.usageExceeded.accountRateLimit.title": string;
|
|
49
|
+
"dialog.usageExceeded.accountRateLimit.description": string;
|
|
50
|
+
"dialog.usageExceeded.accountRateLimit.actionLabel": string;
|
|
51
|
+
"ui.sessionTurn.status.delegating": string;
|
|
52
|
+
"ui.sessionTurn.status.planning": string;
|
|
53
|
+
"ui.sessionTurn.status.gatheringContext": string;
|
|
54
|
+
"ui.sessionTurn.status.gatheredContext": string;
|
|
55
|
+
"ui.sessionTurn.status.searchingCodebase": string;
|
|
56
|
+
"ui.sessionTurn.status.searchingWeb": string;
|
|
57
|
+
"ui.sessionTurn.status.makingEdits": string;
|
|
58
|
+
"ui.sessionTurn.status.runningCommands": string;
|
|
59
|
+
"ui.sessionTurn.status.thinking": string;
|
|
60
|
+
"ui.sessionTurn.status.thinkingWithTopic": string;
|
|
61
|
+
"ui.sessionTurn.status.gatheringThoughts": string;
|
|
62
|
+
"ui.sessionTurn.status.consideringNextSteps": string;
|
|
63
|
+
"ui.messagePart.questions.dismissed": string;
|
|
64
|
+
"ui.messagePart.compaction": string;
|
|
65
|
+
"ui.messagePart.context.read.one": string;
|
|
66
|
+
"ui.messagePart.context.read.other": string;
|
|
67
|
+
"ui.messagePart.context.search.one": string;
|
|
68
|
+
"ui.messagePart.context.search.other": string;
|
|
69
|
+
"ui.messagePart.context.list.one": string;
|
|
70
|
+
"ui.messagePart.context.list.other": string;
|
|
71
|
+
"ui.messagePart.diagnostic.error": string;
|
|
72
|
+
"ui.messagePart.title.edit": string;
|
|
73
|
+
"ui.messagePart.title.write": string;
|
|
74
|
+
"ui.messagePart.option.typeOwnAnswer": string;
|
|
75
|
+
"ui.messagePart.review.title": string;
|
|
76
|
+
"ui.list.loading": string;
|
|
77
|
+
"ui.list.empty": string;
|
|
78
|
+
"ui.list.clearFilter": string;
|
|
79
|
+
"ui.list.emptyWithFilter.prefix": string;
|
|
80
|
+
"ui.list.emptyWithFilter.suffix": string;
|
|
81
|
+
"ui.messageNav.newMessage": string;
|
|
82
|
+
"ui.textField.copyToClipboard": string;
|
|
83
|
+
"ui.textField.copyLink": string;
|
|
84
|
+
"ui.textField.copied": string;
|
|
85
|
+
"ui.imagePreview.alt": string;
|
|
86
|
+
"ui.scrollView.ariaLabel": string;
|
|
87
|
+
"ui.tool.read": string;
|
|
88
|
+
"ui.tool.loaded": string;
|
|
89
|
+
"ui.tool.list": string;
|
|
90
|
+
"ui.tool.glob": string;
|
|
91
|
+
"ui.tool.grep": string;
|
|
92
|
+
"ui.tool.webfetch": string;
|
|
93
|
+
"ui.tool.websearch": string;
|
|
94
|
+
"ui.tool.shell": string;
|
|
95
|
+
"ui.tool.patch": string;
|
|
96
|
+
"ui.tool.todos": string;
|
|
97
|
+
"ui.tool.todos.read": string;
|
|
98
|
+
"ui.tool.questions": string;
|
|
99
|
+
"ui.tool.agent": string;
|
|
100
|
+
"ui.tool.agent.default": string;
|
|
101
|
+
"ui.common.file.one": string;
|
|
102
|
+
"ui.common.file.other": string;
|
|
103
|
+
"ui.common.question.one": string;
|
|
104
|
+
"ui.common.question.other": string;
|
|
105
|
+
"ui.common.add": string;
|
|
106
|
+
"ui.common.back": string;
|
|
107
|
+
"ui.common.cancel": string;
|
|
108
|
+
"ui.common.confirm": string;
|
|
109
|
+
"ui.common.dismiss": string;
|
|
110
|
+
"ui.common.close": string;
|
|
111
|
+
"ui.common.next": string;
|
|
112
|
+
"ui.common.submit": string;
|
|
113
|
+
"ui.permission.deny": string;
|
|
114
|
+
"ui.permission.allowAlways": string;
|
|
115
|
+
"ui.permission.allowOnce": string;
|
|
116
|
+
"ui.message.expand": string;
|
|
117
|
+
"ui.message.collapse": string;
|
|
118
|
+
"ui.message.copy": string;
|
|
119
|
+
"ui.message.copyMessage": string;
|
|
120
|
+
"ui.message.forkMessage": string;
|
|
121
|
+
"ui.message.revertMessage": string;
|
|
122
|
+
"ui.message.copyResponse": string;
|
|
123
|
+
"ui.message.copied": string;
|
|
124
|
+
"ui.message.interrupted": string;
|
|
125
|
+
"ui.message.queued": string;
|
|
126
|
+
"ui.message.attachment.alt": string;
|
|
127
|
+
"ui.patch.action.deleted": string;
|
|
128
|
+
"ui.patch.action.created": string;
|
|
129
|
+
"ui.patch.action.moved": string;
|
|
130
|
+
"ui.patch.action.patched": string;
|
|
131
|
+
"ui.question.subtitle.answered": string;
|
|
132
|
+
"ui.question.answer.none": string;
|
|
133
|
+
"ui.question.review.notAnswered": string;
|
|
134
|
+
"ui.question.multiHint": string;
|
|
135
|
+
"ui.question.singleHint": string;
|
|
136
|
+
"ui.question.custom.placeholder": string;
|
|
137
|
+
"ui.fileSearch.placeholder": string;
|
|
138
|
+
"ui.fileSearch.previousMatch": string;
|
|
139
|
+
"ui.fileSearch.nextMatch": string;
|
|
140
|
+
"ui.fileSearch.close": string;
|
|
141
|
+
"ui.tool.task": string;
|
|
142
|
+
"ui.tool.skill": string;
|
|
143
|
+
"ui.basicTool.called": string;
|
|
144
|
+
"ui.toolErrorCard.failed": string;
|
|
145
|
+
"ui.toolErrorCard.copyError": string;
|
|
146
|
+
"ui.message.duration.seconds": string;
|
|
147
|
+
"ui.message.duration.minutesSeconds": string;
|
|
148
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const diff: {
|
|
2
|
+
before: {
|
|
3
|
+
name: string;
|
|
4
|
+
contents: string;
|
|
5
|
+
};
|
|
6
|
+
after: {
|
|
7
|
+
name: string;
|
|
8
|
+
contents: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const code: {
|
|
12
|
+
name: string;
|
|
13
|
+
contents: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const markdown: string;
|
|
16
|
+
export declare const changes: {
|
|
17
|
+
additions: number;
|
|
18
|
+
deletions: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ValidComponent } from "solid-js";
|
|
2
|
+
export declare function create(input: {
|
|
3
|
+
title: string;
|
|
4
|
+
mod: Record<string, unknown>;
|
|
5
|
+
name?: string;
|
|
6
|
+
args?: Record<string, unknown>;
|
|
7
|
+
}): {
|
|
8
|
+
meta: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: ValidComponent;
|
|
11
|
+
};
|
|
12
|
+
Basic: {
|
|
13
|
+
args: Record<string, unknown>;
|
|
14
|
+
render: (args: Record<string, unknown>) => import("solid-js").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HexColor, OklchColor } from "./types";
|
|
2
|
+
export declare function hexToRgb(hex: HexColor): {
|
|
3
|
+
r: number;
|
|
4
|
+
g: number;
|
|
5
|
+
b: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function rgbToHex(r: number, g: number, b: number): HexColor;
|
|
8
|
+
export declare function rgbToOklch(r: number, g: number, b: number): OklchColor;
|
|
9
|
+
export declare function oklchToRgb(oklch: OklchColor): {
|
|
10
|
+
r: number;
|
|
11
|
+
g: number;
|
|
12
|
+
b: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function hexToOklch(hex: HexColor): OklchColor;
|
|
15
|
+
export declare function fitOklch(oklch: OklchColor): OklchColor;
|
|
16
|
+
export declare function oklchToHex(oklch: OklchColor): HexColor;
|
|
17
|
+
export declare function generateScale(seed: HexColor, isDark: boolean): HexColor[];
|
|
18
|
+
export declare function generateNeutralScale(seed: HexColor, isDark: boolean, ink?: HexColor): HexColor[];
|
|
19
|
+
export declare function generateAlphaScale(scale: HexColor[], isDark: boolean): HexColor[];
|
|
20
|
+
export declare function mixColors(color1: HexColor, color2: HexColor, amount: number): HexColor;
|
|
21
|
+
export declare function shift(color: HexColor, value: {
|
|
22
|
+
l?: number;
|
|
23
|
+
c?: number;
|
|
24
|
+
h?: number;
|
|
25
|
+
}): HexColor;
|
|
26
|
+
export declare function contrastRatio(foreground: HexColor, background: HexColor): number;
|
|
27
|
+
export declare function blend(color: HexColor, background: HexColor, alpha: number): HexColor;
|
|
28
|
+
export declare function lighten(color: HexColor, amount: number): HexColor;
|
|
29
|
+
export declare function darken(color: HexColor, amount: number): HexColor;
|
|
30
|
+
export declare function withAlpha(color: HexColor, alpha: number): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DesktopTheme } from "./types";
|
|
2
|
+
export type ColorScheme = "light" | "dark" | "system";
|
|
3
|
+
export declare const useTheme: () => {
|
|
4
|
+
themeId: () => string;
|
|
5
|
+
colorScheme: () => ColorScheme;
|
|
6
|
+
mode: () => "light" | "dark";
|
|
7
|
+
ids: () => string[];
|
|
8
|
+
name: (id: string) => string;
|
|
9
|
+
loadThemes: () => Promise<Record<string, DesktopTheme>>;
|
|
10
|
+
themes: () => Record<string, DesktopTheme>;
|
|
11
|
+
setTheme: (id: string) => void;
|
|
12
|
+
setColorScheme: (scheme: ColorScheme) => void;
|
|
13
|
+
registerTheme: (theme: DesktopTheme) => void;
|
|
14
|
+
previewTheme: (id: string) => void;
|
|
15
|
+
previewColorScheme: (scheme: ColorScheme) => void;
|
|
16
|
+
commitPreview: () => void;
|
|
17
|
+
cancelPreview: () => void;
|
|
18
|
+
}, ThemeProvider: (props: import("solid-js").ParentProps<{
|
|
19
|
+
defaultTheme?: string;
|
|
20
|
+
onThemeApplied?: (theme: DesktopTheme, mode: "light" | "dark") => void;
|
|
21
|
+
}>) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DesktopTheme } from "./types";
|
|
2
|
+
export declare const oc2Theme: DesktopTheme;
|
|
3
|
+
export declare const amoledTheme: DesktopTheme;
|
|
4
|
+
export declare const auraTheme: DesktopTheme;
|
|
5
|
+
export declare const ayuTheme: DesktopTheme;
|
|
6
|
+
export declare const carbonfoxTheme: DesktopTheme;
|
|
7
|
+
export declare const catppuccinTheme: DesktopTheme;
|
|
8
|
+
export declare const catppuccinFrappeTheme: DesktopTheme;
|
|
9
|
+
export declare const catppuccinMacchiatoTheme: DesktopTheme;
|
|
10
|
+
export declare const cobalt2Theme: DesktopTheme;
|
|
11
|
+
export declare const cursorTheme: DesktopTheme;
|
|
12
|
+
export declare const draculaTheme: DesktopTheme;
|
|
13
|
+
export declare const everforestTheme: DesktopTheme;
|
|
14
|
+
export declare const flexokiTheme: DesktopTheme;
|
|
15
|
+
export declare const githubTheme: DesktopTheme;
|
|
16
|
+
export declare const gruvboxTheme: DesktopTheme;
|
|
17
|
+
export declare const kanagawaTheme: DesktopTheme;
|
|
18
|
+
export declare const lucentOrngTheme: DesktopTheme;
|
|
19
|
+
export declare const materialTheme: DesktopTheme;
|
|
20
|
+
export declare const matrixTheme: DesktopTheme;
|
|
21
|
+
export declare const mercuryTheme: DesktopTheme;
|
|
22
|
+
export declare const monokaiTheme: DesktopTheme;
|
|
23
|
+
export declare const nightowlTheme: DesktopTheme;
|
|
24
|
+
export declare const nordTheme: DesktopTheme;
|
|
25
|
+
export declare const oneDarkTheme: DesktopTheme;
|
|
26
|
+
export declare const oneDarkProTheme: DesktopTheme;
|
|
27
|
+
export declare const opencodeTheme: DesktopTheme;
|
|
28
|
+
export declare const orngTheme: DesktopTheme;
|
|
29
|
+
export declare const osakaJadeTheme: DesktopTheme;
|
|
30
|
+
export declare const palenightTheme: DesktopTheme;
|
|
31
|
+
export declare const rosepineTheme: DesktopTheme;
|
|
32
|
+
export declare const shadesOfPurpleTheme: DesktopTheme;
|
|
33
|
+
export declare const solarizedTheme: DesktopTheme;
|
|
34
|
+
export declare const synthwave84Theme: DesktopTheme;
|
|
35
|
+
export declare const tokyonightTheme: DesktopTheme;
|
|
36
|
+
export declare const vercelTheme: DesktopTheme;
|
|
37
|
+
export declare const vesperTheme: DesktopTheme;
|
|
38
|
+
export declare const zenburnTheme: DesktopTheme;
|
|
39
|
+
export declare const DEFAULT_THEMES: Record<string, DesktopTheme>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { DesktopTheme, ThemePaletteColors, ThemeSeedColors, ThemeVariant, HexColor, OklchColor, ResolvedTheme, ColorValue, CssVarRef, V2ColorValue, ResolvedV2Theme, } from "./types";
|
|
2
|
+
export { hexToRgb, rgbToHex, hexToOklch, oklchToHex, rgbToOklch, oklchToRgb, generateScale, generateNeutralScale, generateAlphaScale, fitOklch, blend, mixColors, shift, lighten, darken, withAlpha, } from "./color";
|
|
3
|
+
export { resolveThemeVariant, resolveTheme, themeToCss } from "./resolve";
|
|
4
|
+
export { resolveThemeVariantV2, resolveThemeV2, themeV2ToCss, generateV2Primitives } from "./v2/resolve";
|
|
5
|
+
export { applyTheme, loadThemeFromUrl, getActiveTheme, removeTheme, setColorScheme } from "./loader";
|
|
6
|
+
export { ThemeProvider, useTheme, type ColorScheme } from "./context";
|
|
7
|
+
export { DEFAULT_THEMES, oc2Theme, amoledTheme, auraTheme, ayuTheme, carbonfoxTheme, catppuccinTheme, catppuccinFrappeTheme, catppuccinMacchiatoTheme, cobalt2Theme, cursorTheme, draculaTheme, everforestTheme, flexokiTheme, githubTheme, gruvboxTheme, kanagawaTheme, lucentOrngTheme, materialTheme, matrixTheme, mercuryTheme, monokaiTheme, nightowlTheme, nordTheme, oneDarkTheme, oneDarkProTheme, opencodeTheme, orngTheme, osakaJadeTheme, palenightTheme, rosepineTheme, shadesOfPurpleTheme, solarizedTheme, synthwave84Theme, tokyonightTheme, vercelTheme, vesperTheme, zenburnTheme, } from "./default-themes";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DesktopTheme } from "./types";
|
|
2
|
+
export declare function applyTheme(theme: DesktopTheme, themeId?: string): void;
|
|
3
|
+
export declare function loadThemeFromUrl(url: string): Promise<DesktopTheme>;
|
|
4
|
+
export declare function getActiveTheme(): DesktopTheme | null;
|
|
5
|
+
export declare function removeTheme(): void;
|
|
6
|
+
export declare function setColorScheme(scheme: "light" | "dark" | "auto"): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DesktopTheme, ResolvedTheme, ThemeVariant } from "./types";
|
|
2
|
+
export declare function resolveThemeVariant(variant: ThemeVariant, isDark: boolean): ResolvedTheme;
|
|
3
|
+
export declare function resolveTheme(theme: DesktopTheme): {
|
|
4
|
+
light: ResolvedTheme;
|
|
5
|
+
dark: ResolvedTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare function themeToCss(tokens: ResolvedTheme): string;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type HexColor = `#${string}`;
|
|
2
|
+
export interface OklchColor {
|
|
3
|
+
l: number;
|
|
4
|
+
c: number;
|
|
5
|
+
h: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ThemeSeedColors {
|
|
8
|
+
neutral: HexColor;
|
|
9
|
+
primary: HexColor;
|
|
10
|
+
success: HexColor;
|
|
11
|
+
warning: HexColor;
|
|
12
|
+
error: HexColor;
|
|
13
|
+
info: HexColor;
|
|
14
|
+
interactive: HexColor;
|
|
15
|
+
diffAdd: HexColor;
|
|
16
|
+
diffDelete: HexColor;
|
|
17
|
+
}
|
|
18
|
+
export interface ThemePaletteColors {
|
|
19
|
+
neutral: HexColor;
|
|
20
|
+
ink: HexColor;
|
|
21
|
+
primary: HexColor;
|
|
22
|
+
success: HexColor;
|
|
23
|
+
warning: HexColor;
|
|
24
|
+
error: HexColor;
|
|
25
|
+
info: HexColor;
|
|
26
|
+
accent?: HexColor;
|
|
27
|
+
interactive?: HexColor;
|
|
28
|
+
diffAdd?: HexColor;
|
|
29
|
+
diffDelete?: HexColor;
|
|
30
|
+
}
|
|
31
|
+
type ThemeVariantBase = {
|
|
32
|
+
overrides?: Record<string, ColorValue>;
|
|
33
|
+
v2Overrides?: Record<string, V2ColorValue>;
|
|
34
|
+
};
|
|
35
|
+
export type ThemeVariant = ({
|
|
36
|
+
seeds: ThemeSeedColors;
|
|
37
|
+
palette?: never;
|
|
38
|
+
} & ThemeVariantBase) | ({
|
|
39
|
+
palette: ThemePaletteColors;
|
|
40
|
+
seeds?: never;
|
|
41
|
+
} & ThemeVariantBase);
|
|
42
|
+
export interface DesktopTheme {
|
|
43
|
+
$schema?: string;
|
|
44
|
+
name: string;
|
|
45
|
+
id: string;
|
|
46
|
+
light: ThemeVariant;
|
|
47
|
+
dark: ThemeVariant;
|
|
48
|
+
}
|
|
49
|
+
export type TokenCategory = "background" | "surface" | "text" | "border" | "icon" | "input" | "button" | "syntax" | "markdown" | "diff" | "avatar";
|
|
50
|
+
export type ThemeToken = string;
|
|
51
|
+
export type CssVarRef = `var(--${string})`;
|
|
52
|
+
export type ColorValue = HexColor | CssVarRef;
|
|
53
|
+
export type V2ColorValue = HexColor | CssVarRef | string;
|
|
54
|
+
export type ResolvedTheme = Record<ThemeToken, ColorValue>;
|
|
55
|
+
export type ResolvedV2Theme = Record<string, V2ColorValue>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { V2ColorValue } from "../types";
|
|
2
|
+
/** Fixed project avatar colors (OC-2); theme-independent like v1 `avatar-background-*`. */
|
|
3
|
+
export declare const V2_AVATAR_FG = "#ffffffff";
|
|
4
|
+
export declare const V2_AVATAR_LIGHT: Record<string, V2ColorValue>;
|
|
5
|
+
export declare const V2_AVATAR_DARK: Record<string, V2ColorValue>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DesktopTheme, ResolvedV2Theme, ThemeVariant, V2ColorValue } from "../types";
|
|
2
|
+
/** Build v2 primitive ramps (100 = lightest). Alpha ramps are static in `v2/styles/colors.css`. */
|
|
3
|
+
export declare function generateV2Primitives(variant: ThemeVariant, isDark: boolean): Record<string, V2ColorValue>;
|
|
4
|
+
export declare function resolveThemeVariantV2(variant: ThemeVariant, isDark: boolean): ResolvedV2Theme;
|
|
5
|
+
export declare function resolveThemeV2(theme: DesktopTheme): {
|
|
6
|
+
light: ResolvedV2Theme;
|
|
7
|
+
dark: ResolvedV2Theme;
|
|
8
|
+
};
|
|
9
|
+
export declare function themeV2ToCss(tokens: ResolvedV2Theme): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Accordion as Kobalte } from "@kobalte/core/accordion";
|
|
2
|
+
import { type ComponentProps, type ParentProps } from "solid-js";
|
|
3
|
+
import "./accordion-v2.css";
|
|
4
|
+
export interface AccordionV2Props extends ComponentProps<typeof Kobalte> {
|
|
5
|
+
}
|
|
6
|
+
export interface AccordionV2ItemProps extends ComponentProps<typeof Kobalte.Item> {
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionV2HeaderProps extends ComponentProps<typeof Kobalte.Header> {
|
|
9
|
+
}
|
|
10
|
+
export interface AccordionV2TriggerProps extends ComponentProps<typeof Kobalte.Trigger> {
|
|
11
|
+
hideChevron?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface AccordionV2ContentProps extends ComponentProps<typeof Kobalte.Content> {
|
|
14
|
+
}
|
|
15
|
+
declare function AccordionV2Root(props: ParentProps<AccordionV2Props>): import("solid-js").JSX.Element;
|
|
16
|
+
declare function AccordionV2Item(props: ParentProps<AccordionV2ItemProps>): import("solid-js").JSX.Element;
|
|
17
|
+
declare function AccordionV2Header(props: ParentProps<AccordionV2HeaderProps>): import("solid-js").JSX.Element;
|
|
18
|
+
declare function AccordionV2Trigger(props: ParentProps<AccordionV2TriggerProps>): import("solid-js").JSX.Element;
|
|
19
|
+
declare function AccordionV2Content(props: ParentProps<AccordionV2ContentProps>): import("solid-js").JSX.Element;
|
|
20
|
+
export declare const AccordionV2: typeof AccordionV2Root & {
|
|
21
|
+
Item: typeof AccordionV2Item;
|
|
22
|
+
Header: typeof AccordionV2Header;
|
|
23
|
+
Trigger: typeof AccordionV2Trigger;
|
|
24
|
+
Content: typeof AccordionV2Content;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
import "./avatar-v2.css";
|
|
3
|
+
export interface AvatarProps extends ComponentProps<"div"> {
|
|
4
|
+
fallback: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
background?: string;
|
|
7
|
+
foreground?: string;
|
|
8
|
+
size?: "small" | "normal" | "large";
|
|
9
|
+
kind?: "user" | "org";
|
|
10
|
+
}
|
|
11
|
+
export declare function Avatar(props: AvatarProps): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Button as Kobalte } from "@kobalte/core/button";
|
|
2
|
+
import { type ComponentProps } from "solid-js";
|
|
3
|
+
import { type IconProps } from "./icon";
|
|
4
|
+
import "./button-v2.css";
|
|
5
|
+
export interface ButtonV2Props extends ComponentProps<typeof Kobalte>, Pick<ComponentProps<"button">, "class" | "classList" | "children"> {
|
|
6
|
+
size?: "small" | "normal" | "large";
|
|
7
|
+
variant?: "neutral" | "danger" | "outline" | "contrast" | "ghost" | "ghost-muted" | "loading";
|
|
8
|
+
icon?: IconProps["name"];
|
|
9
|
+
}
|
|
10
|
+
export declare function ButtonV2(props: ButtonV2Props): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Checkbox as Kobalte } from "@kobalte/core/checkbox";
|
|
2
|
+
import { type JSX } from "solid-js";
|
|
3
|
+
import type { ComponentProps } from "solid-js";
|
|
4
|
+
import "./checkbox-v2.css";
|
|
5
|
+
export interface CheckboxV2Props extends ComponentProps<typeof Kobalte> {
|
|
6
|
+
label: JSX.Element;
|
|
7
|
+
description?: JSX.Element;
|
|
8
|
+
hideLabel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function CheckboxV2(props: CheckboxV2Props): JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ComponentProps, type JSXElement, type ParentProps } from "solid-js";
|
|
2
|
+
import "./dialog-v2.css";
|
|
3
|
+
export interface DialogProps extends ParentProps {
|
|
4
|
+
size?: "normal" | "large" | "x-large";
|
|
5
|
+
variant?: "default" | "settings";
|
|
6
|
+
class?: ComponentProps<"div">["class"];
|
|
7
|
+
classList?: ComponentProps<"div">["classList"];
|
|
8
|
+
fit?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DialogHeaderProps extends ParentProps {
|
|
11
|
+
closeLabel?: string;
|
|
12
|
+
hideClose?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface DialogTitleGroupProps {
|
|
15
|
+
title?: JSXElement;
|
|
16
|
+
description: JSXElement;
|
|
17
|
+
}
|
|
18
|
+
export declare function DialogFooter(props: ParentProps): import("solid-js").JSX.Element;
|
|
19
|
+
export declare function DialogBody(props: ParentProps & {
|
|
20
|
+
class?: ComponentProps<"div">["class"];
|
|
21
|
+
}): import("solid-js").JSX.Element;
|
|
22
|
+
export declare function DialogTitle(props: ParentProps): import("solid-js").JSX.Element;
|
|
23
|
+
export declare function DialogTitleGroup(props: DialogTitleGroupProps): import("solid-js").JSX.Element;
|
|
24
|
+
export declare function DialogHeader(props: DialogHeaderProps): import("solid-js").JSX.Element;
|
|
25
|
+
export declare function Dialog(props: DialogProps): import("solid-js").JSX.Element;
|
|
26
|
+
export declare const DialogV2: typeof Dialog;
|