-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into react-18-2
- Loading branch information
Showing
53 changed files
with
769 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Flex, IconCompact } from 'gestalt'; | ||
|
||
export default function Example() { | ||
return ( | ||
<Flex alignItems="center" height="100%" justifyContent="center" width="100%"> | ||
<IconCompact accessibilityLabel="Add new Pins" icon="compact-add" /> | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Flex, IconCompact } from 'gestalt'; | ||
|
||
export default function Example() { | ||
return ( | ||
<Flex alignItems="center" height="100%" justifyContent="center" width="100%"> | ||
<IconCompact | ||
accessibilityLabel="Add new Pins" | ||
dangerouslySetSvgPath={{ | ||
__path: | ||
'M9.41 1.41a1.41 1.41 0 0 0-2.82 0V6.6H1.4a1.41 1.41 0 1 0 0 2.82h5.2v5.18a1.41 1.41 0 1 0 2.82 0V9.4h5.18a1.41 1.41 0 1 0 0-2.82H9.4z', | ||
}} | ||
/> | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Flex, IconCompact } from 'gestalt'; | ||
|
||
export default function Example() { | ||
return ( | ||
<Flex alignItems="center" height="100%" justifyContent="center" width="100%"> | ||
<Flex alignItems="center" gap={2}> | ||
<IconCompact accessibilityLabel="Pin" icon="compact-add" /> | ||
</Flex> | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, ColorSchemeProvider, Flex, IconCompact, Text } from 'gestalt'; | ||
import icons from 'gestalt/src/icons/compact'; | ||
|
||
export default function Snapshot() { | ||
return ( | ||
<ColorSchemeProvider colorScheme="dark"> | ||
<Box color="default" height={2000} width={2000}> | ||
<Flex | ||
gap={{ | ||
row: 1, | ||
column: 0, | ||
}} | ||
wrap | ||
> | ||
{Object.keys(icons).map((name, idk) => ( | ||
<Box key={name} padding={2} width={100}> | ||
<Text size="100">{idk}</Text> | ||
{/* @ts-expect-error - TS2322 */} | ||
<IconCompact accessibilityLabel="" color="default" icon={name} /> | ||
<Text size="100">{name}</Text> | ||
</Box> | ||
))} | ||
</Flex> | ||
</Box> | ||
</ColorSchemeProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, ColorSchemeProvider, Flex, IconCompact, Text } from 'gestalt'; | ||
import icons from 'gestalt/src/icons-vr-theme/compact'; | ||
|
||
export default function Snapshot() { | ||
return ( | ||
<ColorSchemeProvider colorScheme="light"> | ||
<Box color="default" height={2000} width={2000}> | ||
<Flex | ||
gap={{ | ||
row: 1, | ||
column: 0, | ||
}} | ||
wrap | ||
> | ||
{Object.keys(icons).map((name, idk) => ( | ||
<Box key={name} padding={2} width={100}> | ||
<Text size="100">{idk}</Text> | ||
{/* @ts-expect-error - TS2322 */} | ||
<IconCompact accessibilityLabel="" color="default" icon={name} /> | ||
<Text size="100">{name}</Text> | ||
</Box> | ||
))} | ||
</Flex> | ||
</Box> | ||
</ColorSchemeProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, ColorSchemeProvider, Flex, IconCompact, Text } from 'gestalt'; | ||
import icons from 'gestalt/src/icons/compact'; | ||
|
||
export default function Snapshot() { | ||
return ( | ||
<ColorSchemeProvider colorScheme="light"> | ||
<Box color="default" height={2000} width={2000}> | ||
<Flex | ||
gap={{ | ||
row: 1, | ||
column: 0, | ||
}} | ||
wrap | ||
> | ||
{Object.keys(icons).map((name, idk) => ( | ||
<Box key={name} padding={2} width={100}> | ||
<Text size="100">{idk}</Text> | ||
{/* @ts-expect-error - TS2322 */} | ||
<IconCompact accessibilityLabel="" color="default" icon={name} /> | ||
<Text size="100">{name}</Text> | ||
</Box> | ||
))} | ||
</Flex> | ||
</Box> | ||
</ColorSchemeProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.