@sphereon/ui-components.ssi-react 0.4.1-unstable.98 → 0.5.1-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/assets/icons/{ArrowDown → Arrow}/index.d.ts +4 -2
- package/dist/components/assets/icons/Arrow/index.js +7 -0
- package/dist/components/assets/icons/Contact/index.js +1 -1
- package/dist/components/assets/icons/Management/index.js +1 -1
- package/dist/components/assets/icons/UX/index.js +1 -1
- package/dist/components/buttons/IconButton/index.d.ts +2 -1
- package/dist/components/buttons/IconButton/index.js +2 -1
- package/dist/components/buttons/SSISwitchItem/index.d.ts +12 -0
- package/dist/components/buttons/SSISwitchItem/index.js +19 -0
- package/dist/components/fields/JSONForms/ColorPickerControl/index.js +2 -2
- package/dist/components/fields/SSICheckbox/index.d.ts +4 -0
- package/dist/components/fields/SSICheckbox/index.js +21 -3
- package/dist/components/fields/TextInputField/index.d.ts +5 -2
- package/dist/components/fields/TextInputField/index.js +14 -15
- package/dist/components/views/ContactViewItem/index.d.ts +1 -1
- package/dist/components/views/FormView/index.d.ts +1 -1
- package/dist/components/views/FormView/index.js +25 -21
- package/dist/components/views/FormView/styles.css +4 -1
- package/dist/components/views/SSITabView/SSITabViewHeader/index.js +6 -8
- package/dist/components/views/SSITabView/index.d.ts +7 -3
- package/dist/components/views/SSITabView/index.js +4 -17
- package/dist/components/views/SSITableView/PaginationControls/index.js +2 -2
- package/dist/components/views/SSITableView/index.js +8 -12
- package/dist/helpers/DateHelper/index.d.ts +2 -2
- package/dist/helpers/DateHelper/index.js +79 -24
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/styles/components/components/ContactViewItem/index.d.ts +0 -1
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.d.ts +0 -1
- package/dist/styles/components/components/CredentialViewItem/index.d.ts +0 -1
- package/dist/styles/components/components/DragAndDropBox/index.d.ts +0 -1
- package/dist/styles/components/components/DropDownList/index.d.ts +0 -1
- package/dist/styles/components/components/DropDownListItem/index.d.ts +0 -1
- package/dist/styles/components/components/FileSelectionField/index.d.ts +0 -1
- package/dist/styles/components/components/IconButton/index.d.ts +0 -1
- package/dist/styles/components/components/InformationRequestView/index.d.ts +0 -1
- package/dist/styles/components/components/JSONDataView/index.d.ts +0 -1
- package/dist/styles/components/components/JSONDataView/index.js +7 -2
- package/dist/styles/components/components/Pagination/index.d.ts +0 -1
- package/dist/styles/components/components/PassportPhotoControl/index.d.ts +0 -1
- package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +0 -1
- package/dist/styles/components/components/SSICheckbox/index.d.ts +0 -1
- package/dist/styles/components/components/SSICheckbox/index.js +9 -6
- package/dist/styles/components/components/SSICredentialCardView/index.d.ts +0 -1
- package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +0 -1
- package/dist/styles/components/components/SSIHoverText/index.d.ts +0 -1
- package/dist/styles/components/components/SSIProfileIcon/index.d.ts +0 -1
- package/dist/styles/components/components/SSIStatusLabel/index.d.ts +0 -1
- package/dist/styles/components/components/SSISwitchItem/index.d.ts +4 -0
- package/dist/styles/components/components/SSISwitchItem/index.js +74 -0
- package/dist/styles/components/components/SSITabView/index.d.ts +0 -1
- package/dist/styles/components/components/SSITabView/index.js +1 -0
- package/dist/styles/components/components/SSITabViewHeader/index.d.ts +4 -3
- package/dist/styles/components/components/SSITabViewHeader/index.js +31 -6
- package/dist/styles/components/components/SSITableView/index.d.ts +1 -2
- package/dist/styles/components/components/SSITableView/index.js +1 -1
- package/dist/styles/components/components/SSITableViewHeader/index.d.ts +0 -1
- package/dist/styles/components/components/SSIToast/index.d.ts +0 -1
- package/dist/styles/components/components/StepMarker/index.d.ts +0 -1
- package/dist/styles/components/components/TextInputField/index.d.ts +2 -1
- package/dist/styles/components/components/TextInputField/index.js +38 -16
- package/dist/styles/components/components/buttons/index.d.ts +0 -1
- package/dist/styles/components/components/index.d.ts +1 -0
- package/dist/styles/components/components/index.js +1 -0
- package/dist/styles/components/containers/index.d.ts +0 -1
- package/dist/styles/css/tailwind.css +2 -2
- package/dist/styles/fonts/index.d.ts +0 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/position/index.d.ts +2 -0
- package/dist/types/position/index.js +1 -0
- package/dist/utils/Ajv.d.ts +14 -0
- package/dist/utils/Ajv.js +33 -0
- package/dist/utils/FileUtils.js +1 -1
- package/dist/utils/IconUtils.js +4 -2
- package/package.json +6 -6
- package/dist/components/assets/icons/ArrowDown/index.js +0 -7
|
@@ -1,45 +1,100 @@
|
|
|
1
|
+
const KNOWN_FORMATS = new Set(['date-time', 'date', 'time', 'iso-date-time', 'iso-date', 'iso-time']);
|
|
2
|
+
const customFormatTokens = {
|
|
3
|
+
yyyy: (date) => date.getFullYear().toString().padStart(4, '0'),
|
|
4
|
+
yy: (date) => date.getFullYear().toString().slice(-2).padStart(2, '0'),
|
|
5
|
+
MM: (date) => (date.getMonth() + 1).toString().padStart(2, '0'),
|
|
6
|
+
M: (date) => (date.getMonth() + 1).toString(),
|
|
7
|
+
dd: (date) => date.getDate().toString().padStart(2, '0'),
|
|
8
|
+
d: (date) => date.getDate().toString(),
|
|
9
|
+
HH: (date) => date.getHours().toString().padStart(2, '0'),
|
|
10
|
+
H: (date) => date.getHours().toString(),
|
|
11
|
+
mm: (date) => date.getMinutes().toString().padStart(2, '0'),
|
|
12
|
+
m: (date) => date.getMinutes().toString(),
|
|
13
|
+
ss: (date) => date.getSeconds().toString().padStart(2, '0'),
|
|
14
|
+
s: (date) => date.getSeconds().toString(),
|
|
15
|
+
};
|
|
16
|
+
const orderedTokens = ['yyyy', 'yy', 'MM', 'dd', 'HH', 'mm', 'ss', 'M', 'd', 'H', 'm', 's'];
|
|
17
|
+
const applyCustomFormat = (date, format) => {
|
|
18
|
+
let result = '';
|
|
19
|
+
let i = 0;
|
|
20
|
+
while (i < format.length) {
|
|
21
|
+
const char = format[i];
|
|
22
|
+
if (char === '[') {
|
|
23
|
+
const closeIdx = format.indexOf(']', i + 1);
|
|
24
|
+
if (closeIdx !== -1) {
|
|
25
|
+
result += format.slice(i + 1, closeIdx);
|
|
26
|
+
i = closeIdx + 1;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
result += char;
|
|
31
|
+
i += 1;
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const token = orderedTokens.find((t) => format.startsWith(t, i));
|
|
36
|
+
if (token) {
|
|
37
|
+
result += customFormatTokens[token](date);
|
|
38
|
+
i += token.length;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
result += char;
|
|
42
|
+
i += 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
1
47
|
export const formatDate = (dateString, format = 'date-time') => {
|
|
2
|
-
const userDateTimeOpts = Intl.DateTimeFormat().resolvedOptions();
|
|
3
48
|
if (!dateString) {
|
|
4
49
|
return '';
|
|
5
50
|
}
|
|
6
|
-
|
|
51
|
+
let dateToParse = dateString;
|
|
52
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
|
|
53
|
+
dateToParse += 'T00:00:00';
|
|
54
|
+
}
|
|
55
|
+
const date = dateString === 'now' ? new Date() : new Date(dateToParse);
|
|
7
56
|
if (isNaN(date.getTime())) {
|
|
8
57
|
console.error('Invalid date:', dateString);
|
|
9
58
|
return 'Invalid date';
|
|
10
59
|
}
|
|
60
|
+
const effectiveFormat = format ?? 'date-time';
|
|
61
|
+
if (effectiveFormat === 'iso-date-time')
|
|
62
|
+
return applyCustomFormat(date, 'yyyy-MM-ddTHH:mm:ss');
|
|
63
|
+
if (effectiveFormat === 'iso-date')
|
|
64
|
+
return applyCustomFormat(date, 'yyyy-MM-dd');
|
|
65
|
+
if (effectiveFormat === 'iso-time')
|
|
66
|
+
return applyCustomFormat(date, 'HH:mm:ss');
|
|
67
|
+
if (!KNOWN_FORMATS.has(effectiveFormat)) {
|
|
68
|
+
return applyCustomFormat(date, effectiveFormat);
|
|
69
|
+
}
|
|
70
|
+
const userDateTimeOpts = Intl.DateTimeFormat().resolvedOptions();
|
|
11
71
|
const formatOptions = {
|
|
12
72
|
timeZone: userDateTimeOpts.timeZone,
|
|
13
73
|
};
|
|
14
|
-
if (
|
|
74
|
+
if (effectiveFormat === 'date-time') {
|
|
15
75
|
formatOptions.dateStyle = 'short';
|
|
16
76
|
formatOptions.timeStyle = 'short';
|
|
17
77
|
}
|
|
18
|
-
else if (
|
|
78
|
+
else if (effectiveFormat === 'date') {
|
|
19
79
|
formatOptions.dateStyle = 'short';
|
|
20
80
|
}
|
|
21
|
-
else if (
|
|
81
|
+
else if (effectiveFormat === 'time') {
|
|
22
82
|
formatOptions.timeStyle = 'short';
|
|
23
83
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export const formatDateToISO = (dateString, format = 'date-time') => {
|
|
27
|
-
if (!dateString) {
|
|
28
|
-
return '';
|
|
29
|
-
}
|
|
30
|
-
const date = dateString === 'now' ? new Date() : new Date(dateString);
|
|
31
|
-
if (isNaN(date.getTime())) {
|
|
32
|
-
console.error('Invalid date:', dateString);
|
|
33
|
-
return 'Invalid date';
|
|
84
|
+
try {
|
|
85
|
+
return new Intl.DateTimeFormat(userDateTimeOpts.locale, formatOptions).format(date);
|
|
34
86
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
}
|
|
39
|
-
else if (format === 'date') {
|
|
40
|
-
return isoString.slice(0, 10);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return isoString.slice(11, 19);
|
|
87
|
+
catch (error) {
|
|
88
|
+
console.error('Intl formatting error', error);
|
|
89
|
+
return date.toString();
|
|
44
90
|
}
|
|
45
91
|
};
|
|
92
|
+
export const formatDateToISO = (dateString, format = 'date-time') => {
|
|
93
|
+
if (format === 'date-time')
|
|
94
|
+
return formatDate(dateString, 'iso-date-time');
|
|
95
|
+
if (format === 'date')
|
|
96
|
+
return formatDate(dateString, 'iso-date');
|
|
97
|
+
if (format === 'time')
|
|
98
|
+
return formatDate(dateString, 'iso-time');
|
|
99
|
+
return formatDate(dateString, format);
|
|
100
|
+
};
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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 { 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 { 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 { SSITextH2SemiBoldStyled, SSITextH7RegularStyled } from '../../../fonts';
|
|
4
3
|
export declare const FileSelectionFieldContainerStyled: 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
|
-
|
|
40
|
-
|
|
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>>;
|
|
@@ -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:
|
|
6
|
+
gap: 8px;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
`;
|
|
9
9
|
export const SSICheckboxUnselectedContainerStyled = styled.div `
|
|
10
10
|
width: 18px;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
border-
|
|
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
|
-
|
|
18
|
-
|
|
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>>;
|
|
@@ -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,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:
|
|
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 {
|
|
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:
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
14
|
-
|
|
36
|
+
export const SSITabViewHeaderDividerStyled = styled.div `
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 1px;
|
|
39
|
+
background-color: ${elementColors.lightGrey};
|
|
15
40
|
`;
|
|
@@ -1,11 +1,10 @@
|
|
|
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>>;
|
|
5
4
|
export declare const SSITableViewTableContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>>;
|
|
6
5
|
export declare const SSITableViewHeaderRowContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>>;
|
|
7
6
|
export declare const SSITableViewRowContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement> & {
|
|
8
|
-
enableHover?: boolean;
|
|
7
|
+
$enableHover?: boolean;
|
|
9
8
|
}>;
|
|
10
9
|
export declare const SSITableViewCellContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>>;
|
|
11
10
|
export declare const SSITableViewHeaderCellContainerStyled: IStyledComponent<'web', React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>>;
|
|
@@ -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
|
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 {
|
|
3
|
+
import { SSITextH3Css, SSITextH7RegularCss } from '../../../css';
|
|
4
4
|
export const TextFieldInputContainerStyled = styled.div `
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 56px;
|
|
7
8
|
`;
|
|
8
|
-
export const
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
18
|
-
font-family: Poppins, serif;
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
font-family: Poppins, sans-serif;
|
|
19
31
|
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
&::placeholder {
|
|
33
|
+
color: #727272;
|
|
22
34
|
}
|
|
23
35
|
|
|
24
|
-
&:
|
|
25
|
-
|
|
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
|
+
`;
|