@sphereon/ui-components.ssi-react 0.1.3-unstable.14 → 0.1.3-unstable.145
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/CrossIcon/index.d.ts +8 -0
- package/dist/components/assets/icons/CrossIcon/index.js +7 -0
- package/dist/components/assets/icons/DeleteIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/DeleteIcon/index.js +7 -0
- 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/SSIAddIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIAddIcon/index.js +2 -2
- package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIArrowDownIcon/index.js +2 -2
- package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIFilterIcon/index.js +2 -2
- 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/markers/StepMarker/index.d.ts +8 -0
- package/dist/components/assets/markers/StepMarker/index.js +26 -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/SSIIconButton/index.d.ts +7 -6
- package/dist/components/buttons/SSIIconButton/index.js +15 -10
- package/dist/components/buttons/SSIPrimaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSIPrimaryButton/index.js +5 -6
- package/dist/components/buttons/SSISecondaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSISecondaryButton/index.js +6 -6
- package/dist/components/fields/ComboBox/index.d.ts +20 -0
- package/dist/components/fields/ComboBox/index.js +45 -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 +33 -0
- package/dist/components/fields/JSONForms/PassportPhotoControl/index.d.ts +5 -0
- package/dist/components/fields/JSONForms/PassportPhotoControl/index.js +37 -0
- 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/ProgressStepIndicator/index.d.ts +9 -0
- package/dist/components/indicators/ProgressStepIndicator/index.js +51 -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 +5 -5
- 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 +23 -0
- 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/CredentialIssuanceWizardView/index.d.ts +10 -0
- package/dist/components/views/CredentialIssuanceWizardView/index.js +43 -0
- package/dist/components/views/CredentialIssuanceWizardView/styles.css +87 -0
- package/dist/components/views/{SSICredentialMiniCardView → CredentialMiniCardView}/index.d.ts +3 -3
- package/dist/components/views/{SSICredentialMiniCardView → CredentialMiniCardView}/index.js +4 -4
- package/dist/components/views/SSICredentialCardView/index.js +3 -3
- 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/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 +2 -1
- package/dist/components/views/SSITableView/SSITableViewHeader/index.js +7 -7
- package/dist/components/views/SSITableView/index.d.ts +4 -1
- package/dist/components/views/SSITableView/index.js +79 -26
- 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 +25 -4
- package/dist/index.js +23 -4
- package/dist/renders/jsonFormsRenders.d.ts +2 -0
- package/dist/renders/jsonFormsRenders.js +6 -0
- package/dist/styles/colors.d.ts +3 -0
- package/dist/styles/colors.js +5 -0
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.d.ts +9 -0
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.js +55 -0
- package/dist/styles/components/components/DragAndDropBox/index.d.ts +4 -0
- package/dist/styles/components/components/DragAndDropBox/index.js +25 -0
- package/dist/styles/components/components/DropDownList/index.d.ts +3 -0
- package/dist/styles/components/components/DropDownList/index.js +21 -0
- package/dist/styles/components/components/DropDownListItem/index.d.ts +3 -0
- package/dist/styles/components/components/DropDownListItem/index.js +21 -0
- package/dist/styles/components/components/FileSelectionField/index.d.ts +10 -0
- package/dist/styles/components/components/FileSelectionField/index.js +64 -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 +4 -0
- package/dist/styles/components/components/PassportPhotoControl/index.js +27 -0
- package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +8 -0
- package/dist/styles/components/components/ProgressStepIndicator/index.js +49 -0
- 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 +2 -2
- package/dist/styles/components/components/SSICredentialCardView/index.js +1 -1
- 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/SSIIconButton/index.js +4 -2
- package/dist/styles/components/components/SSIPrimaryButton/index.js +1 -1
- package/dist/styles/components/components/SSISecondaryButton/index.d.ts +1 -1
- package/dist/styles/components/components/SSISecondaryButton/index.js +5 -10
- package/dist/styles/components/components/SSIStatusLabel/index.d.ts +1 -1
- package/dist/styles/components/components/SSIStatusLabel/index.js +2 -1
- package/dist/styles/components/components/SSITabView/index.js +1 -1
- package/dist/styles/components/components/SSITableView/index.d.ts +1 -0
- package/dist/styles/components/components/SSITableView/index.js +13 -1
- package/dist/styles/components/components/SSITableViewHeader/index.d.ts +1 -0
- package/dist/styles/components/components/SSITableViewHeader/index.js +8 -0
- 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/StepMarker/index.d.ts +4 -0
- package/dist/styles/components/components/StepMarker/index.js +39 -0
- package/dist/styles/components/components/buttons/index.d.ts +1 -0
- package/dist/styles/components/components/buttons/index.js +4 -0
- package/dist/styles/components/components/index.d.ts +15 -1
- package/dist/styles/components/components/index.js +15 -1
- package/dist/styles/components/index.d.ts +0 -1
- package/dist/styles/components/index.js +0 -1
- package/dist/styles/css/index.d.ts +4 -0
- package/dist/styles/css/index.js +28 -0
- package/dist/styles/fonts/index.d.ts +20 -0
- package/dist/styles/fonts/index.js +64 -0
- package/dist/styles/index.d.ts +4 -0
- package/dist/styles/index.js +4 -0
- package/dist/styles/typography.js +12 -0
- package/dist/types/button/index.d.ts +8 -0
- package/dist/types/button/index.js +1 -0
- package/dist/types/field/index.d.ts +21 -0
- package/dist/types/field/index.js +10 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/index.js +6 -1
- package/dist/types/indicator/index.d.ts +9 -0
- package/dist/types/indicator/index.js +6 -0
- package/dist/types/table/index.d.ts +31 -0
- package/dist/types/table/index.js +8 -0
- package/dist/types/toast/index.d.ts +6 -0
- package/dist/types/toast/index.js +1 -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/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +23 -5
- package/dist/components/labels/SSIText/index.d.ts +0 -7
- package/dist/components/labels/SSIText/index.js +0 -13
- package/dist/components/lists/SSIDropDownList/index.d.ts +0 -7
- package/dist/components/lists/SSIDropDownList/index.js +0 -11
- package/dist/styles/components/components/SSIDropDownList/index.d.ts +0 -2
- package/dist/styles/components/components/SSIDropDownList/index.js +0 -15
- package/dist/styles/components/components/SSIText/index.d.ts +0 -3
- package/dist/styles/components/fonts/index.d.ts +0 -12
- package/dist/styles/components/fonts/index.js +0 -39
- package/dist/types/component/index.d.ts +0 -38
- package/dist/types/component/index.js +0 -16
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import { PaginationProps } from '@mui/material';
|
|
3
|
+
export type PaginationControlsProps = PaginationProps & {
|
|
4
|
+
goToInputId?: string;
|
|
5
|
+
containerStyle?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
declare const PaginationControls: FC<PaginationControlsProps>;
|
|
8
|
+
export default PaginationControls;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Stack } from '@mui/material';
|
|
3
|
+
import { GoToInputContainer, GoToInputStyled, PaginationContainerStyled, PaginationStyled } from '../../../../styles';
|
|
4
|
+
import { Localization } from '@sphereon/ui-components.core';
|
|
5
|
+
const PaginationControls = (props) => {
|
|
6
|
+
const { onKeyDown, containerStyle, goToInputId = 'goTo' } = props;
|
|
7
|
+
return (_jsxs(PaginationContainerStyled, { style: containerStyle, children: [_jsx(Stack, { children: _jsx(PaginationStyled, { ...props }) }), _jsxs(GoToInputContainer, { children: [Localization.translate('table_pagination_input_caption_go_to'), _jsx(GoToInputStyled, { id: goToInputId, onKeyDown: onKeyDown }), Localization.translate('table_pagination_input_caption_page')] })] }));
|
|
8
|
+
};
|
|
9
|
+
export default PaginationControls;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '../../../../types';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
enableFiltering?: boolean;
|
|
5
5
|
enableMostRecent?: boolean;
|
|
6
6
|
actions?: Array<Button>;
|
|
7
|
+
onDelete?: () => Promise<void>;
|
|
7
8
|
};
|
|
8
9
|
declare const SSITableViewHeader: React.FC<Props>;
|
|
9
10
|
export default SSITableViewHeader;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Localization } from '@sphereon/ui-components.core';
|
|
2
|
+
import { ButtonIcon, Localization, statusColors } from '@sphereon/ui-components.core';
|
|
3
3
|
import SSIIconButton from '../../../buttons/SSIIconButton';
|
|
4
|
-
import { ButtonIconsEnum } from '../../../../types';
|
|
5
|
-
import SSIDropDownList from '../../../lists/SSIDropDownList';
|
|
6
4
|
import SSIPrimaryButton from '../../../buttons/SSIPrimaryButton';
|
|
7
|
-
import { SSITableViewHeaderActionsContainerStyled as ActionsContainer, SSITableViewHeaderContainerStyled as Container, SSITableViewHeaderContentContainerStyled as ContentContainer, SSITextH3Styled as FilterCaption, SSITableViewHeaderFilterContainerStyled as FilterContainer,
|
|
5
|
+
import { SSITableViewHeaderActionsContainerStyled as ActionsContainer, SSITableViewHeaderContainerStyled as Container, SSITableViewHeaderContentContainerStyled as ContentContainer, SSITextH3Styled as FilterCaption, SSITableViewHeaderFilterContainerStyled as FilterContainer, TableViewHeaderStaticActionsContainerStyled as StaticActionsContainer, } from '../../../../styles';
|
|
8
6
|
const SSITableViewHeader = (props) => {
|
|
9
|
-
const { enableFiltering = false, enableMostRecent = false, actions = [] } = props;
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const { enableFiltering = false, enableMostRecent = false, actions = [], onDelete } = props;
|
|
8
|
+
const onDeleteClick = async () => {
|
|
9
|
+
await onDelete?.();
|
|
10
|
+
};
|
|
11
|
+
return (_jsxs(Container, { children: [_jsx(StaticActionsContainer, { children: onDelete && (_jsx(SSIIconButton, { caption: Localization.translate('action_delete_label'), icon: ButtonIcon.DELETE, iconColor: statusColors.error, onClick: onDeleteClick })) }), _jsx(ContentContainer, { style: { width: 'fit-content' }, children: _jsxs(ActionsContainer, { children: [enableFiltering && (_jsxs(FilterContainer, { children: [_jsx(SSIIconButton, { icon: ButtonIcon.FILTER, onClick: async () => console.log('add filter clicked') }), _jsx(FilterCaption, { children: Localization.translate('action_filter_caption') })] })), actions.map((action, index) => (_jsx(SSIPrimaryButton, { caption: action.caption, onClick: action.onClick, icon: action.icon }, index)))] }) })] }));
|
|
12
12
|
};
|
|
13
13
|
export default SSITableViewHeader;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ColumnResizeMode, Row } from '@tanstack/react-table';
|
|
3
3
|
import { Button, ColumnHeader } from '../../../types';
|
|
4
|
-
|
|
4
|
+
import { PaginationControlsProps } from './PaginationControls';
|
|
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;
|
|
9
11
|
enableFiltering?: boolean;
|
|
10
12
|
enableMostRecent?: boolean;
|
|
11
13
|
enableResultCount?: boolean;
|
|
12
14
|
columnResizeMode?: ColumnResizeMode;
|
|
13
15
|
actions?: Array<Button>;
|
|
16
|
+
pagination?: PaginationControlsProps;
|
|
14
17
|
};
|
|
15
18
|
declare const SSITableView: <T extends {}>(props: Props<T>) => ReactElement;
|
|
16
19
|
export default SSITableView;
|
|
@@ -1,12 +1,16 @@
|
|
|
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 { Localization } from '@sphereon/ui-components.core';
|
|
5
|
-
import { TableCellTypeEnum } from '../../../types';
|
|
4
|
+
import { ButtonIcon, Localization, selectionElementColors } from '@sphereon/ui-components.core';
|
|
6
5
|
import SSITableViewHeader from './SSITableViewHeader';
|
|
7
6
|
import SSITypeLabel from '../../labels/SSITypeLabel';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import SSIHoverText from '../../fields/SSIHoverText';
|
|
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, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, TableViewRowSelectionCheckboxContainerStyled as RowSelectionCheckboxContainer, } from '../../../styles';
|
|
12
|
+
import { TableCellType } from '../../../types';
|
|
13
|
+
import PaginationControls from './PaginationControls';
|
|
10
14
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
11
15
|
const ref = React.useRef(null);
|
|
12
16
|
React.useEffect(() => {
|
|
@@ -16,26 +20,52 @@ function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
|
16
20
|
}, [ref, indeterminate]);
|
|
17
21
|
return _jsx("input", { type: "checkbox", ref: ref, className: className + ' cursor-pointer', ...rest });
|
|
18
22
|
}
|
|
19
|
-
const getCellFormatting = (type, value,
|
|
23
|
+
const getCellFormatting = (type, value, row, opts) => {
|
|
20
24
|
switch (type) {
|
|
21
|
-
case
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
case TableCellType.TEXT:
|
|
26
|
+
const { truncationLength, enableHover = false } = opts ?? {};
|
|
27
|
+
return _jsx(SSIHoverText, { text: value, truncationLength: truncationLength, enableHover: enableHover });
|
|
28
|
+
case TableCellType.LABEL: {
|
|
24
29
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
25
30
|
return _jsx(LabelCell, { children: labels });
|
|
26
31
|
}
|
|
32
|
+
case TableCellType.STATUS: {
|
|
33
|
+
return _jsx(SSIStatusLabel, { status: value });
|
|
34
|
+
}
|
|
35
|
+
case TableCellType.CREDENTIAL_CARD: {
|
|
36
|
+
return _jsx(CredentialMiniCardView, { ...value });
|
|
37
|
+
}
|
|
38
|
+
case TableCellType.ACTION_GROUP: {
|
|
39
|
+
const { actionGroup = { actions: [] } } = opts ?? { actions: [] };
|
|
40
|
+
const actions = actionGroup.actions.map((action) => ({
|
|
41
|
+
...action,
|
|
42
|
+
onClick: () => action.onClick(row),
|
|
43
|
+
}));
|
|
44
|
+
return _jsx(DropDownList, { icon: ButtonIcon.MEATBALLS, buttons: actions, showBorder: true });
|
|
45
|
+
}
|
|
27
46
|
default:
|
|
28
47
|
return _jsx("div", {});
|
|
29
48
|
}
|
|
30
49
|
};
|
|
50
|
+
const toRowSelectionObject = (rows) => {
|
|
51
|
+
const rowSelectionObject = {};
|
|
52
|
+
rows.forEach((row) => {
|
|
53
|
+
rowSelectionObject[row.rowId] = true;
|
|
54
|
+
});
|
|
55
|
+
return rowSelectionObject;
|
|
56
|
+
};
|
|
31
57
|
const SSITableView = (props) => {
|
|
32
|
-
const { columns, data, enableRowSelection = false, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [], onRowClick } = props;
|
|
33
|
-
const [rowSelection, setRowSelection] = React.useState(
|
|
58
|
+
const { columns, data, enableRowSelection = false, enableFiltering = false, enableMostRecent = false, enableResultCount = false, columnResizeMode = 'onChange', actions = [], onRowClick, onDelete, pagination, } = props;
|
|
59
|
+
const [rowSelection, setRowSelection] = React.useState([]);
|
|
60
|
+
const [focusedRowId, setFocusedRowId] = React.useState();
|
|
34
61
|
const columnHelper = createColumnHelper();
|
|
35
62
|
let availableColumns = columns.map((header) => columnHelper.accessor(header.accessor, {
|
|
36
63
|
id: header.accessor,
|
|
37
64
|
header: header.label,
|
|
38
|
-
cell: (info) => getCellFormatting(header.type, info.getValue(), header.
|
|
65
|
+
cell: (info) => getCellFormatting(header.type, info.getValue(), info.row, header.opts),
|
|
66
|
+
minSize: header.opts?.columnMinWidth,
|
|
67
|
+
maxSize: header.opts?.columnMaxWidth,
|
|
68
|
+
size: header.opts?.columnWidth,
|
|
39
69
|
}));
|
|
40
70
|
if (enableRowSelection) {
|
|
41
71
|
availableColumns = [
|
|
@@ -46,41 +76,64 @@ const SSITableView = (props) => {
|
|
|
46
76
|
indeterminate: table.getIsSomeRowsSelected(),
|
|
47
77
|
onChange: table.getToggleAllRowsSelectedHandler(),
|
|
48
78
|
} })),
|
|
49
|
-
cell: ({ row }) => (_jsx(
|
|
79
|
+
cell: ({ row }) => (_jsx(RowSelectionCheckboxContainer, { children: (row.id === focusedRowId || rowSelection.length > 0) && (_jsx(IndeterminateCheckbox, { ...{
|
|
50
80
|
checked: row.getIsSelected(),
|
|
51
81
|
disabled: !row.getCanSelect(),
|
|
52
82
|
indeterminate: row.getIsSomeSelected(),
|
|
53
83
|
onChange: row.getToggleSelectedHandler(),
|
|
54
|
-
} }) })),
|
|
84
|
+
} })) })),
|
|
55
85
|
},
|
|
56
86
|
...availableColumns,
|
|
57
87
|
];
|
|
58
88
|
}
|
|
89
|
+
const onFocusRow = (rowId) => {
|
|
90
|
+
setFocusedRowId(rowId);
|
|
91
|
+
};
|
|
92
|
+
const onRowSelectionChange = (updatedRowSelection) => {
|
|
93
|
+
const currentRowSelection = updatedRowSelection(toRowSelectionObject(rowSelection));
|
|
94
|
+
const selection = Object.keys(currentRowSelection).map((key) => {
|
|
95
|
+
return {
|
|
96
|
+
rowId: key,
|
|
97
|
+
rowData: data[Number(key)],
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
setRowSelection(selection);
|
|
101
|
+
};
|
|
59
102
|
const table = useReactTable({
|
|
103
|
+
defaultColumn: {
|
|
104
|
+
size: 0,
|
|
105
|
+
},
|
|
60
106
|
state: {
|
|
61
|
-
rowSelection,
|
|
107
|
+
rowSelection: toRowSelectionObject(rowSelection),
|
|
62
108
|
},
|
|
63
109
|
enableRowSelection,
|
|
64
|
-
onRowSelectionChange:
|
|
110
|
+
onRowSelectionChange: onRowSelectionChange,
|
|
65
111
|
data,
|
|
66
112
|
columns: availableColumns,
|
|
67
113
|
columnResizeMode,
|
|
68
114
|
getCoreRowModel: getCoreRowModel(),
|
|
69
115
|
});
|
|
70
116
|
const onRowClicked = async (row) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
117
|
+
await onRowClick?.(row);
|
|
118
|
+
};
|
|
119
|
+
const onDeleteClicked = async () => {
|
|
120
|
+
await onDelete?.(rowSelection.map((row) => row.rowData));
|
|
74
121
|
};
|
|
75
|
-
return (
|
|
76
|
-
_jsx(ResultCountCaption, { children: Localization.translate('result_count_label', {
|
|
122
|
+
return (_jsxs(Container, { children: [_jsxs("div", { className: "overflow-x-auto", children: [enableResultCount && (_jsx(ResultCountCaption, { children: Localization.translate('result_count_label', {
|
|
77
123
|
count: data.length,
|
|
78
124
|
maxCount: data.length,
|
|
79
|
-
}) }), (enableFiltering || enableMostRecent || actions.length > 0) &&
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
125
|
+
}) })), (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(RowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: {
|
|
126
|
+
...(header.column.columnDef.minSize && { minWidth: header.column.columnDef.minSize }),
|
|
127
|
+
...(header.column.columnDef.maxSize && { maxWidth: header.column.columnDef.maxSize }),
|
|
128
|
+
...(header.column.columnDef.size !== 0 && { width: header.column.columnDef.size }),
|
|
129
|
+
}, 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: {
|
|
130
|
+
transform: columnResizeMode === 'onEnd' && header.column.getIsResizing()
|
|
131
|
+
? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)`
|
|
132
|
+
: '',
|
|
133
|
+
} })] }, header.id))) }, headerGroup.id))) }), _jsx("tbody", { children: table.getRowModel().rows.map((row) => (_jsx(RowContainer, { onClick: () => onRowClicked(row), onMouseEnter: () => onFocusRow(row.id), onMouseLeave: () => onFocusRow(), style: { ...(row.getIsSelected() && { backgroundColor: selectionElementColors.selectedRow }) }, children: row.getVisibleCells().map((cell) => (_jsx(CellContainer, { style: {
|
|
134
|
+
...(cell.column.columnDef.minSize && { minWidth: cell.column.columnDef.minSize }),
|
|
135
|
+
...(cell.column.columnDef.maxSize && { maxWidth: cell.column.columnDef.maxSize }),
|
|
136
|
+
...(cell.column.columnDef.size !== 0 && { width: cell.column.columnDef.size }),
|
|
137
|
+
}, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id))) })] })] }), pagination && _jsx(PaginationControls, { ...pagination })] }));
|
|
85
138
|
};
|
|
86
139
|
export default SSITableView;
|
|
@@ -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,8 @@
|
|
|
1
|
+
import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
|
|
1
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
2
3
|
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
3
|
-
import
|
|
4
|
+
import CredentialMiniCardView from './components/views/CredentialMiniCardView';
|
|
5
|
+
import { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
|
|
4
6
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
5
7
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
8
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -11,13 +13,32 @@ import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
|
11
13
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
12
14
|
import SSIIconButton from './components/buttons/SSIIconButton';
|
|
13
15
|
import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
|
|
14
|
-
import
|
|
16
|
+
import DropDownList from './components/lists/DropDownList';
|
|
15
17
|
import SSITableView from './components/views/SSITableView';
|
|
16
18
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
17
19
|
import SSITabView from './components/views/SSITabView';
|
|
18
20
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
19
21
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
20
22
|
import SSISecondaryButton from './components/buttons/SSISecondaryButton';
|
|
23
|
+
import SSICheckbox from './components/fields/SSICheckbox';
|
|
24
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
25
|
+
import SSIHoverText from './components/fields/SSIHoverText';
|
|
26
|
+
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
27
|
+
import StepMarker from './components/assets/markers/StepMarker';
|
|
28
|
+
import DocumentIcon from './components/assets/icons/DocumentIcon';
|
|
29
|
+
import CrossIcon from './components/assets/icons/CrossIcon';
|
|
30
|
+
import ImageIcon from './components/assets/icons/ImageIcon';
|
|
31
|
+
import FileSelection from './components/fields/FileSelection';
|
|
32
|
+
import ComboBox from './components/fields/ComboBox';
|
|
33
|
+
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
34
|
+
import PersonPlaceholder from './components/assets/placeholders/PersonPlaceholder';
|
|
35
|
+
import PassportPhotoControl, { passportPhotoControlTester } from './components/fields/JSONForms/PassportPhotoControl';
|
|
36
|
+
import CredentialIssuanceWizardView from './components/views/CredentialIssuanceWizardView';
|
|
37
|
+
import PaginationControls from './components/views/SSITableView/PaginationControls';
|
|
38
|
+
import PaginationControlsProps from './components/views/SSITableView/PaginationControls';
|
|
39
|
+
import { Row } from '@tanstack/react-table';
|
|
40
|
+
export * from './styles/fonts';
|
|
21
41
|
export * from './types';
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
42
|
+
export * from './helpers';
|
|
43
|
+
export * from './utils';
|
|
44
|
+
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, };
|
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
3
|
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
3
|
-
import
|
|
4
|
+
import CredentialMiniCardView from './components/views/CredentialMiniCardView';
|
|
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';
|
|
@@ -11,13 +12,31 @@ import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
|
11
12
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
12
13
|
import SSIIconButton from './components/buttons/SSIIconButton';
|
|
13
14
|
import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
|
|
14
|
-
import
|
|
15
|
+
import DropDownList from './components/lists/DropDownList';
|
|
15
16
|
import SSITableView from './components/views/SSITableView';
|
|
16
17
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
17
18
|
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';
|
|
22
|
+
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
|
+
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
|
+
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
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 FileSelection from './components/fields/FileSelection';
|
|
31
|
+
import ComboBox from './components/fields/ComboBox';
|
|
32
|
+
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
33
|
+
import PersonPlaceholder from './components/assets/placeholders/PersonPlaceholder';
|
|
34
|
+
import PassportPhotoControl, { passportPhotoControlTester } from './components/fields/JSONForms/PassportPhotoControl';
|
|
35
|
+
import CredentialIssuanceWizardView from './components/views/CredentialIssuanceWizardView';
|
|
36
|
+
import PaginationControls from './components/views/SSITableView/PaginationControls';
|
|
37
|
+
import PaginationControlsProps from './components/views/SSITableView/PaginationControls';
|
|
38
|
+
export * from './styles/fonts';
|
|
21
39
|
export * from './types';
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
40
|
+
export * from './helpers';
|
|
41
|
+
export * from './utils';
|
|
42
|
+
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, };
|
|
@@ -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,5 @@
|
|
|
1
|
+
import { gradientsColors } from '@sphereon/ui-components.core';
|
|
2
|
+
export const gradientColors = {
|
|
3
|
+
100: `linear-gradient(135deg, ${gradientsColors[100].primaryColor} 0%, ${gradientsColors[100].secondaryColor} 100%)`,
|
|
4
|
+
200: `linear-gradient(135deg, ${gradientsColors[200].primaryColor} 0%, ${gradientsColors[200].secondaryColor} 100%)`,
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CredentialIssuanceWizardViewContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const CredentialIssuanceWizardViewCredentialTypeContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const CredentialIssuanceWizardViewCredentialTypeTitleStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const CredentialIssuanceWizardViewFormContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const CredentialIssuanceWizardViewEvidenceContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const CredentialIssuanceWizardViewEvidenceContentContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const CredentialIssuanceWizardViewEvidenceTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const CredentialIssuanceWizardViewEvidenceTitleOptionalStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const CredentialIssuanceWizardViewEvidenceFilesContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { backgroundColors, borderColors, SSIRoundedEdgesCss } from "@sphereon/ui-components.core";
|
|
3
|
+
import { SSITextH1SemiBoldDarkStyled, SSITextH2DarkStyled } 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(SSITextH1SemiBoldDarkStyled) `
|
|
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(SSITextH2DarkStyled) `
|
|
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,4 @@
|
|
|
1
|
+
export declare const DragAndDropBoxContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const DragAndDropBoxHiddenInputStyled: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
3
|
+
export declare const DragAndDropBoxCaptionContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const DragAndDropBoxDescriptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -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,3 @@
|
|
|
1
|
+
export declare const DropDownListContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const DropDownListButtonStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const DropDownContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -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,3 @@
|
|
|
1
|
+
export declare const DropDownListItemContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const DropDownListItemCaptionContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const DropDownListItemIconContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
+
import { SSITextH2DarkStyled } 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(SSITextH2DarkStyled) `
|
|
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,10 @@
|
|
|
1
|
+
export declare const FileSelectionFieldContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const FileSelectionFieldContentContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const FileSelectionFieldRemoveContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const FileSelectionFieldRemoveButtonStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const FileSelectionFieldRemoveButtonCircleIconStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const FileSelectionFieldIconContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const FileSelectionFieldFileDataContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const FileSelectionFieldFileNameCaptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const FileSelectionFieldFileSizeCaptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const FileSelectionFieldPermissionSelectionContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { borderColors, fontColors } from '@sphereon/ui-components.core';
|
|
3
|
+
import { SSITextH2SemiBoldDarkStyled, SSITextH7RegularStyled } from '../../../fonts';
|
|
4
|
+
export const FileSelectionFieldContainerStyled = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
border-radius: 6px;
|
|
9
|
+
border: 1px solid ${borderColors.lightGrey};
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
`;
|
|
12
|
+
export const FileSelectionFieldContentContainerStyled = styled.div `
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
padding: 5px 0 5px 8px;
|
|
16
|
+
`;
|
|
17
|
+
export const FileSelectionFieldRemoveContainerStyled = styled.div `
|
|
18
|
+
margin-left: auto;
|
|
19
|
+
border-left: 1px solid ${borderColors.lightGrey};
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
`;
|
|
23
|
+
export const FileSelectionFieldRemoveButtonStyled = styled.div `
|
|
24
|
+
width: 42px;
|
|
25
|
+
height: 42px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
`;
|
|
31
|
+
export const FileSelectionFieldRemoveButtonCircleIconStyled = styled.div `
|
|
32
|
+
width: 20px;
|
|
33
|
+
height: 20px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
border: 1px solid ${borderColors.darkGrey};
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
`;
|
|
40
|
+
export const FileSelectionFieldIconContainerStyled = styled.div `
|
|
41
|
+
margin-right: 12px;
|
|
42
|
+
width: 42px;
|
|
43
|
+
height: 42px;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
`;
|
|
48
|
+
export const FileSelectionFieldFileDataContainerStyled = styled.div `
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
`;
|
|
52
|
+
export const FileSelectionFieldFileNameCaptionStyled = styled(SSITextH2SemiBoldDarkStyled) `
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
max-width: 350px;
|
|
56
|
+
`;
|
|
57
|
+
export const FileSelectionFieldFileSizeCaptionStyled = styled(SSITextH7RegularStyled) `
|
|
58
|
+
color: ${fontColors.lightGrey};
|
|
59
|
+
`;
|
|
60
|
+
export const FileSelectionFieldPermissionSelectionContainerStyled = styled.div `
|
|
61
|
+
width: 152px;
|
|
62
|
+
margin-left: auto;
|
|
63
|
+
margin-right: 5px;
|
|
64
|
+
`;
|