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"
21import React from "react"
32
43function Back ( ) {
5- const c = useClasser ( "ch-browser" )
64 return (
75 < svg
86 fill = "currentColor"
97 preserveAspectRatio = "xMidYMid meet"
108 height = "1em"
119 viewBox = "13 10 14 23"
12- className = { c ( " button" , " back-button") }
10+ className = "ch-browser- button ch-browser- back-button"
1311 >
1412 < g >
1513 < 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() {
1917}
2018
2119function Forward ( ) {
22- const c = useClasser ( "ch-browser" )
2320 return (
2421 < svg
2522 fill = "currentColor"
2623 preserveAspectRatio = "xMidYMid meet"
2724 height = "1em"
2825 viewBox = "13 10 14 23"
29- className = { c ( " button" , " forward-button") }
26+ className = "ch-browser- button ch-browser- forward-button"
3027 >
3128 < g >
3229 < 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"
22import { MiniFrame } from "../mini-frame"
33import { TitleBar } from "./title-bar"
44import { MiniBrowserStep , useSteps } from "./use-steps"
5- import { useClasser , Classes } from "../classer"
65
76type Transition = "none" | "slide"
87
98export type MiniBrowserHikeProps = {
109 progress ?: number
1110 backward ?: boolean
12- classes ?: Classes
1311 steps ?: MiniBrowserStep [ ]
1412 transition ?: Transition
1513} & React . PropsWithoutRef < JSX . IntrinsicElements [ "div" ] >
@@ -25,12 +23,10 @@ function MiniBrowserWithRef(
2523 backward = false ,
2624 steps : ogSteps ,
2725 transition = "none" ,
28- classes,
2926 ...props
3027 } : MiniBrowserHikeProps ,
3128 ref : React . Ref < HTMLIFrameElement >
3229) {
33- const c = useClasser ( "ch-mini-browser" , classes )
3430 const steps = useSteps ( ogSteps )
3531
3632 const stepIndex = Math . round ( progress )
@@ -42,7 +38,7 @@ function MiniBrowserWithRef(
4238 < MiniFrame
4339 { ...props }
4440 zoom = { zoom }
45- className = { `${ c ( "" ) } ${ props . className || "" } ` }
41+ className = { `ch-mini-browser ${ props . className || "" } ` }
4642 style = { {
4743 ...transitionStyle ( { progress, transition } ) ,
4844 ...props . style ,
Original file line number Diff line number Diff line change 11import React from "react"
22import { FrameButtons } from "../mini-frame"
3- import { Classes } from "../classer"
43
54export { getPanelStyles }
65export type {
@@ -30,7 +29,6 @@ type EditorFrameProps = {
3029 height ?: number
3130 northButton ?: React . ReactNode
3231 southButton ?: React . ReactNode
33- classes ?: Classes
3432 onTabClick ?: ( filename : string ) => void
3533} & React . PropsWithoutRef < JSX . IntrinsicElements [ "div" ] >
3634
You can’t perform that action at this time.
0 commit comments