Skip to content

Commit 9211ef7

Browse files
chore: generate
1 parent 605ae48 commit 9211ef7

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

packages/ui/src/theme/v2/foreground.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ export function mapV2Foreground(
1313
})
1414

1515
return {
16-
"v2-text-text-base": isDark
17-
? blend("#ffffff", body, 0.9)
18-
: shift(body, { l: -0.07, c: 1.04 }),
19-
"v2-text-text-muted":
20-
overrides["text-weak"] ??
21-
shift(body, { l: isDark ? -0.11 : 0.11, c: 0.9 }),
16+
"v2-text-text-base": isDark ? blend("#ffffff", body, 0.9) : shift(body, { l: -0.07, c: 1.04 }),
17+
"v2-text-text-muted": overrides["text-weak"] ?? shift(body, { l: isDark ? -0.11 : 0.11, c: 0.9 }),
2218
"v2-text-text-faint": shift(body, { l: isDark ? -0.2 : 0.21, c: isDark ? 0.78 : 0.72 }),
2319
}
2420
}

packages/ui/src/theme/v2/mapping.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ export function mapV2Semantics(isDark: boolean): Record<string, V2ColorValue> {
143143
return isDark ? dark : light
144144
}
145145

146-
export function mergeV2Tokens(
147-
...layers: Record<string, V2ColorValue>[]
148-
): Record<string, V2ColorValue> {
146+
export function mergeV2Tokens(...layers: Record<string, V2ColorValue>[]): Record<string, V2ColorValue> {
149147
return Object.assign({}, ...layers)
150148
}

packages/ui/src/v2/components/dialog-v2.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ export function DialogFooter(props: ParentProps) {
1818
}
1919

2020
export function Dialog(props: DialogProps) {
21-
const [local] = splitProps(props, ["title", "description", "action", "size", "variant", "class", "classList", "fit", "children"])
21+
const [local] = splitProps(props, [
22+
"title",
23+
"description",
24+
"action",
25+
"size",
26+
"variant",
27+
"class",
28+
"classList",
29+
"fit",
30+
"children",
31+
])
2232
const title = children(() => local.title)
2333
const description = children(() => local.description)
2434
const action = children(() => local.action)

0 commit comments

Comments
 (0)