@sphereon/ui-components.ssi-react 0.1.3-next.12 → 0.1.3-next.124

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 (137) hide show
  1. package/dist/@config/toasts/index.d.ts +7 -0
  2. package/dist/@config/toasts/index.js +13 -0
  3. package/dist/components/assets/badges/SSICheckmarkBadge/index.js +1 -1
  4. package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +1 -1
  5. package/dist/components/assets/icons/DeleteIcon/index.d.ts +9 -0
  6. package/dist/components/assets/icons/DeleteIcon/index.js +7 -0
  7. package/dist/components/assets/icons/MeatBallsIcon/index.d.ts +9 -0
  8. package/dist/components/assets/icons/MeatBallsIcon/index.js +7 -0
  9. package/dist/components/assets/icons/SSIAddIcon/index.d.ts +3 -3
  10. package/dist/components/assets/icons/SSIAddIcon/index.js +1 -1
  11. package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +3 -3
  12. package/dist/components/assets/icons/SSIArrowDownIcon/index.js +1 -1
  13. package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +3 -3
  14. package/dist/components/assets/icons/SSIFilterIcon/index.js +1 -1
  15. package/dist/components/assets/icons/SSIProfileIcon/index.d.ts +1 -1
  16. package/dist/components/assets/icons/SSIProfileIcon/index.js +1 -2
  17. package/dist/components/assets/logos/SSILogo/index.d.ts +1 -1
  18. package/dist/components/assets/logos/SSILogo/index.js +1 -1
  19. package/dist/components/assets/markers/StepMarker/index.d.ts +8 -0
  20. package/dist/components/assets/markers/StepMarker/index.js +26 -0
  21. package/dist/components/buttons/SSIIconButton/index.d.ts +7 -6
  22. package/dist/components/buttons/SSIIconButton/index.js +15 -10
  23. package/dist/components/buttons/SSIPrimaryButton/index.d.ts +3 -3
  24. package/dist/components/buttons/SSIPrimaryButton/index.js +5 -6
  25. package/dist/components/buttons/SSISecondaryButton/index.d.ts +3 -3
  26. package/dist/components/buttons/SSISecondaryButton/index.js +6 -6
  27. package/dist/components/fields/SSICheckbox/index.d.ts +15 -0
  28. package/dist/components/fields/SSICheckbox/index.js +21 -0
  29. package/dist/components/fields/SSIHoverText/index.d.ts +8 -0
  30. package/dist/components/fields/SSIHoverText/index.js +8 -0
  31. package/dist/components/indicators/ProgressStepIndicator/index.d.ts +9 -0
  32. package/dist/components/indicators/ProgressStepIndicator/index.js +51 -0
  33. package/dist/components/indicators/SSIActivityIndicator/index.d.ts +10 -0
  34. package/dist/components/indicators/SSIActivityIndicator/index.js +8 -0
  35. package/dist/components/labels/SSIStatusLabel/index.d.ts +1 -1
  36. package/dist/components/labels/SSIStatusLabel/index.js +1 -1
  37. package/dist/components/labels/SSITypeLabel/index.d.ts +3 -3
  38. package/dist/components/labels/SSITypeLabel/index.js +5 -5
  39. package/dist/components/lists/DropDownList/index.d.ts +10 -0
  40. package/dist/components/lists/DropDownList/index.js +34 -0
  41. package/dist/components/lists/DropDownListItem/index.d.ts +13 -0
  42. package/dist/components/lists/DropDownListItem/index.js +23 -0
  43. package/dist/components/messageBoxes/toasts/SSIToast/index.d.ts +11 -0
  44. package/dist/components/messageBoxes/toasts/SSIToast/index.js +20 -0
  45. package/dist/components/messageBoxes/toasts/SSIToastContainer/index.d.ts +10 -0
  46. package/dist/components/messageBoxes/toasts/SSIToastContainer/index.js +7 -0
  47. package/dist/components/views/{SSIMiniCardView → CredentialMiniCardView}/index.d.ts +3 -3
  48. package/dist/components/views/{SSIMiniCardView → CredentialMiniCardView}/index.js +4 -4
  49. package/dist/components/views/{SSICardView → SSICredentialCardView}/index.d.ts +2 -2
  50. package/dist/components/views/SSICredentialCardView/index.js +24 -0
  51. package/dist/components/views/SSITabView/SSITabViewHeader/index.d.ts +2 -2
  52. package/dist/components/views/SSITabView/SSITabViewHeader/index.js +1 -1
  53. package/dist/components/views/SSITabView/index.d.ts +2 -2
  54. package/dist/components/views/SSITabView/index.js +1 -1
  55. package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +2 -1
  56. package/dist/components/views/SSITableView/SSITableViewHeader/index.js +8 -7
  57. package/dist/components/views/SSITableView/index.d.ts +2 -1
  58. package/dist/components/views/SSITableView/index.js +83 -30
  59. package/dist/helpers/index.d.ts +1 -0
  60. package/dist/helpers/index.js +1 -0
  61. package/dist/helpers/toastHelper.d.ts +3 -0
  62. package/dist/helpers/toastHelper.js +14 -0
  63. package/dist/index.d.ts +14 -5
  64. package/dist/index.js +12 -5
  65. package/dist/styles/colors.d.ts +3 -0
  66. package/dist/styles/colors.js +5 -0
  67. package/dist/styles/components/components/DropDownList/index.d.ts +3 -0
  68. package/dist/styles/components/components/DropDownList/index.js +21 -0
  69. package/dist/styles/components/components/DropDownListItem/index.d.ts +3 -0
  70. package/dist/styles/components/components/DropDownListItem/index.js +21 -0
  71. package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +8 -0
  72. package/dist/styles/components/components/ProgressStepIndicator/index.js +48 -0
  73. package/dist/styles/components/components/SSICheckbox/index.d.ts +4 -0
  74. package/dist/styles/components/components/SSICheckbox/index.js +25 -0
  75. package/dist/styles/components/components/SSICredentialCardView/index.d.ts +13 -0
  76. package/dist/styles/components/components/SSICredentialCardView/index.js +58 -0
  77. package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +2 -0
  78. package/dist/styles/components/components/SSICredentialMiniCardView/index.js +14 -0
  79. package/dist/styles/components/components/SSIHoverText/index.d.ts +3 -0
  80. package/dist/styles/components/components/{SSIText → SSIHoverText}/index.js +5 -5
  81. package/dist/styles/components/components/SSIIconButton/index.js +4 -2
  82. package/dist/styles/components/components/SSIPrimaryButton/index.js +1 -1
  83. package/dist/styles/components/components/SSISecondaryButton/index.d.ts +1 -1
  84. package/dist/styles/components/components/SSISecondaryButton/index.js +5 -10
  85. package/dist/styles/components/components/SSIStatusLabel/index.d.ts +1 -1
  86. package/dist/styles/components/components/SSIStatusLabel/index.js +2 -1
  87. package/dist/styles/components/components/SSITabView/index.js +1 -1
  88. package/dist/styles/components/components/SSITableView/index.d.ts +1 -0
  89. package/dist/styles/components/components/SSITableView/index.js +13 -1
  90. package/dist/styles/components/components/SSITableViewHeader/index.d.ts +1 -0
  91. package/dist/styles/components/components/SSITableViewHeader/index.js +8 -0
  92. package/dist/styles/components/components/SSIToast/index.d.ts +4 -0
  93. package/dist/styles/components/components/SSIToast/index.js +24 -0
  94. package/dist/styles/components/components/SSIToastContainer/index.d.ts +2 -0
  95. package/dist/styles/components/components/SSIToastContainer/index.js +314 -0
  96. package/dist/styles/components/components/StepMarker/index.d.ts +4 -0
  97. package/dist/styles/components/components/StepMarker/index.js +39 -0
  98. package/dist/styles/components/components/buttons/index.d.ts +1 -0
  99. package/dist/styles/components/components/buttons/index.js +4 -0
  100. package/dist/styles/components/components/index.d.ts +12 -3
  101. package/dist/styles/components/components/index.js +12 -3
  102. package/dist/styles/components/index.d.ts +0 -1
  103. package/dist/styles/components/index.js +0 -1
  104. package/dist/styles/css/index.d.ts +3 -0
  105. package/dist/styles/css/index.js +21 -0
  106. package/dist/styles/fonts/index.d.ts +17 -0
  107. package/dist/styles/fonts/index.js +55 -0
  108. package/dist/styles/index.d.ts +4 -0
  109. package/dist/styles/index.js +4 -0
  110. package/dist/styles/typography.js +6 -0
  111. package/dist/types/button/index.d.ts +8 -0
  112. package/dist/types/button/index.js +1 -0
  113. package/dist/types/index.d.ts +4 -1
  114. package/dist/types/index.js +4 -1
  115. package/dist/types/indicator/index.d.ts +9 -0
  116. package/dist/types/indicator/index.js +6 -0
  117. package/dist/types/table/index.d.ts +31 -0
  118. package/dist/types/table/index.js +8 -0
  119. package/dist/types/toast/index.d.ts +6 -0
  120. package/dist/types/toast/index.js +1 -0
  121. package/package.json +5 -3
  122. package/dist/components/labels/SSIText/index.d.ts +0 -7
  123. package/dist/components/labels/SSIText/index.js +0 -13
  124. package/dist/components/lists/SSIDropDownList/index.d.ts +0 -7
  125. package/dist/components/lists/SSIDropDownList/index.js +0 -11
  126. package/dist/components/views/SSICardView/index.js +0 -24
  127. package/dist/styles/components/components/SSICardView/index.d.ts +0 -13
  128. package/dist/styles/components/components/SSICardView/index.js +0 -59
  129. package/dist/styles/components/components/SSIDropDownList/index.d.ts +0 -2
  130. package/dist/styles/components/components/SSIDropDownList/index.js +0 -15
  131. package/dist/styles/components/components/SSIMiniCardView/index.d.ts +0 -2
  132. package/dist/styles/components/components/SSIMiniCardView/index.js +0 -14
  133. package/dist/styles/components/components/SSIText/index.d.ts +0 -3
  134. package/dist/styles/components/fonts/index.d.ts +0 -12
  135. package/dist/styles/components/fonts/index.js +0 -39
  136. package/dist/types/component/index.d.ts +0 -38
  137. package/dist/types/component/index.js +0 -16
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ToastCustomProps } from '@sphereon/ui-components.core';
3
+ import { ToastConfigParams } from '../../types';
4
+ export declare const toastConfig: {
5
+ ssiToastSuccess: (params: ToastConfigParams<ToastCustomProps>) => JSX.Element;
6
+ ssiToastError: (params: ToastConfigParams<ToastCustomProps>) => JSX.Element;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ToastType } from '@sphereon/ui-components.core';
3
+ import SSIToast from '../../components/messageBoxes/toasts/SSIToast';
4
+ export const toastConfig = {
5
+ ssiToastSuccess: (params) => {
6
+ const { title, message, onClick, props } = params;
7
+ return _jsx(SSIToast, { type: ToastType.SUCCESS, title: title, message: message, showBadge: props?.showBadge, onClick: onClick });
8
+ },
9
+ ssiToastError: (params) => {
10
+ const { title, message, onClick, props } = params;
11
+ return _jsx(SSIToast, { type: ToastType.ERROR, title: title, message: message, showBadge: props?.showBadge, onClick: onClick });
12
+ },
13
+ };
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { fontColors, statusColors } from '@sphereon/ui-components.core';
3
3
  const SSICheckmarkBadge = (props) => {
4
4
  const { size = 15, color = fontColors.light, backgroundColor = statusColors.valid } = props;
5
- return (_jsx("div", { style: { width: size, aspectRatio: 1 }, children: _jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 15 15", fill: "none", children: [_jsx("circle", { cx: "7.5", cy: "7.5", r: "7.5", fill: backgroundColor }), _jsx("path", { d: "M5.91233 11.0361H5.9092C5.84998 11.0357 5.79144 11.0236 5.73697 11.0005C5.6825 10.9774 5.63319 10.9437 5.59192 10.9015L3.13412 8.38546C3.09155 8.34399 3.05776 8.29447 3.03473 8.23981C3.0117 8.18516 2.99989 8.12647 3 8.06722C3.00011 8.00796 3.01214 7.94932 3.03538 7.89475C3.05862 7.84018 3.09259 7.79079 3.13531 7.74947C3.17803 7.70815 3.22863 7.67575 3.28412 7.65417C3.33962 7.63259 3.3989 7.62226 3.45847 7.6238C3.51804 7.62534 3.5767 7.63871 3.63099 7.66312C3.68529 7.68754 3.73413 7.72251 3.77463 7.76597L5.91665 9.95833L10.9927 4.91088C11.077 4.82993 11.1898 4.78514 11.307 4.78615C11.4242 4.78716 11.5363 4.8339 11.6191 4.91629C11.702 4.99869 11.749 5.11015 11.75 5.22667C11.751 5.34319 11.706 5.45544 11.6246 5.53926L6.22827 10.9059C6.14448 10.9893 6.03084 11.0361 5.91233 11.0361Z", fill: color })] }) }));
5
+ return (_jsx("div", { style: { width: size, height: size }, children: _jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 15 15", fill: "none", children: [_jsx("circle", { cx: "7.5", cy: "7.5", r: "7.5", fill: backgroundColor }), _jsx("path", { d: "M5.91233 11.0361H5.9092C5.84998 11.0357 5.79144 11.0236 5.73697 11.0005C5.6825 10.9774 5.63319 10.9437 5.59192 10.9015L3.13412 8.38546C3.09155 8.34399 3.05776 8.29447 3.03473 8.23981C3.0117 8.18516 2.99989 8.12647 3 8.06722C3.00011 8.00796 3.01214 7.94932 3.03538 7.89475C3.05862 7.84018 3.09259 7.79079 3.13531 7.74947C3.17803 7.70815 3.22863 7.67575 3.28412 7.65417C3.33962 7.63259 3.3989 7.62226 3.45847 7.6238C3.51804 7.62534 3.5767 7.63871 3.63099 7.66312C3.68529 7.68754 3.73413 7.72251 3.77463 7.76597L5.91665 9.95833L10.9927 4.91088C11.077 4.82993 11.1898 4.78514 11.307 4.78615C11.4242 4.78716 11.5363 4.8339 11.6191 4.91629C11.702 4.99869 11.749 5.11015 11.75 5.22667C11.751 5.34319 11.706 5.45544 11.6246 5.53926L6.22827 10.9059C6.14448 10.9893 6.03084 11.0361 5.91233 11.0361Z", fill: color })] }) }));
6
6
  };
7
7
  export default SSICheckmarkBadge;
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { fontColors, statusColors } from '@sphereon/ui-components.core';
3
3
  const SSIExclamationMarkBadge = (props) => {
4
4
  const { size = 15, color = fontColors.light, backgroundColor = statusColors.error } = props;
5
- return (_jsx("div", { style: { width: size, aspectRatio: 1 }, children: _jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 15 15", fill: "none", children: [_jsx("circle", { cx: "7.5", cy: "7.5", r: "7.5", fill: backgroundColor }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.78571 3.48218C6.78571 3.33429 6.94559 3.21429 7.14279 3.21429H7.8572C8.05439 3.21429 8.21428 3.33429 8.21428 3.48218V9.37504C8.21428 9.52293 8.05439 9.64283 7.8572 9.64283H7.14279C6.94559 9.64283 6.78571 9.52292 6.78571 9.37504V3.48218ZM6.78571 10.9822C6.78571 10.8342 6.94559 10.7143 7.14279 10.7143H7.8572C8.05439 10.7143 8.21428 10.8342 8.21428 10.9822V11.5178C8.21428 11.6657 8.05439 11.7857 7.8572 11.7857H7.14279C6.94559 11.7857 6.78571 11.6657 6.78571 11.5178V10.9822Z", fill: color })] }) }));
5
+ return (_jsx("div", { style: { width: size, height: size }, children: _jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 15 15", fill: "none", children: [_jsx("circle", { cx: "7.5", cy: "7.5", r: "7.5", fill: backgroundColor }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.78571 3.48218C6.78571 3.33429 6.94559 3.21429 7.14279 3.21429H7.8572C8.05439 3.21429 8.21428 3.33429 8.21428 3.48218V9.37504C8.21428 9.52293 8.05439 9.64283 7.8572 9.64283H7.14279C6.94559 9.64283 6.78571 9.52292 6.78571 9.37504V3.48218ZM6.78571 10.9822C6.78571 10.8342 6.94559 10.7143 7.14279 10.7143H7.8572C8.05439 10.7143 8.21428 10.8342 8.21428 10.9822V11.5178C8.21428 11.6657 8.05439 11.7857 7.8572 11.7857H7.14279C6.94559 11.7857 6.78571 11.6657 6.78571 11.5178V10.9822Z", fill: color })] }) }));
6
6
  };
