File tree Expand file tree Collapse file tree 4 files changed +32
-26
lines changed
Expand file tree Collapse file tree 4 files changed +32
-26
lines changed Original file line number Diff line number Diff line change 11import { setup } from 'goober' ;
2+ import { shouldForwardProp } from 'goober/should-forward-prop' ;
23import * as React from 'react' ;
34
45import { WizardModule } from './modules' ;
56import { Page , Style } from './modules/common' ;
67
7- setup ( React . createElement ) ;
8+ setup (
9+ React . createElement ,
10+ undefined ,
11+ undefined ,
12+ // Transient props
13+ shouldForwardProp ( ( prop ) => prop [ 0 ] !== '$' ) ,
14+ ) ;
815
916const App = ( ) => {
1017 return (
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const Title = styled('h2')`
1212 }
1313` ;
1414
15- const Item = styled ( 'div' ) < { showDivider : boolean } > `
15+ const Item = styled ( 'div' ) < { $ showDivider : boolean } > `
1616 display: flex;
1717 flex-direction: column;
1818
@@ -22,26 +22,25 @@ const Item = styled('div')<{ showDivider: boolean }>`
2222 background-image: linear-gradient(48.66deg, var(--purple), var(--blue));
2323 width: 100%;
2424 position: relative;
25- height: ${ ( { showDivider } ) => ( showDivider ? '1px' : 0 ) } ;
25+ height: ${ ( { $ showDivider } ) => ( $ showDivider ? '1px' : 0 ) } ;
2626 }
2727
28- ${ ( { showDivider } ) =>
29- showDivider
30- ? `
31- &::after {
32- margin: 3rem 0 2rem;
33- content: '';
34- background-image: linear-gradient(
35- 48.66deg,
36- var(--purple),
37- var(--blue)
38- );
39- width: 100%;
40- position: relative;
41- height: 1px;
42- }
43- `
44- : '' }
28+ ${ ( { $showDivider } ) =>
29+ $showDivider &&
30+ `
31+ &::after {
32+ margin: 3rem 0 2rem;
33+ content: '';
34+ background-image: linear-gradient(
35+ 48.66deg,
36+ var(--purple),
37+ var(--blue)
38+ );
39+ width: 100%;
40+ position: relative;
41+ height: 1px;
42+ }
43+ ` }
4544` ;
4645
4746type Props = {
@@ -61,7 +60,7 @@ const Section: React.FC<Props> = ({
6160 < Title >
6261 { title } < span > { description } </ span >
6362 </ Title >
64- < Item showDivider = { showDivider } > { children } </ Item >
63+ < Item $ showDivider= { showDivider } > { children } </ Item >
6564 </ >
6665 ) ;
6766} ;
Original file line number Diff line number Diff line change 1111 },
1212 "dependencies" : {
1313 "framer-motion" : " ^3.1.1" ,
14- "goober" : " ^2.0.19-next.1 " ,
14+ "goober" : " ^2.0.26 " ,
1515 "react-app-polyfill" : " ^2.0.0" ,
1616 "react-query" : " ^3.5.11"
1717 },
Original file line number Diff line number Diff line change @@ -2500,10 +2500,10 @@ globals@^11.1.0:
25002500 resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
25012501 integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
25022502
2503- goober@^2.0.19-next.1 :
2504- version "2.0.19-next.1 "
2505- resolved "https://registry.yarnpkg.com/goober/-/goober-2.0.19-next.1. tgz#6881ffba6346ed8cabc0872981771de791f855b3 "
2506- integrity sha512-1HlFxG2rYS6cag21p7stYv5f+sa0CQm8TCegcMIffBKDmfN30tLpCN0op4pDh2Xo34pwLe7PFYF6ZZRqovRX5A ==
2503+ goober@^2.0.26 :
2504+ version "2.0.26 "
2505+ resolved "https://registry.yarnpkg.com/goober/-/goober-2.0.26. tgz#e5089ca5e5501e20a850a41949bd92a2441ad994 "
2506+ integrity sha512-YatSB1/vndQaSghgIeIsiG1+pG3+3f4SSy0MaMcjj4OKqe7VQVqCgNbc7TCvaD8FoAi9EpgcBhsTimWuALSi9A ==
25072507
25082508graceful-fs@^4.1.11 :
25092509 version "4.2.4"
You can’t perform that action at this time.
0 commit comments