@sphereon/ui-components.ssi-react 0.4.1-unstable.97 → 0.5.0

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 (75) hide show
  1. package/dist/components/assets/icons/{ArrowDown → Arrow}/index.d.ts +4 -2
  2. package/dist/components/assets/icons/Arrow/index.js +7 -0
  3. package/dist/components/assets/icons/Contact/index.js +1 -1
  4. package/dist/components/assets/icons/Management/index.js +1 -1
  5. package/dist/components/assets/icons/UX/index.js +1 -1
  6. package/dist/components/buttons/IconButton/index.d.ts +2 -1
  7. package/dist/components/buttons/IconButton/index.js +2 -1
  8. package/dist/components/buttons/SSISwitchItem/index.d.ts +12 -0
  9. package/dist/components/buttons/SSISwitchItem/index.js +19 -0
  10. package/dist/components/fields/JSONForms/ColorPickerControl/index.js +2 -2
  11. package/dist/components/fields/SSICheckbox/index.d.ts +4 -0
  12. package/dist/components/fields/SSICheckbox/index.js +21 -3
  13. package/dist/components/fields/TextInputField/index.d.ts +5 -2
  14. package/dist/components/fields/TextInputField/index.js +14 -15
  15. package/dist/components/views/ContactViewItem/index.d.ts +1 -1
  16. package/dist/components/views/FormView/index.d.ts +1 -1
  17. package/dist/components/views/FormView/index.js +25 -21
  18. package/dist/components/views/FormView/styles.css +4 -1
  19. package/dist/components/views/SSITabView/SSITabViewHeader/index.js +6 -8
  20. package/dist/components/views/SSITabView/index.d.ts +7 -3
  21. package/dist/components/views/SSITabView/index.js +4 -17
  22. package/dist/components/views/SSITableView/index.js +7 -11
  23. package/dist/helpers/DateHelper/index.d.ts +2 -2
  24. package/dist/helpers/DateHelper/index.js +79 -24
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.js +3 -2
  27. package/dist/styles/components/components/ContactViewItem/index.d.ts +0 -1
  28. package/dist/styles/components/components/CredentialIssuanceWizardView/index.d.ts +0 -1
  29. package/dist/styles/components/components/CredentialViewItem/index.d.ts +0 -1
  30. package/dist/styles/components/components/DragAndDropBox/index.d.ts +0 -1
  31. package/dist/styles/components/components/DropDownList/index.d.ts +0 -1
  32. package/dist/styles/components/components/DropDownListItem/index.d.ts +0 -1
  33. package/dist/styles/components/components/FileSelectionField/index.d.ts +0 -1
  34. package/dist/styles/components/components/IconButton/index.d.ts +0 -1
  35. package/dist/styles/components/components/InformationRequestView/index.d.ts +0 -1
  36. package/dist/styles/components/components/JSONDataView/index.d.ts +0 -1
  37. package/dist/styles/components/components/JSONDataView/index.js +7 -2
  38. package/dist/styles/components/components/Pagination/index.d.ts +0 -1
  39. package/dist/styles/components/components/PassportPhotoControl/index.d.ts +0 -1
  40. package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +0 -1
  41. package/dist/styles/components/components/SSICheckbox/index.d.ts +0 -1
  42. package/dist/styles/components/components/SSICheckbox/index.js +9 -6
  43. package/dist/styles/components/components/SSICredentialCardView/index.d.ts +0 -1
  44. package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +0 -1
  45. package/dist/styles/components/components/SSIHoverText/index.d.ts +0 -1
  46. package/dist/styles/components/components/SSIProfileIcon/index.d.ts +0 -1
  47. package/dist/styles/components/components/SSIStatusLabel/index.d.ts +0 -1
  48. package/dist/styles/components/components/SSISwitchItem/index.d.ts +4 -0
  49. package/dist/styles/components/components/SSISwitchItem/index.js +74 -0
  50. package/dist/styles/components/components/SSITabView/index.d.ts +0 -1
  51. package/dist/styles/components/components/SSITabView/index.js +1 -0
  52. package/dist/styles/components/components/SSITabViewHeader/index.d.ts +4 -3
  53. package/dist/styles/components/components/SSITabViewHeader/index.js +31 -6
  54. package/dist/styles/components/components/SSITableView/index.d.ts +0 -1
  55. package/dist/styles/components/components/SSITableViewHeader/index.d.ts +0 -1
  56. package/dist/styles/components/components/SSIToast/index.d.ts +0 -1
  57. package/dist/styles/components/components/StepMarker/index.d.ts +0 -1
  58. package/dist/styles/components/components/TextInputField/index.d.ts +2 -1
  59. package/dist/styles/components/components/TextInputField/index.js +38 -16
  60. package/dist/styles/components/components/buttons/index.d.ts +0 -1
  61. package/dist/styles/components/components/index.d.ts +1 -0
  62. package/dist/styles/components/components/index.js +1 -0
  63. package/dist/styles/components/containers/index.d.ts +0 -1
  64. package/dist/styles/css/tailwind.css +2 -2
  65. package/dist/styles/fonts/index.d.ts +0 -1
  66. package/dist/types/index.d.ts +1 -0
  67. package/dist/types/index.js +1 -0
  68. package/dist/types/position/index.d.ts +2 -0
  69. package/dist/types/position/index.js +1 -0
  70. package/dist/utils/Ajv.d.ts +14 -0
  71. package/dist/utils/Ajv.js +33 -0
  72. package/dist/utils/FileUtils.js +1 -1
  73. package/dist/utils/IconUtils.js +4 -2
  74. package/package.json +6 -6
  75. package/dist/components/assets/icons/ArrowDown/index.js +0 -7
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
8
8
  import SSILogo from './components/assets/logos/SSILogo';
