@sphereon/ui-components.ssi-react 0.1.3-unstable.7 → 0.1.3-unstable.70
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/@config/toasts/index.d.ts +7 -0
- package/dist/@config/toasts/index.js +13 -0
- package/dist/components/assets/badges/SSICheckmarkBadge/index.js +1 -1
- package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +1 -1
- package/dist/components/assets/icons/SSIAddIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIProfileIcon/index.d.ts +1 -1
- package/dist/components/assets/icons/SSIProfileIcon/index.js +1 -2
- package/dist/components/assets/logos/SSILogo/index.d.ts +1 -1
- package/dist/components/assets/logos/SSILogo/index.js +1 -1
- package/dist/components/buttons/SSIIconButton/index.d.ts +3 -3
- package/dist/components/buttons/SSIIconButton/index.js +5 -6
- package/dist/components/buttons/SSIPrimaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSIPrimaryButton/index.js +3 -4
- package/dist/components/buttons/SSISecondaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSISecondaryButton/index.js +3 -4
- package/dist/components/fields/SSICheckbox/index.d.ts +15 -0
- package/dist/components/fields/SSICheckbox/index.js +21 -0
- package/dist/components/fields/SSIHoverText/index.d.ts +8 -0
- package/dist/components/fields/SSIHoverText/index.js +8 -0
- package/dist/components/indicators/SSIActivityIndicator/index.d.ts +10 -0
- package/dist/components/indicators/SSIActivityIndicator/index.js +8 -0
- package/dist/components/labels/SSIStatusLabel/index.d.ts +1 -1
- package/dist/components/labels/SSIStatusLabel/index.js +1 -1
- package/dist/components/labels/SSITypeLabel/index.d.ts +3 -3
- package/dist/components/labels/SSITypeLabel/index.js +4 -5
- package/dist/components/lists/SSIDropDownList/index.d.ts +1 -1
- package/dist/components/lists/SSIDropDownList/index.js +3 -3
- package/dist/components/messageBoxes/toasts/SSIToast/index.d.ts +11 -0
- package/dist/components/messageBoxes/toasts/SSIToast/index.js +20 -0
- package/dist/components/messageBoxes/toasts/SSIToastContainer/index.d.ts +10 -0
- package/dist/components/messageBoxes/toasts/SSIToastContainer/index.js +7 -0
- package/dist/components/views/{SSICardView → SSICredentialCardView}/index.d.ts +2 -2
- package/dist/components/views/SSICredentialCardView/index.js +24 -0
- package/dist/components/views/{SSIMiniCardView → SSICredentialMiniCardView}/index.d.ts +2 -2
- package/dist/components/views/{SSIMiniCardView → SSICredentialMiniCardView}/index.js +5 -5
- package/dist/components/views/SSITabView/SSITabViewHeader/index.d.ts +2 -2
- package/dist/components/views/SSITabView/SSITabViewHeader/index.js +1 -1
- package/dist/components/views/SSITabView/index.d.ts +2 -2
- package/dist/components/views/SSITabView/index.js +1 -1
- package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +1 -1
- package/dist/components/views/SSITableView/SSITableViewHeader/index.js +3 -5
- package/dist/components/views/SSITableView/index.d.ts +1 -1
- package/dist/components/views/SSITableView/index.js +18 -15
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/toastHelper.d.ts +3 -0
- package/dist/helpers/toastHelper.js +14 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.js +9 -4
- package/dist/styles/components/components/SSICheckbox/index.d.ts +4 -0
- package/dist/styles/components/components/SSICheckbox/index.js +25 -0
- package/dist/styles/components/components/SSICredentialCardView/index.d.ts +13 -0
- package/dist/styles/components/components/SSICredentialCardView/index.js +58 -0
- package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +2 -0
- package/dist/styles/components/components/SSICredentialMiniCardView/index.js +14 -0
- package/dist/styles/components/components/SSIHoverText/index.d.ts +3 -0
- package/dist/styles/components/components/{SSIText → SSIHoverText}/index.js +5 -5
- package/dist/styles/components/components/SSISecondaryButton/index.js +3 -5
- package/dist/styles/components/components/SSIStatusLabel/index.js +1 -0
- package/dist/styles/components/components/SSITabView/index.js +1 -1
- package/dist/styles/components/components/SSIToast/index.d.ts +4 -0
- package/dist/styles/components/components/SSIToast/index.js +24 -0
- package/dist/styles/components/components/SSIToastContainer/index.d.ts +2 -0
- package/dist/styles/components/components/SSIToastContainer/index.js +314 -0
- package/dist/styles/components/components/index.d.ts +7 -2
- package/dist/styles/components/components/index.js +7 -2
- package/dist/styles/components/fonts/index.d.ts +2 -0
- package/dist/styles/components/fonts/index.js +7 -1
- package/dist/styles/css/index.d.ts +1 -0
- package/dist/styles/css/index.js +7 -0
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.js +3 -0
- package/dist/types/button/index.d.ts +7 -0
- package/dist/types/button/index.js +1 -0
- package/dist/types/component/index.d.ts +0 -38
- package/dist/types/component/index.js +1 -16
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.js +3 -1
- package/dist/types/table/index.d.ts +16 -0
- package/dist/types/table/index.js +6 -0
- package/dist/types/toast/index.d.ts +6 -0
- package/dist/types/toast/index.js +1 -0
- package/package.json +5 -3
- package/dist/components/labels/SSIText/index.d.ts +0 -7
- package/dist/components/labels/SSIText/index.js +0 -13
- package/dist/components/views/SSICardView/index.js +0 -24
- package/dist/styles/components/components/SSICardView/index.d.ts +0 -13
- package/dist/styles/components/components/SSICardView/index.js +0 -59
- package/dist/styles/components/components/SSIMiniCardView/index.d.ts +0 -1
- package/dist/styles/components/components/SSIMiniCardView/index.js +0 -10
- package/dist/styles/components/components/SSIText/index.d.ts +0 -3
|
@@ -2,11 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createColumnHelper, flexRender, getCoreRowModel, useReactTable, } from '@tanstack/react-table';
|
|
4
4
|
import { Localization } from '@sphereon/ui-components.core';
|
|
5
|
-
import { TableCellTypeEnum } from '../../../types';
|
|
6
5
|
import SSITableViewHeader from './SSITableViewHeader';
|
|
7
6
|
import SSITypeLabel from '../../labels/SSITypeLabel';
|
|
8
|
-
import
|
|
9
|
-
import { SSITableViewCellContainerStyled as CellContainer, SSITableViewContainerStyled as Container, SSITableViewHeaderCellContainerStyled as HeaderCellContainer, SSITableViewLabelCellStyled as LabelCell, SSITableViewResultCountCaptionStyled as ResultCountCaption, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, } from '../../../styles
|
|
7
|
+
import SSIHoverText from '../../fields/SSIHoverText';
|
|
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
|
+
import { TableCellType } from '../../../types';
|
|
10
|
+
import { SSIStatusLabel } from '../../../index';
|
|
10
11
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
11
12
|
const ref = React.useRef(null);
|
|
12
13
|
React.useEffect(() => {
|
|
@@ -16,26 +17,30 @@ function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
|
16
17
|
}, [ref, indeterminate]);
|
|
17
18
|
return _jsx("input", { type: "checkbox", ref: ref, className: className + ' cursor-pointer', ...rest });
|
|
18
19
|
}
|
|
19
|
-
const getCellFormatting = (type, value,
|
|
20
|
+
const getCellFormatting = (type, value, opts) => {
|
|
20
21
|
switch (type) {
|
|
21
|
-
case
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
case TableCellType.TEXT:
|
|
23
|
+
const { truncationLength, enableHover = false } = opts ?? {};
|
|
24
|
+
return _jsx(SSIHoverText, { text: value, truncationLength: truncationLength, enableHover: enableHover });
|
|
25
|
+
case TableCellType.LABEL: {
|
|
24
26
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
25
27
|
return _jsx(LabelCell, { children: labels });
|
|
26
28
|
}
|
|
29
|
+
case TableCellType.STATUS: {
|
|
30
|
+
return _jsx(SSIStatusLabel, { status: value });
|
|
31
|
+
}
|
|
27
32
|
default:
|
|
28
33
|
return _jsx("div", {});
|
|
29
34
|
}
|
|
30
35
|
};
|
|
31
36
|
const SSITableView = (props) => {
|
|
32
|
-
const { columns, data, enableRowSelection = false, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [], onRowClick } = props;
|
|
37
|
+
const { columns, data, enableRowSelection = false, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [], onRowClick, } = props;
|
|
33
38
|
const [rowSelection, setRowSelection] = React.useState({});
|
|
34
39
|
const columnHelper = createColumnHelper();
|
|
35
40
|
let availableColumns = columns.map((header) => columnHelper.accessor(header.accessor, {
|
|
36
41
|
id: header.accessor,
|
|
37
42
|
header: header.label,
|
|
38
|
-
cell: (info) => getCellFormatting(header.type, info.getValue(), header.
|
|
43
|
+
cell: (info) => getCellFormatting(header.type, info.getValue(), header.opts),
|
|
39
44
|
}));
|
|
40
45
|
if (enableRowSelection) {
|
|
41
46
|
availableColumns = [
|
|
@@ -72,12 +77,10 @@ const SSITableView = (props) => {
|
|
|
72
77
|
await onRowClick(row);
|
|
73
78
|
}
|
|
74
79
|
};
|
|
75
|
-
return (_jsx(Container, { children: _jsxs("div", { className: "overflow-x-auto", children: [enableResultCount &&
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}) }), (enableFiltering || enableMostRecent || actions.length > 0) &&
|
|
80
|
-
_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering, enableMostRecent: enableMostRecent }), _jsxs(TableContainer, { children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(RowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: { width: header.getSize() }, children: [header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()), _jsx("div", { className: `resizer ${header.column.getIsResizing() ? 'isResizing' : ''}`, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), style: {
|
|
80
|
+
return (_jsx(Container, { children: _jsxs("div", { className: "overflow-x-auto", children: [enableResultCount && (_jsx(ResultCountCaption, { children: Localization.translate('result_count_label', {
|
|
81
|
+
count: data.length,
|
|
82
|
+
maxCount: data.length,
|
|
83
|
+
}) })), (enableFiltering || enableMostRecent || actions.length > 0) && (_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering, enableMostRecent: enableMostRecent })), _jsxs(TableContainer, { children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(RowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: { width: header.getSize() }, children: [header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()), _jsx("div", { className: `resizer ${header.column.getIsResizing() ? 'isResizing' : ''}`, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), style: {
|
|
81
84
|
transform: columnResizeMode === 'onEnd' && header.column.getIsResizing()
|
|
82
85
|
? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)`
|
|
83
86
|
: '',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toastHelper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toastHelper';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { toast } from 'react-toastify';
|
|
2
|
+
import { toastConfig } from '../@config/toasts';
|
|
3
|
+
export const showToast = async (type, params) => {
|
|
4
|
+
const { title, message, onClick, props } = params;
|
|
5
|
+
if (!toastConfig.hasOwnProperty(type)) {
|
|
6
|
+
return Promise.reject('Unknown toast type');
|
|
7
|
+
}
|
|
8
|
+
toast(toastConfig[type]({
|
|
9
|
+
title,
|
|
10
|
+
message,
|
|
11
|
+
onClick,
|
|
12
|
+
props,
|
|
13
|
+
}));
|
|
14
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
|
|
1
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
3
|
+
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
4
|
+
import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
|
|
4
5
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
5
6
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
7
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -18,6 +19,11 @@ import SSITabView from './components/views/SSITabView';
|
|
|
18
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
19
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
20
21
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
21
|
-
|
|
22
|
+
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
|
+
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
|
+
import { Row } from '@tanstack/react-table';
|
|
22
26
|
export * from './styles/components/fonts';
|
|
23
|
-
export
|
|
27
|
+
export * from './types';
|
|
28
|
+
export * from './helpers';
|
|
29
|
+
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, Row };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
|
|
1
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
3
|
+
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
4
|
+
import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
|
|
4
5
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
5
6
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
7
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -18,6 +19,10 @@ import SSITabView from './components/views/SSITabView';
|
|
|
18
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
19
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
20
21
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
21
|
-
|
|
22
|
+
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
|
+
import SSIHoverText from './components/fields/SSIHoverText';
|
|
22
25
|
export * from './styles/components/fonts';
|
|
23
|
-
export
|
|
26
|
+
export * from './types';
|
|
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, SSIActivityIndicator, SSIHoverText };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SSICheckboxContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SSICheckboxUnselectedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SSICheckboxSelectedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SSICheckboxLabelContainerStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSITextH4LightStyled } from '../../fonts';
|
|
3
|
+
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
4
|
+
export const SSICheckboxContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
`;
|
|
9
|
+
export const SSICheckboxUnselectedContainerStyled = styled.div `
|
|
10
|
+
width: 18px;
|
|
11
|
+
aspect-ratio: 1;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
border-width: 1px;
|
|
14
|
+
`;
|
|
15
|
+
export const SSICheckboxSelectedContainerStyled = styled.div `
|
|
16
|
+
width: 18px;
|
|
17
|
+
aspect-ratio: 1;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
`;
|
|
22
|
+
export const SSICheckboxLabelContainerStyled = styled(SSITextH4LightStyled) `
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const SSICredentialCardViewContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SSICredentialCardViewBackgroundImageStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SSICredentialCardViewHeaderContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SSICredentialCardViewHeaderLogoContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const SSICredentialCardViewHeaderTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const SSICredentialCardViewContentMainContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const SSICredentialCardViewContentSubContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const SSICredentialCardViewContentIssueNameContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const SSICredentialCardViewContentPropertiesContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const SSICredentialCardViewFooterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const SSICredentialCardViewCredentialTitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
12
|
+
export declare const SSICredentialCardViewCredentialSubtitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
13
|
+
export declare const SSICredentialCardViewStatusContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionColumnViewStyled, SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
|
|
3
|
+
import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../fonts';
|
|
4
|
+
export const SSICredentialCardViewContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
5
|
+
width: 327px;
|
|
6
|
+
height: 186px;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
user-select: none;
|
|
10
|
+
`;
|
|
11
|
+
export const SSICredentialCardViewBackgroundImageStyled = styled(SSIFlexDirectionColumnViewStyled) `
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
`;
|
|
14
|
+
export const SSICredentialCardViewHeaderContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
15
|
+
height: 32px;
|
|
16
|
+
margin-top: 16px;
|
|
17
|
+
`;
|
|
18
|
+
export const SSICredentialCardViewHeaderLogoContainerStyled = styled.div `
|
|
19
|
+
margin: 0 12px 0 9px;
|
|
20
|
+
`;
|
|
21
|
+
export const SSICredentialCardViewHeaderTitleContainerStyled = styled.div `
|
|
22
|
+
text-align: end;
|
|
23
|
+
margin: 0 13px 0 auto;
|
|
24
|
+
`;
|
|
25
|
+
export const SSICredentialCardViewContentMainContainerStyled = styled.div `
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
`;
|
|
29
|
+
export const SSICredentialCardViewContentSubContainerStyled = styled.div `
|
|
30
|
+
margin-top: auto;
|
|
31
|
+
`;
|
|
32
|
+
export const SSICredentialCardViewContentIssueNameContainerStyled = styled.div `
|
|
33
|
+
padding: 2px 9px 2px 12px;
|
|
34
|
+
`;
|
|
35
|
+
export const SSICredentialCardViewContentPropertiesContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
margin: 1px 0;
|
|
38
|
+
padding: 2px 9px 4px 12px;
|
|
39
|
+
`;
|
|
40
|
+
export const SSICredentialCardViewFooterContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
41
|
+
margin-top: auto;
|
|
42
|
+
backdrop-filter: blur(3px);
|
|
43
|
+
background-color: rgba(255, 255, 255, 0.25);
|
|
44
|
+
padding: 12px;
|
|
45
|
+
`;
|
|
46
|
+
export const SSICredentialCardViewCredentialTitleTextStyled = styled(SSITextH4SemiBoldLightStyled) `
|
|
47
|
+
word-break: break-all;
|
|
48
|
+
display: -webkit-box;
|
|
49
|
+
-webkit-box-orient: vertical;
|
|
50
|
+
-webkit-line-clamp: 2;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
`;
|
|
53
|
+
export const SSICredentialCardViewCredentialSubtitleTextStyled = styled(SSITextH5LightStyled) `
|
|
54
|
+
text-align: right;
|
|
55
|
+
`;
|
|
56
|
+
export const SSICredentialCardViewStatusContainerStyled = styled.div `
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionColumnViewStyled } from '../../containers';
|
|
3
|
+
export const SSICredentialMiniCardViewContainerStyled = styled.div `
|
|
4
|
+
width: 75px;
|
|
5
|
+
height: 50px;
|
|
6
|
+
border-radius: 4.6px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
display: flex;
|
|
9
|
+
`;
|
|
10
|
+
export const SSICredentialMiniCardViewBackgroundImageStyled = styled(SSIFlexDirectionColumnViewStyled) `
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
`;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const SSIHoverTextTextHoverStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
2
|
+
export declare const SSIHoverTextContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SSIHoverTextTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
export const
|
|
2
|
+
export const SSIHoverTextTextHoverStyled = styled.span `
|
|
3
3
|
display: none;
|
|
4
4
|
position: absolute;
|
|
5
5
|
top: 100%;
|
|
@@ -9,13 +9,13 @@ export const SSITruncatedFullTextStyled = styled.span `
|
|
|
9
9
|
padding: 5px;
|
|
10
10
|
z-index: 1;
|
|
11
11
|
`;
|
|
12
|
-
export const
|
|
12
|
+
export const SSIHoverTextContainerStyled = styled.div `
|
|
13
13
|
position: relative;
|
|
14
14
|
|
|
15
|
-
&:hover ${
|
|
15
|
+
&:hover ${SSIHoverTextTextHoverStyled} {
|
|
16
16
|
display: block;
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
|
-
export const
|
|
20
|
-
display:
|
|
19
|
+
export const SSIHoverTextTextStyled = styled.span `
|
|
20
|
+
display: inline;
|
|
21
21
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIRoundedContainerStyled } from '../../containers';
|
|
3
3
|
import { gradientColors } from '@sphereon/ui-components.core';
|
|
4
|
-
import { SSITextH3Styled } from
|
|
4
|
+
import { SSITextH3Styled } from '../../fonts';
|
|
5
5
|
export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
6
|
position: relative;
|
|
7
7
|
display: flex;
|
|
@@ -21,10 +21,8 @@ export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyle
|
|
|
21
21
|
bottom: 0;
|
|
22
22
|
border-radius: 8px;
|
|
23
23
|
border: 1px solid transparent;
|
|
24
|
-
background: linear-gradient(135deg, #
|
|
25
|
-
-webkit-mask:
|
|
26
|
-
linear-gradient(#fff 0 0) padding-box,
|
|
27
|
-
linear-gradient(#fff 0 0);
|
|
24
|
+
background: linear-gradient(135deg, #7276f7, #7c40e8) border-box;
|
|
25
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
28
26
|
-webkit-mask-composite: destination-out;
|
|
29
27
|
mask-composite: exclude;
|
|
30
28
|
}
|
|
@@ -4,6 +4,7 @@ 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;
|
|
7
8
|
`;
|
|
8
9
|
export const SSIStatusLabelStatusCaptionStyled = styled(SSITextH5LightStyled) `
|
|
9
10
|
margin-left: 7px;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SSIToastContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SSIToastBadgeContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SSIToastTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SSIToastMessageTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { alertColors } from '@sphereon/ui-components.core';
|
|
3
|
+
import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
|
|
4
|
+
import { SSITextH4DarkStyled } from '../../fonts';
|
|
5
|
+
export const SSIToastContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
|
+
//TODO we need better width, use a max width and use content to scale
|
|
7
|
+
// 96.8%;
|
|
8
|
+
width: 326px;
|
|
9
|
+
background-color: ${alertColors.secondaryLight};
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
padding: 18px 18px 15px 18px;
|
|
13
|
+
`;
|
|
14
|
+
export const SSIToastBadgeContainerStyled = styled.div `
|
|
15
|
+
margin-right: 10px;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
`;
|
|
18
|
+
export const SSIToastTitleContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
19
|
+
margin-bottom: 12px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
`;
|
|
22
|
+
export const SSIToastMessageTextStyled = styled(SSITextH4DarkStyled) `
|
|
23
|
+
width: 100%;
|
|
24
|
+
`;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SSIToastContainerContainerStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react-toastify").ToastContainerProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|