Skip to content

Commit f7fbfba

Browse files
authored
Merge pull request #2315 from gluestack/release/@gluestack-ui/button@1.0.7
release: @gluestack-ui/button version 1.0.7
2 parents 5b16573 + b56b9cf commit f7fbfba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+905
-406
lines changed

example/storybook-nativewind/.storybook/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const parameters = {
8989
'Hooks',
9090
['useBreakPointValue', 'useMediaQuery'],
9191
'Apps',
92-
['Dashboard App', 'Starter Kit', 'Storybook App'],
92+
['Dashboard App', 'Todo App', 'Starter Kit', 'Storybook App'],
9393
'Guides',
9494
[
9595
'Recipes',

example/storybook-nativewind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@gluestack-style/animation-resolver": "^1.0.4",
3333
"@gluestack-style/react": "^1.0.57",
3434
"@gluestack-ui/config": "^1.1.19",
35-
"@gluestack-ui/themed": "^1.1.39",
35+
"@gluestack-ui/themed": "^1.1.40",
3636
"@gluestack/design-system": "^0.5.36",
3737
"@gorhom/bottom-sheet": "^5.0.0-alpha.10",
3838
"@legendapp/motion": "^2.2.0",
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
3+
export const Expand = () => {
4+
return (
5+
<svg
6+
width="40"
7+
height="40"
8+
viewBox="0 0 40 40"
9+
fill="none"
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
12+
<rect x="0.5" y="0.5" width="39" height="39" rx="19.5" fill="black" />
13+
<path
14+
d="M27.235 21.234H12.765V24.728L8 19.964L12.765 15.199V18.693H27.235V15.199L32 19.964L27.235 24.729V21.234Z"
15+
fill="#FAFAFA"
16+
/>
17+
<rect x="0.5" y="0.5" width="39" height="39" rx="19.5" stroke="#525252" />
18+
</svg>
19+
);
20+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Todo App | gluestack-ui
3+
description: A todo app created using all the components of gluestack-ui v2
4+
toc: false
5+
---
6+
7+
import { Canvas, Meta, Story } from '@storybook/addon-docs';
8+
import Responsiveness from '../../extra-components/nativewind/Responsive';
9+
import { todoapp } from '../../extra-components/nativewind/appConfig';
10+
11+
<Meta title="with-nativewind/Apps/Todo App" />
12+
13+
# Todo App
14+
15+
This [Todo App](https://gluestack-ui-todo-example-app.vercel.app/) is built using `gluestack-ui v2`.
16+
17+
<Responsiveness {...todoapp} showMenuItems={true} />
18+
19+
GitHub link for this [Todo App](https://github.com/gluestack/gluestack-ui-todo-example-app).

example/storybook-nativewind/src/components/Accordion/index.nw.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This is an illustration of **Accordion** component.
5656
}}
5757
metaData={{
5858
code: `
59-
<Accordion {...props} className="m-5 w-[90%]">
59+
<Accordion {...props} className="m-5 w-[90%] border border-outline-200">
6060
<AccordionItem value="a">
6161
<AccordionHeader>
6262
<AccordionTrigger>

example/storybook-nativewind/src/components/Actionsheet/index.nw.stories.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ Demonstrates a common UI pattern known as keyboard handling or keyboard scrollin
540540
const handleClose = () => setShowActionsheet(false);
541541
return (
542542
<>
543-
<Button onPress={handleClose}>
543+
<Button onPress={() => setShowActionsheet(true)}>
544544
<ButtonText>Open</ButtonText>
545545
</Button>
546546
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
@@ -642,7 +642,7 @@ Demonstrates a common UI pattern known as keyboard handling or keyboard scrollin
642642
const handleClose = () => setShowActionsheet(false);
643643
return (
644644
<>
645-
<Button onPress={handleClose}>
645+
<Button onPress={() => setShowActionsheet(true)}>
646646
<ButtonText>Open</ButtonText>
647647
</Button>
648648
<Actionsheet
@@ -754,7 +754,7 @@ The Actionsheet with Icons is a variation of the Actionsheet component that disp
754754
const handleClose = () => setShowActionsheet(false);
755755
return (
756756
<>
757-
<Button onPress={handleClose}>
757+
<Button onPress={() => setShowActionsheet(true)}>
758758
<ButtonText>Open</ButtonText>
759759
</Button>
760760
<Actionsheet isOpen={showActionsheet} onClose={handleClose}>
@@ -843,7 +843,7 @@ The Actionsheet with Virtualized List includes a virtualized list for better per
843843
);
844844
return (
845845
<>
846-
<Button onPress={handleClose}>
846+
<Button onPress={() => setShowActionsheet(true)}>
847847
<ButtonText>Open</ButtonText>
848848
</Button>
849849
<Actionsheet isOpen={showActionsheet} onClose={handleClose} snapPoints={[50]}>
@@ -924,7 +924,7 @@ The Actionsheet with Flat List is a variation of the Actionsheet component that
924924
);
925925
return (
926926
<>
927-
<Button onPress={handleClose}>
927+
<Button onPress={() => setShowActionsheet(true)}>
928928
<ButtonText>Open</ButtonText>
929929
</Button>
930930
<Actionsheet isOpen={showActionsheet} onClose={handleClose}>
@@ -985,7 +985,7 @@ The Actionsheet with SectionList is a variation of the Actionsheet component tha
985985
];
986986
return (
987987
<>
988-
<Button onPress={handleClose}>
988+
<Button onPress={() => setShowActionsheet(true)}>
989989
<ButtonText>Open</ButtonText>
990990
</Button>
991991
<Actionsheet isOpen={showActionsheet} onClose={handleClose} snapPoints={[35]}>
@@ -1050,7 +1050,7 @@ The Actionsheet with SectionList is a variation of the Actionsheet component tha
10501050
const handleClose = () => setShowActionsheet(false);
10511051
return (
10521052
<>
1053-
<Button onPress={handleClose}>
1053+
<Button onPress={() => setShowActionsheet(true)}>
10541054
<ButtonText>Open</ButtonText>
10551055
</Button>
10561056
<Actionsheet isOpen={showActionsheet} onClose={handleClose}>
@@ -1141,7 +1141,7 @@ The Actionsheet with SectionList is a variation of the Actionsheet component tha
11411141
const handleClose = () => setShowActionsheet(false);
11421142
return (
11431143
<>
1144-
<Button onPress={handleClose}>
1144+
<Button onPress={() => setShowActionsheet(true)}>
11451145
<ButtonText>Open</ButtonText>
11461146
</Button>
11471147
<Actionsheet isOpen={showActionsheet} onClose={handleClose}>
@@ -1248,4 +1248,4 @@ The Actionsheet with SectionList is a variation of the Actionsheet component tha
12481248
argsType: {},
12491249
}}
12501250
/>
1251-
</Wrapper> */}
1251+
</Wrapper> */}

example/storybook-nativewind/src/components/AlertDialog/index.nw.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,11 @@ The Examples section provides visual representations of the different variants o
503503
</Button>
504504
<AlertDialog isOpen={showAlertDialog} onClose={handleClose}>
505505
<AlertDialogBackdrop />
506-
<AlertDialogContent className="p-0 max-w-[590px] sm:flex-row border-blue-800 rounded-xl">
507-
<Box className="bg-blue-800 min-w-[123px] items-center justify-center py-4 sm:py-0">
506+
<AlertDialogContent className="p-0 max-w-[590px] sm:flex-row border-primary-800 rounded-xl">
507+
<Box className="bg-primary-600 min-w-[123px] items-center justify-center py-4 sm:py-0">
508508
<Image
509509
source={{
510-
uri: 'https://s3-alpha-sig.figma.com/img/e102/c0d3/7d9780cf2bbdcce3142cbe98fb9c6d6e?Expires=1721001600&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=F1KwdVpm2K7MrffLuDxQzJlkfPWe6E3HADIeukZKEtUJmkMVQcRlmRrY~Q5M0U1o5MYNLA0WbQYLnMar6649gglOHnA1yksN8RbLuD3rg5m3m9sPpRmaxmW7eSKnVVCpyMJ4JeJ2EcjChTWRpaZjVDtJ9yUf5y~Ki-2rgFu1ORK3wgV-endPreugSGcknsvdBSvqT5IW7VwtybYPelxc0lG2vp5QiCIZ1Qiwls7atKY5dZC12E2ToBUEhV1l5N657MDWyFY3CsyJ2ZcnJFkSCldP6Ab4fUAHy43G2TAm4dKAsLbQAEY95m5iMmpTVjJq~Z4R6pvZjbF4TYUmguYaTA__',
510+
uri: 'https://s3-alpha-sig.figma.com/img/e102/c0d3/7d9780cf2bbdcce3142cbe98fb9c6d6e?Expires=1722211200&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=dcv50VxIIiZhgk7eFIXeeXuIB8IvftOJ6AmQNB0aDmgTXSH3Ph1vQHftectHl91sTPpuGXPWh~B0yVfarBPjq8E-m1o4XqGE4E5EMoSraKMLpWbmkbqeHrI43wt1qQPZIy91~VvJnh~j4Srb8SIpVyKUfJ7rGWfn~umxyBBH7C-04kXgt7RYswh61lswlKugYb8BmO7VYijmjcqTHvnnajNGdjCJM9GH5AaZVGjnQaJfY6whJpjbvpu7qjWQwh2NUh6OlBQz74kUVEg8OeuUcwAA5dd6HIY0plf7o3q7Cq5x35J6oUN30HY1TZ9l2b9fg14~EUkA8apLV1XM3Lad-Q__',
511511
}}
512512
alt="image"
513513
className="h-[95px] w-[95px]"

0 commit comments

Comments
 (0)