@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,56 @@
|
|
|
1
|
+
export type HexColor = `#${string}`;
|
|
2
|
+
export interface OklchColor {
|
|
3
|
+
l: number;
|
|
4
|
+
c: number;
|
|
5
|
+
h: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ThemeSeedColors {
|
|
8
|
+
neutral: HexColor;
|
|
9
|
+
primary: HexColor;
|
|
10
|
+
success: HexColor;
|
|
11
|
+
warning: HexColor;
|
|
12
|
+
error: HexColor;
|
|
13
|
+
info: HexColor;
|
|
14
|
+
interactive: HexColor;
|
|
15
|
+
diffAdd: HexColor;
|
|
16
|
+
diffDelete: HexColor;
|
|
17
|
+
}
|
|
18
|
+
export interface ThemePaletteColors {
|
|
19
|
+
neutral: HexColor;
|
|
20
|
+
ink: HexColor;
|
|
21
|
+
primary: HexColor;
|
|
22
|
+
success: HexColor;
|
|
23
|
+
warning: HexColor;
|
|
24
|
+
error: HexColor;
|
|
25
|
+
info: HexColor;
|
|
26
|
+
accent?: HexColor;
|
|
27
|
+
interactive?: HexColor;
|
|
28
|
+
diffAdd?: HexColor;
|
|
29
|
+
diffDelete?: HexColor;
|
|
30
|
+
}
|
|
31
|
+
type ThemeVariantBase = {
|
|
32
|
+
overrides?: Record<string, ColorValue>;
|
|
33
|
+
v2Overrides?: Record<string, V2ColorValue>;
|
|
34
|
+
};
|
|
35
|
+
export type ThemeVariant = ({
|
|
36
|
+
seeds: ThemeSeedColors;
|
|
37
|
+
palette?: never;
|
|
38
|
+
} & ThemeVariantBase) | ({
|
|
39
|
+
palette: ThemePaletteColors;
|
|
40
|
+
seeds?: never;
|
|
41
|
+
} & ThemeVariantBase);
|
|
42
|
+
export interface DesktopTheme {
|
|
43
|
+
$schema?: string;
|
|
44
|
+
name: string;
|
|
45
|
+
id: string;
|
|
46
|
+
light: ThemeVariant;
|
|
47
|
+
dark: ThemeVariant;
|
|
48
|
+
}
|
|
49
|
+
export type TokenCategory = "background" | "surface" | "text" | "border" | "icon" | "input" | "button" | "syntax" | "markdown" | "diff" | "avatar";
|
|
50
|
+
export type ThemeToken = string;
|
|
51
|
+
export type CssVarRef = `var(--${string})`;
|
|
52
|
+
export type ColorValue = HexColor | CssVarRef;
|
|
53
|
+
export type V2ColorValue = HexColor | CssVarRef | string;
|
|
54
|
+
export type ResolvedTheme = Record<ThemeToken, ColorValue>;
|
|
55
|
+
export type ResolvedV2Theme = Record<string, V2ColorValue>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { V2ColorValue } from "../types";
|
|
2
|
+
/** Fixed project avatar colors (OC-2); theme-independent like v1 `avatar-background-*`. */
|
|
3
|
+
export declare const V2_AVATAR_FG = "#ffffffff";
|
|
4
|
+
export declare const V2_AVATAR_LIGHT: Record<string, V2ColorValue>;
|
|
5
|
+
export declare const V2_AVATAR_DARK: Record<string, V2ColorValue>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DesktopTheme, ResolvedV2Theme, ThemeVariant, V2ColorValue } from "../types";
|
|
2
|
+
/** Build v2 primitive ramps (100 = lightest). Alpha ramps are static in `v2/styles/colors.css`. */
|
|
3
|
+
export declare function generateV2Primitives(variant: ThemeVariant, isDark: boolean): Record<string, V2ColorValue>;
|
|
4
|
+
export declare function resolveThemeVariantV2(variant: ThemeVariant, isDark: boolean): ResolvedV2Theme;
|
|
5
|
+
export declare function resolveThemeV2(theme: DesktopTheme): {
|
|
6
|
+
light: ResolvedV2Theme;
|
|
7
|
+
dark: ResolvedV2Theme;
|
|
8
|
+
};
|
|
9
|
+
export declare function themeV2ToCss(tokens: ResolvedV2Theme): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ValidComponent } from "solid-js";
|
|
2
|
+
import "./text-shimmer.css";
|
|
3
|
+
export declare const TextShimmer: <T extends ValidComponent = "span">(props: {
|
|
4
|
+
text: string;
|
|
5
|
+
class?: string;
|
|
6
|
+
as?: T;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}) => import("solid-js").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,15 +1,261 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/anomalyco/opencode.git"
|
|
8
|
+
"url": "git+https://github.com/anomalyco/opencode.git",
|
|
9
|
+
"directory": "packages/ui"
|
|
9
10
|
},
|
|
10
11
|
"publishConfig": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"**/*.css"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/**/*.d.ts",
|
|
19
|
+
"src/**/*.ts",
|
|
20
|
+
"src/**/*.tsx",
|
|
21
|
+
"!src/**/*.test.ts",
|
|
22
|
+
"!src/**/*.test.tsx",
|
|
23
|
+
"!src/**/*.stories.ts",
|
|
24
|
+
"!src/**/*.stories.tsx",
|
|
25
|
+
"src/**/*.css",
|
|
26
|
+
"src/theme/themes/*.json",
|
|
27
|
+
"src/components/app-icons/sprite.svg",
|
|
28
|
+
"src/components/file-icons/sprite.svg",
|
|
29
|
+
"src/components/provider-icons/sprite.svg",
|
|
30
|
+
"src/assets/icons/app/*",
|
|
31
|
+
"src/assets/fonts/*",
|
|
32
|
+
"src/assets/audio/*",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
"./accordion": {
|
|
38
|
+
"types": "./dist/data-display/accordion/accordion.d.ts",
|
|
39
|
+
"import": "./src/data-display/accordion/accordion.tsx"
|
|
40
|
+
},
|
|
41
|
+
"./avatar": {
|
|
42
|
+
"types": "./dist/data-display/avatar/avatar.d.ts",
|
|
43
|
+
"import": "./src/data-display/avatar/avatar.tsx"
|
|
44
|
+
},
|
|
45
|
+
"./badge": {
|
|
46
|
+
"types": "./dist/data-display/badge/badge.d.ts",
|
|
47
|
+
"import": "./src/data-display/badge/badge.tsx"
|
|
48
|
+
},
|
|
49
|
+
"./button": {
|
|
50
|
+
"types": "./dist/actions/button/button.d.ts",
|
|
51
|
+
"import": "./src/actions/button/button.tsx"
|
|
52
|
+
},
|
|
53
|
+
"./button.css": "./src/actions/button/button.css",
|
|
54
|
+
"./checkbox": {
|
|
55
|
+
"types": "./dist/forms/checkbox/checkbox.d.ts",
|
|
56
|
+
"import": "./src/forms/checkbox/checkbox.tsx"
|
|
57
|
+
},
|
|
58
|
+
"./dialog": {
|
|
59
|
+
"types": "./dist/overlays/dialog/dialog.d.ts",
|
|
60
|
+
"import": "./src/overlays/dialog/dialog.tsx"
|
|
61
|
+
},
|
|
62
|
+
"./diff-changes": {
|
|
63
|
+
"types": "./dist/data-display/diff-changes/diff-changes.d.ts",
|
|
64
|
+
"import": "./src/data-display/diff-changes/diff-changes.tsx"
|
|
65
|
+
},
|
|
66
|
+
"./divider": {
|
|
67
|
+
"types": "./dist/layout/divider/divider.d.ts",
|
|
68
|
+
"import": "./src/layout/divider/divider.tsx"
|
|
69
|
+
},
|
|
70
|
+
"./field": {
|
|
71
|
+
"types": "./dist/forms/field/field.d.ts",
|
|
72
|
+
"import": "./src/forms/field/field.tsx"
|
|
73
|
+
},
|
|
74
|
+
"./file-tree.css": "./src/styles/file-tree.css",
|
|
75
|
+
"./icon": {
|
|
76
|
+
"types": "./dist/icons/icon/icon.d.ts",
|
|
77
|
+
"import": "./src/icons/icon/icon.tsx"
|
|
78
|
+
},
|
|
79
|
+
"./icon-button": {
|
|
80
|
+
"types": "./dist/actions/icon-button/icon-button.d.ts",
|
|
81
|
+
"import": "./src/actions/icon-button/icon-button.tsx"
|
|
82
|
+
},
|
|
83
|
+
"./inline-input": {
|
|
84
|
+
"types": "./dist/forms/inline-input/inline-input.d.ts",
|
|
85
|
+
"import": "./src/forms/inline-input/inline-input.tsx"
|
|
86
|
+
},
|
|
87
|
+
"./keybind": {
|
|
88
|
+
"types": "./dist/data-display/keybind/keybind.d.ts",
|
|
89
|
+
"import": "./src/data-display/keybind/keybind.tsx"
|
|
90
|
+
},
|
|
91
|
+
"./line-comment": {
|
|
92
|
+
"types": "./dist/data-display/line-comment/line-comment.d.ts",
|
|
93
|
+
"import": "./src/data-display/line-comment/line-comment.tsx"
|
|
94
|
+
},
|
|
95
|
+
"./loader": {
|
|
96
|
+
"types": "./dist/feedback/loader/loader.d.ts",
|
|
97
|
+
"import": "./src/feedback/loader/loader.tsx"
|
|
98
|
+
},
|
|
99
|
+
"./menu": {
|
|
100
|
+
"types": "./dist/navigation/menu/menu.d.ts",
|
|
101
|
+
"import": "./src/navigation/menu/menu.tsx"
|
|
102
|
+
},
|
|
103
|
+
"./progress-circle": {
|
|
104
|
+
"types": "./dist/feedback/progress-circle/progress-circle.d.ts",
|
|
105
|
+
"import": "./src/feedback/progress-circle/progress-circle.tsx"
|
|
106
|
+
},
|
|
107
|
+
"./project-avatar": {
|
|
108
|
+
"types": "./dist/data-display/project-avatar/project-avatar.d.ts",
|
|
109
|
+
"import": "./src/data-display/project-avatar/project-avatar.tsx"
|
|
110
|
+
},
|
|
111
|
+
"./radio": {
|
|
112
|
+
"types": "./dist/forms/radio/radio.d.ts",
|
|
113
|
+
"import": "./src/forms/radio/radio.tsx"
|
|
114
|
+
},
|
|
115
|
+
"./segmented-control": {
|
|
116
|
+
"types": "./dist/navigation/segmented-control/segmented-control.d.ts",
|
|
117
|
+
"import": "./src/navigation/segmented-control/segmented-control.tsx"
|
|
118
|
+
},
|
|
119
|
+
"./select": {
|
|
120
|
+
"types": "./dist/forms/select/select.d.ts",
|
|
121
|
+
"import": "./src/forms/select/select.tsx"
|
|
122
|
+
},
|
|
123
|
+
"./split-button": {
|
|
124
|
+
"types": "./dist/actions/split-button/split-button.d.ts",
|
|
125
|
+
"import": "./src/actions/split-button/split-button.tsx"
|
|
126
|
+
},
|
|
127
|
+
"./switch": {
|
|
128
|
+
"types": "./dist/forms/switch/switch.d.ts",
|
|
129
|
+
"import": "./src/forms/switch/switch.tsx"
|
|
130
|
+
},
|
|
131
|
+
"./tab-state-indicator": {
|
|
132
|
+
"types": "./dist/navigation/tab-state-indicator.d.ts",
|
|
133
|
+
"import": "./src/navigation/tab-state-indicator.tsx"
|
|
134
|
+
},
|
|
135
|
+
"./tabs": {
|
|
136
|
+
"types": "./dist/navigation/tabs/tabs.d.ts",
|
|
137
|
+
"import": "./src/navigation/tabs/tabs.tsx"
|
|
138
|
+
},
|
|
139
|
+
"./text-input": {
|
|
140
|
+
"types": "./dist/forms/text-input/text-input.d.ts",
|
|
141
|
+
"import": "./src/forms/text-input/text-input.tsx"
|
|
142
|
+
},
|
|
143
|
+
"./text-input.css": "./src/forms/text-input/text-input.css",
|
|
144
|
+
"./textarea": {
|
|
145
|
+
"types": "./dist/forms/textarea/textarea.d.ts",
|
|
146
|
+
"import": "./src/forms/textarea/textarea.tsx"
|
|
147
|
+
},
|
|
148
|
+
"./text-shimmer": {
|
|
149
|
+
"types": "./dist/typography/text-shimmer/text-shimmer.d.ts",
|
|
150
|
+
"import": "./src/typography/text-shimmer/text-shimmer.tsx"
|
|
151
|
+
},
|
|
152
|
+
"./toast": {
|
|
153
|
+
"types": "./dist/feedback/toast/toast.d.ts",
|
|
154
|
+
"import": "./src/feedback/toast/toast.tsx"
|
|
155
|
+
},
|
|
156
|
+
"./tooltip": {
|
|
157
|
+
"types": "./dist/overlays/tooltip/tooltip.d.ts",
|
|
158
|
+
"import": "./src/overlays/tooltip/tooltip.tsx"
|
|
159
|
+
},
|
|
160
|
+
"./wordmark": {
|
|
161
|
+
"types": "./dist/typography/wordmark/wordmark.d.ts",
|
|
162
|
+
"import": "./src/typography/wordmark/wordmark.tsx"
|
|
163
|
+
},
|
|
164
|
+
"./*": {
|
|
165
|
+
"types": "./dist/components/*.d.ts",
|
|
166
|
+
"import": "./src/components/*.tsx"
|
|
167
|
+
},
|
|
168
|
+
"./i18n/*": {
|
|
169
|
+
"types": "./dist/i18n/*.d.ts",
|
|
170
|
+
"import": "./src/i18n/*.ts"
|
|
171
|
+
},
|
|
172
|
+
"./hooks": {
|
|
173
|
+
"types": "./dist/hooks/index.d.ts",
|
|
174
|
+
"import": "./src/hooks/index.ts"
|
|
175
|
+
},
|
|
176
|
+
"./context": {
|
|
177
|
+
"types": "./dist/context/index.d.ts",
|
|
178
|
+
"import": "./src/context/index.ts"
|
|
179
|
+
},
|
|
180
|
+
"./context/*": {
|
|
181
|
+
"types": "./dist/context/*.d.ts",
|
|
182
|
+
"import": "./src/context/*.tsx"
|
|
183
|
+
},
|
|
184
|
+
"./storybook/scaffold": {
|
|
185
|
+
"types": "./dist/storybook/scaffold.d.ts",
|
|
186
|
+
"import": "./src/storybook/scaffold.tsx"
|
|
187
|
+
},
|
|
188
|
+
"./storybook/fixtures": {
|
|
189
|
+
"types": "./dist/storybook/fixtures.d.ts",
|
|
190
|
+
"import": "./src/storybook/fixtures.ts"
|
|
191
|
+
},
|
|
192
|
+
"./styles": "./src/styles/index.css",
|
|
193
|
+
"./styles/tokens": "./src/styles/tokens/index.css",
|
|
194
|
+
"./styles/tailwind": "./src/styles/tailwind/index.css",
|
|
195
|
+
"./theme": {
|
|
196
|
+
"types": "./dist/theme/index.d.ts",
|
|
197
|
+
"import": "./src/theme/index.ts"
|
|
198
|
+
},
|
|
199
|
+
"./theme/*": {
|
|
200
|
+
"types": "./dist/theme/*.d.ts",
|
|
201
|
+
"import": "./src/theme/*.ts"
|
|
202
|
+
},
|
|
203
|
+
"./theme/context": {
|
|
204
|
+
"types": "./dist/theme/context.d.ts",
|
|
205
|
+
"import": "./src/theme/context.tsx"
|
|
206
|
+
},
|
|
207
|
+
"./icons/provider": {
|
|
208
|
+
"types": "./dist/components/provider-icons/types.d.ts",
|
|
209
|
+
"import": "./src/components/provider-icons/types.ts"
|
|
210
|
+
},
|
|
211
|
+
"./icons/file-type": {
|
|
212
|
+
"types": "./dist/components/file-icons/types.d.ts",
|
|
213
|
+
"import": "./src/components/file-icons/types.ts"
|
|
214
|
+
},
|
|
215
|
+
"./icons/app": {
|
|
216
|
+
"types": "./dist/components/app-icons/types.d.ts",
|
|
217
|
+
"import": "./src/components/app-icons/types.ts"
|
|
218
|
+
},
|
|
219
|
+
"./fonts/*": "./src/assets/fonts/*",
|
|
220
|
+
"./audio/*": "./src/assets/audio/*"
|
|
221
|
+
},
|
|
222
|
+
"scripts": {
|
|
223
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
224
|
+
"typecheck": "tsgo --noEmit",
|
|
225
|
+
"test": "bun test src --only-failures",
|
|
226
|
+
"dev": "vite",
|
|
227
|
+
"generate:tailwind": "bun run script/tailwind.ts",
|
|
228
|
+
"generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
|
|
229
|
+
},
|
|
230
|
+
"devDependencies": {
|
|
231
|
+
"@solidjs/meta": "0.29.4",
|
|
232
|
+
"@tsconfig/node22": "22.0.2",
|
|
233
|
+
"@types/bun": "1.4.0",
|
|
234
|
+
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
235
|
+
"solid-js": "1.9.15",
|
|
236
|
+
"tailwindcss": "4.1.11",
|
|
237
|
+
"typescript": "5.8.2",
|
|
238
|
+
"vite": "7.3.6",
|
|
239
|
+
"vite-plugin-icons-spritesheet": "3.0.1",
|
|
240
|
+
"vite-plugin-solid": "2.11.10"
|
|
241
|
+
},
|
|
242
|
+
"dependencies": {
|
|
243
|
+
"@kobalte/core": "0.13.13",
|
|
244
|
+
"@pierre/diffs": "1.2.10",
|
|
245
|
+
"@solid-primitives/event-listener": "2.4.6",
|
|
246
|
+
"@solid-primitives/resize-observer": "2.2.0",
|
|
247
|
+
"fuzzysort": "3.1.0",
|
|
248
|
+
"katex": "0.16.47",
|
|
249
|
+
"marked": "18.0.11",
|
|
250
|
+
"marked-shiki": "1.2.1",
|
|
251
|
+
"motion": "12.34.5",
|
|
252
|
+
"remeda": "2.26.0",
|
|
253
|
+
"shiki": "4.4.3",
|
|
254
|
+
"solid-list": "0.3.0",
|
|
255
|
+
"solid-sonner": "0.3.1"
|
|
256
|
+
},
|
|
257
|
+
"peerDependencies": {
|
|
258
|
+
"@solidjs/meta": "^0.29.0",
|
|
259
|
+
"solid-js": "^1.9.8"
|
|
14
260
|
}
|
|
15
261
|
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
@import "../submit.css";
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
-webkit-font-smoothing: antialiased;
|
|
5
|
+
-moz-osx-font-smoothing: grayscale;
|
|
6
|
+
text-rendering: geometricPrecision;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-component="button-v2"] {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
gap: 6px;
|
|
15
|
+
border-radius: 6px;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 530;
|
|
18
|
+
font-size: 13px;
|
|
19
|
+
line-height: 20px;
|
|
20
|
+
color: var(--v2-text-text-base);
|
|
21
|
+
text-shadow: none;
|
|
22
|
+
font-variant-numeric: tabular-nums;
|
|
23
|
+
letter-spacing: -0.04px;
|
|
24
|
+
user-select: none;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
outline: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-component="button-v2"]:focus {
|
|
30
|
+
outline: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-component="button-v2"]:is(:focus-visible, [data-state="focus"]):not(:disabled):not([data-variant="loading"]) {
|
|
34
|
+
outline: 2px solid var(--v2-border-border-focus);
|
|
35
|
+
outline-offset: 2.5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-component="button-v2"][data-size="normal"] {
|
|
39
|
+
height: 28px;
|
|
40
|
+
padding: 0 11px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-component="button-v2"][data-size="small"] {
|
|
44
|
+
height: 24px;
|
|
45
|
+
padding: 0 9px;
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-component="button-v2"][data-size="large"] {
|
|
50
|
+
height: 32px;
|
|
51
|
+
padding: 0 15px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-component="button-v2"][data-icon][data-size="small"] {
|
|
55
|
+
padding-left: 9px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[data-component="button-v2"][data-icon][data-size="normal"] {
|
|
59
|
+
padding-left: 11px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-component="button-v2"][data-icon][data-size="large"] {
|
|
63
|
+
padding-left: 15px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[data-component="button-v2"] [data-slot="icon-svg"] {
|
|
67
|
+
color: currentColor;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Neutral */
|
|
71
|
+
[data-component="button-v2"][data-variant="neutral"] {
|
|
72
|
+
background-color: var(--v2-background-bg-button-neutral);
|
|
73
|
+
color: var(--v2-text-text-base);
|
|
74
|
+
box-shadow: var(--v2-elevation-button-neutral);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-component="button-v2"][data-variant="neutral"]:is(:hover, [data-state="hover"]):not(:disabled) {
|
|
78
|
+
background-image:
|
|
79
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-hover) 0%, var(--v2-overlay-simple-overlay-hover) 100%),
|
|
80
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-component="button-v2"][data-variant="neutral"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
84
|
+
background-image:
|
|
85
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-pressed) 0%, var(--v2-overlay-simple-overlay-pressed) 100%),
|
|
86
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-component="button-v2"][data-variant="neutral"]:is(:disabled, [data-state="disabled"]) {
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
cursor: not-allowed;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Danger */
|
|
95
|
+
[data-component="button-v2"][data-variant="danger"] {
|
|
96
|
+
background-color: var(--v2-background-bg-button-neutral);
|
|
97
|
+
color: var(--v2-state-fg-danger);
|
|
98
|
+
box-shadow: var(--v2-elevation-button-neutral);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-component="button-v2"][data-variant="danger"]:is(:hover, [data-state="hover"]):not(:disabled) {
|
|
102
|
+
background-image:
|
|
103
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-hover) 0%, var(--v2-overlay-simple-overlay-hover) 100%),
|
|
104
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-component="button-v2"][data-variant="danger"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
108
|
+
background-image:
|
|
109
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-pressed) 0%, var(--v2-overlay-simple-overlay-pressed) 100%),
|
|
110
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-component="button-v2"][data-variant="danger"]:is(:disabled, [data-state="disabled"]) {
|
|
114
|
+
opacity: 0.5;
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-component="button-v2"][data-variant="warning"] {
|
|
119
|
+
background-color: var(--v2-background-bg-button-neutral);
|
|
120
|
+
color: var(--v2-state-fg-warning);
|
|
121
|
+
box-shadow: var(--v2-elevation-button-neutral);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-component="button-v2"][data-variant="warning"]:is(:hover, [data-state="hover"]):not(:disabled) {
|
|
125
|
+
background-image:
|
|
126
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-hover) 0%, var(--v2-overlay-simple-overlay-hover) 100%),
|
|
127
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-component="button-v2"][data-variant="warning"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
131
|
+
background-image:
|
|
132
|
+
linear-gradient(90deg, var(--v2-overlay-simple-overlay-pressed) 0%, var(--v2-overlay-simple-overlay-pressed) 100%),
|
|
133
|
+
linear-gradient(90deg, var(--v2-background-bg-button-neutral) 0%, var(--v2-background-bg-button-neutral) 100%);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-component="button-v2"][data-variant="warning"]:is(:disabled, [data-state="disabled"]) {
|
|
137
|
+
opacity: 0.5;
|
|
138
|
+
cursor: not-allowed;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Outline */
|
|
142
|
+
[data-component="button-v2"][data-variant="outline"] {
|
|
143
|
+
background-color: transparent;
|
|
144
|
+
color: var(--v2-text-text-base);
|
|
145
|
+
box-shadow: inset 0 0 0 1px var(--v2-border-border-muted);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-component="button-v2"][data-variant="outline"]:is(:hover, [data-state="hover"]):not(:disabled) {
|
|
149
|
+
background-color: var(--v2-overlay-simple-overlay-hover);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[data-component="button-v2"][data-variant="outline"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
153
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-component="button-v2"][data-variant="outline"]:is(:disabled, [data-state="disabled"]) {
|
|
157
|
+
opacity: 0.5;
|
|
158
|
+
cursor: not-allowed;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Contrast */
|
|
162
|
+
[data-component="button-v2"][data-variant="contrast"] {
|
|
163
|
+
background-image:
|
|
164
|
+
linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%),
|
|
165
|
+
linear-gradient(90deg, var(--v2-background-bg-contrast) 0%, var(--v2-background-bg-contrast) 100%);
|
|
166
|
+
color: var(--v2-text-text-contrast);
|
|
167
|
+
text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.3);
|
|
168
|
+
box-shadow: var(--v2-elevation-button-contrast);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-component="button-v2"][data-variant="contrast"]:is(:hover, [data-state="hover"]):not(:disabled) {
|
|
172
|
+
background-image:
|
|
173
|
+
linear-gradient(
|
|
174
|
+
90deg,
|
|
175
|
+
var(--v2-overlay-simple-overlay-contrast-hover) 0%,
|
|
176
|
+
var(--v2-overlay-simple-overlay-contrast-hover) 100%
|
|
177
|
+
),
|
|
178
|
+
linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%),
|
|
179
|
+
linear-gradient(90deg, var(--v2-background-bg-contrast) 0%, var(--v2-background-bg-contrast) 100%);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
[data-component="button-v2"][data-variant="contrast"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
183
|
+
background-image:
|
|
184
|
+
linear-gradient(
|
|
185
|
+
90deg,
|
|
186
|
+
var(--v2-overlay-simple-overlay-contrast-pressed) 0%,
|
|
187
|
+
var(--v2-overlay-simple-overlay-contrast-pressed) 100%
|
|
188
|
+
),
|
|
189
|
+
linear-gradient(180deg, var(--v2-alpha-light-20) 0%, var(--v2-alpha-light-0) 100%),
|
|
190
|
+
linear-gradient(90deg, var(--v2-background-bg-contrast) 0%, var(--v2-background-bg-contrast) 100%);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[data-component="button-v2"][data-variant="contrast"]:is(:disabled, [data-state="disabled"]) {
|
|
194
|
+
opacity: 0.4;
|
|
195
|
+
cursor: not-allowed;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Loading */
|
|
199
|
+
[data-component="button-v2"][data-variant="loading"] {
|
|
200
|
+
background: var(--v2-background-bg-layer-02);
|
|
201
|
+
color: var(--v2-text-text-base);
|
|
202
|
+
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-muted);
|
|
203
|
+
cursor: default;
|
|
204
|
+
pointer-events: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Ghost */
|
|
208
|
+
[data-component="button-v2"][data-variant="ghost"] {
|
|
209
|
+
background-color: transparent;
|
|
210
|
+
color: var(--v2-text-text-base);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[data-component="button-v2"][data-variant="ghost"]:is(:hover, [data-state="hover"]):not(:disabled):not(
|
|
214
|
+
[data-expanded]
|
|
215
|
+
) {
|
|
216
|
+
background-color: var(--v2-overlay-simple-overlay-hover);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-component="button-v2"][data-variant="ghost"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
220
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-component="button-v2"][data-variant="ghost"]:where([data-expanded]):not(:disabled) {
|
|
224
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
[data-component="button-v2"][data-variant="ghost"]:is(:disabled, [data-state="disabled"]) {
|
|
228
|
+
opacity: 0.5;
|
|
229
|
+
cursor: not-allowed;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Ghost muted */
|
|
233
|
+
[data-component="button-v2"][data-variant="ghost-muted"] {
|
|
234
|
+
background-color: transparent;
|
|
235
|
+
color: var(--v2-text-text-muted);
|
|
236
|
+
font-weight: 440;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
[data-component="button-v2"][data-variant="ghost-muted"] [data-slot="icon-svg"] {
|
|
240
|
+
color: var(--v2-icon-icon-muted);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
[data-component="button-v2"][data-variant="ghost-muted"]:is(:hover, [data-state="hover"]):not(:disabled):not(
|
|
244
|
+
[data-expanded]
|
|
245
|
+
) {
|
|
246
|
+
background-color: var(--v2-overlay-simple-overlay-hover);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
[data-component="button-v2"][data-variant="ghost-muted"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
250
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
[data-component="button-v2"][data-variant="ghost-muted"]:where([data-expanded]):not(:disabled) {
|
|
254
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
255
|
+
color: var(--v2-text-text-base);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
[data-component="button-v2"][data-variant="ghost-muted"]:where([data-expanded]):not(:disabled) [data-slot="icon-svg"] {
|
|
259
|
+
color: var(--v2-icon-icon-base);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
[data-component="button-v2"][data-variant="ghost-muted"]:is(:disabled, [data-state="disabled"]) {
|
|
263
|
+
opacity: 0.5;
|
|
264
|
+
cursor: not-allowed;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* Ghost faint */
|
|
268
|
+
[data-component="button-v2"][data-variant="ghost-faint"] {
|
|
269
|
+
background-color: transparent;
|
|
270
|
+
color: var(--v2-text-text-faint);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
[data-component="button-v2"][data-variant="ghost-faint"] [data-slot="icon-svg"] {
|
|
274
|
+
color: var(--v2-icon-icon-faint);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
[data-component="button-v2"][data-variant="ghost-faint"]:is(:hover, [data-state="hover"]):not(:disabled):not(
|
|
278
|
+
[data-expanded]
|
|
279
|
+
) {
|
|
280
|
+
background-color: var(--v2-overlay-simple-overlay-hover);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
[data-component="button-v2"][data-variant="ghost-faint"]:is(:active, [data-state="pressed"]):not(:disabled) {
|
|
284
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
[data-component="button-v2"][data-variant="ghost-faint"]:where([data-expanded]):not(:disabled) {
|
|
288
|
+
background-color: var(--v2-overlay-simple-overlay-pressed);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
[data-component="button-v2"][data-variant="ghost-faint"]:is(:disabled, [data-state="disabled"]) {
|
|
292
|
+
opacity: 0.5;
|
|
293
|
+
cursor: not-allowed;
|
|
294
|
+
}
|