@sphereon/ui-components.ssi-react 0.1.3-unstable.41 → 0.1.3-unstable.43
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/index.d.ts +22 -0
- package/dist/components/assets/loaders/SSILoader/index.js +13 -0
- package/dist/components/views/SSITableView/index.js +0 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styles/components/components/SSIStatusLabel/index.js +0 -1
- package/dist/types/table/index.d.ts +1 -2
- package/dist/types/table/index.js +0 -1
- package/package.json +4 -3
- package/dist/types/component/index.d.ts +0 -0
- package/dist/types/component/index.js +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SSILoaderProps {
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
color?: string;
|
|
7
|
+
secondaryColor?: string;
|
|
8
|
+
strokeWidth?: string | number;
|
|
9
|
+
strokeWidthSecondary?: string | number;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
wrapperStyle?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
wrapperClass?: string;
|
|
15
|
+
timeout?: number;
|
|
16
|
+
callback: (state?: any) => Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export default class SSILoader extends React.Component<SSILoaderProps, any> {
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
render(): JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -7,7 +7,6 @@ import SSITypeLabel from '../../labels/SSITypeLabel';
|
|
|
7
7
|
import SSIHoverText from '../../fields/SSIHoverText';
|
|
8
8
|
import { SSITableViewCellContainerStyled as CellContainer, SSITableViewContainerStyled as Container, SSITableViewHeaderCellContainerStyled as HeaderCellContainer, SSITableViewLabelCellStyled as LabelCell, SSITableViewResultCountCaptionStyled as ResultCountCaption, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, } from '../../../styles';
|
|
9
9
|
import { TableCellType } from '../../../types';
|
|
10
|
-
import { SSIStatusLabel } from '../../../index';
|
|
11
10
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
12
11
|
const ref = React.useRef(null);
|
|
13
12
|
React.useEffect(() => {
|
|
@@ -25,9 +24,6 @@ const getCellFormatting = (type, value, truncationLength) => {
|
|
|
25
24
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
26
25
|
return _jsx(LabelCell, { children: labels });
|
|
27
26
|
}
|
|
28
|
-
case TableCellType.STATUS: {
|
|
29
|
-
return _jsx(SSIStatusLabel, { status: value });
|
|
30
|
-
}
|
|
31
27
|
default:
|
|
32
28
|
return _jsx("div", {});
|
|
33
29
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,8 +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 SSILoader from './components/assets/loaders/SSILoader';
|
|
23
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
24
25
|
export * from './styles/components/fonts';
|
|
25
26
|
export * from './types';
|
|
26
27
|
export * from './helpers';
|
|
27
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIHoverText, };
|
|
28
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSILoader, SSIHoverText, };
|
package/dist/index.js
CHANGED
|
@@ -20,8 +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 SSILoader from './components/assets/loaders/SSILoader';
|
|
23
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
24
25
|
export * from './styles/components/fonts';
|
|
25
26
|
export * from './types';
|
|
26
27
|
export * from './helpers';
|
|
27
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIHoverText, };
|
|
28
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSILoader, SSIHoverText, };
|
|
@@ -4,7 +4,6 @@ import { SSITextH5LightStyled } from '../../fonts';
|
|
|
4
4
|
export const SSIStatusLabelContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
5
|
border-radius: 9px;
|
|
6
6
|
border: 1px solid #000;
|
|
7
|
-
width: fit-content;
|
|
8
7
|
`;
|
|
9
8
|
export const SSIStatusLabelStatusCaptionStyled = styled(SSITextH5LightStyled) `
|
|
10
9
|
margin-left: 7px;
|
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.43+dac751a",
|
|
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,8 +28,9 @@
|
|
|
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.43+dac751a",
|
|
32
32
|
"@tanstack/react-table": "^8.9.3",
|
|
33
|
+
"react-loader-spinner": "^5.4.5",
|
|
33
34
|
"react-toastify": "^9.1.3",
|
|
34
35
|
"styled-components": "^5.3.3"
|
|
35
36
|
},
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"react": ">= 16.8.0"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "dac751a8a7035c8222c86b86c91eadcb2c933980"
|
|
45
46
|
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|