Explorar o código

chore: generate

opencode-agent[bot] hai 3 meses
pai
achega
9211ef7e95

+ 2 - 6
packages/ui/src/theme/v2/foreground.ts

@@ -13,12 +13,8 @@ export function mapV2Foreground(
   })
 
   return {
-    "v2-text-text-base": isDark
-      ? blend("#ffffff", body, 0.9)
-      : shift(body, { l: -0.07, c: 1.04 }),
-    "v2-text-text-muted":
-      overrides["text-weak"] ??
-      shift(body, { l: isDark ? -0.11 : 0.11, c: 0.9 }),
+    "v2-text-text-base": isDark ? blend("#ffffff", body, 0.9) : shift(body, { l: -0.07, c: 1.04 }),
+    "v2-text-text-muted": overrides["text-weak"] ?? shift(body, { l: isDark ? -0.11 : 0.11, c: 0.9 }),
     "v2-text-text-faint": shift(body, { l: isDark ? -0.2 : 0.21, c: isDark ? 0.78 : 0.72 }),
   }
 }

+ 1 - 3
packages/ui/src/theme/v2/mapping.ts

@@ -143,8 +143,6 @@ export function mapV2Semantics(isDark: boolean): Record<string, V2ColorValue> {
   return isDark ? dark : light
 }
 
-export function mergeV2Tokens(
-  ...layers: Record<string, V2ColorValue>[]
-): Record<string, V2ColorValue> {
+export function mergeV2Tokens(...layers: Record<string, V2ColorValue>[]): Record<string, V2ColorValue> {
   return Object.assign({}, ...layers)
 }

+ 11 - 1
packages/ui/src/v2/components/dialog-v2.tsx

@@ -18,7 +18,17 @@ export function DialogFooter(props: ParentProps) {
 }
 
 export function Dialog(props: DialogProps) {
-  const [local] = splitProps(props, ["title", "description", "action", "size", "variant", "class", "classList", "fit", "children"])
+  const [local] = splitProps(props, [
+    "title",
+    "description",
+    "action",
+    "size",
+    "variant",
+    "class",
+    "classList",
+    "fit",
+    "children",
+  ])
   const title = children(() => local.title)
   const description = children(() => local.description)
   const action = children(() => local.action)