Skip to content

Commit 5e3cdbc

Browse files
authored
Merge pull request #237 from gluestack/release/@gluestack-ui/[email protected]
release: @gluestack-ui/input version 0.1.1
2 parents 3762840 + 4562516 commit 5e3cdbc

Some content is hidden

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

47 files changed

+617
-230
lines changed

example/storybook/src/components/DataDisplay/Badge/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Badge Component | Installation, Usage, and API
33

4-
description: Badges allow the highlighting of an item’s status. This provides quick recognition.
4+
description: The badge component lets you quickly and easily add status indicators to your interface for improved usability. They are designed to be attention-grabbing and quickly convey important information.
55

66
pageTitle: Badge
77

8-
pageDescription: Badges allow the highlighting of an item’s status. This provides quick recognition.
8+
pageDescription: The badge component lets you quickly and easily add status indicators to your interface for improved usability. They are designed to be attention-grabbing and quickly convey important information.
99

1010
showHeader: true
1111
---

example/storybook/src/components/DataDisplay/Divider/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Divider Component | Installation, Usage, and API
33

4-
description: Divider can visually separate content in a given list or group.
4+
description: Revamp your content organization with the Divider component! Use it to visually separate different sections of a list or group for a more structured and easy-to-read interface.
55

66
pageTitle: Divider
77

8-
pageDescription: Divider can visually separate content in a given list or group.
8+
pageDescription: Revamp your content organization with the Divider component! Use it to visually separate different sections of a list or group for a more structured and easy-to-read interface.
99

1010
showHeader: true
1111
---

example/storybook/src/components/Disclosure/Actionsheet/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Actionsheet Component | Installation, Usage, and API
33

4-
description: The ActionSheet is a UI element that displays a list of options or actions. It's commonly used in mobile apps to provide a contextual menu of actions. The component appears as a modal dialog that slides up from the bottom of the screen and can be customized with different styles and triggers.
4+
description: The Actionsheet component presents a set of options to the user, overlaid on top of the app's content, allowing them to take quick actions without leaving the current page or view.
55

66
pageTitle: Actionsheet
77

8-
pageDescription: An Actionsheet is a dialog that displays a set of options. It appears on top of the app's content.
8+
pageDescription: The Actionsheet component presents a set of options to the user, overlaid on top of the app's content, allowing them to take quick actions without leaving the current page or view.
99

1010
showHeader: true
1111
---

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Slider Alert | Installation, Usage, and API
33

4-
description: Alerts convey a state that can influence a system, feature, or page.
4+
description: Alerts are used to communicate the status of a system, feature, or page. They indicate a specific state that may require attention from the user.
55

66
pageTitle: Alert
77

8-
pageDescription: Alerts convey a state that can influence a system, feature, or page.
8+
pageDescription: Alerts are used to communicate the status of a system, feature, or page. They indicate a specific state that may require attention from the user.
99

1010
showHeader: true
1111
---

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Progress Component | Installation, Usage, and API
33

4-
description: Progress helps show the progress status for a time-consuming task that consists of several steps.
4+
description: The Progress component is designed to display the progress of a task that involves multiple steps and takes some time to complete. It helps users stay informed about the current status of a lengthy process.
55

66
pageTitle: Progress
77

8-
pageDescription: Progress helps show the progress status for a time-consuming task that consists of several steps.
8+
pageDescription: The Progress component is designed to display the progress of a task that involves multiple steps and takes some time to complete. It helps users stay informed about the current status of a lengthy process.
99

1010
showHeader: true
1111
---

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Spinner Component | Installation, Usage, and API
33

4-
description: Spinners gives visual cues to actions that are processing or awaiting a course change or results.
4+
description: Spinners are designed to give visual cues to users that an action is being processed or that a change or result is expected. They are useful for improving the user experience by reducing frustration and uncertainty.
55

66
pageTitle: Spinner
77

8-
pageDescription: Spinners gives visual cues to actions that are processing or awaiting a course change or results.
8+
pageDescription: Spinners are designed to give visual cues to users that an action is being processed or that a change or result is expected. They are useful for improving the user experience by reducing frustration and uncertainty.
99

1010
showHeader: true
1111
---

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Toast Component | Installation, Usage, and API
33

4-
description: Toast displays alerts on top of an overlay.
4+
description: Toast is a component that can display alerts, notifications, or messages on top of an overlay layer. It is commonly used to inform users of important information or actions.
55

66
pageTitle: Toast
77

8-
pageDescription: Toast displays alerts on top of an overlay.
8+
pageDescription: Toast is a component that can display alerts, notifications, or messages on top of an overlay layer. It is commonly used to inform users of important information or actions.
99

1010
showHeader: true
1111
---

example/storybook/src/components/Forms/Button/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Button Component | Installation, Usage, and API
33

4-
description: The Button component triggers an event or an action.
4+
description: A button component is a graphical user interface element that enables users to act by clicking or tapping. It can be customized in size, shape, color, and behavior to fit the design of the application or website.
55

66
pageTitle: Button
77

8-
pageDescription: The Button component triggers an event or an action.
8+
pageDescription: A button component is a graphical user interface element that enables users to act by clicking or tapping. It can be customized in size, shape, color, and behavior to fit the design of the application or website.
99

1010
showHeader: true
1111
---

