@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,308 @@
|
|
|
1
|
+
import { ContextMenu as Kobalte } from "@kobalte/core/context-menu"
|
|
2
|
+
import { splitProps } from "solid-js"
|
|
3
|
+
import type { ComponentProps, ParentProps } from "solid-js"
|
|
4
|
+
|
|
5
|
+
export interface ContextMenuProps extends ComponentProps<typeof Kobalte> {}
|
|
6
|
+
export interface ContextMenuTriggerProps extends ComponentProps<typeof Kobalte.Trigger> {}
|
|
7
|
+
export interface ContextMenuIconProps extends ComponentProps<typeof Kobalte.Icon> {}
|
|
8
|
+
export interface ContextMenuPortalProps extends ComponentProps<typeof Kobalte.Portal> {}
|
|
9
|
+
export interface ContextMenuContentProps extends ComponentProps<typeof Kobalte.Content> {}
|
|
10
|
+
export interface ContextMenuArrowProps extends ComponentProps<typeof Kobalte.Arrow> {}
|
|
11
|
+
export interface ContextMenuSeparatorProps extends ComponentProps<typeof Kobalte.Separator> {}
|
|
12
|
+
export interface ContextMenuGroupProps extends ComponentProps<typeof Kobalte.Group> {}
|
|
13
|
+
export interface ContextMenuGroupLabelProps extends ComponentProps<typeof Kobalte.GroupLabel> {}
|
|
14
|
+
export interface ContextMenuItemProps extends ComponentProps<typeof Kobalte.Item> {}
|
|
15
|
+
export interface ContextMenuItemLabelProps extends ComponentProps<typeof Kobalte.ItemLabel> {}
|
|
16
|
+
export interface ContextMenuItemDescriptionProps extends ComponentProps<typeof Kobalte.ItemDescription> {}
|
|
17
|
+
export interface ContextMenuItemIndicatorProps extends ComponentProps<typeof Kobalte.ItemIndicator> {}
|
|
18
|
+
export interface ContextMenuRadioGroupProps extends ComponentProps<typeof Kobalte.RadioGroup> {}
|
|
19
|
+
export interface ContextMenuRadioItemProps extends ComponentProps<typeof Kobalte.RadioItem> {}
|
|
20
|
+
export interface ContextMenuCheckboxItemProps extends ComponentProps<typeof Kobalte.CheckboxItem> {}
|
|
21
|
+
export interface ContextMenuSubProps extends ComponentProps<typeof Kobalte.Sub> {}
|
|
22
|
+
export interface ContextMenuSubTriggerProps extends ComponentProps<typeof Kobalte.SubTrigger> {}
|
|
23
|
+
export interface ContextMenuSubContentProps extends ComponentProps<typeof Kobalte.SubContent> {}
|
|
24
|
+
|
|
25
|
+
function ContextMenuRoot(props: ContextMenuProps) {
|
|
26
|
+
return <Kobalte {...props} data-component="context-menu" />
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function ContextMenuTrigger(props: ParentProps<ContextMenuTriggerProps>) {
|
|
30
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
31
|
+
return (
|
|
32
|
+
<Kobalte.Trigger
|
|
33
|
+
{...rest}
|
|
34
|
+
data-slot="context-menu-trigger"
|
|
35
|
+
classList={{
|
|
36
|
+
...local.classList,
|
|
37
|
+
[local.class ?? ""]: !!local.class,
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
{local.children}
|
|
41
|
+
</Kobalte.Trigger>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function ContextMenuIcon(props: ParentProps<ContextMenuIconProps>) {
|
|
46
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
47
|
+
return (
|
|
48
|
+
<Kobalte.Icon
|
|
49
|
+
{...rest}
|
|
50
|
+
data-slot="context-menu-icon"
|
|
51
|
+
classList={{
|
|
52
|
+
...local.classList,
|
|
53
|
+
[local.class ?? ""]: !!local.class,
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{local.children}
|
|
57
|
+
</Kobalte.Icon>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function ContextMenuPortal(props: ContextMenuPortalProps) {
|
|
62
|
+
return <Kobalte.Portal {...props} />
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function ContextMenuContent(props: ParentProps<ContextMenuContentProps>) {
|
|
66
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
67
|
+
return (
|
|
68
|
+
<Kobalte.Content
|
|
69
|
+
{...rest}
|
|
70
|
+
data-component="context-menu-content"
|
|
71
|
+
classList={{
|
|
72
|
+
...local.classList,
|
|
73
|
+
[local.class ?? ""]: !!local.class,
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
{local.children}
|
|
77
|
+
</Kobalte.Content>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ContextMenuArrow(props: ContextMenuArrowProps) {
|
|
82
|
+
const [local, rest] = splitProps(props, ["class", "classList"])
|
|
83
|
+
return (
|
|
84
|
+
<Kobalte.Arrow
|
|
85
|
+
{...rest}
|
|
86
|
+
data-slot="context-menu-arrow"
|
|
87
|
+
classList={{
|
|
88
|
+
...local.classList,
|
|
89
|
+
[local.class ?? ""]: !!local.class,
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function ContextMenuSeparator(props: ContextMenuSeparatorProps) {
|
|
96
|
+
const [local, rest] = splitProps(props, ["class", "classList"])
|
|
97
|
+
return (
|
|
98
|
+
<Kobalte.Separator
|
|
99
|
+
{...rest}
|
|
100
|
+
data-slot="context-menu-separator"
|
|
101
|
+
classList={{
|
|
102
|
+
...local.classList,
|
|
103
|
+
[local.class ?? ""]: !!local.class,
|
|
104
|
+
}}
|
|
105
|
+
/>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function ContextMenuGroup(props: ParentProps<ContextMenuGroupProps>) {
|
|
110
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
111
|
+
return (
|
|
112
|
+
<Kobalte.Group
|
|
113
|
+
{...rest}
|
|
114
|
+
data-slot="context-menu-group"
|
|
115
|
+
classList={{
|
|
116
|
+
...local.classList,
|
|
117
|
+
[local.class ?? ""]: !!local.class,
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
{local.children}
|
|
121
|
+
</Kobalte.Group>
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function ContextMenuGroupLabel(props: ParentProps<ContextMenuGroupLabelProps>) {
|
|
126
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
127
|
+
return (
|
|
128
|
+
<Kobalte.GroupLabel
|
|
129
|
+
{...rest}
|
|
130
|
+
data-slot="context-menu-group-label"
|
|
131
|
+
classList={{
|
|
132
|
+
...local.classList,
|
|
133
|
+
[local.class ?? ""]: !!local.class,
|
|
134
|
+
}}
|
|
135
|
+
>
|
|
136
|
+
{local.children}
|
|
137
|
+
</Kobalte.GroupLabel>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function ContextMenuItem(props: ParentProps<ContextMenuItemProps>) {
|
|
142
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
143
|
+
return (
|
|
144
|
+
<Kobalte.Item
|
|
145
|
+
{...rest}
|
|
146
|
+
data-slot="context-menu-item"
|
|
147
|
+
classList={{
|
|
148
|
+
...local.classList,
|
|
149
|
+
[local.class ?? ""]: !!local.class,
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
{local.children}
|
|
153
|
+
</Kobalte.Item>
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function ContextMenuItemLabel(props: ParentProps<ContextMenuItemLabelProps>) {
|
|
158
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
159
|
+
return (
|
|
160
|
+
<Kobalte.ItemLabel
|
|
161
|
+
{...rest}
|
|
162
|
+
data-slot="context-menu-item-label"
|
|
163
|
+
classList={{
|
|
164
|
+
...local.classList,
|
|
165
|
+
[local.class ?? ""]: !!local.class,
|
|
166
|
+
}}
|
|
167
|
+
>
|
|
168
|
+
{local.children}
|
|
169
|
+
</Kobalte.ItemLabel>
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function ContextMenuItemDescription(props: ParentProps<ContextMenuItemDescriptionProps>) {
|
|
174
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
175
|
+
return (
|
|
176
|
+
<Kobalte.ItemDescription
|
|
177
|
+
{...rest}
|
|
178
|
+
data-slot="context-menu-item-description"
|
|
179
|
+
classList={{
|
|
180
|
+
...local.classList,
|
|
181
|
+
[local.class ?? ""]: !!local.class,
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
{local.children}
|
|
185
|
+
</Kobalte.ItemDescription>
|
|
186
|
+
)
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function ContextMenuItemIndicator(props: ParentProps<ContextMenuItemIndicatorProps>) {
|
|
190
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
191
|
+
return (
|
|
192
|
+
<Kobalte.ItemIndicator
|
|
193
|
+
{...rest}
|
|
194
|
+
data-slot="context-menu-item-indicator"
|
|
195
|
+
classList={{
|
|
196
|
+
...local.classList,
|
|
197
|
+
[local.class ?? ""]: !!local.class,
|
|
198
|
+
}}
|
|
199
|
+
>
|
|
200
|
+
{local.children}
|
|
201
|
+
</Kobalte.ItemIndicator>
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function ContextMenuRadioGroup(props: ParentProps<ContextMenuRadioGroupProps>) {
|
|
206
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
207
|
+
return (
|
|
208
|
+
<Kobalte.RadioGroup
|
|
209
|
+
{...rest}
|
|
210
|
+
data-slot="context-menu-radio-group"
|
|
211
|
+
classList={{
|
|
212
|
+
...local.classList,
|
|
213
|
+
[local.class ?? ""]: !!local.class,
|
|
214
|
+
}}
|
|
215
|
+
>
|
|
216
|
+
{local.children}
|
|
217
|
+
</Kobalte.RadioGroup>
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function ContextMenuRadioItem(props: ParentProps<ContextMenuRadioItemProps>) {
|
|
222
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
223
|
+
return (
|
|
224
|
+
<Kobalte.RadioItem
|
|
225
|
+
{...rest}
|
|
226
|
+
data-slot="context-menu-radio-item"
|
|
227
|
+
classList={{
|
|
228
|
+
...local.classList,
|
|
229
|
+
[local.class ?? ""]: !!local.class,
|
|
230
|
+
}}
|
|
231
|
+
>
|
|
232
|
+
{local.children}
|
|
233
|
+
</Kobalte.RadioItem>
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function ContextMenuCheckboxItem(props: ParentProps<ContextMenuCheckboxItemProps>) {
|
|
238
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
239
|
+
return (
|
|
240
|
+
<Kobalte.CheckboxItem
|
|
241
|
+
{...rest}
|
|
242
|
+
data-slot="context-menu-checkbox-item"
|
|
243
|
+
classList={{
|
|
244
|
+
...local.classList,
|
|
245
|
+
[local.class ?? ""]: !!local.class,
|
|
246
|
+
}}
|
|
247
|
+
>
|
|
248
|
+
{local.children}
|
|
249
|
+
</Kobalte.CheckboxItem>
|
|
250
|
+
)
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function ContextMenuSub(props: ContextMenuSubProps) {
|
|
254
|
+
return <Kobalte.Sub {...props} />
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function ContextMenuSubTrigger(props: ParentProps<ContextMenuSubTriggerProps>) {
|
|
258
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
259
|
+
return (
|
|
260
|
+
<Kobalte.SubTrigger
|
|
261
|
+
{...rest}
|
|
262
|
+
data-slot="context-menu-sub-trigger"
|
|
263
|
+
classList={{
|
|
264
|
+
...local.classList,
|
|
265
|
+
[local.class ?? ""]: !!local.class,
|
|
266
|
+
}}
|
|
267
|
+
>
|
|
268
|
+
{local.children}
|
|
269
|
+
</Kobalte.SubTrigger>
|
|
270
|
+
)
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function ContextMenuSubContent(props: ParentProps<ContextMenuSubContentProps>) {
|
|
274
|
+
const [local, rest] = splitProps(props, ["class", "classList", "children"])
|
|
275
|
+
return (
|
|
276
|
+
<Kobalte.SubContent
|
|
277
|
+
{...rest}
|
|
278
|
+
data-component="context-menu-sub-content"
|
|
279
|
+
classList={{
|
|
280
|
+
...local.classList,
|
|
281
|
+
[local.class ?? ""]: !!local.class,
|
|
282
|
+
}}
|
|
283
|
+
>
|
|
284
|
+
{local.children}
|
|
285
|
+
</Kobalte.SubContent>
|
|
286
|
+
)
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export const ContextMenu = Object.assign(ContextMenuRoot, {
|
|
290
|
+
Trigger: ContextMenuTrigger,
|
|
291
|
+
Icon: ContextMenuIcon,
|
|
292
|
+
Portal: ContextMenuPortal,
|
|
293
|
+
Content: ContextMenuContent,
|
|
294
|
+
Arrow: ContextMenuArrow,
|
|
295
|
+
Separator: ContextMenuSeparator,
|
|
296
|
+
Group: ContextMenuGroup,
|
|
297
|
+
GroupLabel: ContextMenuGroupLabel,
|
|
298
|
+
Item: ContextMenuItem,
|
|
299
|
+
ItemLabel: ContextMenuItemLabel,
|
|
300
|
+
ItemDescription: ContextMenuItemDescription,
|
|
301
|
+
ItemIndicator: ContextMenuItemIndicator,
|
|
302
|
+
RadioGroup: ContextMenuRadioGroup,
|
|
303
|
+
RadioItem: ContextMenuRadioItem,
|
|
304
|
+
CheckboxItem: ContextMenuCheckboxItem,
|
|
305
|
+
Sub: ContextMenuSub,
|
|
306
|
+
SubTrigger: ContextMenuSubTrigger,
|
|
307
|
+
SubContent: ContextMenuSubContent,
|
|
308
|
+
})
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/* [data-component="dialog-trigger"] { } */
|
|
2
|
+
|
|
3
|
+
[data-component="dialog-overlay"] {
|
|
4
|
+
position: fixed;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: 50;
|
|
7
|
+
background-color: hsl(from var(--background-base) h s l / 0.2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-component="dialog"] {
|
|
11
|
+
position: fixed;
|
|
12
|
+
inset: 0;
|
|
13
|
+
z-index: 50;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
|
|
19
|
+
[data-slot="dialog-container"] {
|
|
20
|
+
position: relative;
|
|
21
|
+
z-index: 50;
|
|
22
|
+
width: min(calc(100vw - 16px), 640px);
|
|
23
|
+
height: min(calc(100vh - 16px), 512px);
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-items: start;
|
|
28
|
+
overflow: visible;
|
|
29
|
+
|
|
30
|
+
[data-slot="dialog-content"] {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
align-self: stretch;
|
|
35
|
+
width: 100%;
|
|
36
|
+
max-height: 100%;
|
|
37
|
+
min-height: 280px;
|
|
38
|
+
overflow: auto;
|
|
39
|
+
pointer-events: auto;
|
|
40
|
+
|
|
41
|
+
/* Hide scrollbar */
|
|
42
|
+
scrollbar-width: none;
|
|
43
|
+
-ms-overflow-style: none;
|
|
44
|
+
&::-webkit-scrollbar {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* padding: 8px; */
|
|
49
|
+
/* padding: 8px 8px 0 8px; */
|
|
50
|
+
border-radius: var(--radius-xl);
|
|
51
|
+
background: var(--surface-raised-stronger-non-alpha);
|
|
52
|
+
background-clip: padding-box;
|
|
53
|
+
box-shadow: var(--shadow-lg-border-base);
|
|
54
|
+
|
|
55
|
+
[data-slot="dialog-header"] {
|
|
56
|
+
display: flex;
|
|
57
|
+
padding: 16px 20px;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
align-items: center;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
align-self: stretch;
|
|
62
|
+
|
|
63
|
+
[data-slot="dialog-title"] {
|
|
64
|
+
color: var(--text-strong);
|
|
65
|
+
|
|
66
|
+
/* text-16-medium */
|
|
67
|
+
font-family: var(--font-family-sans);
|
|
68
|
+
font-size: var(--font-size-large);
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: var(--font-weight-medium);
|
|
71
|
+
line-height: var(--line-height-x-large); /* 150% */
|
|
72
|
+
letter-spacing: var(--letter-spacing-tight);
|
|
73
|
+
}
|
|
74
|
+
/* [data-slot="dialog-close-button"] {} */
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-slot="dialog-description"] {
|
|
78
|
+
display: flex;
|
|
79
|
+
padding: 16px;
|
|
80
|
+
padding-left: 24px;
|
|
81
|
+
padding-top: 0;
|
|
82
|
+
margin-top: -8px;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
align-items: center;
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
align-self: stretch;
|
|
87
|
+
|
|
88
|
+
color: var(--text-base);
|
|
89
|
+
|
|
90
|
+
/* text-14-regular */
|
|
91
|
+
font-family: var(--font-family-sans);
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
font-weight: var(--font-weight-regular);
|
|
95
|
+
line-height: var(--line-height-large); /* 142.857% */
|
|
96
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-slot="dialog-body"] {
|
|
100
|
+
width: 100%;
|
|
101
|
+
position: relative;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
flex: 1;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
|
|
107
|
+
&:focus-visible {
|
|
108
|
+
outline: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
&:focus-visible {
|
|
112
|
+
outline: none;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&[data-fit] {
|
|
118
|
+
[data-slot="dialog-container"] {
|
|
119
|
+
height: auto;
|
|
120
|
+
|
|
121
|
+
[data-slot="dialog-content"] {
|
|
122
|
+
min-height: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&[data-size="large"] [data-slot="dialog-container"] {
|
|
128
|
+
width: min(calc(100vw - 32px), 800px);
|
|
129
|
+
height: min(calc(100vh - 32px), 600px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&[data-size="x-large"] [data-slot="dialog-container"] {
|
|
133
|
+
width: min(calc(100vw - 32px), 980px);
|
|
134
|
+
height: min(calc(100vh - 92px), 600px);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-component="dialog"][data-transition] [data-slot="dialog-content"] {
|
|
139
|
+
animation: contentHide 100ms ease-in forwards;
|
|
140
|
+
|
|
141
|
+
&[data-expanded] {
|
|
142
|
+
animation: contentShow 150ms ease-out;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@keyframes overlayShow {
|
|
147
|
+
from {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
}
|
|
150
|
+
to {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@keyframes overlayHide {
|
|
155
|
+
from {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
158
|
+
to {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
@keyframes contentShow {
|
|
163
|
+
from {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
transform: scale(0.98);
|
|
166
|
+
}
|
|
167
|
+
to {
|
|
168
|
+
opacity: 1;
|
|
169
|
+
transform: scale(1);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
@keyframes contentHide {
|
|
173
|
+
from {
|
|
174
|
+
opacity: 1;
|
|
175
|
+
transform: scale(1);
|
|
176
|
+
}
|
|
177
|
+
to {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
transform: scale(0.98);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Dialog as Kobalte } from "@kobalte/core/dialog"
|
|
2
|
+
import { ComponentProps, JSXElement, Match, ParentProps, Show, Switch } from "solid-js"
|
|
3
|
+
import { useI18n } from "../context/i18n"
|
|
4
|
+
import { IconButton } from "./icon-button"
|
|
5
|
+
|
|
6
|
+
export interface DialogProps extends ParentProps {
|
|
7
|
+
title?: JSXElement
|
|
8
|
+
description?: JSXElement
|
|
9
|
+
action?: JSXElement
|
|
10
|
+
size?: "normal" | "large" | "x-large"
|
|
11
|
+
class?: ComponentProps<"div">["class"]
|
|
12
|
+
classList?: ComponentProps<"div">["classList"]
|
|
13
|
+
fit?: boolean
|
|
14
|
+
transition?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function Dialog(props: DialogProps) {
|
|
18
|
+
const i18n = useI18n()
|
|
19
|
+
return (
|
|
20
|
+
<div
|
|
21
|
+
data-component="dialog"
|
|
22
|
+
data-fit={props.fit ? true : undefined}
|
|
23
|
+
data-size={props.size || "normal"}
|
|
24
|
+
data-transition={props.transition ? true : undefined}
|
|
25
|
+
>
|
|
26
|
+
<div data-slot="dialog-container">
|
|
27
|
+
<Kobalte.Content
|
|
28
|
+
data-slot="dialog-content"
|
|
29
|
+
data-no-header={!props.title && !props.action ? "" : undefined}
|
|
30
|
+
classList={{
|
|
31
|
+
...props.classList,
|
|
32
|
+
[props.class ?? ""]: !!props.class,
|
|
33
|
+
}}
|
|
34
|
+
onOpenAutoFocus={(e) => {
|
|
35
|
+
const target = e.currentTarget as HTMLElement | null
|
|
36
|
+
const autofocusEl = target?.querySelector("[autofocus]") as HTMLElement | null
|
|
37
|
+
if (autofocusEl) {
|
|
38
|
+
e.preventDefault()
|
|
39
|
+
autofocusEl.focus()
|
|
40
|
+
}
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<Show when={props.title || props.action}>
|
|
44
|
+
<div data-slot="dialog-header">
|
|
45
|
+
<Show when={props.title}>
|
|
46
|
+
<Kobalte.Title data-slot="dialog-title">{props.title}</Kobalte.Title>
|
|
47
|
+
</Show>
|
|
48
|
+
<Switch>
|
|
49
|
+
<Match when={props.action}>{props.action}</Match>
|
|
50
|
+
<Match when={true}>
|
|
51
|
+
<Kobalte.CloseButton
|
|
52
|
+
data-slot="dialog-close-button"
|
|
53
|
+
as={IconButton}
|
|
54
|
+
icon="close"
|
|
55
|
+
variant="ghost"
|
|
56
|
+
aria-label={i18n.t("ui.common.close")}
|
|
57
|
+
/>
|
|
58
|
+
</Match>
|
|
59
|
+
</Switch>
|
|
60
|
+
</div>
|
|
61
|
+
</Show>
|
|
62
|
+
<Show when={props.description}>
|
|
63
|
+
<Kobalte.Description data-slot="dialog-description" style={{ "margin-left": "-4px" }}>
|
|
64
|
+
{props.description}
|
|
65
|
+
</Kobalte.Description>
|
|
66
|
+
</Show>
|
|
67
|
+
<div data-slot="dialog-body">{props.children}</div>
|
|
68
|
+
</Kobalte.Content>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[data-component="diff-changes"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 8px;
|
|
4
|
+
justify-content: flex-end;
|
|
5
|
+
align-items: center;
|
|
6
|
+
|
|
7
|
+
[data-slot="diff-changes-additions"] {
|
|
8
|
+
font-family: var(--font-family-mono);
|
|
9
|
+
font-feature-settings: var(--font-family-mono--font-feature-settings);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: var(--font-weight-regular);
|
|
13
|
+
line-height: var(--line-height-large);
|
|
14
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
15
|
+
text-align: right;
|
|
16
|
+
color: var(--text-diff-add-base);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="diff-changes-deletions"] {
|
|
20
|
+
font-family: var(--font-family-mono);
|
|
21
|
+
font-feature-settings: var(--font-family-mono--font-feature-settings);
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: var(--font-weight-regular);
|
|
25
|
+
line-height: var(--line-height-large);
|
|
26
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
27
|
+
text-align: right;
|
|
28
|
+
color: var(--text-diff-delete-base);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-component="diff-changes"][data-variant="bars"] {
|
|
33
|
+
width: 18px;
|
|
34
|
+
height: 14px;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
|
|
37
|
+
svg {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
}
|