@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,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.
|
|
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,
|
|
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>>;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -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
|
+
};
|
package/dist/utils/FileUtils.js
CHANGED
|
@@ -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
|
};
|
package/dist/utils/IconUtils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ButtonIcon, fontColors } from '@sphereon/ui-components.core';
|
|
3
3
|
import SSIAddIcon from '../components/assets/icons/Add';
|
|
4
|
-
import
|
|
4
|
+
import ArrowIcon from '../components/assets/icons/Arrow';
|
|
5
5
|
import MeatBallsIcon from '../components/assets/icons/MeatBalls';
|
|
6
6
|
import CopyIcon from '../components/assets/icons/Copy';
|
|
7
7
|
import DeleteIcon from '../components/assets/icons/Delete';
|
|
@@ -12,8 +12,10 @@ export const getIcon = (icon, color = fontColors.dark) => {
|
|
|
12
12
|
switch (icon) {
|
|
13
13
|
case ButtonIcon.ADD:
|
|
14
14
|
return _jsx(SSIAddIcon, { color: color });
|
|
15
|
+
case ButtonIcon.ARROW_UP:
|
|
16
|
+
return _jsx(ArrowIcon, { color: color, direction: 'up' });
|
|
15
17
|
case ButtonIcon.ARROW_DOWN:
|
|
16
|
-
return _jsx(
|
|
18
|
+
return _jsx(ArrowIcon, { color: color });
|
|
17
19
|
case ButtonIcon.MEATBALLS:
|
|
18
20
|
return _jsx(MeatBallsIcon, { color: color });
|
|
19
21
|
case ButtonIcon.EDIT:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ui-components.ssi-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.1-next.3+a5a56d3",
|
|
5
5
|
"description": "SSI UI components for React",
|
|
6
6
|
"repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
|
|
7
7
|
"author": "Sphereon <dev@sphereon.com>",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@mui/styled-engine-sc": "^7.3.5",
|
|
49
49
|
"@mui/system": "^7.3.5",
|
|
50
50
|
"@mui/x-date-pickers": "^8.18.0",
|
|
51
|
-
"@sphereon/ssi-sdk.data-store": "0.
|
|
52
|
-
"@sphereon/ssi-types": "0.
|
|
53
|
-
"@sphereon/ui-components.core": "0.
|
|
51
|
+
"@sphereon/ssi-sdk.data-store-types": "0.37.0",
|
|
52
|
+
"@sphereon/ssi-types": "0.37.0",
|
|
53
|
+
"@sphereon/ui-components.core": "0.5.1-next.3+a5a56d3",
|
|
54
54
|
"@tanstack/react-table": "^8.9.3",
|
|
55
55
|
"ajv": "^8.17.1",
|
|
56
56
|
"ajv-formats": "^3.0.1",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@tailwindcss/cli": "^4.1.11",
|
|
68
68
|
"@types/react": "~18.3.18",
|
|
69
69
|
"tailwindcss": "^4.1.11",
|
|
70
|
-
"typescript": "
|
|
70
|
+
"typescript": "~5.8.3"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": ">= 18"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "a5a56d34f0c85ea96ae292bb1cdb6c8ff35d9aca"
|
|
76
76
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { fontColors, parseColor } from '@sphereon/ui-components.core';
|
|
3
|
-
const SSIArrowDownIcon = (props) => {
|
|
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: "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: parseColor(color) }) }) }));
|
|
6
|
-
};
|
|
7
|
-
export default SSIArrowDownIcon;
|