9
9
  import SSIAddIcon from './components/assets/icons/Add';
10
10
  import SSIFilterIcon from './components/assets/icons/Filter';
11
- import SSIArrowDownIcon from './components/assets/icons/ArrowDown';
11
+ import ArrowIcon from './components/assets/icons/Arrow';
12
12
  import SSITypeLabel from './components/labels/SSITypeLabel';
13
13
  import IconButton from './components/buttons/IconButton';
14
14
  import PrimaryButton from './components/buttons/PrimaryButton';
@@ -61,6 +61,7 @@ import ActivityIcon from './components/assets/icons/Activity';
61
61
  import ContactIcon from './components/assets/icons/Contact';
62
62
  import BellIcon from './components/assets/icons/Bell';
63
63
  import CredentialIcon from './components/assets/icons/Credential';
64
+ import SSISwitchItem from './components/buttons/SSISwitchItem';
64
65
  import { Row } from '@tanstack/react-table';
65
66
  import './styles/css/tailwind.css';
66
67
  import './components/views/FormView/styles.css';
@@ -69,4 +70,4 @@ export * from './styles/fonts';
69
70
  export * from './types';
70
71
  export * from './helpers';
71
72
  export * from './utils';
72
- 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, CustomArrayControl, customArrayControlTester, ColorPickerControl, colorPickerControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, CapitolIcon, ChevronIcon, ManIcon, LaptopIcon, StoreIcon, RoleIconView, RoleViewItem, Listbox, ActivityIcon, ContactIcon, BellIcon, CredentialIcon, getFormViewAjv };
73
+ export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, ArrowIcon, 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, CustomArrayControl, customArrayControlTester, ColorPickerControl, colorPickerControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, CapitolIcon, ChevronIcon, ManIcon, LaptopIcon, StoreIcon, RoleIconView, RoleViewItem, Listbox, ActivityIcon, ContactIcon, BellIcon, CredentialIcon, SSISwitchItem, getFormViewAjv };
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
8
8
  import SSILogo from './components/assets/logos/SSILogo';
9
9
  import SSIAddIcon from './components/assets/icons/Add';
10
10
  import SSIFilterIcon from './components/assets/icons/Filter';
11
- import SSIArrowDownIcon from './components/assets/icons/ArrowDown';
11
+ import ArrowIcon from './components/assets/icons/Arrow';
12
12
  import SSITypeLabel from './components/labels/SSITypeLabel';
13
13
  import IconButton from './components/buttons/IconButton';
14
14
  import PrimaryButton from './components/buttons/PrimaryButton';
@@ -61,6 +61,7 @@ import ActivityIcon from './components/assets/icons/Activity';
61
61
  import ContactIcon from './components/assets/icons/Contact';
62
62
  import BellIcon from './components/assets/icons/Bell';
63
63
  import CredentialIcon from './components/assets/icons/Credential';
64
+ import SSISwitchItem from './components/buttons/SSISwitchItem';
64
65
  import './styles/css/tailwind.css';
