-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SubModelSelection] - Made updates to sub model selection system to a…
…lign with UX (#57) Co-authored-by: Mitchell Lee <mitchlee@amazon.com>
- Loading branch information
1 parent
52b570c
commit d2e5673
Showing
78 changed files
with
1,361 additions
and
1,901 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default 'test-file-stub'; |
File renamed without changes.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
6 changes: 6 additions & 0 deletions
6
packages/scene-composer/src/components/Tree/hierarchy-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
31 changes: 31 additions & 0 deletions
31
packages/scene-composer/src/components/VisibilityToggle/index.tsx
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,31 @@ | ||
import React, { FC, useCallback } from 'react'; | ||
import { Button, ButtonProps } from '@awsui/components-react'; | ||
|
||
import { ReactComponent as ShowIcon } from '../../assets/icons/show.svg'; | ||
|
||
import './visibility-toggle.scss'; | ||
|
||
interface VisibilityToggleProps extends ButtonProps { | ||
visible?: boolean; | ||
onToggle?: (visible: boolean) => void; | ||
} | ||
|
||
const VisibilityToggle: FC<VisibilityToggleProps> = ({ visible = true, onToggle = () => {}, ...props }) => { | ||
const onToggleHandler = useCallback(() => { | ||
onToggle(!visible); | ||
}, [visible]); | ||
|
||
return ( | ||
<Button | ||
{...props} | ||
onClick={onToggleHandler} | ||
variant={'inline-icon'} | ||
className={`tm-visibility-toggle ${visible ? 'visible' : ''}`.trim()} | ||
iconSvg={<ShowIcon />} | ||
/> | ||
); | ||
}; | ||
|
||
VisibilityToggle.displayName = 'ShowHideButton'; | ||
|
||
export default VisibilityToggle; |
15 changes: 15 additions & 0 deletions
15
packages/scene-composer/src/components/VisibilityToggle/visibility-toggle.scss
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 @@ | ||
.tm-visibility-toggle { | ||
svg { | ||
stroke-width: 1px !important; | ||
} | ||
|
||
&.visible { | ||
.show_svg__center-dot { | ||
display: block; | ||
} | ||
} | ||
|
||
.show_svg__center-dot { | ||
display: none; | ||
} | ||
} |
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
14 changes: 0 additions & 14 deletions
14
packages/scene-composer/src/components/panels/ModelExplorerPanel/Context.tsx
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/scene-composer/src/components/panels/ModelExplorerPanel/Layout.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.