Skip to content

Commit f18d1a8

Browse files
Viraj Ajay JoshiViraj Ajay Joshi
authored andcommitted
Merge branch 'patch' of github.com:gluestack/gluestack-ui into patch
2 parents d57522c + 0aaf8e5 commit f18d1a8

File tree

281 files changed

+832
-565
lines changed

Some content is hidden

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

281 files changed

+832
-565
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { DocsContainer } from '@storybook/addon-docs/blocks';
33
import { OverlayProvider } from '@gluestack-ui/overlay';
44
import { ToastProvider } from '@gluestack-ui/toast';
55

6-
import { GluestackUIProvider as GluestackUIWithNativewindProvider } from '../src/components-example/nativewind/GluestackUIProvider';
6+
import { GluestackUIProvider as GluestackUIWithNativewindProvider } from '../src/core-components/nativewind/gluestack-ui-provider';
77

88
// global css getting resolved from babel.config.js
99
import 'global.css';
1010

11-
import { GluestackUIProvider as GluestackUIWithGluestackStyleProvider } from '../src/components-example/themed/GluestackUIProvider';
11+
import { GluestackUIProvider as GluestackUIWithGluestackStyleProvider } from '../src/core-components/themed/gluestack-ui-provider';
1212

1313
import gstheme from './gstheme';
1414
import { themes } from '@storybook/theming';

example/storybook-nativewind/babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module.exports = function (api) {
1414
alias: {
1515
'@/components/ui':
1616
process.env.STYLE_ENGINE === 'nativewind'
17-
? path.resolve(__dirname, './src/components-example/nativewind')
18-
: path.resolve(__dirname, './src/components-example/themed'),
17+
? path.resolve(__dirname, './src/core-components/nativewind')
18+
: path.resolve(__dirname, './src/core-components/themed'),
1919

2020
'global.css':
2121
process.env.STYLE_ENGINE === 'nativewind'

example/storybook-nativewind/src/components-example/nativewind/index.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

example/storybook-nativewind/src/components-example/themed/index.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

example/storybook-nativewind/src/components/Accordion/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
AccordionIcon,
99
AccordionContent,
1010
AccordionContentText,
11-
} from '@/components/ui/Accordion';
11+
} from '@/components/ui/accordion';
1212
import {
1313
ChevronDownIcon,
1414
ChevronUpIcon,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { transformedCode } from '../../utils';
4242

4343
<Meta title="common/components/Accordion" />
4444

45-
import Wrapper from '../../components-example/themed/Wrapper';
45+
import Wrapper from '../../core-components/themed/Wrapper';
4646

4747
This is an illustration of **Accordion** component.
4848

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
ChevronUpIcon,
2828
PlusIcon,
2929
MinusIcon,
30-
} from '../../components-example/themed';
30+
} from '../../core-components/themed';
3131
import {
3232
AppProvider,
3333
CodePreview,
@@ -39,8 +39,8 @@ import {
3939
Alert,
4040
} from '@gluestack/design-system';
4141
import { transformedCode } from '../../utils';
42-
import { config } from '../../components-example/themed/GluestackUIProvider/config';
43-
import Wrapper from '../../components-example/themed/Wrapper';
42+
import { config } from '../../core-components/themed/gluestack-ui-provider/config';
43+
import Wrapper from '../../core-components/themed/Wrapper';
4444

4545
# Accordion
4646

example/storybook-nativewind/src/components/Actionsheet/Actionsheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
ActionsheetSectionList,
3535
ActionsheetSectionHeaderText,
3636
ActionsheetVirtualizedList,
37-
} from '@/components/ui/Actionsheet';
37+
} from '@/components/ui/actionsheet';
3838