65
66
  import './components/views/FormView/styles.css';
66
67
  import '@sphereon/ui-components.core/dist/styles/tokens.css';
@@ -68,4 +69,4 @@ export * from './styles/fonts';
68
69
  export * from './types';
69
70
  export * from './helpers';
70
71
  export * from './utils';
71
- 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, CustomArrayControl, customArrayControlTester, ColorPickerControl, colorPickerControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, CapitolIcon, ChevronIcon, ManIcon, LaptopIcon, StoreIcon, RoleIconView, RoleViewItem, Listbox, ActivityIcon, ContactIcon, BellIcon, CredentialIcon, getFormViewAjv };
72
+ export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, ArrowIcon, 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, CustomArrayControl, customArrayControlTester, ColorPickerControl, colorPickerControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, CapitolIcon, ChevronIcon, ManIcon, LaptopIcon, StoreIcon, RoleIconView, RoleViewItem, Listbox, ActivityIcon, ContactIcon, BellIcon, CredentialIcon, SSISwitchItem, getFormViewAjv };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  import { SSITextH5Styled } from '../../../fonts';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH1SemiBoldStyled, SSITextH2Styled } from '../../../fonts';
4
3
  export declare const CredentialIssuanceWizardViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionColumnViewStyled, SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  import { SSITextH3Styled, SSITextH5Styled } from '../../../fonts';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH7RegularStyled } from '../../../fonts';
4
3
  export declare const DragAndDropBoxContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  export declare const DropDownListContainerStyled: typeof SSIFlexDirectionRowViewStyled;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  import { SSITextH2Styled } from '../../../fonts';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH2SemiBoldStyled, SSITextH7RegularStyled } from '../../../fonts';
4
3
  export declare const FileSelectionFieldContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const IconButtonContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH1Styled, SSITextH2Styled, SSITextH3Styled, SSITextH4Styled } from '../../../fonts';
4
3
  export declare const InformationRequestViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const JSONDataViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const JSONDataViewHeaderContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -36,8 +36,13 @@ export const JSONDataViewDataImageValueStyled = styled.div `
36
36
  border-radius: 10px;
37
37
  `;
38
38
  export const JSONDataViewDataTextValueStyled = styled.span `
39
- color: ${fontColors.dark};
40
- ${SSITextH7SemiBoldCss}
39
+ color: ${fontColors.dark};
40
+ ${SSITextH7SemiBoldCss};
41
+ max-width: 600px;
42
+ white-space: normal;
43
+ word-break: break-word;
44
+ line-height: 1.4;
45
+ display: inline-block;
41
46
  `;
42
47
  export const JSONDataViewDataLabelStyled = styled.span `
43
48
  color: ${fontColors.dark};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const PaginationContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
2
  export declare const GoToInputStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
4
3
  export declare const GoToInputContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const PassportPhotoControlContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const PassportPhotoControlDragAndDropBoxContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '../../../fonts';
4
3
  export declare const ProgressStepIndicatorContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSITextH2Styled } from '../../../fonts';
4
3
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
@@ -3,23 +3,26 @@ import { SSITextH2Styled } from '../../../fonts';
3
3
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
4
  export const SSICheckboxContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
5
5
  align-items: center;
6
- gap: 10px;
6
+ gap: 8px;
7
7
  cursor: pointer;
8
8
  `;
9
9
  export const SSICheckboxUnselectedContainerStyled = styled.div `
10
10
  width: 18px;
11
- aspect-ratio: 1;
12
- border-radius: 4px;
13
- border-width: 1px;
11
+ height: 18px;
12
+ min-width: 18px;
13
+ border-radius: 2px;
14
14
  `;
15
15
  export const SSICheckboxSelectedContainerStyled = styled.div `
16
16
  width: 18px;
17
- aspect-ratio: 1;
18
- border-radius: 4px;
17
+ height: 18px;
18
+ min-width: 18px;
19
+ border-radius: 2px;
20
+ display: flex;
19
21
  align-items: center;
20
22
  justify-content: center;
21
23
  `;
22
24
  export const SSICheckboxLabelContainerStyled = styled(SSITextH2Styled) `
23
25
  display: flex;
24
26
  flex-wrap: wrap;
27
+ font-size: 14px;
25
28
  `;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionColumnViewStyled, SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
