@sphereon/ui-components.ssi-react 0.1.1 → 0.1.2-next.11

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.
Files changed (54) hide show
  1. package/dist/components/assets/icons/SSIAddIcon/index.d.ts +7 -0
  2. package/dist/components/assets/icons/SSIAddIcon/index.js +7 -0
  3. package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +8 -0
  4. package/dist/components/assets/icons/SSIArrowDownIcon/index.js +7 -0
  5. package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +8 -0
  6. package/dist/components/assets/icons/SSIFilterIcon/index.js +7 -0
  7. package/dist/components/assets/icons/SSIProfileIcon/index.d.ts +8 -0
  8. package/dist/components/assets/icons/SSIProfileIcon/index.js +9 -0
  9. package/dist/components/buttons/SSIIconButton/index.d.ts +10 -0
  10. package/dist/components/buttons/SSIIconButton/index.js +24 -0
  11. package/dist/components/buttons/SSIPrimaryButton/index.d.ts +10 -0
  12. package/dist/components/buttons/SSIPrimaryButton/index.js +18 -0
  13. package/dist/components/labels/SSITypeLabel/index.d.ts +7 -0
  14. package/dist/components/labels/SSITypeLabel/index.js +19 -0
  15. package/dist/components/lists/SSIDropDownList/index.d.ts +7 -0
  16. package/dist/components/lists/SSIDropDownList/index.js +11 -0
  17. package/dist/components/views/SSITabView/SSITabViewHeader/index.d.ts +8 -0
  18. package/dist/components/views/SSITabView/SSITabViewHeader/index.js +13 -0
  19. package/dist/components/views/SSITabView/index.d.ts +7 -0
  20. package/dist/components/views/SSITabView/index.js +26 -0
  21. package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +8 -0
  22. package/dist/components/views/SSITableView/SSITableViewHeader/index.js +12 -0
  23. package/dist/components/views/SSITableView/index.d.ts +13 -0
  24. package/dist/components/views/SSITableView/index.js +74 -0
  25. package/dist/index.d.ts +15 -1
  26. package/dist/index.js +15 -1
  27. package/dist/styles/components/components/SSIDropDownList/index.d.ts +2 -0
  28. package/dist/styles/components/components/SSIDropDownList/index.js +15 -0
  29. package/dist/styles/components/components/SSIIconButton/index.d.ts +1 -0
  30. package/dist/styles/components/components/SSIIconButton/index.js +9 -0
  31. package/dist/styles/components/components/SSIPrimaryButton/index.d.ts +1 -0
  32. package/dist/styles/components/components/SSIPrimaryButton/index.js +13 -0
  33. package/dist/styles/components/components/SSIProfileIcon/index.d.ts +1 -0
  34. package/dist/styles/components/components/SSIProfileIcon/index.js +9 -0
  35. package/dist/styles/components/components/SSITabViewHeader/index.d.ts +2 -0
  36. package/dist/styles/components/components/SSITabViewHeader/index.js +10 -0
  37. package/dist/styles/components/components/SSITableView/index.d.ts +6 -0
  38. package/dist/styles/components/components/SSITableView/index.js +36 -0
  39. package/dist/styles/components/components/SSITableViewHeader/index.d.ts +5 -0
  40. package/dist/styles/components/components/SSITableViewHeader/index.js +29 -0
  41. package/dist/styles/components/components/SSITypeLabel/index.d.ts +1 -0
  42. package/dist/styles/components/components/SSITypeLabel/index.js +11 -0
  43. package/dist/styles/components/components/index.d.ts +7 -0
  44. package/dist/styles/components/components/index.js +7 -0
  45. package/dist/styles/components/fonts/index.d.ts +4 -0
  46. package/dist/styles/components/fonts/index.js +17 -21
  47. package/dist/styles/css/index.d.ts +7 -0
  48. package/dist/styles/css/index.js +51 -0
  49. package/dist/styles/typography.js +6 -0
  50. package/dist/types/component/index.d.ts +37 -0
  51. package/dist/types/component/index.js +16 -0
  52. package/dist/types/index.d.ts +1 -0
  53. package/dist/types/index.js +1 -0
  54. package/package.json +4 -3
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface IProps {
3
+ size?: number;
4
+ color?: string;
5
+ }
6
+ declare const SSIAddIcon: FC<IProps>;
7
+ export default SSIAddIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const SSIAddIcon = (props) => {
4
+ const { size = 16, color = fontColors.dark } = props;
5
+ return (_jsx("div", { style: { width: size, aspectRatio: 1, display: 'flex' }, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8 0.5C7.65483 0.5 7.375 0.779833 7.375 1.125V7.37503H1.125C0.779812 7.37503 0.5 7.65484 0.5 8.00003C0.5 8.34519 0.779812 8.62502 1.125 8.62502H7.375V14.875C7.375 15.2202 7.65483 15.5 8 15.5C8.34519 15.5 8.625 15.2202 8.625 14.875V8.62502H14.875C15.2202 8.62502 15.5 8.34519 15.5 8.00003C15.5 7.65484 15.2202 7.37503 14.875 7.37503H8.625V1.125C8.625 0.779833 8.34519 0.5 8 0.5Z", fill: color }) }) }));
6
+ };
7
+ export default SSIAddIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export interface IProps {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ }
7
+ declare const SSIArrowDownIcon: FC<IProps>;
8
+ export default SSIArrowDownIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const SSIArrowDownIcon = (props) => {
4
+ const { width = 16, height = 8, color = fontColors.dark } = props;
5
+ return (_jsx("div", { style: { width, height, display: 'flex' }, children: _jsx("svg", { width: "16", height: "8", viewBox: "0 0 16 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8.03265 7.74886C8.14951 7.74175 8.26065 7.69465 8.34825 7.61511L15.3133 1.19499C15.367 1.1489 15.411 1.09224 15.4429 1.02837C15.4747 0.964504 15.4937 0.894731 15.4987 0.823204C15.5037 0.751676 15.4946 0.67985 15.4719 0.611995C15.4493 0.54414 15.4135 0.481647 15.3668 0.428216C15.3201 0.374784 15.2634 0.331504 15.2001 0.300961C15.1367 0.270419 15.068 0.253238 14.9981 0.250423C14.9281 0.247608 14.8583 0.259221 14.7928 0.28458C14.7273 0.309939 14.6675 0.348517 14.6168 0.398032L8 6.49492L1.38317 0.398032C1.33252 0.348517 1.27268 0.309939 1.20718 0.28458C1.14169 0.259221 1.07189 0.247597 1.00193 0.250412C0.931963 0.253227 0.863266 0.270419 0.799918 0.300961C0.736569 0.331504 0.679861 0.374784 0.633164 0.428216C0.586466 0.481647 0.550732 0.54414 0.528085 0.611995C0.505437 0.67985 0.496338 0.751676 0.501329 0.823204C0.506319 0.894731 0.525297 0.964504 0.557135 1.02837C0.588973 1.09224 0.633022 1.1489 0.686663 1.19499L7.65174 7.61511C7.70344 7.6621 7.76372 7.69811 7.82911 7.72107C7.89449 7.74403 7.96367 7.75348 8.03265 7.74886Z", fill: color }) }) }));
6
+ };
7
+ export default SSIArrowDownIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export interface IProps {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ }
7
+ declare const SSIFilterIcon: FC<IProps>;
8
+ export default SSIFilterIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const SSIFilterIcon = (props) => {
4
+ const { height = 16, width = 18, color = fontColors.dark } = props;
5
+ return (_jsx("div", { style: { width, height, display: 'flex' }, children: _jsx("svg", { width: "18", height: "16", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M16.5 1.5H1.5L7.5 8.33222V13.0556L10.5 14.5V8.33222L16.5 1.5Z", stroke: color, strokeOpacity: "0.8", strokeWidth: "1.29412", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
6
+ };
7
+ export default SSIFilterIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export type Props = {
3
+ fullName: string;
4
+ fontColor?: string;
5
+ backgroundColor?: string;
6
+ };
7
+ declare const ProfileIcon: FC<Props>;
8
+ export default ProfileIcon;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors, getInitials, profileColors } from '@sphereon/ui-components.core';
3
+ import { SSIProfileIconContainerStyled as Container } from '../../../../styles/components/components/SSIProfileIcon';
4
+ import { SSITextH2Styled as ProfileIconText } from '../../../../styles/components';
5
+ const ProfileIcon = (props) => {
6
+ const { fontColor = fontColors.light, backgroundColor = profileColors['100'], fullName } = props;
7
+ return (_jsx(Container, { style: { backgroundColor }, children: _jsx(ProfileIconText, { style: { color: fontColor }, children: getInitials(fullName) }) }));
8
+ };
9
+ export default ProfileIcon;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ButtonIconsEnum } from '../../../types';
3
+ export type Props = {
4
+ icon: ButtonIconsEnum;
5
+ onClick: () => Promise<void>;
6
+ disabled?: boolean;
7
+ color?: string;
8
+ };
9
+ declare const SSIIconButton: FC<Props>;
10
+ export default SSIIconButton;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import SSIAddIcon from '../../assets/icons/SSIAddIcon';
3
+ import SSIFilterIcon from '../../assets/icons/SSIFilterIcon';
4
+ import SSIArrowDownIcon from '../../assets/icons/SSIArrowDownIcon';
5
+ import { ButtonIconsEnum } from '../../../types';
6
+ import { SSIIconButtonContainerStyled as Container } from '../../../styles/components';
7
+ import { fontColors } from '@sphereon/ui-components.core';
8
+ const SSIIconButton = (props) => {
9
+ const { icon, onClick, disabled = false, color = fontColors.dark } = props;
10
+ return _jsx(Container, { onClick: onClick, children: getIcon(icon, color) });
11
+ };
12
+ const getIcon = (icon, color) => {
13
+ switch (icon) {
14
+ case ButtonIconsEnum.ADD:
15
+ return _jsx(SSIAddIcon, { color: color });
16
+ case ButtonIconsEnum.FILTER:
17
+ return _jsx(SSIFilterIcon, { color: color });
18
+ case ButtonIconsEnum.ARROW_DOWN:
19
+ return _jsx(SSIArrowDownIcon, { color: color });
20
+ default:
21
+ return _jsx("div", {});
22
+ }
23
+ };
24
+ export default SSIIconButton;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ButtonIconsEnum } from '../../../types';
3
+ export type Props = {
4
+ caption: string;
5
+ onClick: () => Promise<void>;
6
+ icon?: ButtonIconsEnum;
7
+ disabled?: boolean;
8
+ };
9
+ declare const SSIPrimaryButton: FC<Props>;
10
+ export default SSIPrimaryButton;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ import SSIAddIcon from '../../assets/icons/SSIAddIcon';
4
+ import { SSIPrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles/components';
5
+ import { ButtonIconsEnum } from '../../../types';
6
+ const SSIPrimaryButton = (props) => {
7
+ const { caption, icon, onClick } = props;
8
+ return (_jsxs(Container, { onClick: onClick, children: [icon && getIcon(icon, fontColors.light), _jsx(Caption, { children: caption })] }));
9
+ };
10
+ const getIcon = (icon, color) => {
11
+ switch (icon) {
12
+ case ButtonIconsEnum.ADD:
13
+ return _jsx(SSIAddIcon, { color: color });
14
+ default:
15
+ return _jsx("div", {});
16
+ }
17
+ };
18
+ export default SSIPrimaryButton;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { LabelTypeEnum } from '../../../types';
3
+ export type Props = {
4
+ type: LabelTypeEnum;
5
+ };
6
+ declare const SSITypeLabel: FC<Props>;
7
+ export default SSITypeLabel;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { LabelTypeEnum } from '../../../types';
3
+ import { SSITypeLabelContainerStyled as Container } from '../../../styles/components';
4
+ import { backgroundColors, gradientColors } from '@sphereon/ui-components.core';
5
+ const getBackground = (type) => {
6
+ switch (type) {
7
+ case LabelTypeEnum.ISSUER:
8
+ return gradientColors['200'];
9
+ case LabelTypeEnum.VERIFIER:
10
+ return gradientColors['100'];
11
+ default:
12
+ return backgroundColors.primaryLight;
13
+ }
14
+ };
15
+ const SSITypeLabel = (props) => {
16
+ const { type } = props;
17
+ return _jsx(Container, { style: { background: getBackground(type) }, children: type });
18
+ };
19
+ export default SSITypeLabel;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export type Props = {
3
+ initialValue: string;
4
+ label?: string;
5
+ };
6
+ declare const SSIDropDownList: FC<Props>;
7
+ export default SSIDropDownList;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import SSIIconButton from '../../buttons/SSIIconButton';
4
+ import { ButtonIconsEnum } from '../../../types';
5
+ import { SSIDropDownListContainerStyled as Container, SSITextH3Styled as LabelCaption, SSIDropDownListSelectedValueStyled as SelectedValue, } from '../../../styles/components';
6
+ const SSIDropDownList = (props) => {
7
+ const { initialValue, label } = props;
8
+ const [value, setValue] = React.useState(initialValue);
9
+ return (_jsxs(Container, { children: [label && _jsx(LabelCaption, { children: label }), _jsx(SelectedValue, { children: value }), _jsx(SSIIconButton, { icon: ButtonIconsEnum.ARROW_DOWN, onClick: async () => console.log('drop down clicked') })] }));
10
+ };
11
+ export default SSIDropDownList;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { TabNavigationState } from '../../../../types';
3
+ export type Props = {
4
+ navigationState: TabNavigationState;
5
+ onIndexChange: (index: number) => void;
6
+ };
7
+ declare const SSITabViewHeader: React.FC<Props>;
8
+ export default SSITabViewHeader;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SSITabViewHeaderContainerStyled as Container, SSITabViewHeaderTitleContainerStyled as TitleContainer, SSITextH3Styled as TitleCaption, } from '../../../../styles/components';
3
+ const SSITabViewHeader = (props) => {
4
+ const { navigationState, onIndexChange } = props;
5
+ return (_jsx(Container, { children: navigationState.routes.map((value, index) => {
6
+ const tabIndex = index + 1;
7
+ const isActiveTab = tabIndex === navigationState.index;
8
+ return (_jsx(TitleContainer, { onClick: () => onIndexChange(tabIndex), style: {
9
+ ...(isActiveTab && { borderBottom: `2px solid #7276F7`, alignSelf: 'stretch' }),
10
+ }, children: _jsx(TitleCaption, { style: { fontWeight: !isActiveTab ? '400' : '600' }, children: value.title }) }, tabIndex));
11
+ }) }));
12
+ };
13
+ export default SSITabViewHeader;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TabViewRoute } from '../../../types';
3
+ export type Props = {
4
+ routes: Array<TabViewRoute>;
5
+ };
6
+ declare const SSITabView: React.FC<Props>;
7
+ export default SSITabView;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import SSITabViewHeader from './SSITabViewHeader';
4
+ const Tab = (props) => {
5
+ return _jsx(React.Fragment, { children: props.children });
6
+ };
7
+ const SSITabView = (props) => {
8
+ const { routes = [] } = props;
9
+ const [activeTabIndex, setActiveTabIndex] = React.useState(1);
10
+ const [content, setContent] = React.useState();
11
+ React.useEffect(() => {
12
+ routes.forEach((route, index) => {
13
+ if (index + 1 === activeTabIndex) {
14
+ setContent(route.content);
15
+ }
16
+ });
17
+ }, [routes, activeTabIndex]);
18
+ const onTabChange = async (tabIndex) => {
19
+ setActiveTabIndex(tabIndex);
20
+ };
21
+ return (_jsxs("div", { children: [_jsx(SSITabViewHeader, { navigationState: {
22
+ routes: routes,
23
+ index: activeTabIndex,
24
+ }, onIndexChange: onTabChange }), _jsx(Tab, { children: content })] }));
25
+ };
26
+ export default SSITabView;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Button } from '../../../../types';
3
+ export type Props = {
4
+ enableFiltering?: boolean;
5
+ actions?: Array<Button>;
6
+ };
7
+ declare const SSITableViewHeader: React.FC<Props>;
8
+ export default SSITableViewHeader;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Localization } from '@sphereon/ui-components.core';
3
+ import SSIIconButton from '../../../buttons/SSIIconButton';
4
+ import { ButtonIconsEnum } from '../../../../types';
5
+ import SSIDropDownList from '../../../lists/SSIDropDownList';
6
+ import SSIPrimaryButton from '../../../buttons/SSIPrimaryButton';
7
+ import { SSITableViewHeaderActionsContainerStyled as ActionsContainer, SSITableViewHeaderContainerStyled as Container, SSITableViewHeaderContentContainerStyled as ContentContainer, SSITextH3Styled as FilterCaption, SSITableViewHeaderFilterContainerStyled as FilterContainer, SSITableViewHeaderShowOptionContainerStyled as ShowOptionContainer, } from '../../../../styles/components';
8
+ const SSITableViewHeader = (props) => {
9
+ const { enableFiltering = false, actions = [] } = props;
10
+ return (_jsx(Container, { children: _jsx(ContentContainer, { children: _jsxs(ActionsContainer, { children: [enableFiltering && (_jsxs(FilterContainer, { children: [_jsx(SSIIconButton, { icon: ButtonIconsEnum.FILTER, onClick: async () => console.log('add filter clicked') }), _jsx(FilterCaption, { children: Localization.translate('action_filter_caption') })] })), _jsx(ShowOptionContainer, { children: _jsx(SSIDropDownList, { label: Localization.translate('action_show_caption'), initialValue: 'Most recent' }) }), actions.map((action, index) => (_jsx(SSIPrimaryButton, { caption: action.caption, onClick: action.onClick, icon: action.icon }, index)))] }) }) }));
11
+ };
12
+ export default SSITableViewHeader;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from 'react';
2
+ import { ColumnResizeMode } from '@tanstack/react-table';
3
+ import { Button, ColumnHeader } from '../../../types';
4
+ export type Props<T> = {
5
+ data: Array<T>;
6
+ columns: Array<ColumnHeader<T>>;
7
+ enableRowSelection?: boolean;
8
+ enableFiltering?: boolean;
9
+ columnResizeMode?: ColumnResizeMode;
10
+ actions?: Array<Button>;
11
+ };
12
+ declare const SSITableView: <T extends {}>(props: Props<T>) => ReactElement;
13
+ export default SSITableView;
@@ -0,0 +1,74 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { createColumnHelper, flexRender, getCoreRowModel, useReactTable, } from '@tanstack/react-table';
4
+ import { TableCellTypeEnum } from '../../../types';
5
+ import SSITableViewHeader from './SSITableViewHeader';
6
+ import SSITypeLabel from '../../labels/SSITypeLabel';
7
+ import { SSITableViewCellContainerStyled, SSITableViewContainerStyled, SSITableViewHeaderCellContainerStyled, SSITableViewLabelCellStyled, SSITableViewRowContainerStyled, SSITableViewTableContainerStyled, } from '../../../styles/components';
8
+ function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
9
+ const ref = React.useRef(null);
10
+ React.useEffect(() => {
11
+ if (typeof indeterminate === 'boolean') {
12
+ ref.current.indeterminate = !rest.checked && indeterminate;
13
+ }
14
+ }, [ref, indeterminate]);
15
+ return _jsx("input", { type: "checkbox", ref: ref, className: className + ' cursor-pointer', ...rest });
16
+ }
17
+ const getCellFormatting = (type, value) => {
18
+ switch (type) {
19
+ case TableCellTypeEnum.TEXT:
20
+ return _jsx("p", { children: value });
21
+ case TableCellTypeEnum.LABEL: {
22
+ const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
23
+ return _jsx(SSITableViewLabelCellStyled, { children: labels });
24
+ }
25
+ default:
26
+ return _jsx("div", {});
27
+ }
28
+ };
29
+ const SSITableView = (props) => {
30
+ const { columns, data, enableRowSelection = false, enableFiltering = false, columnResizeMode = 'onChange', actions = [] } = props;
31
+ const [rowSelection, setRowSelection] = React.useState({});
32
+ const columnHelper = createColumnHelper();
33
+ let availableColumns = columns.map((header) => columnHelper.accessor(header.accessor, {
34
+ id: header.accessor,
35
+ header: header.label,
36
+ cell: (info) => getCellFormatting(header.type, info.getValue()),
37
+ }));
38
+ if (enableRowSelection) {
39
+ availableColumns = [
40
+ {
41
+ id: 'select',
42
+ header: ({ table }) => (_jsx(IndeterminateCheckbox, { ...{
43
+ checked: table.getIsAllRowsSelected(),
44
+ indeterminate: table.getIsSomeRowsSelected(),
45
+ onChange: table.getToggleAllRowsSelectedHandler(),
46
+ } })),
47
+ cell: ({ row }) => (_jsx("div", { className: "px-1", children: _jsx(IndeterminateCheckbox, { ...{
48
+ checked: row.getIsSelected(),
49
+ disabled: !row.getCanSelect(),
50
+ indeterminate: row.getIsSomeSelected(),
51
+ onChange: row.getToggleSelectedHandler(),
52
+ } }) })),
53
+ },
54
+ ...availableColumns,
55
+ ];
56
+ }
57
+ const table = useReactTable({
58
+ state: {
59
+ rowSelection,
60
+ },
61
+ enableRowSelection,
62
+ onRowSelectionChange: setRowSelection,
63
+ data,
64
+ columns: availableColumns,
65
+ columnResizeMode,
66
+ getCoreRowModel: getCoreRowModel(),
67
+ });
68
+ return (_jsx(SSITableViewContainerStyled, { children: _jsxs("div", { className: "overflow-x-auto", children: [_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering }), _jsxs(SSITableViewTableContainerStyled, { style: { width: table.getCenterTotalSize() }, children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(SSITableViewRowContainerStyled, { children: headerGroup.headers.map((header) => (_jsxs(SSITableViewHeaderCellContainerStyled, { colSpan: header.colSpan, style: { width: header.getSize() }, children: [header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()), _jsx("div", { className: `resizer ${header.column.getIsResizing() ? 'isResizing' : ''}`, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), style: {
69
+ transform: columnResizeMode === 'onEnd' && header.column.getIsResizing()
70
+ ? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)`
71
+ : '',
72
+ } })] }, header.id))) }, headerGroup.id))) }), _jsx("tbody", { children: table.getRowModel().rows.map((row) => (_jsx(SSITableViewRowContainerStyled, { children: row.getVisibleCells().map((cell) => (_jsx(SSITableViewCellContainerStyled, { style: { width: cell.column.getSize() }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id))) })] })] }) }));
73
+ };
74
+ export default SSITableView;
package/dist/index.d.ts CHANGED
@@ -4,4 +4,18 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
4
4
  import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
5
5
  import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
6
6
  import SSILogo from './components/assets/logos/SSILogo';
7
- export { SSICardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo };
7
+ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
8
+ import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
9
+ import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
10
+ import SSITypeLabel from './components/labels/SSITypeLabel';
11
+ import SSIIconButton from './components/buttons/SSIIconButton';
12
+ import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
13
+ import SSIDropDownList from './components/lists/SSIDropDownList';
14
+ import SSITableView from './components/views/SSITableView';
15
+ import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
16
+ import SSITabView from './components/views/SSITabView';
17
+ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
18
+ import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
19
+ export * from './types';
20
+ export * from './styles/components/fonts';
21
+ export { SSICardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, };
package/dist/index.js CHANGED
@@ -4,4 +4,18 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
4
4
  import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
5
5
  import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
6
6
  import SSILogo from './components/assets/logos/SSILogo';
7
- export { SSICardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo };
7
+ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
8
+ import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
9
+ import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
10
+ import SSITypeLabel from './components/labels/SSITypeLabel';
11
+ import SSIIconButton from './components/buttons/SSIIconButton';
12
+ import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
13
+ import SSIDropDownList from './components/lists/SSIDropDownList';
14
+ import SSITableView from './components/views/SSITableView';
15
+ import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
16
+ import SSITabView from './components/views/SSITabView';
17
+ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
18
+ import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
19
+ export * from './types';
20
+ export * from './styles/components/fonts';
21
+ export { SSICardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, };
@@ -0,0 +1,2 @@
1
+ export declare const SSIDropDownListContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSIDropDownListSelectedValueStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,15 @@
1
+ import styled from 'styled-components';
2
+ import { SSIFlexDirectionRowViewStyled } from '../../containers';
3
+ import { gradientColors } from '@sphereon/ui-components.core';
4
+ import { SSITextH3Styled } from '../../fonts';
5
+ export const SSIDropDownListContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
6
+ text-align: left;
7
+ align-items: center;
8
+ gap: 2px;
9
+ `;
10
+ export const SSIDropDownListSelectedValueStyled = styled(SSITextH3Styled) `
11
+ background: ${gradientColors['100']};
12
+ background-clip: text;
13
+ -webkit-background-clip: text;
14
+ -webkit-text-fill-color: transparent;
15
+ `;
@@ -0,0 +1 @@
1
+ export declare const SSIIconButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,9 @@
1
+ import styled from 'styled-components';
2
+ export const SSIIconButtonContainerStyled = styled.div `
3
+ width: 32px;
4
+ aspect-ratio: 1;
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ cursor: pointer;
9
+ `;
@@ -0,0 +1 @@
1
+ export declare const SSIPrimaryButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,13 @@
1
+ import styled from 'styled-components';
2
+ import { SSIRoundedContainerStyled } from '../../containers';
3
+ import { gradientColors } from '@sphereon/ui-components.core';
4
+ export const SSIPrimaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
5
+ background: ${gradientColors['100']};
6
+ display: flex;
7
+ flex-direction: row;
8
+ justify-content: center;
9
+ align-items: center;
10
+ gap: 8px;
11
+ padding: 6px 8px 6px 8px;
12
+ cursor: pointer;
13
+ `;
@@ -0,0 +1 @@
1
+ export declare const SSIProfileIconContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,9 @@
1
+ import styled from 'styled-components';
2
+ export const SSIProfileIconContainerStyled = styled.div `
3
+ width: 38px;
4
+ height: 38px;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ border-radius: 19px;
9
+ `;
@@ -0,0 +1,2 @@
1
+ export declare const SSITabViewHeaderContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSITabViewHeaderTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,10 @@
1
+ import styled from 'styled-components';
2
+ export const SSITabViewHeaderContainerStyled = styled.div `
3
+ display: flex;
4
+ flex-direction: row;
5
+ gap: 84px;
6
+ margin-left: 66px;
7
+ `;
8
+ export const SSITabViewHeaderTitleContainerStyled = styled.div `
9
+ cursor: pointer;
10
+ `;
@@ -0,0 +1,6 @@
1
+ export declare const SSITableViewContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSITableViewLabelCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const SSITableViewTableContainerStyled: import("styled-components").StyledComponent<"table", any, {}, never>;
4
+ export declare const SSITableViewRowContainerStyled: import("styled-components").StyledComponent<"tr", any, {}, never>;
5
+ export declare const SSITableViewCellContainerStyled: import("styled-components").StyledComponent<"td", any, {}, never>;
6
+ export declare const SSITableViewHeaderCellContainerStyled: import("styled-components").StyledComponent<"th", any, {}, never>;
@@ -0,0 +1,36 @@
1
+ import styled from 'styled-components';
2
+ import { backgroundColors, borderColors, fontColors } from '@sphereon/ui-components.core';
3
+ import { SSITextH2Css, SSITextH3Css } from '../../../css';
4
+ export const SSITableViewContainerStyled = styled.div `
5
+ background-color: ${backgroundColors.lightGrey};
6
+ display: flex;
7
+ flex-grow: 1;
8
+ flex-direction: column;
9
+ `;
10
+ export const SSITableViewLabelCellStyled = styled.div `
11
+ display: flex;
12
+ flex-direction: row;
13
+ gap: 10px;
14
+ `;
15
+ export const SSITableViewTableContainerStyled = styled.table `
16
+ user-select: text;
17
+ width: fit-content;
18
+ border-collapse: collapse;
19
+ `;
20
+ export const SSITableViewRowContainerStyled = styled.tr `
21
+ border-bottom: 1px solid ${borderColors.lightGrey};
22
+ `;
23
+ export const SSITableViewCellContainerStyled = styled.td `
24
+ ${SSITextH3Css};
25
+ color: ${fontColors.dark};
26
+ background-color: ${backgroundColors.primaryLight};
27
+ padding: 20px 16px 20px 16px;
28
+ text-align: left;
29
+ `;
30
+ export const SSITableViewHeaderCellContainerStyled = styled.th `
31
+ ${SSITextH2Css};
32
+ position: relative;
33
+ padding: 20px 16px 20px 16px;
34
+ background-color: ${backgroundColors.primaryLight};
35
+ color: ${fontColors.lightGrey};
36
+ `;
@@ -0,0 +1,5 @@
1
+ export declare const SSITableViewHeaderContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSITableViewHeaderContentContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const SSITableViewHeaderActionsContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SSITableViewHeaderFilterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const SSITableViewHeaderShowOptionContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,29 @@
1
+ import styled from 'styled-components';
2
+ import { SSIFlexDirectionRowViewStyled } from '../../containers';
3
+ import { backgroundColors } from '@sphereon/ui-components.core';
4
+ export const SSITableViewHeaderContainerStyled = styled.div `
5
+ background-color: ${backgroundColors.primaryLight};
6
+ display: flex;
7
+ `;
8
+ export const SSITableViewHeaderContentContainerStyled = styled.div `
9
+ height: 48px;
10
+ margin-left: auto;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ margin-right: 24px;
15
+ `;
16
+ export const SSITableViewHeaderActionsContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
17
+ height: 32px;
18
+ gap: 50px;
19
+ `;
20
+ export const SSITableViewHeaderFilterContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
21
+ height: 32px;
22
+ align-items: center;
23
+ gap: 8px;
24
+ `;
25
+ export const SSITableViewHeaderShowOptionContainerStyled = styled.div `
26
+ display: flex;
27
+ text-align: left;
28
+ align-items: center;
29
+ `;
@@ -0,0 +1 @@
1
+ export declare const SSITypeLabelContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,11 @@
1
+ import styled from 'styled-components';
2
+ import { SSIRoundedContainerStyled } from '../../containers';
3
+ import { fontColors } from '@sphereon/ui-components.core';
4
+ export const SSITypeLabelContainerStyled = styled(SSIRoundedContainerStyled) `
5
+ display: flex;
6
+ padding: 1px 12px;
7
+ justify-content: center;
8
+ align-items: center;
9
+ color: ${fontColors.light};
10
+ user-select: none;
11
+ `;
@@ -1,2 +1,9 @@
1
1
  export * from './SSICardView';
2
2
  export * from './SSIStatusLabel';
3
+ export * from './SSIPrimaryButton';
4
+ export * from './SSIIconButton';
5
+ export * from './SSIDropDownList';
6
+ export * from './SSITypeLabel';
7
+ export * from './SSITableViewHeader';
8
+ export * from './SSITableView';
9
+ export * from './SSITabViewHeader';
@@ -1,2 +1,9 @@
1
1
  export * from './SSICardView';
2
2
  export * from './SSIStatusLabel';
3
+ export * from './SSIPrimaryButton';
4
+ export * from './SSIIconButton';
5
+ export * from './SSIDropDownList';
6
+ export * from './SSITypeLabel';
7
+ export * from './SSITableViewHeader';
8
+ export * from './SSITableView';
9
+ export * from './SSITabViewHeader';
@@ -1,3 +1,7 @@
1
+ export declare const SSITextH1Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const SSITextH2Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
3
+ export declare const SSITextH3Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
4
+ export declare const SSITextH3LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
1
5
  export declare const SSITextH4Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
6
  export declare const SSITextH4SemiBoldStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
3
7
  export declare const SSITextH4LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,19 +1,23 @@
1
1
  import styled from 'styled-components';
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
- import { fontStyle } from '../../typography';
3
+ import { SSITextH1Css, SSITextH2Css, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css } from '../../css';
4
+ export const SSITextH1Styled = styled.span `
5
+ ${SSITextH1Css}
6
+ `;
7
+ export const SSITextH2Styled = styled.span `
8
+ ${SSITextH2Css}
9
+ `;
10
+ export const SSITextH3Styled = styled.span `
11
+ ${SSITextH3Css}
12
+ `;
13
+ export const SSITextH3LightStyled = styled(SSITextH3Styled) `
14
+ color: ${fontColors.light};
15
+ `;
4
16
  export const SSITextH4Styled = styled.span `
5
- font-family: ${fontStyle.h4Regular.fontFamily};
6
- font-size: ${fontStyle.h4Regular.fontSize}px;
7
- font-weight: ${fontStyle.h4Regular.fontWeight};
8
- line-height: ${fontStyle.h4Regular.lineHeight}px;
9
- height: auto;
17
+ ${SSITextH4Css}
10
18
  `;
11
19
  export const SSITextH4SemiBoldStyled = styled.span `
12
- font-family: ${fontStyle.h4SemiBold.fontFamily};
13
- font-size: ${fontStyle.h4SemiBold.fontSize}px;
14
- font-weight: ${fontStyle.h4SemiBold.fontWeight};
15
- line-height: ${fontStyle.h4SemiBold.lineHeight}px;
16
- height: auto;
20
+ ${SSITextH4SemiBoldCss}
17
21
  `;
18
22
  export const SSITextH4LightStyled = styled(SSITextH4Styled) `
19
23
  color: ${fontColors.light};
@@ -22,21 +26,13 @@ export const SSITextH4SemiBoldLightStyled = styled(SSITextH4SemiBoldStyled) `
22
26
  color: ${fontColors.light};
23
27
  `;
24
28
  export const SSITextH5Styled = styled.span `
25
- font-family: ${fontStyle.h5Regular.fontFamily};
26
- font-size: ${fontStyle.h5Regular.fontSize}px;
27
- font-weight: ${fontStyle.h5Regular.fontWeight};
28
- line-height: ${fontStyle.h5Regular.lineHeight}px;
29
- height: auto;
29
+ ${SSITextH5Css}
30
30
  `;
31
31
  export const SSITextH5LightStyled = styled(SSITextH5Styled) `
32
32
  color: ${fontColors.light};
33
33
  `;
34
34
  export const SSITextH6Styled = styled.span `
35
- font-family: ${fontStyle.h6.fontFamily};
36
- font-size: ${fontStyle.h6.fontSize}px;
37
- font-weight: ${fontStyle.h6.fontWeight};
38
- line-height: ${fontStyle.h6.lineHeight}px;
39
- height: auto;
35
+ ${SSITextH6Css}
40
36
  `;
41
37
  export const SSITextH6LightStyled = styled(SSITextH6Styled) `
42
38
  color: ${fontColors.light};
@@ -0,0 +1,7 @@
1
+ export declare const SSITextH1Css: import("styled-components").FlattenSimpleInterpolation;
2
+ export declare const SSITextH2Css: import("styled-components").FlattenSimpleInterpolation;
3
+ export declare const SSITextH3Css: import("styled-components").FlattenSimpleInterpolation;
4
+ export declare const SSITextH4Css: import("styled-components").FlattenSimpleInterpolation;
5
+ export declare const SSITextH4SemiBoldCss: import("styled-components").FlattenSimpleInterpolation;
6
+ export declare const SSITextH5Css: import("styled-components").FlattenSimpleInterpolation;
7
+ export declare const SSITextH6Css: import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,51 @@
1
+ import { css } from 'styled-components';
2
+ import { fontStyle } from '../typography';
3
+ export const SSITextH1Css = css `
4
+ font-family: ${fontStyle.h1Regular.fontFamily};
5
+ font-size: ${fontStyle.h1Regular.fontSize}px;
6
+ font-weight: ${fontStyle.h1Regular.fontWeight};
7
+ line-height: ${fontStyle.h1Regular.lineHeight}px;
8
+ height: auto;
9
+ `;
10
+ export const SSITextH2Css = css `
11
+ font-family: ${fontStyle.h2Regular.fontFamily};
12
+ font-size: ${fontStyle.h2Regular.fontSize}px;
13
+ font-weight: ${fontStyle.h2Regular.fontWeight};
14
+ line-height: ${fontStyle.h2Regular.lineHeight}px;
15
+ height: auto;
16
+ `;
17
+ export const SSITextH3Css = css `
18
+ font-family: ${fontStyle.h3Regular.fontFamily};
19
+ font-size: ${fontStyle.h3Regular.fontSize}px;
20
+ font-weight: ${fontStyle.h3Regular.fontWeight};
21
+ line-height: ${fontStyle.h3Regular.lineHeight}px;
22
+ height: auto;
23
+ `;
24
+ export const SSITextH4Css = css `
25
+ font-family: ${fontStyle.h4Regular.fontFamily};
26
+ font-size: ${fontStyle.h4Regular.fontSize}px;
27
+ font-weight: ${fontStyle.h4Regular.fontWeight};
28
+ line-height: ${fontStyle.h4Regular.lineHeight}px;
29
+ height: auto;
30
+ `;
31
+ export const SSITextH4SemiBoldCss = css `
32
+ font-family: ${fontStyle.h4SemiBold.fontFamily};
33
+ font-size: ${fontStyle.h4SemiBold.fontSize}px;
34
+ font-weight: ${fontStyle.h4SemiBold.fontWeight};
35
+ line-height: ${fontStyle.h4SemiBold.lineHeight}px;
36
+ height: auto;
37
+ `;
38
+ export const SSITextH5Css = css `
39
+ font-family: ${fontStyle.h5Regular.fontFamily};
40
+ font-size: ${fontStyle.h5Regular.fontSize}px;
41
+ font-weight: ${fontStyle.h5Regular.fontWeight};
42
+ line-height: ${fontStyle.h5Regular.lineHeight}px;
43
+ height: auto;
44
+ `;
45
+ export const SSITextH6Css = css `
46
+ font-family: ${fontStyle.h6.fontFamily};
47
+ font-size: ${fontStyle.h6.fontSize}px;
48
+ font-weight: ${fontStyle.h6.fontWeight};
49
+ line-height: ${fontStyle.h6.lineHeight}px;
50
+ height: auto;
51
+ `;
@@ -6,6 +6,12 @@ export const fontStyle = {
6
6
  fontWeight: fontWeight[600],
7
7
  lineHeight: lineHeight[800],
8
8
  },
9
+ h1Regular: {
10
+ fontFamily: 'Poppins',
11
+ fontSize: fontSize[700],
12
+ fontWeight: fontWeight[400],
13
+ lineHeight: lineHeight[700],
14
+ },
9
15
  h1SemiBold: {
10
16
  fontFamily: 'Poppins',
11
17
  fontSize: fontSize[700],
@@ -0,0 +1,37 @@
1
+ import { ComponentType } from 'react';
2
+ import { AccessorFn, DeepKeys } from '@tanstack/react-table';
3
+ export type TabRoute = {
4
+ key: string;
5
+ title: string;
6
+ };
7
+ export type TabViewRoute = TabRoute & {
8
+ content: ComponentType<unknown>;
9
+ };
10
+ export type TabNavigationState = {
11
+ index: number;
12
+ routes: Array<TabViewRoute>;
13
+ };
14
+ export declare enum ButtonIconsEnum {
15
+ ADD = "add",
16
+ ARROW_DOWN = "arrowDown",
17
+ FILTER = "filter"
18
+ }
19
+ export type ColumnHeader<T> = {
20
+ accessor: AccessorFn<T> | DeepKeys<T>;
21
+ type: TableCellTypeEnum;
22
+ label?: string;
23
+ };
24
+ export type Button = {
25
+ caption: string;
26
+ onClick: () => Promise<void>;
27
+ icon?: ButtonIconsEnum;
28
+ disabled?: boolean;
29
+ };
30
+ export declare enum LabelTypeEnum {
31
+ ISSUER = "Issuer",
32
+ VERIFIER = "Verifier"
33
+ }
34
+ export declare enum TableCellTypeEnum {
35
+ TEXT = "text",
36
+ LABEL = "label"
37
+ }
@@ -0,0 +1,16 @@
1
+ export var ButtonIconsEnum;
2
+ (function (ButtonIconsEnum) {
3
+ ButtonIconsEnum["ADD"] = "add";
4
+ ButtonIconsEnum["ARROW_DOWN"] = "arrowDown";
5
+ ButtonIconsEnum["FILTER"] = "filter";
6
+ })(ButtonIconsEnum || (ButtonIconsEnum = {}));
7
+ export var LabelTypeEnum;
8
+ (function (LabelTypeEnum) {
9
+ LabelTypeEnum["ISSUER"] = "Issuer";
10
+ LabelTypeEnum["VERIFIER"] = "Verifier";
11
+ })(LabelTypeEnum || (LabelTypeEnum = {}));
12
+ export var TableCellTypeEnum;
13
+ (function (TableCellTypeEnum) {
14
+ TableCellTypeEnum["TEXT"] = "text";
15
+ TableCellTypeEnum["LABEL"] = "label";
16
+ })(TableCellTypeEnum || (TableCellTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1 @@
1
+ export * from './component';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.1.1",
4
+ "version": "0.1.2-next.11+1a44f32",
5
5
  "description": "SSI UI components for React",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -28,7 +28,8 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@sphereon/ui-components.core": "0.1.1",
31
+ "@sphereon/ui-components.core": "0.1.2-next.11+1a44f32",
32
+ "@tanstack/react-table": "^8.9.3",
32
33
  "styled-components": "^5.3.3"
33
34
  },
34
35
  "devDependencies": {
@@ -39,5 +40,5 @@
39
40
  "peerDependencies": {
40
41
  "react": ">= 16.8.0"
41
42
  },
42
- "gitHead": "067169b933897f36b96709293be6163ee21c317b"
43
+ "gitHead": "1a44f3296f14e9d6ede9349817dc380594956f14"
43
44
  }