7
7
  export default SSIExclamationMarkBadge;
@@ -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 DeleteIcon: FC<Props>;
9
+ export default DeleteIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const DeleteIcon = (props) => {
4
+ const { width = 20, height = 21, 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 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M17.3126 4.36542V18.0301C17.3126 19.6588 15.975 21 14.3509 21H4.70454C3.07718 21 1.73962 19.6588 1.73962 18.0301V4.36542H0.685498C-0.228499 4.36542 -0.228499 2.97308 0.685498 2.97308H6.09623V1.63823C6.09623 0.766423 6.77775 0 7.66627 0H11.3891C12.2745 0 12.9592 0.769617 12.9592 1.63823V2.97308H18.3667C19.2807 2.97308 19.2807 4.36542 18.3667 4.36542H17.3126ZM7.48474 2.97308H11.5675V1.63823C11.5675 1.53604 11.507 1.39234 11.3891 1.39234H7.66627C7.54525 1.39234 7.48474 1.53604 7.48474 1.63823V2.97308ZM12.5515 15.7181C12.5515 16.6314 11.163 16.6314 11.163 15.7181V8.13686C11.163 7.22354 12.5515 7.22354 12.5515 8.13686V15.7181ZM7.8892 15.7181C7.8892 16.6314 6.50068 16.6314 6.50068 15.7181V8.13686C6.50068 7.22354 7.8892 7.22035 7.8892 8.13686V15.7181ZM15.9241 4.36542C11.6598 4.36542 7.39557 4.36542 3.13132 4.36542V18.0301C3.13132 18.8987 3.83513 19.6077 4.70454 19.6077H14.3509C15.2171 19.6077 15.9241 18.8987 15.9241 18.0301V4.36542Z", fill: color }) }) }));
6
+ };
7
+ export default DeleteIcon;
@@ -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 MeatBallsIcon: FC<Props>;
9
+ export default MeatBallsIcon;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { fontColors } from '@sphereon/ui-components.core';
3
+ const MeatBallsIcon = (props) => {
4
+ const { width = 20, height = 5, color = fontColors.dark, style } = props;
5
+ return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("circle", { cx: "2", cy: "2.5", r: "2", fill: color }), _jsx("circle", { cx: "10", cy: "2.5", r: "2", fill: color }), _jsx("circle", { cx: "18", cy: "2.5", r: "2", fill: color })] }) }));
6
+ };
7
+ export default MeatBallsIcon;
@@ -1,8 +1,8 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- export interface IProps {
2
+ type Props = {
3
3
  size?: number;
4
4
  color?: string;
5
5
  style?: CSSProperties;
6
- }
7
- declare const SSIAddIcon: FC<IProps>;
6
+ };
7
+ declare const SSIAddIcon: FC<Props>;
8
8
  export default SSIAddIcon;
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
3
  const SSIAddIcon = (props) => {
4
4
  const { size = 16, color = fontColors.dark, style } = props;
5
- return (_jsx("div", { style: { ...style, width: size, aspectRatio: 1, display: 'flex' }, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8 0.5C7.65483 0.5 7.375 0.779833 7.375 1.125V7.37503H1.125C0.779812 7.37503 0.5 7.65484 0.5 8.00003C0.5 8.34519 0.779812 8.62502 1.125 8.62502H7.375V14.875C7.375 15.2202 7.65483 15.5 8 15.5C8.34519 15.5 8.625 15.2202 8.625 14.875V8.62502H14.875C15.2202 8.62502 15.5 8.34519 15.5 8.00003C15.5 7.65484 15.2202 7.37503 14.875 7.37503H8.625V1.125C8.625 0.779833 8.34519 0.5 8 0.5Z", fill: color }) }) }));
5
+ return (_jsx("div", { style: { ...style, width: size, height: size, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8 0.5C7.65483 0.5 7.375 0.779833 7.375 1.125V7.37503H1.125C0.779812 7.37503 0.5 7.65484 0.5 8.00003C0.5 8.34519 0.779812 8.62502 1.125 8.62502H7.375V14.875C7.375 15.2202 7.65483 15.5 8 15.5C8.34519 15.5 8.625 15.2202 8.625 14.875V8.62502H14.875C15.2202 8.62502 15.5 8.34519 15.5 8.00003C15.5 7.65484 15.2202 7.37503 14.875 7.37503H8.625V1.125C8.625 0.779833 8.34519 0.5 8 0.5Z", fill: color }) }) }));
6
6
  };
7
7
  export default SSIAddIcon;
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- export interface IProps {
2
+ type Props = {
3
3
  width?: number;
4
4
  height?: number;
5
5
  color?: string;
6
6
  style?: CSSProperties;
7
- }
8
- declare const SSIArrowDownIcon: FC<IProps>;
7
+ };
8
+ declare const SSIArrowDownIcon: FC<Props>;
9
9
  export default SSIArrowDownIcon;
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
3
  const SSIArrowDownIcon = (props) => {
4
4
  const { width = 16, height = 8, color = fontColors.dark, style } = props;
5
- return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsx("svg", { width: "16", height: "8", viewBox: "0 0 16 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8.03265 7.74886C8.14951 7.74175 8.26065 7.69465 8.34825 7.61511L15.3133 1.19499C15.367 1.1489 15.411 1.09224 15.4429 1.02837C15.4747 0.964504 15.4937 0.894731 15.4987 0.823204C15.5037 0.751676 15.4946 0.67985 15.4719 0.611995C15.4493 0.54414 15.4135 0.481647 15.3668 0.428216C15.3201 0.374784 15.2634 0.331504 15.2001 0.300961C15.1367 0.270419 15.068 0.253238 14.9981 0.250423C14.9281 0.247608 14.8583 0.259221 14.7928 0.28458C14.7273 0.309939 14.6675 0.348517 14.6168 0.398032L8 6.49492L1.38317 0.398032C1.33252 0.348517 1.27268 0.309939 1.20718 0.28458C1.14169 0.259221 1.07189 0.247597 1.00193 0.250412C0.931963 0.253227 0.863266 0.270419 0.799918 0.300961C0.736569 0.331504 0.679861 0.374784 0.633164 0.428216C0.586466 0.481647 0.550732 0.54414 0.528085 0.611995C0.505437 0.67985 0.496338 0.751676 0.501329 0.823204C0.506319 0.894731 0.525297 0.964504 0.557135 1.02837C0.588973 1.09224 0.633022 1.1489 0.686663 1.19499L7.65174 7.61511C7.70344 7.6621 7.76372 7.69811 7.82911 7.72107C7.89449 7.74403 7.96367 7.75348 8.03265 7.74886Z", fill: color }) }) }));
5
+ return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 16 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8.03265 7.74886C8.14951 7.74175 8.26065 7.69465 8.34825 7.61511L15.3133 1.19499C15.367 1.1489 15.411 1.09224 15.4429 1.02837C15.4747 0.964504 15.4937 0.894731 15.4987 0.823204C15.5037 0.751676 15.4946 0.67985 15.4719 0.611995C15.4493 0.54414 15.4135 0.481647 15.3668 0.428216C15.3201 0.374784 15.2634 0.331504 15.2001 0.300961C15.1367 0.270419 15.068 0.253238 14.9981 0.250423C14.9281 0.247608 14.8583 0.259221 14.7928 0.28458C14.7273 0.309939 14.6675 0.348517 14.6168 0.398032L8 6.49492L1.38317 0.398032C1.33252 0.348517 1.27268 0.309939 1.20718 0.28458C1.14169 0.259221 1.07189 0.247597 1.00193 0.250412C0.931963 0.253227 0.863266 0.270419 0.799918 0.300961C0.736569 0.331504 0.679861 0.374784 0.633164 0.428216C0.586466 0.481647 0.550732 0.54414 0.528085 0.611995C0.505437 0.67985 0.496338 0.751676 0.501329 0.823204C0.506319 0.894731 0.525297 0.964504 0.557135 1.02837C0.588973 1.09224 0.633022 1.1489 0.686663 1.19499L7.65174 7.61511C7.70344 7.6621 7.76372 7.69811 7.82911 7.72107C7.89449 7.74403 7.96367 7.75348 8.03265 7.74886Z", fill: color }) }) }));
6
6
  };
7
7
  export default SSIArrowDownIcon;
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- export interface IProps {
2
+ type Props = {
3
3
  width?: number;
4
4
  height?: number;
5
5
  color?: string;
6
6
  style?: CSSProperties;
7
- }
8
- declare const SSIFilterIcon: FC<IProps>;
7
+ };
8
+ declare const SSIFilterIcon: FC<Props>;
9
9
  export default SSIFilterIcon;
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { fontColors } from '@sphereon/ui-components.core';
3
3
  const SSIFilterIcon = (props) => {
4
4
  const { height = 16, width = 18, color = fontColors.dark, style } = props;
5
- return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsx("svg", { width: "18", height: "16", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M16.5 1.5H1.5L7.5 8.33222V13.0556L10.5 14.5V8.33222L16.5 1.5Z", stroke: color, strokeOpacity: "0.8", strokeWidth: "1.29412", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
5
+ return (_jsx("div", { style: { ...style, width, height, display: 'flex' }, children: _jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M16.5 1.5H1.5L7.5 8.33222V13.0556L10.5 14.5V8.33222L16.5 1.5Z", stroke: color, strokeOpacity: "0.8", strokeWidth: "1.29412", strokeLinecap: "round", strokeLinejoin: "round" }) }) }));
6
6
  };
7
7
  export default SSIFilterIcon;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- export type Props = {
2
+ type Props = {
3
3
  fullName: string;
4
4
  fontColor?: string;
5
5
  backgroundColor?: string;
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { fontColors, getInitials, profileColors } from '@sphereon/ui-components.core';
3
- import { SSIProfileIconContainerStyled as Container } from '../../../../styles/components/components/SSIProfileIcon';
4
- import { SSITextH2Styled as ProfileIconText } from '../../../../styles/components';
3
+ import { SSIProfileIconContainerStyled as Container, SSITextH2Styled as ProfileIconText } from '../../../../styles';
5
4
  const ProfileIcon = (props) => {
6
5
  const { fontColor = fontColors.light, backgroundColor = profileColors['100'], fullName } = props;
7
6
  return (_jsx(Container, { style: { backgroundColor }, children: _jsx(ProfileIconText, { style: { color: fontColor }, children: getInitials(fullName) }) }));
@@ -1,5 +1,5 @@
1
- import { ImageAttributes } from '@sphereon/ui-components.core';
2
1
  import { CSSProperties, FC } from 'react';
2
+ import { ImageAttributes } from '@sphereon/ui-components.core';
3
3
  type Props = {
4
4
  logo?: ImageAttributes;
5
5
  size?: number;
@@ -5,7 +5,7 @@ const SSILogo = (props) => {
5
5
  const { logo, color = logoColors.default, size = 32, style } = props;
6
6
  return logo ? (_jsx("div", { style: {
7
7
  ...style,
8
- aspectRatio: logo?.dimensions && calculateAspectRatio(logo?.dimensions.width, logo?.dimensions.height),
8
+ ...(logo?.dimensions && { aspectRatio: calculateAspectRatio(logo?.dimensions.width, logo?.dimensions.height) }),
9
9
  height: size,
10
10
  background: `url(${logo.uri})`,
11
11
  backgroundSize: 'cover',
@@ -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;
@@ -1,10 +1,11 @@
1
- import { FC } from 'react';
2
- import { ButtonIconsEnum } from '../../../types';
3
- export type Props = {
4
- icon: ButtonIconsEnum;
5
- onClick: () => Promise<void>;
1
+ import { FC, MouseEventHandler } from 'react';
2
+ import { ButtonIcon } from '@sphereon/ui-components.core';
3
+ type Props = {
4
+ icon: ButtonIcon;
5
+ caption?: string;
6
+ onClick: MouseEventHandler;
6
7
  disabled?: boolean;
7
- color?: string;
8
+ iconColor?: string;
8
9
  };
9
10
  declare const SSIIconButton: FC<Props>;
10
11
  export default SSIIconButton;
@@ -1,22 +1,27 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ButtonIcon, fontColors } from '@sphereon/ui-components.core';
2
3
  import SSIAddIcon from '../../assets/icons/SSIAddIcon';
3
4
  import SSIFilterIcon from '../../assets/icons/SSIFilterIcon';
4
5
  import SSIArrowDownIcon from '../../assets/icons/SSIArrowDownIcon';
5
- import { ButtonIconsEnum } from '../../../types';
6
- import { SSIIconButtonContainerStyled as Container } from '../../../styles/components';
7
- import { fontColors } from '@sphereon/ui-components.core';
6
+ import { SSIIconButtonContainerStyled as Container, SSITextH3Styled as Caption } from '../../../styles';
7
+ import MeatBallsIcon from '../../assets/icons/MeatBallsIcon';
8
+ import DeleteIcon from '../../assets/icons/DeleteIcon';
8
9
  const SSIIconButton = (props) => {
9
- const { icon, onClick, disabled = false, color = fontColors.dark } = props;
10
- return _jsx(Container, { onClick: onClick, children: getIcon(icon, color) });
10
+ const { caption, icon, onClick, disabled = false, iconColor = fontColors.dark } = props;
11
+ return _jsxs(Container, { onClick: onClick, children: [getIcon(icon, iconColor), caption && _jsx(Caption, { children: caption })] });
11
12
  };
12
13
  const getIcon = (icon, color) => {
13
14
  switch (icon) {
14
- case ButtonIconsEnum.ADD:
15
+ case ButtonIcon.ADD:
15
16
  return _jsx(SSIAddIcon, { color: color });
16
- case ButtonIconsEnum.FILTER:
17
- return _jsx(SSIFilterIcon, { color: color });
18
- case ButtonIconsEnum.ARROW_DOWN:
17
+ case ButtonIcon.ARROW_DOWN:
19
18
  return _jsx(SSIArrowDownIcon, { color: color });
19
+ case ButtonIcon.MEATBALLS:
20
+ return _jsx(MeatBallsIcon, { color: color });
21
+ case ButtonIcon.DELETE:
22
+ return _jsx(DeleteIcon, { color: color, width: 15, height: 16 });
23
+ case ButtonIcon.FILTER:
24
+ return _jsx(SSIFilterIcon, { color: color });
20
25
  default:
21
26
  return _jsx("div", {});
22
27
  }
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- import { ButtonIconsEnum } from '../../../types';
3
- export type Props = {
2
+ import { ButtonIcon } from '@sphereon/ui-components.core';
3
+ type Props = {
4
4
  caption: string;
5
5
  onClick: () => Promise<void>;
6
- icon?: ButtonIconsEnum;
6
+ icon?: ButtonIcon;
7
7
  disabled?: boolean;
8
8
  style?: CSSProperties;
9
9
  };
@@ -1,14 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { 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
- import { SSIPrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles/components';
5
- import { ButtonIconsEnum } from '../../../types';
4
+ import { SSIPrimaryButtonContainerStyled as Container, SSITextH3LightStyled as Caption } from '../../../styles';
6
5
  const SSIPrimaryButton = (props) => {
7
6
  const { caption, icon, onClick, disabled = false, style = {} } = props;
8
7
  const getIcon = (icon, color) => {
9
8
  switch (icon) {
10
- case ButtonIconsEnum.ADD:
11
- return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: 0.5 }) }, color: color });
9
+ case ButtonIcon.ADD:
10
+ return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, color: color });
12
11
  default:
13
12
  return _jsx("div", {});
14
13
  }
@@ -18,6 +17,6 @@ const SSIPrimaryButton = (props) => {
18
17
  await onClick();
19
18
  }
20
19
  };
21
- return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity: 0.5 }) }, onClick: onClicked, children: [icon && getIcon(icon, fontColors.light), _jsx(Caption, { style: { ...(disabled && { opacity: 0.5 }) }, children: caption })] }));
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 })] }));
22
21
  };
23
22
  export default SSIPrimaryButton;
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- import { ButtonIconsEnum } from '../../../types';
3
- export type Props = {
2
+ import { ButtonIcon } from '@sphereon/ui-components.core';
3
+ type Props = {
4
4
  caption: string;
5
5
  onClick: () => Promise<void>;
6
- icon?: ButtonIconsEnum;
6
+ icon?: ButtonIcon;
7
7
  disabled?: boolean;
8
8
  style?: CSSProperties;
9
9
  };
@@ -1,14 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { gradientColors } from '@sphereon/ui-components.core';
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/components';
5
- import { ButtonIconsEnum } from '../../../types';
4
+ import { SSISecondaryButtonCaptionStyled as Caption, SSISecondaryButtonContainerStyled as Container } from '../../../styles';
5
+ import { gradientColors } from '../../../styles/colors';
6
6
  const SSISecondaryButton = (props) => {
7
7
  const { caption, icon, onClick, disabled = false, style = {} } = props;
8
8
  const getIcon = (icon, color) => {
9
9
  switch (icon) {
10
- case ButtonIconsEnum.ADD:
11
- return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: 0.5 }) }, color: color });
10
+ case ButtonIcon.ADD:
11
+ return _jsx(SSIAddIcon, { style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, color: color });
12
12
  default:
