This repository was archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
docs: Removing Semantic UI from Stardust- DocSite #679
Merged
Merged
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
17f9942
(Docs)Updating to stardust from Semantic UI
3ce7d9d
Docs(Site): moving to stardust
50ffd7f
Doc(Site): attempting styling
f090aec
Docs(Site): further improvements
0935b3e
Fixing merge
cb72d70
Fixing component buttons
2d19590
Merge branch 'master' of https://github.com/stardust-ui/react into hu…
6ce3d9b
Improving slowly
64279a8
Almost removing semantic ;)
736b1da
Removing last semantic UI includes ;)
b6314c8
Removing semantic-ui
3afc907
Merge branch 'master' of https://github.com/stardust-ui/react into hu…
542c8f0
Working without SemanticUI ;)
409fd28
Styling sidebar a bit
447ba22
Minor updates
020ffa4
Improving sidebar
35fcf64
UI Improvements
39b5c2a
Fixing themes varaible editing
6276f73
Merging master
7476350
Adding accessibility descriptions back
414afb7
Fixing build
6d73f8c
Attempting to fix more styling
39629af
Merge branch 'master' of https://github.com/stardust-ui/react into hu…
772b254
component toolbar
97c7213
add missing lodash import, add keys
459bf3c
Minor fixes
b0cf5fe
Merge branch 'hueland/stardustDocSite' of https://github.com/stardust…
80598d1
Merge branch 'master' of https://github.com/stardust-ui/react into hu…
95ec544
Fixing some colors
ccd0ba6
Updating to latest master
1d534cc
Accessibility fixes
783e83e
Attempting toggle with input checkbox
b3bf43d
Cleaning up changes
6b841d6
Fixing styling and improving UI
11ce27a
Improving props UI
3d226c5
Attempting to fix more usage of style rather than styles prop
edfda3e
Cleaning up console dom related errors
a35584f
Merge branch 'master' of https://github.com/stardust-ui/react into hu…
0e7ab77
Updating to latest and fixing more style= props
5a86912
Adding dropdown
e76d52f
Merging from master
c7be1ac
latest
c53ba03
merging master
7774fcd
fixing the NavLink usage that was breaking the component page renreding
7219dd0
updating the styles for the docs theme Grid
e3e1a48
Merge branch 'master' into hueland/stardustDocSite
4a4e11c
using stardust Header in Shorthand Props doc page
ec1e84a
arranging the elements in the component doc by replacing the Segment …
318d72f
merging master
9eab72d
fixing font sizes, updating sidebar and guides layouting
6ae8d84
Merge branch 'master' into hueland/stardustDocSite
33e7e05
merge
57cae72
fixing dependencies
aa86139
merging
f013d0c
updating the styles for the inner menu of the component example, enab…
5d256f0
merging master
d28451d
merging master
a7de26a
using Flex component for the component doc
d527d5a
merging master
240b9a1
updating the docs to use Flex component instead of Box one
cb4c1ed
-fixed maximize button
f529a5b
reverting unneeded changes in teams themes
6baa671
updating the font awesome usage to fix the component examples
0f9b4f9
merging
21f5f62
updating htmlFontSize and bodyFontSize
5e79802
update the styling individually for :hover and :focus variations
c922a00
-added border-sizing: border-box on each element via the normalizeCSS
ccb38cd
-reverted changes for box-sizing
02ef994
merging msater
353392e
addressing comments
efcf39b
Merge branch 'hueland/stardustDocSite' of https://github.com/stardust…
42ae03b
-fixed theme switcher
4789b96
mergin master
219babf
Merge branch 'master' into hueland/stardustDocSite
c15adb5
enable theming apply on component examples
16cacb9
Merge branch 'master' into hueland/stardustDocSite
alinais 73b806a
removing unneeded code
535c749
accessibility improvements for docsite
84218f6
Merge branch 'master' into hueland/stardustDocSite
alinais fd41e02
Merge branch 'master' into hueland/stardustDocSite
alinais 2c3b82f
Merge branch 'master' into hueland/stardustDocSite
alinais File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
31 changes: 31 additions & 0 deletions
31
docs/src/components/ComponentDoc/ComponentControls/ComponentButton.tsx
This file contains hidden or 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,31 @@ | ||
import { createComponent, Icon, Text, ICSSInJSStyle } from '@stardust-ui/react' | ||
import * as React from 'react' | ||
|
||
interface LabelledButtonProps { | ||
iconName: string | ||
label: string | ||
active: boolean | ||
onClick?: (event: React.SyntheticEvent) => void | ||
} | ||
|
||
const centered: ICSSInJSStyle = { | ||
textAlign: 'center', | ||
} | ||
|
||
const LabelledButton: React.SFC<LabelledButtonProps> = createComponent<LabelledButtonProps>({ | ||
displayName: 'LabelledButton', | ||
alinais marked this conversation as resolved.
Show resolved
Hide resolved
|
||
render: ({ stardust, ...props }) => { | ||
const { iconName, label, active, onClick } = props | ||
return ( | ||
<div style={centered} onClick={onClick}> | ||
<Icon | ||
name={iconName} | ||
styles={{ color: active ? 'green' : 'grey', marginBottom: '10px', border: 0 }} | ||
/> | ||
<br /> | ||
<Text content={label} styles={{ color: active ? 'green' : 'grey' }} /> | ||
</div> | ||
) | ||
}, | ||
}) | ||
export default LabelledButton |
This file contains hidden or 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 hidden or 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 hidden or 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
23 changes: 4 additions & 19 deletions
23
docs/src/components/ComponentDoc/ComponentControls/ComponentControlsMaximize.tsx
This file contains hidden or 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 |
---|---|---|
@@ -1,25 +1,10 @@ | ||
import * as _ from 'lodash' | ||
import * as PropTypes from 'prop-types' | ||
import * as React from 'react' | ||
import { Icon, Menu } from 'semantic-ui-react' | ||
import { NavLink } from 'react-router-dom' | ||
|
||
import { updateForKeys } from 'docs/src/hoc' | ||
import LabelledButton from './ComponentButton' | ||
|
||
const ComponentControlsMaximize: any = ({ examplePath, rtl }) => ( | ||
<Menu.Item | ||
as={NavLink} | ||
to={`/maximize/${_.kebabCase(examplePath.split('/').slice(-1))}/${rtl}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Icon color="grey" fitted name="external alternate" size="large" /> | ||
Popout | ||
</Menu.Item> | ||
const ComponentControlsMaximize: any = () => ( | ||
<LabelledButton iconName="external alternate" label="Popout" active={false} /> | ||
) | ||
|
||
ComponentControlsMaximize.propTypes = { | ||
examplePath: PropTypes.string.isRequired, | ||
} | ||
|
||
export default updateForKeys(['examplePath', 'rtl'])(ComponentControlsMaximize) | ||
export default updateForKeys(['examplePath'])(ComponentControlsMaximize) |
9 changes: 3 additions & 6 deletions
9
docs/src/components/ComponentDoc/ComponentControls/ComponentControlsRtl.tsx
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.