Skip to content

Commit 4113eba

Browse files
committed
chore: fix build issues
1 parent b7ea45d commit 4113eba

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

packages/devtools-ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"build": "vite build"
5454
},
5555
"dependencies": {
56+
"clsx": "^2.1.1",
5657
"goober": "^2.1.16",
5758
"solid-js": "^1.9.7"
5859
},
@@ -62,4 +63,4 @@
6263
"devDependencies": {
6364
"vite-plugin-solid": "^2.11.6"
6465
}
65-
}
66+
}

packages/devtools-ui/src/components/button.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { splitProps } from 'solid-js'
2+
import clsx from 'clsx'
23
import { useStyles } from '../styles/use-styles'
34
import type { JSX } from 'solid-js'
45

@@ -27,13 +28,9 @@ export function Button(props: ButtonProps) {
2728
'className',
2829
])
2930
const variant = local.variant || 'primary'
30-
const classes = [
31-
styles().button.base,
31+
const classes = clsx(styles().button.base,
3232
styles().button.variant(variant, local.outline, local.ghost),
33-
local.className,
34-
]
35-
.filter(Boolean)
36-
.join(' ')
33+
local.className,)
3734

3835
return (
3936
<button {...rest} class={classes}>

packages/devtools-ui/src/components/tree.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { For, Show, createSignal } from 'solid-js'
2+
import clsx from 'clsx'
23
import { useStyles } from '../styles/use-styles'
34

4-
const clsx = (...args: any) => [...args].filter(Boolean).join(' ')
5-
65
export function JsonTree(props: { value: any }) {
76
return <JsonValue isRoot value={props.value} />
87
}

packages/devtools-ui/src/styles/use-styles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const stylesFactory = (theme: 'light' | 'dark' = 'dark') => {
264264
variant(variant: ButtonVariant, outline?: boolean, ghost?: boolean) {
265265
const v = buttonVariantColors[variant]
266266
if (ghost) {
267-
return goober.css`
267+
return css`
268268
background: transparent;
269269
color: ${v.bg};
270270
border-color: transparent;
@@ -277,7 +277,7 @@ const stylesFactory = (theme: 'light' | 'dark' = 'dark') => {
277277
`
278278
}
279279
if (outline) {
280-
return goober.css`
280+
return css`
281281
background: transparent;
282282
color: ${v.bg};
283283
border-color: ${v.bg};
@@ -292,7 +292,7 @@ const stylesFactory = (theme: 'light' | 'dark' = 'dark') => {
292292
`
293293
}
294294
// Default solid button
295-
return goober.css`
295+
return css`
296296
background: ${v.bg};
297297
color: ${v.text};
298298
border-color: ${v.border};

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)