Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: doc updates #2515

Merged
merged 60 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
c8e6e39
Fixes #2450
FezVrasta Sep 10, 2024
c8277da
add a preventScroll property
FezVrasta Sep 18, 2024
6183337
missing semicolon
FezVrasta Sep 18, 2024
e5db410
:shrug:
FezVrasta Sep 18, 2024
2eb0c40
remove unused import
FezVrasta Sep 18, 2024
a5e1b2e
Merge pull request #2462 from FezVrasta/actionsheet-scroll-prevent
Viraj-10 Sep 19, 2024
2902372
feat: added types and updated docs
Viraj-10 Sep 19, 2024
c463dc8
Merge pull request #2480 from gluestack/feat/prevent-scroll-actionshe…
Viraj-10 Sep 19, 2024
7482155
chore: @gluestack-ui/actionsheet version bump to 0.2.45
Viraj-10 Sep 19, 2024
d2d5ea0
Merge pull request #2481 from gluestack/release/@gluestack-ui/actions…
Viraj-10 Sep 19, 2024
e6dc006
Merge pull request #2482 from gluestack/main
Viraj-10 Sep 19, 2024
2d62478
feat: updated prop position
Viraj-10 Sep 19, 2024
35e6cba
Merge pull request #2483 from gluestack/release/@gluestack-ui/actions…
Viraj-10 Sep 19, 2024
4b767a9
Merge pull request #2484 from gluestack/main
Viraj-10 Sep 19, 2024
25f0b5c
fix: tooltip content 2 times rendering issue
rajat693 Sep 20, 2024
c061d7c
fix: reverted opacity change for initialAnimatedStyles
rajat693 Sep 23, 2024
d137e0e
Merge pull request #2485 from gluestack/fix/tooltip-content
rajat693 Sep 23, 2024
749a00a
chore: patch bump of tooltip
rajat693 Sep 23, 2024
5bbf31e
Merge pull request #2486 from gluestack/release/tooltip-content
gluestackadmin Sep 23, 2024
c19efce
Merge pull request #2487 from gluestack/main
rajat693 Sep 23, 2024
da7e444
fix: demos for all components page
rajat693 Sep 24, 2024
36163ec
fix: formControl invalid state
rajat693 Sep 24, 2024
3f436a1
Merge pull request #2488 from gluestack/fix/all-components-demo
rajat693 Sep 24, 2024
36ade62
chore: update README.md of nativewind/utils
shoma-mano Sep 25, 2024
4bb3764
Merge pull request #2489 from shoma-mano/main
Viraj-10 Sep 25, 2024
d7972c6
Merge pull request #2490 from gluestack/main
Viraj-10 Sep 25, 2024
17a9287
feat: added note for grid and menu component
rajat693 Sep 25, 2024
04a63d8
fix: added readme fixes for nw-utils
sra1kumar-NULL Sep 25, 2024
d44e824
Merge pull request #2491 from gluestack/feat/note
gluestackadmin Sep 25, 2024
775caec
fix: minor fix
sra1kumar-NULL Sep 26, 2024
2e5326d
Merge pull request #2492 from gluestack/fix/readme-nwutils
Viraj-10 Sep 26, 2024
f2cad94
fix: added expo html element dependancy for actionsheet
Viraj-10 Sep 26, 2024
ee316b8
Update README.md
Viraj-10 Sep 30, 2024
a7ec7ec
Merge pull request #2496 from gluestack/main
Viraj-10 Sep 30, 2024
84c4d96
fix: docs of tab component
Viraj-10 Sep 30, 2024
5310e4f
fix: updated grid hook path
Viraj-10 Oct 1, 2024
d720be9
feat: updated config
vaibhk20 Oct 3, 2024
a897ce1
fix: docs updated
vaibhk20 Oct 3, 2024
d6f781c
Merge pull request #2499 from gluestack/feat/dependency-config
gluestackadmin Oct 3, 2024
614459d
feat: refactor
vaibhk20 Oct 3, 2024
94633be
Merge pull request #2500 from gluestack/feat/dependency-config
gluestackadmin Oct 3, 2024
04a977d
fix: tailwindcss/plugin import
rajat693 Oct 4, 2024
7d48982
Merge pull request #2501 from gluestack/fix/tailwind-plugin
rajat693 Oct 4, 2024
b257bfe
chore: version bump to 1.0.25
Viraj-10 Oct 4, 2024
0352d4d
fix: added support for useRNModal in alert-dialog and some UI fixes i…
rajat693 Oct 4, 2024
cd764f3
Merge pull request #2502 from gluestack/fix/alert-dialog-useRNModal
Viraj-10 Oct 4, 2024
7342bfa
fix: react-native-svg version to latest because it was breaking in an…
rajat693 Oct 4, 2024
fff51d1
chore: patch bump of alert-dialog
rajat693 Oct 4, 2024
5a08c01
Merge pull request #2504 from gluestack/release/alert-dialog-useRNModal
gluestackadmin Oct 4, 2024
7ee97bf
Merge pull request #2505 from gluestack/main
rajat693 Oct 4, 2024
ca04657
Merge pull request #2503 from gluestack/fix/rn-svg
Viraj-10 Oct 7, 2024
520838d
feat: added note
vaibhk20 Oct 8, 2024
860c904
fix: added size='none' and border width calculation issue in grid
rajat693 Oct 10, 2024
fa808c5
Merge pull request #2508 from gluestack/fix/grid-image
Viraj-10 Oct 10, 2024
ec3ef13
fix: inputField examples
vaibhk20 Oct 10, 2024
9fde629
fix: default tooltip and modal examples, breaking on native
rajat693 Oct 10, 2024
0949336
Merge pull request #2510 from gluestack/fix/modal-tooltip
Viraj-10 Oct 10, 2024
5eb5067
fix: new dependency
vaibhk20 Oct 15, 2024
b9bf85e
Merge branch 'patch' of https://github.com/gluestack/gluestack-ui int…
vaibhk20 Oct 15, 2024
2a39888
Merge branch 'feat/nativewind-4.1-support' into feat/windows-support-…
Viraj-10 Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ We welcome contributions to the `gluestack-ui`. If you have an idea for a new co

