Skip to content

Commit

Permalink
Merge pull request #2449 from gluestack/fix/import-fixes
Browse files Browse the repository at this point in the history
Fix/import fixes
  • Loading branch information
surajahmed authored Sep 4, 2024
2 parents a02c5b1 + c2d32b5 commit fecd64e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ Button component is created using Pressable component from react-native. It exte
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ Checkbox component is created using Pressable component from react-native. It ex
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ The following are the lists of all the libraries and packages the component reli
Fab component is created using Pressable component from react-native. It extends all the props supported by [React Native Pressable](https://reactnative.dev/docs/pressable#props).
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ We have outlined the various features that ensure the Input component is accessi
Input component is created using TextInput component from react-native. It extends all the props supported by [React Native Text Input](https://reactnative.dev/docs/textinput#props) and the props mentioned below.
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Meta } from '@storybook/addon-docs';

<Meta title="with-nativewind/Components/Forms/Link" />

import { ArrowUpRightIcon, Icon, HStack, Text, Link, LinkText } from '../../core-components/nativewind';
import { Icon, HStack, Text, Link, LinkText } from '../../core-components/nativewind';
import { transformedCode } from '../../utils';
import {
AppProvider,
Expand All @@ -27,6 +27,7 @@ import {
import Wrapper from '../../core-components/nativewind/Wrapper';
import { CollapsibleCode } from '@gluestack/design-system';
import AnatomyImage from '../../extra-components/nativewind/AnatomyImage';
import { ArrowUpRight } from 'lucide-react-native';

This is an illustration of **Link** component.

Expand Down Expand Up @@ -254,6 +255,7 @@ We have outlined the various features that ensure the Link component is accessib
Link component is created using Pressable component from react-native. It extends all the props supported by [React Native Pressable](https://reactnative.dev/docs/pressable#props).
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down Expand Up @@ -407,7 +409,7 @@ The Examples section provides visual representations of the different variants o
transformCode: (code) => {
return transformedCode(code);
},
scope: { Link, LinkText, Wrapper, ArrowUpRightIcon, Icon, HStack, Text },
scope: { Link, LinkText, Wrapper, Icon, HStack, Text },
argsType: {},
}}
/>
Expand All @@ -427,15 +429,16 @@ The Examples section provides visual representations of the different variants o
<Link href="https://gluestack.io/" isExternal>
<HStack alignItems="center">
<LinkText size="lg">Pinterest</LinkText>
<Icon as={ArrowUpRightIcon} size="lg" className='mt-0.5 text-info-600'/>
{/* ArrowUpRight is imported from 'lucide-react-native' */}
<Icon as={ArrowUpRight} size="lg" className='mt-0.5 text-info-600'/>
</HStack>
</Link>
</HStack>
`,
transformCode: (code) => {
return transformedCode(code);
},
scope: { Link, LinkText, Wrapper, ArrowUpRightIcon, Icon, HStack, Text },
scope: { Link, LinkText, Wrapper, ArrowUpRight, Icon, HStack, Text },
argsType: {},
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { transformedCode } from '../../utils';
import { AppProvider, CodePreview } from '@gluestack/design-system';

import Wrapper from '../../core-components/nativewind/Wrapper';
import { CollapsibleCode, Tabs } from '@gluestack/design-system';
import { CollapsibleCode, Table, TableContainer, Tabs, InlineCode } from '@gluestack/design-system';

This is an illustration of **Pressable** component.

Expand Down Expand Up @@ -119,6 +119,7 @@ This section provides a comprehensive reference list for the component props, de
It inherits all the properties of React Native's [Pressable](https://reactnative.dev/docs/pressable) component.
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ Radio component is created using Pressable component from react-native. It exten
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ Textarea component is created using TextInput component from react-native. It ex
</>
### Data Attributes Table
Component receives states as props as boolean values, which are applied as ```data-*``` attributes. These attributes are then used to style the component via classNames, enabling state-based styling.
<>
Expand Down

0 comments on commit fecd64e

Please sign in to comment.