@zyro-sec/ui 1.0.2 → 1.0.3
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/AGENTS.md +29 -29
- package/LICENSE +21 -21
- package/bunfig.toml +2 -2
- package/package.json +2 -2
- package/perf/motion.bench.ts +14 -14
- package/perf/motion.ts +16 -16
- package/script/build-oc2-v2-overrides.ts +38 -38
- package/script/colors.txt +288 -288
- package/script/generate-spinner.ts +121 -121
- package/script/pack.ts +5 -5
- package/script/tailwind.ts +24 -24
- package/src/actions/button/button.css +346 -346
- package/src/actions/button/button.stories.tsx +158 -158
- package/src/actions/button/button.tsx +56 -56
- package/src/actions/icon-button/icon-button.css +128 -128
- package/src/actions/icon-button/icon-button.stories.tsx +122 -122
- package/src/actions/icon-button/icon-button.tsx +46 -46
- package/src/actions/split-button/split-button.css +99 -99
- package/src/actions/split-button/split-button.stories.tsx +59 -59
- package/src/actions/split-button/split-button.tsx +51 -51
- package/src/actions/submit.css +81 -81
- package/src/assets/favicon/favicon-v3.svg +6 -6
- package/src/assets/favicon/favicon.svg +6 -6
- package/src/assets/favicon/site.webmanifest +24 -24
- package/src/assets/icons/app/android-studio.svg +369 -369
- package/src/assets/icons/app/antigravity.svg +97 -97
- package/src/assets/icons/app/cursor.svg +16 -16
- package/src/assets/icons/app/file-explorer.svg +20 -20
- package/src/assets/icons/app/ghostty.svg +13 -13
- package/src/assets/icons/app/iterm2.svg +13 -13
- package/src/assets/icons/app/powershell.svg +14 -14
- package/src/assets/icons/app/sublimetext.svg +17 -17
- package/src/assets/icons/app/vscode.svg +39 -39
- package/src/assets/icons/app/windows-terminal.svg +6 -6
- package/src/assets/icons/app/zed-dark.svg +15 -15
- package/src/assets/icons/app/zed.svg +15 -15
- package/src/assets/icons/file-types/auto_light.svg +12 -12
- package/src/assets/icons/file-types/cursor.svg +1 -1
- package/src/assets/icons/file-types/cursor_light.svg +1 -1
- package/src/assets/icons/file-types/drone_light.svg +4 -4
- package/src/assets/icons/file-types/folder-admin-open.svg +6 -6
- package/src/assets/icons/file-types/folder-admin.svg +6 -6
- package/src/assets/icons/file-types/folder-circleci-open.svg +7 -7
- package/src/assets/icons/file-types/folder-circleci.svg +7 -7
- package/src/assets/icons/file-types/folder-flow-open.svg +6 -6
- package/src/assets/icons/file-types/folder-flow.svg +6 -6
- package/src/assets/icons/file-types/folder-gh-workflows-open.svg +6 -6
- package/src/assets/icons/file-types/folder-gh-workflows.svg +6 -6
- package/src/assets/icons/file-types/folder-github-open.svg +6 -6
- package/src/assets/icons/file-types/folder-github.svg +6 -6
- package/src/assets/icons/file-types/folder-intellij-open.svg +39 -39
- package/src/assets/icons/file-types/folder-intellij.svg +39 -39
- package/src/assets/icons/file-types/folder-macos-open.svg +6 -6
- package/src/assets/icons/file-types/folder-macos.svg +6 -6
- package/src/assets/icons/file-types/folder-next-open.svg +6 -6
- package/src/assets/icons/file-types/folder-next.svg +6 -6
- package/src/assets/icons/file-types/folder-nuxt-open.svg +6 -6
- package/src/assets/icons/file-types/folder-nuxt.svg +6 -6
- package/src/assets/icons/file-types/folder-open.svg +5 -5
- package/src/assets/icons/file-types/folder-scripts-open.svg +6 -6
- package/src/assets/icons/file-types/folder-scripts.svg +6 -6
- package/src/assets/icons/file-types/folder-target-open.svg +10 -10
- package/src/assets/icons/file-types/folder-target.svg +10 -10
- package/src/assets/icons/file-types/folder-turborepo-open.svg +15 -15
- package/src/assets/icons/file-types/folder-turborepo.svg +15 -15
- package/src/assets/icons/file-types/folder-vercel-open.svg +5 -5
- package/src/assets/icons/file-types/folder-vercel.svg +5 -5
- package/src/assets/icons/file-types/folder.svg +5 -5
- package/src/assets/icons/file-types/go_gopher.svg +35 -35
- package/src/assets/icons/file-types/nano-staged_light.svg +4 -4
- package/src/assets/icons/file-types/opa.svg +9 -9
- package/src/assets/icons/file-types/quarto.svg +5 -5
- package/src/assets/icons/file-types/rome.svg +6 -6
- package/src/assets/icons/file-types/stitches_light.svg +10 -10
- package/src/assets/icons/file-types/stylelint_light.svg +13 -13
- package/src/assets/icons/file-types/unocss.svg +5 -5
- package/src/assets/icons/file-types/vlang.svg +6 -6
- package/src/assets/icons/provider/302ai.svg +6 -6
- package/src/assets/icons/provider/abacus.svg +14 -14
- package/src/assets/icons/provider/aihubmix.svg +3 -3
- package/src/assets/icons/provider/alibaba-cn.svg +3 -3
- package/src/assets/icons/provider/alibaba-coding-plan-cn.svg +3 -3
- package/src/assets/icons/provider/alibaba-coding-plan.svg +3 -3
- package/src/assets/icons/provider/alibaba.svg +3 -3
- package/src/assets/icons/provider/amazon-bedrock.svg +3 -3
- package/src/assets/icons/provider/anthropic.svg +2 -2
- package/src/assets/icons/provider/azure-cognitive-services.svg +24 -24
- package/src/assets/icons/provider/azure.svg +3 -3
- package/src/assets/icons/provider/bailing.svg +3 -3
- package/src/assets/icons/provider/baseten.svg +3 -3
- package/src/assets/icons/provider/berget.svg +2 -2
- package/src/assets/icons/provider/cerebras.svg +4 -4
- package/src/assets/icons/provider/chutes.svg +24 -24
- package/src/assets/icons/provider/clarifai.svg +24 -24
- package/src/assets/icons/provider/claude-agent.svg +3 -3
- package/src/assets/icons/provider/cloudferro-sherlock.svg +4 -4
- package/src/assets/icons/provider/cloudflare-ai-gateway.svg +4 -4
- package/src/assets/icons/provider/cloudflare-workers-ai.svg +4 -4
- package/src/assets/icons/provider/cohere.svg +5 -5
- package/src/assets/icons/provider/cortecs.svg +24 -24
- package/src/assets/icons/provider/deepinfra.svg +4 -4
- package/src/assets/icons/provider/deepseek.svg +3 -3
- package/src/assets/icons/provider/digitalocean.svg +6 -6
- package/src/assets/icons/provider/dinference.svg +1 -1
- package/src/assets/icons/provider/drun.svg +8 -8
- package/src/assets/icons/provider/evroc.svg +2 -2
- package/src/assets/icons/provider/fastrouter.svg +3 -3
- package/src/assets/icons/provider/fireworks-ai.svg +3 -3
- package/src/assets/icons/provider/firmware.svg +18 -18
- package/src/assets/icons/provider/friendli.svg +3 -3
- package/src/assets/icons/provider/github-copilot.svg +3 -3
- package/src/assets/icons/provider/github-models.svg +3 -3
- package/src/assets/icons/provider/gitlab.svg +3 -3
- package/src/assets/icons/provider/google-vertex-anthropic.svg +24 -24
- package/src/assets/icons/provider/google-vertex.svg +10 -10
- package/src/assets/icons/provider/google.svg +3 -3
- package/src/assets/icons/provider/groq.svg +3 -3
- package/src/assets/icons/provider/helicone.svg +6 -6
- package/src/assets/icons/provider/huggingface.svg +3 -3
- package/src/assets/icons/provider/iflowcn.svg +3 -3
- package/src/assets/icons/provider/inception.svg +4 -4
- package/src/assets/icons/provider/inference.svg +3 -3
- package/src/assets/icons/provider/io-net.svg +5 -5
- package/src/assets/icons/provider/jiekou.svg +4 -4
- package/src/assets/icons/provider/kilo.svg +4 -4
- package/src/assets/icons/provider/kimi-for-coding.svg +3 -3
- package/src/assets/icons/provider/kuae-cloud-coding-plan.svg +3 -3
- package/src/assets/icons/provider/llama.svg +3 -3
- package/src/assets/icons/provider/lmstudio.svg +24 -24
- package/src/assets/icons/provider/lucidquery.svg +3 -3
- package/src/assets/icons/provider/meganova.svg +3 -3
- package/src/assets/icons/provider/meituan.svg +6 -6
- package/src/assets/icons/provider/meta.svg +3 -3
- package/src/assets/icons/provider/minimax-cn-coding-plan.svg +24 -24
- package/src/assets/icons/provider/minimax-cn.svg +3 -3
- package/src/assets/icons/provider/minimax-coding-plan.svg +24 -24
- package/src/assets/icons/provider/minimax.svg +3 -3
- package/src/assets/icons/provider/mistral.svg +3 -3
- package/src/assets/icons/provider/moark.svg +3 -3
- package/src/assets/icons/provider/modelscope.svg +5 -5
- package/src/assets/icons/provider/moonshotai-cn.svg +3 -3
- package/src/assets/icons/provider/moonshotai.svg +3 -3
- package/src/assets/icons/provider/morph.svg +24 -24
- package/src/assets/icons/provider/nano-gpt.svg +2 -2
- package/src/assets/icons/provider/nebius.svg +4 -4
- package/src/assets/icons/provider/nova.svg +3 -3
- package/src/assets/icons/provider/novita-ai.svg +10 -10
- package/src/assets/icons/provider/nvidia.svg +3 -3
- package/src/assets/icons/provider/ollama-cloud.svg +7 -7
- package/src/assets/icons/provider/openai.svg +3 -3
- package/src/assets/icons/provider/opencode-go.svg +3 -3
- package/src/assets/icons/provider/opencode.svg +3 -3
- package/src/assets/icons/provider/openrouter.svg +3 -3
- package/src/assets/icons/provider/ovhcloud.svg +3 -3
- package/src/assets/icons/provider/perplexity-agent.svg +3 -3
- package/src/assets/icons/provider/perplexity.svg +3 -3
- package/src/assets/icons/provider/poe.svg +7 -7
- package/src/assets/icons/provider/privatemode-ai.svg +4 -4
- package/src/assets/icons/provider/qihang-ai.svg +8 -8
- package/src/assets/icons/provider/qiniu-ai.svg +7 -7
- package/src/assets/icons/provider/reflection.svg +3 -3
- package/src/assets/icons/provider/requesty.svg +24 -24
- package/src/assets/icons/provider/sap-ai-core.svg +24 -24
- package/src/assets/icons/provider/scaleway.svg +5 -5
- package/src/assets/icons/provider/siliconflow-cn.svg +3 -3
- package/src/assets/icons/provider/siliconflow.svg +3 -3
- package/src/assets/icons/provider/stackit.svg +4 -4
- package/src/assets/icons/provider/stepfun.svg +16 -16
- package/src/assets/icons/provider/submodel.svg +3 -3
- package/src/assets/icons/provider/synthetic.svg +24 -24
- package/src/assets/icons/provider/tencent-coding-plan.svg +5 -5
- package/src/assets/icons/provider/tencent.svg +3 -3
- package/src/assets/icons/provider/thinkingmachines.svg +3 -3
- package/src/assets/icons/provider/togetherai.svg +4 -4
- package/src/assets/icons/provider/upstage.svg +24 -24
- package/src/assets/icons/provider/v0.svg +3 -3
- package/src/assets/icons/provider/venice.svg +4 -4
- package/src/assets/icons/provider/vercel.svg +3 -3
- package/src/assets/icons/provider/vivgrid.svg +4 -4
- package/src/assets/icons/provider/vultr.svg +6 -6
- package/src/assets/icons/provider/wandb.svg +24 -24
- package/src/assets/icons/provider/xai.svg +3 -3
- package/src/assets/icons/provider/xiaomi.svg +3 -3
- package/src/assets/icons/provider/zai-coding-plan.svg +3 -3
- package/src/assets/icons/provider/zai.svg +3 -3
- package/src/assets/icons/provider/zenmux.svg +4 -4
- package/src/assets/icons/provider/zhipuai-coding-plan.svg +3 -3
- package/src/assets/icons/provider/zhipuai.svg +3 -3
- package/src/components/animated-number-machine.ts +214 -214
- package/src/components/animated-number.css +110 -110
- package/src/components/animated-number.stories.tsx +35 -35
- package/src/components/animated-number.tsx +202 -202
- package/src/components/app-icon.css +5 -5
- package/src/components/app-icon.stories.tsx +73 -73
- package/src/components/app-icon.tsx +89 -89
- package/src/components/app-icons/sprite.svg +114 -114
- package/src/components/app-icons/types.ts +22 -22
- package/src/components/card.css +94 -94
- package/src/components/card.stories.tsx +101 -101
- package/src/components/card.tsx +145 -145
- package/src/components/collapsible.css +139 -139
- package/src/components/collapsible.stories.tsx +76 -76
- package/src/components/collapsible.tsx +62 -62
- package/src/components/context-menu.css +134 -134
- package/src/components/context-menu.stories.tsx +150 -150
- package/src/components/context-menu.tsx +342 -342
- package/src/components/diagram-preview.css +95 -95
- package/src/components/diagram-preview.stories.tsx +62 -62
- package/src/components/diagram-preview.tsx +332 -332
- package/src/components/dock-surface.css +30 -30
- package/src/components/dock-surface.stories.tsx +26 -26
- package/src/components/dock-surface.tsx +40 -40
- package/src/components/document-surface.css +37 -37
- package/src/components/document-surface.stories.tsx +42 -42
- package/src/components/document-surface.tsx +6 -6
- package/src/components/error-details.css +41 -41
- package/src/components/error-details.stories.tsx +72 -72
- package/src/components/error-details.tsx +13 -13
- package/src/components/favicon.stories.tsx +49 -49
- package/src/components/favicon.tsx +13 -13
- package/src/components/file-icon-machine.ts +78 -78
- package/src/components/file-icon.css +6 -6
- package/src/components/file-icon.stories.tsx +93 -93
- package/src/components/file-icon.tsx +186 -186
- package/src/components/file-icons/choose-icon-name.ts +574 -574
- package/src/components/file-icons/sprite.svg +11707 -11707
- package/src/components/file-icons/types.ts +1095 -1095
- package/src/components/font.stories.tsx +48 -48
- package/src/components/font.tsx +1 -1
- package/src/components/hover-card.css +61 -61
- package/src/components/hover-card.stories.tsx +79 -79
- package/src/components/hover-card.tsx +32 -32
- package/src/components/image-flight-machine.ts +247 -247
- package/src/components/image-flight.ts +161 -161
- package/src/components/image-preview.css +202 -202
- package/src/components/image-preview.stories.tsx +392 -392
- package/src/components/image-preview.tsx +908 -908
- package/src/components/image-zoom-machine.ts +191 -191
- package/src/components/image-zoom.ts +124 -124
- package/src/components/list.css +331 -331
- package/src/components/list.stories.tsx +221 -221
- package/src/components/list.tsx +322 -322
- package/src/components/logo.css +4 -4
- package/src/components/logo.stories.tsx +62 -62
- package/src/components/logo.tsx +62 -62
- package/src/components/menu-scroll.css +70 -70
- package/src/components/menu-scroll.stories.tsx +73 -73
- package/src/components/menu-scroll.tsx +202 -202
- package/src/components/motion-spring.tsx +65 -65
- package/src/components/popover-machine.ts +198 -198
- package/src/components/popover.css +66 -66
- package/src/components/popover.stories.tsx +84 -84
- package/src/components/popover.tsx +234 -234
- package/src/components/preview-controls.css +28 -28
- package/src/components/preview-controls.stories.tsx +40 -40
- package/src/components/preview-controls.tsx +53 -53
- package/src/components/progress.css +63 -63
- package/src/components/progress.stories.tsx +69 -69
- package/src/components/progress.tsx +39 -39
- package/src/components/provider-icon.css +5 -5
- package/src/components/provider-icon.stories.tsx +75 -75
- package/src/components/provider-icon.tsx +31 -31
- package/src/components/provider-icons/sprite.svg +1131 -1131
- package/src/components/provider-icons/types.ts +111 -111
- package/src/components/resize-handle-machine.ts +174 -174
- package/src/components/resize-handle.css +81 -81
- package/src/components/resize-handle.stories.tsx +81 -81
- package/src/components/resize-handle.tsx +164 -164
- package/src/components/rolling-number.css +24 -24
- package/src/components/rolling-number.stories.tsx +23 -23
- package/src/components/rolling-number.tsx +135 -135
- package/src/components/scroll-view-machine.ts +244 -244
- package/src/components/scroll-view.css +99 -99
- package/src/components/scroll-view.stories.tsx +68 -68
- package/src/components/scroll-view.tsx +653 -653
- package/src/components/spinner-frames.css +6 -6
- package/src/components/spinner-radar.ts +150 -150
- package/src/components/spinner.css +38 -38
- package/src/components/spinner.stories.tsx +40 -40
- package/src/components/spinner.tsx +43 -43
- package/src/components/sticky-accordion-header.css +11 -11
- package/src/components/sticky-accordion-header.stories.tsx +64 -64
- package/src/components/sticky-accordion-header.tsx +18 -18
- package/src/components/text-field-machine.ts +102 -102
- package/src/components/text-field.css +134 -134
- package/src/components/text-field.stories.tsx +132 -132
- package/src/components/text-field.tsx +196 -196
- package/src/components/text-reveal-machine.ts +184 -184
- package/src/components/text-reveal.css +150 -150
- package/src/components/text-reveal.stories.tsx +363 -363
- package/src/components/text-reveal.tsx +165 -165
- package/src/components/text-strikethrough.css +27 -27
- package/src/components/text-strikethrough.stories.tsx +296 -296
- package/src/components/text-strikethrough.tsx +92 -92
- package/src/components/thinking-heading.stories.tsx +900 -900
- package/src/components/truncated-text.css +25 -25
- package/src/components/truncated-text.stories.tsx +37 -37
- package/src/components/truncated-text.tsx +30 -30
- package/src/components/typewriter-machine.ts +134 -134
- package/src/components/typewriter.css +14 -14
- package/src/components/typewriter.stories.tsx +51 -51
- package/src/components/typewriter.tsx +70 -70
- package/src/context/dialog-machine.ts +281 -281
- package/src/context/dialog.tsx +376 -376
- package/src/context/file.tsx +11 -11
- package/src/context/focus-rescue.tsx +230 -230
- package/src/context/helper.tsx +43 -43
- package/src/context/highlight-theme.tsx +66 -66
- package/src/context/i18n.tsx +144 -144
- package/src/context/index.ts +7 -7
- package/src/context/marked-base.tsx +67 -67
- package/src/context/marked-parser.tsx +154 -154
- package/src/context/overlay-focus.tsx +90 -90
- package/src/custom-elements.d.ts +17 -17
- package/src/data-display/accordion/accordion.css +130 -130
- package/src/data-display/accordion/accordion.stories.tsx +76 -76
- package/src/data-display/accordion/accordion.tsx +106 -106
- package/src/data-display/avatar/avatar.css +70 -70
- package/src/data-display/avatar/avatar.stories.tsx +48 -48
- package/src/data-display/avatar/avatar.tsx +63 -63
- package/src/data-display/badge/badge.css +63 -63
- package/src/data-display/badge/badge.stories.tsx +75 -75
- package/src/data-display/badge/badge.tsx +26 -26
- package/src/data-display/diff-changes/diff-changes.css +47 -47
- package/src/data-display/diff-changes/diff-changes.stories.tsx +63 -63
- package/src/data-display/diff-changes/diff-changes.tsx +43 -43
- package/src/data-display/keybind/keybind.css +84 -84
- package/src/data-display/keybind/keybind.stories.tsx +77 -77
- package/src/data-display/keybind/keybind.tsx +31 -31
- package/src/data-display/line-comment/line-comment.css +341 -341
- package/src/data-display/line-comment/line-comment.stories.tsx +288 -288
- package/src/data-display/line-comment/line-comment.tsx +554 -554
- package/src/data-display/line-comment/machine.ts +400 -400
- package/src/data-display/line-comment/quote-check.svg +3 -3
- package/src/data-display/project-avatar/animation-machine.ts +182 -182
- package/src/data-display/project-avatar/animation.ts +133 -133
- package/src/data-display/project-avatar/generated.ts +225 -225
- package/src/data-display/project-avatar/procedural-craft.ts +1079 -1079
- package/src/data-display/project-avatar/procedural-kit.ts +244 -244
- package/src/data-display/project-avatar/procedural-machine.ts +924 -924
- package/src/data-display/project-avatar/procedural-world.ts +1542 -1542
- package/src/data-display/project-avatar/procedural.ts +1563 -1563
- package/src/data-display/project-avatar/project-avatar.css +189 -189
- package/src/data-display/project-avatar/project-avatar.stories.tsx +102 -102
- package/src/data-display/project-avatar/project-avatar.tsx +246 -246
- package/src/data-display/project-avatar/project-icon-styles.stories.tsx +772 -772
- package/src/feedback/activity-ring/activity-ring.css +5 -5
- package/src/feedback/activity-ring/activity-ring.stories.tsx +20 -20
- package/src/feedback/activity-ring/activity-ring.tsx +15 -15
- package/src/feedback/loader/loader.css +32 -32
- package/src/feedback/loader/loader.stories.tsx +44 -44
- package/src/feedback/loader/loader.tsx +34 -34
- package/src/feedback/progress-circle/progress-circle.css +28 -28
- package/src/feedback/progress-circle/progress-circle.stories.tsx +56 -56
- package/src/feedback/progress-circle/progress-circle.tsx +64 -64
- package/src/feedback/toast/description.ts +10 -10
- package/src/feedback/toast/machine.ts +115 -115
- package/src/feedback/toast/toast.css +234 -234
- package/src/feedback/toast/toast.stories.tsx +186 -186
- package/src/feedback/toast/toast.tsx +317 -317
- package/src/forms/checkbox/checkbox-compact.css +170 -170
- package/src/forms/checkbox/checkbox.css +125 -125
- package/src/forms/checkbox/checkbox.stories.tsx +104 -104
- package/src/forms/checkbox/checkbox.tsx +119 -119
- package/src/forms/field/field.css +94 -94
- package/src/forms/field/field.stories.tsx +129 -129
- package/src/forms/field/field.tsx +271 -271
- package/src/forms/inline-input/inline-input.css +16 -16
- package/src/forms/inline-input/inline-input.stories.tsx +37 -37
- package/src/forms/inline-input/inline-input.tsx +26 -26
- package/src/forms/radio/radio.css +218 -218
- package/src/forms/radio/radio.stories.tsx +145 -145
- package/src/forms/radio/radio.tsx +95 -95
- package/src/forms/redirect-paste/redirect-paste.stories.tsx +101 -101
- package/src/forms/redirect-paste/redirect-paste.tsx +92 -92
- package/src/forms/search-list/navigation.ts +54 -54
- package/src/forms/search-list/search-list.css +249 -249
- package/src/forms/search-list/search-list.stories.tsx +108 -108
- package/src/forms/search-list/search-list.tsx +463 -463
- package/src/forms/select/machine.ts +81 -81
- package/src/forms/select/select.css +312 -312
- package/src/forms/select/select.stories.tsx +208 -208
- package/src/forms/select/select.tsx +281 -281
- package/src/forms/switch/switch.css +281 -281
- package/src/forms/switch/switch.stories.tsx +97 -97
- package/src/forms/switch/switch.tsx +35 -35
- package/src/forms/text-input/text-input.css +229 -229
- package/src/forms/text-input/text-input.stories.tsx +220 -220
- package/src/forms/text-input/text-input.tsx +115 -115
- package/src/forms/textarea/textarea.css +103 -103
- package/src/forms/textarea/textarea.stories.tsx +137 -137
- package/src/forms/textarea/textarea.tsx +33 -33
- package/src/forms/typeahead/controller.ts +59 -59
- package/src/forms/typeahead/machine.ts +253 -253
- package/src/forms/typeahead/typeahead.stories.tsx +113 -113
- package/src/forms/typeahead/typeahead.tsx +239 -239
- package/src/hooks/auto-scroll-machine.ts +261 -261
- package/src/hooks/create-auto-scroll.tsx +196 -196
- package/src/hooks/index.ts +5 -5
- package/src/hooks/list-machine.ts +359 -359
- package/src/hooks/spin-phase.ts +116 -116
- package/src/hooks/use-filtered-list.tsx +132 -132
- package/src/i18n/am.ts +384 -384
- package/src/i18n/ar.ts +547 -547
- package/src/i18n/az.ts +386 -386
- package/src/i18n/bg.ts +386 -386
- package/src/i18n/bn.ts +393 -393
- package/src/i18n/br.ts +444 -444
- package/src/i18n/bs.ts +445 -445
- package/src/i18n/ca.ts +423 -423
- package/src/i18n/cs.ts +457 -457
- package/src/i18n/da.ts +407 -407
- package/src/i18n/de.ts +414 -414
- package/src/i18n/dv.ts +395 -395
- package/src/i18n/dz.ts +393 -393
- package/src/i18n/el.ts +388 -388
- package/src/i18n/en.ts +433 -433
- package/src/i18n/es.ts +443 -443
- package/src/i18n/et.ts +386 -386
- package/src/i18n/fa.ts +388 -388
- package/src/i18n/fi.ts +388 -388
- package/src/i18n/fo.ts +388 -388
- package/src/i18n/fr.ts +447 -447
- package/src/i18n/he.ts +422 -422
- package/src/i18n/hi.ts +392 -392
- package/src/i18n/hr.ts +422 -422
- package/src/i18n/hu.ts +388 -388
- package/src/i18n/hy.ts +389 -389
- package/src/i18n/id.ts +411 -411
- package/src/i18n/is.ts +388 -388
- package/src/i18n/it.ts +425 -425
- package/src/i18n/ja.ts +406 -406
- package/src/i18n/ka.ts +388 -388
- package/src/i18n/km.ts +389 -389
- package/src/i18n/ko.ts +408 -408
- package/src/i18n/lo.ts +387 -387
- package/src/i18n/lt.ts +457 -457
- package/src/i18n/lv.ts +421 -421
- package/src/i18n/mk.ts +387 -387
- package/src/i18n/mn.ts +386 -386
- package/src/i18n/ms.ts +389 -389
- package/src/i18n/my.ts +389 -389
- package/src/i18n/ne.ts +393 -393
- package/src/i18n/nl.ts +388 -388
- package/src/i18n/no.ts +413 -413
- package/src/i18n/pa.ts +394 -394
- package/src/i18n/pl.ts +476 -476
- package/src/i18n/ro.ts +423 -423
- package/src/i18n/ru.ts +475 -475
- package/src/i18n/si.ts +390 -390
- package/src/i18n/sk.ts +457 -457
- package/src/i18n/sl.ts +457 -457
- package/src/i18n/sq.ts +387 -387
- package/src/i18n/sr.ts +422 -422
- package/src/i18n/sv.ts +388 -388
- package/src/i18n/tg.ts +390 -390
- package/src/i18n/th.ts +407 -407
- package/src/i18n/tk.ts +386 -386
- package/src/i18n/tr.ts +412 -412
- package/src/i18n/uk.ts +480 -480
- package/src/i18n/ur.ts +394 -394
- package/src/i18n/uz.ts +390 -390
- package/src/i18n/vi.ts +387 -387
- package/src/i18n/zh.ts +408 -408
- package/src/i18n/zht.ts +408 -408
- package/src/icons/catalog.ts +638 -638
- package/src/icons/icon/icon.css +3 -3
- package/src/icons/icon/icon.stories.tsx +131 -131
- package/src/icons/icon/icon.tsx +106 -106
- package/src/icons/registry.ts +217 -217
- package/src/layout/divider/divider.css +11 -11
- package/src/layout/divider/divider.stories.tsx +38 -38
- package/src/layout/divider/divider.tsx +21 -21
- package/src/motion/README.md +113 -113
- package/src/motion/index.ts +13 -13
- package/src/motion/loop.ts +139 -139
- package/src/motion/reduced.ts +66 -66
- package/src/motion/slider.ts +45 -45
- package/src/motion/solid.ts +309 -309
- package/src/motion/spring.ts +125 -125
- package/src/motion/velocity.ts +46 -46
- package/src/motion/waapi.ts +89 -89
- package/src/motion-tuning-features.ts +161 -161
- package/src/motion-tuning-fields.ts +42 -42
- package/src/motion-tuning.ts +323 -323
- package/src/navigation/menu/machine.ts +109 -109
- package/src/navigation/menu/menu.css +313 -313
- package/src/navigation/menu/menu.stories.tsx +328 -328
- package/src/navigation/menu/menu.tsx +600 -600
- package/src/navigation/menu/submenu-machine.ts +67 -67
- package/src/navigation/segmented-control/machine.ts +72 -72
- package/src/navigation/segmented-control/segmented-control.css +113 -113
- package/src/navigation/segmented-control/segmented-control.stories.tsx +115 -115
- package/src/navigation/segmented-control/segmented-control.tsx +396 -396
- package/src/navigation/tab-state-indicator.stories.tsx +24 -24
- package/src/navigation/tab-state-indicator.tsx +38 -38
- package/src/navigation/tabs/tabs-current.css +244 -244
- package/src/navigation/tabs/tabs.css +676 -676
- package/src/navigation/tabs/tabs.stories.tsx +193 -193
- package/src/navigation/tabs/tabs.tsx +212 -212
- package/src/overlays/dialog/dialog.css +194 -194
- package/src/overlays/dialog/dialog.stories.tsx +365 -365
- package/src/overlays/dialog/dialog.tsx +192 -192
- package/src/overlays/mcp-sign-in/machine.ts +343 -343
- package/src/overlays/mcp-sign-in/mcp-sign-in.ts +159 -159
- package/src/overlays/tooltip/machine.ts +312 -312
- package/src/overlays/tooltip/tooltip.css +102 -102
- package/src/overlays/tooltip/tooltip.stories.tsx +155 -155
- package/src/overlays/tooltip/tooltip.tsx +290 -290
- package/src/storybook/fixtures.ts +51 -51
- package/src/storybook/scaffold.tsx +65 -65
- package/src/styles/animations.css +13 -13
- package/src/styles/base.css +441 -441
- package/src/styles/blue-tokens.stories.tsx +215 -215
- package/src/styles/colors.css +772 -772
- package/src/styles/file-tree.css +285 -285
- package/src/styles/index.css +42 -42
- package/src/styles/scrollbar.css +79 -79
- package/src/styles/tailwind/colors.css +288 -288
- package/src/styles/tailwind/index.css +113 -113
- package/src/styles/tailwind/utilities.css +17 -17
- package/src/styles/theme.css +640 -640
- package/src/styles/tokens/colors.css +172 -172
- package/src/styles/tokens/index.css +2 -2
- package/src/styles/tokens/theme.css +522 -522
- package/src/styles/utilities.css +93 -93
- package/src/theme/color.ts +290 -290
- package/src/theme/context.tsx +361 -361
- package/src/theme/desktop-theme.schema.json +168 -168
- package/src/theme/index.ts +35 -35
- package/src/theme/machine.ts +508 -508
- package/src/theme/resolve.ts +561 -561
- package/src/theme/themes/amoled.json +49 -49
- package/src/theme/themes/aura.json +51 -51
- package/src/theme/themes/ayu.json +51 -51
- package/src/theme/themes/carbonfox.json +53 -53
- package/src/theme/themes/catppuccin-frappe.json +65 -65
- package/src/theme/themes/catppuccin-macchiato.json +65 -65
- package/src/theme/themes/catppuccin.json +45 -45
- package/src/theme/themes/cobalt2.json +87 -87
- package/src/theme/themes/cursor.json +91 -91
- package/src/theme/themes/dracula.json +49 -49
- package/src/theme/themes/everforest.json +89 -89
- package/src/theme/themes/flexoki.json +86 -86
- package/src/theme/themes/github.json +85 -85
- package/src/theme/themes/gruvbox.json +45 -45
- package/src/theme/themes/kanagawa.json +89 -89
- package/src/theme/themes/lucent-orng.json +87 -87
- package/src/theme/themes/material.json +87 -87
- package/src/theme/themes/matrix.json +113 -113
- package/src/theme/themes/mercury.json +86 -86
- package/src/theme/themes/monokai.json +49 -49
- package/src/theme/themes/nightowl.json +46 -46
- package/src/theme/themes/nord.json +46 -46
- package/src/theme/themes/oc-2.json +509 -509
- package/src/theme/themes/one-dark.json +89 -89
- package/src/theme/themes/onedarkpro.json +45 -45
- package/src/theme/themes/orng.json +87 -87
- package/src/theme/themes/osaka-jade.json +88 -88
- package/src/theme/themes/palenight.json +85 -85
- package/src/theme/themes/rosepine.json +85 -85
- package/src/theme/themes/shadesofpurple.json +51 -51
- package/src/theme/themes/solarized.json +49 -49
- package/src/theme/themes/synthwave84.json +87 -87
- package/src/theme/themes/tokyonight.json +47 -47
- package/src/theme/themes/vercel.json +90 -90
- package/src/theme/themes/vesper.json +51 -51
- package/src/theme/themes/zenburn.json +87 -87
- package/src/theme/types.ts +75 -75
- package/src/theme/v2/avatar.ts +48 -48
- package/src/theme/v2/default-primitives.ts +114 -114
- package/src/theme/v2/foreground.ts +69 -69
- package/src/theme/v2/mapping.ts +180 -180
- package/src/theme/v2/resolve.ts +163 -163
- package/src/typography/slash/slash.css +14 -14
- package/src/typography/slash/slash.stories.tsx +26 -26
- package/src/typography/slash/slash.tsx +16 -16
- package/src/typography/text-shimmer/machine.ts +90 -90
- package/src/typography/text-shimmer/text-shimmer.css +152 -152
- package/src/typography/text-shimmer/text-shimmer.stories.tsx +64 -64
- package/src/typography/text-shimmer/text-shimmer.tsx +81 -81
- package/src/typography/wordmark/wordmark.stories.tsx +19 -19
- package/src/typography/wordmark/wordmark.tsx +73 -73
- package/test/solid-jsx.ts +20 -20
- package/tsconfig.build.json +14 -14
- package/tsconfig.json +23 -23
- package/vite.config.ts +61 -61
- package/src/components/animated-number-machine.test.ts +0 -140
- package/src/components/file-icon-machine.test.ts +0 -52
- package/src/components/image-flight-machine.test.ts +0 -184
- package/src/components/image-flight.test.ts +0 -173
- package/src/components/image-zoom-machine.test.ts +0 -154
- package/src/components/image-zoom.test.ts +0 -96
- package/src/components/popover-machine.test.ts +0 -150
- package/src/components/resize-handle-machine.test.ts +0 -164
- package/src/components/scroll-view-machine.test.ts +0 -141
- package/src/components/scroll-view.test.ts +0 -114
- package/src/components/spinner-radar.test.ts +0 -61
- package/src/components/text-field-machine.test.ts +0 -99
- package/src/components/text-reveal-machine.test.ts +0 -157
- package/src/components/typewriter-machine.test.ts +0 -177
- package/src/context/dialog-machine.test.ts +0 -295
- package/src/context/i18n.test.ts +0 -89
- package/src/context/marked-base.test.ts +0 -75
- package/src/context/marked-parser.test.ts +0 -167
- package/src/context/marked-regression.test.ts +0 -12
- package/src/data-display/line-comment/machine.test.ts +0 -385
- package/src/data-display/project-avatar/animation-machine.test.ts +0 -134
- package/src/data-display/project-avatar/generated.test.ts +0 -50
- package/src/data-display/project-avatar/procedural.test.ts +0 -16
- package/src/data-display/project-avatar/project-avatar.test.ts +0 -21
- package/src/feedback/toast/description.test.ts +0 -20
- package/src/feedback/toast/machine.test.ts +0 -106
- package/src/forms/search-list/navigation.test.ts +0 -40
- package/src/forms/select/machine.test.ts +0 -105
- package/src/forms/typeahead/machine.test.ts +0 -143
- package/src/hooks/auto-scroll-machine.test.ts +0 -212
- package/src/hooks/list-machine.test.ts +0 -263
- package/src/hooks/spin-phase.test.ts +0 -32
- package/src/hooks/use-filtered-list.test.ts +0 -41
- package/src/motion/core.test.ts +0 -328
- package/src/motion-tuning-features.test.ts +0 -129
- package/src/motion-tuning.test.ts +0 -68
- package/src/navigation/menu/machine.test.ts +0 -85
- package/src/navigation/menu/submenu-machine.test.ts +0 -71
- package/src/navigation/segmented-control/segmented-control.test.ts +0 -123
- package/src/overlays/mcp-sign-in/machine.test.ts +0 -215
- package/src/overlays/tooltip/machine.test.ts +0 -214
- package/src/theme/machine.test.ts +0 -498
- package/src/theme/v2/resolve.test.ts +0 -120
- package/src/typography/text-shimmer/machine.test.ts +0 -117
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import type { Component, ComponentProps } from "solid-js"
|
|
2
|
-
import { createSignal, onCleanup, onMount, splitProps } from "solid-js"
|
|
3
|
-
import type { IconName } from "./app-icons/types"
|
|
4
|
-
|
|
5
|
-
import androidStudio from "../assets/icons/app/android-studio.svg"
|
|
6
|
-
import antigravity from "../assets/icons/app/antigravity.svg"
|
|
7
|
-
import cursor from "../assets/icons/app/cursor.svg"
|
|
8
|
-
import fileExplorer from "../assets/icons/app/file-explorer.svg"
|
|
9
|
-
import finder from "../assets/icons/app/finder.png"
|
|
10
|
-
import ghostty from "../assets/icons/app/ghostty.svg"
|
|
11
|
-
import iterm2 from "../assets/icons/app/iterm2.svg"
|
|
12
|
-
import powershell from "../assets/icons/app/powershell.svg"
|
|
13
|
-
import terminal from "../assets/icons/app/terminal.png"
|
|
14
|
-
import textmate from "../assets/icons/app/textmate.png"
|
|
15
|
-
import vscode from "../assets/icons/app/vscode.svg"
|
|
16
|
-
import warp from "../assets/icons/app/warp.png"
|
|
17
|
-
import xcode from "../assets/icons/app/xcode.png"
|
|
18
|
-
import zed from "../assets/icons/app/zed.svg"
|
|
19
|
-
import zedDark from "../assets/icons/app/zed-dark.svg"
|
|
20
|
-
import sublimetext from "../assets/icons/app/sublimetext.svg"
|
|
21
|
-
import windowsTerminal from "../assets/icons/app/windows-terminal.svg"
|
|
22
|
-
|
|
23
|
-
const icons = {
|
|
24
|
-
vscode,
|
|
25
|
-
cursor,
|
|
26
|
-
zed,
|
|
27
|
-
"file-explorer": fileExplorer,
|
|
28
|
-
finder,
|
|
29
|
-
terminal,
|
|
30
|
-
iterm2,
|
|
31
|
-
ghostty,
|
|
32
|
-
warp,
|
|
33
|
-
xcode,
|
|
34
|
-
"android-studio": androidStudio,
|
|
35
|
-
antigravity,
|
|
36
|
-
textmate,
|
|
37
|
-
powershell,
|
|
38
|
-
"sublime-text": sublimetext,
|
|
39
|
-
"windows-terminal": windowsTerminal,
|
|
40
|
-
} satisfies Record<IconName, string>
|
|
41
|
-
|
|
42
|
-
const themed: Partial<Record<IconName, { light: string; dark: string }>> = {
|
|
43
|
-
zed: {
|
|
44
|
-
light: zed,
|
|
45
|
-
dark: zedDark,
|
|
46
|
-
},
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const scheme = () => {
|
|
50
|
-
if (!("document" in globalThis)) return "light" as const
|
|
51
|
-
|
|
52
|
-
if (document.documentElement.dataset.colorScheme === "dark") return "dark" as const
|
|
53
|
-
|
|
54
|
-
return "light" as const
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type AppIconProps = Omit<ComponentProps<"img">, "src"> & {
|
|
58
|
-
id: IconName
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const AppIcon: Component<AppIconProps> = (props) => {
|
|
62
|
-
const [local, rest] = splitProps(props, ["id", "class", "classList", "alt", "draggable"])
|
|
63
|
-
const [mode, setMode] = createSignal(scheme())
|
|
64
|
-
|
|
65
|
-
onMount(() => {
|
|
66
|
-
const sync = () => setMode(scheme())
|
|
67
|
-
const observer = new MutationObserver(sync)
|
|
68
|
-
observer.observe(document.documentElement, {
|
|
69
|
-
attributes: true,
|
|
70
|
-
attributeFilter: ["data-color-scheme"],
|
|
71
|
-
})
|
|
72
|
-
sync()
|
|
73
|
-
onCleanup(() => observer.disconnect())
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<img
|
|
78
|
-
data-component="app-icon"
|
|
79
|
-
{...rest}
|
|
80
|
-
src={themed[local.id]?.[mode()] ?? icons[local.id]}
|
|
81
|
-
alt={local.alt ?? ""}
|
|
82
|
-
draggable={local.draggable ?? false}
|
|
83
|
-
classList={{
|
|
84
|
-
...local.classList,
|
|
85
|
-
[local.class ?? ""]: !!local.class,
|
|
86
|
-
}}
|
|
87
|
-
/>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
1
|
+
import type { Component, ComponentProps } from "solid-js"
|
|
2
|
+
import { createSignal, onCleanup, onMount, splitProps } from "solid-js"
|
|
3
|
+
import type { IconName } from "./app-icons/types"
|
|
4
|
+
|
|
5
|
+
import androidStudio from "../assets/icons/app/android-studio.svg"
|
|
6
|
+
import antigravity from "../assets/icons/app/antigravity.svg"
|
|
7
|
+
import cursor from "../assets/icons/app/cursor.svg"
|
|
8
|
+
import fileExplorer from "../assets/icons/app/file-explorer.svg"
|
|
9
|
+
import finder from "../assets/icons/app/finder.png"
|
|
10
|
+
import ghostty from "../assets/icons/app/ghostty.svg"
|
|
11
|
+
import iterm2 from "../assets/icons/app/iterm2.svg"
|
|
12
|
+
import powershell from "../assets/icons/app/powershell.svg"
|
|
13
|
+
import terminal from "../assets/icons/app/terminal.png"
|
|
14
|
+
import textmate from "../assets/icons/app/textmate.png"
|
|
15
|
+
import vscode from "../assets/icons/app/vscode.svg"
|
|
16
|
+
import warp from "../assets/icons/app/warp.png"
|
|
17
|
+
import xcode from "../assets/icons/app/xcode.png"
|
|
18
|
+
import zed from "../assets/icons/app/zed.svg"
|
|
19
|
+
import zedDark from "../assets/icons/app/zed-dark.svg"
|
|
20
|
+
import sublimetext from "../assets/icons/app/sublimetext.svg"
|
|
21
|
+
import windowsTerminal from "../assets/icons/app/windows-terminal.svg"
|
|
22
|
+
|
|
23
|
+
const icons = {
|
|
24
|
+
vscode,
|
|
25
|
+
cursor,
|
|
26
|
+
zed,
|
|
27
|
+
"file-explorer": fileExplorer,
|
|
28
|
+
finder,
|
|
29
|
+
terminal,
|
|
30
|
+
iterm2,
|
|
31
|
+
ghostty,
|
|
32
|
+
warp,
|
|
33
|
+
xcode,
|
|
34
|
+
"android-studio": androidStudio,
|
|
35
|
+
antigravity,
|
|
36
|
+
textmate,
|
|
37
|
+
powershell,
|
|
38
|
+
"sublime-text": sublimetext,
|
|
39
|
+
"windows-terminal": windowsTerminal,
|
|
40
|
+
} satisfies Record<IconName, string>
|
|
41
|
+
|
|
42
|
+
const themed: Partial<Record<IconName, { light: string; dark: string }>> = {
|
|
43
|
+
zed: {
|
|
44
|
+
light: zed,
|
|
45
|
+
dark: zedDark,
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const scheme = () => {
|
|
50
|
+
if (!("document" in globalThis)) return "light" as const
|
|
51
|
+
|
|
52
|
+
if (document.documentElement.dataset.colorScheme === "dark") return "dark" as const
|
|
53
|
+
|
|
54
|
+
return "light" as const
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type AppIconProps = Omit<ComponentProps<"img">, "src"> & {
|
|
58
|
+
id: IconName
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const AppIcon: Component<AppIconProps> = (props) => {
|
|
62
|
+
const [local, rest] = splitProps(props, ["id", "class", "classList", "alt", "draggable"])
|
|
63
|
+
const [mode, setMode] = createSignal(scheme())
|
|
64
|
+
|
|
65
|
+
onMount(() => {
|
|
66
|
+
const sync = () => setMode(scheme())
|
|
67
|
+
const observer = new MutationObserver(sync)
|
|
68
|
+
observer.observe(document.documentElement, {
|
|
69
|
+
attributes: true,
|
|
70
|
+
attributeFilter: ["data-color-scheme"],
|
|
71
|
+
})
|
|
72
|
+
sync()
|
|
73
|
+
onCleanup(() => observer.disconnect())
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<img
|
|
78
|
+
data-component="app-icon"
|
|
79
|
+
{...rest}
|
|
80
|
+
src={themed[local.id]?.[mode()] ?? icons[local.id]}
|
|
81
|
+
alt={local.alt ?? ""}
|
|
82
|
+
draggable={local.draggable ?? false}
|
|
83
|
+
classList={{
|
|
84
|
+
...local.classList,
|
|
85
|
+
[local.class ?? ""]: !!local.class,
|
|
86
|
+
}}
|
|
87
|
+
/>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0">
|
|
2
|
-
<defs>
|
|
3
|
-
<symbol id="vscode" viewBox="0 0 24 24">
|
|
4
|
-
<rect width="24" height="24" rx="5" fill="#007ACC" />
|
|
5
|
-
<g transform="scale(1.5)">
|
|
6
|
-
<path
|
|
7
|
-
fill="#fff"
|
|
8
|
-
d="M11.5 11.19V4.8L7.3 7.99M1.17 6.07a.6.6 0 0 1-.01-.81L2 4.48c.14-.13.48-.18.73 0l2.39 1.83 5.55-5.09c.22-.22.61-.32 1.05-.08l2.8 1.34c.25.15.49.38.49.81v9.49c0 .28-.2.58-.42.7l-3.08 1.48c-.22.09-.64 0-.79-.14L5.11 9.69l-2.38 1.83c-.27.18-.6.13-.74 0l-.84-.77c-.22-.23-.2-.61.04-.84l2.1-1.9"
|
|
9
|
-
/>
|
|
10
|
-
</g>
|
|
11
|
-
</symbol>
|
|
12
|
-
|
|
13
|
-
<symbol id="cursor" viewBox="0 0 24 24">
|
|
14
|
-
<rect width="24" height="24" rx="5" fill="#111827" />
|
|
15
|
-
<path
|
|
16
|
-
fill="#fff"
|
|
17
|
-
d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"
|
|
18
|
-
/>
|
|
19
|
-
</symbol>
|
|
20
|
-
|
|
21
|
-
<symbol id="zed" viewBox="0 0 24 24">
|
|
22
|
-
<rect width="24" height="24" rx="5" fill="#084CCF" />
|
|
23
|
-
<g transform="translate(12 12) scale(0.9) translate(-12 -12)">
|
|
24
|
-
<path
|
|
25
|
-
fill="#fff"
|
|
26
|
-
d="M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z"
|
|
27
|
-
/>
|
|
28
|
-
</g>
|
|
29
|
-
</symbol>
|
|
30
|
-
|
|
31
|
-
<symbol id="finder" viewBox="0 0 24 24">
|
|
32
|
-
<rect width="24" height="24" rx="5" fill="#8ED0FF" />
|
|
33
|
-
<path d="M12 0H19a5 5 0 0 1 5 5V19a5 5 0 0 1-5 5H12Z" fill="#2D7BF7" />
|
|
34
|
-
<path d="M12 3v18" stroke="#0B2A4A" stroke-opacity="0.35" stroke-width="1.5" />
|
|
35
|
-
<circle cx="8.3" cy="9.2" r="1.1" fill="#0B2A4A" />
|
|
36
|
-
<circle cx="15.7" cy="9.2" r="1.1" fill="#0B2A4A" />
|
|
37
|
-
<path
|
|
38
|
-
d="M7.3 15c1.2 1.55 2.9 2.4 4.7 2.4s3.5-.85 4.7-2.4"
|
|
39
|
-
stroke="#0B2A4A"
|
|
40
|
-
stroke-width="1.5"
|
|
41
|
-
fill="none"
|
|
42
|
-
stroke-linecap="round"
|
|
43
|
-
/>
|
|
44
|
-
</symbol>
|
|
45
|
-
|
|
46
|
-
<symbol id="terminal" viewBox="0 0 24 24">
|
|
47
|
-
<rect width="24" height="24" rx="5" fill="#111827" />
|
|
48
|
-
<rect
|
|
49
|
-
x="3.5"
|
|
50
|
-
y="4.5"
|
|
51
|
-
width="17"
|
|
52
|
-
height="15"
|
|
53
|
-
rx="2.5"
|
|
54
|
-
fill="#0B1220"
|
|
55
|
-
stroke="#334155"
|
|
56
|
-
stroke-opacity="0.5"
|
|
57
|
-
/>
|
|
58
|
-
<path
|
|
59
|
-
d="M7.8 9.2 11 12 7.8 14.8"
|
|
60
|
-
stroke="#34D399"
|
|
61
|
-
stroke-width="1.8"
|
|
62
|
-
stroke-linecap="round"
|
|
63
|
-
stroke-linejoin="round"
|
|
64
|
-
/>
|
|
65
|
-
<rect x="12.2" y="14.2" width="5.4" height="1.6" rx="0.8" fill="#34D399" />
|
|
66
|
-
</symbol>
|
|
67
|
-
|
|
68
|
-
<symbol id="iterm2" viewBox="0 0 24 24">
|
|
69
|
-
<rect width="24" height="24" rx="5" fill="#0B0B0B" />
|
|
70
|
-
<rect x="3.2" y="4.2" width="17.6" height="15.6" rx="2.4" fill="#000" stroke="#60A5FA" stroke-width="1.2" />
|
|
71
|
-
<circle cx="5.5" cy="6.3" r="0.75" fill="#F87171" />
|
|
72
|
-
<circle cx="7.6" cy="6.3" r="0.75" fill="#FBBF24" />
|
|
73
|
-
<circle cx="9.7" cy="6.3" r="0.75" fill="#34D399" />
|
|
74
|
-
<path
|
|
75
|
-
d="M7.9 10.2 10.6 12 7.9 13.8"
|
|
76
|
-
stroke="#34D399"
|
|
77
|
-
stroke-width="1.6"
|
|
78
|
-
stroke-linecap="round"
|
|
79
|
-
stroke-linejoin="round"
|
|
80
|
-
/>
|
|
81
|
-
<rect x="11.6" y="13.3" width="5" height="1.4" rx="0.7" fill="#34D399" />
|
|
82
|
-
</symbol>
|
|
83
|
-
|
|
84
|
-
<symbol id="ghostty" viewBox="0 0 24 24">
|
|
85
|
-
<rect width="24" height="24" rx="5" fill="#3551F3" />
|
|
86
|
-
<g transform="translate(12 12) scale(0.9) translate(-12 -12)">
|
|
87
|
-
<path
|
|
88
|
-
fill="#fff"
|
|
89
|
-
d="M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95"
|
|
90
|
-
/>
|
|
91
|
-
</g>
|
|
92
|
-
</symbol>
|
|
93
|
-
|
|
94
|
-
<symbol id="xcode" viewBox="0 0 24 24">
|
|
95
|
-
<rect width="24" height="24" rx="5" fill="#147EFB" />
|
|
96
|
-
<path d="M6 8H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
97
|
-
<path d="M8 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
98
|
-
<path d="M6 18H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
99
|
-
<path d="M18 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
100
|
-
<g transform="translate(12 12) rotate(-35) translate(-12 -12)">
|
|
101
|
-
<rect x="11.1" y="6.2" width="2" height="12.6" rx="1" fill="#fff" />
|
|
102
|
-
<rect x="9.2" y="5.3" width="5.6" height="2.7" rx="1" fill="#fff" />
|
|
103
|
-
</g>
|
|
104
|
-
</symbol>
|
|
105
|
-
|
|
106
|
-
<symbol id="android-studio" viewBox="0 0 24 24">
|
|
107
|
-
<rect width="24" height="24" rx="5" fill="#3DDC84" />
|
|
108
|
-
<circle cx="12" cy="12.2" r="6.8" fill="#3B82F6" />
|
|
109
|
-
<circle cx="12" cy="12.2" r="4.8" fill="none" stroke="#fff" stroke-width="1.6" />
|
|
110
|
-
<path d="M12 9.4l2.2 5-2.2-1.3-2.2 1.3z" fill="#fff" />
|
|
111
|
-
<circle cx="12" cy="12.2" r="0.9" fill="#fff" />
|
|
112
|
-
</symbol>
|
|
113
|
-
</defs>
|
|
114
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0">
|
|
2
|
+
<defs>
|
|
3
|
+
<symbol id="vscode" viewBox="0 0 24 24">
|
|
4
|
+
<rect width="24" height="24" rx="5" fill="#007ACC" />
|
|
5
|
+
<g transform="scale(1.5)">
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
d="M11.5 11.19V4.8L7.3 7.99M1.17 6.07a.6.6 0 0 1-.01-.81L2 4.48c.14-.13.48-.18.73 0l2.39 1.83 5.55-5.09c.22-.22.61-.32 1.05-.08l2.8 1.34c.25.15.49.38.49.81v9.49c0 .28-.2.58-.42.7l-3.08 1.48c-.22.09-.64 0-.79-.14L5.11 9.69l-2.38 1.83c-.27.18-.6.13-.74 0l-.84-.77c-.22-.23-.2-.61.04-.84l2.1-1.9"
|
|
9
|
+
/>
|
|
10
|
+
</g>
|
|
11
|
+
</symbol>
|
|
12
|
+
|
|
13
|
+
<symbol id="cursor" viewBox="0 0 24 24">
|
|
14
|
+
<rect width="24" height="24" rx="5" fill="#111827" />
|
|
15
|
+
<path
|
|
16
|
+
fill="#fff"
|
|
17
|
+
d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"
|
|
18
|
+
/>
|
|
19
|
+
</symbol>
|
|
20
|
+
|
|
21
|
+
<symbol id="zed" viewBox="0 0 24 24">
|
|
22
|
+
<rect width="24" height="24" rx="5" fill="#084CCF" />
|
|
23
|
+
<g transform="translate(12 12) scale(0.9) translate(-12 -12)">
|
|
24
|
+
<path
|
|
25
|
+
fill="#fff"
|
|
26
|
+
d="M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z"
|
|
27
|
+
/>
|
|
28
|
+
</g>
|
|
29
|
+
</symbol>
|
|
30
|
+
|
|
31
|
+
<symbol id="finder" viewBox="0 0 24 24">
|
|
32
|
+
<rect width="24" height="24" rx="5" fill="#8ED0FF" />
|
|
33
|
+
<path d="M12 0H19a5 5 0 0 1 5 5V19a5 5 0 0 1-5 5H12Z" fill="#2D7BF7" />
|
|
34
|
+
<path d="M12 3v18" stroke="#0B2A4A" stroke-opacity="0.35" stroke-width="1.5" />
|
|
35
|
+
<circle cx="8.3" cy="9.2" r="1.1" fill="#0B2A4A" />
|
|
36
|
+
<circle cx="15.7" cy="9.2" r="1.1" fill="#0B2A4A" />
|
|
37
|
+
<path
|
|
38
|
+
d="M7.3 15c1.2 1.55 2.9 2.4 4.7 2.4s3.5-.85 4.7-2.4"
|
|
39
|
+
stroke="#0B2A4A"
|
|
40
|
+
stroke-width="1.5"
|
|
41
|
+
fill="none"
|
|
42
|
+
stroke-linecap="round"
|
|
43
|
+
/>
|
|
44
|
+
</symbol>
|
|
45
|
+
|
|
46
|
+
<symbol id="terminal" viewBox="0 0 24 24">
|
|
47
|
+
<rect width="24" height="24" rx="5" fill="#111827" />
|
|
48
|
+
<rect
|
|
49
|
+
x="3.5"
|
|
50
|
+
y="4.5"
|
|
51
|
+
width="17"
|
|
52
|
+
height="15"
|
|
53
|
+
rx="2.5"
|
|
54
|
+
fill="#0B1220"
|
|
55
|
+
stroke="#334155"
|
|
56
|
+
stroke-opacity="0.5"
|
|
57
|
+
/>
|
|
58
|
+
<path
|
|
59
|
+
d="M7.8 9.2 11 12 7.8 14.8"
|
|
60
|
+
stroke="#34D399"
|
|
61
|
+
stroke-width="1.8"
|
|
62
|
+
stroke-linecap="round"
|
|
63
|
+
stroke-linejoin="round"
|
|
64
|
+
/>
|
|
65
|
+
<rect x="12.2" y="14.2" width="5.4" height="1.6" rx="0.8" fill="#34D399" />
|
|
66
|
+
</symbol>
|
|
67
|
+
|
|
68
|
+
<symbol id="iterm2" viewBox="0 0 24 24">
|
|
69
|
+
<rect width="24" height="24" rx="5" fill="#0B0B0B" />
|
|
70
|
+
<rect x="3.2" y="4.2" width="17.6" height="15.6" rx="2.4" fill="#000" stroke="#60A5FA" stroke-width="1.2" />
|
|
71
|
+
<circle cx="5.5" cy="6.3" r="0.75" fill="#F87171" />
|
|
72
|
+
<circle cx="7.6" cy="6.3" r="0.75" fill="#FBBF24" />
|
|
73
|
+
<circle cx="9.7" cy="6.3" r="0.75" fill="#34D399" />
|
|
74
|
+
<path
|
|
75
|
+
d="M7.9 10.2 10.6 12 7.9 13.8"
|
|
76
|
+
stroke="#34D399"
|
|
77
|
+
stroke-width="1.6"
|
|
78
|
+
stroke-linecap="round"
|
|
79
|
+
stroke-linejoin="round"
|
|
80
|
+
/>
|
|
81
|
+
<rect x="11.6" y="13.3" width="5" height="1.4" rx="0.7" fill="#34D399" />
|
|
82
|
+
</symbol>
|
|
83
|
+
|
|
84
|
+
<symbol id="ghostty" viewBox="0 0 24 24">
|
|
85
|
+
<rect width="24" height="24" rx="5" fill="#3551F3" />
|
|
86
|
+
<g transform="translate(12 12) scale(0.9) translate(-12 -12)">
|
|
87
|
+
<path
|
|
88
|
+
fill="#fff"
|
|
89
|
+
d="M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95"
|
|
90
|
+
/>
|
|
91
|
+
</g>
|
|
92
|
+
</symbol>
|
|
93
|
+
|
|
94
|
+
<symbol id="xcode" viewBox="0 0 24 24">
|
|
95
|
+
<rect width="24" height="24" rx="5" fill="#147EFB" />
|
|
96
|
+
<path d="M6 8H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
97
|
+
<path d="M8 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
98
|
+
<path d="M6 18H18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
99
|
+
<path d="M18 6V18" stroke="#fff" stroke-opacity="0.18" stroke-width="1.2" stroke-linecap="round" />
|
|
100
|
+
<g transform="translate(12 12) rotate(-35) translate(-12 -12)">
|
|
101
|
+
<rect x="11.1" y="6.2" width="2" height="12.6" rx="1" fill="#fff" />
|
|
102
|
+
<rect x="9.2" y="5.3" width="5.6" height="2.7" rx="1" fill="#fff" />
|
|
103
|
+
</g>
|
|
104
|
+
</symbol>
|
|
105
|
+
|
|
106
|
+
<symbol id="android-studio" viewBox="0 0 24 24">
|
|
107
|
+
<rect width="24" height="24" rx="5" fill="#3DDC84" />
|
|
108
|
+
<circle cx="12" cy="12.2" r="6.8" fill="#3B82F6" />
|
|
109
|
+
<circle cx="12" cy="12.2" r="4.8" fill="none" stroke="#fff" stroke-width="1.6" />
|
|
110
|
+
<path d="M12 9.4l2.2 5-2.2-1.3-2.2 1.3z" fill="#fff" />
|
|
111
|
+
<circle cx="12" cy="12.2" r="0.9" fill="#fff" />
|
|
112
|
+
</symbol>
|
|
113
|
+
</defs>
|
|
114
|
+
</svg>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
// This file is generated by icon spritesheet generator
|
|
2
|
-
|
|
3
|
-
export const iconNames = [
|
|
4
|
-
"vscode",
|
|
5
|
-
"cursor",
|
|
6
|
-
"zed",
|
|
7
|
-
"file-explorer",
|
|
8
|
-
"finder",
|
|
9
|
-
"terminal",
|
|
10
|
-
"iterm2",
|
|
11
|
-
"ghostty",
|
|
12
|
-
"warp",
|
|
13
|
-
"xcode",
|
|
14
|
-
"android-studio",
|
|
15
|
-
"antigravity",
|
|
16
|
-
"textmate",
|
|
17
|
-
"powershell",
|
|
18
|
-
"sublime-text",
|
|
19
|
-
"windows-terminal",
|
|
20
|
-
] as const
|
|
21
|
-
|
|
22
|
-
export type IconName = (typeof iconNames)[number]
|
|
1
|
+
// This file is generated by icon spritesheet generator
|
|
2
|
+
|
|
3
|
+
export const iconNames = [
|
|
4
|
+
"vscode",
|
|
5
|
+
"cursor",
|
|
6
|
+
"zed",
|
|
7
|
+
"file-explorer",
|
|
8
|
+
"finder",
|
|
9
|
+
"terminal",
|
|
10
|
+
"iterm2",
|
|
11
|
+
"ghostty",
|
|
12
|
+
"warp",
|
|
13
|
+
"xcode",
|
|
14
|
+
"android-studio",
|
|
15
|
+
"antigravity",
|
|
16
|
+
"textmate",
|
|
17
|
+
"powershell",
|
|
18
|
+
"sublime-text",
|
|
19
|
+
"windows-terminal",
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
export type IconName = (typeof iconNames)[number]
|
package/src/components/card.css
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
[data-component="card"] {
|
|
2
|
-
--card-pad-y: 10px;
|
|
3
|
-
--card-pad-r: 12px;
|
|
4
|
-
--card-pad-l: 10px;
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
position: relative;
|
|
10
|
-
background: transparent;
|
|
11
|
-
border: none;
|
|
12
|
-
border-radius: var(--radius-md);
|
|
13
|
-
padding: var(--card-pad-y) var(--card-pad-r) var(--card-pad-y) var(--card-pad-l);
|
|
14
|
-
|
|
15
|
-
/* text-14-regular */
|
|
16
|
-
font-family: var(--font-family-sans);
|
|
17
|
-
font-size: var(--font-size-base);
|
|
18
|
-
font-style: normal;
|
|
19
|
-
font-weight: var(--font-weight-regular);
|
|
20
|
-
line-height: var(--line-height-large);
|
|
21
|
-
letter-spacing: var(--letter-spacing-normal);
|
|
22
|
-
color: var(--v2-text-text-base);
|
|
23
|
-
|
|
24
|
-
--card-gap: 8px;
|
|
25
|
-
--card-icon: 16px;
|
|
26
|
-
--card-indent: 0px;
|
|
27
|
-
--card-line-pad: 8px;
|
|
28
|
-
|
|
29
|
-
--card-accent: var(--v2-icon-icon-base);
|
|
30
|
-
|
|
31
|
-
&:has([data-slot="card-title"]) {
|
|
32
|
-
gap: 8px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:has([data-slot="card-title-icon"]) {
|
|
36
|
-
--card-indent: calc(var(--card-icon) + var(--card-gap));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&::before {
|
|
40
|
-
content: "";
|
|
41
|
-
position: absolute;
|
|
42
|
-
left: 0;
|
|
43
|
-
top: var(--card-line-pad);
|
|
44
|
-
bottom: var(--card-line-pad);
|
|
45
|
-
width: 2px;
|
|
46
|
-
border-radius: 2px;
|
|
47
|
-
background-color: var(--card-accent);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:where([data-card="title"], [data-slot="card-title"]) {
|
|
51
|
-
color: var(--v2-text-text-base);
|
|
52
|
-
font-weight: var(--font-weight-medium);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:where([data-slot="card-title"]) {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: var(--card-gap);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:where([data-slot="card-title"]) [data-slot="icon-svg"] {
|
|
62
|
-
color: var(--card-accent);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:where([data-slot="card-title-icon"]) {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
width: var(--card-icon);
|
|
70
|
-
height: var(--card-icon);
|
|
71
|
-
flex: 0 0 auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:where([data-slot="card-title-icon"][data-placeholder]) [data-slot="icon-svg"] {
|
|
75
|
-
color: var(--v2-text-text-faint);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:where([data-slot="card-title-icon"])
|
|
79
|
-
[data-slot="icon-svg"]
|
|
80
|
-
:is(path, line, polyline, polygon, rect, circle, ellipse)[stroke] {
|
|
81
|
-
stroke-width: 1.5px !important;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where([data-card="description"], [data-slot="card-description"]) {
|
|
85
|
-
color: var(--v2-text-text-muted);
|
|
86
|
-
white-space: pre-wrap;
|
|
87
|
-
overflow-wrap: anywhere;
|
|
88
|
-
word-break: break-word;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:where([data-card="actions"], [data-slot="card-actions"]) {
|
|
92
|
-
padding-left: var(--card-indent);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
1
|
+
[data-component="card"] {
|
|
2
|
+
--card-pad-y: 10px;
|
|
3
|
+
--card-pad-r: 12px;
|
|
4
|
+
--card-pad-l: 10px;
|
|
5
|
+
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
position: relative;
|
|
10
|
+
background: transparent;
|
|
11
|
+
border: none;
|
|
12
|
+
border-radius: var(--radius-md);
|
|
13
|
+
padding: var(--card-pad-y) var(--card-pad-r) var(--card-pad-y) var(--card-pad-l);
|
|
14
|
+
|
|
15
|
+
/* text-14-regular */
|
|
16
|
+
font-family: var(--font-family-sans);
|
|
17
|
+
font-size: var(--font-size-base);
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: var(--font-weight-regular);
|
|
20
|
+
line-height: var(--line-height-large);
|
|
21
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
22
|
+
color: var(--v2-text-text-base);
|
|
23
|
+
|
|
24
|
+
--card-gap: 8px;
|
|
25
|
+
--card-icon: 16px;
|
|
26
|
+
--card-indent: 0px;
|
|
27
|
+
--card-line-pad: 8px;
|
|
28
|
+
|
|
29
|
+
--card-accent: var(--v2-icon-icon-base);
|
|
30
|
+
|
|
31
|
+
&:has([data-slot="card-title"]) {
|
|
32
|
+
gap: 8px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:has([data-slot="card-title-icon"]) {
|
|
36
|
+
--card-indent: calc(var(--card-icon) + var(--card-gap));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 0;
|
|
43
|
+
top: var(--card-line-pad);
|
|
44
|
+
bottom: var(--card-line-pad);
|
|
45
|
+
width: 2px;
|
|
46
|
+
border-radius: 2px;
|
|
47
|
+
background-color: var(--card-accent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-card="title"], [data-slot="card-title"]) {
|
|
51
|
+
color: var(--v2-text-text-base);
|
|
52
|
+
font-weight: var(--font-weight-medium);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-slot="card-title"]) {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--card-gap);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where([data-slot="card-title"]) [data-slot="icon-svg"] {
|
|
62
|
+
color: var(--card-accent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where([data-slot="card-title-icon"]) {
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
width: var(--card-icon);
|
|
70
|
+
height: var(--card-icon);
|
|
71
|
+
flex: 0 0 auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where([data-slot="card-title-icon"][data-placeholder]) [data-slot="icon-svg"] {
|
|
75
|
+
color: var(--v2-text-text-faint);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where([data-slot="card-title-icon"])
|
|
79
|
+
[data-slot="icon-svg"]
|
|
80
|
+
:is(path, line, polyline, polygon, rect, circle, ellipse)[stroke] {
|
|
81
|
+
stroke-width: 1.5px !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:where([data-card="description"], [data-slot="card-description"]) {
|
|
85
|
+
color: var(--v2-text-text-muted);
|
|
86
|
+
white-space: pre-wrap;
|
|
87
|
+
overflow-wrap: anywhere;
|
|
88
|
+
word-break: break-word;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where([data-card="actions"], [data-slot="card-actions"]) {
|
|
92
|
+
padding-left: var(--card-indent);
|
|
93
|
+
}
|
|
94
|
+
}
|