## License

Licensed under the MIT License, Copyright © 2023 GeekyAnts. See [LICENSE](https://github.com/gluestack/gluestack-ui/blob/main/LICENSE) for more information.
Licensed under the MIT License, Copyright © 2024 GeekyAnts. See [LICENSE](https://github.com/gluestack/gluestack-ui/blob/main/LICENSE) for more information.
2 changes: 1 addition & 1 deletion example/storybook-nativewind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@gluestack-style/animation-resolver": "^1.0.4",
"@gluestack-style/react": "^1.0.57",
"@gluestack-ui/config": "^1.1.19",
"@gluestack-ui/themed": "^1.1.51",
"@gluestack-ui/themed": "^1.1.54",
"@gluestack/design-system": "^0.5.36",
"@gorhom/bottom-sheet": "^5.0.0-alpha.10",
"@legendapp/motion": "^2.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,24 @@ It inherits all the properties of React Native's [View](https://reactnative.dev/
</Table.TText>
</Table.TD>
</Table.TR>
<Table.TR>
<Table.TD>
<Table.TText>
<InlineCode>preventScroll</InlineCode>
</Table.TText>
</Table.TD>
<Table.TD>
<Table.TText>boolean</Table.TText>
</Table.TD>
<Table.TD>
<Table.TText>true</Table.TText>
</Table.TD>
<Table.TD>
<Table.TText>
{`If true, scroll will be prevented when the Actionsheet is open.`}
</Table.TText>
</Table.TD>
</Table.TR>
</Table.TBody>
</Table>
</TableContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This is an illustration of **Badge** component.
action: {
control: 'select',
options: ['error', 'warning', 'success', 'info', 'muted'],
default: 'success',
default: 'muted',
},
},
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const FormControlMeta: ComponentMeta<typeof FormControl> = {
},
},
args: {
isInvalid: true,
isRequired: true,
isInvalid: false,
isRequired: false,
isDisabled: false,
size: 'md',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,60 @@ import {
FormControlErrorIcon,
FormControlErrorText,
} from '@/components/ui/form-control';
import { AlertCircleIcon } from 'lucide-react-native';
import { AlertCircleIcon } from '@/components/ui/icon';
import { Input, InputField } from '@/components/ui/input';
import { Button, ButtonText } from '@/components/ui/button';
import { VStack } from '@/components/ui/vstack';

const FormControlBasic = ({ isInvalid: propsIsInvalid, ...props }: any) => {
const [isInvalid, setIsInvalid] = React.useState(propsIsInvalid);
const [inputValue, setInputValue] = React.useState('12345');

const handleSubmit = () => {
if (inputValue.length < 6) {
setIsInvalid(true);
} else {
setIsInvalid(false);
}
};

React.useEffect(() => {
setIsInvalid(propsIsInvalid);
}, [propsIsInvalid]);

const FormControlBasic = ({ ...props }: any) => {
return (
<FormControl {...props}>
<FormControlLabel>
<FormControlLabelText>Password</FormControlLabelText>
</FormControlLabel>
<Input>
<InputField
type="password"
defaultValue="12345"
placeholder="password"
/>
</Input>

<FormControlHelper>
<FormControlHelperText>
Must be atleast 6 characters.
</FormControlHelperText>
</FormControlHelper>

<FormControlError>
<FormControlErrorIcon as={AlertCircleIcon} />
<FormControlErrorText>
Atleast 6 characters are required.
</FormControlErrorText>
</FormControlError>
</FormControl>
<VStack className="w-full max-w-[300px] rounded-md border border-background-200 p-4">
<FormControl isInvalid={isInvalid} {...props}>
<FormControlLabel>
<FormControlLabelText>Password</FormControlLabelText>
</FormControlLabel>
<Input className="my-1" size={props.size}>
<InputField
type="password"
placeholder="password"
value={inputValue}
onChangeText={(text) => setInputValue(text)}
/>
</Input>

<FormControlHelper>
<FormControlHelperText>
Must be atleast 6 characters.
</FormControlHelperText>
</FormControlHelper>

<FormControlError>
<FormControlErrorIcon as={AlertCircleIcon} />
<FormControlErrorText>
Atleast 6 characters are required.
</FormControlErrorText>
</FormControlError>
</FormControl>

<Button className="w-fit self-end mt-4" size="sm" onPress={handleSubmit}>
<ButtonText>Submit</ButtonText>
</Button>
</VStack>
);
};

Expand Down
Loading
Loading