Skip to content

Commit 42d883d

Browse files
feat: add new tanstack logo (#113)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent af02b4c commit 42d883d

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

.changeset/moody-geese-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/devtools': patch
3+
---
4+
5+
add new tantack logo

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"size-limit": [
4949
{
5050
"path": "packages/devtools/dist/index.js",
51-
"limit": "40 KB"
51+
"limit": "50 KB"
5252
},
5353
{
5454
"path": "packages/event-bus-client/dist/esm/plugin.js",
14.3 KB
Loading

packages/devtools/src/components/trigger.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createMemo } from 'solid-js'
22
import clsx from 'clsx'
3-
import { TanStackLogo } from '@tanstack/devtools-ui'
43
import { useDevtoolsSettings } from '../context/use-devtools-context'
54
import { useStyles } from '../styles/use-styles'
5+
import TanStackLogo from './tanstack-logo.png'
66
import type { Accessor } from 'solid-js'
77

88
export const Trigger = ({
@@ -28,7 +28,7 @@ export const Trigger = ({
2828
class={buttonStyle()}
2929
onClick={() => setIsOpen(!isOpen())}
3030
>
31-
<TanStackLogo />
31+
<img src={TanStackLogo} alt="TanStack Logo" />
3232
</button>
3333
)
3434
}

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,14 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
218218
font-size: ${font.size.xs};
219219
cursor: pointer;
220220
transition: all 0.25s ease-out;
221+
& > img {
222+
width: 56px;
223+
height: 56px;
224+
transition: all 0.3s ease;
225+
outline-offset: 2px;
226+
border-radius: ${border.radius.full};
227+
outline: 2px solid transparent;
228+
}
221229
&:hide-until-hover {
222230
opacity: 0;
223231
pointer-events: none;
@@ -228,10 +236,9 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
228236
pointer-events: auto;
229237
visibility: visible;
230238
}
231-
&:focus-visible {
232-
outline-offset: 2px;
233-
border-radius: ${border.radius.full};
234-
outline: 2px solid ${t(colors.blue[700], colors.blue[800])};
239+
& > img:focus-visible,
240+
img:hover {
241+
outline: 2px solid ${t(colors.black, colors.black)};
235242
}
236243
`,
237244
mainCloseBtnPosition: (position: TanStackDevtoolsConfig['position']) => {

packages/devtools/tsup.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ export default defineConfig(() => {
1515
const parsed_data = parsePresetOptions(preset_options)
1616
const tsup_options = generateTsupOptions(parsed_data)
1717

18-
return tsup_options
18+
return tsup_options.map((option) => ({
19+
...option,
20+
loader: {
21+
'.png': 'dataurl',
22+
},
23+
}))
1924
})

0 commit comments

Comments
 (0)