@sphereon/ui-components.ssi-react 0.1.3-unstable.87 → 0.1.3-unstable.94
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/components/assets/markers/StepMarker/index.js +3 -3
- package/dist/components/buttons/SSIPrimaryButton/index.js +3 -3
- package/dist/components/buttons/SSISecondaryButton/index.js +4 -3
- package/dist/components/fields/SSICheckbox/index.js +2 -2
- package/dist/components/indicators/ProgressStepIndicator/index.js +22 -25
- package/dist/components/indicators/SSIActivityIndicator/index.js +2 -2
- package/dist/components/labels/SSITypeLabel/index.js +2 -1
- package/dist/components/views/SSITableView/index.js +4 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/styles/colors.d.ts +3 -0
- package/dist/styles/colors.js +5 -0
- package/dist/styles/components/components/ProgressStepIndicator/index.js +3 -3
- package/dist/styles/components/components/SSICheckbox/index.js +1 -1
- package/dist/styles/components/components/SSICredentialCardView/index.js +1 -1
- package/dist/styles/components/components/SSIDropDownList/index.js +2 -2
- package/dist/styles/components/components/SSIPrimaryButton/index.js +1 -1
- package/dist/styles/components/components/SSISecondaryButton/index.js +1 -1
- package/dist/styles/components/components/SSIStatusLabel/index.js +1 -1
- package/dist/styles/components/components/SSIToast/index.js +1 -1
- package/dist/styles/components/components/StepMarker/index.js +4 -3
- package/dist/styles/components/index.d.ts +0 -1
- package/dist/styles/components/index.js +0 -1
- package/dist/styles/css/index.js +1 -1
- package/dist/styles/{components/fonts → fonts}/index.js +2 -2
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.js +1 -0
- package/dist/styles/typography.js +6 -0
- package/dist/types/table/index.d.ts +2 -1
- package/dist/types/table/index.js +1 -0
- package/package.json +3 -3
- /package/dist/styles/{components/fonts → fonts}/index.d.ts +0 -0
|
@@ -2,13 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { StepMarkerActiveContainerStyled as ActiveContainer, StepMarkerActiveOuterContainerStyled as ActiveOuterContainer, StepMarkerGradientContainerStyled as GradientContainer, SSITextH1SemiBoldLightStyled as StepNumberText, StepMarkerInactiveContainerStyled as InactiveContainer, } from '../../../../styles';
|
|
3
3
|
import { StepStatus } from '../../../../types';
|
|
4
4
|
const getCurrentMarkerElement = (stepNumber) => {
|
|
5
|
-
return _jsx(ActiveContainer, { children: _jsx(ActiveOuterContainer, { children: _jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) }) }) });
|
|
5
|
+
return (_jsx(ActiveContainer, { children: _jsx(ActiveOuterContainer, { children: _jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) }) }) }));
|
|
6
6
|
};
|
|
7
7
|
const getNextMarkerElement = (stepNumber) => {
|
|
8
|
-
return _jsx(InactiveContainer, { children: _jsx(StepNumberText, { children: stepNumber }) });
|
|
8
|
+
return (_jsx(InactiveContainer, { children: _jsx(StepNumberText, { children: stepNumber }) }));
|
|
9
9
|
};
|
|
10
10
|
const getCompletedMarkerElement = (stepNumber) => {
|
|
11
|
-
return _jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) });
|
|
11
|
+
return (_jsx(GradientContainer, { children: _jsx(StepNumberText, { children: stepNumber }) }));
|
|
12
12
|
};
|
|
13
13
|
const StepMarker = (props) => {
|
|
14
14
|
const { stepNumber, status = StepStatus.NEXT } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon, fontColors } from '@sphereon/ui-components.core';
|
|
2
|
+
import { ButtonIcon, fontColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
|
|
3
3
|
import SSIAddIcon from '../../assets/icons/SSIAddIcon';
|
|
4
4
|
import { SSIPrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles';
|
|
5
5
|
const SSIPrimaryButton = (props) => {
|
|
@@ -7,7 +7,7 @@ const SSIPrimaryButton = (props) => {
|
|
|
7
7
|
const getIcon = (icon, color) => {
|
|
8
8
|
switch (icon) {
|
|
9
9
|
case ButtonIcon.ADD:
|
|
10
|
-
return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity:
|
|
10
|
+
return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, color: color });
|
|
11
11
|
default:
|
|
12
12
|
return _jsx("div", {});
|
|
13
13
|
}
|
|
@@ -17,6 +17,6 @@ const SSIPrimaryButton = (props) => {
|
|
|
17
17
|
await onClick();
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity:
|
|
20
|
+
return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, onClick: onClicked, children: [icon && getIcon(icon, fontColors.light), _jsx(Caption, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, children: caption })] }));
|
|
21
21
|
};
|
|
22
22
|
export default SSIPrimaryButton;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon,
|
|
2
|
+
import { ButtonIcon, OpacityStyleEnum } from '@sphereon/ui-components.core';
|
|
3
3
|
import SSIAddIcon from '../../assets/icons/SSIAddIcon';
|
|
4
4
|
import { SSISecondaryButtonCaptionStyled as Caption, SSISecondaryButtonContainerStyled as Container } from '../../../styles';
|
|
5
|
+
import { gradientColors } from '../../../styles/colors';
|
|
5
6
|
const SSISecondaryButton = (props) => {
|
|
6
7
|
const { caption, icon, onClick, disabled = false, style = {} } = props;
|
|
7
8
|
const getIcon = (icon, color) => {
|
|
8
9
|
switch (icon) {
|
|
9
10
|
case ButtonIcon.ADD:
|
|
10
|
-
return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity:
|
|
11
|
+
return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, color: color });
|
|
11
12
|
default:
|
|
12
13
|
return _jsx("div", {});
|
|
13
14
|
}
|
|
@@ -17,6 +18,6 @@ const SSISecondaryButton = (props) => {
|
|
|
17
18
|
await onClick();
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
|
-
return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity:
|
|
21
|
+
return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, onClick: onClicked, children: [icon && getIcon(icon, gradientColors['100']), _jsx(Caption, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, children: caption })] }));
|
|
21
22
|
};
|
|
22
23
|
export default SSISecondaryButton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OpacityStyleEnum, fontColors,
|
|
3
|
+
import { OpacityStyleEnum, fontColors, selectionElementColors } from '@sphereon/ui-components.core';
|
|
4
4
|
import { SSICheckboxContainerStyled as Container, SSICheckboxLabelContainerStyled as LabelCaption, SSICheckboxSelectedContainerStyled as SelectedContainer, SSICheckboxUnselectedContainerStyled as UnselectedContainer, } from '../../../styles/components';
|
|
5
5
|
const SSICheckbox = (props) => {
|
|
6
|
-
const { backgroundColor, borderColor =
|
|
6
|
+
const { backgroundColor, borderColor = selectionElementColors.primaryBorderDark, disabled = false, initialValue = false, label, selectedColor = selectionElementColors.primaryDark, labelColor = fontColors.light, checkmarkColor = fontColors.dark, } = props;
|
|
7
7
|
const [isChecked, setChecked] = React.useState(initialValue);
|
|
8
8
|
const value = props.isChecked !== undefined ? props.isChecked : isChecked;
|
|
9
9
|
const onValueChange = async () => {
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { elementColors, fontColors } from '@sphereon/ui-components.core';
|
|
3
3
|
import StepMarker from '../../assets/markers/StepMarker';
|
|
4
|
-
import {
|
|
4
|
+
import { gradientColors } from '../../../styles/colors';
|
|
5
|
+
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
6
|
import { StepStatus } from '../../../types';
|
|
6
7
|
const getStepRowElement = (stepNumber, status, step, maxSteps) => {
|
|
7
|
-
const gridRowNumber =
|
|
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: {
|
|
8
|
+
const gridRowNumber = stepNumber * 2 - 1;
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsxs(StepMarkerCell, { style: { gridRow: gridRowNumber }, children: [_jsx(StepMarker, { stepNumber: stepNumber, status: status }), stepNumber < maxSteps && (_jsx(StepLine, { style: {
|
|
26
10
|
...(status === StepStatus.COMPLETED && {
|
|
27
|
-
backgroundColor:
|
|
28
|
-
})
|
|
29
|
-
} }) })
|
|
11
|
+
backgroundColor: elementColors.purple,
|
|
12
|
+
}),
|
|
13
|
+
} }))] }), _jsxs(StepTextCell, { style: { gridRow: gridRowNumber }, children: [step.title && (_jsx(TitleText, { style: {
|
|
14
|
+
...(status === StepStatus.CURRENT && {
|
|
15
|
+
background: gradientColors['100'],
|
|
16
|
+
backgroundClip: 'text',
|
|
17
|
+
WebkitBackgroundClip: 'text',
|
|
18
|
+
WebkitTextFillColor: 'transparent',
|
|
19
|
+
}),
|
|
20
|
+
...(status === StepStatus.COMPLETED && { color: fontColors.dark }),
|
|
21
|
+
...(status === StepStatus.NEXT && { color: fontColors.lightGrey }),
|
|
22
|
+
}, children: step.title })), step.description && (_jsx(DescriptionText, { style: { ...((status === StepStatus.CURRENT || status === StepStatus.COMPLETED) && { color: fontColors.dark }) }, children: step.description }))] }), stepNumber < maxSteps && (_jsx(SpacerLineCell, { style: { gridRow: gridRowNumber + 1 }, children: _jsx(StepLine, { style: {
|
|
23
|
+
...(status === StepStatus.COMPLETED && {
|
|
24
|
+
backgroundColor: elementColors.purple,
|
|
25
|
+
}),
|
|
26
|
+
} }) }))] }));
|
|
30
27
|
};
|
|
31
28
|
const getStepStatus = (stepNumber, activeStep) => {
|
|
32
29
|
if (stepNumber < activeStep) {
|
|
@@ -49,6 +46,6 @@ const getStepElements = (activeStep, steps) => {
|
|
|
49
46
|
};
|
|
50
47
|
const ProgressStepIndicator = (props) => {
|
|
51
48
|
const { activeStep, steps = [], style } = props;
|
|
52
|
-
return _jsx(Container, { style: style, children: _jsx(GridContainer, { children: getStepElements(activeStep, steps) }) });
|
|
49
|
+
return (_jsx(Container, { style: style, children: _jsx(GridContainer, { children: getStepElements(activeStep, steps) }) }));
|
|
53
50
|
};
|
|
54
51
|
export default ProgressStepIndicator;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Oval } from 'react-loader-spinner';
|
|
3
|
-
import {
|
|
3
|
+
import { elementColors } from '@sphereon/ui-components.core';
|
|
4
4
|
const SSIActivityIndicator = (props) => {
|
|
5
|
-
const { size = 80, color =
|
|
5
|
+
const { size = 80, color = elementColors.blue, style } = props;
|
|
6
6
|
return (_jsx(Oval, { width: size, height: size, color: color, secondaryColor: color, strokeWidth: 5, strokeWidthSecondary: 5, visible: true, wrapperStyle: style }));
|
|
7
7
|
};
|
|
8
8
|
export default SSIActivityIndicator;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { backgroundColors,
|
|
2
|
+
import { backgroundColors, LabelType } from '@sphereon/ui-components.core';
|
|
3
3
|
import { SSITypeLabelContainerStyled as Container } from '../../../styles';
|
|
4
|
+
import { gradientColors } from '../../../styles/colors';
|
|
4
5
|
const getBackground = (type) => {
|
|
5
6
|
switch (type) {
|
|
6
7
|
case LabelType.ISSUER:
|
|
@@ -29,6 +29,9 @@ const getCellFormatting = (type, value, opts) => {
|
|
|
29
29
|
case TableCellType.STATUS: {
|
|
30
30
|
return _jsx(SSIStatusLabel, { status: value });
|
|
31
31
|
}
|
|
32
|
+
case TableCellType.REACT_ELEMENT: {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
32
35
|
default:
|
|
33
36
|
return _jsx("div", {});
|
|
34
37
|
}
|
|
@@ -66,7 +69,7 @@ const SSITableView = (props) => {
|
|
|
66
69
|
}
|
|
67
70
|
const table = useReactTable({
|
|
68
71
|
defaultColumn: {
|
|
69
|
-
size: 0
|
|
72
|
+
size: 0,
|
|
70
73
|
},
|
|
71
74
|
state: {
|
|
72
75
|
rowSelection,
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import SSIHoverText from './components/fields/SSIHoverText';
|
|
|
25
25
|
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
26
26
|
import StepMarker from './components/assets/markers/StepMarker';
|
|
27
27
|
import { Row } from '@tanstack/react-table';
|
|
28
|
-
export * from './styles/
|
|
28
|
+
export * from './styles/fonts';
|
|
29
29
|
export * from './types';
|
|
30
30
|
export * from './helpers';
|
|
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 };
|
|
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
|
@@ -24,7 +24,7 @@ import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
|
24
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
25
25
|
import ProgressStepIndicator from './components/indicators/ProgressStepIndicator';
|
|
26
26
|
import StepMarker from './components/assets/markers/StepMarker';
|
|
27
|
-
export * from './styles/
|
|
27
|
+
export * from './styles/fonts';
|
|
28
28
|
export * from './types';
|
|
29
29
|
export * from './helpers';
|
|
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 };
|
|
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,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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { backgroundColors, borderColors,
|
|
3
|
-
import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '
|
|
2
|
+
import { backgroundColors, borderColors, elementColors, fontColors } from '@sphereon/ui-components.core';
|
|
3
|
+
import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '../../../fonts';
|
|
4
4
|
export const ProgressStepIndicatorContainerStyled = styled.div `
|
|
5
5
|
background-color: ${backgroundColors.primaryLight};
|
|
6
6
|
border-radius: 24px;
|
|
@@ -44,5 +44,5 @@ export const ProgressStepIndicatorStepLineStyled = styled.div `
|
|
|
44
44
|
width: 4px;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-grow: 1;
|
|
47
|
-
background-color: ${
|
|
47
|
+
background-color: ${elementColors.lightGrey};
|
|
48
48
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { SSITextH4LightStyled } from '
|
|
2
|
+
import { SSITextH4LightStyled } from '../../../fonts';
|
|
3
3
|
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
4
4
|
export const SSICheckboxContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
5
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIFlexDirectionColumnViewStyled, SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
|
|
3
|
-
import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '
|
|
3
|
+
import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../../fonts';
|
|
4
4
|
export const SSICredentialCardViewContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
5
5
|
width: 327px;
|
|
6
6
|
height: 186px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
-
import { SSITextH3Styled } from '
|
|
4
|
-
import { gradient100TextCss } from
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIRoundedContainerStyled } from '../../containers';
|
|
3
|
-
import { gradientColors } from '
|
|
3
|
+
import { gradientColors } from '../../../colors';
|
|
4
4
|
export const SSIPrimaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
5
5
|
background: ${gradientColors['100']};
|
|
6
6
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIRoundedContainerStyled } from '../../containers';
|
|
3
|
-
import { SSITextH3Styled } from '
|
|
3
|
+
import { SSITextH3Styled } from '../../../fonts';
|
|
4
4
|
import { gradient100TextCss } from '../../../css';
|
|
5
5
|
export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
6
|
position: relative;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
-
import { SSITextH5LightStyled } from '
|
|
3
|
+
import { SSITextH5LightStyled } from '../../../fonts';
|
|
4
4
|
export const SSIStatusLabelContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
5
|
border-radius: 9px;
|
|
6
6
|
border: 1px solid #000;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { alertColors } from '@sphereon/ui-components.core';
|
|
3
3
|
import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
|
|
4
|
-
import { SSITextH4DarkStyled } from '
|
|
4
|
+
import { SSITextH4DarkStyled } from '../../../fonts';
|
|
5
5
|
export const SSIToastContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
6
|
//TODO we need better width, use a max width and use content to scale
|
|
7
7
|
// 96.8%;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { backgroundColors,
|
|
2
|
+
import { backgroundColors, elementColors } from '@sphereon/ui-components.core';
|
|
3
|
+
import { gradientColors } from '../../../colors';
|
|
3
4
|
export const StepMarkerActiveContainerStyled = styled.div `
|
|
4
5
|
width: 50px;
|
|
5
6
|
height: 50px;
|
|
@@ -21,7 +22,7 @@ export const StepMarkerActiveOuterContainerStyled = styled.div `
|
|
|
21
22
|
export const StepMarkerGradientContainerStyled = styled.div `
|
|
22
23
|
width: 42px;
|
|
23
24
|
height: 42px;
|
|
24
|
-
background: ${gradientColors[
|
|
25
|
+
background: ${gradientColors['100']};
|
|
25
26
|
border-radius: 21px;
|
|
26
27
|
display: flex;
|
|
27
28
|
align-items: center;
|
|
@@ -30,7 +31,7 @@ export const StepMarkerGradientContainerStyled = styled.div `
|
|
|
30
31
|
export const StepMarkerInactiveContainerStyled = styled.div `
|
|
31
32
|
width: 42px;
|
|
32
33
|
height: 42px;
|
|
33
|
-
background-color: ${
|
|
34
|
+
background-color: ${elementColors.lightGrey};
|
|
34
35
|
border-radius: 25px;
|
|
35
36
|
display: flex;
|
|
36
37
|
align-items: center;
|
package/dist/styles/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'styled-components';
|
|
2
|
-
import { gradientColors } from '@sphereon/ui-components.core';
|
|
3
2
|
import { fontStyle } from '../typography';
|
|
3
|
+
import { gradientColors } from '../colors';
|
|
4
4
|
export const SSITextH1Css = css `
|
|
5
5
|
font-family: ${fontStyle.h1Regular.fontFamily};
|
|
6
6
|
font-size: ${fontStyle.h1Regular.fontSize}px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { fontColors } from '@sphereon/ui-components.core';
|
|
3
|
-
import { SSITextH1Css, SSITextH1SemiBoldCss, SSITextH2Css, SSITextH2SemiBoldStyledCss, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css, } from '
|
|
3
|
+
import { SSITextH1Css, SSITextH1SemiBoldCss, SSITextH2Css, SSITextH2SemiBoldStyledCss, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css, } from '../css';
|
|
4
4
|
export const SSITextH1Styled = styled.div `
|
|
5
5
|
${SSITextH1Css}
|
|
6
6
|
`;
|
|
@@ -8,7 +8,7 @@ export const SSITextH1SemiBoldStyled = styled.div `
|
|
|
8
8
|
${SSITextH1SemiBoldCss}
|
|
9
9
|
`;
|
|
10
10
|
export const SSITextH1SemiBoldLightStyled = styled(SSITextH1SemiBoldStyled) `
|
|
11
|
-
color: ${fontColors.light}
|
|
11
|
+
color: ${fontColors.light};
|
|
12
12
|
`;
|
|
13
13
|
export const SSITextH2Styled = styled.div `
|
|
14
14
|
${SSITextH2Css}
|
package/dist/styles/index.d.ts
CHANGED
package/dist/styles/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import { AccessorFn, DeepKeys } from '@tanstack/react-table';
|
|
|
2
2
|
export declare enum TableCellType {
|
|
3
3
|
TEXT = "text",
|
|
4
4
|
LABEL = "label",
|
|
5
|
-
STATUS = "status"
|
|
5
|
+
STATUS = "status",
|
|
6
|
+
REACT_ELEMENT = "reactElement"
|
|
6
7
|
}
|
|
7
8
|
export type ColumnHeader<T> = {
|
|
8
9
|
accessor: AccessorFn<T> | DeepKeys<T>;
|
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.
|
|
4
|
+
"version": "0.1.3-unstable.94+aebd863",
|
|
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.
|
|
31
|
+
"@sphereon/ui-components.core": "0.1.3-unstable.94+aebd863",
|
|
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": "
|
|
45
|
+
"gitHead": "aebd8630a5a3dc51cd3381cee8b64b9147845aae"
|
|
46
46
|
}
|
|
File without changes
|