13
13
  return _jsx("div", {});
14
14
  }
@@ -18,6 +18,6 @@ const SSISecondaryButton = (props) => {
18
18
  await onClick();
19
19
  }
20
20
  };
21
- return (_jsxs(Container, { style: { ...style, ...(disabled && { opacity: 0.5 }) }, onClick: onClicked, children: [icon && getIcon(icon, gradientColors['100']), _jsx(Caption, { style: { ...(disabled && { opacity: 0.5 }) }, children: caption })] }));
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 })] }));
22
22
  };
23
23
  export default SSISecondaryButton;
@@ -0,0 +1,15 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface IProps {
3
+ onValueChange?: (isChecked: boolean) => Promise<void>;
4
+ initialValue?: boolean;
5
+ isChecked?: boolean;
6
+ label?: string | ReactNode;
7
+ disabled?: boolean;
8
+ backgroundColor?: string;
9
+ borderColor?: string;
10
+ selectedColor?: string;
11
+ labelColor?: string;
12
+ checkmarkColor?: string;
13
+ }
14
+ declare const SSICheckbox: FC<IProps>;
15
+ export default SSICheckbox;
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { OpacityStyleEnum, fontColors, selectionElementColors } from '@sphereon/ui-components.core';
4
+ import { SSICheckboxContainerStyled as Container, SSICheckboxLabelContainerStyled as LabelCaption, SSICheckboxSelectedContainerStyled as SelectedContainer, SSICheckboxUnselectedContainerStyled as UnselectedContainer, } from '../../../styles/components';
5
+ const SSICheckbox = (props) => {
6
+ const { backgroundColor, borderColor = selectionElementColors.primaryBorderDark, disabled = false, initialValue = false, label, selectedColor = selectionElementColors.primaryDark, labelColor = fontColors.light, checkmarkColor = fontColors.dark, } = props;
7
+ const [isChecked, setChecked] = React.useState(initialValue);
8
+ const value = props.isChecked !== undefined ? props.isChecked : isChecked;
9
+ const onValueChange = async () => {
10
+ const { onValueChange } = props;
11
+ if (disabled) {
12
+ return;
13
+ }
14
+ if (onValueChange) {
15
+ await onValueChange(!isChecked);
16
+ }
17
+ setChecked(!isChecked);
18
+ };
19
+ return (_jsxs(Container, { onClick: onValueChange, style: { ...(disabled && { opacity: OpacityStyleEnum.DISABLED }) }, children: [value ? (_jsx(SelectedContainer, { style: { backgroundColor: selectedColor, border: `1px solid ${borderColor}` } })) : (_jsx(UnselectedContainer, { style: { backgroundColor, border: `1px solid ${borderColor}` } })), label && (typeof label === 'string' ? _jsx(LabelCaption, { style: { color: labelColor }, children: label }) : label)] }));
20
+ };
21
+ export default SSICheckbox;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ export type Props = {
3
+ text: string;
4
+ truncationLength?: number;
5
+ enableHover?: boolean;
6
+ };
7
+ declare const SSIHoverText: FC<Props>;
8
+ export default SSIHoverText;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SSIHoverTextTextStyled as Text, SSIHoverTextContainerStyled as Container, SSIHoverTextTextHoverStyled as TextHover, } from '../../../styles/components';
3
+ const SSIHoverText = (props) => {
4
+ const { text, truncationLength, enableHover = true } = props;
5
+ const value = truncationLength ? text.substring(0, truncationLength) : text;
6
+ return (_jsxs(Container, { children: [_jsx(Text, { children: value }), enableHover && _jsx(TextHover, { children: text })] }));
7
+ };
8
+ export default SSIHoverText;
@@ -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,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { elementColors, fontColors } from '@sphereon/ui-components.core';
3
+ import StepMarker from '../../assets/markers/StepMarker';
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';
6
+ import { StepStatus } from '../../../types';
7
+ const getStepRowElement = (stepNumber, status, step, maxSteps) => {
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: {
10
+ ...(status === StepStatus.COMPLETED && {
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
+ } }) }))] }));
27
+ };
28
+ const getStepStatus = (stepNumber, activeStep) => {
29
+ if (stepNumber < activeStep) {
30
+ return StepStatus.COMPLETED;
31
+ }
32
+ else if (stepNumber > activeStep) {
33
+ return StepStatus.NEXT;
34
+ }
35
+ else if (stepNumber === activeStep) {
36
+ return StepStatus.CURRENT;
37
+ }
38
+ throw new Error('Unable to determine step status');
39
+ };
40
+ const getStepElements = (activeStep, steps) => {
41
+ return steps.map((step, index) => {
42
+ const stepNumber = index + 1;
43
+ const stepStatus = getStepStatus(stepNumber, activeStep);
44
+ return getStepRowElement(stepNumber, stepStatus, step, steps.length);
45
+ });
46
+ };
47
+ const ProgressStepIndicator = (props) => {
48
+ const { activeStep, steps = [], style } = props;
49
+ return (_jsx(Container, { style: style, children: _jsx(GridContainer, { children: getStepElements(activeStep, steps) }) }));
50
+ };
51
+ export default ProgressStepIndicator;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ size?: string | number;
4
+ color?: string;
5
+ style?: {
6
+ [key: string]: string;
7
+ };
8
+ }
9
+ declare const SSIActivityIndicator: FC<Props>;
10
+ export default SSIActivityIndicator;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Oval } from 'react-loader-spinner';
3
+ import { elementColors } from '@sphereon/ui-components.core';
4
+ const SSIActivityIndicator = (props) => {
5
+ const { size = 80, color = elementColors.blue, style } = props;
6
+ return (_jsx(Oval, { width: size, height: size, color: color, secondaryColor: color, strokeWidth: 5, strokeWidthSecondary: 5, visible: true, wrapperStyle: style }));
7
+ };
8
+ export default SSIActivityIndicator;
@@ -1,5 +1,5 @@
1
- import { LabelStatus } from '@sphereon/ui-components.core';
2
1
  import { CSSProperties, FC } from 'react';