4
3
  import { SSITextH4SemiBoldLightStyled, SSITextH5LightStyled } from '../../../fonts';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionColumnViewStyled } from '../../containers';
4
3
  export declare const SSICredentialMiniCardViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const SSIHoverTextTextHoverStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
4
3
  export declare const SSIHoverTextContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const SSIProfileIconContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  import { SSITextH5LightStyled } from '../../../fonts';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const createMaterial3Switch: (color: string) => import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
+ export declare const material3SwitchContainerStyle: React.CSSProperties;
4
+ export declare const material3SwitchLabelStyle: React.CSSProperties;
@@ -0,0 +1,74 @@
1
+ import { parseColor } from '@sphereon/ui-components.core';
2
+ import { styled } from '@mui/material/styles';
3
+ import { Switch } from '@mui/material';
4
+ export const createMaterial3Switch = (color) => styled(Switch)(({ theme }) => ({
5
+ width: 52,
6
+ height: 32,
7
+ padding: 0,
8
+ '& .MuiSwitch-switchBase': {
9
+ padding: 4,
10
+ transitionDuration: '300ms',
11
+ '&.Mui-checked': {
12
+ transform: 'translateX(20px)',
13
+ color: 'var(--color-grey-50)',
14
+ '& + .MuiSwitch-track': {
15
+ backgroundColor: parseColor(color),
16
+ opacity: 1,
17
+ border: 0,
18
+ },
19
+ '&.Mui-disabled + .MuiSwitch-track': {
20
+ opacity: 0.5,
21
+ },
22
+ '& .MuiSwitch-thumb:before': {
23
+ backgroundImage: `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="${encodeURIComponent(parseColor(color))}" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>')`,
24
+ },
25
+ },
26
+ '&.Mui-focusVisible .MuiSwitch-thumb': {
27
+ color: parseColor(color),
28
+ border: '6px solid var(--color-grey-50)',
29
+ },
30
+ '&.Mui-disabled .MuiSwitch-thumb': {
31
+ color: theme.palette.grey[100],
32
+ },
33
+ '&.Mui-disabled + .MuiSwitch-track': {
34
+ opacity: 0.3,
35
+ },
36
+ },
37
+ '& .MuiSwitch-thumb': {
38
+ boxSizing: 'border-box',
39
+ width: 24,
40
+ height: 24,
41
+ '&:before': {
42
+ content: "''",
43
+ position: 'absolute',
44
+ width: '100%',
45
+ height: '100%',
46
+ left: 0,
47
+ top: 0,
48
+ backgroundRepeat: 'no-repeat',
49
+ backgroundPosition: 'center',
50
+ },
51
+ },
52
+ '& .MuiSwitch-track': {
53
+ borderRadius: 16,
54
+ backgroundColor: 'var(--color-grey-300)',
55
+ opacity: 1,
56
+ transition: theme.transitions.create(['background-color'], {
57
+ duration: 300,
58
+ }),
59
+ },
60
+ }));
61
+ export const material3SwitchContainerStyle = {
62
+ display: 'flex',
63
+ flexDirection: 'row',
64
+ alignItems: 'center',
65
+ gap: '12px',
66
+ width: '100%',
67
+ };
68
+ export const material3SwitchLabelStyle = {
69
+ fontSize: '14px',
70
+ fontWeight: 400,
71
+ color: 'var(--color-grey-800)',
72
+ letterSpacing: '0.14px',
73
+ flex: 1,
74
+ };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const SSITabViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -3,4 +3,5 @@ export const SSITabViewContainerStyled = styled.div `
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  flex-grow: 1;
6
+ width: 100%;
6
7
  `;
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
- import { SSITextH3Styled } from '../../../fonts';
4
2
  export declare const SSITabViewHeaderContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
+ export declare const SSITabViewHeaderTabBarStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
5
4
  export declare const SSITabViewHeaderTitleContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
6
- export declare const SSITabViewHeaderTitleCaptionStyled: typeof SSITextH3Styled;
5
+ export declare const SSITabViewHeaderTitleCaptionStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
6
+ export declare const SSITabViewHeaderActiveIndicatorStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
7
+ export declare const SSITabViewHeaderDividerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,15 +1,40 @@
1
1
  import styled from 'styled-components';
