@sphereon/ui-components.ssi-react 0.1.3-unstable.72 → 0.1.3-unstable.83

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 (32) hide show
  1. package/dist/components/assets/markers/StepMarker/index.d.ts +8 -0
  2. package/dist/components/assets/markers/StepMarker/index.js +26 -0
  3. package/dist/components/indicators/ProgressStepIndicator/index.d.ts +9 -0
  4. package/dist/components/indicators/ProgressStepIndicator/index.js +54 -0
  5. package/dist/components/views/SSITableView/index.js +16 -2
  6. package/dist/index.d.ts +3 -1
  7. package/dist/index.js +3 -1
  8. package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +8 -0
  9. package/dist/styles/components/components/ProgressStepIndicator/index.js +48 -0
  10. package/dist/styles/components/components/SSICheckbox/index.d.ts +1 -1
  11. package/dist/styles/components/components/SSICredentialCardView/index.d.ts +2 -2
  12. package/dist/styles/components/components/SSIDropDownList/index.d.ts +1 -1
  13. package/dist/styles/components/components/SSIDropDownList/index.js +2 -5
  14. package/dist/styles/components/components/SSISecondaryButton/index.d.ts +1 -1
  15. package/dist/styles/components/components/SSISecondaryButton/index.js +2 -5
  16. package/dist/styles/components/components/SSIStatusLabel/index.d.ts +1 -1
  17. package/dist/styles/components/components/SSITableView/index.js +4 -0
  18. package/dist/styles/components/components/SSIToast/index.d.ts +1 -1
  19. package/dist/styles/components/components/StepMarker/index.d.ts +4 -0
  20. package/dist/styles/components/components/StepMarker/index.js +38 -0
  21. package/dist/styles/components/components/index.d.ts +2 -0
  22. package/dist/styles/components/components/index.js +2 -0
  23. package/dist/styles/components/fonts/index.d.ts +16 -14
  24. package/dist/styles/components/fonts/index.js +15 -9
  25. package/dist/styles/css/index.d.ts +2 -0
  26. package/dist/styles/css/index.js +14 -0
  27. package/dist/types/index.d.ts +1 -0
  28. package/dist/types/index.js +1 -0
  29. package/dist/types/indicator/index.d.ts +9 -0
  30. package/dist/types/indicator/index.js +6 -0
  31. package/dist/types/table/index.d.ts +3 -0
  32. package/package.json +3 -3
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { StepStatus } from '../../../../types';
3
+ type Props = {
4
+ stepNumber: number;
5
+ status?: StepStatus;
6
+ };
7
+ declare const StepMarker: FC<Props>;
8
+ export default StepMarker;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StepMarkerActiveContainerStyled as ActiveContainer, StepMarkerActiveOuterContainerStyled as ActiveOuterContainer, StepMarkerGradientContainerStyled as GradientContainer, SSITextH1SemiBoldLightStyled as StepNumberText, StepMarkerInactiveContainerStyled as InactiveContainer, } from '../../../../styles';
3
+ import { StepStatus } from '../../../../types';
4
+ const getCurrentMarkerElement = (stepNumber) => {
5
+ return _jsx(ActiveContainer, { children: _jsx(ActiveOuterContainer, { children: _jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) }) }) });
6
+ };
7
+ const getNextMarkerElement = (stepNumber) => {
8
+ return _jsx(InactiveContainer, { children: _jsx(StepNumberText, { children: stepNumber }) });
9
+ };
10
+ const getCompletedMarkerElement = (stepNumber) => {
11
+ return _jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) });
12
+ };
13
+ const StepMarker = (props) => {
14
+ const { stepNumber, status = StepStatus.NEXT } = props;
15
+ switch (status) {
16
+ case StepStatus.CURRENT:
17
+ return getCurrentMarkerElement(stepNumber);
18
+ case StepStatus.COMPLETED:
19
+ return getCompletedMarkerElement(stepNumber);
20
+ case StepStatus.NEXT:
21
+ return getNextMarkerElement(stepNumber);
22
+ default:
23
+ return _jsx("div", {});
24
+ }
25
+ };
26
+ export default StepMarker;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ import { ProgressIndicatorStep } from '../../../types';
3
+ type Props = {
4
+ steps: Array<ProgressIndicatorStep>;
5
+ activeStep: number;
6
+ style?: CSSProperties;
7
+ };
8
+ declare const ProgressStepIndicator: FC<Props>;
9
+ export default ProgressStepIndicator;
@@ -0,0 +1,54 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { elements, fontColors, gradientColors } from '@sphereon/ui-components.core';
3
+ import StepMarker from '../../assets/markers/StepMarker';
4
+ import { ProgressStepIndicatorContainerStyled as Container, ProgressStepIndicatorContentGridContainerStyled as GridContainer, ProgressStepIndicatorStepMarkerCellStyled as StepMarkerCell, ProgressStepIndicatorStepLineStyled as StepLine, ProgressStepIndicatorStepTextCellStyled as StepTextCell, ProgressStepIndicatorTitleTextStyled as TitleText, ProgressStepIndicatorDescriptionTextStyled as DescriptionText, ProgressStepIndicatorSpacerLineCellStyled as SpacerLineCell } from '../../../styles';
5
+ import { StepStatus } from '../../../types';
6
+ const getStepRowElement = (stepNumber, status, step, maxSteps) => {
7
+ const gridRowNumber = (stepNumber * 2) - 1;
8
+ return (_jsxs(_Fragment, { children: [_jsxs(StepMarkerCell, { style: { gridRow: gridRowNumber }, children: [_jsx(StepMarker, { stepNumber: stepNumber, status: status }), stepNumber < maxSteps &&
9
+ _jsx(StepLine, { style: {
10
+ ...(status === StepStatus.COMPLETED && {
11
+ backgroundColor: elements.purple
12
+ })
13
+ } })] }), _jsxs(StepTextCell, { style: { gridRow: gridRowNumber }, children: [step.title &&
14
+ _jsx(TitleText, { style: {
15
+ ...(status === StepStatus.CURRENT && {
16
+ background: gradientColors['100'],
17
+ backgroundClip: 'text',
18
+ WebkitBackgroundClip: 'text',
19
+ WebkitTextFillColor: 'transparent'
20
+ }),
21
+ ...(status === StepStatus.COMPLETED && { color: fontColors.dark }),
22
+ ...(status === StepStatus.NEXT && { color: fontColors.lightGrey })
23
+ }, children: step.title }), step.description &&
24
+ _jsx(DescriptionText, { style: { ...((status === StepStatus.CURRENT || status === StepStatus.COMPLETED) && { color: fontColors.dark }) }, children: step.description })] }), stepNumber < maxSteps &&
25
+ _jsx(SpacerLineCell, { style: { gridRow: gridRowNumber + 1 }, children: _jsx(StepLine, { style: {
26
+ ...(status === StepStatus.COMPLETED && {
27
+ backgroundColor: elements.purple
28
+ })
29
+ } }) })] }));
30
+ };
31
+ const getStepStatus = (stepNumber, activeStep) => {
32
+ if (stepNumber < activeStep) {
33
+ return StepStatus.COMPLETED;
34
+ }
35
+ else if (stepNumber > activeStep) {
36
+ return StepStatus.NEXT;
37
+ }
38
+ else if (stepNumber === activeStep) {
39
+ return StepStatus.CURRENT;
40
+ }
41
+ throw new Error('Unable to determine step status');
42
+ };
43
+ const getStepElements = (activeStep, steps) => {
44
+ return steps.map((step, index) => {
45
+ const stepNumber = index + 1;
46
+ const stepStatus = getStepStatus(stepNumber, activeStep);
47
+ return getStepRowElement(stepNumber, stepStatus, step, steps.length);
48
+ });
49
+ };
50
+ const ProgressStepIndicator = (props) => {
51
+ const { activeStep, steps = [], style } = props;
52
+ return _jsx(Container, { style: style, children: _jsx(GridContainer, { children: getStepElements(activeStep, steps) }) });
53
+ };
54
+ export default ProgressStepIndicator;
@@ -41,6 +41,9 @@ const SSITableView = (props) => {
41
41
  id: header.accessor,
42
42
  header: header.label,
43
43
  cell: (info) => getCellFormatting(header.type, info.getValue(), header.opts),
44
+ minSize: header.opts?.columnMinWidth,
45
+ maxSize: header.opts?.columnMaxWidth,
46
+ size: header.opts?.columnWidth,
44
47
  }));