example/storybook/src/components/Forms/Checkbox/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui Checkbox Component | Installation, Usage, and API
33

4-
description: The Checkbox component allows a user to select multiple values from various options in a form.
4+
description: Whether you're building a simple form or a complex data collection system, the Checkbox component offers a user-friendly way for users to select multiple options from a list.
55

66
pageTitle: Checkbox
77

8-
pageDescription: The Checkbox component allows a user to select multiple values from various options in a form.
8+
pageDescription: Whether you're building a simple form or a complex data collection system, the Checkbox component offers a user-friendly way for users to select multiple options from a list.
99

1010
showHeader: true
1111
---

example/storybook/src/components/Forms/FormControl/index.stories.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: gluestack-ui FormControl Component | Installation, Usage, and API
33

4-
description: FormControl is used to form elements by providing context such as isInvalid, isDisabled, and isRequired.
4+
description: By using FormControl, developers can provide important context to form elements. This context can include whether the element is invalid, disabled, or required.
55

66
pageTitle: FormControl
77

8-
pageDescription: FormControl is used to form elements by providing context such as isInvalid, isDisabled, and isRequired.
8+
pageDescription: By using FormControl, developers can provide important context to form elements. This context can include whether the element is invalid, disabled, or required.
99

1010
showHeader: true
1111
---

example/storybook/src/components/Forms/Input/Input.stories.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ComponentMeta } from '@storybook/react-native';
22
import { InputStory as Input } from './Input';
3+
import { InputStory as InputIcon } from './InputIcon';
34

45
const MyInputMeta: ComponentMeta<typeof Input> = {
56
title: 'stories/FORMS/Input',
@@ -27,4 +28,4 @@ const MyInputMeta: ComponentMeta<typeof Input> = {
2728

2829
export default MyInputMeta;
2930

30-
export { Input };
31+
export { Input, InputIcon };
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
import React from 'react';
22
import Wrapper from '../../Wrapper';
3-
import { Center, Input } from '../../../ui-components';
3+
import { Input, Center } from '../../../ui-components';
44

5-
export const InputStory = ({
6-
// variant,
7-
// isInvalid,
8-
// isDisabled,
9-
// size,
10-
...props
11-
}: any) => {
12-
const [value, setValue] = React.useState('Some Random Text');
5+
const InputStory = ({ ...props }: any) => {
6+
const [value, setValue] = React.useState('');
137

148
return (
159
<Wrapper>
16-
<Center justifyContent="center" w="50%" alignItems="center">
10+
<Center justifyContent="center" w="50%" alignItems="center" h={300}>
1711
<Input {...props}>
1812
<Input.Input
1913
onChange={(e: any) => {
2014
setValue(e.nativeEvent.text);
2115
}}
2216
value={value}
2317
placeholder="Enter Text here"
24-
placeholderTextColor={'$textLight900'}
2518
/>
2619
</Input>
2720
</Center>
2821
</Wrapper>
2922
);
3023
};
3124

32-
export { Input };
25+
export { InputStory, Input, Center };
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import React from 'react';
2+
import Wrapper from '../../Wrapper';
3+
import { Input, VStack, Icon, SearchIcon } from '../../../ui-components';
4+
5+
const InputStory = ({ ...props }: any) => {
6+
const [value, setValue] = React.useState('');
7+
8+
return (
9+
<Wrapper>
10+
<VStack
11+
justifyContent="center"
12+
w="50%"
13+
alignItems="center"
14+
h={300}
15+
space="md"
16+
>
17+
<Input {...props} size="sm">
18+
<Input.Input
19+
onChange={(e: any) => {
20+
setValue(e.nativeEvent.text);
21+
}}
22+
value={value}
23+
placeholder="Enter Text here"
24+
/>
25+
<Input.Icon pr="$4">
26+
<Icon as={SearchIcon} />
27+
</Input.Icon>
28+
</Input>
29+
30+
<Input {...props} size="md">
31+
<Input.Input
32+
onChange={(e: any) => {
33+
setValue(e.nativeEvent.text);
34+
}}
35+
value={value}
36+
placeholder="Enter Text here"
37+
/>
38+
<Input.Icon pr="$4">
39+
<Icon as={SearchIcon} />
40+
</Input.Icon>
41+
</Input>
42+
43+
<Input {...props} size="lg" isDisabled>
44+
<Input.Input
45+
onChange={(e: any) => {
46+
setValue(e.nativeEvent.text);
47+
}}
48+
value={value}
49+
placeholder="Enter Text here"
50+
/>
51+
<Input.Icon pr="$4">
52+
<Icon as={SearchIcon} />
53+
</Input.Icon>
54+
</Input>
55+
56+
<Input {...props} size="xl" isInvalid>
57+
<Input.Input
58+
onChange={(e: any) => {
59+
setValue(e.nativeEvent.text);
60+
}}
61+
value={value}
62+
placeholder="Enter Text here"
63+
/>
64+
<Input.Icon pr="$4">
65+
<Icon as={SearchIcon} />
66+
</Input.Icon>
67+
</Input>
68+
</VStack>
69+
</Wrapper>
70+
);
71+
};
72+
73+
export { InputStory, Input, VStack, Icon, SearchIcon };

0 commit comments

Comments
 (0)