@sphereon/ui-components.ssi-react 0.1.3-unstable.45 → 0.1.3-unstable.47
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/{assets/loaders/SSILoader → indicators/SSIActivityIndicator}/index.d.ts +4 -9
- package/dist/components/indicators/SSIActivityIndicator/index.js +17 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/dist/components/assets/loaders/SSILoader/index.js +0 -13
package/dist/components/{assets/loaders/SSILoader → indicators/SSIActivityIndicator}/index.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
interface
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface Props {
|
|
3
3
|
ariaLabel?: string;
|
|
4
4
|
width?: string | number;
|
|
5
5
|
height?: string | number;
|
|
@@ -12,11 +12,6 @@ interface SSILoaderProps {
|
|
|
12
12
|
[key: string]: string;
|
|
13
13
|
};
|
|
14
14
|
wrapperClass?: string;
|
|
15
|
-
timeout?: number;
|
|
16
|
-
callback: (state?: any) => Promise<void>;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
16
|
+
declare const SSIActivityIndicator: FC<Props>;
|
|
17
|
+
export default SSIActivityIndicator;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Oval } from 'react-loader-spinner';
|
|
3
|
+
import { elements } from "@sphereon/ui-components.core";
|
|
4
|
+
const SSIActivityIndicator = (props) => {
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
...props,
|
|
7
|
+
width: 80,
|
|
8
|
+
height: 80,
|
|
9
|
+
color: elements.blue,
|
|
10
|
+
secondaryColor: elements.blue,
|
|
11
|
+
strokeWidth: 5,
|
|
12
|
+
strokeWidthSecondary: 5,
|
|
13
|
+
visible: true
|
|
14
|
+
};
|
|
15
|
+
return (_jsx(Oval, { ...defaultProps }));
|
|
16
|
+
};
|
|
17
|
+
export default SSIActivityIndicator;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
|
20
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
21
21
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
22
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
|
-
import
|
|
23
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
25
|
export * from './styles/components/fonts';
|
|
26
26
|
export * from './types';
|
|
27
27
|
export * from './helpers';
|
|
28
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox,
|
|
28
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, };
|
package/dist/index.js
CHANGED
|
@@ -20,9 +20,9 @@ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
|
20
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
21
21
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
22
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
|
-
import
|
|
23
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
25
|
export * from './styles/components/fonts';
|
|
26
26
|
export * from './types';
|
|
27
27
|
export * from './helpers';
|
|
28
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox,
|
|
28
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, };
|
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.47+afa5015",
|
|
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.47+afa5015",
|
|
32
32
|
"@tanstack/react-table": "^8.9.3",
|
|
33
33
|
"react-loader-spinner": "^5.4.5",
|
|
34
34
|
"react-toastify": "^9.1.3",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">= 16.8.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "afa501568123f30ce7f21b1dceb0126e1be69f65"
|
|
46
46
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|