@connectid-tools/idp-selector-react 6.12.1-alpha.1 → 6.12.1
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/FullProcess.css +14 -6
- package/FullProcess.js +13 -11
- package/FullProcessHorizontalList.d.ts +5 -1
- package/FullProcessHorizontalList.js +2 -2
- package/FullProcessVerticalList.d.ts +5 -1
- package/FullProcessVerticalList.js +2 -2
- package/README.md +10 -0
- package/package.json +5 -5
package/FullProcess.css
CHANGED
|
@@ -9,19 +9,27 @@
|
|
|
9
9
|
border: 1px solid var(--charcoal10);
|
|
10
10
|
background-color: transparent;
|
|
11
11
|
}
|
|
12
|
+
.cid-idp-selector-full-process-summary {
|
|
13
|
+
list-style: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
.cid-idp-selector-full-process-summary::-webkit-details-marker, .cid-idp-selector-full-process-summary::marker {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
12
20
|
.cid-idp-selector-full-process-title {
|
|
13
21
|
font-size: 20px;
|
|
14
22
|
color: var(--charcoal);
|
|
15
|
-
margin-bottom:
|
|
23
|
+
margin-bottom: 20px;
|
|
16
24
|
display: flex;
|
|
17
25
|
align-items: center;
|
|
18
26
|
justify-content: space-between;
|
|
19
27
|
}
|
|
20
|
-
.cid-idp-selector-full-process
|
|
21
|
-
margin-bottom:
|
|
28
|
+
.cid-idp-selector-full-process-summary .cid-idp-selector-full-process-title {
|
|
29
|
+
margin-bottom: 0;
|
|
22
30
|
}
|
|
23
|
-
.cid-idp-selector-full-process-
|
|
24
|
-
|
|
31
|
+
.cid-idp-selector-full-process[open] .cid-idp-selector-full-process-title {
|
|
32
|
+
margin-bottom: 20px;
|
|
25
33
|
}
|
|
26
34
|
.cid-idp-selector-full-process-toggle path {
|
|
27
35
|
fill: var(--charcoal);
|
|
@@ -29,7 +37,7 @@
|
|
|
29
37
|
.cid-idp-selector-full-process--light .cid-idp-selector-full-process-toggle path {
|
|
30
38
|
fill: white;
|
|
31
39
|
}
|
|
32
|
-
.cid-idp-selector-full-process
|
|
40
|
+
.cid-idp-selector-full-process[open] .cid-idp-selector-full-process-toggle {
|
|
33
41
|
transform: rotate(180deg);
|
|
34
42
|
}
|
|
35
43
|
.cid-idp-selector-full-process--light .cid-idp-selector-full-process-title {
|
package/FullProcess.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
2
|
-
import { useContext
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext } from "react";
|
|
3
3
|
import { ThemeContext } from "./ThemeContext.js";
|
|
4
4
|
import "./FullProcess.css";
|
|
5
5
|
import { FullProcessVerticalList } from "./FullProcessVerticalList.js";
|
|
@@ -18,14 +18,16 @@ import { FullProcessHorizontalList } from "./FullProcessHorizontalList.js";
|
|
|
18
18
|
// . text
|
|
19
19
|
export const FullProcess = ({ collapsible = false }) => {
|
|
20
20
|
const theme = useContext(ThemeContext);
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
const listItems = [
|
|
22
|
+
"Select your trusted organisation",
|
|
23
|
+
"Log in to your existing account",
|
|
24
|
+
"Review your details and provide consent",
|
|
25
|
+
];
|
|
26
|
+
const renderList = () => {
|
|
27
|
+
return (_jsxs(_Fragment, { children: [_jsx(FullProcessVerticalList, { items: listItems }), _jsx(FullProcessHorizontalList, { items: listItems })] }));
|
|
26
28
|
};
|
|
27
|
-
|
|
28
|
-
${theme === "light" ? "cid-idp-selector-full-process--light" : ""}
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
if (collapsible) {
|
|
30
|
+
return (_jsxs("details", { className: `cid-idp-selector-full-process ${theme === "light" ? "cid-idp-selector-full-process--light" : ""}`, "data-testid": "full-process", children: [_jsx("summary", { className: "cid-idp-selector-full-process-summary", "data-testid": "full-process-summary", children: _jsxs("h3", { className: "cid-idp-selector-full-process-title", "data-testid": "full-process-title", children: ["How it works", _jsx("svg", { className: "cid-idp-selector-full-process-toggle", width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "full-process-toggle", children: _jsx("path", { d: "M13.1684 5.3125L13.8125 5.9998L8.5 11.6875L3.1875 5.9998L3.82832 5.3125L8.5 10.3096L13.1684 5.3125Z" }) })] }) }), renderList()] }));
|
|
31
|
+
}
|
|
32
|
+
return (_jsxs("div", { className: `cid-idp-selector-full-process ${theme === "light" ? "cid-idp-selector-full-process--light" : ""}`, "data-testid": "full-process", children: [_jsx("h3", { className: "cid-idp-selector-full-process-title", "data-testid": "full-process-title", children: "How it works" }), renderList()] }));
|
|
31
33
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import './FullProcessHorizontalList.css';
|
|
2
|
-
|
|
2
|
+
type FullProcessHorizontalListProps = {
|
|
3
|
+
items: string[];
|
|
4
|
+
};
|
|
5
|
+
export declare const FullProcessHorizontalList: React.FC<FullProcessHorizontalListProps>;
|
|
6
|
+
export {};
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import "./FullProcessHorizontalList.css";
|
|
3
3
|
import { Step } from "./Step.js";
|
|
4
4
|
import { StepTitle } from "./StepTitle.js";
|
|
5
|
-
export const FullProcessHorizontalList = () => {
|
|
6
|
-
return (
|
|
5
|
+
export const FullProcessHorizontalList = ({ items }) => {
|
|
6
|
+
return (_jsx("ol", { className: "cid-idp-selector-full-process-h-list", "data-testid": "full-process-h-list", children: items.map((item, index) => (_jsxs("li", { className: "cid-idp-selector-full-process-h-item", children: [_jsx(Step, { removeLine: index === items.length - 1 }), _jsx(StepTitle, { title: item })] }, index))) }));
|
|
7
7
|
};
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import "./FullProcessVerticalList.css";
|
|
3
3
|
import { Step } from "./Step.js";
|
|
4
4
|
import { StepTitle } from "./StepTitle.js";
|
|
5
|
-
export const FullProcessVerticalList = () => {
|
|
6
|
-
return (
|
|
5
|
+
export const FullProcessVerticalList = ({ items }) => {
|
|
6
|
+
return (_jsx("ol", { className: "cid-idp-selector-full-process-v-list", "data-testid": "full-process-v-list", children: items.map((item, index) => (_jsxs("li", { className: "cid-idp-selector-full-process-v-item", children: [_jsx(Step, { removeLine: index === items.length - 1 }), _jsx(StepTitle, { title: item })] }, index))) }));
|
|
7
7
|
};
|
package/README.md
CHANGED
|
@@ -260,6 +260,16 @@ The SVG image below the ConnectID button has either option dark or light mode. B
|
|
|
260
260
|
|
|
261
261
|
## 🚀 Release Notes
|
|
262
262
|
|
|
263
|
+
### 6.12.1 (Sep 1, 2025)
|
|
264
|
+
- `full process` with `detail/summary`.
|
|
265
|
+
- `full process` type as list(`ul/li`).
|
|
266
|
+
|
|
267
|
+
### 6.12.1-alpha.2 (Aug 25, 2025)
|
|
268
|
+
- `full process` with `detail/summary`.
|
|
269
|
+
|
|
270
|
+
### 6.12.1-alpha.1 (Aug 25, 2025)
|
|
271
|
+
- `full process` type as list(`ul/li`).
|
|
272
|
+
|
|
263
273
|
### 6.12.0 (Aug 14, 2025)
|
|
264
274
|
- Update `cba_loyalty` claim label.
|
|
265
275
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectid-tools/idp-selector-react",
|
|
3
|
-
"version": "6.12.1
|
|
3
|
+
"version": "6.12.1",
|
|
4
4
|
"description": "React component for IDP Selector.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"homepage": "https://github.com/connectid-tools/idp-selector-react",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/preset-typescript": "^7.27.1",
|
|
29
|
-
"@types/node": "^22.
|
|
29
|
+
"@types/node": "^22.18.0",
|
|
30
30
|
"@types/react": "^18.3.24",
|
|
31
31
|
"@types/react-dom": "^18.3.7",
|
|
32
|
-
"cypress": "^
|
|
33
|
-
"jest-environment-jsdom": "^
|
|
32
|
+
"cypress": "^15.0.0",
|
|
33
|
+
"jest-environment-jsdom": "^30.1.2",
|
|
34
34
|
"prettier": "^3.6.2",
|
|
35
35
|
"react": "^18.3.1",
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"detectincognitojs": "^1.6.1",
|
|
44
44
|
"react-responsive": "^10.0.1",
|
|
45
45
|
"swr": "^2.3.6",
|
|
46
|
-
"vite": "^
|
|
46
|
+
"vite": "^7.1.3"
|
|
47
47
|
}
|
|
48
48
|
}
|