diff --git a/CHANGELOG.md b/CHANGELOG.md index d3aca0150c..e8bf47d465 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Replaced Header `subheader` with `description` and fixed it to render well-formed HTML @mnajdova ([#17](https://github.com/stardust-ui/react/pull/17)) +### Features +- Add Icon `xSpacing` prop @Bugaa92 ([#22](https://github.com/stardust-ui/react/pull/22)) +- Add Button `icon` prop and Text `truncated` prop @Bugaa92 ([#13](https://github.com/stardust-ui/react/pull/13)) + ## [v0.2.3](https://github.com/stardust-ui/react/tree/v0.2.3) (2018-07-24) [Compare changes](https://github.com/stardust-ui/react/compare/v0.2.2...v0.2.3) @@ -33,7 +37,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Features - Add Button `fluid` prop @Bugaa92 ([#6](https://github.com/stardust-ui/react/pull/6)) - Add Icon `disabled` prop @Bugaa92 ([#12](https://github.com/stardust-ui/react/pull/12)) -- Add Icon `xSpacing` prop @Bugaa92 ([#22](https://github.com/stardust-ui/react/pull/22)) ## [v0.2.2](https://github.com/stardust-ui/react/tree/v0.2.2) (2018-07-24) diff --git a/docs/src/examples/components/Button/Types/ButtonExample.shorthand.tsx b/docs/src/examples/components/Button/Types/ButtonExample.shorthand.tsx index 4ed08727f6..04e23fffb8 100644 --- a/docs/src/examples/components/Button/Types/ButtonExample.shorthand.tsx +++ b/docs/src/examples/components/Button/Types/ButtonExample.shorthand.tsx @@ -1,6 +1,11 @@ import React from 'react' import { Button } from '@stardust-ui/react' -const ButtonExample = () => +const ButtonExample = () => ( +
+ + +
+) export default ButtonExample diff --git a/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.shorthand.tsx b/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.shorthand.tsx new file mode 100644 index 0000000000..cc23982083 --- /dev/null +++ b/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.shorthand.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Button } from '@stardust-ui/react' + +const ButtonExampleContentAndIcon = () => ( +
+
+) + +export default ButtonExampleContentAndIcon diff --git a/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.tsx b/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.tsx new file mode 100644 index 0000000000..ea47e2af16 --- /dev/null +++ b/docs/src/examples/components/Button/Types/ButtonExampleContentAndIcon.tsx @@ -0,0 +1,17 @@ +import React from 'react' +import { Button, Icon, Text } from '@stardust-ui/react' + +const ButtonExampleContentAndIcon = () => ( +
+ + +
+) + +export default ButtonExampleContentAndIcon diff --git a/docs/src/examples/components/Button/Types/ButtonExampleEmphasis.shorthand.tsx b/docs/src/examples/components/Button/Types/ButtonExampleEmphasis.shorthand.tsx new file mode 100644 index 0000000000..07c60bcf41 --- /dev/null +++ b/docs/src/examples/components/Button/Types/ButtonExampleEmphasis.shorthand.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Button } from '@stardust-ui/react' + +const ButtonExampleEmphasis = () => ( +
+
+) + +export default ButtonExampleEmphasis diff --git a/docs/src/examples/components/Button/Types/ButtonExampleIcon.shorthand.tsx b/docs/src/examples/components/Button/Types/ButtonExampleIcon.shorthand.tsx new file mode 100644 index 0000000000..4f5c334d77 --- /dev/null +++ b/docs/src/examples/components/Button/Types/ButtonExampleIcon.shorthand.tsx @@ -0,0 +1,6 @@ +import React from 'react' +import { Button } from '@stardust-ui/react' + +const ButtonExampleIcon = () => +) + +export default ButtonExampleIcon diff --git a/docs/src/examples/components/Button/Types/index.tsx b/docs/src/examples/components/Button/Types/index.tsx index 55ad3a8aee..0cd95dc370 100644 --- a/docs/src/examples/components/Button/Types/index.tsx +++ b/docs/src/examples/components/Button/Types/index.tsx @@ -6,7 +6,7 @@ const Types = () => ( ( description="A button can be formatted to show different levels of emphasis." examplePath="components/Button/Types/ButtonExampleEmphasis" /> + + ) diff --git a/docs/src/examples/components/Button/Variations/ButtonExampleCircular.shorthand.tsx b/docs/src/examples/components/Button/Variations/ButtonExampleCircular.shorthand.tsx index ee91511e54..17207451ab 100644 --- a/docs/src/examples/components/Button/Variations/ButtonExampleCircular.shorthand.tsx +++ b/docs/src/examples/components/Button/Variations/ButtonExampleCircular.shorthand.tsx @@ -1,6 +1,10 @@ import React from 'react' import { Button } from '@stardust-ui/react' -const ButtonExampleCircular = () => +const ButtonExampleCircular = () => ( +
+ + +
+) export default ButtonExampleCircular diff --git a/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.shorthand.tsx b/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.shorthand.tsx new file mode 100644 index 0000000000..a30662a15f --- /dev/null +++ b/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.shorthand.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Button } from '@stardust-ui/react' + +const ButtonExampleEmphasisCircular = () => ( +
+
+) + +export default ButtonExampleEmphasisCircular diff --git a/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.tsx b/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.tsx index d10faef454..c0fed84c24 100644 --- a/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.tsx +++ b/docs/src/examples/components/Button/Variations/ButtonExampleEmphasisCircular.tsx @@ -1,13 +1,13 @@ import React from 'react' -import { Button } from '@stardust-ui/react' +import { Button, Icon } from '@stardust-ui/react' const ButtonExampleEmphasisCircular = () => (
- -
) diff --git a/docs/src/examples/components/Icon/Variations/IconExampleSpace.shorthand.tsx b/docs/src/examples/components/Icon/Variations/IconExampleSpace.shorthand.tsx index 376ed95544..febdddfe23 100644 --- a/docs/src/examples/components/Icon/Variations/IconExampleSpace.shorthand.tsx +++ b/docs/src/examples/components/Icon/Variations/IconExampleSpace.shorthand.tsx @@ -10,7 +10,7 @@ const IconExampleSpace = () => (