Skip to content

Commit cc7e1a1

Browse files
authored
Merge pull request #281 from gluestack/release/@gluestack-ui/[email protected]
Release/@gluestack UI/[email protected]
2 parents 7dff26b + 70c82b6 commit cc7e1a1

File tree

12 files changed

+347
-96
lines changed

12 files changed

+347
-96
lines changed

example/storybook/src/components/Feedback/Alert/index.stories.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ The Examples section provides visual representations of the different variants o
110110
111111
#### Alert Variants
112112
113+
Alert allows you to show the type of variant such as `info`, `success`, `error`, `warning`, and `muted`.
114+
113115
<AppProvider>
114116
<CodePreview
115117
showComponentRenderer={true}

example/storybook/src/components/Overlay/Popover/index.stories.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ It inherits all the properties of React Native's [View](https://reactnative.dev/
338338
</Table.TD>
339339
<Table.TD>
340340
<Table.TText>
341-
Determines whether menu content should overlap with the trigger.
341+
Determines whether popover content should overlap with the
342+
trigger.
342343
</Table.TText>
343344
</Table.TD>
344345
</Table.TR>

example/storybook/src/components/Overlay/Tooltip/Tooltip.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ const MyTooltipMeta: ComponentMeta<typeof Tooltip> = {
99
control: 'select',
1010
options: [
1111
'bottom',
12-
'bottom-end',
13-
'bottom-start',
12+
'bottom left',
13+
'bottom right',
1414
'top',
15-
'top-end',
16-
'top-start',
15+
'top left',
16+
'top right',
1717
'left',
18-
'left-end',
19-
'left-start',
18+
'left top',
19+
'left bottom',
2020
'right',
21-
'right-end',
22-
'right-start',
21+
'right top',
22+
'right bottom',
2323
],
2424
},
2525
},

example/storybook/src/components/Overlay/Tooltip/Tooltip.tsx

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,22 @@ export const TooltipStory = ({
88
}: any) => {
99
return (
1010
<Wrapper>
11-
<Tooltip
12-
placement={placement}
13-
trigger={(triggerProps: any) => {
14-
return (
15-
<Center>
11+
<Center w={500} h={500}>
12+
<Tooltip
13+
placement={placement}
14+
trigger={(triggerProps: any) => {
15+
return (
1616
<Button {...triggerProps}>
1717
<Button.Text>More</Button.Text>
1818
</Button>
19-
</Center>
20-
);
21-
}}
22-
>
23-
<Tooltip.Content>
24-
<Text
25-
sx={{
26-
color: '$white',
27-
px: '$2',
28-
py: '$1',
29-
fontSize: 12,
30-
}}
31-
>
32-
{text}
33-
</Text>
34-
</Tooltip.Content>
35-
</Tooltip>
19+
);
20+
}}
21+
>
22+
<Tooltip.Content>
23+
<Text>{text}</Text>
24+
</Tooltip.Content>
25+
</Tooltip>
26+
</Center>
3627
</Wrapper>
3728
);
3829
};

0 commit comments

Comments
 (0)