2
- import { SSITextH3Styled } from '../../../fonts';
2
+ import { elementColors, fontColors } from '@sphereon/ui-components.core';
3
+ import { SSITextH3Css } from '../../../css';
3
4
  export const SSITabViewHeaderContainerStyled = styled.div `
4
5
  display: flex;
5
- flex-direction: row;
6
- gap: 84px;
7
- margin-left: 66px;
6
+ flex-direction: column;
7
+ width: 100%;
8
+ `;
9
+ export const SSITabViewHeaderTabBarStyled = styled.div `
10
+ display: flex;
11
+ height: 48px;
8
12
  `;
9
13
  export const SSITabViewHeaderTitleContainerStyled = styled.div `
14
+ flex: 1;
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ justify-content: flex-end;
19
+ height: 48px;
10
20
  cursor: pointer;
21
+ `;
22
+ export const SSITabViewHeaderTitleCaptionStyled = styled.div `
23
+ ${SSITextH3Css};
11
24
  display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ padding: 0 16px;
28
+ height: 100%;
29
+ color: ${fontColors.dark};
30
+ `;
31
+ export const SSITabViewHeaderActiveIndicatorStyled = styled.div `
32
+ width: 100%;
33
+ height: 2px;
34
+ background: linear-gradient(172deg, #7276f7 0%, #7c40e8 100%);
12
35
  `;
13
- export const SSITabViewHeaderTitleCaptionStyled = styled(SSITextH3Styled) `
14
- margin-top: auto;
36
+ export const SSITabViewHeaderDividerStyled = styled.div `
37
+ width: 100%;
38
+ height: 1px;
39
+ background-color: ${elementColors.lightGrey};
15
40
  `;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IStyledComponent } from 'styled-components';
3
2
  export declare const SSITableViewContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const SSITableViewLabelCellStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled } from '../../containers';
4
3
  export declare const SSITableViewHeaderContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
4
3
  import { SSITextH4Styled } from '../../../fonts';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const StepMarkerActiveContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const StepMarkerActiveOuterContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const TextFieldInputContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
3
+ export declare const TextFieldInputWrapperStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
4
  export declare const TextFieldInputInputStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
5
+ export declare const TextFieldInputLabelStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,27 +1,49 @@
1
- import { borderColors, fontColors } from '@sphereon/ui-components.core';
1
+ import { backgroundColors, borderColors, elementColors, fontColors } from '@sphereon/ui-components.core';
2
2
  import styled from 'styled-components';
3
- import { SSITextH2Css } from '../../../css';
3
+ import { SSITextH3Css, SSITextH7RegularCss } from '../../../css';
4
4
  export const TextFieldInputContainerStyled = styled.div `
5
- display: flex;
6
- flex-direction: column;
5
+ position: relative;
6
+ width: 100%;
7
+ height: 56px;
7
8
  `;
8
- export const TextFieldInputInputStyled = styled.input `Retry
9
- ${SSITextH2Css};
9
+ export const TextFieldInputWrapperStyled = styled.div `
10
+ position: absolute;
11
+ inset: 0;
12
+ border: 1px solid ${elementColors.lightGrey};
13
+ border-radius: 4px;
14
+ background-color: ${backgroundColors.primaryLight};
15
+
16
+ &:focus-within {
17
+ border-color: ${borderColors.purple};
18
+ }
19
+ `;
20
+ export const TextFieldInputInputStyled = styled.input `
21
+ ${SSITextH3Css};
10
22
  color: ${fontColors.dark};
11
- display: flex;
12
- padding: 12px 16px;
13
- align-items: center;
23
+ width: 100%;
24
+ height: 100%;
25
+ padding: 0 16px;
26
+ border: none;
14
27
  border-radius: 4px;
15
- border: 1px solid ${borderColors.lightGrey};
16
28
  outline: none;
17
- background-color: unset;
18
- font-family: Poppins, serif;
29
+ background-color: transparent;
30
+ font-family: Poppins, sans-serif;
19
31
 
20
- &:focus {
21
- border-color: ${borderColors.purple};
32
+ &::placeholder {
33
+ color: #727272;
22
34
  }
23
35
 
24
- &:hover {
25
- border-color: ${borderColors.purple};
36
+ &:disabled {
37
+ opacity: 0.5;
38
+ cursor: not-allowed;
26
39
  }
27
40
  `;
