@opencode-ai/ui 0.0.0-beta-202606251302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/package.json +110 -0
- package/src/assets/audio/alert-01.aac +0 -0
- package/src/assets/audio/alert-01.mp3 +0 -0
- package/src/assets/audio/alert-02.aac +0 -0
- package/src/assets/audio/alert-02.mp3 +0 -0
- package/src/assets/audio/alert-03.aac +0 -0
- package/src/assets/audio/alert-03.mp3 +0 -0
- package/src/assets/audio/alert-04.aac +0 -0
- package/src/assets/audio/alert-04.mp3 +0 -0
- package/src/assets/audio/alert-05.aac +0 -0
- package/src/assets/audio/alert-05.mp3 +0 -0
- package/src/assets/audio/alert-06.aac +0 -0
- package/src/assets/audio/alert-06.mp3 +0 -0
- package/src/assets/audio/alert-07.aac +0 -0
- package/src/assets/audio/alert-07.mp3 +0 -0
- package/src/assets/audio/alert-08.aac +0 -0
- package/src/assets/audio/alert-08.mp3 +0 -0
- package/src/assets/audio/alert-09.aac +0 -0
- package/src/assets/audio/alert-09.mp3 +0 -0
- package/src/assets/audio/alert-10.aac +0 -0
- package/src/assets/audio/alert-10.mp3 +0 -0
- package/src/assets/audio/bip-bop-01.aac +0 -0
- package/src/assets/audio/bip-bop-01.mp3 +0 -0
- package/src/assets/audio/bip-bop-02.aac +0 -0
- package/src/assets/audio/bip-bop-02.mp3 +0 -0
- package/src/assets/audio/bip-bop-03.aac +0 -0
- package/src/assets/audio/bip-bop-03.mp3 +0 -0
- package/src/assets/audio/bip-bop-04.aac +0 -0
- package/src/assets/audio/bip-bop-04.mp3 +0 -0
- package/src/assets/audio/bip-bop-05.aac +0 -0
- package/src/assets/audio/bip-bop-05.mp3 +0 -0
- package/src/assets/audio/bip-bop-06.aac +0 -0
- package/src/assets/audio/bip-bop-06.mp3 +0 -0
- package/src/assets/audio/bip-bop-07.aac +0 -0
- package/src/assets/audio/bip-bop-07.mp3 +0 -0
- package/src/assets/audio/bip-bop-08.aac +0 -0
- package/src/assets/audio/bip-bop-08.mp3 +0 -0
- package/src/assets/audio/bip-bop-09.aac +0 -0
- package/src/assets/audio/bip-bop-09.mp3 +0 -0
- package/src/assets/audio/bip-bop-10.aac +0 -0
- package/src/assets/audio/bip-bop-10.mp3 +0 -0
- package/src/assets/audio/nope-01.aac +0 -0
- package/src/assets/audio/nope-01.mp3 +0 -0
- package/src/assets/audio/nope-02.aac +0 -0
- package/src/assets/audio/nope-02.mp3 +0 -0
- package/src/assets/audio/nope-03.aac +0 -0
- package/src/assets/audio/nope-03.mp3 +0 -0
- package/src/assets/audio/nope-04.aac +0 -0
- package/src/assets/audio/nope-04.mp3 +0 -0
- package/src/assets/audio/nope-05.aac +0 -0
- package/src/assets/audio/nope-05.mp3 +0 -0
- package/src/assets/audio/nope-06.aac +0 -0
- package/src/assets/audio/nope-06.mp3 +0 -0
- package/src/assets/audio/nope-07.aac +0 -0
- package/src/assets/audio/nope-07.mp3 +0 -0
- package/src/assets/audio/nope-08.aac +0 -0
- package/src/assets/audio/nope-08.mp3 +0 -0
- package/src/assets/audio/nope-09.aac +0 -0
- package/src/assets/audio/nope-09.mp3 +0 -0
- package/src/assets/audio/nope-10.aac +0 -0
- package/src/assets/audio/nope-10.mp3 +0 -0
- package/src/assets/audio/nope-11.aac +0 -0
- package/src/assets/audio/nope-11.mp3 +0 -0
- package/src/assets/audio/nope-12.aac +0 -0
- package/src/assets/audio/nope-12.mp3 +0 -0
- package/src/assets/audio/staplebops-01.aac +0 -0
- package/src/assets/audio/staplebops-01.mp3 +0 -0
- package/src/assets/audio/staplebops-02.aac +0 -0
- package/src/assets/audio/staplebops-02.mp3 +0 -0
- package/src/assets/audio/staplebops-03.aac +0 -0
- package/src/assets/audio/staplebops-03.mp3 +0 -0
- package/src/assets/audio/staplebops-04.aac +0 -0
- package/src/assets/audio/staplebops-04.mp3 +0 -0
- package/src/assets/audio/staplebops-05.aac +0 -0
- package/src/assets/audio/staplebops-05.mp3 +0 -0
- package/src/assets/audio/staplebops-06.aac +0 -0
- package/src/assets/audio/staplebops-06.mp3 +0 -0
- package/src/assets/audio/staplebops-07.aac +0 -0
- package/src/assets/audio/staplebops-07.mp3 +0 -0
- package/src/assets/audio/yup-01.aac +0 -0
- package/src/assets/audio/yup-01.mp3 +0 -0
- package/src/assets/audio/yup-02.aac +0 -0
- package/src/assets/audio/yup-02.mp3 +0 -0
- package/src/assets/audio/yup-03.aac +0 -0
- package/src/assets/audio/yup-03.mp3 +0 -0
- package/src/assets/audio/yup-04.aac +0 -0
- package/src/assets/audio/yup-04.mp3 +0 -0
- package/src/assets/audio/yup-05.aac +0 -0
- package/src/assets/audio/yup-05.mp3 +0 -0
- package/src/assets/audio/yup-06.aac +0 -0
- package/src/assets/audio/yup-06.mp3 +0 -0
- package/src/assets/fonts/Inter.ttf +0 -0
- package/src/assets/fonts/JetBrainsMonoNerdFontMono-Regular.woff2 +0 -0
- package/src/assets/icons/app/android-studio.svg +369 -0
- package/src/assets/icons/app/antigravity.svg +97 -0
- package/src/assets/icons/app/cursor.svg +16 -0
- package/src/assets/icons/app/file-explorer.svg +20 -0
- package/src/assets/icons/app/finder.png +0 -0
- package/src/assets/icons/app/ghostty.svg +13 -0
- package/src/assets/icons/app/iterm2.svg +13 -0
- package/src/assets/icons/app/powershell.svg +14 -0
- package/src/assets/icons/app/sublimetext.svg +17 -0
- package/src/assets/icons/app/terminal.png +0 -0
- package/src/assets/icons/app/textmate.png +0 -0
- package/src/assets/icons/app/vscode.svg +39 -0
- package/src/assets/icons/app/warp.png +0 -0
- package/src/assets/icons/app/xcode.png +0 -0
- package/src/assets/icons/app/zed-dark.svg +15 -0
- package/src/assets/icons/app/zed.svg +15 -0
- package/src/components/accordion.css +123 -0
- package/src/components/accordion.tsx +92 -0
- package/src/components/animated-number.css +75 -0
- package/src/components/animated-number.tsx +109 -0
- package/src/components/app-icon.css +5 -0
- package/src/components/app-icon.tsx +85 -0
- package/src/components/app-icons/sprite.svg +114 -0
- package/src/components/app-icons/types.ts +21 -0
- package/src/components/avatar.css +49 -0
- package/src/components/avatar.tsx +55 -0
- package/src/components/button.css +194 -0
- package/src/components/button.tsx +33 -0
- package/src/components/card.css +94 -0
- package/src/components/card.tsx +123 -0
- package/src/components/checkbox.css +131 -0
- package/src/components/checkbox.tsx +43 -0
- package/src/components/collapsible.css +148 -0
- package/src/components/collapsible.tsx +48 -0
- package/src/components/context-menu.css +134 -0
- package/src/components/context-menu.tsx +308 -0
- package/src/components/dialog.css +181 -0
- package/src/components/dialog.tsx +72 -0
- package/src/components/diff-changes.css +42 -0
- package/src/components/diff-changes.tsx +115 -0
- package/src/components/dock-surface.css +23 -0
- package/src/components/dock-surface.tsx +54 -0
- package/src/components/dropdown-menu.css +135 -0
- package/src/components/dropdown-menu.tsx +308 -0
- package/src/components/favicon.tsx +13 -0
- package/src/components/file-icon.css +26 -0
- package/src/components/file-icon.tsx +588 -0
- package/src/components/file-icons/sprite.svg +11707 -0
- package/src/components/file-icons/types.ts +1095 -0
- package/src/components/font.tsx +1 -0
- package/src/components/hover-card.css +61 -0
- package/src/components/hover-card.tsx +32 -0
- package/src/components/icon-button.css +181 -0
- package/src/components/icon-button.tsx +29 -0
- package/src/components/icon.css +34 -0
- package/src/components/icon.tsx +169 -0
- package/src/components/image-preview.css +63 -0
- package/src/components/image-preview.tsx +32 -0
- package/src/components/inline-input.css +17 -0
- package/src/components/inline-input.tsx +22 -0
- package/src/components/keybind.css +18 -0
- package/src/components/keybind.tsx +20 -0
- package/src/components/list.css +331 -0
- package/src/components/list.tsx +394 -0
- package/src/components/logo.css +4 -0
- package/src/components/logo.tsx +62 -0
- package/src/components/motion-spring.tsx +58 -0
- package/src/components/popover.css +98 -0
- package/src/components/popover.tsx +153 -0
- package/src/components/progress-circle.css +12 -0
- package/src/components/progress-circle.tsx +57 -0
- package/src/components/progress.css +63 -0
- package/src/components/progress.tsx +39 -0
- package/src/components/provider-icon.css +5 -0
- package/src/components/provider-icon.tsx +25 -0
- package/src/components/provider-icons/sprite.svg +1135 -0
- package/src/components/provider-icons/types.ts +105 -0
- package/src/components/radio-group.css +187 -0
- package/src/components/radio-group.tsx +83 -0
- package/src/components/resize-handle.css +58 -0
- package/src/components/resize-handle.tsx +82 -0
- package/src/components/scroll-view.css +66 -0
- package/src/components/scroll-view.tsx +250 -0
- package/src/components/select.css +202 -0
- package/src/components/select.tsx +174 -0
- package/src/components/spinner.css +6 -0
- package/src/components/spinner.tsx +52 -0
- package/src/components/sticky-accordion-header.css +6 -0
- package/src/components/sticky-accordion-header.tsx +18 -0
- package/src/components/switch.css +132 -0
- package/src/components/switch.tsx +29 -0
- package/src/components/tabs.css +635 -0
- package/src/components/tabs.tsx +125 -0
- package/src/components/tag.css +37 -0
- package/src/components/tag.tsx +22 -0
- package/src/components/text-field.css +134 -0
- package/src/components/text-field.tsx +128 -0
- package/src/components/text-reveal.css +150 -0
- package/src/components/text-reveal.tsx +143 -0
- package/src/components/text-shimmer.css +119 -0
- package/src/components/text-shimmer.tsx +62 -0
- package/src/components/text-strikethrough.css +27 -0
- package/src/components/text-strikethrough.tsx +84 -0
- package/src/components/toast.css +236 -0
- package/src/components/toast.tsx +185 -0
- package/src/components/tooltip.css +74 -0
- package/src/components/tooltip.tsx +161 -0
- package/src/components/typewriter.css +14 -0
- package/src/components/typewriter.tsx +55 -0
- package/src/context/dialog.tsx +197 -0
- package/src/context/file.tsx +10 -0
- package/src/context/helper.tsx +38 -0
- package/src/context/i18n.tsx +38 -0
- package/src/context/index.ts +4 -0
- package/src/context/marked.tsx +522 -0
- package/src/context/worker-pool.tsx +20 -0
- package/src/custom-elements.d.ts +17 -0
- package/src/hooks/create-auto-scroll.tsx +237 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/use-filtered-list.tsx +134 -0
- package/src/i18n/ar.ts +168 -0
- package/src/i18n/br.ts +168 -0
- package/src/i18n/bs.ts +172 -0
- package/src/i18n/da.ts +167 -0
- package/src/i18n/de.ts +173 -0
- package/src/i18n/en.ts +176 -0
- package/src/i18n/es.ts +168 -0
- package/src/i18n/fr.ts +168 -0
- package/src/i18n/ja.ts +167 -0
- package/src/i18n/ko.ts +168 -0
- package/src/i18n/no.ts +171 -0
- package/src/i18n/pl.ts +167 -0
- package/src/i18n/ru.ts +167 -0
- package/src/i18n/th.ts +169 -0
- package/src/i18n/tr.ts +174 -0
- package/src/i18n/uk.ts +167 -0
- package/src/i18n/zh.ts +171 -0
- package/src/i18n/zht.ts +171 -0
- package/src/storybook/fixtures.ts +51 -0
- package/src/storybook/scaffold.tsx +62 -0
- package/src/styles/animations.css +141 -0
- package/src/styles/base.css +404 -0
- package/src/styles/colors.css +772 -0
- package/src/styles/index.css +53 -0
- package/src/styles/tailwind/colors.css +285 -0
- package/src/styles/tailwind/index.css +78 -0
- package/src/styles/tailwind/utilities.css +131 -0
- package/src/styles/theme.css +609 -0
- package/src/styles/utilities.css +118 -0
- package/src/theme/color.ts +299 -0
- package/src/theme/context.tsx +370 -0
- package/src/theme/default-themes.ts +116 -0
- package/src/theme/index.ts +78 -0
- package/src/theme/loader.ts +112 -0
- package/src/theme/resolve.ts +540 -0
- package/src/theme/themes/amoled.json +49 -0
- package/src/theme/themes/aura.json +51 -0
- package/src/theme/themes/ayu.json +51 -0
- package/src/theme/themes/carbonfox.json +53 -0
- package/src/theme/themes/catppuccin-frappe.json +85 -0
- package/src/theme/themes/catppuccin-macchiato.json +85 -0
- package/src/theme/themes/catppuccin.json +45 -0
- package/src/theme/themes/cobalt2.json +87 -0
- package/src/theme/themes/cursor.json +91 -0
- package/src/theme/themes/dracula.json +49 -0
- package/src/theme/themes/everforest.json +89 -0
- package/src/theme/themes/flexoki.json +86 -0
- package/src/theme/themes/github.json +85 -0
- package/src/theme/themes/gruvbox.json +45 -0
- package/src/theme/themes/kanagawa.json +89 -0
- package/src/theme/themes/lucent-orng.json +87 -0
- package/src/theme/themes/material.json +87 -0
- package/src/theme/themes/matrix.json +113 -0
- package/src/theme/themes/mercury.json +86 -0
- package/src/theme/themes/monokai.json +49 -0
- package/src/theme/themes/nightowl.json +46 -0
- package/src/theme/themes/nord.json +46 -0
- package/src/theme/themes/oc-2.json +468 -0
- package/src/theme/themes/one-dark.json +89 -0
- package/src/theme/themes/onedarkpro.json +45 -0
- package/src/theme/themes/opencode.json +89 -0
- package/src/theme/themes/orng.json +87 -0
- package/src/theme/themes/osaka-jade.json +88 -0
- package/src/theme/themes/palenight.json +85 -0
- package/src/theme/themes/rosepine.json +85 -0
- package/src/theme/themes/shadesofpurple.json +51 -0
- package/src/theme/themes/solarized.json +49 -0
- package/src/theme/themes/synthwave84.json +87 -0
- package/src/theme/themes/tokyonight.json +47 -0
- package/src/theme/themes/vercel.json +90 -0
- package/src/theme/themes/vesper.json +51 -0
- package/src/theme/themes/zenburn.json +87 -0
- package/src/theme/types.ts +75 -0
- package/src/theme/v2/avatar.ts +48 -0
- package/src/theme/v2/default-primitives.ts +114 -0
- package/src/theme/v2/foreground.ts +60 -0
- package/src/theme/v2/mapping.ts +138 -0
- package/src/theme/v2/resolve.ts +153 -0
- package/src/v2/components/accordion-v2.css +139 -0
- package/src/v2/components/accordion-v2.tsx +86 -0
- package/src/v2/components/avatar-v2.css +70 -0
- package/src/v2/components/avatar-v2.tsx +59 -0
- package/src/v2/components/badge-v2.css +27 -0
- package/src/v2/components/badge-v2.tsx +20 -0
- package/src/v2/components/button-v2.css +186 -0
- package/src/v2/components/button-v2.tsx +35 -0
- package/src/v2/components/checkbox-v2.css +184 -0
- package/src/v2/components/checkbox-v2.tsx +65 -0
- package/src/v2/components/dialog-v2.css +150 -0
- package/src/v2/components/dialog-v2.tsx +93 -0
- package/src/v2/components/diff-changes-v2.css +24 -0
- package/src/v2/components/diff-changes-v2.tsx +28 -0
- package/src/v2/components/field-v2.css +94 -0
- package/src/v2/components/field-v2.tsx +265 -0
- package/src/v2/components/icon-button-v2.css +155 -0
- package/src/v2/components/icon-button-v2.tsx +37 -0
- package/src/v2/components/icon.tsx +129 -0
- package/src/v2/components/inline-input-v2.css +218 -0
- package/src/v2/components/inline-input-v2.tsx +90 -0
- package/src/v2/components/keybind-v2.css +76 -0
- package/src/v2/components/keybind-v2.tsx +30 -0
- package/src/v2/components/line-comment-v2.css +204 -0
- package/src/v2/components/line-comment-v2.tsx +155 -0
- package/src/v2/components/menu-v2.css +190 -0
- package/src/v2/components/menu-v2.tsx +225 -0
- package/src/v2/components/project-avatar-v2.css +126 -0
- package/src/v2/components/project-avatar-v2.tsx +64 -0
- package/src/v2/components/radio-v2.css +202 -0
- package/src/v2/components/radio-v2.tsx +72 -0
- package/src/v2/components/segmented-control-v2.css +80 -0
- package/src/v2/components/segmented-control-v2.tsx +208 -0
- package/src/v2/components/select-v2.css +285 -0
- package/src/v2/components/select-v2.tsx +208 -0
- package/src/v2/components/switch-v2.css +154 -0
- package/src/v2/components/switch-v2.tsx +28 -0
- package/src/v2/components/tab-state-indicator.tsx +37 -0
- package/src/v2/components/tabs-v2.css +225 -0
- package/src/v2/components/tabs-v2.tsx +147 -0
- package/src/v2/components/text-input-v2.css +145 -0
- package/src/v2/components/text-input-v2.tsx +67 -0
- package/src/v2/components/text-shimmer-v2.css +125 -0
- package/src/v2/components/text-shimmer-v2.tsx +63 -0
- package/src/v2/components/textarea-v2.css +78 -0
- package/src/v2/components/textarea-v2.tsx +31 -0
- package/src/v2/components/toast-v2.css +215 -0
- package/src/v2/components/toast-v2.tsx +144 -0
- package/src/v2/components/tooltip-v2.css +53 -0
- package/src/v2/components/tooltip-v2.tsx +146 -0
- package/src/v2/components/wordmark-v2.tsx +92 -0
- package/src/v2/styles/colors.css +172 -0
- package/src/v2/styles/tailwind.css +2 -0
- package/src/v2/styles/theme.css +441 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
[data-slot="segmented-control-v2"].segmented-control-v2--full-width {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[data-slot="segmented-control-v2"] {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 0;
|
|
11
|
+
width: 232px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
height: 28px;
|
|
14
|
+
background: var(--v2-background-bg-layer-01);
|
|
15
|
+
border: none;
|
|
16
|
+
border-radius: 6px;
|
|
17
|
+
box-shadow: 0 0 0 0.5px var(--v2-border-border-base);
|
|
18
|
+
flex: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-slot="segmented-control-v2-item"] {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding: 0 12px;
|
|
28
|
+
flex: 1 1 0;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
height: 28px;
|
|
31
|
+
margin: 0;
|
|
32
|
+
border: none;
|
|
33
|
+
border-radius: 6px;
|
|
34
|
+
background: transparent;
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 440;
|
|
39
|
+
font-size: 13px;
|
|
40
|
+
line-height: 100%;
|
|
41
|
+
letter-spacing: -0.04px;
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
font-variation-settings: "slnt" 0;
|
|
44
|
+
color: var(--v2-text-text-muted);
|
|
45
|
+
transition:
|
|
46
|
+
background-color 0.12s ease,
|
|
47
|
+
color 0.12s ease,
|
|
48
|
+
box-shadow 0.12s ease;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot="segmented-control-v2-item"]:where(:disabled) {
|
|
52
|
+
cursor: not-allowed;
|
|
53
|
+
opacity: 0.45;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-slot="segmented-control-v2-item"]:where(:focus-visible) {
|
|
57
|
+
outline: 2px solid var(--v2-border-border-focus);
|
|
58
|
+
outline-offset: 1px;
|
|
59
|
+
z-index: 2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot="segmented-control-v2-item"]:where([data-pressed]) {
|
|
63
|
+
background: var(--v2-background-bg-base);
|
|
64
|
+
color: var(--v2-text-text-base);
|
|
65
|
+
box-shadow: 0 0 0 0.5px var(--v2-border-border-strong);
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-slot="segmented-control-v2-item-label"] {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
padding: 0;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createContext,
|
|
3
|
+
createMemo,
|
|
4
|
+
createSignal,
|
|
5
|
+
mergeProps,
|
|
6
|
+
splitProps,
|
|
7
|
+
useContext,
|
|
8
|
+
type Accessor,
|
|
9
|
+
type JSX,
|
|
10
|
+
type ParentProps,
|
|
11
|
+
} from "solid-js"
|
|
12
|
+
import type { ComponentProps } from "solid-js"
|
|
13
|
+
import "./segmented-control-v2.css"
|
|
14
|
+
|
|
15
|
+
type OnChange = (value: string | null) => void
|
|
16
|
+
|
|
17
|
+
type SegmentedControlContextValue = {
|
|
18
|
+
selected: Accessor<string | null>
|
|
19
|
+
groupDisabled: Accessor<boolean>
|
|
20
|
+
select: (value: string) => void
|
|
21
|
+
clearIfAllowed: (value: string) => void
|
|
22
|
+
focusNext: (from: HTMLButtonElement, direction: 1 | -1) => void
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const SegmentedControlContext = createContext<SegmentedControlContextValue>()
|
|
26
|
+
|
|
27
|
+
function useSegmentedControlContext() {
|
|
28
|
+
const ctx = useContext(SegmentedControlContext)
|
|
29
|
+
if (!ctx) throw new Error("SegmentedControlItemV2 must be used inside SegmentedControlV2")
|
|
30
|
+
return ctx
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type SegmentedControlV2Props = Omit<ComponentProps<"div">, "onChange"> &
|
|
34
|
+
ParentProps<{
|
|
35
|
+
/** Selected value when controlled (including `null` when empty). Omit key for uncontrolled. */
|
|
36
|
+
value?: string | null
|
|
37
|
+
/** Initial value when uncontrolled. */
|
|
38
|
+
defaultValue?: string
|
|
39
|
+
onChange?: OnChange
|
|
40
|
+
/** When true, clicking the active segment clears selection (`onChange(null)`). Default false. */
|
|
41
|
+
allowDeselect?: boolean
|
|
42
|
+
disabled?: boolean
|
|
43
|
+
}>
|
|
44
|
+
|
|
45
|
+
export function SegmentedControlV2(props: SegmentedControlV2Props) {
|
|
46
|
+
const isControlled = createMemo(() => Object.hasOwn(props as object, "value"))
|
|
47
|
+
const merged = mergeProps({ allowDeselect: false, disabled: false }, props)
|
|
48
|
+
const [local, rest] = splitProps(merged, [
|
|
49
|
+
"class",
|
|
50
|
+
"classList",
|
|
51
|
+
"children",
|
|
52
|
+
"value",
|
|
53
|
+
"defaultValue",
|
|
54
|
+
"onChange",
|
|
55
|
+
"allowDeselect",
|
|
56
|
+
"disabled",
|
|
57
|
+
"ref",
|
|
58
|
+
])
|
|
59
|
+
|
|
60
|
+
const [internal, setInternal] = createSignal<string | null>(local.defaultValue ?? null)
|
|
61
|
+
|
|
62
|
+
const selected = createMemo(() => (isControlled() ? (local.value ?? null) : internal()))
|
|
63
|
+
|
|
64
|
+
const setSelected = (next: string | null) => {
|
|
65
|
+
if (!isControlled()) setInternal(next)
|
|
66
|
+
local.onChange?.(next)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const select = (value: string) => {
|
|
70
|
+
setSelected(value)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const clearIfAllowed = (value: string) => {
|
|
74
|
+
if (!local.allowDeselect || selected() !== value) return
|
|
75
|
+
setSelected(null)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const focusNext = (from: HTMLButtonElement, direction: 1 | -1) => {
|
|
79
|
+
const root = from.closest(`[data-slot="segmented-control-v2"]`)
|
|
80
|
+
if (!root) return
|
|
81
|
+
const buttons = Array.from(
|
|
82
|
+
root.querySelectorAll<HTMLButtonElement>(`button[data-slot="segmented-control-v2-item"]`),
|
|
83
|
+
).filter((b) => !b.disabled)
|
|
84
|
+
const i = buttons.indexOf(from)
|
|
85
|
+
const next = buttons[i + direction]
|
|
86
|
+
next?.focus()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const ctx: SegmentedControlContextValue = {
|
|
90
|
+
selected,
|
|
91
|
+
groupDisabled: () => !!local.disabled,
|
|
92
|
+
select,
|
|
93
|
+
clearIfAllowed,
|
|
94
|
+
focusNext,
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const assignRef = (el: HTMLDivElement | undefined) => {
|
|
98
|
+
const r = local.ref
|
|
99
|
+
if (typeof r === "function") (r as (el: HTMLDivElement | undefined) => void)(el)
|
|
100
|
+
else if (r != null && typeof r === "object" && "value" in r) (r as { value: HTMLDivElement | undefined }).value = el
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<SegmentedControlContext.Provider value={ctx}>
|
|
105
|
+
<div
|
|
106
|
+
{...rest}
|
|
107
|
+
ref={assignRef}
|
|
108
|
+
role="group"
|
|
109
|
+
data-component="segmented-control-v2"
|
|
110
|
+
data-slot="segmented-control-v2"
|
|
111
|
+
classList={{
|
|
112
|
+
...local.classList,
|
|
113
|
+
[local.class ?? ""]: !!local.class,
|
|
114
|
+
}}
|
|
115
|
+
>
|
|
116
|
+
{local.children}
|
|
117
|
+
</div>
|
|
118
|
+
</SegmentedControlContext.Provider>
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type SegmentedControlItemV2Props = Omit<ComponentProps<"button">, "type" | "children"> &
|
|
123
|
+
ParentProps<{
|
|
124
|
+
value: string
|
|
125
|
+
children: JSX.Element
|
|
126
|
+
}>
|
|
127
|
+
|
|
128
|
+
function invokeButtonHandler<E extends Event>(
|
|
129
|
+
handler: JSX.EventHandlerUnion<HTMLButtonElement, E> | undefined,
|
|
130
|
+
e: E & { currentTarget: HTMLButtonElement },
|
|
131
|
+
) {
|
|
132
|
+
if (typeof handler === "function") (handler as (ev: typeof e) => void)(e)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function SegmentedControlItemV2(props: SegmentedControlItemV2Props) {
|
|
136
|
+
const merged = mergeProps({ disabled: false }, props)
|
|
137
|
+
const [local, rest] = splitProps(merged, [
|
|
138
|
+
"class",
|
|
139
|
+
"classList",
|
|
140
|
+
"children",
|
|
141
|
+
"value",
|
|
142
|
+
"disabled",
|
|
143
|
+
"onClick",
|
|
144
|
+
"onKeyDown",
|
|
145
|
+
])
|
|
146
|
+
const ctx = useSegmentedControlContext()
|
|
147
|
+
|
|
148
|
+
const pressed = createMemo(() => ctx.selected() === local.value)
|
|
149
|
+
const disabled = createMemo(() => ctx.groupDisabled() || !!local.disabled)
|
|
150
|
+
|
|
151
|
+
const onClick: JSX.EventHandlerUnion<HTMLButtonElement, MouseEvent> = (e) => {
|
|
152
|
+
invokeButtonHandler(local.onClick, e)
|
|
153
|
+
if (e.defaultPrevented || disabled()) return
|
|
154
|
+
if (pressed()) ctx.clearIfAllowed(local.value)
|
|
155
|
+
else ctx.select(local.value)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const onKeyDown: JSX.EventHandlerUnion<HTMLButtonElement, KeyboardEvent> = (e) => {
|
|
159
|
+
invokeButtonHandler(local.onKeyDown, e)
|
|
160
|
+
if (e.defaultPrevented || disabled()) return
|
|
161
|
+
const t = e.currentTarget
|
|
162
|
+
|
|
163
|
+
if (e.key === "ArrowRight") {
|
|
164
|
+
e.preventDefault()
|
|
165
|
+
ctx.focusNext(t, 1)
|
|
166
|
+
} else if (e.key === "ArrowLeft") {
|
|
167
|
+
e.preventDefault()
|
|
168
|
+
ctx.focusNext(t, -1)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// accessibility stuff
|
|
172
|
+
else if (e.key === "Home") {
|
|
173
|
+
e.preventDefault()
|
|
174
|
+
const root = t.closest(`[data-slot="segmented-control-v2"]`)
|
|
175
|
+
const first = root?.querySelector<HTMLButtonElement>(
|
|
176
|
+
`button[data-slot="segmented-control-v2-item"]:not(:disabled)`,
|
|
177
|
+
)
|
|
178
|
+
first?.focus()
|
|
179
|
+
} else if (e.key === "End") {
|
|
180
|
+
e.preventDefault()
|
|
181
|
+
const root = t.closest(`[data-slot="segmented-control-v2"]`)
|
|
182
|
+
const buttons = root?.querySelectorAll<HTMLButtonElement>(
|
|
183
|
+
`button[data-slot="segmented-control-v2-item"]:not(:disabled)`,
|
|
184
|
+
)
|
|
185
|
+
const last = buttons?.[buttons.length - 1]
|
|
186
|
+
last?.focus()
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return (
|
|
191
|
+
<button
|
|
192
|
+
{...rest}
|
|
193
|
+
type="button"
|
|
194
|
+
data-slot="segmented-control-v2-item"
|
|
195
|
+
data-pressed={pressed() ? "" : undefined}
|
|
196
|
+
aria-pressed={pressed()}
|
|
197
|
+
disabled={disabled()}
|
|
198
|
+
classList={{
|
|
199
|
+
...local.classList,
|
|
200
|
+
[local.class ?? ""]: !!local.class,
|
|
201
|
+
}}
|
|
202
|
+
onClick={onClick}
|
|
203
|
+
onKeyDown={onKeyDown}
|
|
204
|
+
>
|
|
205
|
+
<span data-slot="segmented-control-v2-item-label">{local.children}</span>
|
|
206
|
+
</button>
|
|
207
|
+
)
|
|
208
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
@import "./menu-v2.css";
|
|
2
|
+
|
|
3
|
+
/* Above modal dialogs (z-index 50); matches legacy select-content. */
|
|
4
|
+
[data-popper-positioner]:has([data-slot="select-v2-content"]) {
|
|
5
|
+
z-index: 60;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Dropdown surface (Type=menu) — overrides shared menu-v2 defaults for selects only. */
|
|
9
|
+
[data-component="menu-v2-content"][data-slot="select-v2-content"] {
|
|
10
|
+
padding: 0;
|
|
11
|
+
min-width: 160px;
|
|
12
|
+
max-width: 23rem;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
z-index: 60;
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
background: var(--v2-background-bg-layer-01);
|
|
17
|
+
border-radius: 6px;
|
|
18
|
+
box-shadow: var(--v2-elevation-floating);
|
|
19
|
+
transform-origin: top center;
|
|
20
|
+
animation: select-v2-content-in 120ms ease-out;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-component="menu-v2-content"][data-slot="select-v2-content"][data-closed] {
|
|
24
|
+
animation: select-v2-content-out 80ms ease-in forwards;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes select-v2-content-in {
|
|
28
|
+
from {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transform: translateY(-2px);
|
|
31
|
+
}
|
|
32
|
+
to {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
transform: translateY(0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes select-v2-content-out {
|
|
39
|
+
from {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: translateY(0);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: translateY(-2px);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Trigger shell — aligned with text-input-v2 */
|
|
50
|
+
[data-component="select-v2"] {
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
align-items: stretch;
|
|
55
|
+
padding: 0 6px 0 0;
|
|
56
|
+
gap: 8px;
|
|
57
|
+
width: 280px;
|
|
58
|
+
height: 28px;
|
|
59
|
+
border: 0;
|
|
60
|
+
border-radius: 6px;
|
|
61
|
+
outline: 1px solid transparent;
|
|
62
|
+
outline-offset: 0;
|
|
63
|
+
background:
|
|
64
|
+
linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
65
|
+
box-shadow: var(--v2-elevation-button-neutral);
|
|
66
|
+
flex: none;
|
|
67
|
+
align-self: stretch;
|
|
68
|
+
transition:
|
|
69
|
+
background 85ms ease-out,
|
|
70
|
+
outline-color 85ms ease-out,
|
|
71
|
+
box-shadow 85ms ease-out;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-component="select-v2"][data-appearance="large"] {
|
|
75
|
+
height: 32px;
|
|
76
|
+
padding: 0 8px 0 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-component="select-v2"]:where(:hover):not([data-disabled], [data-invalid]):not(:focus-within):not(
|
|
80
|
+
[data-expanded]
|
|
81
|
+
) {
|
|
82
|
+
background:
|
|
83
|
+
linear-gradient(0deg, var(--v2-overlay-simple-overlay-hover), var(--v2-overlay-simple-overlay-hover)),
|
|
84
|
+
linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-component="select-v2"]:where([data-expanded]):not([data-disabled], [data-invalid]) {
|
|
88
|
+
background:
|
|
89
|
+
linear-gradient(0deg, var(--v2-overlay-simple-overlay-hover), var(--v2-overlay-simple-overlay-hover)),
|
|
90
|
+
linear-gradient(180deg, var(--v2-alpha-light-2) 0%, var(--v2-alpha-light-0) 100%), var(--v2-background-bg-base);
|
|
91
|
+
outline-color: transparent;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-component="select-v2"]:where(:focus-within):not([data-disabled], [data-invalid]):not([data-expanded]) {
|
|
95
|
+
outline-color: var(--v2-border-border-focus);
|
|
96
|
+
box-shadow: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-component="select-v2"]:where([data-invalid]):not([data-disabled]) {
|
|
100
|
+
outline-color: var(--v2-state-fg-danger);
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[data-component="select-v2"]:where([data-disabled]) {
|
|
105
|
+
opacity: 0.5;
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[data-component="select-v2"] [data-slot="select-v2-value"] {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: row;
|
|
112
|
+
align-items: center;
|
|
113
|
+
align-self: stretch;
|
|
114
|
+
padding: 0;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
flex: 1 1 auto;
|
|
117
|
+
min-height: 0;
|
|
118
|
+
cursor: default;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-component="select-v2"] [data-slot="select-v2-value-text"] {
|
|
122
|
+
display: block;
|
|
123
|
+
width: 100%;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
text-overflow: ellipsis;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
padding: 0 0 0 8px;
|
|
129
|
+
margin: 0;
|
|
130
|
+
border: 0;
|
|
131
|
+
background: transparent;
|
|
132
|
+
outline: none;
|
|
133
|
+
text-align: left;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-weight: 440;
|
|
136
|
+
font-size: 13px;
|
|
137
|
+
line-height: 16px;
|
|
138
|
+
letter-spacing: -0.04px;
|
|
139
|
+
color: var(--v2-text-text-base);
|
|
140
|
+
font-variation-settings: "slnt" 0;
|
|
141
|
+
cursor: default;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[data-component="select-v2"] [data-slot="select-v2-value-text"][data-placeholder-shown] {
|
|
145
|
+
color: var(--v2-text-text-faint);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-component="select-v2"][data-numeric] [data-slot="select-v2-value-text"] {
|
|
149
|
+
font-variant-numeric: tabular-nums;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[data-component="select-v2"]:where([data-invalid]):not([data-disabled]) [data-slot="select-v2-value-text"] {
|
|
153
|
+
color: var(--v2-state-fg-danger);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
[data-component="select-v2"] [data-slot="select-v2-chevron"] {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: row;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
align-self: center;
|
|
162
|
+
flex: none;
|
|
163
|
+
width: 20px;
|
|
164
|
+
height: 20px;
|
|
165
|
+
padding: 2px;
|
|
166
|
+
gap: 3px;
|
|
167
|
+
border: 0;
|
|
168
|
+
border-radius: 4px;
|
|
169
|
+
background: transparent;
|
|
170
|
+
color: var(--v2-icon-icon-muted);
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-component="select-v2"] [data-slot="select-v2-chevron"] svg {
|
|
175
|
+
display: block;
|
|
176
|
+
flex: none;
|
|
177
|
+
transform: rotate(180deg);
|
|
178
|
+
transform-origin: 50% 50%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[data-component="select-v2"][data-expanded] [data-slot="select-v2-chevron"] svg {
|
|
182
|
+
transform: rotate(0deg);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Compact trigger for settings rows and similar inline contexts. */
|
|
186
|
+
[data-component="select-v2"][data-appearance="inline"] {
|
|
187
|
+
width: fit-content;
|
|
188
|
+
max-width: 100%;
|
|
189
|
+
height: 24px;
|
|
190
|
+
padding: 4px 4px 4px 8px;
|
|
191
|
+
gap: 4px;
|
|
192
|
+
border-radius: 4px;
|
|
193
|
+
background: transparent;
|
|
194
|
+
box-shadow: none;
|
|
195
|
+
outline: none;
|
|
196
|
+
align-self: auto;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[data-component="select-v2"][data-appearance="inline"]:where(:hover):not([data-disabled], [data-invalid]):not(
|
|
200
|
+
:focus-within
|
|
201
|
+
):not([data-expanded]) {
|
|
202
|
+
background: var(--v2-overlay-simple-overlay-hover);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
[data-component="select-v2"][data-appearance="inline"]:where([data-expanded]):not([data-disabled], [data-invalid]) {
|
|
206
|
+
background: var(--v2-overlay-simple-overlay-hover);
|
|
207
|
+
outline: none;
|
|
208
|
+
box-shadow: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
[data-component="select-v2"][data-appearance="inline"]:where(:active):not([data-disabled], [data-invalid]):not(
|
|
212
|
+
[data-expanded]
|
|
213
|
+
) {
|
|
214
|
+
background: var(--v2-overlay-simple-overlay-pressed);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-component="select-v2"][data-appearance="inline"] [data-slot="select-v2-value-text"] {
|
|
218
|
+
padding: 0;
|
|
219
|
+
font-weight: 530;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-component="select-v2"][data-appearance="inline"] [data-slot="select-v2-chevron"] {
|
|
223
|
+
width: 16px;
|
|
224
|
+
height: 16px;
|
|
225
|
+
padding: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Listbox inside menu surface */
|
|
229
|
+
[data-component="menu-v2-content"][data-slot="select-v2-content"] [data-slot="select-v2-listbox"] {
|
|
230
|
+
box-sizing: border-box;
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
align-items: stretch;
|
|
234
|
+
margin: 0;
|
|
235
|
+
padding: 4px;
|
|
236
|
+
list-style: none;
|
|
237
|
+
min-width: 0;
|
|
238
|
+
width: 100%;
|
|
239
|
+
max-height: 12rem;
|
|
240
|
+
overflow-x: hidden;
|
|
241
|
+
overflow-y: auto;
|
|
242
|
+
outline: none;
|
|
243
|
+
white-space: nowrap;
|
|
244
|
+
|
|
245
|
+
&:focus {
|
|
246
|
+
outline: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
> *:not([role="presentation"]) + *:not([role="presentation"]) {
|
|
250
|
+
margin-top: 2px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
[data-slot="select-v2-listbox"] [data-component="menu-v2-item"],
|
|
255
|
+
[data-slot="select-v2-listbox"] [data-slot="menu-v2-group-label"] {
|
|
256
|
+
flex: none;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
[data-slot="select-v2-listbox"] [data-component="menu-v2-item"] {
|
|
260
|
+
--menu-v2-fg: var(--v2-text-text-base);
|
|
261
|
+
--menu-v2-fg-muted: var(--v2-text-text-faint);
|
|
262
|
+
--menu-v2-fg-subtle: var(--v2-text-text-muted);
|
|
263
|
+
--menu-v2-icon: var(--v2-icon-icon-base);
|
|
264
|
+
--menu-v2-accent: var(--v2-text-text-accent);
|
|
265
|
+
--menu-v2-badge-bg: var(--v2-background-bg-layer-02);
|
|
266
|
+
--menu-v2-badge-border: var(--v2-border-border-base);
|
|
267
|
+
--menu-v2-hover: var(--v2-overlay-simple-overlay-hover);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Listbox uses data-selected; menu item CSS uses data-checked — mirror accent */
|
|
271
|
+
[data-slot="select-v2-listbox"] [data-component="menu-v2-item"][data-selected] [data-slot="menu-v2-item-content"] {
|
|
272
|
+
font-weight: 530;
|
|
273
|
+
color: var(--menu-v2-accent);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[data-slot="select-v2-listbox"] [data-component="menu-v2-item"][data-selected] [data-slot="menu-v2-item-indicator"] {
|
|
277
|
+
color: var(--menu-v2-accent);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[data-slot="select-v2-listbox"]
|
|
281
|
+
[data-component="menu-v2-item"]:not([data-selected])
|
|
282
|
+
[data-slot="menu-v2-item-indicator"]
|
|
283
|
+
svg {
|
|
284
|
+
visibility: hidden;
|
|
285
|
+
}
|