@soul-refiner/design-system 2.14.78 → 2.14.80
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/actions/stepIndicator/stepIndicator.js +7 -7
- package/dist/components/surfaces/success_modal/success-modal.js +38 -5
- package/dist/src/components/surfaces/success_modal/success-modal.d.ts +3 -1
- package/dist/src/components/surfaces/success_modal/success-modal.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js");var t=require("react"),a=require("styled-components");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(t),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js");var t=require("react"),a=require("styled-components");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(t),n=i(a);const l=n.default.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: space-between;
|
|
6
6
|
padding: 14px 1px;
|
|
7
|
-
`,c=
|
|
7
|
+
`,c=n.default.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: 8px;
|
|
12
|
-
`,s=
|
|
12
|
+
`,s=n.default.div`
|
|
13
13
|
width: 32px;
|
|
14
14
|
height: 32px;
|
|
15
15
|
border-radius: 50%;
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
color: ${({$active:e,$completed:r})=>e||r?"white":"var(--color-grey-4)"};
|
|
23
23
|
transition: all 0.2s ease;
|
|
24
24
|
border: ${({$active:e,$completed:r})=>e||r?"none":"2px solid var(--color-grey-8)"};
|
|
25
|
-
`,p=
|
|
25
|
+
`,p=n.default(r.P)`
|
|
26
26
|
font-size: 14px;
|
|
27
|
-
font-family:
|
|
27
|
+
font-family: var(--font-inter);
|
|
28
28
|
font-weight: 600;
|
|
29
29
|
line-height: 20px;
|
|
30
30
|
font-weight: ${({$active:e})=>e?600:400};
|
|
31
31
|
color: ${({$active:e})=>e?"var(--color-blue-2) !important":"var(--color-grey-3) !important"};
|
|
32
32
|
white-space: nowrap;
|
|
33
|
-
`,d=
|
|
33
|
+
`,d=n.default.div`
|
|
34
34
|
flex: 1;
|
|
35
35
|
height: 2px;
|
|
36
36
|
background-color: ${({$completed:e})=>e?"var(--color-blue-2)":"var(--color-grey-8)"};
|
|
37
37
|
margin: 0 8px;
|
|
38
38
|
margin-bottom: 24px;
|
|
39
39
|
transition: all 0.2s ease;
|
|
40
|
-
`;exports.StepIndicator=({currentStep:r,steps:t})=>e.jsx(
|
|
40
|
+
`;exports.StepIndicator=({currentStep:r,steps:t})=>e.jsx(l,{children:t.map((a,i)=>e.jsxs(o.default.Fragment,{children:[e.jsxs(c,{children:[e.jsx(s,{$active:r===a.number,$completed:r>a.number,children:a.number}),e.jsx(p,{$active:r===a.number,children:a.label})]}),i<t.length-1&&e.jsx(d,{$completed:r>a.number})]},a.number))});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../iconography/icon/icon.js");var
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../iconography/icon/icon.js");var t=require("../../../icons/basic/close.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../common/colors.js");var i=o(require("styled-components"));const n=i.default.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
justify-content: center;
|
|
47
47
|
align-items: center;
|
|
48
48
|
margin: 0 auto 30px auto;
|
|
49
|
-
`,
|
|
49
|
+
`,p=i.default.svg`
|
|
50
50
|
width: 50px;
|
|
51
51
|
height: 50px;
|
|
52
52
|
fill: var(--color-white);
|
|
53
|
-
`,
|
|
53
|
+
`,c=i.default.button`
|
|
54
54
|
background-color: var(--color-primary-blue-2);
|
|
55
55
|
color: var(--color-white);
|
|
56
56
|
border: none;
|
|
@@ -66,7 +66,31 @@
|
|
|
66
66
|
/* width: 143px; */
|
|
67
67
|
font-family: var(--font-inter);
|
|
68
68
|
letter-spacing: '-0.084px';
|
|
69
|
-
height:
|
|
69
|
+
height: 48px;
|
|
70
|
+
width: 230px;
|
|
71
|
+
`,d=i.default.button`
|
|
72
|
+
background-color: var(--color-white);
|
|
73
|
+
color: var(--color-grey-3);
|
|
74
|
+
font-family: Inter;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
line-height: 24px;
|
|
79
|
+
letter-spacing: -0.176px;
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 8px;
|
|
84
|
+
align-self: stretch;
|
|
85
|
+
border-radius: 32px;
|
|
86
|
+
border: 1px solid var(--color-grey-3);
|
|
87
|
+
background: var(--color-white);
|
|
88
|
+
width: 230px;
|
|
89
|
+
margin: 0 auto;
|
|
90
|
+
height: 48px;
|
|
91
|
+
@media screen and (min-width: 500px) {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
70
94
|
`,x=i.default.p`
|
|
71
95
|
font-size: 14px;
|
|
72
96
|
font-weight: 400;
|
|
@@ -77,4 +101,13 @@
|
|
|
77
101
|
letter-spacing: -0.084px;
|
|
78
102
|
font-family: var(--font-inter);
|
|
79
103
|
text-align: center;
|
|
80
|
-
|
|
104
|
+
`,g=i.default.div`
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: 12px;
|
|
109
|
+
margin-top: 24px;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
/* mx auto */
|
|
112
|
+
margin: 0 auto;
|
|
113
|
+
`;exports.SuccessModal=({onClose:o,title:i,message:h,actionText:u,onAction:f,openAppText:y="Open in the app",openAppAction:m=()=>{}})=>e.jsx(n,{children:e.jsxs(a,{children:[e.jsx(l,{onClick:o,children:e.jsx(t.Close,{})}),e.jsx(r.P,{sx:"font-size:48px;font-weight:600;color:var(--color-grey-2);font-style:normal;text-align:center;margin:0 0 30px 0;line-height:64px;letter-spacing:-1.056px",children:i}),e.jsx(s,{children:e.jsx(p,{viewBox:"0 0 24 24",children:e.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19l12-12-1.41-1.41z"})})}),e.jsx(x,{children:h}),e.jsxs(g,{children:[e.jsx(c,{onClick:f,children:u}),e.jsx(d,{onClick:m,children:y})]})]})});
|
|
@@ -4,6 +4,8 @@ export interface SuccessModalProps {
|
|
|
4
4
|
message: string;
|
|
5
5
|
actionText: string;
|
|
6
6
|
onAction: () => void;
|
|
7
|
+
openAppText?: string;
|
|
8
|
+
openAppAction?: () => void;
|
|
7
9
|
}
|
|
8
|
-
export declare const SuccessModal: ({ onClose, title, message, actionText, onAction, }: SuccessModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SuccessModal: ({ onClose, title, message, actionText, onAction, openAppText, openAppAction, }: SuccessModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=success-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"success-modal.d.ts","sourceRoot":"","sources":["../../../../../src/components/surfaces/success_modal/success-modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"success-modal.d.ts","sourceRoot":"","sources":["../../../../../src/components/surfaces/success_modal/success-modal.tsx"],"names":[],"mappings":"AAyIA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,mFAQtB,iBAAiB,4CAuBnB,CAAC"}
|