@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,32 @@
|
|
|
1
|
+
import { Dialog as Kobalte } from "@kobalte/core/dialog"
|
|
2
|
+
import { useI18n } from "../context/i18n"
|
|
3
|
+
import { IconButton } from "./icon-button"
|
|
4
|
+
|
|
5
|
+
export interface ImagePreviewProps {
|
|
6
|
+
src: string
|
|
7
|
+
alt?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function ImagePreview(props: ImagePreviewProps) {
|
|
11
|
+
const i18n = useI18n()
|
|
12
|
+
return (
|
|
13
|
+
<div data-component="image-preview">
|
|
14
|
+
<div data-slot="image-preview-container">
|
|
15
|
+
<Kobalte.Content data-slot="image-preview-content">
|
|
16
|
+
<div data-slot="image-preview-header">
|
|
17
|
+
<Kobalte.CloseButton
|
|
18
|
+
data-slot="image-preview-close"
|
|
19
|
+
as={IconButton}
|
|
20
|
+
icon="close"
|
|
21
|
+
variant="ghost"
|
|
22
|
+
aria-label={i18n.t("ui.common.close")}
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
<div data-slot="image-preview-body">
|
|
26
|
+
<img src={props.src} alt={props.alt ?? i18n.t("ui.imagePreview.alt")} data-slot="image-preview-image" />
|
|
27
|
+
</div>
|
|
28
|
+
</Kobalte.Content>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[data-component="inline-input"] {
|
|
2
|
+
color: inherit;
|
|
3
|
+
background: transparent;
|
|
4
|
+
border: 0;
|
|
5
|
+
border-radius: var(--radius-md);
|
|
6
|
+
padding: 0;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
font: inherit;
|
|
9
|
+
letter-spacing: inherit;
|
|
10
|
+
line-height: inherit;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
|
|
13
|
+
&:focus {
|
|
14
|
+
outline: none;
|
|
15
|
+
box-shadow: var(--inline-input-shadow, 0 0 0 1px var(--border-interactive-focus));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentProps } from "solid-js"
|
|
2
|
+
import { splitProps } from "solid-js"
|
|
3
|
+
|
|
4
|
+
export type InlineInputProps = ComponentProps<"input"> & {
|
|
5
|
+
width?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function InlineInput(props: InlineInputProps) {
|
|
9
|
+
const [local, others] = splitProps(props, ["class", "width", "style"])
|
|
10
|
+
|
|
11
|
+
const style = () => {
|
|
12
|
+
if (!local.style) return { width: local.width }
|
|
13
|
+
if (typeof local.style === "string") {
|
|
14
|
+
if (!local.width) return local.style
|
|
15
|
+
return `${local.style};width:${local.width}`
|
|
16
|
+
}
|
|
17
|
+
if (!local.width) return local.style
|
|
18
|
+
return { ...local.style, width: local.width }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return <input data-component="inline-input" class={local.class} style={style()} {...others} />
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[data-component="keybind"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
height: 20px;
|
|
7
|
+
padding: 0 8px;
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
background: var(--surface-base);
|
|
10
|
+
box-shadow: var(--shadow-xxs-border);
|
|
11
|
+
|
|
12
|
+
/* text-12-regular */
|
|
13
|
+
font-family: var(--font-family-sans);
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
font-weight: var(--font-weight-regular);
|
|
16
|
+
line-height: 1;
|
|
17
|
+
color: var(--text-weak);
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentProps, ParentProps } from "solid-js"
|
|
2
|
+
|
|
3
|
+
export interface KeybindProps extends ParentProps {
|
|
4
|
+
class?: string
|
|
5
|
+
classList?: ComponentProps<"span">["classList"]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function Keybind(props: KeybindProps) {
|
|
9
|
+
return (
|
|
10
|
+
<span
|
|
11
|
+
data-component="keybind"
|
|
12
|
+
classList={{
|
|
13
|
+
...props.classList,
|
|
14
|
+
[props.class ?? ""]: !!props.class,
|
|
15
|
+
}}
|
|
16
|
+
>
|
|
17
|
+
{props.children}
|
|
18
|
+
</span>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
@property --bottom-fade {
|
|
2
|
+
syntax: "<length>";
|
|
3
|
+
inherits: false;
|
|
4
|
+
initial-value: 0px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes scroll {
|
|
8
|
+
0% {
|
|
9
|
+
--bottom-fade: 20px;
|
|
10
|
+
}
|
|
11
|
+
90% {
|
|
12
|
+
--bottom-fade: 20px;
|
|
13
|
+
}
|
|
14
|
+
100% {
|
|
15
|
+
--bottom-fade: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-component="list"] {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 12px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
/*padding: 0 12px;*/
|
|
25
|
+
|
|
26
|
+
[data-slot="list-search-wrapper"] {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 8px;
|
|
31
|
+
align-self: stretch;
|
|
32
|
+
margin-bottom: 4px;
|
|
33
|
+
|
|
34
|
+
> [data-component="icon-button"] {
|
|
35
|
+
width: 24px;
|
|
36
|
+
height: 24px;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
transition: opacity 0.15s ease;
|
|
41
|
+
|
|
42
|
+
&:hover:not(:disabled),
|
|
43
|
+
&:focus-visible:not(:disabled),
|
|
44
|
+
&:active:not(:disabled) {
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
opacity: 0.7;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:hover:not(:disabled) [data-slot="icon-svg"] {
|
|
50
|
+
color: var(--icon-hover);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:active:not(:disabled) [data-slot="icon-svg"] {
|
|
54
|
+
color: var(--icon-active);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="list-search"] {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex: 1;
|
|
62
|
+
padding: 8px;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 12px;
|
|
65
|
+
|
|
66
|
+
border-radius: var(--radius-md);
|
|
67
|
+
background: var(--surface-base);
|
|
68
|
+
|
|
69
|
+
[data-slot="list-search-container"] {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 8px;
|
|
73
|
+
flex: 1 0 0;
|
|
74
|
+
max-height: 20px;
|
|
75
|
+
|
|
76
|
+
[data-slot="list-search-input"] {
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
&[data-slot="input-input"] {
|
|
80
|
+
line-height: 20px;
|
|
81
|
+
max-height: 20px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
> [data-component="icon-button"] {
|
|
87
|
+
width: 20px;
|
|
88
|
+
height: 20px;
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
transition: opacity 0.15s ease;
|
|
92
|
+
|
|
93
|
+
&:hover:not(:disabled),
|
|
94
|
+
&:focus-visible:not(:disabled),
|
|
95
|
+
&:active:not(:disabled) {
|
|
96
|
+
background-color: transparent;
|
|
97
|
+
opacity: 0.7;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:hover:not(:disabled) [data-slot="icon-svg"] {
|
|
101
|
+
color: var(--icon-hover);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:active:not(:disabled) [data-slot="icon-svg"] {
|
|
105
|
+
color: var(--icon-active);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
> [data-component="icon-button"] {
|
|
110
|
+
background-color: transparent;
|
|
111
|
+
|
|
112
|
+
&:hover:not(:disabled),
|
|
113
|
+
&:focus:not(:disabled),
|
|
114
|
+
&:active:not(:disabled) {
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:hover:not(:disabled) [data-slot="icon-svg"] {
|
|
119
|
+
color: var(--icon-hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:active:not(:disabled) [data-slot="icon-svg"] {
|
|
123
|
+
color: var(--icon-active);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-slot="list-scroll"] {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
gap: 12px;
|
|
132
|
+
overflow-y: auto;
|
|
133
|
+
overscroll-behavior: contain;
|
|
134
|
+
mask: linear-gradient(to bottom, #ffff calc(100% - var(--bottom-fade)), #0000);
|
|
135
|
+
animation: scroll;
|
|
136
|
+
animation-timeline: --scroll;
|
|
137
|
+
scroll-timeline: --scroll y;
|
|
138
|
+
scrollbar-width: none;
|
|
139
|
+
-ms-overflow-style: none;
|
|
140
|
+
&::-webkit-scrollbar {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[data-slot="list-empty-state"] {
|
|
145
|
+
display: flex;
|
|
146
|
+
padding: 32px 48px;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 8px;
|
|
151
|
+
align-self: stretch;
|
|
152
|
+
|
|
153
|
+
[data-slot="list-message"] {
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 2px;
|
|
158
|
+
max-width: 100%;
|
|
159
|
+
color: var(--text-weak);
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
|
|
162
|
+
/* text-14-regular */
|
|
163
|
+
font-family: var(--font-family-sans);
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
font-style: normal;
|
|
166
|
+
font-weight: var(--font-weight-regular);
|
|
167
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
168
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-slot="list-filter"] {
|
|
172
|
+
color: var(--text-strong);
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
text-overflow: ellipsis;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-slot="list-group"] {
|
|
179
|
+
position: relative;
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
|
|
183
|
+
&:last-child {
|
|
184
|
+
padding-bottom: 12px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[data-slot="list-header"] {
|
|
188
|
+
display: flex;
|
|
189
|
+
z-index: 10;
|
|
190
|
+
padding: 8px 12px 8px 8px;
|
|
191
|
+
justify-content: space-between;
|
|
192
|
+
align-items: center;
|
|
193
|
+
align-self: stretch;
|
|
194
|
+
background: var(--surface-raised-stronger-non-alpha);
|
|
195
|
+
position: sticky;
|
|
196
|
+
top: 0;
|
|
197
|
+
|
|
198
|
+
color: var(--text-weak);
|
|
199
|
+
|
|
200
|
+
/* text-14-medium */
|
|
201
|
+
font-family: var(--font-family-sans);
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
font-style: normal;
|
|
204
|
+
font-weight: var(--font-weight-medium);
|
|
205
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
206
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
207
|
+
|
|
208
|
+
&::after {
|
|
209
|
+
content: "";
|
|
210
|
+
position: absolute;
|
|
211
|
+
top: 100%;
|
|
212
|
+
left: 0;
|
|
213
|
+
right: 0;
|
|
214
|
+
height: 16px;
|
|
215
|
+
background: linear-gradient(to bottom, var(--surface-raised-stronger-non-alpha), transparent);
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
opacity: 0;
|
|
218
|
+
transition: opacity 0.15s ease;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&[data-stuck="true"]::after {
|
|
222
|
+
opacity: 1;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
[data-slot="list-items"] {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
align-items: flex-start;
|
|
230
|
+
align-self: stretch;
|
|
231
|
+
|
|
232
|
+
[data-slot="list-item"] {
|
|
233
|
+
display: flex;
|
|
234
|
+
position: relative;
|
|
235
|
+
width: 100%;
|
|
236
|
+
padding: 6px 8px 6px 8px;
|
|
237
|
+
align-items: center;
|
|
238
|
+
color: var(--text-strong);
|
|
239
|
+
scroll-margin-top: 28px;
|
|
240
|
+
|
|
241
|
+
/* text-14-medium */
|
|
242
|
+
font-family: var(--font-family-sans);
|
|
243
|
+
font-size: 14px;
|
|
244
|
+
font-style: normal;
|
|
245
|
+
font-weight: var(--font-weight-medium);
|
|
246
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
247
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
248
|
+
|
|
249
|
+
[data-slot="list-item-selected-icon"] {
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
flex-shrink: 0;
|
|
254
|
+
aspect-ratio: 1/1;
|
|
255
|
+
[data-component="icon"] {
|
|
256
|
+
color: var(--icon-strong-base);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
[data-slot="list-item-active-icon"] {
|
|
260
|
+
display: none;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
flex-shrink: 0;
|
|
264
|
+
aspect-ratio: 1/1;
|
|
265
|
+
[data-component="icon"] {
|
|
266
|
+
color: var(--icon-strong-base);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[data-slot="list-item-extra-icon"] {
|
|
271
|
+
color: var(--icon-base);
|
|
272
|
+
margin-left: -4px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
[data-slot="list-item-divider"] {
|
|
276
|
+
position: absolute;
|
|
277
|
+
bottom: 0;
|
|
278
|
+
left: var(--list-divider-inset, 16px);
|
|
279
|
+
right: var(--list-divider-inset, 16px);
|
|
280
|
+
height: 1px;
|
|
281
|
+
background: var(--border-weak-base);
|
|
282
|
+
pointer-events: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[data-slot="list-item"]:last-child [data-slot="list-item-divider"] {
|
|
286
|
+
display: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&[data-active="true"] {
|
|
290
|
+
border-radius: var(--radius-md);
|
|
291
|
+
background: var(--surface-raised-base-hover);
|
|
292
|
+
[data-slot="list-item-active-icon"] {
|
|
293
|
+
display: inline-flex;
|
|
294
|
+
}
|
|
295
|
+
[data-slot="list-item-extra-icon"] {
|
|
296
|
+
display: block !important;
|
|
297
|
+
color: var(--icon-strong-base) !important;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
&:active {
|
|
301
|
+
background: var(--surface-raised-base-active);
|
|
302
|
+
}
|
|
303
|
+
&:focus-visible {
|
|
304
|
+
outline: none;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[data-slot="list-item-add"] {
|
|
309
|
+
display: flex;
|
|
310
|
+
position: relative;
|
|
311
|
+
width: 100%;
|
|
312
|
+
padding: 6px 8px 6px 8px;
|
|
313
|
+
align-items: center;
|
|
314
|
+
color: var(--text-strong);
|
|
315
|
+
|
|
316
|
+
/* text-14-medium */
|
|
317
|
+
font-family: var(--font-family-sans);
|
|
318
|
+
font-size: 14px;
|
|
319
|
+
font-style: normal;
|
|
320
|
+
font-weight: var(--font-weight-medium);
|
|
321
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
322
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
323
|
+
|
|
324
|
+
[data-component="input"] {
|
|
325
|
+
width: 100%;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|