@sphereon/ui-components.ssi-react 0.1.3-unstable.23 → 0.1.3-unstable.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{views/SSILoaderView → assets/loaders/SSILoader}/index.d.ts +4 -5
- package/dist/components/assets/loaders/SSILoader/index.js +13 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/styles/components/components/index.d.ts +0 -1
- package/dist/styles/components/components/index.js +0 -1
- package/dist/styles/components/containers/index.d.ts +0 -2
- package/dist/styles/components/containers/index.js +1 -8
- package/dist/styles/components/fonts/index.d.ts +0 -1
- package/dist/styles/components/fonts/index.js +0 -4
- package/package.json +3 -3
- package/dist/components/views/SSILoaderView/index.js +0 -14
- package/dist/styles/components/components/SSILoaderView/index.d.ts +0 -2
- package/dist/styles/components/components/SSILoaderView/index.js +0 -8
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface
|
|
2
|
+
interface SSILoaderProps {
|
|
3
3
|
ariaLabel?: string;
|
|
4
4
|
height?: number;
|
|
5
|
+
width?: number;
|
|
5
6
|
color?: string;
|
|
6
7
|
secondaryColor?: string;
|
|
7
8
|
strokeWidth?: number;
|
|
8
9
|
strokeWidthSecondary?: number;
|
|
9
|
-
timeout?: number;
|
|
10
10
|
visible?: boolean;
|
|
11
|
-
width?: number;
|
|
12
11
|
wrapperStyle?: {
|
|
13
12
|
[key: string]: string;
|
|
14
13
|
};
|
|
15
14
|
wrapperClass?: string;
|
|
16
|
-
|
|
15
|
+
timeout?: number;
|
|
17
16
|
callback: (state?: any) => Promise<void>;
|
|
18
17
|
}
|
|
19
|
-
export default class
|
|
18
|
+
export default class SSILoader extends React.Component<SSILoaderProps, any> {
|
|
20
19
|
componentDidMount(): void;
|
|
21
20
|
render(): JSX.Element;
|
|
22
21
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Oval } from "react-loader-spinner";
|
|
4
|
+
export default class SSILoader extends React.Component {
|
|
5
|
+
componentDidMount() {
|
|
6
|
+
setTimeout(async (state) => {
|
|
7
|
+
await this.props.callback(state);
|
|
8
|
+
}, this.props.timeout ?? 0);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (_jsx(Oval, { ...this.props }));
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
|
19
19
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
20
20
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
21
21
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
22
|
-
import
|
|
22
|
+
import SSILoader from "./components/assets/loaders/SSILoader";
|
|
23
23
|
export * from './types';
|
|
24
24
|
export * from './styles/components/fonts';
|
|
25
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSICheckbox,
|
|
25
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSICheckbox, SSILoader };
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
|
19
19
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
20
20
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
21
21
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
22
|
-
import
|
|
22
|
+
import SSILoader from "./components/assets/loaders/SSILoader";
|
|
23
23
|
export * from './types';
|
|
24
24
|
export * from './styles/components/fonts';
|
|
25
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSICheckbox,
|
|
25
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSICheckbox, SSILoader };
|
|
@@ -2,5 +2,3 @@ export declare const SSIFlexDirectionRowViewStyled: import("styled-components").
|
|
|
2
2
|
export declare const SSIFlexDirectionColumnViewStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const SSIAlphaContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const SSIRoundedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const SSIBasicContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const SSIBasicHorizontalCenterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
|
|
3
3
|
export const SSIFlexDirectionRowViewStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
@@ -16,10 +16,3 @@ export const SSIRoundedContainerStyled = styled.div `
|
|
|
16
16
|
${SSIRoundedEdgesCss};
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
`;
|
|
19
|
-
export const SSIBasicContainerStyled = styled.div `
|
|
20
|
-
flex: 1;
|
|
21
|
-
${SSIBackgroundPrimaryDarkColorCss};
|
|
22
|
-
`;
|
|
23
|
-
export const SSIBasicHorizontalCenterContainerStyled = styled(SSIBasicContainerStyled) `
|
|
24
|
-
align-items: center;
|
|
25
|
-
`;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const SSITextH1Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
2
2
|
export declare const SSITextH2Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
-
export declare const SSITextH2SemiBoldLightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
3
|
export declare const SSITextH3Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
5
4
|
export declare const SSITextH3LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
5
|
export declare const SSITextH4Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -7,10 +7,6 @@ export const SSITextH1Styled = styled.span `
|
|
|
7
7
|
export const SSITextH2Styled = styled.span `
|
|
8
8
|
${SSITextH2Css}
|
|
9
9
|
`;
|
|
10
|
-
export const SSITextH2SemiBoldLightStyled = styled(SSITextH2Styled) `
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: ${fontColors.light}
|
|
13
|
-
`;
|
|
14
10
|
export const SSITextH3Styled = styled.span `
|
|
15
11
|
${SSITextH3Css}
|
|
16
12
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ui-components.ssi-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.3-unstable.
|
|
4
|
+
"version": "0.1.3-unstable.24+b4be06e",
|
|
5
5
|
"description": "SSI UI components for React",
|
|
6
6
|
"repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
|
|
7
7
|
"author": "Sphereon <dev@sphereon.com>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sphereon/ui-components.core": "0.1.3-unstable.
|
|
31
|
+
"@sphereon/ui-components.core": "0.1.3-unstable.24+b4be06e",
|
|
32
32
|
"@tanstack/react-table": "^8.9.3",
|
|
33
33
|
"react-loader-spinner": "^5.4.5",
|
|
34
34
|
"styled-components": "^5.3.3"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">= 16.8.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b4be06eb6549343f0d9a20d625e3f2e484abc750"
|
|
45
45
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { SSIBasicHorizontalCenterContainerStyled as Container, SSILoadingScreenActivityCaptionStyled as ActivityCaption, SSILoadingScreenActivityIndicatorContainerStyled as ActivityIndicatorContainer } from '../../../styles/components';
|
|
4
|
-
import { Oval } from "react-loader-spinner";
|
|
5
|
-
export default class SSILoaderView extends React.Component {
|
|
6
|
-
componentDidMount() {
|
|
7
|
-
setTimeout(async (state) => {
|
|
8
|
-
await this.props.callback(state);
|
|
9
|
-
}, this.props.timeout ?? 0);
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (_jsx(_Fragment, { children: _jsxs(Container, { children: [_jsx(ActivityIndicatorContainer, { children: _jsx(Oval, { ...this.props }) }), _jsx(ActivityCaption, { children: this.props.message })] }) }));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { SSITextH2SemiBoldLightStyled } from "../../fonts";
|
|
3
|
-
export const SSILoadingScreenActivityIndicatorContainerStyled = styled.div `
|
|
4
|
-
margin-top: 282px;
|
|
5
|
-
`;
|
|
6
|
-
export const SSILoadingScreenActivityCaptionStyled = styled(SSITextH2SemiBoldLightStyled) `
|
|
7
|
-
margin-top: 69px;
|
|
8
|
-
`;
|