3939
const ActionsheetBasic = ({ showActionsheetProp, ...props }: any) => {
4040
const [showActionsheet, setShowActionsheet] = React.useState(false);

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import {
6565
Alert,
6666
} from '@gluestack/design-system';
6767
import { config } from '@gluestack-ui/config';
68-
import Wrapper from '../../components-example/nativewind/Wrapper';
68+
import Wrapper from '../../core-components/nativewind/Wrapper';
6969
import { CollapsibleCode } from '@gluestack/design-system';
7070

7171
This is an illustration of **Actionsheet** component.
@@ -148,7 +148,11 @@ npm i @gluestack-ui/actionsheet
148148
### Step 2: Copy and paste the following code into your project.
149149

150150
<CollapsibleCode>
151-
```jsx %%-- File: components-example/nativewind/Actionsheet/index.tsx --%% ```
151+
152+
```jsx
153+
%%-- File: core-components/nativewind/Actionsheet/index.tsx --%%
154+
```
155+
152156
</CollapsibleCode>
153157

154158
### Step 3: Update the import paths to match your project setup.
@@ -158,7 +162,7 @@ npm i @gluestack-ui/actionsheet
158162
To use this component in your project, include the following import statement in your file.
159163

160164
```jsx
161-
import { Actionsheet } from '@/components/ui/Actionsheet';
165+
import { Actionsheet } from '@/components/ui/actionsheet';
162166
```
163167

164168
```jsx

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import {
6464
Alert,
6565
} from '@gluestack/design-system';
6666
import { config } from '@gluestack-ui/config';
67-
import Wrapper from '../../components-example/themed/Wrapper';
67+
import Wrapper from '../../core-components/themed/Wrapper';
6868

6969
This is an illustration of **Actionsheet** component.
7070

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import {
5252
Icon,
5353
TrashIcon,
5454
ShareIcon
55-
} from '../../components-example/themed';
55+
} from '../../core-components/themed';
5656
import {
5757
KeyboardAvoidingView,
5858
Platform,
@@ -70,7 +70,7 @@ import {
7070
Alert,
7171
} from '@gluestack/design-system';
7272
import { config } from '@gluestack-ui/config';
73-
import Wrapper from '../../components-example/themed/Wrapper';
73+
import Wrapper from '../../core-components/themed/Wrapper';
7474
import { CollapsibleCode } from '@gluestack/design-system';
7575

7676
This is an illustration of **Actionsheet** component.
@@ -152,7 +152,11 @@ npm i @gluestack-ui/actionsheet
152152
### Step 2: Copy and paste the following code into your project.
153153

154154
<CollapsibleCode>
155-
```jsx %%-- File: components-example/themed/Actionsheet/index.tsx --%% ```
155+
156+
```jsx
157+
%%-- File: core-components/themed/actionsheet/index.tsx --%%
158+
```
159+
156160
</CollapsibleCode>
157161

158162
### Step 3: Update the import paths to match your project setup.
@@ -162,7 +166,7 @@ npm i @gluestack-ui/actionsheet
162166
To use this component in your project, include the following import statement in your file.
163167

164168
```jsx
165-
import { Actionsheet } from '@/components/ui/Actionsheet';
169+
import { Actionsheet } from '@/components/ui/actionsheet';
166170
```
167171

168172
```jsx

example/storybook-nativewind/src/components/Alert/Alert.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React from 'react';
2-
import { Alert, AlertIcon, AlertText } from '@/components/ui/Alert';
2+
import { Alert, AlertIcon, AlertText } from '@/components/ui/alert';
33
import {
44
InfoIcon,
55
CheckCircleIcon,
66
CloseCircleIcon,
77
BellIcon,
88
AlertCircleIcon,
99
Icon,
10-
} from '@/components/ui/Icon';
11-
import { VStack } from '@/components/ui/VStack';
12-
import { Center } from '@/components/ui/Center';
13-
import { HStack } from '@/components/ui/HStack';
10+
} from '@/components/ui/icon';
11+
import { VStack } from '@/components/ui/vstack';
12+
import { Center } from '@/components/ui/center';
13+
import { HStack } from '@/components/ui/hstack';
1414

1515
const AlertBasic = ({ ...props }: any) => {
1616
return (

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
VStack,
2828
Center,
2929
HStack,
30-
} from '../../components-example/nativewind';
30+
} from '../../core-components/nativewind';
3131

3232

