@connectid-tools/idp-selector-react 6.12.1-alpha.1 → 6.12.1-alpha.2

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 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: 0;
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--open .cid-idp-selector-full-process-title {
21
- margin-bottom: 20px;
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-toggle {
24
- cursor: pointer;
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--open .cid-idp-selector-full-process-toggle {
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, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useContext, useState } from "react";
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 [open, setOpen] = useState(!collapsible);
22
- const handleToggle = () => {
23
- if (!collapsible)
24
- return;
25
- setOpen(!open);
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
- return (_jsxs("div", { className: `cid-idp-selector-full-process
28
- ${theme === "light" ? "cid-idp-selector-full-process--light" : ""}
29
- ${open ? "cid-idp-selector-full-process--open" : ""}
30
- `, "data-testid": "full-process", children: [_jsxs("h3", { className: "cid-idp-selector-full-process-title", "data-testid": "full-process-title", children: ["How it works", collapsible && (_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", onClick: handleToggle, "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" }) }))] }), open && (_jsxs(_Fragment, { children: [_jsx(FullProcessVerticalList, {}), _jsx(FullProcessHorizontalList, {})] }))] }));
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
- export declare const FullProcessHorizontalList: React.FC;
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 (_jsxs("ol", { className: "cid-idp-selector-full-process-h-list", "data-testid": "full-process-h-list", children: [_jsxs("li", { className: "cid-idp-selector-full-process-h-item", children: [_jsx(Step, {}), _jsx(StepTitle, { title: "Select your trusted organisation" })] }), _jsxs("li", { className: "cid-idp-selector-full-process-h-item", children: [_jsx(Step, {}), _jsx(StepTitle, { title: "Log in to your existing account" })] }), _jsxs("li", { className: "cid-idp-selector-full-process-h-item", children: [_jsx(Step, { removeLine: true }), _jsx(StepTitle, { title: "Review your details and provide consent" })] })] }));
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
  };
@@ -1,2 +1,6 @@
1
1
  import './FullProcessVerticalList.css';
2
- export declare const FullProcessVerticalList: React.FC;
2
+ type FullProcessVerticalListProps = {
3
+ items: string[];
4
+ };
5
+ export declare const FullProcessVerticalList: React.FC<FullProcessVerticalListProps>;
6
+ export {};
@@ -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 (_jsxs("ol", { className: "cid-idp-selector-full-process-v-list", "data-testid": "full-process-v-list", children: [_jsxs("li", { className: "cid-idp-selector-full-process-v-item", children: [_jsx(Step, {}), _jsx(StepTitle, { title: "Select your trusted organisation" })] }), _jsxs("li", { className: "cid-idp-selector-full-process-v-item", children: [_jsx(Step, {}), _jsx(StepTitle, { title: "Log in to your existing account" })] }), _jsxs("li", { className: "cid-idp-selector-full-process-v-item", children: [_jsx(Step, { removeLine: true }), _jsx(StepTitle, { title: "Review your details and provide consent" })] })] }));
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,12 @@ 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-alpha.2 (Aug 25, 2025)
264
+ - `full process` with `detail/summary`.
265
+
266
+ ### 6.12.1-alpha.1 (Aug 25, 2025)
267
+ - `full process` type as list(`ul/li`).
268
+
263
269
  ### 6.12.0 (Aug 14, 2025)
264
270
  - Update `cba_loyalty` claim label.
265
271
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectid-tools/idp-selector-react",
3
- "version": "6.12.1-alpha.1",
3
+ "version": "6.12.1-alpha.2",
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.17.2",
29
+ "@types/node": "^22.18.0",
30
30
  "@types/react": "^18.3.24",
31
31
  "@types/react-dom": "^18.3.7",
32
- "cypress": "^14.5.4",
33
- "jest-environment-jsdom": "^29.7.0",
32
+ "cypress": "^15.0.0",
33
+ "jest-environment-jsdom": "^30.0.5",
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": "^6.3.5"
46
+ "vite": "^7.1.3"
47
47
  }
48
48
  }