@sphereon/ui-components.ssi-react 0.1.3-unstable.99 → 0.2.1-next.105
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/LICENSE +201 -636
- package/dist/@config/toasts/index.d.ts +2 -3
- package/dist/components/assets/icons/CopyIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/CopyIcon/index.js +7 -0
- package/dist/components/assets/icons/{BitterballenIcon → CrossIcon}/index.d.ts +2 -2
- package/dist/components/assets/icons/CrossIcon/index.js +7 -0
- package/dist/components/assets/icons/DeleteIcon/index.d.ts +2 -1
- package/dist/components/assets/icons/DeleteIcon/index.js +2 -2
- package/dist/components/assets/icons/DocumentIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/DocumentIcon/index.js +7 -0
- package/dist/components/assets/icons/ImageIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/ImageIcon/index.js +7 -0
- package/dist/components/assets/icons/MeatBallsIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/MeatBallsIcon/index.js +7 -0
- package/dist/components/assets/icons/PencilIcon/index.d.ts +8 -0
- package/dist/components/assets/icons/PencilIcon/index.js +7 -0
- package/dist/components/assets/icons/SSIAddIcon/index.js +1 -1
- package/dist/components/assets/icons/SSIArrowDownIcon/index.js +1 -1
- package/dist/components/assets/icons/SSIFilterIcon/index.js +1 -1
- package/dist/components/assets/icons/ViewIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/ViewIcon/index.js +7 -0
- package/dist/components/assets/images/WarningImage/index.d.ts +8 -0
- package/dist/components/assets/images/WarningImage/index.js +6 -0
- package/dist/components/assets/placeholders/PersonPlaceholder/index.d.ts +9 -0
- package/dist/components/assets/placeholders/PersonPlaceholder/index.js +7 -0
- package/dist/components/buttons/IconButton/index.d.ts +11 -0
- package/dist/components/buttons/IconButton/index.js +17 -0
- package/dist/components/buttons/{SSISecondaryButton → PrimaryButton}/index.d.ts +3 -3
- package/dist/components/buttons/{SSIPrimaryButton → PrimaryButton}/index.js +5 -4
- package/dist/components/buttons/{SSIPrimaryButton → SecondaryButton}/index.d.ts +3 -3
- package/dist/components/buttons/{SSISecondaryButton → SecondaryButton}/index.js +5 -4
- package/dist/components/fields/ComboBox/index.d.ts +21 -0
- package/dist/components/fields/ComboBox/index.js +51 -0
- package/dist/components/fields/DragAndDropBox/index.d.ts +8 -0
- package/dist/components/fields/DragAndDropBox/index.js +30 -0
- package/dist/components/fields/FileSelection/index.d.ts +12 -0
- package/dist/components/fields/FileSelection/index.js +32 -0
- package/dist/components/fields/JSONForms/PassportPhotoControl/index.d.ts +5 -0
- package/dist/components/fields/JSONForms/PassportPhotoControl/index.js +34 -0
- package/dist/components/fields/SSICheckbox/index.d.ts +2 -1
- package/dist/components/fields/SSICheckbox/index.js +2 -2
- package/dist/components/fields/SSIHoverText/index.js +1 -1
- package/dist/components/fields/TextInputField/index.d.ts +12 -0
- package/dist/components/fields/TextInputField/index.js +20 -0
- package/dist/components/indicators/ProgressStepIndicator/index.js +5 -4
- package/dist/components/lists/DropDownList/index.d.ts +10 -0
- package/dist/components/lists/DropDownList/index.js +34 -0
- package/dist/components/lists/DropDownListItem/index.d.ts +13 -0
- package/dist/components/lists/DropDownListItem/index.js +15 -0
- package/dist/components/views/CredentialIssuanceWizardView/index.d.ts +10 -0
- package/dist/components/views/CredentialIssuanceWizardView/index.js +40 -0
- package/dist/components/views/CredentialMiniCardView/index.js +1 -1
- package/dist/components/views/CredentialViewItem/index.d.ts +16 -0
- package/dist/components/views/CredentialViewItem/index.js +14 -0
- package/dist/components/views/FormView/index.d.ts +20 -0
- package/dist/components/views/FormView/index.js +12 -0
- package/dist/components/views/FormView/styles.css +105 -0
- package/dist/components/views/InformationRequestView/index.d.ts +14 -0
- package/dist/components/views/InformationRequestView/index.js +14 -0
- package/dist/components/views/JSONDataView/index.d.ts +8 -0
- package/dist/components/views/JSONDataView/index.js +83 -0
- package/dist/components/views/SSITabView/SSITabViewHeader/index.js +1 -1
- package/dist/components/views/SSITableView/PaginationControls/index.d.ts +8 -0
- package/dist/components/views/SSITableView/PaginationControls/index.js +9 -0
- package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +1 -0
- package/dist/components/views/SSITableView/SSITableViewHeader/index.js +9 -7
- package/dist/components/views/SSITableView/index.d.ts +5 -2
- package/dist/components/views/SSITableView/index.js +77 -46
- package/dist/index.d.ts +29 -7
- package/dist/index.js +28 -5
- package/dist/renders/jsonFormsRenders.d.ts +2 -0
- package/dist/renders/jsonFormsRenders.js +6 -0
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.d.ts +14 -0
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.js +55 -0
- package/dist/styles/components/components/CredentialViewItem/index.d.ts +14 -0
- package/dist/styles/components/components/CredentialViewItem/index.js +28 -0
- package/dist/styles/components/components/DragAndDropBox/index.d.ts +7 -0
- package/dist/styles/components/components/DragAndDropBox/index.js +25 -0
- package/dist/styles/components/components/DropDownList/index.d.ts +6 -0
- package/dist/styles/components/components/DropDownList/index.js +21 -0
- package/dist/styles/components/components/DropDownListItem/index.d.ts +8 -0
- package/dist/styles/components/components/DropDownListItem/index.js +21 -0
- package/dist/styles/components/components/FileSelectionField/index.d.ts +15 -0
- package/dist/styles/components/components/FileSelectionField/index.js +64 -0
- package/dist/styles/components/components/IconButton/index.d.ts +2 -0
- package/dist/styles/components/components/{SSIIconButton → IconButton}/index.js +5 -3
- package/dist/styles/components/components/InformationRequestView/index.d.ts +31 -0
- package/dist/styles/components/components/InformationRequestView/index.js +86 -0
- package/dist/styles/components/components/JSONDataView/index.d.ts +8 -0
- package/dist/styles/components/components/JSONDataView/index.js +47 -0
- package/dist/styles/components/components/Pagination/index.d.ts +5 -0
- package/dist/styles/components/components/Pagination/index.js +71 -0
- package/dist/styles/components/components/PassportPhotoControl/index.d.ts +5 -0
- package/dist/styles/components/components/PassportPhotoControl/index.js +27 -0
- package/dist/styles/components/components/PrimaryButton/index.d.ts +4 -0
- package/dist/styles/components/components/{SSIPrimaryButton → PrimaryButton}/index.js +3 -2
- package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +14 -8
- package/dist/styles/components/components/ProgressStepIndicator/index.js +11 -0
- package/dist/styles/components/components/SSICheckbox/index.d.ts +9 -4
- package/dist/styles/components/components/SSICheckbox/index.js +2 -2
- package/dist/styles/components/components/SSICredentialCardView/index.d.ts +28 -13
- package/dist/styles/components/components/SSICredentialCardView/index.js +1 -0
- package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +5 -2
- package/dist/styles/components/components/SSIHoverText/index.d.ts +4 -3
- package/dist/styles/components/components/SSIProfileIcon/index.d.ts +2 -1
- package/dist/styles/components/components/SSIStatusLabel/index.d.ts +8 -3
- package/dist/styles/components/components/SSIStatusLabel/index.js +1 -0
- package/dist/styles/components/components/SSITabView/index.d.ts +2 -1
- package/dist/styles/components/components/SSITabView/index.js +1 -1
- package/dist/styles/components/components/SSITabViewHeader/index.d.ts +6 -2
- package/dist/styles/components/components/SSITabViewHeader/index.js +5 -0
- package/dist/styles/components/components/SSITableView/index.d.ts +12 -7
- package/dist/styles/components/components/SSITableView/index.js +21 -3
- package/dist/styles/components/components/SSITableViewHeader/index.d.ts +11 -5
- package/dist/styles/components/components/SSITableViewHeader/index.js +8 -0
- package/dist/styles/components/components/SSIToast/index.d.ts +11 -4
- package/dist/styles/components/components/SSIToast/index.js +2 -2
- package/dist/styles/components/components/SSIToastContainer/index.d.ts +3 -1
- package/dist/styles/components/components/SSITypeLabel/index.d.ts +4 -1
- package/dist/styles/components/components/SecondaryButton/index.d.ts +7 -0
- package/dist/styles/components/components/{SSISecondaryButton → SecondaryButton}/index.js +5 -3
- package/dist/styles/components/components/StepMarker/index.d.ts +5 -4
- package/dist/styles/components/components/TextInputField/index.d.ts +3 -0
- package/dist/styles/components/components/TextInputField/index.js +27 -0
- package/dist/styles/components/components/buttons/index.d.ts +4 -0
- package/dist/styles/components/components/buttons/index.js +4 -0
- package/dist/styles/components/components/index.d.ts +15 -5
- package/dist/styles/components/components/index.js +15 -5
- package/dist/styles/components/containers/index.d.ts +7 -4
- package/dist/styles/css/index.d.ts +12 -10
- package/dist/styles/css/index.js +14 -0
- package/dist/styles/fonts/index.d.ts +29 -16
- package/dist/styles/fonts/index.js +23 -13
- package/dist/styles/typography.js +6 -0
- package/dist/types/button/index.d.ts +2 -1
- package/dist/types/field/index.d.ts +21 -0
- package/dist/types/field/index.js +10 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/indicator/index.d.ts +1 -0
- package/dist/types/table/index.d.ts +24 -14
- package/dist/types/table/index.js +3 -0
- package/dist/types/view/index.d.ts +13 -0
- package/dist/types/view/index.js +1 -0
- package/dist/utils/FileUtils.d.ts +1 -0
- package/dist/utils/FileUtils.js +7 -0
- package/dist/utils/IconUtils.d.ts +3 -0
- package/dist/utils/IconUtils.js +32 -0
- package/dist/utils/ImageUtils.d.ts +2 -0
- package/dist/utils/ImageUtils.js +12 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/package.json +25 -9
- package/dist/components/assets/icons/BitterballenIcon/index.js +0 -7
- package/dist/components/buttons/RowActionMenuButton/index.d.ts +0 -13
- package/dist/components/buttons/RowActionMenuButton/index.js +0 -28
- package/dist/components/buttons/SSIIconButton/index.d.ts +0 -10
- package/dist/components/buttons/SSIIconButton/index.js +0 -29
- package/dist/components/lists/SSIDropDownList/index.d.ts +0 -7
- package/dist/components/lists/SSIDropDownList/index.js +0 -11
- package/dist/styles/components/components/RowActionMenuButton/index.d.ts +0 -4
- package/dist/styles/components/components/RowActionMenuButton/index.js +0 -27
- package/dist/styles/components/components/SSIDropDownList/index.d.ts +0 -2
- package/dist/styles/components/components/SSIDropDownList/index.js +0 -12
- package/dist/styles/components/components/SSIIconButton/index.d.ts +0 -1
- package/dist/styles/components/components/SSIPrimaryButton/index.d.ts +0 -1
- package/dist/styles/components/components/SSISecondaryButton/index.d.ts +0 -2
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ColumnResizeMode, Row } from '@tanstack/react-table';
|
|
3
|
-
import {
|
|
3
|
+
import { Button, ColumnHeader } from '../../../types';
|
|
4
|
+
import { PaginationControlsProps } from './PaginationControls';
|
|
4
5
|
type Props<T> = {
|
|
5
6
|
data: Array<T>;
|
|
6
7
|
columns: Array<ColumnHeader<T>>;
|
|
7
8
|
onRowClick?: (data: Row<T>) => Promise<void>;
|
|
9
|
+
onDelete?: (rows: Array<T>) => Promise<void>;
|
|
8
10
|
enableRowSelection?: boolean;
|
|
11
|
+
enableRowHover?: boolean;
|
|
9
12
|
enableFiltering?: boolean;
|
|
10
13
|
enableMostRecent?: boolean;
|
|
11
14
|
enableResultCount?: boolean;
|
|
12
15
|
columnResizeMode?: ColumnResizeMode;
|
|
13
16
|
actions?: Array<Button>;
|
|
14
|
-
|
|
17
|
+
pagination?: PaginationControlsProps;
|
|
15
18
|
};
|
|
16
19
|
declare const SSITableView: <T extends {}>(props: Props<T>) => ReactElement;
|
|
17
20
|
export default SSITableView;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
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
|
-
import { ButtonIcon, Localization } from '@sphereon/ui-components.core';
|
|
4
|
+
import { ButtonIcon, Localization, selectionElementColors } from '@sphereon/ui-components.core';
|
|
5
5
|
import SSITableViewHeader from './SSITableViewHeader';
|
|
6
6
|
import SSITypeLabel from '../../labels/SSITypeLabel';
|
|
7
7
|
import SSIHoverText from '../../fields/SSIHoverText';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import SSIStatusLabel from '../../labels/SSIStatusLabel';
|
|
9
|
+
import CredentialMiniCardView from '../CredentialMiniCardView';
|
|
10
|
+
import DropDownList from '../../lists/DropDownList';
|
|
11
|
+
import { SSITableViewCellContainerStyled as CellContainer, SSITableViewContainerStyled as Container, SSITableViewHeaderCellContainerStyled as HeaderCellContainer, SSITableViewLabelCellStyled as LabelCell, SSITableViewResultCountCaptionStyled as ResultCountCaption, SSITableViewHeaderRowContainerStyled as HeaderRowContainer, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, TableViewRowSelectionCheckboxContainerStyled as RowSelectionCheckboxContainer, } from '../../../styles';
|
|
12
|
+
import { TableCellType, } from '../../../types';
|
|
13
|
+
import PaginationControls from './PaginationControls';
|
|
14
|
+
import ComboBox from '../../fields/ComboBox';
|
|
15
|
+
import CredentialDetailsView from '../CredentialViewItem';
|
|
12
16
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
13
17
|
const ref = React.useRef(null);
|
|
14
18
|
React.useEffect(() => {
|
|
@@ -18,10 +22,10 @@ function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
|
18
22
|
}, [ref, indeterminate]);
|
|
19
23
|
return _jsx("input", { type: "checkbox", ref: ref, className: className + ' cursor-pointer', ...rest });
|
|
20
24
|
}
|
|
21
|
-
const getCellFormatting = (type, value,
|
|
25
|
+
const getCellFormatting = (type, value, row, options) => {
|
|
22
26
|
switch (type) {
|
|
23
27
|
case TableCellType.TEXT:
|
|
24
|
-
const { truncationLength, enableHover = false } =
|
|
28
|
+
const { truncationLength, enableHover = false } = options ?? {};
|
|
25
29
|
return _jsx(SSIHoverText, { text: value, truncationLength: truncationLength, enableHover: enableHover });
|
|
26
30
|
case TableCellType.LABEL: {
|
|
27
31
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
@@ -33,21 +37,44 @@ const getCellFormatting = (type, value, opts) => {
|
|
|
33
37
|
case TableCellType.CREDENTIAL_CARD: {
|
|
34
38
|
return _jsx(CredentialMiniCardView, { ...value });
|
|
35
39
|
}
|
|
40
|
+
case TableCellType.CREDENTIAL_DETAILS: {
|
|
41
|
+
return _jsx(CredentialDetailsView, { ...value, style: { maxWidth: 261 } });
|
|
42
|
+
}
|
|
43
|
+
case TableCellType.ACTIONS: {
|
|
44
|
+
const { actions = [] } = options ?? {};
|
|
45
|
+
const buttons = actions.map((action) => ({
|
|
46
|
+
...action,
|
|
47
|
+
onClick: () => action.onClick(row),
|
|
48
|
+
}));
|
|
49
|
+
return _jsx(DropDownList, { icon: ButtonIcon.MEATBALLS, buttons: buttons, showBorder: true });
|
|
50
|
+
}
|
|
51
|
+
case TableCellType.COMBOBOX: {
|
|
52
|
+
const { defaultValue, onChange, selectOptions = [] } = options ?? {};
|
|
53
|
+
return _jsx(ComboBox, { defaultValue: defaultValue, value: value, onChange: onChange, options: selectOptions });
|
|
54
|
+
}
|
|
36
55
|
default:
|
|
37
56
|
return _jsx("div", {});
|
|
38
57
|
}
|
|
39
58
|
};
|
|
59
|
+
const toRowSelectionObject = (rows) => {
|
|
60
|
+
const rowSelectionObject = {};
|
|
61
|
+
rows.forEach((row) => {
|
|
62
|
+
rowSelectionObject[row.rowId] = true;
|
|
63
|
+
});
|
|
64
|
+
return rowSelectionObject;
|
|
65
|
+
};
|
|
40
66
|
const SSITableView = (props) => {
|
|
41
|
-
const { columns, data, enableRowSelection = false, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [],
|
|
42
|
-
const [rowSelection, setRowSelection] = React.useState(
|
|
67
|
+
const { columns, data, enableRowSelection = false, enableRowHover = true, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [], onRowClick, onDelete, pagination, } = props;
|
|
68
|
+
const [rowSelection, setRowSelection] = React.useState([]);
|
|
69
|
+
const [focusedRowId, setFocusedRowId] = React.useState();
|
|
43
70
|
const columnHelper = createColumnHelper();
|
|
44
71
|
let availableColumns = columns.map((header) => columnHelper.accessor(header.accessor, {
|
|
45
72
|
id: header.accessor,
|
|
46
73
|
header: header.label,
|
|
47
|
-
cell: (info) => getCellFormatting(header.type, info.getValue(), header.
|
|
48
|
-
minSize: header.
|
|
49
|
-
maxSize: header.
|
|
50
|
-
size: header.
|
|
74
|
+
cell: (info) => getCellFormatting(header.type, info.getValue(), info.row, header.columnOptions?.cellOptions),
|
|
75
|
+
minSize: header.columnOptions?.columnMinWidth,
|
|
76
|
+
maxSize: header.columnOptions?.columnMaxWidth,
|
|
77
|
+
size: header.columnOptions?.columnWidth,
|
|
51
78
|
}));
|
|
52
79
|
if (enableRowSelection) {
|
|
53
80
|
availableColumns = [
|
|
@@ -58,60 +85,64 @@ const SSITableView = (props) => {
|
|
|
58
85
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
59
86
|
onChange: table.getToggleAllRowsSelectedHandler(),
|
|
60
87
|
} })),
|
|
61
|
-
cell: ({ row }) => (_jsx(
|
|
88
|
+
cell: ({ row }) => (_jsx(RowSelectionCheckboxContainer, { children: (row.id === focusedRowId || rowSelection.length > 0) && (_jsx(IndeterminateCheckbox, { ...{
|
|
62
89
|
checked: row.getIsSelected(),
|
|
63
90
|
disabled: !row.getCanSelect(),
|
|
64
91
|
indeterminate: row.getIsSomeSelected(),
|
|
65
92
|
onChange: row.getToggleSelectedHandler(),
|
|
66
|
-
} }) })),
|
|
93
|
+
} })) })),
|
|
67
94
|
},
|
|
68
95
|
...availableColumns,
|
|
69
96
|
];
|
|
70
97
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
98
|
+
const onFocusRow = (rowId) => {
|
|
99
|
+
setFocusedRowId(rowId);
|
|
100
|
+
};
|
|
101
|
+
const onRowSelectionChange = (updatedRowSelection) => {
|
|
102
|
+
const currentRowSelection = updatedRowSelection(toRowSelectionObject(rowSelection));
|
|
103
|
+
const selection = Object.keys(currentRowSelection).map((key) => {
|
|
104
|
+
return {
|
|
105
|
+
rowId: key,
|
|
106
|
+
rowData: data[Number(key)],
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
setRowSelection(selection);
|
|
110
|
+
};
|
|
81
111
|
const table = useReactTable({
|
|
82
112
|
defaultColumn: {
|
|
83
113
|
size: 0,
|
|
84
114
|
},
|
|
85
115
|
state: {
|
|
86
|
-
rowSelection,
|
|
116
|
+
rowSelection: toRowSelectionObject(rowSelection),
|
|
87
117
|
},
|
|
88
118
|
enableRowSelection,
|
|
89
|
-
onRowSelectionChange:
|
|
119
|
+
onRowSelectionChange: onRowSelectionChange,
|
|
90
120
|
data,
|
|
91
121
|
columns: availableColumns,
|
|
92
122
|
columnResizeMode,
|
|
93
123
|
getCoreRowModel: getCoreRowModel(),
|
|
94
124
|
});
|
|
95
125
|
const onRowClicked = async (row) => {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
126
|
+
await onRowClick?.(row);
|
|
127
|
+
};
|
|
128
|
+
const onDeleteClicked = async () => {
|
|
129
|
+
await onDelete?.(rowSelection.map((row) => row.rowData));
|
|
99
130
|
};
|
|
100
|
-
return (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
131
|
+
return (_jsxs(Container, { children: [_jsxs("div", { className: "overflow-x-auto", children: [enableResultCount && (_jsx(ResultCountCaption, { children: Localization.translate('result_count_label', {
|
|
132
|
+
count: data.length,
|
|
133
|
+
maxCount: data.length,
|
|
134
|
+
}) })), (enableFiltering || enableMostRecent || actions.length > 0) && (_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering, enableMostRecent: enableMostRecent, ...(onDelete && { onDelete: onDeleteClicked }) })), _jsxs(TableContainer, { children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(HeaderRowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: {
|
|
135
|
+
...(header.column.columnDef.minSize && { minWidth: header.column.columnDef.minSize }),
|
|
136
|
+
...(header.column.columnDef.maxSize && { maxWidth: header.column.columnDef.maxSize }),
|
|
137
|
+
...(header.column.columnDef.size !== 0 && { width: header.column.columnDef.size }),
|
|
138
|
+
}, 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: {
|
|
139
|
+
transform: columnResizeMode === 'onEnd' && header.column.getIsResizing()
|
|
140
|
+
? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)`
|
|
141
|
+
: '',
|
|
142
|
+
} })] }, header.id))) }, headerGroup.id))) }), _jsx("tbody", { children: table.getRowModel().rows.map((row) => (_jsx(RowContainer, { enableHover: enableRowHover, onClick: () => onRowClicked(row), onMouseEnter: () => onFocusRow(row.id), onMouseLeave: () => onFocusRow(), style: { ...(row.getIsSelected() && { backgroundColor: selectionElementColors.selectedRow }) }, children: row.getVisibleCells().map((cell) => (_jsx(CellContainer, { style: {
|
|
143
|
+
...(cell.column.columnDef.minSize && { minWidth: cell.column.columnDef.minSize }),
|
|
144
|
+
...(cell.column.columnDef.maxSize && { maxWidth: cell.column.columnDef.maxSize }),
|
|
145
|
+
...(cell.column.columnDef.size !== 0 && { width: cell.column.columnDef.size }),
|
|
146
|
+
}, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id))) })] })] }), pagination && _jsx(PaginationControls, { ...pagination })] }));
|
|
116
147
|
};
|
|
117
148
|
export default SSITableView;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
|
|
2
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
3
3
|
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
4
|
-
import CredentialMiniCardView from './components/views/CredentialMiniCardView';
|
|
5
|
-
import { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
|
|
4
|
+
import CredentialMiniCardView, { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
|
|
6
5
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
7
6
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
8
7
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -11,22 +10,45 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
|
|
|
11
10
|
import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
|
|
12
11
|
import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
13
12
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
13
|
+
import IconButton from './components/buttons/IconButton';
|
|
14
|
+
import PrimaryButton from './components/buttons/PrimaryButton';
|
|
15
|
+
import DropDownList from './components/lists/DropDownList';
|
|
17
16
|
import SSITableView from './components/views/SSITableView';
|
|
18
17
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
19
18
|
import SSITabView from './components/views/SSITabView';
|
|
20
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
21
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
22
|
-
import
|
|
21
|
+
import SecondaryButton from './components/buttons/SecondaryButton';
|
|
23
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
24
23
|
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
25
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
26
25
|
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
27
26
|
import StepMarker from './components/assets/markers/StepMarker';
|
|
27
|
+
import DocumentIcon from './components/assets/icons/DocumentIcon';
|
|
28
|
+
import CrossIcon from './components/assets/icons/CrossIcon';
|
|
29
|
+
import ImageIcon from './components/assets/icons/ImageIcon';
|
|
30
|
+
import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
|
|
31
|
+
import PencilIcon from './components/assets/icons/PencilIcon';
|
|
32
|
+
import ViewIcon from './components/assets/icons/ViewIcon';
|
|
33
|
+
import CopyIcon from './components/assets/icons/CopyIcon';
|
|
34
|
+
import DeleteIcon from './components/assets/icons/DeleteIcon';
|
|
35
|
+
import FileSelection from './components/fields/FileSelection';
|
|
36
|
+
import ComboBox from './components/fields/ComboBox';
|
|
37
|
+
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
38
|
+
import PersonPlaceholder from './components/assets/placeholders/PersonPlaceholder';
|
|
39
|
+
import PassportPhotoControl, { passportPhotoControlTester } from './components/fields/JSONForms/PassportPhotoControl';
|
|
40
|
+
import CredentialIssuanceWizardView from './components/views/CredentialIssuanceWizardView';
|
|
41
|
+
import PaginationControls from './components/views/SSITableView/PaginationControls';
|
|
42
|
+
import PaginationControlsProps from './components/views/SSITableView/PaginationControls';
|
|
43
|
+
import CredentialViewItem from './components/views/CredentialViewItem';
|
|
44
|
+
import JSONDataView from './components/views/JSONDataView';
|
|
45
|
+
import TextInputField from './components/fields/TextInputField';
|
|
46
|
+
import WarningImage from './components/assets/images/WarningImage';
|
|
47
|
+
import FormView from './components/views/FormView';
|
|
48
|
+
import InformationRequestView from './components/views/InformationRequestView';
|
|
28
49
|
import { Row } from '@tanstack/react-table';
|
|
29
50
|
export * from './styles/fonts';
|
|
30
51
|
export * from './types';
|
|
31
52
|
export * from './helpers';
|
|
32
|
-
export
|
|
53
|
+
export * from './utils';
|
|
54
|
+
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
package/dist/index.js
CHANGED
|
@@ -10,21 +10,44 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
|
|
|
10
10
|
import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
|
|
11
11
|
import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
12
12
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import IconButton from './components/buttons/IconButton';
|
|
14
|
+
import PrimaryButton from './components/buttons/PrimaryButton';
|
|
15
|
+
import DropDownList from './components/lists/DropDownList';
|
|
16
16
|
import SSITableView from './components/views/SSITableView';
|
|
17
17
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
18
18
|
import SSITabView from './components/views/SSITabView';
|
|
19
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
20
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
21
|
-
import
|
|
21
|
+
import SecondaryButton from './components/buttons/SecondaryButton';
|
|
22
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
23
|
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
25
|
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
26
26
|
import StepMarker from './components/assets/markers/StepMarker';
|
|
27
|
+
import DocumentIcon from './components/assets/icons/DocumentIcon';
|
|
28
|
+
import CrossIcon from './components/assets/icons/CrossIcon';
|
|
29
|
+
import ImageIcon from './components/assets/icons/ImageIcon';
|
|
30
|
+
import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
|
|
31
|
+
import PencilIcon from './components/assets/icons/PencilIcon';
|
|
32
|
+
import ViewIcon from './components/assets/icons/ViewIcon';
|
|
33
|
+
import CopyIcon from './components/assets/icons/CopyIcon';
|
|
34
|
+
import DeleteIcon from './components/assets/icons/DeleteIcon';
|
|
35
|
+
import FileSelection from './components/fields/FileSelection';
|
|
36
|
+
import ComboBox from './components/fields/ComboBox';
|
|
37
|
+
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
38
|
+
import PersonPlaceholder from './components/assets/placeholders/PersonPlaceholder';
|
|
39
|
+
import PassportPhotoControl, { passportPhotoControlTester } from './components/fields/JSONForms/PassportPhotoControl';
|
|
40
|
+
import CredentialIssuanceWizardView from './components/views/CredentialIssuanceWizardView';
|
|
41
|
+
import PaginationControls from './components/views/SSITableView/PaginationControls';
|
|
42
|
+
import PaginationControlsProps from './components/views/SSITableView/PaginationControls';
|
|
43
|
+
import CredentialViewItem from './components/views/CredentialViewItem';
|
|
44
|
+
import JSONDataView from './components/views/JSONDataView';
|
|
45
|
+
import TextInputField from './components/fields/TextInputField';
|
|
46
|
+
import WarningImage from './components/assets/images/WarningImage';
|
|
47
|
+
import FormView from './components/views/FormView';
|
|
48
|
+
import InformationRequestView from './components/views/InformationRequestView';
|
|
27
49
|
export * from './styles/fonts';
|
|
28
50
|
export * from './types';
|
|
29
51
|
export * from './helpers';
|
|
30
|
-
export
|
|
52
|
+
export * from './utils';
|
|
53
|
+
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { materialRenderers } from '@jsonforms/material-renderers';
|
|
2
|
+
import PassportPhotoControl, { passportPhotoControlTester } from '../components/fields/JSONForms/PassportPhotoControl';
|
|
3
|
+
export const jsonFormsMaterialRenderers = [
|
|
4
|
+
...materialRenderers,
|
|
5
|
+
{ tester: passportPhotoControlTester, renderer: PassportPhotoControl },
|
|
6
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CredentialIssuanceWizardViewContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const CredentialIssuanceWizardViewCredentialTypeContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const CredentialIssuanceWizardViewCredentialTypeTitleStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, never>> & string;
|
|
7
|
+
export declare const CredentialIssuanceWizardViewFormContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const CredentialIssuanceWizardViewEvidenceContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const CredentialIssuanceWizardViewEvidenceContentContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const CredentialIssuanceWizardViewEvidenceTitleContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const CredentialIssuanceWizardViewEvidenceTitleOptionalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, never>> & string;
|
|
14
|
+
export declare const CredentialIssuanceWizardViewEvidenceFilesContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { backgroundColors, borderColors, SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
|
|
3
|
+
import { SSITextH1SemiBoldStyled, SSITextH2Styled } from '../../../fonts';
|
|
4
|
+
export const CredentialIssuanceWizardViewContainerStyled = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 42px;
|
|
8
|
+
width: 560px;
|
|
9
|
+
height: fit-content;
|
|
10
|
+
`;
|
|
11
|
+
export const CredentialIssuanceWizardViewCredentialTypeContainerStyled = styled.div `
|
|
12
|
+
border: 1px solid ${borderColors.lightGrey};
|
|
13
|
+
${SSIRoundedEdgesCss};
|
|
14
|
+
background-color: ${backgroundColors.primaryLight};
|
|
15
|
+
padding: 24px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 24px;
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
`;
|
|
21
|
+
export const CredentialIssuanceWizardViewCredentialTypeTitleStyled = styled(SSITextH1SemiBoldStyled) `
|
|
22
|
+
text-align: left;
|
|
23
|
+
`;
|
|
24
|
+
export const CredentialIssuanceWizardViewFormContainerStyled = styled.div `
|
|
25
|
+
flex-grow: 1;
|
|
26
|
+
border: 1px solid ${borderColors.lightGrey};
|
|
27
|
+
background-color: ${backgroundColors.primaryLight};
|
|
28
|
+
${SSIRoundedEdgesCss};
|
|
29
|
+
padding: 24px;
|
|
30
|
+
`;
|
|
31
|
+
export const CredentialIssuanceWizardViewEvidenceContainerStyled = styled.div `
|
|
32
|
+
flex-grow: 1;
|
|
33
|
+
border: 1px solid ${borderColors.lightGrey};
|
|
34
|
+
background-color: ${backgroundColors.primaryLight};
|
|
35
|
+
${SSIRoundedEdgesCss};
|
|
36
|
+
padding: 24px;
|
|
37
|
+
`;
|
|
38
|
+
export const CredentialIssuanceWizardViewEvidenceContentContainerStyled = styled.div `
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 24px;
|
|
42
|
+
`;
|
|
43
|
+
export const CredentialIssuanceWizardViewEvidenceTitleContainerStyled = styled.div `
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
gap: 4px;
|
|
47
|
+
`;
|
|
48
|
+
export const CredentialIssuanceWizardViewEvidenceTitleOptionalStyled = styled(SSITextH2Styled) `
|
|
49
|
+
font-style: italic;
|
|
50
|
+
`;
|
|
51
|
+
export const CredentialIssuanceWizardViewEvidenceFilesContainerStyled = styled.div `
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 12px;
|
|
55
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CredentialViewItemContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, never>> & string;
|
|
5
|
+
export declare const CredentialViewItemDetailsContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, never>> & string;
|
|
8
|
+
export declare const CredentialViewItemTitleCaptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
11
|
+
export declare const CredentialViewItemStatusContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const CredentialViewItemExpirationDateCaptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, never>> & string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionColumnViewStyled, SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
+
import { SSITextH3Styled, SSITextH5Styled } from '../../../fonts';
|
|
4
|
+
export const CredentialViewItemContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
|
+
padding: 18px 24px;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`;
|
|
9
|
+
export const CredentialViewItemDetailsContainerStyled = styled(SSIFlexDirectionColumnViewStyled) `
|
|
10
|
+
gap: 6px;
|
|
11
|
+
min-width: 245px;
|
|
12
|
+
`;
|
|
13
|
+
export const CredentialViewItemTitleCaptionStyled = styled(SSITextH3Styled) `
|
|
14
|
+
display: -webkit-box;
|
|
15
|
+
-webkit-line-clamp: 2;
|
|
16
|
+
-webkit-box-orient: vertical;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
word-break: break-all;
|
|
19
|
+
text-overflow: ellipsis;
|
|
20
|
+
`;
|
|
21
|
+
export const CredentialViewItemStatusContainerStyled = styled.div `
|
|
22
|
+
margin-top: 3px;
|
|
23
|
+
margin-left: auto;
|
|
24
|
+
padding-left: 9px;
|
|
25
|
+
`;
|
|
26
|
+
export const CredentialViewItemExpirationDateCaptionStyled = styled(SSITextH5Styled) `
|
|
27
|
+
margin-left: auto;
|
|
28
|
+
`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DragAndDropBoxContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const DragAndDropBoxHiddenInputStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
4
|
+
export declare const DragAndDropBoxCaptionContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const DragAndDropBoxDescriptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, never>> & string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { backgroundColors, borderColors, fontColors } from '@sphereon/ui-components.core';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { SSITextH7RegularStyled } from '../../../fonts';
|
|
4
|
+
export const DragAndDropBoxContainerStyled = styled.div `
|
|
5
|
+
background-color: ${backgroundColors.lightGrey};
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
height: 138px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
border: 1px dashed ${borderColors.lightGrey};
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
`;
|
|
15
|
+
export const DragAndDropBoxHiddenInputStyled = styled.input `
|
|
16
|
+
display: none;
|
|
17
|
+
`;
|
|
18
|
+
export const DragAndDropBoxCaptionContainerStyled = styled.div `
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
`;
|
|
23
|
+
export const DragAndDropBoxDescriptionStyled = styled(SSITextH7RegularStyled) `
|
|
24
|
+
color: ${fontColors.lightGrey};
|
|
25
|
+
`;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DropDownListContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, never>> & string;
|
|
5
|
+
export declare const DropDownListButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const DropDownContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
+
import { backgroundColors } from '@sphereon/ui-components.core';
|
|
4
|
+
export const DropDownListContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
text-align: left;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 2px;
|
|
10
|
+
`;
|
|
11
|
+
export const DropDownListButtonStyled = styled.div `
|
|
12
|
+
display: inline-block !important;
|
|
13
|
+
`;
|
|
14
|
+
export const DropDownContainerStyled = styled.div `
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 100%;
|
|
17
|
+
right: 0;
|
|
18
|
+
width: 250px;
|
|
19
|
+
background-color: ${backgroundColors.primaryLight};
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DropDownListItemContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, never>> & string;
|
|
5
|
+
export declare const DropDownListItemCaptionContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, never>> & string;
|
|
8
|
+
export declare const DropDownListItemIconContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
+
import { SSITextH2Styled } from '../../../fonts';
|
|
4
|
+
import { backgroundColors } from '@sphereon/ui-components.core';
|
|
5
|
+
export const DropDownListItemContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${backgroundColors.primaryLight};
|
|
9
|
+
padding: 10px 16px;
|
|
10
|
+
`;
|
|
11
|
+
export const DropDownListItemCaptionContainerStyled = styled(SSITextH2Styled) `
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-right: 8px;
|
|
14
|
+
`;
|
|
15
|
+
export const DropDownListItemIconContainerStyled = styled.div `
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
margin: 4px;
|
|
20
|
+
margin-right: 12px;
|
|
21
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FileSelectionFieldContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const FileSelectionFieldContentContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const FileSelectionFieldRemoveContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const FileSelectionFieldRemoveButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const FileSelectionFieldRemoveButtonCircleIconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const FileSelectionFieldIconContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const FileSelectionFieldFileDataContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const FileSelectionFieldFileNameCaptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, never>> & string;
|
|
12
|
+
export declare const FileSelectionFieldFileSizeCaptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, never>> & string;
|
|
15
|
+
export declare const FileSelectionFieldPermissionSelectionContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|