3333
import { transformedCode } from '../../utils';
@@ -39,7 +39,7 @@ import {
3939
TableContainer,
4040
} from '@gluestack/design-system';
4141
import { CollapsibleCode } from '@gluestack/design-system';
42-
import Wrapper from '../../components-example/nativewind/Wrapper';
42+
import Wrapper from '../../core-components/nativewind/Wrapper';
4343

4444
This is an illustration of **Alert** component.
4545

@@ -98,7 +98,11 @@ npm i @gluestack-ui/alert
9898
### Step 2: Copy and paste the following code into your project.
9999

100100
<CollapsibleCode>
101-
```jsx %%-- File: components-example/nativewind/Alert/index.tsx --%% ```
101+
102+
```jsx
103+
%%-- File: core-components/nativewind/Alert/index.tsx --%%
104+
```
105+
102106
</CollapsibleCode>
103107

104108
### Step 3: Update the import paths to match your project setup.
@@ -108,7 +112,7 @@ npm i @gluestack-ui/alert
108112
To use this component in your project, include the following import statement in your file.
109113

110114
```jsx
111-
import { Alert, AlertIcon, AlertText } from '@/components/ui/Alert';
115+
import { Alert, AlertIcon, AlertText } from '@/components/ui/alert';
112116
```
113117

114118
```jsx

example/storybook-nativewind/src/components/Alert/index.themed.stories.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Meta } from '@storybook/addon-docs';
1414

1515
<Meta title="with-gluestack-style/components/Feedback/Alert" />
1616

17-
import { Alert, AlertIcon, AlertText } from '../../components-example/themed';
17+
import { Alert, AlertIcon, AlertText } from '../../core-components/themed';
1818
import {
1919
CheckCircleIcon,
2020
CloseCircleIcon,
@@ -24,9 +24,9 @@ import {
2424
Center,
2525
VStack,
2626
InfoIcon,
27-
} from '../../components-example/themed';
27+
} from '../../core-components/themed';
2828

29-
import { HStack } from '../../components-example/themed';
29+
import { HStack } from '../../core-components/themed';
3030
import { transformedCode } from '../../utils';
3131
import {
3232
AppProvider,
@@ -37,7 +37,7 @@ import {
3737
} from '@gluestack/design-system';
3838
import { CollapsibleCode } from '@gluestack/design-system';
3939

40-
import Wrapper from '../../components-example/themed/Wrapper';
40+
import Wrapper from '../../core-components/themed/Wrapper';
4141

4242
This is an illustration of **Alert** component.
4343

@@ -96,7 +96,11 @@ npm i @gluestack-ui/alert
9696
### Step 2: Copy and paste the following code into your project.
9797

9898
<CollapsibleCode>
99-
```jsx %%-- File: components-example/themed/Alert/index.tsx --%% ```
99+
100+
```jsx
101+
%%-- File: core-components/themed/alert/index.tsx --%%
102+
```
103+
100104
</CollapsibleCode>
101105

102106
### Step 3: Update the import paths to match your project setup.
@@ -106,7 +110,7 @@ npm i @gluestack-ui/alert
106110
To use this component in your project, include the following import statement in your file.
107111

108112
```jsx
109-
import { Alert, AlertIcon, AlertText } from '@/components/ui/Alert';
113+
import { Alert, AlertIcon, AlertText } from '@/components/ui/alert';
110114
```
111115

112116
```jsx

example/storybook-nativewind/src/components/AlertDialog/AlertDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
2-
import { Button, ButtonText } from '@/components/ui/Button';
3-
import { Text } from '@/components/ui/Text';
4-
import { Heading } from '@/components/ui/Heading';
2+
import { Button, ButtonText } from '@/components/ui/button';
3+
import { Text } from '@/components/ui/text';
4+
import { Heading } from '@/components/ui/heading';
55
import { X } from 'lucide-react-native';
66

77
import {
@@ -12,7 +12,7 @@ import {
1212
AlertDialogCloseButton,
1313
AlertDialogFooter,
1414
AlertDialogBody,
15-
} from '@/components/ui/AlertDialog';
15+
} from '@/components/ui/alert-dialog';
1616

1717
const AlertDialogBasic = ({ ...props }) => {
1818
const [showAlertDialog, setShowAlertDialog] = useState(false);

0 commit comments

Comments
 (0)