@sphereon/ui-components.ssi-react 0.2.1-unstable.5 → 0.2.1-unstable.52

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 (45) hide show
  1. package/LICENSE +201 -636
  2. package/dist/components/assets/icons/CopyIcon/index.d.ts +9 -0
  3. package/dist/components/assets/icons/CopyIcon/index.js +7 -0
  4. package/dist/components/assets/icons/PencilIcon/index.d.ts +8 -0
  5. package/dist/components/assets/icons/PencilIcon/index.js +7 -0
  6. package/dist/components/assets/icons/ViewIcon/index.d.ts +9 -0
  7. package/dist/components/assets/icons/ViewIcon/index.js +7 -0
  8. package/dist/components/buttons/{SSIIconButton → IconButton}/index.d.ts +3 -3
  9. package/dist/components/buttons/IconButton/index.js +17 -0
  10. package/dist/components/buttons/{SSISecondaryButton → PrimaryButton}/index.d.ts +3 -3
  11. package/dist/components/buttons/{SSIPrimaryButton → PrimaryButton}/index.js +5 -4
  12. package/dist/components/buttons/{SSIPrimaryButton → SecondaryButton}/index.d.ts +3 -3
  13. package/dist/components/buttons/{SSISecondaryButton → SecondaryButton}/index.js +5 -4
  14. package/dist/components/fields/SSIHoverText/index.js +1 -1
  15. package/dist/components/indicators/ProgressStepIndicator/index.js +6 -4
  16. package/dist/components/lists/DropDownList/index.js +2 -2
  17. package/dist/components/lists/DropDownListItem/index.js +3 -11
  18. package/dist/components/views/CredentialIssuanceWizardView/index.js +4 -5
  19. package/dist/components/views/FormView/index.d.ts +15 -0
  20. package/dist/components/views/FormView/index.js +12 -0
  21. package/dist/components/views/{CredentialIssuanceWizardView → FormView}/styles.css +24 -6
  22. package/dist/components/views/SSITableView/SSITableViewHeader/index.js +3 -3
  23. package/dist/index.d.ts +11 -6
  24. package/dist/index.js +10 -4
  25. package/dist/styles/components/components/IconButton/index.d.ts +1 -0
  26. package/dist/styles/components/components/{SSIIconButton → IconButton}/index.js +1 -1
  27. package/dist/styles/components/components/PrimaryButton/index.d.ts +1 -0
  28. package/dist/styles/components/components/{SSIPrimaryButton → PrimaryButton}/index.js +3 -2
  29. package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +1 -0
  30. package/dist/styles/components/components/ProgressStepIndicator/index.js +10 -0
  31. package/dist/styles/components/components/SecondaryButton/index.d.ts +2 -0
  32. package/dist/styles/components/components/{SSISecondaryButton → SecondaryButton}/index.js +4 -3
  33. package/dist/styles/components/components/index.d.ts +3 -3
  34. package/dist/styles/components/components/index.js +3 -3
  35. package/dist/types/indicator/index.d.ts +1 -0
  36. package/dist/types/view/index.d.ts +1 -1
  37. package/dist/utils/IconUtils.d.ts +3 -0
  38. package/dist/utils/IconUtils.js +32 -0
  39. package/dist/utils/index.d.ts +1 -0
  40. package/dist/utils/index.js +1 -0
  41. package/package.json +3 -3
  42. package/dist/components/buttons/SSIIconButton/index.js +0 -29
  43. package/dist/styles/components/components/SSIIconButton/index.d.ts +0 -1
  44. package/dist/styles/components/components/SSIPrimaryButton/index.d.ts +0 -1
  45. package/dist/styles/components/components/SSISecondaryButton/index.d.ts +0 -2
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ type Props = {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ style?: CSSProperties;
7
+ };
8
+ declare const CopyIcon: FC<Props>;
9
+ export default CopyIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const CopyIcon = (props) => {
4
+ const { width = 14, height = 19, color = fontColors.dark, style } = props;
5
+ return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 14 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M10.8054 0.456417C10.5328 0.161924 10.1706 0 9.78556 0H4.50625C3.71044 0 3.0625 0.700723 3.0625 1.56242V4.26115H1.44375C0.647938 4.26115 0 4.96187 0 5.82357V17.4376C0 18.2988 0.6475 19 1.44375 19H9.49375C10.2896 19 10.9375 18.2993 10.9375 17.4376V14.7403H12.5563C13.3521 14.7403 14 14.0395 14 13.1778V4.55517C14 4.13758 13.8495 3.74508 13.5761 3.44917L10.8054 0.456417ZM10.6461 1.62255L12.5051 3.63003H10.8793C10.7529 3.63003 10.6461 3.5145 10.6461 3.37767V1.62255ZM10.0629 17.4381C10.0629 17.7775 9.80787 18.0536 9.49419 18.0536H1.44375C1.13006 18.0536 0.875 17.7775 0.875 17.4381V5.82405C0.875 5.48458 1.13006 5.20855 1.44375 5.20855H3.0625V13.1783C3.0625 14.0395 3.71 14.7407 4.50625 14.7407H10.0625L10.0629 17.4381ZM12.5567 13.7938H10.5079C10.5053 13.7938 10.5031 13.7924 10.5004 13.7924C10.4978 13.7924 10.4956 13.7938 10.493 13.7938H4.50669C4.193 13.7938 3.93794 13.5178 3.93794 13.1783V1.56242C3.93794 1.22295 4.193 0.946922 4.50669 0.946922H9.77156V3.3772C9.77156 4.03862 10.2686 4.57648 10.8798 4.57648H13.1254V13.1778C13.1254 13.5173 12.8704 13.7938 12.5567 13.7938Z", fill: color }) }) }));
6
+ };
7
+ export default CopyIcon;
@@ -0,0 +1,8 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ export type Props = {
3
+ size?: number;
4
+ color?: string;
5
+ style?: CSSProperties;
6
+ };
7
+ declare const PencilIcon: FC<Props>;
8
+ export default PencilIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const PencilIcon = (props) => {
4
+ const { size = 18, color = fontColors.dark, style } = props;
5
+ return (_jsx("div", { style: { ...style, width: size, height: size, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M2.31294 17.953L5.45728 17.1188C5.71399 17.0513 5.9485 16.9105 6.13529 16.7119L16.5848 5.62715C17.1708 5.00553 17.5 4.16233 17.5 3.2832C17.5 2.40407 17.1708 1.56087 16.5848 0.939102C15.9896 0.336436 15.1982 0 14.3752 0C13.5522 0 12.7608 0.336436 12.1656 0.939102L1.71247 12.0224C1.5257 12.2205 1.39308 12.4688 1.32888 12.7407L0.543408 16.0762C0.434942 16.5376 0.53224 17.0264 0.807378 17.4019C1.08266 17.7773 1.50519 17.998 1.95343 18C2.0746 18.0001 2.19534 17.9844 2.3129 17.9532L2.31294 17.953ZM11.6618 3.34385L14.3151 6.15839L5.6098 15.3929L2.95655 12.5774L11.6618 3.34385ZM14.3742 1.29089C14.8719 1.29089 15.349 1.50057 15.7009 1.87373C16.0527 2.24704 16.2504 2.75317 16.2504 3.28108C16.2504 3.80884 16.0527 4.3151 15.7009 4.68827L15.2006 5.21899L12.5457 2.40623L13.046 1.87551C13.3971 1.49983 13.8756 1.28926 14.3742 1.29089ZM1.75661 16.4004L2.36287 13.8274L4.43498 16.0263L2.00676 16.6657C1.93543 16.6868 1.85921 16.6643 1.80826 16.6074C1.75758 16.5531 1.7379 16.4743 1.75661 16.4004Z", fill: color }) }) }));
6
+ };
7
+ export default PencilIcon;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ export type Props = {
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ style?: CSSProperties;
7
+ };
8
+ declare const ViewIcon: FC<Props>;
9
+ export default ViewIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const ViewIcon = (props) => {
4
+ const { width = 16, height = 17, color = fontColors.dark, style } = props;
5
+ return (_jsx("div", { style: { ...style, width: width, height: height, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0 14.7857V2.21429C0 1.26743 0.767429 0.5 1.71429 0.5H14.2857C15.2326 0.5 16 1.26743 16 2.21429V14.7857C16 15.7326 15.2326 16.5 14.2857 16.5C14.2857 16.5 10.2846 16.5 10.2817 16.5H1.71429C0.767429 16.5 0 15.7326 0 14.7857ZM14.8571 13.1566V2.21429C14.8571 1.89886 14.6011 1.64286 14.2857 1.64286H1.71429C1.39886 1.64286 1.14286 1.89886 1.14286 2.21429V10.3863L3.06628 7.08857C3.37714 6.55657 3.94915 6.232 4.56515 6.23829C5.18115 6.24457 5.74628 6.58114 6.04571 7.12L8.60172 11.72L9.52171 10.1869C9.81028 9.70571 10.3166 9.396 10.8766 9.35829C11.4366 9.32057 11.9794 9.55943 12.3303 9.99771L14.8571 13.1566ZM10.6217 15.3571H14.2857C14.5423 15.3571 14.76 15.1874 14.832 14.9543L11.4377 10.712C11.3206 10.5657 11.14 10.4863 10.9531 10.4989C10.7663 10.5114 10.5977 10.6143 10.5017 10.7749L9.24229 12.8737L10.6217 15.3571ZM1.14286 12.6543V14.7857C1.14286 15.1011 1.39886 15.3571 1.71429 15.3571H9.31428L5.04686 7.67486C4.94686 7.49543 4.75828 7.38343 4.55314 7.38114C4.34799 7.37886 4.15714 7.48743 4.05371 7.66457L1.14286 12.6543ZM8 6.21429C7.68457 6.21429 7.42857 5.95829 7.42857 5.64286C7.42857 5.32743 7.68457 5.07143 8 5.07143H10.2857C10.6011 5.07143 10.8571 5.32743 10.8571 5.64286C10.8571 5.95829 10.6011 6.21429 10.2857 6.21429H8ZM3.42857 3.92857C3.11314 3.92857 2.85714 3.67257 2.85714 3.35714C2.85714 3.04171 3.11314 2.78571 3.42857 2.78571H5.71429C6.02971 2.78571 6.28571 3.04171 6.28571 3.35714C6.28571 3.67257 6.02971 3.92857 5.71429 3.92857H3.42857ZM10.8571 3.92857C10.5417 3.92857 10.2857 3.67257 10.2857 3.35714C10.2857 3.04171 10.5417 2.78571 10.8571 2.78571H13.1429C13.4583 2.78571 13.7143 3.04171 13.7143 3.35714C13.7143 3.67257 13.4583 3.92857 13.1429 3.92857H10.8571Z", fill: color }) }) }));
6
+ };
7
+ export default ViewIcon;
@@ -4,8 +4,8 @@ type Props = {
4
4
  icon: ButtonIcon;
5
5
  caption?: string;
6
6
  onClick: MouseEventHandler;
7
- disabled?: boolean;
7
+ disabled?: boolean | (() => boolean);
8
8
  iconColor?: string;
9
9
  };
10
- declare const SSIIconButton: FC<Props>;
11
- export default SSIIconButton;
10
+ declare const IconButton: FC<Props>;
11
+ export default IconButton;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { fontColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
3
+ import { getIcon } from '../../../utils';
4
+ import { IconButtonContainerStyled as Container, SSITextH3Styled as Caption } from '../../../styles';
5
+ const IconButton = (props) => {
6
+ const { caption, icon, iconColor = fontColors.dark } = props;
7
+ const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
8
+ const onClick = async (event) => {
9
+ if (!disabled) {
10
+ props.onClick(event);
11
+ }
12
+ };
13
+ return (_jsxs(Container, { style: {
14
+ ...(disabled && { opacity: OpacityStyleEnum.DISABLED }),
15
+ }, onClick: onClick, children: [getIcon(icon, iconColor), caption && _jsx(Caption, { children: caption })] }));
16
+ };
17
+ export default IconButton;
@@ -4,8 +4,8 @@ type Props = {
4
4
  caption: string;
5
5
  onClick: () => Promise<void>;
6
6
  icon?: ButtonIcon;
7
- disabled?: boolean;
7
+ disabled?: boolean | (() => boolean);
8
8
  style?: CSSProperties;
9
9
  };
10
- declare const SSISecondaryButton: FC<Props>;
11
- export default SSISecondaryButton;
10
+ declare const PrimaryButton: FC<Props>;
11
+ export default PrimaryButton;
@@ -1,9 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ButtonIcon, fontColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
3
3
  import SSIAddIcon from '../../assets/icons/SSIAddIcon';
4
- import { SSIPrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles';
5
- const SSIPrimaryButton = (props) => {
6
- const { caption, icon, onClick, disabled = false, style } = props;
4
+ import { PrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles';
5
+ const PrimaryButton = (props) => {
6
+ const { caption, icon, onClick, style } = props;
7
+ const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
7
8
  const getIcon = (icon, color) => {
8
9
  switch (icon) {
9
10
  case ButtonIcon.ADD:
@@ -19,4 +20,4 @@ const SSIPrimaryButton = (props) => {
19
20
  };
20
21
  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
22
  };
22
- export default SSIPrimaryButton;
23
+ export default PrimaryButton;
@@ -4,8 +4,8 @@ type Props = {
4
4
  caption: string;
5
5
  onClick: () => Promise<void>;
6
6
  icon?: ButtonIcon;
7
- disabled?: boolean;
7
+ disabled?: boolean | (() => boolean);
8
8
  style?: CSSProperties;
9
9
  };
10
- declare const SSIPrimaryButton: FC<Props>;
11
- export default SSIPrimaryButton;
10
+ declare const SecondaryButton: FC<Props>;
11
+ export default SecondaryButton;
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ButtonIcon, OpacityStyleEnum } from '@sphereon/ui-components.core';
3
3
  import SSIAddIcon from '../../assets/icons/SSIAddIcon';
4
- import { SSISecondaryButtonCaptionStyled as Caption, SSISecondaryButtonContainerStyled as Container } from '../../../styles';
4
+ import { SecondaryButtonCaptionStyled as Caption, SecondaryButtonContainerStyled as Container } from '../../../styles';
5
5
  import { gradientColors } from '../../../styles/colors';
6
- const SSISecondaryButton = (props) => {
7
- const { caption, icon, onClick, disabled = false, style } = props;
6
+ const SecondaryButton = (props) => {
7
+ const { caption, icon, onClick, style } = props;
8
+ const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
8
9
  const getIcon = (icon, color) => {
9
10
  switch (icon) {
10
11
  case ButtonIcon.ADD:
@@ -20,4 +21,4 @@ const SSISecondaryButton = (props) => {
20
21
  };
21
22
  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 })] }));
22
23
  };
23
- export default SSISecondaryButton;
24
+ export default SecondaryButton;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { SSIHoverTextTextStyled as Text, SSIHoverTextContainerStyled as Container, SSIHoverTextTextHoverStyled as TextHover, } from '../../../styles/components';
3
3
  const SSIHoverText = (props) => {
4
4
  const { text, truncationLength, enableHover = true } = props;
5
- const value = truncationLength ? text.substring(0, truncationLength) : text;
5
+ const value = truncationLength ? `${text.substring(0, truncationLength)}...` : text;
6
6
  return (_jsxs(Container, { children: [_jsx(Text, { children: value }), enableHover && _jsx(TextHover, { children: text })] }));
7
7
  };
8
8
  export default SSIHoverText;
@@ -1,16 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { elementColors, fontColors } from '@sphereon/ui-components.core';
2
+ import { elementColors, fontColors, Localization } from '@sphereon/ui-components.core';
3
3
  import StepMarker from '../../assets/markers/StepMarker';
4
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
+ import { ProgressStepIndicatorContainerStyled as Container, ProgressStepIndicatorContentGridContainerStyled as GridContainer, ProgressStepIndicatorStepMarkerCellStyled as StepMarkerCell, ProgressStepIndicatorStepLineStyled as StepLine, ProgressStepIndicatorStepTextCellStyled as StepTextCell, ProgressStepIndicatorTitleTextStyled as TitleText, ProgressStepIndicatorDescriptionTextStyled as DescriptionText, ProgressStepIndicatorOptionalTextStyled as OptionalText, ProgressStepIndicatorSpacerLineCellStyled as SpacerLineCell, } from '../../../styles';
6
6
  import { StepStatus } from '../../../types';
7
7
  const getStepRowElement = (stepNumber, status, step, maxSteps) => {
8
+ const { title, description, required = true } = step;
8
9
  const gridRowNumber = stepNumber * 2 - 1;
9
10
  return (_jsxs(_Fragment, { children: [_jsxs(StepMarkerCell, { style: { gridRow: gridRowNumber }, children: [_jsx(StepMarker, { stepNumber: stepNumber, status: status }), stepNumber < maxSteps && (_jsx(StepLine, { style: {
10
11
  ...(status === StepStatus.COMPLETED && {
11
12
  backgroundColor: elementColors.purple,
12
13
  }),
13
- } }))] }), _jsxs(StepTextCell, { style: { gridRow: gridRowNumber }, children: [step.title && (_jsx(TitleText, { style: {
14
+ } }))] }), _jsxs(StepTextCell, { style: { gridRow: gridRowNumber }, children: [title && (_jsxs(TitleText, { style: {
14
15
  ...(status === StepStatus.CURRENT && {
15
16
  background: gradientColors['100'],
16
17
  backgroundClip: 'text',
@@ -19,7 +20,8 @@ const getStepRowElement = (stepNumber, status, step, maxSteps) => {
19
20
  }),
20
21
  ...(status === StepStatus.COMPLETED && { color: fontColors.dark }),
21
22
  ...(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
+ }, children: [_jsx("div", { children: title }), !required &&
24
+ _jsx(OptionalText, { children: Localization.translate('optional_label') })] })), description && (_jsx(DescriptionText, { style: { ...((status === StepStatus.CURRENT || status === StepStatus.COMPLETED) && { color: fontColors.dark }) }, children: description }))] }), stepNumber < maxSteps && (_jsx(SpacerLineCell, { style: { gridRow: gridRowNumber + 1 }, children: _jsx(StepLine, { style: {
23
25
  ...(status === StepStatus.COMPLETED && {
24
26
  backgroundColor: elementColors.purple,
25
27
  }),
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect } from 'react';
3
3
  import { borderColors } from '@sphereon/ui-components.core';
4
4
  import DropDownListItem from '../DropDownListItem';
5
- import SSIIconButton from '../../buttons/SSIIconButton';
5
+ import IconButton from '../../buttons/IconButton';
6
6
  import { DropDownListContainerStyled as Container, DropDownContainerStyled as DropDownContainer, DropDownListButtonStyled as ListButton, } from '../../../styles/components';
7
7
  const DropDownList = (props) => {
8
8
  const { icon, buttons, showBorder = false } = props;
@@ -29,6 +29,6 @@ const DropDownList = (props) => {
29
29
  return (_jsx(DropDownListItem, { showBorder: showBorder, label: item.caption, onClick: item.onClick, icon: item.icon, fontColor: item.fontColor }, index));
30
30
  });
31
31
  };
32
- return (_jsxs(Container, { ref: dropdownRef, children: [_jsx(ListButton, { children: _jsx(SSIIconButton, { icon: icon, onClick: onMore }) }), showActionsMenu && (_jsx(DropDownContainer, { style: { ...(showBorder && { borderWidth: 2, borderColor: borderColors.lightGrey, borderStyle: 'solid' }) }, children: getItems() }))] }));
32
+ return (_jsxs(Container, { ref: dropdownRef, children: [_jsx(ListButton, { children: _jsx(IconButton, { icon: icon, onClick: onMore }) }), showActionsMenu && (_jsx(DropDownContainer, { style: { ...(showBorder && { borderWidth: 2, borderColor: borderColors.lightGrey, borderStyle: 'solid' }) }, children: getItems() }))] }));
33
33
  };
34
34
  export default DropDownList;
@@ -1,17 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DropDownListItemContainerStyled as Container, DropDownListItemIconContainerStyled as IconContainer, DropDownListItemCaptionContainerStyled as ListItemCaption, } from '../../../styles/components';
3
- import DeleteIcon from '../../assets/icons/DeleteIcon';
4
- import { borderColors, ButtonIcon, fontColors } from '@sphereon/ui-components.core';
2
+ import { borderColors, fontColors } from '@sphereon/ui-components.core';
3
+ import { getIcon } from '../../../utils';
4
+ import { DropDownListItemCaptionContainerStyled as ListItemCaption, DropDownListItemContainerStyled as Container, DropDownListItemIconContainerStyled as IconContainer, } from '../../../styles/components';
5
5
  const DropDownListItem = (props) => {
6
6
  const { disabled, label, icon, showBorder = false, fontColor = fontColors.dark, borderColor = borderColors.light, onClick } = props;
7
- const getIcon = (icon) => {
8
- switch (icon) {
9
- case ButtonIcon.DELETE:
10
- return _jsx(DeleteIcon, { color: fontColors.dark });
11
- default:
12
- return _jsx("div", {});
13
- }
14
- };
15
7
  const onContainerClick = async (event) => {
16
8
  event.stopPropagation();
17
9
  if (onClick) {
@@ -1,13 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { Autocomplete, TextField } from '@mui/material';
4
- import { materialCells } from '@jsonforms/material-renderers';
5
- import { JsonForms } from '@jsonforms/react';
6
4
  import { Localization } from '@sphereon/ui-components.core';
7
5
  import FileSelection from '../../fields/FileSelection';
8
6
  import DragAndDropBox from '../../fields/DragAndDropBox';
9
- import { jsonFormsMaterialRenderers } from '../../../renders/jsonFormsRenders';
10
7
  import { CredentialIssuanceWizardViewContainerStyled as Container, CredentialIssuanceWizardViewCredentialTypeContainerStyled as CredentialTypeContainer, CredentialIssuanceWizardViewCredentialTypeTitleStyled as CredentialTypeTitle, CredentialIssuanceWizardViewFormContainerStyled as FormContainer, CredentialIssuanceWizardViewEvidenceContainerStyled as EvidenceContainer, CredentialIssuanceWizardViewEvidenceContentContainerStyled as EvidenceContentContainer, CredentialIssuanceWizardViewEvidenceTitleContainerStyled as EvidenceTitleContainer, SSITextH2SemiBoldStyled as EvidenceTitle, CredentialIssuanceWizardViewEvidenceTitleOptionalStyled as EvidenceTitleOptional, SSITextH2Styled as EvidenceDescription, CredentialIssuanceWizardViewEvidenceFilesContainerStyled as EvidenceFilesContainer } from '../../../styles';
8
+ import FormView from "../FormView";
11
9
  const CredentialIssuanceWizardView = (props) => {
12
10
  const { credentialData, credentialTypes, onSelectCredentialTypeChange, onCredentialFormDataChange } = props;
13
11
  const [selectedCredentialType, setSelectedCredentialType] = useState(null);
@@ -19,7 +17,7 @@ const CredentialIssuanceWizardView = (props) => {
19
17
  setSelectedCredentialType(value);
20
18
  onSelectCredentialTypeChange?.(value);
21
19
  };
22
- const onCredentialFormInputChange = (state) => {
20
+ const onCredentialFormInputChange = async (state) => {
23
21
  setCredentialInput(state);
24
22
  onCredentialFormDataChange?.({ ...state, evidence });
25
23
  };
@@ -38,6 +36,7 @@ const CredentialIssuanceWizardView = (props) => {
38
36
  return evidence.map((file, index) => _jsx(FileSelection, { file: file, onRemove: async () => onRemoveEvidence(index) }, index));
39
37
  };
40
38
  return (_jsxs(Container, { children: [_jsxs(CredentialTypeContainer, { children: [_jsx(CredentialTypeTitle, { children: Localization.translate('credential_issuance_wizard_title') }), _jsx(Autocomplete, { options: credentialTypes, sx: { flexGrow: 1 }, renderInput: (params) => _jsx(TextField, { ...params, label: Localization.translate('credential_issuance_wizard_credential_type_label') }), onChange: onCredentialTypeChange })] }), selectedCredentialType &&
41
- _jsxs(_Fragment, { children: [_jsx(FormContainer, { children: _jsx(JsonForms, { schema: selectedCredentialType.schema, uischema: selectedCredentialType.uiSchema, data: credentialData, renderers: jsonFormsMaterialRenderers, cells: materialCells, onChange: onCredentialFormInputChange }) }), _jsx(EvidenceContainer, { children: _jsxs(EvidenceContentContainer, { children: [_jsxs("div", { children: [_jsxs(EvidenceTitleContainer, { children: [_jsx(EvidenceTitle, { children: Localization.translate('credential_issuance_wizard_evidence_title') }), _jsx(EvidenceTitleOptional, { children: Localization.translate('credential_issuance_wizard_evidence_optional_title') })] }), _jsx(EvidenceDescription, { children: Localization.translate('credential_issuance_wizard_evidence_description') })] }), _jsxs(EvidenceFilesContainer, { children: [_jsx(DragAndDropBox, { caption: Localization.translate('drag_and_drop_upload_evidence_caption'), description: Localization.translate('credential_attach_evidence_description'), onChangeFile: onAddEvidence }), getEvidenceElements()] })] }) })] })] }));
39
+ _jsxs(_Fragment, { children: [_jsx(FormContainer, { children: (selectedCredentialType.schema && selectedCredentialType.uiSchema) &&
40
+ _jsx(FormView, { schema: selectedCredentialType.schema, uiSchema: selectedCredentialType.uiSchema, data: credentialData, onFormStateChange: onCredentialFormInputChange }) }), _jsx(EvidenceContainer, { children: _jsxs(EvidenceContentContainer, { children: [_jsxs("div", { children: [_jsxs(EvidenceTitleContainer, { children: [_jsx(EvidenceTitle, { children: Localization.translate('credential_issuance_wizard_evidence_title') }), _jsx(EvidenceTitleOptional, { children: Localization.translate('optional_label') })] }), _jsx(EvidenceDescription, { children: Localization.translate('credential_issuance_wizard_evidence_description') })] }), _jsxs(EvidenceFilesContainer, { children: [_jsx(DragAndDropBox, { caption: Localization.translate('drag_and_drop_upload_evidence_caption'), description: Localization.translate('credential_attach_evidence_description'), onChangeFile: onAddEvidence }), getEvidenceElements()] })] }) })] })] }));
42
41
  };
43
42
  export default CredentialIssuanceWizardView;
@@ -0,0 +1,15 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, UISchemaElement, ValidationMode } from '@jsonforms/core';
3
+ import { JSONFormState } from '../../../types';
4
+ type Props = {
5
+ schema: JsonSchema;
6
+ uiSchema: UISchemaElement;
7
+ validationMode?: ValidationMode;
8
+ data?: Record<any, any>;
9
+ renderers?: Array<JsonFormsRendererRegistryEntry>;
10
+ cells?: Array<JsonFormsCellRendererRegistryEntry>;
11
+ onFormStateChange?: (state: JSONFormState) => Promise<void>;
12
+ style?: CSSProperties;
13
+ };
14
+ declare const FormView: FC<Props>;
15
+ export default FormView;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { JsonForms } from '@jsonforms/react';
3
+ import { materialCells } from '@jsonforms/material-renderers';
4
+ import { jsonFormsMaterialRenderers } from '../../../renders/jsonFormsRenders';
5
+ const FormView = (props) => {
6
+ const { data, schema, uiSchema, validationMode = 'ValidateAndShow', renderers = jsonFormsMaterialRenderers, cells = materialCells, style, onFormStateChange } = props;
7
+ const onFormStateChanged = (state) => {
8
+ void onFormStateChange?.(state);
9
+ };
10
+ return _jsx("div", { style: style, children: _jsx(JsonForms, { schema: schema, uischema: uiSchema, data: data, renderers: renderers, cells: cells, onChange: onFormStateChanged, validationMode: validationMode }) });
11
+ };
12
+ export default FormView;
@@ -6,12 +6,7 @@
6
6
  border-color: #7276F7 !important;
7
7
  }
8
8
 
9
- .MuiInputLabel-root.MuiFormLabel-root {
10
- color: #303030 !important;
11
- }
12
-
13
9
  .MuiTypography-h6 {
14
- color: #303030 !important;
15
10
  font-size: 16px !important;
16
11
  font-style: normal !important;
17
12
  font-weight: 600 !important;
@@ -38,6 +33,7 @@
38
33
  margin: 0 !important;
39
34
  background-color: #FBFBFB !important;
40
35
  box-shadow: none !important;
36
+ border-radius: 4px !important;
41
37
  }
42
38
 
43
39
  .MuiCardHeader-title {
@@ -46,7 +42,6 @@
46
42
  font-style: normal !important;
47
43
  font-weight: 400 !important;
48
44
  margin-bottom: 10px !important;
49
- color: #303030 !important;
50
45
  }
51
46
 
52
47
  .MuiGrid-root.MuiGrid-container.MuiGrid-direction-xs-column {
@@ -67,6 +62,7 @@
67
62
 
68
63
  .MuiTypography-root {
69
64
  font-family: 'Poppins', sans-serif !important;
65
+ color: #303030 !important;
70
66
  }
71
67
 
72
68
  .MuiDateCalendar-root {
@@ -85,3 +81,25 @@
85
81
  .MuiButtonBase-root.MuiPickersDay-root.MuiPickersDay-dayWithMargin:hover {
86
82
  background-color: #B7B8D9 !important;
87
83
  }
84
+
85
+ .base-Popper-root {
86
+ border-radius: 4px !important;
87
+ }
88
+
89
+ .MuiFormGroup-root.MuiFormGroup-row {
90
+ display: grid !important;
91
+ grid-template-columns: repeat(2, 1fr) !important;
92
+ grid-gap: 10px !important;
93
+ }
94
+
95
+ .MuiGrid-root.MuiGrid-item.MuiGrid-grid-xs-true:empty {
96
+ display: none !important;
97
+ }
98
+
99
+ textarea.MuiInputBase-input.MuiInputBase-inputMultiline {
100
+ min-height: 112px !important;
101
+ }
102
+
103
+ .MuiTabs-scroller.MuiTabs-fixed {
104
+ margin-bottom: 12px !important;
105
+ }
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ButtonIcon, Localization, statusColors } from '@sphereon/ui-components.core';
3
- import SSIIconButton from '../../../buttons/SSIIconButton';
4
- import SSIPrimaryButton from '../../../buttons/SSIPrimaryButton';
3
+ import IconButton from '../../../buttons/IconButton';
4
+ import PrimaryButton from '../../../buttons/PrimaryButton';
5
5
  import { SSITableViewHeaderActionsContainerStyled as ActionsContainer, SSITableViewHeaderContainerStyled as Container, SSITableViewHeaderContentContainerStyled as ContentContainer, SSITextH3Styled as FilterCaption, SSITableViewHeaderFilterContainerStyled as FilterContainer, TableViewHeaderStaticActionsContainerStyled as StaticActionsContainer, } from '../../../../styles';
6
6
  const SSITableViewHeader = (props) => {
7
7
  const { enableFiltering = false, enableMostRecent = false, actions = [], onDelete } = props;
8
8
  const onDeleteClick = async () => {
9
9
  await onDelete?.();
10
10
  };
11
- return (_jsxs(Container, { children: [_jsx(StaticActionsContainer, { children: onDelete && (_jsx(SSIIconButton, { caption: Localization.translate('action_delete_label'), icon: ButtonIcon.DELETE, iconColor: statusColors.error, onClick: onDeleteClick })) }), _jsx(ContentContainer, { style: { width: 'fit-content' }, children: _jsxs(ActionsContainer, { children: [enableFiltering && (_jsxs(FilterContainer, { children: [_jsx(SSIIconButton, { icon: ButtonIcon.FILTER, onClick: async () => console.log('add filter clicked') }), _jsx(FilterCaption, { children: Localization.translate('action_filter_caption') })] })), actions.map((action, index) => (_jsx(SSIPrimaryButton, { caption: action.caption, onClick: action.onClick, icon: action.icon }, index)))] }) })] }));
11
+ return (_jsxs(Container, { children: [_jsx(StaticActionsContainer, { children: onDelete && (_jsx(IconButton, { caption: Localization.translate('action_delete_label'), icon: ButtonIcon.DELETE, iconColor: statusColors.error, onClick: onDeleteClick })) }), _jsx(ContentContainer, { style: { width: 'fit-content' }, children: _jsxs(ActionsContainer, { children: [enableFiltering && (_jsxs(FilterContainer, { children: [_jsx(IconButton, { icon: ButtonIcon.FILTER, onClick: async () => console.log('add filter clicked') }), _jsx(FilterCaption, { children: Localization.translate('action_filter_caption') })] })), actions.map((action, index) => (_jsx(PrimaryButton, { caption: action.caption, onClick: action.onClick, icon: action.icon }, index)))] }) })] }));
12
12
  };
13
13
  export default SSITableViewHeader;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
2
2
  import SSIStatusLabel from './components/labels/SSIStatusLabel';
3
3
  import SSICredentialCardView from './components/views/SSICredentialCardView';
4
- import CredentialMiniCardView from './components/views/CredentialMiniCardView';
5
- import { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
4
+ import CredentialMiniCardView, { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
6
5
  import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
7
6
  import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
8
7
  import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
@@ -11,15 +10,15 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
11
10
  import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
12
11
  import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
13
12
  import SSITypeLabel from './components/labels/SSITypeLabel';
14
- import SSIIconButton from './components/buttons/SSIIconButton';
15
- import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
13
+ import IconButton from './components/buttons/IconButton';
14
+ import PrimaryButton from './components/buttons/PrimaryButton';
16
15
  import DropDownList from './components/lists/DropDownList';
17
16
  import SSITableView from './components/views/SSITableView';
18
17
  import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
19
18
  import SSITabView from './components/views/SSITabView';
20
19
  import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
21
20
  import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
22
- import SSISecondaryButton from './components/buttons/SSISecondaryButton';
21
+ import SecondaryButton from './components/buttons/SecondaryButton';
23
22
  import SSICheckbox from './components/fields/SSICheckbox';
24
23
  import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
25
24
  import SSIHoverText from './components/fields/SSIHoverText';
@@ -28,6 +27,11 @@ import StepMarker from './components/assets/markers/StepMarker';
28
27
  import DocumentIcon from './components/assets/icons/DocumentIcon';
29
28
  import CrossIcon from './components/assets/icons/CrossIcon';
30
29
  import ImageIcon from './components/assets/icons/ImageIcon';
30
+ import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
31
+ import PencilIcon from './components/assets/icons/PencilIcon';
32
+ import ViewIcon from './components/assets/icons/ViewIcon';
33
+ import CopyIcon from './components/assets/icons/CopyIcon';
34
+ import DeleteIcon from './components/assets/icons/DeleteIcon';
31
35
  import FileSelection from './components/fields/FileSelection';
32
36
  import ComboBox from './components/fields/ComboBox';
33
37
  import DragAndDropBox from './components/fields/DragAndDropBox';
@@ -40,9 +44,10 @@ import CredentialViewItem from './components/views/CredentialViewItem';
40
44
  import JSONDataView from './components/views/JSONDataView';
41
45
  import TextInputField from './components/fields/TextInputField';
42
46
  import WarningImage from './components/assets/images/WarningImage';
47
+ import FormView from './components/views/FormView';
43
48
  import { Row } from '@tanstack/react-table';
44
49
  export * from './styles/fonts';
45
50
  export * from './types';
46
51
  export * from './helpers';
47
52
  export * from './utils';
48
- export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage };
53
+ export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, };
package/dist/index.js CHANGED
@@ -10,15 +10,15 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
10
10
  import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
11
11
  import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
12
12
  import SSITypeLabel from './components/labels/SSITypeLabel';
13
- import SSIIconButton from './components/buttons/SSIIconButton';
14
- import SSIPrimaryButton from './components/buttons/SSIPrimaryButton';
13
+ import IconButton from './components/buttons/IconButton';
14
+ import PrimaryButton from './components/buttons/PrimaryButton';
15
15
  import DropDownList from './components/lists/DropDownList';
16
16
  import SSITableView from './components/views/SSITableView';
17
17
  import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
18
18
  import SSITabView from './components/views/SSITabView';
19
19
  import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
20
20
  import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
21
- import SSISecondaryButton from './components/buttons/SSISecondaryButton';
21
+ import SecondaryButton from './components/buttons/SecondaryButton';
22
22
  import SSICheckbox from './components/fields/SSICheckbox';
23
23
  import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
24
24
  import SSIHoverText from './components/fields/SSIHoverText';
@@ -27,6 +27,11 @@ import StepMarker from './components/assets/markers/StepMarker';
27
27
  import DocumentIcon from './components/assets/icons/DocumentIcon';
28
28
  import CrossIcon from './components/assets/icons/CrossIcon';
29
29
  import ImageIcon from './components/assets/icons/ImageIcon';
30
+ import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
31
+ import PencilIcon from './components/assets/icons/PencilIcon';
32
+ import ViewIcon from './components/assets/icons/ViewIcon';
33
+ import CopyIcon from './components/assets/icons/CopyIcon';
34
+ import DeleteIcon from './components/assets/icons/DeleteIcon';
30
35
  import FileSelection from './components/fields/FileSelection';
31
36
  import ComboBox from './components/fields/ComboBox';
32
37
  import DragAndDropBox from './components/fields/DragAndDropBox';
@@ -39,8 +44,9 @@ import CredentialViewItem from './components/views/CredentialViewItem';
39
44
  import JSONDataView from './components/views/JSONDataView';
40
45
  import TextInputField from './components/fields/TextInputField';
41
46
  import WarningImage from './components/assets/images/WarningImage';
47
+ import FormView from './components/views/FormView';
42
48
  export * from './styles/fonts';
43
49
  export * from './types';
44
50
  export * from './helpers';
45
51
  export * from './utils';
46
- export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage };
52
+ export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, };
@@ -0,0 +1 @@
1
+ export declare const IconButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- export const SSIIconButtonContainerStyled = styled.div `
2
+ export const IconButtonContainerStyled = styled.div `
3
3
  gap: 8px;
4
4
  height: 32px;
5
5
  min-width: 32px;
@@ -0,0 +1 @@
1
+ export declare const PrimaryButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,13 +1,14 @@
1
1
  import styled from 'styled-components';
2
2
  import { SSIRoundedContainerStyled } from '../../containers';
3
3
  import { gradientColors } from '../../../colors';
4
- export const SSIPrimaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
4
+ export const PrimaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
5
5
  background: ${gradientColors['100']};
6
6
  display: flex;
7
7
  flex-direction: row;
8
8
  justify-content: center;
9
9
  align-items: center;
10
10
  gap: 8px;
11
- padding: 9px 6px 9px 6px;
11
+ padding: 9px;
12
12
  cursor: pointer;
13
+ width: 180px;
13
14
  `;
@@ -5,4 +5,5 @@ export declare const ProgressStepIndicatorStepTextCellStyled: import("styled-com
5
5
  export declare const ProgressStepIndicatorSpacerLineCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const ProgressStepIndicatorTitleTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export declare const ProgressStepIndicatorDescriptionTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const ProgressStepIndicatorOptionalTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
8
9
  export declare const ProgressStepIndicatorStepLineStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { backgroundColors, borderColors, elementColors, fontColors } from '@sphereon/ui-components.core';
3
3
  import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '../../../fonts';
4
+ import { SSITextH2Css } from "../../../css";
4
5
  export const ProgressStepIndicatorContainerStyled = styled.div `
5
6
  background-color: ${backgroundColors.primaryLight};
6
7
  border-radius: 24px;
@@ -36,11 +37,20 @@ export const ProgressStepIndicatorSpacerLineCellStyled = styled.div `
36
37
  `;
37
38
  export const ProgressStepIndicatorTitleTextStyled = styled(SSITextH1SemiBoldStyled) `
38
39
  word-break: break-word;
40
+
41
+ display: flex;
42
+ flex-direction: row;
43
+ gap: 4px;
39
44
  `;
40
45
  export const ProgressStepIndicatorDescriptionTextStyled = styled(SSITextH3Styled) `
41
46
  word-break: break-word;
42
47
  color: ${fontColors.lightGrey};
43
48
  `;
49
+ export const ProgressStepIndicatorOptionalTextStyled = styled.div `
50
+ ${SSITextH2Css};
51
+ line-height: unset;
52
+ font-style: italic;
53
+ `;
44
54
  export const ProgressStepIndicatorStepLineStyled = styled.div `
45
55
  width: 4px;
46
56
  display: flex;
@@ -0,0 +1,2 @@
1
+ export declare const SecondaryButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SecondaryButtonCaptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,15 +2,16 @@ import styled from 'styled-components';
2
2
  import { SSIRoundedContainerStyled } from '../../containers';
3
3
  import { SSITextH3Styled } from '../../../fonts';
4
4
  import { gradient100TextCss } from '../../../css';
5
- export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
5
+ export const SecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
6
6
  position: relative;
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  justify-content: center;
10
10
  align-items: center;
11
11
  gap: 8px;
12
- padding: 9px 6px 9px 6px;
12
+ padding: 9px;
13
13
  cursor: pointer;
14
+ width: 180px;
14
15
 
15
16
  &::before {
16
17
  content: '';
@@ -27,6 +28,6 @@ export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyle
27
28
  mask-composite: exclude;
28
29
  }
29
30
  `;
30
- export const SSISecondaryButtonCaptionStyled = styled(SSITextH3Styled) `
31
+ export const SecondaryButtonCaptionStyled = styled(SSITextH3Styled) ` // FIXME H3 vs H2 mobile
31
32
  ${gradient100TextCss}
32
33
  `;