This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +22
-13
lines changed
Expand file tree Collapse file tree 5 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 1- import { E2ETest } from '@/component/style-create.css ' ;
2- import { Conflict } from '@/component/style-not-conflict.css ' ;
1+ import { E2ETest } from '@/component/style-create' ;
2+ import { Conflict } from '@/component/style-not-conflict' ;
33import Link from 'next/link' ;
4+ import cssx from 'typedcssx' ;
5+
6+ const css = cssx . create ( {
7+ page : {
8+ color : 'orange' ,
9+ } ,
10+ } ) ;
11+
412export default function Home ( ) {
513 return (
614 < main >
715 < h1 > Typed CSS X E2E Test</ h1 >
16+ < h2 className = { css . page } > page.tsx in cssx</ h2 >
817 < Link href = "/server" > Server Page</ Link >
918 < E2ETest />
1019 < Conflict />
Original file line number Diff line number Diff line change 1- import { ServerComponent } from '@/component/style-server-component.css ' ;
1+ import { ServerComponent } from '@/component/style-server-component' ;
22import Link from 'next/link' ;
33
44export default function Page ( ) {
Original file line number Diff line number Diff line change 11'use client' ;
22
3- import Style , { max_lg } from 'typedcssx' ;
3+ import cssx , { max_lg } from 'typedcssx' ;
44
5- const styles = Style . create ( {
5+ const css = cssx . create ( {
66 e2e : {
77 color : 'pink' ,
88 [ max_lg ] : {
@@ -11,15 +11,15 @@ const styles = Style.create({
1111 } ,
1212} ) ;
1313
14- Style . global ( {
14+ cssx . global ( {
1515 h1 : {
1616 color : 'aqua' ,
1717 } ,
1818} ) ;
1919
2020export function E2ETest ( ) {
2121 return (
22- < div className = { styles . e2e } data-testid = "e2e-test-div" >
22+ < div className = { css . e2e } data-testid = "e2e-test-div" >
2323 Component-attach-class and Responsive-design test
2424 </ div >
2525 ) ;
Original file line number Diff line number Diff line change 11'use client' ;
22
3- import Style from 'typedcssx' ;
3+ import cssx from 'typedcssx' ;
44
5- const styles = Style . create ( {
5+ const css = cssx . create ( {
66 test_conflict : {
77 fontSize : 14 ,
88 color : 'pink' ,
@@ -11,7 +11,7 @@ const styles = Style.create({
1111
1212export function Conflict ( ) {
1313 return (
14- < span className = { styles . test_conflict } data-testid = "e2e-test-span" >
14+ < span className = { css . test_conflict } data-testid = "e2e-test-span" >
1515 Not conflict test
1616 </ span >
1717 ) ;
Original file line number Diff line number Diff line change 1- import Style from 'typedcssx' ;
1+ import cssx from 'typedcssx' ;
22
3- const styles = Style . create ( {
3+ const css = cssx . create ( {
44 test_server : {
55 color : 'green' ,
66 } ,
77} ) ;
88
99export const ServerComponent = ( ) => {
1010 return (
11- < p className = { styles . test_server } data-testid = "e2e-test-p" >
11+ < p className = { css . test_server } data-testid = "e2e-test-p" >
1212 ServerComponent
1313 </ p >
1414 ) ;
You can’t perform that action at this time.
0 commit comments