File tree Expand file tree Collapse file tree 6 files changed +25
-8
lines changed Expand file tree Collapse file tree 6 files changed +25
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @tanstack/devtools ' : patch
3
+ ---
4
+
5
+ add new tantack logo
Original file line number Diff line number Diff line change 48
48
"size-limit" : [
49
49
{
50
50
"path" : " packages/devtools/dist/index.js" ,
51
- "limit" : " 40 KB"
51
+ "limit" : " 50 KB"
52
52
},
53
53
{
54
54
"path" : " packages/event-bus-client/dist/esm/plugin.js" ,
Original file line number Diff line number Diff line change 1
1
import { createMemo } from 'solid-js'
2
2
import clsx from 'clsx'
3
- import { TanStackLogo } from '@tanstack/devtools-ui'
4
3
import { useDevtoolsSettings } from '../context/use-devtools-context'
5
4
import { useStyles } from '../styles/use-styles'
5
+ import TanStackLogo from './tanstack-logo.png'
6
6
import type { Accessor } from 'solid-js'
7
7
8
8
export const Trigger = ( {
@@ -28,7 +28,7 @@ export const Trigger = ({
28
28
class = { buttonStyle ( ) }
29
29
onClick = { ( ) => setIsOpen ( ! isOpen ( ) ) }
30
30
>
31
- < TanStackLogo />
31
+ < img src = { TanStackLogo } alt = "TanStack Logo" />
32
32
</ button >
33
33
)
34
34
}
Original file line number Diff line number Diff line change @@ -218,6 +218,14 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
218
218
font-size : ${ font . size . xs } ;
219
219
cursor : pointer;
220
220
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
+ }
221
229
& : hide-until-hover {
222
230
opacity : 0 ;
223
231
pointer-events : none;
@@ -228,10 +236,9 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
228
236
pointer-events : auto;
229
237
visibility : visible;
230
238
}
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 ) } ;
235
242
}
236
243
` ,
237
244
mainCloseBtnPosition : ( position : TanStackDevtoolsConfig [ 'position' ] ) => {
Original file line number Diff line number Diff line change @@ -15,5 +15,10 @@ export default defineConfig(() => {
15
15
const parsed_data = parsePresetOptions ( preset_options )
16
16
const tsup_options = generateTsupOptions ( parsed_data )
17
17
18
- return tsup_options
18
+ return tsup_options . map ( ( option ) => ( {
19
+ ...option ,
20
+ loader : {
21
+ '.png' : 'dataurl' ,
22
+ } ,
23
+ } ) )
19
24
} )
You can’t perform that action at this time.
0 commit comments