45
48
  if (enableRowSelection) {
46
49
  availableColumns = [
@@ -62,6 +65,9 @@ const SSITableView = (props) => {
62
65
  ];
63
66
  }
64
67
  const table = useReactTable({
68
+ defaultColumn: {
69
+ size: 0
70
+ },
65
71
  state: {
66
72
  rowSelection,
67
73
  },
@@ -80,10 +86,18 @@ const SSITableView = (props) => {
80
86
  return (_jsx(Container, { children: _jsxs("div", { className: "overflow-x-auto", children: [enableResultCount && (_jsx(ResultCountCaption, { children: Localization.translate('result_count_label', {
81
87
  count: data.length,
82
88
  maxCount: data.length,
83
- }) })), (enableFiltering || enableMostRecent || actions.length > 0) && (_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering, enableMostRecent: enableMostRecent })), _jsxs(TableContainer, { children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(RowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: { width: header.getSize() }, children: [header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()), _jsx("div", { className: `resizer ${header.column.getIsResizing() ? 'isResizing' : ''}`, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), style: {
89
+ }) })), (enableFiltering || enableMostRecent || actions.length > 0) && (_jsx(SSITableViewHeader, { actions: actions, enableFiltering: enableFiltering, enableMostRecent: enableMostRecent })), _jsxs(TableContainer, { children: [_jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => (_jsx(RowContainer, { children: headerGroup.headers.map((header) => (_jsxs(HeaderCellContainer, { colSpan: header.colSpan, style: {
90
+ ...(header.column.columnDef.minSize && { minWidth: header.column.columnDef.minSize }),
91
+ ...(header.column.columnDef.maxSize && { maxWidth: header.column.columnDef.maxSize }),
92
+ ...(header.column.columnDef.size !== 0 && { width: header.column.columnDef.size }),
93
+ }, 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: {
84
94
  transform: columnResizeMode === 'onEnd' && header.column.getIsResizing()
85
95
  ? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)`
86
96
  : '',
87
- } })] }, header.id))) }, headerGroup.id))) }), _jsx("tbody", { children: table.getRowModel().rows.map((row) => (_jsx(RowContainer, { onClick: () => onRowClicked(row), children: row.getVisibleCells().map((cell) => (_jsx(CellContainer, { style: { width: cell.column.getSize() }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id))) })] })] }) }));
97
+ } })] }, header.id))) }, headerGroup.id))) }), _jsx("tbody", { children: table.getRowModel().rows.map((row) => (_jsx(RowContainer, { onClick: () => onRowClicked(row), children: row.getVisibleCells().map((cell) => (_jsx(CellContainer, { style: {
98
+ ...(cell.column.columnDef.minSize && { minWidth: cell.column.columnDef.minSize }),
99
+ ...(cell.column.columnDef.maxSize && { maxWidth: cell.column.columnDef.maxSize }),
100
+ ...(cell.column.columnDef.size !== 0 && { width: cell.column.columnDef.size }),
101
+ }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id))) })] })] }) }));
88
102
  };
89
103
  export default SSITableView;
package/dist/index.d.ts CHANGED
@@ -22,8 +22,10 @@ import SSISecondaryButton from './components/buttons/SSISecondaryButton';
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
+ import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
26
+ import StepMarker from './components/assets/markers/StepMarker';
25
27
  import { Row } from '@tanstack/react-table';
26
28
  export * from './styles/components/fonts';
27
29
  export * from './types';
28
30
  export * from './helpers';
29
- export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, Row };
31
+ export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, Row };
package/dist/index.js CHANGED
@@ -22,7 +22,9 @@ import SSISecondaryButton from './components/buttons/SSISecondaryButton';
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
+ import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
26
+ import StepMarker from './components/assets/markers/StepMarker';
25
27
  export * from './styles/components/fonts';
26
28
  export * from './types';
27
29
  export * from './helpers';
28
- export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText };
30
+ export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator };
@@ -0,0 +1,8 @@
1
+ export declare const ProgressStepIndicatorContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ProgressStepIndicatorContentGridContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const ProgressStepIndicatorStepMarkerCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const ProgressStepIndicatorStepTextCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const ProgressStepIndicatorSpacerLineCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const ProgressStepIndicatorTitleTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const ProgressStepIndicatorDescriptionTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const ProgressStepIndicatorStepLineStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,48 @@
1
+ import styled from 'styled-components';
2
+ import { backgroundColors, borderColors, elements, fontColors } from '@sphereon/ui-components.core';
3
+ import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '../../fonts';
4
+ export const ProgressStepIndicatorContainerStyled = styled.div `
5
+ background-color: ${backgroundColors.primaryLight};
6
+ border-radius: 24px;
7
+ border: 1px solid ${borderColors.light};
8
+ display: flex;
9
+ overflow: hidden;
10
+ padding: 48px 24px;
11
+ cursor: default;
12
+ min-width: 325px;
13
+ `;
14
+ export const ProgressStepIndicatorContentGridContainerStyled = styled.div `
15
+ display: grid;
16
+ grid-column-gap: 24px;
17
+ `;
18
+ export const ProgressStepIndicatorStepMarkerCellStyled = styled.div `
19
+ grid-column: 1;
20
+ display: flex;
21
+ align-items: center;
22
+ flex-direction: column;
23
+ `;
24
+ export const ProgressStepIndicatorStepTextCellStyled = styled.div `
25
+ grid-column: 2;
26
+ max-width: 365px;
27
+ text-align: start;
28
+ `;
29
+ export const ProgressStepIndicatorSpacerLineCellStyled = styled.div `
30
+ height: 48px;
31
+ grid-column: 1;
32
+ align-items: center;
33
+ display: flex;
34
+ flex-direction: column;
35
+ `;
36
+ export const ProgressStepIndicatorTitleTextStyled = styled(SSITextH1SemiBoldStyled) `
37
+ word-break: break-word;
38
+ `;
39
+ export const ProgressStepIndicatorDescriptionTextStyled = styled(SSITextH3Styled) `
40
+ word-break: break-word;
41
+ color: ${fontColors.lightGrey};
42
+ `;
43
+ export const ProgressStepIndicatorStepLineStyled = styled.div `
44
+ width: 4px;
45
+ display: flex;
46
+ flex-grow: 1;
47
+ background-color: ${elements.lightGrey};
48
+ `;
@@ -1,4 +1,4 @@
1
1
  export declare const SSICheckboxContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const SSICheckboxUnselectedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SSICheckboxSelectedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const SSICheckboxLabelContainerStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
4
+ export declare const SSICheckboxLabelContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -8,6 +8,6 @@ export declare const SSICredentialCardViewContentSubContainerStyled: import("sty
8
8
  export declare const SSICredentialCardViewContentIssueNameContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
9
9
  export declare const SSICredentialCardViewContentPropertiesContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const SSICredentialCardViewFooterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const SSICredentialCardViewCredentialTitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
12
- export declare const SSICredentialCardViewCredentialSubtitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
11
+ export declare const SSICredentialCardViewCredentialTitleTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const SSICredentialCardViewCredentialSubtitleTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
13
13
  export declare const SSICredentialCardViewStatusContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +1,2 @@
1
1
  export declare const SSIDropDownListContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const SSIDropDownListSelectedValueStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const SSIDropDownListSelectedValueStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,15 +1,12 @@
1
1
  import styled from 'styled-components';
2
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
3
- import { gradientColors } from '@sphereon/ui-components.core';
4
3
  import { SSITextH3Styled } from '../../fonts';
4
+ import { gradient100TextCss } from "../../../css";
5
5
  export const SSIDropDownListContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
6
6
  text-align: left;
7
7
  align-items: center;
8
8
  gap: 2px;
9
9
  `;
10
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;
11
+ ${gradient100TextCss}
15
12
  `;
@@ -1,2 +1,2 @@
1
1
  export declare const SSISecondaryButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const SSISecondaryButtonCaptionStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const SSISecondaryButtonCaptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { SSIRoundedContainerStyled } from '../../containers';
3
- import { gradientColors } from '@sphereon/ui-components.core';
4
3
  import { SSITextH3Styled } from '../../fonts';
4
+ import { gradient100TextCss } from '../../../css';
5
5
  export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
6
6
  position: relative;
7
7
  display: flex;
@@ -28,8 +28,5 @@ export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyle
28
28
  }
29
29
  `;
30
30
  export const SSISecondaryButtonCaptionStyled = styled(SSITextH3Styled) `
31
- background: ${gradientColors['100']};
32
- background-clip: text;
33
- -webkit-background-clip: text;
34
- -webkit-text-fill-color: transparent;
31
+ ${gradient100TextCss}
35
32
  `;
@@ -1,3 +1,3 @@
1
1
  export declare const SSIStatusLabelContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const SSIStatusLabelStatusCaptionStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const SSIStatusLabelStatusCaptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SSIStatusLabelBadgeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -26,6 +26,8 @@ export const SSITableViewCellContainerStyled = styled.td `
26
26
  background-color: ${backgroundColors.primaryLight};
27
27
  padding: 20px 16px 20px 16px;
28
28
  text-align: left;
29
+ //setting border-box makes padding be included in the width, otherwise content-box is used and then padding is excluded from the width
30
+ box-sizing: border-box;
29
31
  `;
30
32
  export const SSITableViewHeaderCellContainerStyled = styled.th `
31
33
  ${SSITextH2Css};
@@ -34,6 +36,8 @@ export const SSITableViewHeaderCellContainerStyled = styled.th `
34
36
  background-color: ${backgroundColors.primaryLight};
35
37
  color: ${fontColors.lightGrey};
36
38
  text-align: left;
39
+ //setting border-box makes padding be included in the width, otherwise content-box is used and then padding is excluded from the width
40
+ box-sizing: border-box;
37
41
  `;
38
42
  export const SSITableViewResultCountCaptionStyled = styled.div `
39
43
  ${SSITextH3Css};
@@ -1,4 +1,4 @@
1
1
  export declare const SSIToastContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const SSIToastBadgeContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SSIToastTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const SSIToastMessageTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
4
+ export declare const SSIToastMessageTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,4 @@
1
+ export declare const StepMarkerActiveContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const StepMarkerActiveOuterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const StepMarkerGradientContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const StepMarkerInactiveContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,38 @@
1
+ import styled from 'styled-components';
2
+ import { backgroundColors, elements, gradientColors } from '@sphereon/ui-components.core';
3
+ export const StepMarkerActiveContainerStyled = styled.div `
4
+ width: 50px;
5
+ height: 50px;
6
+ background: ${gradientColors[100]};
7
+ border-radius: 25px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ `;
12
+ export const StepMarkerActiveOuterContainerStyled = styled.div `
13
+ width: 46px;
14
+ height: 46px;
15
+ background-color: ${backgroundColors.primaryLight};
16
+ border-radius: 23px;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ `;
21
+ export const StepMarkerGradientContainerStyled = styled.div `
22
+ width: 42px;
23
+ height: 42px;
24
+ background: ${gradientColors["100"]};
25
+ border-radius: 21px;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ `;
30
+ export const StepMarkerInactiveContainerStyled = styled.div `
31
+ width: 42px;
32
+ height: 42px;
33
+ background-color: ${elements.lightGrey};
34
+ border-radius: 25px;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ `;
@@ -15,3 +15,5 @@ export * from './SSIToastContainer';
15
15
  export * from './SSIProfileIcon';
16
16
  export * from './SSIHoverText';
17
17
  export * from './SSICheckbox';
18
+ export * from './ProgressStepIndicator';
19
+ export * from './StepMarker';
@@ -15,3 +15,5 @@ export * from './SSIToastContainer';
15
15
  export * from './SSIProfileIcon';
16
16
  export * from './SSIHoverText';
17
17
  export * from './SSICheckbox';
18
+ export * from './ProgressStepIndicator';
19
+ export * from './StepMarker';
@@ -1,14 +1,16 @@
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 SSITextH2SemiBoldStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
4
- export declare const SSITextH3Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
5
- export declare const SSITextH3LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
6
- export declare const SSITextH4Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
7
- export declare const SSITextH4SemiBoldStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
8
- export declare const SSITextH4LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
9
- export declare const SSITextH4DarkStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
10
- export declare const SSITextH4SemiBoldLightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
11
- export declare const SSITextH5Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
12
- export declare const SSITextH5LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
13
- export declare const SSITextH6Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
14
- export declare const SSITextH6LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
1
+ export declare const SSITextH1Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSITextH1SemiBoldStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const SSITextH1SemiBoldLightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SSITextH2Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const SSITextH2SemiBoldStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const SSITextH3Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const SSITextH3LightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const SSITextH4Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const SSITextH4SemiBoldStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const SSITextH4LightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const SSITextH4DarkStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const SSITextH4SemiBoldLightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const SSITextH5Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const SSITextH5LightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const SSITextH6Styled: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const SSITextH6LightStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,25 +1,31 @@
1
1
  import styled from 'styled-components';
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
- import { SSITextH1Css, SSITextH2Css, SSITextH2SemiBoldStyledCss, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css, } from '../../css';
4
- export const SSITextH1Styled = styled.span `
3
+ import { SSITextH1Css, SSITextH1SemiBoldCss, SSITextH2Css, SSITextH2SemiBoldStyledCss, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css, } from '../../css';
4
+ export const SSITextH1Styled = styled.div `
5
5
  ${SSITextH1Css}
6
6
  `;
7
- export const SSITextH2Styled = styled.span `
7
+ export const SSITextH1SemiBoldStyled = styled.div `
8
+ ${SSITextH1SemiBoldCss}
9
+ `;
10
+ export const SSITextH1SemiBoldLightStyled = styled(SSITextH1SemiBoldStyled) `
11
+ color: ${fontColors.light}
12
+ `;
13
+ export const SSITextH2Styled = styled.div `
8
14
  ${SSITextH2Css}
9
15
  `;
10
- export const SSITextH2SemiBoldStyled = styled.span `
16
+ export const SSITextH2SemiBoldStyled = styled.div `
11
17
  ${SSITextH2SemiBoldStyledCss}
12
18
  `;
13
- export const SSITextH3Styled = styled.span `
19
+ export const SSITextH3Styled = styled.div `
14
20
  ${SSITextH3Css}
15
21
  `;
16
22
  export const SSITextH3LightStyled = styled(SSITextH3Styled) `
17
23
  color: ${fontColors.light};
18
24
  `;
19
- export const SSITextH4Styled = styled.span `
25
+ export const SSITextH4Styled = styled.div `
20
26
  ${SSITextH4Css}
21
27
  `;
22
- export const SSITextH4SemiBoldStyled = styled.span `
28
+ export const SSITextH4SemiBoldStyled = styled.div `
23
29
  ${SSITextH4SemiBoldCss}
24
30
  `;
25
31
  export const SSITextH4LightStyled = styled(SSITextH4Styled) `
@@ -31,13 +37,13 @@ export const SSITextH4DarkStyled = styled(SSITextH4Styled) `
31
37
  export const SSITextH4SemiBoldLightStyled = styled(SSITextH4SemiBoldStyled) `
32
38
  color: ${fontColors.light};
33
39
  `;
34
- export const SSITextH5Styled = styled.span `
40
+ export const SSITextH5Styled = styled.div `
35
41
  ${SSITextH5Css}
36
42
  `;
37
43
  export const SSITextH5LightStyled = styled(SSITextH5Styled) `
38
44
  color: ${fontColors.light};
39
45
  `;
40
- export const SSITextH6Styled = styled.span `
46
+ export const SSITextH6Styled = styled.div `
41
47
  ${SSITextH6Css}
42
48
  `;
43
49
  export const SSITextH6LightStyled = styled(SSITextH6Styled) `
@@ -1,4 +1,5 @@
1
1
  export declare const SSITextH1Css: import("styled-components").FlattenSimpleInterpolation;
2
+ export declare const SSITextH1SemiBoldCss: import("styled-components").FlattenSimpleInterpolation;
2
3
  export declare const SSITextH2Css: import("styled-components").FlattenSimpleInterpolation;
3
4
  export declare const SSITextH2SemiBoldStyledCss: import("styled-components").FlattenSimpleInterpolation;
4
5
  export declare const SSITextH3Css: import("styled-components").FlattenSimpleInterpolation;
@@ -6,3 +7,4 @@ export declare const SSITextH4Css: import("styled-components").FlattenSimpleInte
6
7
  export declare const SSITextH4SemiBoldCss: import("styled-components").FlattenSimpleInterpolation;
7
8
  export declare const SSITextH5Css: import("styled-components").FlattenSimpleInterpolation;
8
9
  export declare const SSITextH6Css: import("styled-components").FlattenSimpleInterpolation;
10
+ export declare const gradient100TextCss: import("styled-components").FlattenSimpleInterpolation;
@@ -1,4 +1,5 @@
1
1
  import { css } from 'styled-components';
2
+ import { gradientColors } from '@sphereon/ui-components.core';
2
3
  import { fontStyle } from '../typography';
3
4
  export const SSITextH1Css = css `
4
5
  font-family: ${fontStyle.h1Regular.fontFamily};
@@ -7,6 +8,13 @@ export const SSITextH1Css = css `
7
8
  line-height: ${fontStyle.h1Regular.lineHeight}px;
8
9
  height: auto;
9
10
  `;
11
+ export const SSITextH1SemiBoldCss = css `
12
+ font-family: ${fontStyle.h1SemiBold.fontFamily};
13
+ font-size: ${fontStyle.h1SemiBold.fontSize}px;
14
+ font-weight: ${fontStyle.h1SemiBold.fontWeight};
15
+ line-height: ${fontStyle.h1SemiBold.lineHeight}px;
16
+ height: auto;
17
+ `;
10
18
  export const SSITextH2Css = css `
11
19
  font-family: ${fontStyle.h2Regular.fontFamily};
12
20
  font-size: ${fontStyle.h2Regular.fontSize}px;
@@ -56,3 +64,9 @@ export const SSITextH6Css = css `
56
64
  line-height: ${fontStyle.h6.lineHeight}px;
57
65
  height: auto;
58
66
  `;
67
+ export const gradient100TextCss = css `
68
+ background: ${gradientColors['100']};
69
+ background-clip: text;
70
+ -webkit-background-clip: text;
71
+ -webkit-text-fill-color: transparent;
72
+ `;
@@ -1,3 +1,4 @@
1
1
  export * from './button';
2
2
  export * from './table';
3
3
  export * from './toast';
4
+ export * from './indicator';
@@ -1,3 +1,4 @@
1
1
  export * from './button';
2
2
  export * from './table';
3
3
  export * from './toast';
4
+ export * from './indicator';
@@ -0,0 +1,9 @@
1
+ export type ProgressIndicatorStep = {
2
+ title?: string;
3
+ description?: string;
4
+ };
5
+ export declare enum StepStatus {
6
+ CURRENT = "current",
7
+ COMPLETED = "completed",
8
+ NEXT = "next"
9
+ }
@@ -0,0 +1,6 @@
1
+ export var StepStatus;
2
+ (function (StepStatus) {
3
+ StepStatus["CURRENT"] = "current";
4
+ StepStatus["COMPLETED"] = "completed";
5
+ StepStatus["NEXT"] = "next";
6
+ })(StepStatus || (StepStatus = {}));
@@ -13,4 +13,7 @@ export type ColumnHeader<T> = {
13
13
  export type TableCellOptions = {
14
14
  truncationLength?: number;
15
15
  enableHover?: boolean;
16
+ columnMinWidth?: number;
17
+ columnMaxWidth?: number;
18
+ columnWidth?: number;
16
19
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.1.3-unstable.72+d6d452a",
4
+ "version": "0.1.3-unstable.83+3593537",
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,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@sphereon/ui-components.core": "0.1.3-unstable.72+d6d452a",
31
+ "@sphereon/ui-components.core": "0.1.3-unstable.83+3593537",
32
32
  "@tanstack/react-table": "^8.9.3",
33
33
  "react-loader-spinner": "^5.4.5",
34
34
  "react-toastify": "^9.1.3",
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "react": ">= 16.8.0"
44
44
  },
45
- "gitHead": "d6d452a8673ad9986841af39898d3ed97350f9b6"
45
+ "gitHead": "35935374b31b9624299cc1fa155c468da3214fda"
46
46
  }