-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a2a862
commit 89cebde
Showing
18 changed files
with
148 additions
and
44 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 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
2 changes: 1 addition & 1 deletion
2
...omponents/custom/AlertChevron/config.json → ...onents/custom/AlertIconButton/config.json
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,5 +1,5 @@ | ||
{ | ||
"dependencies": { "@gluestack-ui/button": "latest" }, | ||
"componentDependencies": ["AsForwarder"], | ||
"componentDependencies": ["Button"], | ||
"keywords": ["components", "core", "Alert"] | ||
} |
2 changes: 1 addition & 1 deletion
2
.../components/custom/AlertChevron/index.tsx → ...mponents/custom/AlertIconButton/index.tsx
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,3 +1,3 @@ | ||
import { Root } from './styled-components'; | ||
|
||
export const AlertChevron: any = Root; | ||
export const AlertIconButton: any = Root; |
24 changes: 24 additions & 0 deletions
24
packages/native-ui/src/components/custom/AlertIconButton/styled-components/Root.tsx
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,24 @@ | ||
import { styled, Pressable } from '@gluestack-ui/themed'; | ||
|
||
const AlertIconButton = styled( | ||
Pressable, | ||
{ | ||
width: 24, | ||
height: 24, | ||
display: 'flex', | ||
alignContent: 'center', | ||
justifyContent: 'center', | ||
_icon: { | ||
width: 24, | ||
height: 24, | ||
}, | ||
}, | ||
{ | ||
componentName: 'AlertIconButton', | ||
descendantStyle: ['_icon'], | ||
ancestorStyle: ['_iconButton'], | ||
} as const | ||
) as React.ForwardRefExoticComponent<import('react-native').PressableProps & {}> & { | ||
displayName: string; | ||
}; | ||
export default AlertIconButton; |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
packages/native-ui/src/components/custom/AlertLink/config.json
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 @@ | ||
{ | ||
"dependencies": { "@gluestack-ui/button": "latest" }, | ||
"componentDependencies": ["Text", "Pressable", "Icon"], | ||
"keywords": ["components", "core"] | ||
} |
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 { | ||
Root as AlertLink, | ||
Text as AlertLinkText, | ||
Icon as AlertLinkChevron, | ||
} from './styled-components'; |
10 changes: 5 additions & 5 deletions
10
...m/AlertChevron/styled-components/Root.tsx → ...stom/AlertLink/styled-components/Icon.tsx
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,16 +1,16 @@ | ||
import { styled, AsForwarder } from '@gluestack-ui/themed'; | ||
|
||
const AlertChevron = styled( | ||
const AlertLinkChevron = styled( | ||
AsForwarder, | ||
{ | ||
width: 24, | ||
height: 24, | ||
width: 16, | ||
height: 16, | ||
}, | ||
{ | ||
componentName: 'AlertChevron', | ||
componentName: 'AlertLinkChevron', | ||
descendantStyle: [], | ||
ancestorStyle: ['_chevron'], | ||
} as const | ||
); | ||
|
||
export default AlertChevron; | ||
export default AlertLinkChevron; |
20 changes: 20 additions & 0 deletions
20
packages/native-ui/src/components/custom/AlertLink/styled-components/Root.tsx
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,20 @@ | ||
import { styled, Pressable } from '@gluestack-ui/themed'; | ||
|
||
const AlertLink = styled( | ||
Pressable, | ||
{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
flexDirection: 'row', | ||
gap: 4, | ||
}, | ||
{ | ||
componentName: 'AlertLink', | ||
descendantStyle: ['_text', '_chevron'], | ||
ancestorStyle: ['_link'], | ||
} as const | ||
) as React.ForwardRefExoticComponent<import('react-native').PressableProps & {}> & { | ||
displayName: string; | ||
}; | ||
|
||
export default AlertLink; |
18 changes: 18 additions & 0 deletions
18
packages/native-ui/src/components/custom/AlertLink/styled-components/Text.tsx
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,18 @@ | ||
import { styled } from '@gluestack-ui/themed'; | ||
import { Text } from 'react-native'; | ||
|
||
const AlertLinkText = styled( | ||
Text, | ||
{ | ||
fontSize: 16, | ||
lineHeight: 24, | ||
fontFamily: 'WorkSans-SemiBold', | ||
}, | ||
{ | ||
componentName: 'AlertLinkText', | ||
descendantStyle: [], | ||
ancestorStyle: ['_text'], | ||
} as const | ||
); | ||
|
||
export default AlertLinkText; |
3 changes: 3 additions & 0 deletions
3
packages/native-ui/src/components/custom/AlertLink/styled-components/index.tsx
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,3 @@ | ||
export { default as Root } from './Root'; | ||
export { default as Icon } from './Icon'; | ||
export { default as Text } from './Text'; |
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,3 +1,4 @@ | ||
export * from './IconButton'; | ||
export * from './AlertLink'; | ||
export * from './AlertTitle'; | ||
export * from './AlertChevron'; | ||
export * from './AlertIconButton'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
import { createStyle } from '@gluestack-style/react'; | ||
|
||
export const IconButton = createStyle({ | ||
bg: '$primary500', | ||
p: '$2', | ||
rounded: '$full', | ||
}); | ||
export const IconButton = createStyle({}); |