41
+ export const TextFieldInputLabelStyled = styled.div `
42
+ ${SSITextH7RegularCss};
43
+ position: absolute;
44
+ top: -10px;
45
+ left: 12px;
46
+ padding: 0 4px;
47
+ background-color: ${backgroundColors.primaryLight};
48
+ color: ${fontColors.dark};
49
+ `;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const ButtonFlexRowStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
@@ -29,3 +29,4 @@ export * from './JSONDataView';
29
29
  export * from './TextInputField';
30
30
  export * from './InformationRequestView';
31
31
  export * from './ContactViewItem';
32
+ export * from './SSISwitchItem';
@@ -29,3 +29,4 @@ export * from './JSONDataView';
29
29
  export * from './TextInputField';
30
30
  export * from './InformationRequestView';
31
31
  export * from './ContactViewItem';
32
+ export * from './SSISwitchItem';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const SSIFlexDirectionRowViewStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const SSIFlexDirectionColumnViewStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer theme, custom-base, custom-components, custom-utilities;
4
4
  @layer theme {
@@ -353,7 +353,7 @@
353
353
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
354
354
  }
355
355
  .transition {
356
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
356
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
357
357
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
358
358
  transition-duration: var(--tw-duration, var(--default-transition-duration));
359
359
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IStyledComponent } from 'styled-components';
3
2
  export declare const SSITextH1Styled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
3
  export declare const SSITextH1SemiBoldStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
@@ -6,3 +6,4 @@ export * from './field';
6
6
  export * from './view';
7
7
  export * from './icon';
8
8
  export * from './jsonForms';
9
+ export * from './position';
@@ -6,3 +6,4 @@ export * from './field';
6
6
  export * from './view';
7
7
  export * from './icon';
8
8
  export * from './jsonForms';
9
+ export * from './position';
@@ -0,0 +1,2 @@
1
+ export type Direction = 'down' | 'up';
2
+ export type Position = 'left' | 'right' | 'top' | 'bottom';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { DateFormat } from '../helpers';
2
+ import Ajv, { AnySchemaObject } from 'ajv';
3
+ import { DataValidationCxt } from 'ajv/dist/types';
4
+ export declare const dateFormatAjvKeyword: {
5
+ keyword: string;
6
+ modifying: boolean;
7
+ validate: (schema: DateFormat | string, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt) => boolean;
8
+ };
9
+ export declare const isDateFormatAjvKeyword: {
10
+ keyword: string;
11
+ modifying: boolean;
12
+ validate: (schema: DateFormat | string, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt) => boolean;
13
+ };
14
+ export declare const createFormViewAjv: () => Ajv;
@@ -0,0 +1,33 @@
1
+ import { formatDate } from '../helpers';
2
+ import Ajv from 'ajv';
3
+ import addFormats from 'ajv-formats';
4
+ const dateFormatValidator = (schema, data, parentSchema, dataCxt) => {
5
+ if (typeof data === 'string') {
6
+ if (!dataCxt?.parentData || dataCxt.parentDataProperty === undefined) {
7
+ return true;
8
+ }
9
+ const formatted = formatDate(data, schema);
10
+ if (formatted && formatted !== 'Invalid date') {
11
+ dataCxt.parentData[dataCxt.parentDataProperty] = formatted;
12
+ }
13
+ return true;
14
+ }
15
+ return false;
16
+ };
17
+ export const dateFormatAjvKeyword = {
18
+ keyword: 'dateFormat',
19
+ modifying: true,
20
+ validate: dateFormatValidator,
21
+ };
22
+ export const isDateFormatAjvKeyword = {
23
+ keyword: 'isoDateFormat',
24
+ modifying: true,
25
+ validate: dateFormatValidator,
26
+ };
27
+ export const createFormViewAjv = () => {
28
+ const ajv = new Ajv({ useDefaults: true });
29
+ addFormats(ajv);
30
+ ajv.addKeyword(dateFormatAjvKeyword);
31
+ ajv.addKeyword(isDateFormatAjvKeyword);
32
+ return ajv;
33
+ };
@@ -3,5 +3,5 @@ export const base64UriToFile = (base64Uri, filename, mimeType) => {
3
3
  const base64 = base64Uri.split(',')[1];
4
4
  const uint8Array = fromString(base64, 'base64');
5
5
  const blob = new Blob([uint8Array]);
6
- return new File([blob], filename, { type: mimeType });
6
+ return new File([blob], filename, { type: mimeType, lastModified: Date.now() });
7
7
  };