2
+ import { LabelStatus } from '@sphereon/ui-components.core';
3
3
  type Props = {
4
4
  status: LabelStatus;
5
5
  showIcon?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CredentialStatus, IssuerStatus, statusColors, getStatusTranslation } from '@sphereon/ui-components.core';
3
- import { SSIStatusLabelBadgeContainer as BadgeContainer, SSIStatusLabelContainerStyled as Container, SSIStatusLabelStatusCaptionStyled as StatusCaption, } from '../../../styles/components';
4
3
  import SSICheckmarkBadge from '../../../components/assets/badges/SSICheckmarkBadge';
5
4
  import SSIExclamationMarkBadge from '../../../components/assets/badges/SSIExclamationMarkBadge';
5
+ import { SSIStatusLabelBadgeContainer as BadgeContainer, SSIStatusLabelContainerStyled as Container, SSIStatusLabelStatusCaptionStyled as StatusCaption, } from '../../../styles';
6
6
  const SSIStatusLabel = (props) => {
7
7
  const { status, color = statusColors[status], style, showIcon = false } = props;
8
8
  return (_jsxs(Container, { style: { ...style, borderColor: color }, children: [showIcon && _jsx(BadgeContainer, { children: getStatusBadge(status, color) }), _jsx(StatusCaption, { style: { color }, children: getStatusTranslation(status) })] }));
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { LabelTypeEnum } from '../../../types';
3
- export type Props = {
4
- type: LabelTypeEnum;
2
+ import { LabelType } from '@sphereon/ui-components.core';
3
+ type Props = {
4
+ type: LabelType;
5
5
  };
6
6
  declare const SSITypeLabel: FC<Props>;
7
7
  export default SSITypeLabel;
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LabelTypeEnum } from '../../../types';
3
- import { SSITypeLabelContainerStyled as Container } from '../../../styles/components';
4
- import { backgroundColors, gradientColors } from '@sphereon/ui-components.core';
2
+ import { backgroundColors, LabelType } from '@sphereon/ui-components.core';
3
+ import { SSITypeLabelContainerStyled as Container } from '../../../styles';
4
+ import { gradientColors } from '../../../styles/colors';
5
5
  const getBackground = (type) => {
6
6
  switch (type) {
7
- case LabelTypeEnum.ISSUER:
7
+ case LabelType.ISSUER:
8
8
  return gradientColors['200'];
9
- case LabelTypeEnum.VERIFIER:
9
+ case LabelType.VERIFIER:
10
10
  return gradientColors['100'];
11
11
  default:
12
12
  return backgroundColors.primaryLight;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ButtonIcon } from '@sphereon/ui-components.core';
3
+ import { Button } from '../../../types';
4
+ export type Props = {
5
+ icon: ButtonIcon;
6
+ buttons: Array<Button>;
7
+ showBorder?: boolean;
8
+ };
9
+ declare const DropDownList: FC<Props>;
10
+ export default DropDownList;