File tree Expand file tree Collapse file tree 4 files changed +3
-89
lines changed Expand file tree Collapse file tree 4 files changed +3
-89
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { useClasser } from "../classer"
2
1
import React from "react"
3
2
4
3
function Back ( ) {
5
- const c = useClasser ( "ch-browser" )
6
4
return (
7
5
< svg
8
6
fill = "currentColor"
9
7
preserveAspectRatio = "xMidYMid meet"
10
8
height = "1em"
11
9
viewBox = "13 10 14 23"
12
- className = { c ( " button" , " back-button") }
10
+ className = "ch-browser- button ch-browser- back-button"
13
11
>
14
12
< g >
15
13
< path d = "m26.5 12.1q0 0.3-0.2 0.6l-8.8 8.7 8.8 8.8q0.2 0.2 0.2 0.5t-0.2 0.5l-1.1 1.1q-0.3 0.3-0.6 0.3t-0.5-0.3l-10.4-10.4q-0.2-0.2-0.2-0.5t0.2-0.5l10.4-10.4q0.3-0.2 0.5-0.2t0.6 0.2l1.1 1.1q0.2 0.2 0.2 0.5z" />
@@ -19,14 +17,13 @@ function Back() {
19
17
}
20
18
21
19
function Forward ( ) {
22
- const c = useClasser ( "ch-browser" )
23
20
return (
24
21
< svg
25
22
fill = "currentColor"
26
23
preserveAspectRatio = "xMidYMid meet"
27
24
height = "1em"
28
25
viewBox = "13 10 14 23"
29
- className = { c ( " button" , " forward-button") }
26
+ className = "ch-browser- button ch-browser- forward-button"
30
27
>
31
28
< g >
32
29
< path d = "m26.3 21.4q0 0.3-0.2 0.5l-10.4 10.4q-0.3 0.3-0.6 0.3t-0.5-0.3l-1.1-1.1q-0.2-0.2-0.2-0.5t0.2-0.5l8.8-8.8-8.8-8.7q-0.2-0.3-0.2-0.6t0.2-0.5l1.1-1.1q0.3-0.2 0.5-0.2t0.6 0.2l10.4 10.4q0.2 0.2 0.2 0.5z" />
Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ import React from "react"
2
2
import { MiniFrame } from "../mini-frame"
3
3
import { TitleBar } from "./title-bar"
4
4
import { MiniBrowserStep , useSteps } from "./use-steps"
5
- import { useClasser , Classes } from "../classer"
6
5
7
6
type Transition = "none" | "slide"
8
7
9
8
export type MiniBrowserHikeProps = {
10
9
progress ?: number
11
10
backward ?: boolean
12
- classes ?: Classes
13
11
steps ?: MiniBrowserStep [ ]
14
12
transition ?: Transition
15
13
} & React . PropsWithoutRef < JSX . IntrinsicElements [ "div" ] >
@@ -25,12 +23,10 @@ function MiniBrowserWithRef(
25
23
backward = false ,
26
24
steps : ogSteps ,
27
25
transition = "none" ,
28
- classes,
29
26
...props
30
27
} : MiniBrowserHikeProps ,
31
28
ref : React . Ref < HTMLIFrameElement >
32
29
) {
33
- const c = useClasser ( "ch-mini-browser" , classes )
34
30
const steps = useSteps ( ogSteps )
35
31
36
32
const stepIndex = Math . round ( progress )
@@ -42,7 +38,7 @@ function MiniBrowserWithRef(
42
38
< MiniFrame
43
39
{ ...props }
44
40
zoom = { zoom }
45
- className = { `${ c ( "" ) } ${ props . className || "" } ` }
41
+ className = { `ch-mini-browser ${ props . className || "" } ` }
46
42
style = { {
47
43
...transitionStyle ( { progress, transition } ) ,
48
44
...props . style ,
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { FrameButtons } from "../mini-frame"
3
- import { Classes } from "../classer"
4
3
5
4
export { getPanelStyles }
6
5
export type {
@@ -30,7 +29,6 @@ type EditorFrameProps = {
30
29
height ?: number
31
30
northButton ?: React . ReactNode
32
31
southButton ?: React . ReactNode
33
- classes ?: Classes
34
32
onTabClick ?: ( filename : string ) => void
35
33
} & React . PropsWithoutRef < JSX . IntrinsicElements [ "div" ] >
36
34
You can’t perform that action at this time.
0 commit comments