Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit c9cfb51

Browse files
authored
docs(Examples): fix imports in all examples to TS style (#631)
* docs(Examples): fix imports in all examples to TS style * fix imports
1 parent 07cbb57 commit c9cfb51

File tree

270 files changed

+280
-281
lines changed

Some content is hidden

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

270 files changed

+280
-281
lines changed

build/tsconfig.docs.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "./tsconfig.common.json",
33
"compilerOptions": {
4-
"module": "esnext",
5-
"allowSyntheticDefaultImports": true
4+
"module": "esnext"
65
},
76
"include": [
87
"../src",

docs/src/examples/components/Accordion/Types/AccordionExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Accordion } from '@stardust-ui/react'
33

44
const panels = [

docs/src/examples/components/Accordion/Types/AccordionExclusiveExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Accordion } from '@stardust-ui/react'
33

44
const panels = [

docs/src/examples/components/Accordion/Types/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Accordion/Variations/AccordionExampleList.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Accordion, Button } from '@stardust-ui/react'
33

44
class AccordionExampleList extends React.Component {

docs/src/examples/components/Accordion/Variations/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Accordion/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import Types from './Types'
33
import Variations from './Variations'
44

docs/src/examples/components/Animation/Types/AnimationExamplePlayState.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Icon, Button, Animation, Provider } from '@stardust-ui/react'
33

44
const spinner = {

docs/src/examples/components/Attachment/Slots/AttachmentActionExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
class AttachmentActionExampleShorthand extends React.Component {

docs/src/examples/components/Attachment/Slots/AttachmentDescriptionExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
const AttachmentDescriptionExampleShorthand = () => (

docs/src/examples/components/Attachment/Slots/AttachmentHeaderExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
const AttachmentHeaderExampleShorthand = () => <Attachment header="Strategy.docx" />

docs/src/examples/components/Attachment/Slots/AttachmentIconExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
const AttachmentIconExampleShorthand = () => (

docs/src/examples/components/Attachment/Types/AttachmentExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
const AttachmentExampleShorthand = () => <Attachment header="Document.docx" />

docs/src/examples/components/Attachment/Types/AttachmentProgressExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
const AttachmentProgressExampleShorthand = () => (

docs/src/examples/components/Attachment/Variations/AttachmentActionableExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Attachment } from '@stardust-ui/react'
33

44
class AttachmentActionableExampleShorthand extends React.Component {

docs/src/examples/components/Avatar/Types/AvatarExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const AvatarExampleShorthand = () => (

docs/src/examples/components/Avatar/Types/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Avatar/Usage/AvatarUsageExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const status = { color: 'green', icon: 'check', title: 'Available' }

docs/src/examples/components/Avatar/Usage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Avatar/Variations/AvatarExampleExcludedInitials.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const status = { color: 'green', icon: 'check', title: 'Available' }

docs/src/examples/components/Avatar/Variations/AvatarExampleGetInitials.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const getInitials = name => name.split(' ').map(word => `${word[0]}.`)

docs/src/examples/components/Avatar/Variations/AvatarExampleImage.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const AvatarExampleImageShorthand = () => <Avatar image="public/images/avatar/small/matt.jpg" />

docs/src/examples/components/Avatar/Variations/AvatarExampleImageCustomization.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar, Icon } from '@stardust-ui/react'
33

44
const AvatarExampleImageCustomizationShorthand = () => (

docs/src/examples/components/Avatar/Variations/AvatarExampleLabel.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const AvatarExampleLabelShorthand = () => (

docs/src/examples/components/Avatar/Variations/AvatarExampleName.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const AvatarExampleNameShorthand = () => (

docs/src/examples/components/Avatar/Variations/AvatarExampleSize.shorthand.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import _ from 'lodash'
2-
import React from 'react'
1+
import * as _ from 'lodash'
2+
import * as React from 'react'
33
import { Avatar } from '@stardust-ui/react'
44

55
const statusProps = { icon: 'check', color: 'green', title: 'Available' }

docs/src/examples/components/Avatar/Variations/AvatarExampleStatus.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar } from '@stardust-ui/react'
33

44
const AvatarExampleStatusShorthand = () => (

docs/src/examples/components/Avatar/Variations/AvatarExampleStatusCustomization.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar, Grid, Status, Text } from '@stardust-ui/react'
33

44
const defaultAvatar = (

docs/src/examples/components/Avatar/Variations/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Avatar/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import Types from './Types'
33
import Variations from './Variations'
44
import Usage from './Usage'

docs/src/examples/components/Button/Groups/ButtonGroupCircularExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonGroupCircularExampleShorthand = () => (

docs/src/examples/components/Button/Groups/ButtonGroupExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonGroupExampleShorthand = () => (

docs/src/examples/components/Button/Groups/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Button/States/ButtonExampleDisabled.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleDisabled = () => (

docs/src/examples/components/Button/States/ButtonExampleDisabled.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon, Text } from '@stardust-ui/react'
33

44
const ButtonExampleDisabled = () => (

docs/src/examples/components/Button/States/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Button/Types/ButtonExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExample = () => (

docs/src/examples/components/Button/Types/ButtonExample.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExample = () => (

docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleContentAndIcon = () => (

docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon, Text } from '@stardust-ui/react'
33

44
const ButtonExampleContentAndIcon = () => (

docs/src/examples/components/Button/Types/ButtonExampleEmphasis.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleEmphasis = () => (

docs/src/examples/components/Button/Types/ButtonExampleEmphasis.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleEmphasis = () => (

docs/src/examples/components/Button/Types/ButtonExampleIcon.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleIcon = () => <Button icon="book" primary />

docs/src/examples/components/Button/Types/ButtonExampleIcon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon } from '@stardust-ui/react'
33

44
const ButtonExampleIcon = () => (

docs/src/examples/components/Button/Types/ButtonExampleIconOnly.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleIconOnly = () => <Button icon="book" iconOnly primary />

docs/src/examples/components/Button/Types/ButtonExampleIconOnly.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon } from '@stardust-ui/react'
33

44
const ButtonExampleIconOnly = () => (

docs/src/examples/components/Button/Types/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Button/Usage/ButtonUsageExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Provider } from '@stardust-ui/react'
33

44
const ButtonUsageExampleShorthand = () => (

docs/src/examples/components/Button/Usage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Button/Variations/ButtonExampleCircular.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleCircular = () => (

docs/src/examples/components/Button/Variations/ButtonExampleCircular.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon } from '@stardust-ui/react'
33

44
const ButtonExampleCircular = () => (

docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleEmphasisCircular = () => (

docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon } from '@stardust-ui/react'
33

44
const ButtonExampleEmphasisCircular = () => (

docs/src/examples/components/Button/Variations/ButtonExampleFluid.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleFluid = () => <Button fluid content="Fits to Container" />

docs/src/examples/components/Button/Variations/ButtonExampleFluid.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleFluid = () => <Button fluid>Fits to Container</Button>

docs/src/examples/components/Button/Variations/ButtonExampleText.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button } from '@stardust-ui/react'
33

44
const ButtonExampleTextShorthand = () => (

docs/src/examples/components/Button/Variations/ButtonExampleText.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Button, Icon, Text } from '@stardust-ui/react'
33

44
const ButtonExampleText = () => (

docs/src/examples/components/Button/Variations/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Button/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import Types from './Types'
33
import Variations from './Variations'
44
import States from './States'

docs/src/examples/components/Chat/Types/ChatExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar, Chat, Divider } from '@stardust-ui/react'
33

44
const janeAvatar = {

docs/src/examples/components/Chat/Types/ChatExampleGutterPosition.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar, Chat } from '@stardust-ui/react'
33

44
const [janeAvatar, johnAvatar] = [

docs/src/examples/components/Chat/Types/ChatMessageExampleStyled.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Avatar, Chat, Provider } from '@stardust-ui/react'
33

44
const janeAvatar = {

docs/src/examples/components/Chat/Types/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
33
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
44

docs/src/examples/components/Chat/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import Types from './Types'
33

44
const ChatExamples = () => (

docs/src/examples/components/Divider/Types/DividerExample.shorthand.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Divider } from '@stardust-ui/react'
33

44
const DividerExampleShorthand = () => <Divider />

0 commit comments

Comments
 (0)