@zyro-sec/ui 1.0.0 → 1.0.1
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 -0
- package/bunfig.toml +2 -0
- package/package.json +21 -114
- package/perf/motion.bench.ts +14 -0
- package/perf/motion.ts +16 -0
- package/script/build-oc2-v2-overrides.ts +38 -0
- package/script/colors.txt +288 -0
- package/script/generate-spinner.ts +121 -0
- package/script/pack.ts +5 -0
- package/script/tailwind.ts +24 -0
- package/src/actions/button/button.stories.tsx +158 -0
- package/src/actions/icon-button/icon-button.stories.tsx +122 -0
- package/src/actions/split-button/split-button.stories.tsx +59 -0
- package/src/assets/favicon/apple-touch-icon-v3.png +0 -0
- package/src/assets/favicon/apple-touch-icon.png +0 -0
- package/src/assets/favicon/favicon-96x96-v3.png +0 -0
- package/src/assets/favicon/favicon-96x96.png +0 -0
- package/src/assets/favicon/favicon-v3.ico +0 -0
- package/src/assets/favicon/favicon-v3.svg +7 -0
- package/src/assets/favicon/favicon.ico +0 -0
- package/src/assets/favicon/favicon.svg +7 -0
- package/src/assets/favicon/site.webmanifest +24 -0
- package/src/assets/favicon/web-app-manifest-192x192.png +0 -0
- package/src/assets/favicon/web-app-manifest-512x512.png +0 -0
- package/src/assets/icons/provider/302ai.svg +7 -0
- package/src/assets/icons/provider/abacus.svg +14 -0
- package/src/assets/icons/provider/aihubmix.svg +3 -0
- package/src/assets/icons/provider/alibaba-cn.svg +3 -0
- package/src/assets/icons/provider/alibaba-coding-plan-cn.svg +3 -0
- package/src/assets/icons/provider/alibaba-coding-plan.svg +3 -0
- package/src/assets/icons/provider/alibaba.svg +3 -0
- package/src/assets/icons/provider/amazon-bedrock.svg +3 -0
- package/src/assets/icons/provider/anthropic.svg +3 -0
- package/src/assets/icons/provider/azure-cognitive-services.svg +24 -0
- package/src/assets/icons/provider/azure.svg +3 -0
- package/src/assets/icons/provider/bailing.svg +3 -0
- package/src/assets/icons/provider/baseten.svg +3 -0
- package/src/assets/icons/provider/berget.svg +3 -0
- package/src/assets/icons/provider/cerebras.svg +4 -0
- package/src/assets/icons/provider/chutes.svg +24 -0
- package/src/assets/icons/provider/clarifai.svg +24 -0
- package/src/assets/icons/provider/claude-agent.svg +3 -0
- package/src/assets/icons/provider/cloudferro-sherlock.svg +5 -0
- package/src/assets/icons/provider/cloudflare-ai-gateway.svg +4 -0
- package/src/assets/icons/provider/cloudflare-workers-ai.svg +4 -0
- package/src/assets/icons/provider/cohere.svg +5 -0
- package/src/assets/icons/provider/cortecs.svg +24 -0
- package/src/assets/icons/provider/deepinfra.svg +4 -0
- package/src/assets/icons/provider/deepseek.svg +3 -0
- package/src/assets/icons/provider/digitalocean.svg +6 -0
- package/src/assets/icons/provider/dinference.svg +1 -0
- package/src/assets/icons/provider/drun.svg +8 -0
- package/src/assets/icons/provider/evroc.svg +3 -0
- package/src/assets/icons/provider/fastrouter.svg +3 -0
- package/src/assets/icons/provider/fireworks-ai.svg +3 -0
- package/src/assets/icons/provider/firmware.svg +18 -0
- package/src/assets/icons/provider/friendli.svg +3 -0
- package/src/assets/icons/provider/github-copilot.svg +3 -0
- package/src/assets/icons/provider/github-models.svg +3 -0
- package/src/assets/icons/provider/gitlab.svg +3 -0
- package/src/assets/icons/provider/google-vertex-anthropic.svg +24 -0
- package/src/assets/icons/provider/google-vertex.svg +10 -0
- package/src/assets/icons/provider/google.svg +3 -0
- package/src/assets/icons/provider/groq.svg +3 -0
- package/src/assets/icons/provider/helicone.svg +6 -0
- package/src/assets/icons/provider/huggingface.svg +3 -0
- package/src/assets/icons/provider/iflowcn.svg +3 -0
- package/src/assets/icons/provider/inception.svg +4 -0
- package/src/assets/icons/provider/inference.svg +3 -0
- package/src/assets/icons/provider/io-net.svg +5 -0
- package/src/assets/icons/provider/jiekou.svg +4 -0
- package/src/assets/icons/provider/kilo.svg +4 -0
- package/src/assets/icons/provider/kimi-for-coding.svg +3 -0
- package/src/assets/icons/provider/kuae-cloud-coding-plan.svg +3 -0
- package/src/assets/icons/provider/llama.svg +3 -0
- package/src/assets/icons/provider/lmstudio.svg +24 -0
- package/src/assets/icons/provider/lucidquery.svg +3 -0
- package/src/assets/icons/provider/meganova.svg +3 -0
- package/src/assets/icons/provider/meituan.svg +6 -0
- package/src/assets/icons/provider/meta.svg +3 -0
- package/src/assets/icons/provider/minimax-cn-coding-plan.svg +24 -0
- package/src/assets/icons/provider/minimax-cn.svg +3 -0
- package/src/assets/icons/provider/minimax-coding-plan.svg +24 -0
- package/src/assets/icons/provider/minimax.svg +3 -0
- package/src/assets/icons/provider/mistral.svg +3 -0
- package/src/assets/icons/provider/moark.svg +3 -0
- package/src/assets/icons/provider/modelscope.svg +5 -0
- package/src/assets/icons/provider/moonshotai-cn.svg +3 -0
- package/src/assets/icons/provider/moonshotai.svg +3 -0
- package/src/assets/icons/provider/morph.svg +24 -0
- package/src/assets/icons/provider/nano-gpt.svg +3 -0
- package/src/assets/icons/provider/nebius.svg +4 -0
- package/src/assets/icons/provider/nova.svg +3 -0
- package/src/assets/icons/provider/novita-ai.svg +10 -0
- package/src/assets/icons/provider/nvidia.svg +3 -0
- package/src/assets/icons/provider/ollama-cloud.svg +7 -0
- package/src/assets/icons/provider/openai.svg +3 -0
- package/src/assets/icons/provider/opencode-go.svg +3 -0
- package/src/assets/icons/provider/opencode.svg +3 -0
- package/src/assets/icons/provider/openrouter.svg +3 -0
- package/src/assets/icons/provider/ovhcloud.svg +3 -0
- package/src/assets/icons/provider/perplexity-agent.svg +3 -0
- package/src/assets/icons/provider/perplexity.svg +3 -0
- package/src/assets/icons/provider/poe.svg +7 -0
- package/src/assets/icons/provider/privatemode-ai.svg +5 -0
- package/src/assets/icons/provider/qihang-ai.svg +9 -0
- package/src/assets/icons/provider/qiniu-ai.svg +7 -0
- package/src/assets/icons/provider/reflection.svg +3 -0
- package/src/assets/icons/provider/requesty.svg +24 -0
- package/src/assets/icons/provider/sap-ai-core.svg +24 -0
- package/src/assets/icons/provider/scaleway.svg +5 -0
- package/src/assets/icons/provider/siliconflow-cn.svg +3 -0
- package/src/assets/icons/provider/siliconflow.svg +3 -0
- package/src/assets/icons/provider/stackit.svg +4 -0
- package/src/assets/icons/provider/stepfun.svg +16 -0
- package/src/assets/icons/provider/submodel.svg +3 -0
- package/src/assets/icons/provider/synthetic.svg +24 -0
- package/src/assets/icons/provider/tencent-coding-plan.svg +5 -0
- package/src/assets/icons/provider/tencent.svg +3 -0
- package/src/assets/icons/provider/thinkingmachines.svg +3 -0
- package/src/assets/icons/provider/togetherai.svg +4 -0
- package/src/assets/icons/provider/upstage.svg +24 -0
- package/src/assets/icons/provider/v0.svg +3 -0
- package/src/assets/icons/provider/venice.svg +4 -0
- package/src/assets/icons/provider/vercel.svg +3 -0
- package/src/assets/icons/provider/vivgrid.svg +4 -0
- package/src/assets/icons/provider/vultr.svg +6 -0
- package/src/assets/icons/provider/wandb.svg +24 -0
- package/src/assets/icons/provider/xai.svg +3 -0
- package/src/assets/icons/provider/xiaomi.svg +3 -0
- package/src/assets/icons/provider/zai-coding-plan.svg +3 -0
- package/src/assets/icons/provider/zai.svg +3 -0
- package/src/assets/icons/provider/zenmux.svg +4 -0
- package/src/assets/icons/provider/zhipuai-coding-plan.svg +3 -0
- package/src/assets/icons/provider/zhipuai.svg +3 -0
- package/src/assets/images/social-share-black.png +0 -0
- package/src/assets/images/social-share-zen.png +0 -0
- package/src/assets/images/social-share.png +0 -0
- package/src/components/animated-number-machine.test.ts +140 -0
- package/src/components/animated-number.stories.tsx +35 -0
- package/src/components/app-icon.stories.tsx +73 -0
- package/src/components/card.stories.tsx +101 -0
- package/src/components/collapsible.stories.tsx +76 -0
- package/src/components/context-menu.stories.tsx +150 -0
- package/src/components/diagram-preview.stories.tsx +62 -0
- package/src/components/dock-surface.stories.tsx +26 -0
- package/src/components/document-surface.stories.tsx +42 -0
- package/src/components/error-details.stories.tsx +72 -0
- package/src/components/favicon.stories.tsx +49 -0
- package/src/components/file-icon-machine.test.ts +52 -0
- package/src/components/file-icon.stories.tsx +93 -0
- package/src/components/file-icons/sprite.svg +11707 -0
- package/src/components/font.stories.tsx +48 -0
- package/src/components/hover-card.stories.tsx +79 -0
- package/src/components/image-flight-machine.test.ts +184 -0
- package/src/components/image-flight.test.ts +173 -0
- package/src/components/image-preview.stories.tsx +392 -0
- package/src/components/image-zoom-machine.test.ts +154 -0
- package/src/components/image-zoom.test.ts +96 -0
- package/src/components/list.stories.tsx +221 -0
- package/src/components/logo.stories.tsx +62 -0
- package/src/components/menu-scroll.stories.tsx +73 -0
- package/src/components/popover-machine.test.ts +150 -0
- package/src/components/popover.stories.tsx +84 -0
- package/src/components/preview-controls.stories.tsx +40 -0
- package/src/components/progress.stories.tsx +69 -0
- package/src/components/provider-icon.stories.tsx +75 -0
- package/src/components/resize-handle-machine.test.ts +164 -0
- package/src/components/resize-handle.stories.tsx +81 -0
- package/src/components/rolling-number.stories.tsx +23 -0
- package/src/components/scroll-view-machine.test.ts +141 -0
- package/src/components/scroll-view.stories.tsx +68 -0
- package/src/components/scroll-view.test.ts +114 -0
- package/src/components/spinner-radar.test.ts +61 -0
- package/src/components/spinner.stories.tsx +40 -0
- package/src/components/sticky-accordion-header.stories.tsx +64 -0
- package/src/components/text-field-machine.test.ts +99 -0
- package/src/components/text-field.stories.tsx +132 -0
- package/src/components/text-reveal-machine.test.ts +157 -0
- package/src/components/text-reveal.stories.tsx +363 -0
- package/src/components/text-strikethrough.stories.tsx +296 -0
- package/src/components/thinking-heading.stories.tsx +900 -0
- package/src/components/truncated-text.stories.tsx +37 -0
- package/src/components/typewriter-machine.test.ts +177 -0
- package/src/components/typewriter.stories.tsx +51 -0
- package/src/context/dialog-machine.test.ts +295 -0
- package/src/context/i18n.test.ts +89 -0
- package/src/context/marked-base.test.ts +75 -0
- package/src/context/marked-parser.test.ts +167 -0
- package/src/context/marked-regression.test.ts +12 -0
- package/src/data-display/accordion/accordion.stories.tsx +76 -0
- package/src/data-display/avatar/avatar.stories.tsx +48 -0
- package/src/data-display/badge/badge.stories.tsx +75 -0
- package/src/data-display/diff-changes/diff-changes.stories.tsx +63 -0
- package/src/data-display/keybind/keybind.stories.tsx +77 -0
- package/src/data-display/line-comment/line-comment.stories.tsx +288 -0
- package/src/data-display/line-comment/machine.test.ts +385 -0
- package/src/data-display/project-avatar/animation-machine.test.ts +134 -0
- package/src/data-display/project-avatar/generated.test.ts +50 -0
- package/src/data-display/project-avatar/procedural.test.ts +16 -0
- package/src/data-display/project-avatar/project-avatar.stories.tsx +102 -0
- package/src/data-display/project-avatar/project-avatar.test.ts +21 -0
- package/src/data-display/project-avatar/project-icon-styles.stories.tsx +772 -0
- package/src/feedback/activity-ring/activity-ring.stories.tsx +20 -0
- package/src/feedback/loader/loader.stories.tsx +44 -0
- package/src/feedback/progress-circle/progress-circle.stories.tsx +56 -0
- package/src/feedback/toast/description.test.ts +20 -0
- package/src/feedback/toast/machine.test.ts +106 -0
- package/src/feedback/toast/toast.stories.tsx +186 -0
- package/src/forms/checkbox/checkbox.stories.tsx +104 -0
- package/src/forms/field/field.stories.tsx +129 -0
- package/src/forms/inline-input/inline-input.stories.tsx +37 -0
- package/src/forms/radio/radio.stories.tsx +145 -0
- package/src/forms/redirect-paste/redirect-paste.stories.tsx +101 -0
- package/src/forms/search-list/navigation.test.ts +40 -0
- package/src/forms/search-list/search-list.stories.tsx +108 -0
- package/src/forms/select/machine.test.ts +105 -0
- package/src/forms/select/select.stories.tsx +208 -0
- package/src/forms/switch/switch.stories.tsx +97 -0
- package/src/forms/text-input/text-input.stories.tsx +220 -0
- package/src/forms/textarea/textarea.stories.tsx +137 -0
- package/src/forms/typeahead/machine.test.ts +143 -0
- package/src/forms/typeahead/typeahead.stories.tsx +113 -0
- package/src/hooks/auto-scroll-machine.test.ts +212 -0
- package/src/hooks/list-machine.test.ts +263 -0
- package/src/hooks/spin-phase.test.ts +32 -0
- package/src/hooks/use-filtered-list.test.ts +41 -0
- package/src/icons/icon/icon.stories.tsx +131 -0
- package/src/layout/divider/divider.stories.tsx +38 -0
- package/src/motion/README.md +113 -0
- package/src/motion/core.test.ts +328 -0
- package/src/motion-tuning-features.test.ts +129 -0
- package/src/motion-tuning.test.ts +68 -0
- package/src/navigation/menu/machine.test.ts +85 -0
- package/src/navigation/menu/menu.stories.tsx +328 -0
- package/src/navigation/menu/submenu-machine.test.ts +71 -0
- package/src/navigation/segmented-control/segmented-control.stories.tsx +115 -0
- package/src/navigation/segmented-control/segmented-control.test.ts +123 -0
- package/src/navigation/tab-state-indicator.stories.tsx +24 -0
- package/src/navigation/tabs/tabs.stories.tsx +193 -0
- package/src/overlays/dialog/dialog.stories.tsx +365 -0
- package/src/overlays/mcp-sign-in/machine.test.ts +215 -0
- package/src/overlays/tooltip/machine.test.ts +214 -0
- package/src/overlays/tooltip/tooltip.stories.tsx +155 -0
- package/src/styles/blue-tokens.stories.tsx +215 -0
- package/src/theme/desktop-theme.schema.json +168 -0
- package/src/theme/machine.test.ts +498 -0
- package/src/theme/v2/resolve.test.ts +120 -0
- package/src/typography/slash/slash.stories.tsx +26 -0
- package/src/typography/text-shimmer/machine.test.ts +117 -0
- package/src/typography/text-shimmer/text-shimmer.stories.tsx +64 -0
- package/src/typography/wordmark/wordmark.stories.tsx +19 -0
- package/test/solid-jsx.ts +20 -0
- package/tsconfig.build.json +14 -0
- package/tsconfig.json +23 -0
- package/vite.config.ts +61 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## Localization
|
|
2
|
+
|
|
3
|
+
- NEVER hardcode user-visible English strings in production code. ALWAYS use an i18n key for component defaults, visible copy, placeholders, accessible labels, tooltips, dialogs, toasts, empty states, and displayed errors.
|
|
4
|
+
- Feature work adds English source strings only. Leave non-English keys absent so the runtime English fallback applies; translations land separately after language review.
|
|
5
|
+
- Render count-sensitive copy through `plural(baseKey, count, params)`. Never select or pass `.zero`, `.one`, `.two`, `.few`, `.many`, or `.other` variants to `t(...)`; `pluralForm(...)` is reserved for components that animate individual grammatical forms.
|
|
6
|
+
- When migrating existing copy to i18n, preserve the English text byte-for-byte unless the task explicitly requests a copy change.
|
|
7
|
+
- NEVER change existing English text or English keys to facilitate translation. English is intentional, designer-written source copy; adapt locale-specific translations and i18n mechanics around it.
|
|
8
|
+
- Use `tDynamic(...)` when runtime-generated English source copy has keyed non-English alternatives. Do not branch on the active locale in feature code.
|
|
9
|
+
- Do not translate from model knowledge alone. Verify terminology and grammar with Unicode CLDR locale/plural data, Microsoft Localization Style Guides and terminology, Apple localization/style guidance and localized platform UI, Mozilla localization style guides, Mozilla Pontoon, and the Firefox localization corpus at `github.com/mozilla-l10n/firefox-l10n`.
|
|
10
|
+
- For developer-facing terminology, prefer established usage in the target language's developer community over literal translations. Cross-check maintained Firefox, KDE, and VS Code localizations, using at least two independent corpora when available. Keep established English loanwords and acronyms instead of inventing unfamiliar terms.
|
|
11
|
+
- Translate whole UI phrases in context rather than substituting glossary words. Audit recurring concepts for consistency and review every exact-English value; retain it only when it is an intentional product/provider/tool name, URL, code token, keyboard legend, acronym, asset name, or established borrowing.
|
|
12
|
+
- Record the corpora used and flag uncertain or regional terminology in review notes.
|
|
13
|
+
- Also use the relevant language authority or official dictionary for the locale (for example RAE/Fundéu, FranceTerme, Duden, TDK, Kotus/Kielitoimiston sanakirja, Språkrådet/Bokmålsordboka, Rada Języka Polskiego/PWN, the Russian and Arabic language academies, the Ukrainian Orthography, Taiwan MOE dictionaries, or the Royal Society of Thailand). Treat the English dictionary as the semantic source of truth and preserve placeholders, code identifiers, product names, and keyboard labels.
|
|
14
|
+
|
|
15
|
+
## State
|
|
16
|
+
|
|
17
|
+
- Lifecycles in shared components follow the State Machines section of `packages/app/AGENTS.md`. A component that accepts a controlled value keeps one source of truth with an explicit `controlled | uncontrolled` mode in its machine, and keeps its public props API compatible. Precedent: `src/hooks/list-machine.ts`.
|
|
18
|
+
|
|
19
|
+
## Timeline stability
|
|
20
|
+
|
|
21
|
+
- Shared components and styles render inside the session timeline. Follow the Timeline stability section of `packages/app/AGENTS.md`: a `:has()` selector on anything that can contain a list ends at the `:has()` element, `:has()` never selects on `style`, and code that moves focus inside a scroll container passes `preventScroll: true` unless the reader must see that control next.
|
|
22
|
+
|
|
23
|
+
## Typography
|
|
24
|
+
|
|
25
|
+
- Use the shared typography metrics instead of copying solid line heights from design exports: `--line-height-tight` is `12px`, `--line-height-compact` is `16px`, and `--line-height-base` is `20px`.
|
|
26
|
+
- Inter text at `13px` must use at least the compact `16px` line height. A `13px` solid line box can clip `g`, `j`, `p`, `q`, and `y` when the text or an ancestor truncates or hides overflow.
|
|
27
|
+
- Reserve `line-height: 1` and `leading-none` for non-text glyphs, icons, or deliberately reviewed display marks. Do not compensate text with transforms, negative margins, or clip-padding hacks.
|
|
28
|
+
- `TextShimmer` inherits font metrics. Put typography overrides on its parent when they must supersede the component defaults.
|
|
29
|
+
- Fonts follow the Fonts section of `packages/app/AGENTS.md`: use `var(--font-family-sans)` or `var(--font-family-mono)` and their aliases, never a literal family, and never add font files or `@font-face` rules here.
|
package/bunfig.toml
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyro-sec/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,99 +14,6 @@
|
|
|
14
14
|
"sideEffects": [
|
|
15
15
|
"**/*.css"
|
|
16
16
|
],
|
|
17
|
-
"files": [
|
|
18
|
-
"dist/**/*.d.ts",
|
|
19
|
-
"src/**/*.ts",
|
|
20
|
-
"src/**/*.tsx",
|
|
21
|
-
"!src/**/*.test.ts",
|
|
22
|
-
"!src/**/*.test.tsx",
|
|
23
|
-
"!src/**/*.stories.ts",
|
|
24
|
-
"!src/**/*.stories.tsx",
|
|
25
|
-
"src/**/*.css",
|
|
26
|
-
"src/data-display/line-comment/*.svg",
|
|
27
|
-
"src/theme/themes/*.json",
|
|
28
|
-
"src/components/app-icons/sprite.svg",
|
|
29
|
-
"src/components/provider-icons/sprite.svg",
|
|
30
|
-
"src/assets/icons/app/*",
|
|
31
|
-
"src/assets/icons/file-types/*",
|
|
32
|
-
"src/assets/fonts/*",
|
|
33
|
-
"src/assets/audio/*",
|
|
34
|
-
"LICENSE"
|
|
35
|
-
],
|
|
36
|
-
"exports": {
|
|
37
|
-
"./package.json": "./package.json",
|
|
38
|
-
"./accordion": "./src/data-display/accordion/accordion.tsx",
|
|
39
|
-
"./activity-ring": "./src/feedback/activity-ring/activity-ring.tsx",
|
|
40
|
-
"./avatar": "./src/data-display/avatar/avatar.tsx",
|
|
41
|
-
"./badge": "./src/data-display/badge/badge.tsx",
|
|
42
|
-
"./button": "./src/actions/button/button.tsx",
|
|
43
|
-
"./button.css": "./src/actions/button/button.css",
|
|
44
|
-
"./checkbox": "./src/forms/checkbox/checkbox.tsx",
|
|
45
|
-
"./dialog": "./src/overlays/dialog/dialog.tsx",
|
|
46
|
-
"./diff-changes": "./src/data-display/diff-changes/diff-changes.tsx",
|
|
47
|
-
"./divider": "./src/layout/divider/divider.tsx",
|
|
48
|
-
"./document-surface.css": "./src/components/document-surface.css",
|
|
49
|
-
"./field": "./src/forms/field/field.tsx",
|
|
50
|
-
"./file-tree.css": "./src/styles/file-tree.css",
|
|
51
|
-
"./icon": "./src/icons/icon/icon.tsx",
|
|
52
|
-
"./icons/catalog": "./src/icons/catalog.ts",
|
|
53
|
-
"./icons/registry": "./src/icons/registry.ts",
|
|
54
|
-
"./icon-button": "./src/actions/icon-button/icon-button.tsx",
|
|
55
|
-
"./inline-input": "./src/forms/inline-input/inline-input.tsx",
|
|
56
|
-
"./keybind": "./src/data-display/keybind/keybind.tsx",
|
|
57
|
-
"./line-comment": "./src/data-display/line-comment/line-comment.tsx",
|
|
58
|
-
"./line-comment/machine": "./src/data-display/line-comment/machine.ts",
|
|
59
|
-
"./loader": "./src/feedback/loader/loader.tsx",
|
|
60
|
-
"./mcp-sign-in": "./src/overlays/mcp-sign-in/mcp-sign-in.ts",
|
|
61
|
-
"./mcp-sign-in/machine": "./src/overlays/mcp-sign-in/machine.ts",
|
|
62
|
-
"./menu": "./src/navigation/menu/menu.tsx",
|
|
63
|
-
"./motion": "./src/motion/index.ts",
|
|
64
|
-
"./motion/solid": "./src/motion/solid.ts",
|
|
65
|
-
"./motion-tuning": "./src/motion-tuning.ts",
|
|
66
|
-
"./motion-tuning-features": "./src/motion-tuning-features.ts",
|
|
67
|
-
"./motion-tuning-fields": "./src/motion-tuning-fields.ts",
|
|
68
|
-
"./progress-circle": "./src/feedback/progress-circle/progress-circle.tsx",
|
|
69
|
-
"./project-avatar": "./src/data-display/project-avatar/project-avatar.tsx",
|
|
70
|
-
"./radio": "./src/forms/radio/radio.tsx",
|
|
71
|
-
"./redirect-paste": "./src/forms/redirect-paste/redirect-paste.tsx",
|
|
72
|
-
"./search-list": "./src/forms/search-list/search-list.tsx",
|
|
73
|
-
"./segmented-control": "./src/navigation/segmented-control/segmented-control.tsx",
|
|
74
|
-
"./select": "./src/forms/select/select.tsx",
|
|
75
|
-
"./select.css": "./src/forms/select/select.css",
|
|
76
|
-
"./split-button": "./src/actions/split-button/split-button.tsx",
|
|
77
|
-
"./switch": "./src/forms/switch/switch.tsx",
|
|
78
|
-
"./tab-state-indicator": "./src/navigation/tab-state-indicator.tsx",
|
|
79
|
-
"./tabs": "./src/navigation/tabs/tabs.tsx",
|
|
80
|
-
"./text-input": "./src/forms/text-input/text-input.tsx",
|
|
81
|
-
"./text-input.css": "./src/forms/text-input/text-input.css",
|
|
82
|
-
"./textarea": "./src/forms/textarea/textarea.tsx",
|
|
83
|
-
"./typeahead": "./src/forms/typeahead/typeahead.tsx",
|
|
84
|
-
"./slash": "./src/typography/slash/slash.tsx",
|
|
85
|
-
"./text-shimmer": "./src/typography/text-shimmer/text-shimmer.tsx",
|
|
86
|
-
"./toast": "./src/feedback/toast/toast.tsx",
|
|
87
|
-
"./tooltip": "./src/overlays/tooltip/tooltip.tsx",
|
|
88
|
-
"./wordmark": "./src/typography/wordmark/wordmark.tsx",
|
|
89
|
-
"./*": "./src/components/*.tsx",
|
|
90
|
-
"./i18n/*": "./src/i18n/*.ts",
|
|
91
|
-
"./hooks": "./src/hooks/index.ts",
|
|
92
|
-
"./context": "./src/context/index.ts",
|
|
93
|
-
"./context/*": "./src/context/*.tsx",
|
|
94
|
-
"./storybook/scaffold": "./src/storybook/scaffold.tsx",
|
|
95
|
-
"./storybook/fixtures": "./src/storybook/fixtures.ts",
|
|
96
|
-
"./styles": "./src/styles/index.css",
|
|
97
|
-
"./styles/tokens": "./src/styles/tokens/index.css",
|
|
98
|
-
"./styles/tokens/*": "./src/styles/tokens/*",
|
|
99
|
-
"./styles/tailwind": "./src/styles/tailwind/index.css",
|
|
100
|
-
"./theme": "./src/theme/index.ts",
|
|
101
|
-
"./theme/*": "./src/theme/*.ts",
|
|
102
|
-
"./theme/context": "./src/theme/context.tsx",
|
|
103
|
-
"./icons/provider": "./src/components/provider-icons/types.ts",
|
|
104
|
-
"./icons/file-type": "./src/components/file-icons/types.ts",
|
|
105
|
-
"./icons/file-type-name": "./src/components/file-icons/choose-icon-name.ts",
|
|
106
|
-
"./icons/app": "./src/components/app-icons/types.ts",
|
|
107
|
-
"./fonts/*": "./src/assets/fonts/*",
|
|
108
|
-
"./audio/*": "./src/assets/audio/*"
|
|
109
|
-
},
|
|
110
17
|
"scripts": {
|
|
111
18
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
112
19
|
"pack": "bun run script/pack.ts",
|
|
@@ -119,32 +26,32 @@
|
|
|
119
26
|
"generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
|
|
120
27
|
},
|
|
121
28
|
"devDependencies": {
|
|
122
|
-
"@hona/strobe": "
|
|
123
|
-
"@solidjs/meta": "
|
|
124
|
-
"@tsconfig/node22": "
|
|
125
|
-
"@types/bun": "
|
|
126
|
-
"@typescript/native": "
|
|
127
|
-
"solid-js": "
|
|
128
|
-
"tailwindcss": "
|
|
129
|
-
"typescript": "
|
|
130
|
-
"vite": "
|
|
29
|
+
"@hona/strobe": "0.44.1",
|
|
30
|
+
"@solidjs/meta": "0.29.4",
|
|
31
|
+
"@tsconfig/node22": "22.0.2",
|
|
32
|
+
"@types/bun": "1.4.3",
|
|
33
|
+
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
34
|
+
"solid-js": "1.9.17",
|
|
35
|
+
"tailwindcss": "4.1.11",
|
|
36
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
37
|
+
"vite": "7.3.7",
|
|
131
38
|
"vite-plugin-icons-spritesheet": "3.0.1",
|
|
132
|
-
"vite-plugin-solid": "
|
|
39
|
+
"vite-plugin-solid": "2.11.10"
|
|
133
40
|
},
|
|
134
41
|
"dependencies": {
|
|
135
42
|
"@kitlangton/solid-motion": "0.2.2",
|
|
136
|
-
"@kobalte/core": "
|
|
137
|
-
"@zyro-sec/util": "^1.0.
|
|
138
|
-
"@pierre/diffs": "
|
|
139
|
-
"@pierre/highlights": "
|
|
140
|
-
"@solid-primitives/event-listener": "
|
|
141
|
-
"@solid-primitives/resize-observer": "
|
|
142
|
-
"fuzzysort": "
|
|
43
|
+
"@kobalte/core": "0.13.13",
|
|
44
|
+
"@zyro-sec/util": "^1.0.1",
|
|
45
|
+
"@pierre/diffs": "1.6.1",
|
|
46
|
+
"@pierre/highlights": "0.2.0",
|
|
47
|
+
"@solid-primitives/event-listener": "2.4.6",
|
|
48
|
+
"@solid-primitives/resize-observer": "2.2.0",
|
|
49
|
+
"fuzzysort": "3.1.0",
|
|
143
50
|
"katex": "0.18.11",
|
|
144
51
|
"knobs": "npm:@kitlangton/knobs@0.4.0-next.22",
|
|
145
|
-
"marked": "
|
|
146
|
-
"solid-list": "
|
|
147
|
-
"solid-sonner": "
|
|
52
|
+
"marked": "18.0.11",
|
|
53
|
+
"solid-list": "0.3.0",
|
|
54
|
+
"solid-sonner": "0.3.1"
|
|
148
55
|
},
|
|
149
56
|
"peerDependencies": {
|
|
150
57
|
"@solidjs/meta": "^0.29.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { bench, script } from "@hona/strobe"
|
|
2
|
+
|
|
3
|
+
export default bench({
|
|
4
|
+
targets: { ui: script("./motion.ts") },
|
|
5
|
+
cases: {
|
|
6
|
+
// One second of animation for 1,000 springs.
|
|
7
|
+
"1,000 springs for 60 frames": {
|
|
8
|
+
primary: "cpu.work",
|
|
9
|
+
async run(ctx) {
|
|
10
|
+
await ctx.call("frames", 60)
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
})
|
package/perf/motion.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 1,000 springs, retargeted every frame so they never settle into their resting fast path. strobe's
|
|
2
|
+
// script host loads this module once per block and calls `frames` (perf/motion.bench.ts).
|
|
3
|
+
import { Spring } from "../src/motion/spring"
|
|
4
|
+
|
|
5
|
+
const springs = Array.from({ length: 1000 }, (_, i) => new Spring(i).set(i + 100))
|
|
6
|
+
|
|
7
|
+
let frame = 0
|
|
8
|
+
|
|
9
|
+
/** `count` frames at 60 Hz: every spring retargets, then steps. */
|
|
10
|
+
export function frames(count: number) {
|
|
11
|
+
for (const end = frame + count; frame < end; frame++) {
|
|
12
|
+
for (let i = 0; i < springs.length; i++) springs[i]!.set(i + (frame % 2 ? 100 : -100))
|
|
13
|
+
|
|
14
|
+
for (let i = 0; i < springs.length; i++) springs[i]!.step(1 / 60)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import { V2_PRIMITIVES_DEFAULT } from "../src/theme/v2/default-primitives"
|
|
4
|
+
import type { DesktopTheme } from "../src/theme/types"
|
|
5
|
+
|
|
6
|
+
const themePath = import.meta.dir + "/../src/theme/themes/oc-2.json"
|
|
7
|
+
|
|
8
|
+
const theme = (await Bun.file(themePath).json()) as DesktopTheme
|
|
9
|
+
|
|
10
|
+
const css = await Bun.file(import.meta.dir + "/../src/styles/tokens/theme.css").text()
|
|
11
|
+
|
|
12
|
+
const light = { ...V2_PRIMITIVES_DEFAULT, ...readTokens("light") }
|
|
13
|
+
|
|
14
|
+
const dark = { ...V2_PRIMITIVES_DEFAULT, ...readTokens("dark") }
|
|
15
|
+
|
|
16
|
+
const next: DesktopTheme = {
|
|
17
|
+
...theme,
|
|
18
|
+
light: { ...theme.light, v2Overrides: light },
|
|
19
|
+
dark: { ...theme.dark, v2Overrides: dark },
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
await Bun.write(themePath, JSON.stringify(next, null, 2) + "\n")
|
|
23
|
+
|
|
24
|
+
console.log("Updated oc-2.json v2Overrides", Object.keys(light).length, "tokens per mode")
|
|
25
|
+
|
|
26
|
+
function readTokens(mode: "light" | "dark") {
|
|
27
|
+
const selector = mode === "light" ? ":root" : `\\[data-color-scheme="${mode}"\\]`
|
|
28
|
+
const block = css.match(new RegExp(`${selector} \\{([\\s\\S]*?)\\n \\}`))?.[1]
|
|
29
|
+
|
|
30
|
+
if (!block) throw new Error(`Missing ${mode} OC-2 tokens`)
|
|
31
|
+
|
|
32
|
+
return Object.fromEntries(
|
|
33
|
+
[...block.matchAll(/--(v2-[\w-]+):\s*([^;]+);/g)]
|
|
34
|
+
// Fonts and the fixed avatar foreground remain global CSS rather than theme overrides.
|
|
35
|
+
.filter(([, key]) => key !== "v2-avatar-fg" && key !== "v2-font-family-sans")
|
|
36
|
+
.map(([, key, value]) => [key, value!.replace(/\s+/g, " ").trim()]),
|
|
37
|
+
)
|
|
38
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
--background-base: #F8F7F7;
|
|
2
|
+
--background-weak: var(--smoke-light-3);
|
|
3
|
+
--background-strong: var(--smoke-light-1);
|
|
4
|
+
--background-stronger: #FCFCFC;
|
|
5
|
+
--surface-base: var(--smoke-light-alpha-2);
|
|
6
|
+
--base: var(--smoke-light-alpha-2);
|
|
7
|
+
--surface-base-hover: #0500000F;
|
|
8
|
+
--surface-base-active: var(--smoke-light-alpha-3);
|
|
9
|
+
--surface-base-interactive-active: var(--cobalt-light-alpha-3);
|
|
10
|
+
--base2: var(--smoke-light-alpha-2);
|
|
11
|
+
--base3: var(--smoke-light-alpha-2);
|
|
12
|
+
--surface-inset-base: var(--smoke-light-alpha-2);
|
|
13
|
+
--surface-inset-base-hover: var(--smoke-light-alpha-3);
|
|
14
|
+
--surface-inset-strong: #1F000017;
|
|
15
|
+
--surface-inset-strong-hover: #1F000017;
|
|
16
|
+
--surface-raised-base: var(--smoke-light-alpha-1);
|
|
17
|
+
--surface-float-base: var(--smoke-dark-1);
|
|
18
|
+
--surface-float-base-hover: var(--smoke-dark-2);
|
|
19
|
+
--surface-raised-base-hover: var(--smoke-light-alpha-2);
|
|
20
|
+
--surface-raised-base-active: var(--smoke-light-alpha-3);
|
|
21
|
+
--surface-raised-strong: var(--smoke-light-1);
|
|
22
|
+
--surface-raised-strong-hover: var(--white);
|
|
23
|
+
--surface-raised-stronger: var(--white);
|
|
24
|
+
--surface-raised-stronger-hover: var(--white);
|
|
25
|
+
--surface-weak: var(--smoke-light-alpha-3);
|
|
26
|
+
--surface-weaker: var(--smoke-light-alpha-4);
|
|
27
|
+
--surface-strong: #FFFFFF;
|
|
28
|
+
--surface-raised-stronger-non-alpha: var(--white);
|
|
29
|
+
--surface-brand-base: var(--yuzu-light-9);
|
|
30
|
+
--surface-brand-hover: var(--yuzu-light-10);
|
|
31
|
+
--surface-interactive-base: var(--cobalt-light-3);
|
|
32
|
+
--surface-interactive-hover: var(--cobalt-light-4);
|
|
33
|
+
--surface-interactive-weak: var(--cobalt-light-2);
|
|
34
|
+
--surface-interactive-weak-hover: var(--cobalt-light-3);
|
|
35
|
+
--surface-success-base: var(--apple-light-3);
|
|
36
|
+
--surface-success-weak: var(--apple-light-2);
|
|
37
|
+
--surface-success-strong: var(--apple-light-9);
|
|
38
|
+
--surface-warning-base: var(--solaris-light-3);
|
|
39
|
+
--surface-warning-weak: var(--solaris-light-2);
|
|
40
|
+
--surface-warning-strong: var(--solaris-light-9);
|
|
41
|
+
--surface-critical-base: var(--ember-light-3);
|
|
42
|
+
--surface-critical-weak: var(--ember-light-2);
|
|
43
|
+
--surface-critical-strong: var(--ember-light-9);
|
|
44
|
+
--surface-info-base: var(--lilac-light-3);
|
|
45
|
+
--surface-info-weak: var(--lilac-light-2);
|
|
46
|
+
--surface-info-strong: var(--lilac-light-9);
|
|
47
|
+
--surface-diff-unchanged-base: #FFFFFF00;
|
|
48
|
+
--surface-diff-skip-base: var(--smoke-light-2);
|
|
49
|
+
--surface-diff-hidden-base: var(--blue-light-3);
|
|
50
|
+
--surface-diff-hidden-weak: var(--blue-light-2);
|
|
51
|
+
--surface-diff-hidden-weaker: var(--blue-light-1);
|
|
52
|
+
--surface-diff-hidden-strong: var(--blue-light-5);
|
|
53
|
+
--surface-diff-hidden-stronger: var(--blue-light-9);
|
|
54
|
+
--surface-diff-add-base: var(--mint-light-3);
|
|
55
|
+
--surface-diff-add-weak: var(--mint-light-2);
|
|
56
|
+
--surface-diff-add-weaker: var(--mint-light-1);
|
|
57
|
+
--surface-diff-add-strong: var(--mint-light-5);
|
|
58
|
+
--surface-diff-add-stronger: var(--mint-light-9);
|
|
59
|
+
--surface-diff-delete-base: var(--ember-light-3);
|
|
60
|
+
--surface-diff-delete-weak: var(--ember-light-2);
|
|
61
|
+
--surface-diff-delete-weaker: var(--ember-light-1);
|
|
62
|
+
--surface-diff-delete-strong: var(--ember-light-6);
|
|
63
|
+
--surface-diff-delete-stronger: var(--ember-light-9);
|
|
64
|
+
--text-base: var(--smoke-light-11);
|
|
65
|
+
--input-base: var(--smoke-light-1);
|
|
66
|
+
--input-hover: var(--smoke-light-2);
|
|
67
|
+
--input-active: var(--cobalt-light-1);
|
|
68
|
+
--input-selected: var(--cobalt-light-4);
|
|
69
|
+
--input-focus: var(--cobalt-light-1);
|
|
70
|
+
--input-disabled: var(--smoke-light-4);
|
|
71
|
+
--text-weak: var(--smoke-light-9);
|
|
72
|
+
--text-weaker: var(--smoke-light-8);
|
|
73
|
+
--text-strong: var(--smoke-light-12);
|
|
74
|
+
--text-interactive-base: var(--cobalt-light-9);
|
|
75
|
+
--text-on-brand-base: var(--smoke-light-alpha-11);
|
|
76
|
+
--text-on-interactive-base: var(--smoke-light-1);
|
|
77
|
+
--text-on-interactive-weak: var(--smoke-dark-alpha-11);
|
|
78
|
+
--text-on-success-base: var(--apple-light-10);
|
|
79
|
+
--text-on-critical-base: var(--ember-light-10);
|
|
80
|
+
--text-on-critical-weak: var(--ember-light-8);
|
|
81
|
+
--text-on-critical-strong: var(--ember-light-12);
|
|
82
|
+
--text-on-warning-base: var(--smoke-dark-alpha-11);
|
|
83
|
+
--text-on-info-base: var(--smoke-dark-alpha-11);
|
|
84
|
+
--text-diff-add-base: var(--mint-light-11);
|
|
85
|
+
--text-diff-delete-base: var(--ember-light-10);
|
|
86
|
+
--text-diff-delete-strong: var(--ember-light-12);
|
|
87
|
+
--text-diff-add-strong: var(--mint-light-12);
|
|
88
|
+
--text-on-info-weak: var(--smoke-dark-alpha-9);
|
|
89
|
+
--text-on-info-strong: var(--smoke-dark-alpha-12);
|
|
90
|
+
--text-on-warning-weak: var(--smoke-dark-alpha-9);
|
|
91
|
+
--text-on-warning-strong: var(--smoke-dark-alpha-12);
|
|
92
|
+
--text-on-success-weak: var(--apple-light-6);
|
|
93
|
+
--text-on-success-strong: var(--apple-light-12);
|
|
94
|
+
--text-on-brand-weak: var(--smoke-light-alpha-9);
|
|
95
|
+
--text-on-brand-weaker: var(--smoke-light-alpha-8);
|
|
96
|
+
--text-on-brand-strong: var(--smoke-light-alpha-12);
|
|
97
|
+
--button-secondary-base: #FDFCFC;
|
|
98
|
+
--button-secondary-hover: #FAF9F9;
|
|
99
|
+
--border-base: var(--smoke-light-alpha-7);
|
|
100
|
+
--border-hover: var(--smoke-light-alpha-8);
|
|
101
|
+
--border-active: var(--smoke-light-alpha-9);
|
|
102
|
+
--border-selected: var(--cobalt-light-alpha-9);
|
|
103
|
+
--border-disabled: var(--smoke-light-alpha-8);
|
|
104
|
+
--border-focus: var(--smoke-light-alpha-9);
|
|
105
|
+
--border-weak-base: var(--smoke-light-alpha-5);
|
|
106
|
+
--border-strong-base: var(--smoke-light-alpha-7);
|
|
107
|
+
--border-strong-hover: var(--smoke-light-alpha-8);
|
|
108
|
+
--border-strong-active: var(--smoke-light-alpha-7);
|
|
109
|
+
--border-strong-selected: var(--cobalt-light-alpha-6);
|
|
110
|
+
--border-strong-disabled: var(--smoke-light-alpha-6);
|
|
111
|
+
--border-strong-focus: var(--smoke-light-alpha-7);
|
|
112
|
+
--border-weak-hover: var(--smoke-light-alpha-6);
|
|
113
|
+
--border-weak-active: var(--smoke-light-alpha-7);
|
|
114
|
+
--border-weak-selected: var(--cobalt-light-alpha-5);
|
|
115
|
+
--border-weak-disabled: var(--smoke-light-alpha-6);
|
|
116
|
+
--border-weak-focus: var(--smoke-light-alpha-7);
|
|
117
|
+
--border-weaker-base: var(--smoke-light-alpha-3);
|
|
118
|
+
--border-interactive-base: var(--cobalt-light-7);
|
|
119
|
+
--border-interactive-hover: var(--cobalt-light-8);
|
|
120
|
+
--border-interactive-active: var(--cobalt-light-9);
|
|
121
|
+
--border-interactive-selected: var(--cobalt-light-9);
|
|
122
|
+
--border-interactive-disabled: var(--smoke-light-8);
|
|
123
|
+
--border-interactive-focus: var(--cobalt-light-9);
|
|
124
|
+
--border-success-base: var(--apple-light-6);
|
|
125
|
+
--border-success-hover: var(--apple-light-7);
|
|
126
|
+
--border-success-selected: var(--apple-light-9);
|
|
127
|
+
--border-warning-base: var(--solaris-light-6);
|
|
128
|
+
--border-warning-hover: var(--solaris-light-7);
|
|
129
|
+
--border-warning-selected: var(--solaris-light-9);
|
|
130
|
+
--border-critical-base: var(--ember-light-6);
|
|
131
|
+
--border-critical-hover: var(--ember-light-7);
|
|
132
|
+
--border-critical-selected: var(--ember-light-9);
|
|
133
|
+
--border-info-base: var(--lilac-light-6);
|
|
134
|
+
--border-info-hover: var(--lilac-light-7);
|
|
135
|
+
--border-info-selected: var(--lilac-light-9);
|
|
136
|
+
--icon-base: var(--smoke-light-9);
|
|
137
|
+
--icon-hover: var(--smoke-light-11);
|
|
138
|
+
--icon-active: var(--smoke-light-12);
|
|
139
|
+
--icon-selected: var(--smoke-light-12);
|
|
140
|
+
--icon-disabled: var(--smoke-light-8);
|
|
141
|
+
--icon-focus: var(--smoke-light-12);
|
|
142
|
+
--icon-invert-base: #FFFFFF;
|
|
143
|
+
--icon-weak-base: var(--smoke-light-7);
|
|
144
|
+
--icon-weak-hover: var(--smoke-light-8);
|
|
145
|
+
--icon-weak-active: var(--smoke-light-9);
|
|
146
|
+
--icon-weak-selected: var(--smoke-light-10);
|
|
147
|
+
--icon-weak-disabled: var(--smoke-light-6);
|
|
148
|
+
--icon-weak-focus: var(--smoke-light-9);
|
|
149
|
+
--icon-strong-base: var(--smoke-light-12);
|
|
150
|
+
--icon-strong-hover: #151313;
|
|
151
|
+
--icon-strong-active: #020202;
|
|
152
|
+
--icon-strong-selected: #020202;
|
|
153
|
+
--icon-strong-disabled: var(--smoke-light-8);
|
|
154
|
+
--icon-strong-focus: #020202;
|
|
155
|
+
--icon-brand-base: var(--smoke-light-12);
|
|
156
|
+
--icon-interactive-base: var(--cobalt-light-9);
|
|
157
|
+
--icon-success-base: var(--apple-light-7);
|
|
158
|
+
--icon-success-hover: var(--apple-light-8);
|
|
159
|
+
--icon-success-active: var(--apple-light-11);
|
|
160
|
+
--icon-warning-base: var(--amber-light-7);
|
|
161
|
+
--icon-warning-hover: var(--amber-light-8);
|
|
162
|
+
--icon-warning-active: var(--amber-light-11);
|
|
163
|
+
--icon-critical-base: var(--ember-light-10);
|
|
164
|
+
--icon-critical-hover: var(--ember-light-11);
|
|
165
|
+
--icon-critical-active: var(--ember-light-12);
|
|
166
|
+
--icon-info-base: var(--lilac-light-7);
|
|
167
|
+
--icon-info-hover: var(--lilac-light-8);
|
|
168
|
+
--icon-info-active: var(--lilac-light-11);
|
|
169
|
+
--icon-on-brand-base: var(--smoke-light-alpha-11);
|
|
170
|
+
--icon-on-brand-hover: var(--smoke-light-alpha-12);
|
|
171
|
+
--icon-on-brand-selected: var(--smoke-light-alpha-12);
|
|
172
|
+
--icon-on-interactive-base: var(--smoke-light-1);
|
|
173
|
+
--icon-agent-plan-base: var(--purple-light-9);
|
|
174
|
+
--icon-agent-docs-base: var(--amber-light-9);
|
|
175
|
+
--icon-agent-ask-base: var(--cyan-light-9);
|
|
176
|
+
--icon-agent-build-base: var(--cobalt-light-9);
|
|
177
|
+
--icon-on-success-base: var(--apple-light-alpha-9);
|
|
178
|
+
--icon-on-success-hover: var(--apple-light-alpha-10);
|
|
179
|
+
--icon-on-success-selected: var(--apple-light-alpha-11);
|
|
180
|
+
--icon-on-warning-base: var(--amber-lightalpha-9);
|
|
181
|
+
--icon-on-warning-hover: var(--amber-lightalpha-10);
|
|
182
|
+
--icon-on-warning-selected: var(--amber-lightalpha-11);
|
|
183
|
+
--icon-on-critical-base: var(--ember-light-alpha-9);
|
|
184
|
+
--icon-on-critical-hover: var(--ember-light-alpha-10);
|
|
185
|
+
--icon-on-critical-selected: var(--ember-light-alpha-11);
|
|
186
|
+
--icon-on-info-base: var(--lilac-light-9);
|
|
187
|
+
--icon-on-info-hover: var(--lilac-light-alpha-10);
|
|
188
|
+
--icon-on-info-selected: var(--lilac-light-alpha-11);
|
|
189
|
+
--icon-diff-add-base: var(--mint-light-11);
|
|
190
|
+
--icon-diff-add-hover: var(--mint-light-12);
|
|
191
|
+
--icon-diff-add-active: var(--mint-light-12);
|
|
192
|
+
--icon-diff-delete-base: var(--ember-light-10);
|
|
193
|
+
--icon-diff-delete-hover: var(--ember-light-11);
|
|
194
|
+
--syntax-comment: var(--text-weaker);
|
|
195
|
+
--syntax-regexp: var(--text-base);
|
|
196
|
+
--syntax-string: #007663;
|
|
197
|
+
--syntax-keyword: var(--text-weak);
|
|
198
|
+
--syntax-primitive: #FB7F51;
|
|
199
|
+
--syntax-operator: var(--text-weak);
|
|
200
|
+
--syntax-variable: var(--text-strong);
|
|
201
|
+
--syntax-property: #EC6CC8;
|
|
202
|
+
--syntax-type: #738400;
|
|
203
|
+
--syntax-constant: #00B2B9;
|
|
204
|
+
--syntax-punctuation: var(--text-weaker);
|
|
205
|
+
--syntax-object: var(--text-strong);
|
|
206
|
+
--syntax-success: var(--apple-light-10);
|
|
207
|
+
--syntax-warning: var(--amber-light-10);
|
|
208
|
+
--syntax-critical: var(--ember-light-9);
|
|
209
|
+
--syntax-info: #0091A7;
|
|
210
|
+
--syntax-diff-add: var(--mint-light-11);
|
|
211
|
+
--syntax-diff-delete: var(--ember-light-11);
|
|
212
|
+
--syntax-diff-unknown: #FF0000;
|
|
213
|
+
--markdown-heading: #D68C27;
|
|
214
|
+
--markdown-text: #1A1A1A;
|
|
215
|
+
--markdown-link: #3B7DD8;
|
|
216
|
+
--markdown-link-text: #318795;
|
|
217
|
+
--markdown-code: #3D9A57;
|
|
218
|
+
--markdown-block-quote: #B0851F;
|
|
219
|
+
--markdown-emph: #B0851F;
|
|
220
|
+
--markdown-strong: #D68C27;
|
|
221
|
+
--markdown-horizontal-rule: #8A8A8A;
|
|
222
|
+
--markdown-list-item: #3B7DD8;
|
|
223
|
+
--markdown-list-enumeration: #318795;
|
|
224
|
+
--markdown-image: #3B7DD8;
|
|
225
|
+
--markdown-image-text: #318795;
|
|
226
|
+
--markdown-code-block: #1A1A1A;
|
|
227
|
+
--border-color: #FFFFFF;
|
|
228
|
+
--button-ghost-hover: var(--smoke-light-alpha-2);
|
|
229
|
+
--button-ghost-hover2: var(--smoke-light-alpha-3);
|
|
230
|
+
|
|
231
|
+
--v2-background-bg-base: var(--v2-grey-50);
|
|
232
|
+
--v2-background-bg-deep: var(--v2-grey-100);
|
|
233
|
+
--v2-background-bg-layer-01: var(--v2-grey-100);
|
|
234
|
+
--v2-background-bg-layer-02: var(--v2-grey-200);
|
|
235
|
+
--v2-background-bg-layer-03: var(--v2-grey-300);
|
|
236
|
+
--v2-background-bg-layer-04: var(--v2-grey-400);
|
|
237
|
+
--v2-background-bg-inverse: var(--v2-grey-1100);
|
|
238
|
+
--v2-background-bg-contrast: var(--v2-grey-1000);
|
|
239
|
+
--v2-background-bg-icon-button-contrast: var(--v2-background-bg-contrast);
|
|
240
|
+
--v2-background-bg-button-neutral: var(--v2-grey-50);
|
|
241
|
+
--v2-background-bg-accent: var(--v2-blue-600);
|
|
242
|
+
|
|
243
|
+
--v2-text-text-base: var(--v2-grey-1100);
|
|
244
|
+
--v2-text-text-muted: var(--v2-grey-700);
|
|
245
|
+
--v2-text-text-faint: var(--v2-grey-600);
|
|
246
|
+
--v2-text-text-inverse: var(--v2-grey-50);
|
|
247
|
+
--v2-text-text-contrast: var(--v2-grey-50);
|
|
248
|
+
--v2-text-text-accent: var(--v2-blue-600);
|
|
249
|
+
--v2-text-text-accent-hover: var(--v2-blue-700);
|
|
250
|
+
--v2-text-text-code-accent: var(--v2-blue-900);
|
|
251
|
+
|
|
252
|
+
--v2-icon-icon-base: var(--v2-grey-800);
|
|
253
|
+
--v2-icon-icon-muted: var(--v2-grey-600);
|
|
254
|
+
--v2-icon-icon-faint: var(--v2-grey-500);
|
|
255
|
+
--v2-icon-icon-inverse: var(--v2-grey-50);
|
|
256
|
+
--v2-icon-icon-contrast: var(--v2-grey-100);
|
|
257
|
+
--v2-icon-icon-accent: var(--v2-blue-600);
|
|
258
|
+
--v2-icon-icon-accent-hover: var(--v2-blue-700);
|
|
259
|
+
|
|
260
|
+
--v2-border-border-muted: var(--v2-alpha-dark-8);
|
|
261
|
+
--v2-border-border-base: var(--v2-alpha-dark-10);
|
|
262
|
+
--v2-border-border-strong: var(--v2-alpha-dark-20);
|
|
263
|
+
--v2-border-border-inverse: var(--v2-grey-1000);
|
|
264
|
+
--v2-border-border-focus: var(--v2-blue-500);
|
|
265
|
+
|
|
266
|
+
--v2-overlay-simple-overlay-hover: var(--v2-alpha-dark-4);
|
|
267
|
+
--v2-overlay-simple-overlay-pressed: var(--v2-alpha-dark-8);
|
|
268
|
+
--v2-overlay-simple-overlay-contrast-hover: var(--v2-alpha-light-12);
|
|
269
|
+
--v2-overlay-simple-overlay-contrast-pressed: var(--v2-alpha-light-24);
|
|
270
|
+
--v2-overlay-simple-overlay-scrim: var(--v2-alpha-dark-40);
|
|
271
|
+
--v2-overlay-gradient-depth-overlay-depth-top: var(--v2-alpha-light-100);
|
|
272
|
+
--v2-overlay-gradient-depth-overlay-depth-bot: var(--v2-alpha-light-0);
|
|
273
|
+
--v2-overlay-simple-tab-active-scrim: #fafafa00;
|
|
274
|
+
--v2-overlay-simple-tab-hover-scrim: #eeeeee00;
|
|
275
|
+
--v2-overlay-simple-tab-scrim: #fafafa00;
|
|
276
|
+
|
|
277
|
+
--v2-state-bg-success: var(--v2-green-100);
|
|
278
|
+
--v2-state-fg-success: var(--v2-green-800);
|
|
279
|
+
--v2-state-border-success: var(--v2-green-300);
|
|
280
|
+
--v2-state-bg-warning: var(--v2-yellow-100);
|
|
281
|
+
--v2-state-fg-warning: var(--v2-yellow-800);
|
|
282
|
+
--v2-state-border-warning: var(--v2-yellow-300);
|
|
283
|
+
--v2-state-bg-danger: var(--v2-red-100);
|
|
284
|
+
--v2-state-fg-danger: var(--v2-red-800);
|
|
285
|
+
--v2-state-border-danger: var(--v2-red-300);
|
|
286
|
+
--v2-state-bg-info: var(--v2-blue-200);
|
|
287
|
+
--v2-state-fg-info: var(--v2-blue-800);
|
|
288
|
+
--v2-state-border-info: var(--v2-blue-300);
|