-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #472 from dolittle/edit-microservice
Edit microservice
- Loading branch information
Showing
21 changed files
with
273 additions
and
265 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
export { FullPageLoadingSpinner, LoadingSpinner } from './LoadingSpinner'; | ||
export { LoadingSpinner } from './LoadingSpinner'; |
22 changes: 22 additions & 0 deletions
22
Source/DesignSystem/atoms/LoadingSpinnerFullPage/LoadingSpinnerFullPage.stories.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,22 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import { componentStories, LoadingSpinnerFullPage } from '../../index'; | ||
|
||
const { metadata, createStory } = componentStories(LoadingSpinnerFullPage); | ||
|
||
// TODO: Update component to improve text. | ||
|
||
metadata.parameters = { | ||
docs: { | ||
description: { | ||
component: `A loading spinner is a progress indicator used to inform users about the status of ongoing processes, | ||
such as loading data or submitting a form. Provide a descriptive label that indicates the status to the user. | ||
By default, loading spinners are in an indeterminate state.` }, | ||
}, | ||
layout: 'centered', | ||
}; | ||
|
||
export default metadata; | ||
|
||
export const Default = createStory(); |
22 changes: 22 additions & 0 deletions
22
Source/DesignSystem/atoms/LoadingSpinnerFullPage/LoadingSpinnerFullPage.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,22 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import React from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
|
||
import { Box, CircularProgressProps } from '@mui/material'; | ||
|
||
import { LoadingSpinner } from '../../index'; | ||
|
||
/** | ||
* The {@link LoadingSpinnerFullPage} component is used to display a loading spinner full page. | ||
* @param {LoadingSpinnerFullPage} props - The {@link CircularProgressProps}. | ||
* @returns A {@link LoadingSpinnerFullPage} component. | ||
*/ | ||
export const LoadingSpinnerFullPage = (props: CircularProgressProps) => | ||
createPortal( | ||
<Box sx={{ width: 1, height: 1, position: 'absolute', top: 0, left: 0, zIndex: '9999', backgroundColor: '#191A2150' }}> | ||
<LoadingSpinner {...props} /> | ||
</Box>, | ||
document.body, | ||
); |
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,4 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
export { LoadingSpinnerFullPage } from './LoadingSpinnerFullPage'; |
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
Oops, something went wrong.