mirror of
https://github.com/alexgo-io/onekey-monorepo.git
synced 2026-01-12 22:43:26 +08:00
Dialog styles & arrow right icon (#3729)
* segmentcontrol ui & loading prop for add-ons of Input * dialog styles & arrow right icon
This commit is contained in:
@@ -126,7 +126,7 @@ function DialogFrame({
|
||||
const keyboardHeight = useKeyboardHeight();
|
||||
|
||||
const content = (
|
||||
<Stack p="$5" pb={bottom || '$5'}>
|
||||
<Stack {...(bottom && { pb: bottom })}>
|
||||
{icon && (
|
||||
<Stack
|
||||
p="$3"
|
||||
@@ -140,7 +140,7 @@ function DialogFrame({
|
||||
/>
|
||||
</Stack>
|
||||
)}
|
||||
<XStack alignItems="flex-start">
|
||||
<XStack alignItems="flex-start" p="$5">
|
||||
<Stack flex={1} pr="$2.5">
|
||||
{title && (
|
||||
<Text variant="$headingXl" py="$px">
|
||||
@@ -159,11 +159,11 @@ function DialogFrame({
|
||||
onPress={handleCancelButtonPress}
|
||||
/>
|
||||
</XStack>
|
||||
{renderContent && <YStack pt="$5">{renderContent}</YStack>}
|
||||
{renderContent && <YStack px="$5" pb="$5">{renderContent}</YStack>}
|
||||
{renderFooter !== undefined ? (
|
||||
renderFooter
|
||||
) : (
|
||||
<XStack justifyContent="center" pt="$5">
|
||||
<XStack p="$5" pt="$0">
|
||||
<Button
|
||||
flex={1}
|
||||
$md={{
|
||||
|
||||
@@ -138,6 +138,7 @@ const icons = {
|
||||
ArrowPathLeftOutline: () => import("./react/outline/ArrowPathLeft"),
|
||||
ArrowPathRightOutline: () => import("./react/outline/ArrowPathRight"),
|
||||
ArrowPathUpOutline: () => import("./react/outline/ArrowPathUp"),
|
||||
ArrowRightOutline: () => import("./react/outline/ArrowRight"),
|
||||
ArrowRightCircleOutline: () => import("./react/outline/ArrowRightCircle"),
|
||||
ArrowTopOutline: () => import("./react/outline/ArrowTop"),
|
||||
ArrowTopCircleOutline: () => import("./react/outline/ArrowTopCircle"),
|
||||
@@ -922,6 +923,7 @@ const icons = {
|
||||
ArrowPathLeftSolid: () => import("./react/solid/ArrowPathLeft"),
|
||||
ArrowPathRightSolid: () => import("./react/solid/ArrowPathRight"),
|
||||
ArrowPathUpSolid: () => import("./react/solid/ArrowPathUp"),
|
||||
ArrowRightSolid: () => import("./react/solid/ArrowRight"),
|
||||
ArrowRightCircleSolid: () => import("./react/solid/ArrowRightCircle"),
|
||||
ArrowTopSolid: () => import("./react/solid/ArrowTop"),
|
||||
ArrowTopCircleSolid: () => import("./react/solid/ArrowTopCircle"),
|
||||
|
||||
12
packages/components/src/Icon/react/outline/ArrowRight.tsx
Normal file
12
packages/components/src/Icon/react/outline/ArrowRight.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import Svg, { SvgProps, Path } from 'react-native-svg';
|
||||
const SvgArrowRight = (props: SvgProps) => (
|
||||
<Svg fill="none" viewBox="0 0 24 24" accessibilityRole="image" {...props}>
|
||||
<Path
|
||||
fill="currentColor"
|
||||
fillRule="evenodd"
|
||||
d="m18.375 13.04-4.293 4.292a1 1 0 0 0 1.414 1.414l4.586-4.585a3 3 0 0 0 0-4.243l-4.586-4.586a1 1 0 1 0-1.414 1.414l4.293 4.293H4.039a1 1 0 0 0 0 2h14.336Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
);
|
||||
export default SvgArrowRight;
|
||||
@@ -53,6 +53,7 @@ export { default as ArrowPathLeft } from './ArrowPathLeft';
|
||||
export { default as ArrowPathRight } from './ArrowPathRight';
|
||||
export { default as ArrowPathUp } from './ArrowPathUp';
|
||||
export { default as ArrowRightCircle } from './ArrowRightCircle';
|
||||
export { default as ArrowRight } from './ArrowRight';
|
||||
export { default as ArrowTopCircle } from './ArrowTopCircle';
|
||||
export { default as ArrowTopLeft } from './ArrowTopLeft';
|
||||
export { default as ArrowTopRight } from './ArrowTopRight';
|
||||
|
||||
12
packages/components/src/Icon/react/solid/ArrowRight.tsx
Normal file
12
packages/components/src/Icon/react/solid/ArrowRight.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import Svg, { SvgProps, Path } from 'react-native-svg';
|
||||
const SvgArrowRight = (props: SvgProps) => (
|
||||
<Svg fill="none" viewBox="0 0 24 24" accessibilityRole="image" {...props}>
|
||||
<Path
|
||||
fill="currentColor"
|
||||
fillRule="evenodd"
|
||||
d="m18.375 13.04-4.293 4.292a1 1 0 0 0 1.414 1.414l4.586-4.585a3 3 0 0 0 0-4.243l-4.586-4.586a1 1 0 1 0-1.414 1.414l4.293 4.293H4.039a1 1 0 0 0 0 2h14.336Z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
);
|
||||
export default SvgArrowRight;
|
||||
@@ -53,6 +53,7 @@ export { default as ArrowPathLeft } from './ArrowPathLeft';
|
||||
export { default as ArrowPathRight } from './ArrowPathRight';
|
||||
export { default as ArrowPathUp } from './ArrowPathUp';
|
||||
export { default as ArrowRightCircle } from './ArrowRightCircle';
|
||||
export { default as ArrowRight } from './ArrowRight';
|
||||
export { default as ArrowTopCircle } from './ArrowTopCircle';
|
||||
export { default as ArrowTopLeft } from './ArrowTopLeft';
|
||||
export { default as ArrowTopRight } from './ArrowTopRight';
|
||||
|
||||
5
packages/components/svg/outline/arrow-right.svg
Normal file
5
packages/components/svg/outline/arrow-right.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" fill-rule="evenodd"
|
||||
d="m18.375 13.04-4.293 4.292a1 1 0 0 0 1.414 1.414l4.586-4.585a3 3 0 0 0 0-4.243l-4.586-4.586a1 1 0 1 0-1.414 1.414l4.293 4.293H4.039a1 1 0 0 0 0 2h14.336Z"
|
||||
clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 338 B |
5
packages/components/svg/solid/arrow-right.svg
Normal file
5
packages/components/svg/solid/arrow-right.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" fill-rule="evenodd"
|
||||
d="m18.375 13.04-4.293 4.292a1 1 0 0 0 1.414 1.414l4.586-4.585a3 3 0 0 0 0-4.243l-4.586-4.586a1 1 0 1 0-1.414 1.414l4.293 4.293H4.039a1 1 0 0 0 0 2h14.336Z"
|
||||
clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 338 B |
@@ -105,7 +105,7 @@ const InputGallery = () => (
|
||||
},
|
||||
},
|
||||
{
|
||||
iconName: 'TouchIdOutline',
|
||||
iconName: 'ArrowRightOutline',
|
||||
onPress: () => {
|
||||
console.log('clicked');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user