-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove moti, move classname on data-, add postprocessor
- Loading branch information
Lionel Bertrand
committed
Aug 24, 2023
1 parent
a06ac12
commit c1d62fd
Showing
20 changed files
with
112 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
module.exports = { | ||
/** @type {import('postcss-load-config').Config} */ | ||
const config = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
'tailwindcss': {}, | ||
'autoprefixer': {}, | ||
'modify-selectors': { | ||
enable: true, | ||
modify: [ | ||
{ | ||
match: '*', | ||
with: (selector) => { | ||
const regEx = new RegExp('^\\.', 'g'); | ||
if (selector.match(regEx)) { | ||
return `${selector}, [data-class-name~="${selector.replace( | ||
regEx, | ||
'' | ||
)}"]`; | ||
} | ||
return selector; | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,14 @@ | ||
import { YBox, Heading, Text, Button, Input, Select } from '@crossed/ui'; | ||
import { YBox, Heading, Text, Button } from '@crossed/ui'; | ||
|
||
export default function TabOneScreen() { | ||
return ( | ||
<YBox space="lg"> | ||
<Heading order={3}>Heading</Heading> | ||
<Text className="text-white">Text</Text> | ||
<Button variant={'filled'} color="rose"> | ||
<Button variant={'filled'}> | ||
<Button.Text>Press</Button.Text> | ||
</Button> | ||
<Input label="Test" /> | ||
<Select> | ||
<Select.Label>Size</Select.Label> | ||
<Select.Content> | ||
<Select.Option value={'xs'}> | ||
<Text>xs</Text> | ||
</Select.Option> | ||
<Select.Option value={'sm'}> | ||
<Text>sm</Text> | ||
</Select.Option> | ||
<Select.Option value={'md'}> | ||
<Text>md</Text> | ||
</Select.Option> | ||
{/* <Select.Option value={'sm'}>sm</Select.Option> | ||
<Select.Option value={'md'}>md</Select.Option> | ||
<Select.Option value={'lg'}>lg</Select.Option> | ||
<Select.Option value={'xl'}>xl</Select.Option> */} | ||
</Select.Content> | ||
</Select> | ||
{/* <Input label="Test" /> */} | ||
</YBox> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,6 @@ | |
"src/" | ||
], | ||
"peerDependencies": { | ||
"moti": "^0.26.0", | ||
"react-native-reanimated": "^3.4.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import tw from 'twrnc'; | ||
|
||
export class StyleSheet { | ||
static create(baseClassName: string) { | ||
return tw.style(baseClassName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class StyleSheet { | ||
static create(baseClassName: string) { | ||
return baseClassName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.