@opencode/ui 0.0.0-reserved → 2.0.0
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/actions/button/button.d.ts +10 -0
- package/dist/actions/icon-button/icon-button.d.ts +11 -0
- package/dist/actions/split-button/split-button.d.ts +5 -0
- package/dist/components/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/card.d.ts +22 -0
- package/dist/components/collapsible.d.ts +17 -0
- package/dist/components/context-menu.d.ts +80 -0
- package/dist/components/dock-surface.d.ts +7 -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/image-preview.d.ts +5 -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.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/resize-handle.d.ts +14 -0
- package/dist/components/scroll-view.d.ts +42 -0
- package/dist/components/spinner.d.ts +6 -0
- package/dist/components/sticky-accordion-header.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-strikethrough.d.ts +11 -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 +24 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/marked-base.d.ts +3 -0
- package/dist/context/marked-parser.d.ts +1 -0
- package/dist/context/marked-theme-register.d.ts +1 -0
- package/dist/context/marked-theme.d.ts +2 -0
- package/dist/context/marked.d.ts +2 -0
- package/dist/context/worker-pool.d.ts +9 -0
- package/dist/data-display/accordion/accordion.d.ts +24 -0
- package/dist/data-display/avatar/avatar.d.ts +11 -0
- package/dist/data-display/badge/badge.d.ts +7 -0
- package/dist/data-display/diff-changes/diff-changes.d.ts +12 -0
- package/dist/data-display/keybind/keybind.d.ts +7 -0
- package/dist/data-display/line-comment/line-comment.d.ts +32 -0
- package/dist/data-display/project-avatar/project-avatar.d.ts +12 -0
- package/dist/feedback/loader/loader.d.ts +3 -0
- package/dist/feedback/progress-circle/progress-circle.d.ts +9 -0
- package/dist/feedback/toast/toast.d.ts +57 -0
- package/dist/forms/checkbox/checkbox.d.ts +8 -0
- package/dist/forms/field/field.d.ts +22 -0
- package/dist/forms/inline-input/inline-input.d.ts +5 -0
- package/dist/forms/radio/radio.d.ts +16 -0
- package/dist/forms/select/select.d.ts +23 -0
- package/dist/forms/switch/switch.d.ts +9 -0
- package/dist/forms/text-input/text-input.d.ts +24 -0
- package/dist/forms/textarea/textarea.d.ts +7 -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 +48 -0
- package/dist/i18n/am.d.ts +1 -0
- package/dist/i18n/ar.d.ts +209 -0
- package/dist/i18n/az.d.ts +1 -0
- package/dist/i18n/bg.d.ts +193 -0
- package/dist/i18n/bn.d.ts +1 -0
- package/dist/i18n/br.d.ts +197 -0
- package/dist/i18n/bs.d.ts +197 -0
- package/dist/i18n/ca.d.ts +1 -0
- package/dist/i18n/cs.d.ts +1 -0
- package/dist/i18n/da.d.ts +193 -0
- package/dist/i18n/de.d.ts +193 -0
- package/dist/i18n/dv.d.ts +1 -0
- package/dist/i18n/dz.d.ts +1 -0
- package/dist/i18n/el.d.ts +1 -0
- package/dist/i18n/en.d.ts +251 -0
- package/dist/i18n/es.d.ts +197 -0
- package/dist/i18n/et.d.ts +1 -0
- package/dist/i18n/fa.d.ts +1 -0
- package/dist/i18n/fi.d.ts +1 -0
- package/dist/i18n/fo.d.ts +1 -0
- package/dist/i18n/fr.d.ts +197 -0
- package/dist/i18n/he.d.ts +197 -0
- package/dist/i18n/hi.d.ts +1 -0
- package/dist/i18n/hr.d.ts +1 -0
- package/dist/i18n/hu.d.ts +1 -0
- package/dist/i18n/hy.d.ts +1 -0
- package/dist/i18n/id.d.ts +1 -0
- package/dist/i18n/is.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/ja.d.ts +193 -0
- package/dist/i18n/ka.d.ts +1 -0
- package/dist/i18n/km.d.ts +193 -0
- package/dist/i18n/ko.d.ts +193 -0
- package/dist/i18n/lo.d.ts +193 -0
- package/dist/i18n/lt.d.ts +1 -0
- package/dist/i18n/lv.d.ts +1 -0
- package/dist/i18n/mk.d.ts +193 -0
- package/dist/i18n/mn.d.ts +193 -0
- package/dist/i18n/ms.d.ts +1 -0
- package/dist/i18n/my.d.ts +193 -0
- package/dist/i18n/ne.d.ts +1 -0
- package/dist/i18n/nl.d.ts +1 -0
- package/dist/i18n/no.d.ts +4 -0
- package/dist/i18n/pa.d.ts +1 -0
- package/dist/i18n/pl.d.ts +201 -0
- package/dist/i18n/ro.d.ts +1 -0
- package/dist/i18n/ru.d.ts +201 -0
- package/dist/i18n/si.d.ts +1 -0
- package/dist/i18n/sk.d.ts +1 -0
- package/dist/i18n/sl.d.ts +1 -0
- package/dist/i18n/sq.d.ts +1 -0
- package/dist/i18n/sr.d.ts +197 -0
- package/dist/i18n/sv.d.ts +1 -0
- package/dist/i18n/tg.d.ts +193 -0
- package/dist/i18n/th.d.ts +193 -0
- package/dist/i18n/tk.d.ts +1 -0
- package/dist/i18n/tr.d.ts +193 -0
- package/dist/i18n/uk.d.ts +1 -0
- package/dist/i18n/ur.d.ts +1 -0
- package/dist/i18n/uz.d.ts +1 -0
- package/dist/i18n/vi.d.ts +1 -0
- package/dist/i18n/zh.d.ts +193 -0
- package/dist/i18n/zht.d.ts +193 -0
- package/dist/icons/icon/additional-icons.d.ts +105 -0
- package/dist/icons/icon/icon.d.ts +228 -0
- package/dist/layout/divider/divider.d.ts +5 -0
- package/dist/navigation/menu/menu.d.ts +59 -0
- package/dist/navigation/segmented-control/segmented-control.d.ts +21 -0
- package/dist/navigation/tab-state-indicator.d.ts +2 -0
- package/dist/navigation/tabs/tabs.d.ts +39 -0
- package/dist/overlays/dialog/dialog.d.ts +26 -0
- package/dist/overlays/tooltip/tooltip.d.ts +15 -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/typography/text-shimmer/text-shimmer.d.ts +9 -0
- package/dist/typography/wordmark/wordmark.d.ts +5 -0
- package/package.json +252 -6
- package/src/actions/button/button.css +294 -0
- package/src/actions/button/button.tsx +42 -0
- package/src/actions/icon-button/icon-button.css +124 -0
- package/src/actions/icon-button/icon-button.tsx +32 -0
- package/src/actions/split-button/split-button.css +95 -0
- package/src/actions/split-button/split-button.tsx +48 -0
- package/src/actions/submit.css +74 -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/animated-number.css +93 -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/card.css +94 -0
- package/src/components/card.tsx +123 -0
- package/src/components/collapsible.css +154 -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/dock-surface.css +30 -0
- package/src/components/dock-surface.tsx +54 -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/image-preview.css +63 -0
- package/src/components/image-preview.tsx +33 -0
- package/src/components/list.css +331 -0
- package/src/components/list.tsx +396 -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 +154 -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 +1110 -0
- package/src/components/provider-icons/types.ts +105 -0
- package/src/components/resize-handle.css +70 -0
- package/src/components/resize-handle.tsx +102 -0
- package/src/components/scroll-view.css +99 -0
- package/src/components/scroll-view.tsx +453 -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/text-field.css +134 -0
- package/src/components/text-field.tsx +136 -0
- package/src/components/text-reveal.css +150 -0
- package/src/components/text-reveal.tsx +143 -0
- package/src/components/text-strikethrough.css +27 -0
- package/src/components/text-strikethrough.tsx +84 -0
- package/src/components/typewriter.css +14 -0
- package/src/components/typewriter.tsx +55 -0
- package/src/context/dialog.tsx +198 -0
- package/src/context/file.tsx +10 -0
- package/src/context/helper.tsx +38 -0
- package/src/context/i18n.tsx +77 -0
- package/src/context/index.ts +4 -0
- package/src/context/marked-base.tsx +55 -0
- package/src/context/marked-parser.tsx +58 -0
- package/src/context/marked-theme-register.tsx +10 -0
- package/src/context/marked-theme.tsx +372 -0
- package/src/context/marked.tsx +28 -0
- package/src/context/worker-pool.tsx +20 -0
- package/src/custom-elements.d.ts +17 -0
- package/src/data-display/accordion/accordion.css +121 -0
- package/src/data-display/accordion/accordion.tsx +92 -0
- package/src/data-display/avatar/avatar.css +70 -0
- package/src/data-display/avatar/avatar.tsx +59 -0
- package/src/data-display/badge/badge.css +52 -0
- package/src/data-display/badge/badge.tsx +25 -0
- package/src/data-display/diff-changes/diff-changes.css +47 -0
- package/src/data-display/diff-changes/diff-changes.tsx +33 -0
- package/src/data-display/keybind/keybind.css +76 -0
- package/src/data-display/keybind/keybind.tsx +30 -0
- package/src/data-display/line-comment/line-comment.css +258 -0
- package/src/data-display/line-comment/line-comment.tsx +308 -0
- package/src/data-display/project-avatar/project-avatar.css +132 -0
- package/src/data-display/project-avatar/project-avatar.tsx +66 -0
- package/src/feedback/loader/loader.css +32 -0
- package/src/feedback/loader/loader.tsx +31 -0
- package/src/feedback/progress-circle/progress-circle.css +28 -0
- package/src/feedback/progress-circle/progress-circle.tsx +64 -0
- package/src/feedback/toast/toast.css +225 -0
- package/src/feedback/toast/toast.tsx +283 -0
- package/src/forms/checkbox/checkbox.css +125 -0
- package/src/forms/checkbox/checkbox.tsx +43 -0
- package/src/forms/field/field.css +94 -0
- package/src/forms/field/field.tsx +263 -0
- package/src/forms/inline-input/inline-input.css +17 -0
- package/src/forms/inline-input/inline-input.tsx +22 -0
- package/src/forms/radio/radio.css +202 -0
- package/src/forms/radio/radio.tsx +82 -0
- package/src/forms/select/select.css +290 -0
- package/src/forms/select/select.tsx +219 -0
- package/src/forms/switch/switch.css +272 -0
- package/src/forms/switch/switch.tsx +34 -0
- package/src/forms/text-input/text-input.css +181 -0
- package/src/forms/text-input/text-input.tsx +99 -0
- package/src/forms/textarea/textarea.css +78 -0
- package/src/forms/textarea/textarea.tsx +31 -0
- package/src/hooks/create-auto-scroll.tsx +257 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/use-filtered-list.tsx +134 -0
- package/src/i18n/am.ts +194 -0
- package/src/i18n/ar.ts +231 -0
- package/src/i18n/az.ts +195 -0
- package/src/i18n/bg.ts +195 -0
- package/src/i18n/bn.ts +197 -0
- package/src/i18n/br.ts +219 -0
- package/src/i18n/bs.ts +223 -0
- package/src/i18n/ca.ts +199 -0
- package/src/i18n/cs.ts +203 -0
- package/src/i18n/da.ts +214 -0
- package/src/i18n/de.ts +219 -0
- package/src/i18n/dv.ts +196 -0
- package/src/i18n/dz.ts +197 -0
- package/src/i18n/el.ts +195 -0
- package/src/i18n/en.ts +276 -0
- package/src/i18n/es.ts +219 -0
- package/src/i18n/et.ts +195 -0
- package/src/i18n/fa.ts +195 -0
- package/src/i18n/fi.ts +195 -0
- package/src/i18n/fo.ts +195 -0
- package/src/i18n/fr.ts +221 -0
- package/src/i18n/he.ts +199 -0
- package/src/i18n/hi.ts +197 -0
- package/src/i18n/hr.ts +200 -0
- package/src/i18n/hu.ts +197 -0
- package/src/i18n/hy.ts +195 -0
- package/src/i18n/id.ts +217 -0
- package/src/i18n/is.ts +195 -0
- package/src/i18n/it.ts +200 -0
- package/src/i18n/ja.ts +214 -0
- package/src/i18n/ka.ts +195 -0
- package/src/i18n/km.ts +196 -0
- package/src/i18n/ko.ts +216 -0
- package/src/i18n/lo.ts +195 -0
- package/src/i18n/lt.ts +203 -0
- package/src/i18n/lv.ts +199 -0
- package/src/i18n/mk.ts +195 -0
- package/src/i18n/mn.ts +195 -0
- package/src/i18n/ms.ts +195 -0
- package/src/i18n/my.ts +196 -0
- package/src/i18n/ne.ts +197 -0
- package/src/i18n/nl.ts +195 -0
- package/src/i18n/no.ts +219 -0
- package/src/i18n/pa.ts +196 -0
- package/src/i18n/pl.ts +223 -0
- package/src/i18n/ro.ts +199 -0
- package/src/i18n/ru.ts +222 -0
- package/src/i18n/si.ts +195 -0
- package/src/i18n/sk.ts +203 -0
- package/src/i18n/sl.ts +204 -0
- package/src/i18n/sq.ts +195 -0
- package/src/i18n/sr.ts +200 -0
- package/src/i18n/sv.ts +195 -0
- package/src/i18n/tg.ts +195 -0
- package/src/i18n/th.ts +215 -0
- package/src/i18n/tk.ts +195 -0
- package/src/i18n/tr.ts +221 -0
- package/src/i18n/uk.ts +226 -0
- package/src/i18n/ur.ts +196 -0
- package/src/i18n/uz.ts +198 -0
- package/src/i18n/vi.ts +195 -0
- package/src/i18n/zh.ts +217 -0
- package/src/i18n/zht.ts +217 -0
- package/src/icons/icon/additional-icons.ts +115 -0
- package/src/icons/icon/icon.css +3 -0
- package/src/icons/icon/icon.tsx +305 -0
- package/src/layout/divider/divider.css +11 -0
- package/src/layout/divider/divider.tsx +20 -0
- package/src/navigation/menu/menu.css +311 -0
- package/src/navigation/menu/menu.tsx +289 -0
- package/src/navigation/segmented-control/segmented-control.css +80 -0
- package/src/navigation/segmented-control/segmented-control.tsx +209 -0
- package/src/navigation/tab-state-indicator.tsx +37 -0
- package/src/navigation/tabs/tabs-current.css +239 -0
- package/src/navigation/tabs/tabs.css +710 -0
- package/src/navigation/tabs/tabs.tsx +194 -0
- package/src/overlays/dialog/dialog.css +180 -0
- package/src/overlays/dialog/dialog.tsx +115 -0
- package/src/overlays/tooltip/tooltip.css +102 -0
- package/src/overlays/tooltip/tooltip.tsx +154 -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 +409 -0
- package/src/styles/colors.css +772 -0
- package/src/styles/file-tree.css +202 -0
- package/src/styles/index.css +37 -0
- package/src/styles/tailwind/colors.css +288 -0
- package/src/styles/tailwind/index.css +95 -0
- package/src/styles/tailwind/utilities.css +131 -0
- package/src/styles/theme.css +631 -0
- package/src/styles/tokens/colors.css +172 -0
- package/src/styles/tokens/index.css +2 -0
- package/src/styles/tokens/theme.css +510 -0
- package/src/styles/utilities.css +118 -0
- package/src/theme/color.ts +299 -0
- package/src/theme/context.tsx +381 -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 +507 -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 +61 -0
- package/src/theme/v2/mapping.ts +176 -0
- package/src/theme/v2/resolve.ts +153 -0
- package/src/typography/text-shimmer/text-shimmer.css +120 -0
- package/src/typography/text-shimmer/text-shimmer.tsx +63 -0
- package/src/typography/wordmark/wordmark.tsx +39 -0
- package/README.md +0 -5
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[data-component="avatar-v2"] {
|
|
2
|
+
--avatar-bg: var(--v2-background-bg-layer-02);
|
|
3
|
+
--avatar-fg: var(--v2-text-text-muted);
|
|
4
|
+
--avatar-radius: 9999px;
|
|
5
|
+
--avatar-font-size: 11px;
|
|
6
|
+
--avatar-tracking: 0.05px;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
width: 28px;
|
|
14
|
+
height: 28px;
|
|
15
|
+
border-radius: var(--avatar-radius);
|
|
16
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
17
|
+
font-weight: 530;
|
|
18
|
+
font-size: var(--avatar-font-size);
|
|
19
|
+
line-height: 1;
|
|
20
|
+
letter-spacing: var(--avatar-tracking);
|
|
21
|
+
text-transform: uppercase;
|
|
22
|
+
background-color: var(--avatar-bg);
|
|
23
|
+
color: var(--avatar-fg);
|
|
24
|
+
user-select: none;
|
|
25
|
+
-webkit-user-select: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-component="avatar-v2"]::before {
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
background: linear-gradient(180deg, var(--v2-alpha-light-16) 0%, var(--v2-alpha-light-0) 100%);
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-component="avatar-v2"][data-has-image]::before {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-component="avatar-v2"][data-kind="org"] {
|
|
41
|
+
--avatar-radius: 6px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-component="avatar-v2"][data-kind="org"][data-size="normal"],
|
|
45
|
+
[data-component="avatar-v2"][data-kind="org"][data-size="small"] {
|
|
46
|
+
--avatar-radius: 4px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-component="avatar-v2"][data-size="normal"] {
|
|
50
|
+
width: 20px;
|
|
51
|
+
height: 20px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-component="avatar-v2"][data-size="small"] {
|
|
55
|
+
width: 16px;
|
|
56
|
+
height: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-component="avatar-v2"] [data-slot="avatar-image"] {
|
|
60
|
+
position: relative;
|
|
61
|
+
z-index: 1;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
display: block;
|
|
65
|
+
object-fit: cover;
|
|
66
|
+
border-radius: inherit;
|
|
67
|
+
user-select: none;
|
|
68
|
+
-webkit-user-select: none;
|
|
69
|
+
-webkit-user-drag: none;
|
|
70
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type ComponentProps, splitProps, Show } from "solid-js"
|
|
2
|
+
import "./avatar.css"
|
|
3
|
+
|
|
4
|
+
const segmenter =
|
|
5
|
+
typeof Intl !== "undefined" && "Segmenter" in Intl
|
|
6
|
+
? new Intl.Segmenter(undefined, { granularity: "grapheme" })
|
|
7
|
+
: undefined
|
|
8
|
+
|
|
9
|
+
function first(value: string) {
|
|
10
|
+
if (!value) return ""
|
|
11
|
+
if (!segmenter) return Array.from(value)[0] ?? ""
|
|
12
|
+
return segmenter.segment(value)[Symbol.iterator]().next().value?.segment ?? Array.from(value)[0] ?? ""
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AvatarProps extends ComponentProps<"div"> {
|
|
16
|
+
fallback: string
|
|
17
|
+
src?: string
|
|
18
|
+
background?: string
|
|
19
|
+
foreground?: string
|
|
20
|
+
size?: "small" | "normal" | "large"
|
|
21
|
+
kind?: "user" | "org"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function Avatar(props: AvatarProps) {
|
|
25
|
+
const [split, rest] = splitProps(props, [
|
|
26
|
+
"fallback",
|
|
27
|
+
"src",
|
|
28
|
+
"background",
|
|
29
|
+
"foreground",
|
|
30
|
+
"size",
|
|
31
|
+
"kind",
|
|
32
|
+
"class",
|
|
33
|
+
"classList",
|
|
34
|
+
"style",
|
|
35
|
+
])
|
|
36
|
+
const src = split.src // did this so i can zero it out to test fallback
|
|
37
|
+
return (
|
|
38
|
+
<div
|
|
39
|
+
{...rest}
|
|
40
|
+
data-component="avatar-v2"
|
|
41
|
+
data-size={split.size || "large"}
|
|
42
|
+
data-kind={split.kind || "user"}
|
|
43
|
+
data-has-image={src ? "" : undefined}
|
|
44
|
+
classList={{
|
|
45
|
+
...split.classList,
|
|
46
|
+
[split.class ?? ""]: !!split.class,
|
|
47
|
+
}}
|
|
48
|
+
style={{
|
|
49
|
+
...(typeof split.style === "object" ? split.style : {}),
|
|
50
|
+
...(!src && split.background ? { "--avatar-bg": split.background } : {}),
|
|
51
|
+
...(!src && split.foreground ? { "--avatar-fg": split.foreground } : {}),
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<Show when={src} fallback={first(split.fallback)}>
|
|
55
|
+
{(src) => <img src={src()} draggable={false} data-slot="avatar-image" />}
|
|
56
|
+
</Show>
|
|
57
|
+
</div>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[data-component="tag"] {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
height: 16px;
|
|
9
|
+
padding: 0 4px;
|
|
10
|
+
user-select: none;
|
|
11
|
+
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
14
|
+
background: var(--v2-background-bg-layer-02);
|
|
15
|
+
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 530;
|
|
18
|
+
font-size: 11px;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
letter-spacing: 0.05px;
|
|
21
|
+
color: var(--v2-text-text-muted);
|
|
22
|
+
font-variant-numeric: tabular-nums;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-component="tag"][data-high-contrast] {
|
|
26
|
+
border-color: var(--v2-border-border-strong);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-component="tag"][data-variant="accent"] {
|
|
30
|
+
border: 0;
|
|
31
|
+
background: var(--v2-background-bg-accent);
|
|
32
|
+
color: var(--v2-text-text-contrast);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-component="tag"][data-appearance="standard"] {
|
|
36
|
+
height: 18px;
|
|
37
|
+
padding: 0 6px;
|
|
38
|
+
border-radius: var(--radius-xs);
|
|
39
|
+
font-family: var(--font-family-sans);
|
|
40
|
+
font-size: var(--font-size-small);
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: var(--font-weight-medium);
|
|
43
|
+
line-height: var(--line-height-large);
|
|
44
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
45
|
+
font-variant-numeric: normal;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-component="tag"][data-appearance="standard"][data-variant="neutral"] {
|
|
49
|
+
border: 0.5px solid var(--border-weak-base);
|
|
50
|
+
background: var(--surface-raised-base);
|
|
51
|
+
color: var(--text-base);
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ComponentProps, splitProps } from "solid-js"
|
|
2
|
+
import "./badge.css"
|
|
3
|
+
|
|
4
|
+
export interface BadgeProps extends ComponentProps<"span"> {
|
|
5
|
+
appearance?: "standard" | "compact"
|
|
6
|
+
variant?: "neutral" | "accent"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function Badge(props: BadgeProps) {
|
|
10
|
+
const [split, rest] = splitProps(props, ["class", "classList", "children", "appearance", "variant"])
|
|
11
|
+
return (
|
|
12
|
+
<span
|
|
13
|
+
{...rest}
|
|
14
|
+
data-component="tag"
|
|
15
|
+
data-appearance={split.appearance ?? "compact"}
|
|
16
|
+
data-variant={split.variant ?? "neutral"}
|
|
17
|
+
classList={{
|
|
18
|
+
...split.classList,
|
|
19
|
+
[split.class ?? ""]: !!split.class,
|
|
20
|
+
}}
|
|
21
|
+
>
|
|
22
|
+
{split.children}
|
|
23
|
+
</span>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[data-component="diff-changes"] {
|
|
2
|
+
display: flex;
|
|
3
|
+
direction: ltr;
|
|
4
|
+
unicode-bidi: isolate;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
justify-content: flex-end;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
[data-slot="diff-changes-additions"],
|
|
10
|
+
[data-slot="diff-changes-deletions"] {
|
|
11
|
+
font-size: 11px;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 440;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
letter-spacing: 0.05px;
|
|
16
|
+
text-align: right;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="diff-changes-additions"] {
|
|
20
|
+
color: var(--v2-state-fg-success);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot="diff-changes-deletions"] {
|
|
24
|
+
color: var(--v2-state-fg-danger);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-component="diff-changes"][data-appearance="standard"] {
|
|
29
|
+
[data-slot="diff-changes-additions"],
|
|
30
|
+
[data-slot="diff-changes-deletions"] {
|
|
31
|
+
font-family: var(--font-family-mono);
|
|
32
|
+
font-feature-settings: var(--font-family-mono--font-feature-settings);
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: var(--font-weight-regular);
|
|
36
|
+
line-height: var(--line-height-large);
|
|
37
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot="diff-changes-additions"] {
|
|
41
|
+
color: var(--text-diff-add-base);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="diff-changes-deletions"] {
|
|
45
|
+
color: var(--text-diff-delete-base);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createMemo, Show } from "solid-js"
|
|
2
|
+
import "./diff-changes.css"
|
|
3
|
+
|
|
4
|
+
export function DiffChanges(props: {
|
|
5
|
+
class?: string
|
|
6
|
+
appearance?: "standard" | "compact"
|
|
7
|
+
changes: { additions: number; deletions: number } | { additions: number; deletions: number }[]
|
|
8
|
+
}) {
|
|
9
|
+
const additions = createMemo(() =>
|
|
10
|
+
Array.isArray(props.changes)
|
|
11
|
+
? props.changes.reduce((acc, diff) => acc + (diff.additions ?? 0), 0)
|
|
12
|
+
: props.changes.additions,
|
|
13
|
+
)
|
|
14
|
+
const deletions = createMemo(() =>
|
|
15
|
+
Array.isArray(props.changes)
|
|
16
|
+
? props.changes.reduce((acc, diff) => acc + (diff.deletions ?? 0), 0)
|
|
17
|
+
: props.changes.deletions,
|
|
18
|
+
)
|
|
19
|
+
const total = createMemo(() => (additions() ?? 0) + (deletions() ?? 0))
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<Show when={total() > 0}>
|
|
23
|
+
<div
|
|
24
|
+
data-component="diff-changes"
|
|
25
|
+
data-appearance={props.appearance ?? "compact"}
|
|
26
|
+
classList={{ [props.class ?? ""]: true }}
|
|
27
|
+
>
|
|
28
|
+
<span data-slot="diff-changes-additions">{`+${additions()}`}</span>
|
|
29
|
+
<span data-slot="diff-changes-deletions">{`-${deletions()}`}</span>
|
|
30
|
+
</div>
|
|
31
|
+
</Show>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
* {
|
|
2
|
+
-webkit-font-smoothing: antialiased;
|
|
3
|
+
-moz-osx-font-smoothing: grayscale;
|
|
4
|
+
text-rendering: geometricPrecision;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-component="keybind-v2"] {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
font-variant-numeric: tabular-nums;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: 0;
|
|
14
|
+
gap: 2px;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-component="keybind-v2"] *,
|
|
19
|
+
[data-component="keybind-v2"] *::before,
|
|
20
|
+
[data-component="keybind-v2"] *::after {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-component="keybind-v2"] [data-slot="keybind-v2-key"] {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
padding: 0;
|
|
30
|
+
padding-inline: 4px;
|
|
31
|
+
gap: 4px;
|
|
32
|
+
min-width: 14px;
|
|
33
|
+
height: 14px;
|
|
34
|
+
border-radius: 2px;
|
|
35
|
+
flex: none;
|
|
36
|
+
flex-grow: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-key"] {
|
|
40
|
+
background: var(--v2-background-bg-layer-03);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-component="keybind-v2"][data-variant="ghost"] [data-slot="keybind-v2-key"] {
|
|
44
|
+
background: transparent;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-component="keybind-v2"] [data-slot="keybind-v2-label"] {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
height: 11px;
|
|
53
|
+
padding: 0;
|
|
54
|
+
flex: none;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 530;
|
|
57
|
+
font-size: 11px;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
text-align: center;
|
|
60
|
+
letter-spacing: 0.05px;
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
font-variant-numeric: tabular-nums;
|
|
63
|
+
font-feature-settings:
|
|
64
|
+
"tnum" on,
|
|
65
|
+
"lnum" on;
|
|
66
|
+
font-variation-settings: "slnt" 0;
|
|
67
|
+
user-select: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-label"] {
|
|
71
|
+
color: var(--v2-text-text-muted);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-component="keybind-v2"][data-variant="ghost"] [data-slot="keybind-v2-label"] {
|
|
75
|
+
color: var(--v2-text-text-faint);
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ComponentProps, For, splitProps } from "solid-js"
|
|
2
|
+
import "./keybind.css"
|
|
3
|
+
|
|
4
|
+
export interface KeybindProps extends ComponentProps<"div"> {
|
|
5
|
+
keys: string[]
|
|
6
|
+
variant?: "neutral" | "ghost"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function Keybind(props: KeybindProps) {
|
|
10
|
+
const [local, rest] = splitProps(props, ["keys", "variant", "class", "classList"])
|
|
11
|
+
return (
|
|
12
|
+
<div
|
|
13
|
+
{...rest}
|
|
14
|
+
data-component="keybind-v2"
|
|
15
|
+
data-variant={local.variant || "neutral"}
|
|
16
|
+
classList={{
|
|
17
|
+
...local.classList,
|
|
18
|
+
[local.class ?? ""]: !!local.class,
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
<For each={local.keys}>
|
|
22
|
+
{(key) => (
|
|
23
|
+
<div data-slot="keybind-v2-key">
|
|
24
|
+
<span data-slot="keybind-v2-label">{key}</span>
|
|
25
|
+
</div>
|
|
26
|
+
)}
|
|
27
|
+
</For>
|
|
28
|
+
</div>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
* {
|
|
2
|
+
-webkit-font-smoothing: antialiased;
|
|
3
|
+
-moz-osx-font-smoothing: grayscale;
|
|
4
|
+
text-rendering: geometricPrecision;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-component="line-comment-v2"] {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
font-family: var(--v2-font-family-sans);
|
|
10
|
+
font-variant-numeric: tabular-nums;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: 400px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-component="line-comment-v2"] *,
|
|
17
|
+
[data-component="line-comment-v2"] *::before,
|
|
18
|
+
[data-component="line-comment-v2"] *::after {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-component="line-comment-v2"] [data-slot="line-comment-v2-shell"] {
|
|
23
|
+
background: var(--v2-background-bg-layer-01);
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
box-shadow: var(--v2-elevation-raised);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* --- Display (read) --- */
|
|
29
|
+
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-shell"] {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
padding: 12px;
|
|
34
|
+
gap: 8px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-column"] {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
flex: 1 1 auto;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-text"] {
|
|
47
|
+
margin: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
font-size: 13px;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 440;
|
|
52
|
+
line-height: var(--line-height-compact);
|
|
53
|
+
letter-spacing: -0.04px;
|
|
54
|
+
color: var(--v2-text-text-base);
|
|
55
|
+
font-variation-settings: "slnt" 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-meta"] {
|
|
59
|
+
font-size: 11px;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 530;
|
|
62
|
+
line-height: var(--line-height-tight);
|
|
63
|
+
letter-spacing: 0.05px;
|
|
64
|
+
color: var(--v2-text-text-faint);
|
|
65
|
+
font-variation-settings: "slnt" 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-component="line-comment-v2"][data-variant="display"] [data-slot="line-comment-v2-tools"] {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-slot="line-comment-v2-overflow"] {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
width: 20px;
|
|
81
|
+
height: 20px;
|
|
82
|
+
padding: 2px;
|
|
83
|
+
gap: 3px;
|
|
84
|
+
margin: 0;
|
|
85
|
+
border: none;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
background: transparent;
|
|
88
|
+
color: var(--v2-icon-icon-muted);
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
outline: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-slot="line-comment-v2-overflow"]:focus {
|
|
94
|
+
outline: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-slot="line-comment-v2-overflow"]:focus-visible {
|
|
98
|
+
outline: 2px solid var(--v2-border-border-focus);
|
|
99
|
+
outline-offset: 2px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-slot="line-comment-v2-overflow"]:is(:hover, [data-state="hover"]) {
|
|
103
|
+
background-color: var(--v2-overlay-simple-overlay-hover);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-slot="line-comment-v2-overflow"]:is(:active, [data-state="pressed"], [data-expanded]) {
|
|
107
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-slot="line-comment-v2-overflow"] svg {
|
|
111
|
+
display: block;
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* --- Editor --- */
|
|
116
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-shell"] {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
align-items: flex-start;
|
|
120
|
+
padding: 12px;
|
|
121
|
+
gap: 12px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-field"] {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
align-items: flex-start;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
width: 100%;
|
|
130
|
+
min-width: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-label"] {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
align-items: center;
|
|
137
|
+
width: 100%;
|
|
138
|
+
font-size: 13px;
|
|
139
|
+
font-style: normal;
|
|
140
|
+
font-weight: 530;
|
|
141
|
+
line-height: var(--line-height-compact);
|
|
142
|
+
letter-spacing: -0.04px;
|
|
143
|
+
color: var(--v2-text-text-base);
|
|
144
|
+
user-select: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"] {
|
|
148
|
+
display: block;
|
|
149
|
+
width: 100%;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
min-height: 80px;
|
|
152
|
+
padding: 8px;
|
|
153
|
+
margin: 0;
|
|
154
|
+
resize: vertical;
|
|
155
|
+
border: 1px solid var(--v2-border-border-base);
|
|
156
|
+
border-radius: 6px;
|
|
157
|
+
background:
|
|
158
|
+
linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
font-style: normal;
|
|
161
|
+
font-weight: 440;
|
|
162
|
+
line-height: 1.35;
|
|
163
|
+
letter-spacing: -0.04px;
|
|
164
|
+
color: var(--v2-text-text-base);
|
|
165
|
+
font-variation-settings: "slnt" 0;
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]::placeholder {
|
|
170
|
+
color: var(--v2-text-text-faint);
|
|
171
|
+
user-select: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-textarea"]:focus {
|
|
175
|
+
border-color: var(--v2-border-border-focus);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer"] {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 4px;
|
|
183
|
+
width: 100%;
|
|
184
|
+
min-width: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-meta"] {
|
|
188
|
+
flex: 1 1 auto;
|
|
189
|
+
min-width: 0;
|
|
190
|
+
font-size: 11px;
|
|
191
|
+
font-style: normal;
|
|
192
|
+
font-weight: 530;
|
|
193
|
+
line-height: 1;
|
|
194
|
+
letter-spacing: 0.05px;
|
|
195
|
+
color: var(--v2-text-text-faint);
|
|
196
|
+
font-variation-settings: "slnt" 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-footer-actions"] {
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: row;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 8px;
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-list"] {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
gap: 4px;
|
|
211
|
+
max-height: 180px;
|
|
212
|
+
overflow: auto;
|
|
213
|
+
margin-top: 8px;
|
|
214
|
+
padding: 4px;
|
|
215
|
+
border: 0.5px solid var(--v2-border-border-muted);
|
|
216
|
+
border-radius: 6px;
|
|
217
|
+
background: var(--v2-background-bg-layer-02);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-item"] {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
gap: 8px;
|
|
224
|
+
width: 100%;
|
|
225
|
+
min-width: 0;
|
|
226
|
+
padding: 6px 8px;
|
|
227
|
+
border: 0;
|
|
228
|
+
border-radius: 4px;
|
|
229
|
+
background: transparent;
|
|
230
|
+
color: var(--v2-text-text-base);
|
|
231
|
+
text-align: start;
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-item"][data-active] {
|
|
236
|
+
background: var(--v2-background-bg-layer-03);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-path"] {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
min-width: 0;
|
|
243
|
+
font-size: 12px;
|
|
244
|
+
line-height: 16px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-dir"] {
|
|
248
|
+
min-width: 0;
|
|
249
|
+
color: var(--v2-text-text-muted);
|
|
250
|
+
white-space: nowrap;
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
text-overflow: ellipsis;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-file"] {
|
|
256
|
+
color: var(--v2-text-text-base);
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
}
|