@egov3/system-design 1.3.268 → 1.3.269
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/cjs/components/Services/StepsLabel/StepsLabel.module.css.js +22 -0
- package/dist/cjs/components/Services/StepsLabel/StepsLabel.module.css.js.map +1 -0
- package/dist/cjs/components/Services/StepsLabel/index.js +10 -0
- package/dist/cjs/components/Services/StepsLabel/index.js.map +1 -0
- package/dist/cjs/components/Services/YesNoQuestion/index.js +17 -0
- package/dist/cjs/components/Services/YesNoQuestion/index.js.map +1 -0
- package/dist/cjs/constants/i18n/Services/YesNoQuestion.js +17 -0
- package/dist/cjs/constants/i18n/Services/YesNoQuestion.js.map +1 -0
- package/dist/cjs/constants/i18n/index.js +2 -0
- package/dist/cjs/constants/i18n/index.js.map +1 -1
- package/dist/cjs/index.js +36 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Services/StepsLabel/StepsLabel.module.css.js +18 -0
- package/dist/esm/components/Services/StepsLabel/StepsLabel.module.css.js.map +1 -0
- package/dist/esm/components/Services/StepsLabel/index.js +8 -0
- package/dist/esm/components/Services/StepsLabel/index.js.map +1 -0
- package/dist/esm/components/Services/YesNoQuestion/index.js +15 -0
- package/dist/esm/components/Services/YesNoQuestion/index.js.map +1 -0
- package/dist/esm/constants/i18n/Services/YesNoQuestion.js +15 -0
- package/dist/esm/constants/i18n/Services/YesNoQuestion.js.map +1 -0
- package/dist/esm/constants/i18n/index.js +2 -0
- package/dist/esm/constants/i18n/index.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/Services/StepsLabel/index.d.ts +9 -0
- package/dist/types/components/Services/YesNoQuestion/index.d.ts +14 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var css_248z = "h3.StepsLabel-module_title__Er-4w {\n display: inline-block;\n margin-bottom: 16px;\n color: var(--surface-accent);\n}\n";
|
|
6
|
+
var styles = {"title":"StepsLabel-module_title__Er-4w"};
|
|
7
|
+
function styleInject(css, options) {
|
|
8
|
+
if (typeof document === 'undefined') return;
|
|
9
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
10
|
+
const style = document.createElement('style');
|
|
11
|
+
style.type = 'text/css';
|
|
12
|
+
if (style.styleSheet) {
|
|
13
|
+
style.styleSheet.cssText = css;
|
|
14
|
+
} else {
|
|
15
|
+
style.appendChild(document.createTextNode(css));
|
|
16
|
+
}
|
|
17
|
+
head.appendChild(style);
|
|
18
|
+
}
|
|
19
|
+
styleInject(css_248z);
|
|
20
|
+
|
|
21
|
+
exports.default = styles;
|
|
22
|
+
//# sourceMappingURL=StepsLabel.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepsLabel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var index = require('../../../baseComponents/Typography/index.js');
|
|
5
|
+
var StepsLabel_module = require('./StepsLabel.module.css.js');
|
|
6
|
+
|
|
7
|
+
const StepsLabel = ({ label }) => (jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles2", className: StepsLabel_module.default.title, "data-testid": "StepsLabel_TITLE", children: label }));
|
|
8
|
+
|
|
9
|
+
exports.StepsLabel = StepsLabel;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/StepsLabel/index.tsx"],"sourcesContent":[null],"names":["_jsx","Typography","styles"],"mappings":";;;;;;AAOO,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAoB,MACpDA,cAAA,CAACC,gBAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,YAAY,EACtB,SAAS,EAAEC,yBAAM,CAAC,KAAK,iBACX,kBAAkB,EAAA,QAAA,EAE7B,KAAK,EAAA,CACK;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var index$2 = require('../../../constants/i18n/index.js');
|
|
5
|
+
var index$1 = require('../../../baseComponents/RadioGroup/index.js');
|
|
6
|
+
var index = require('../StepsLabel/index.js');
|
|
7
|
+
|
|
8
|
+
const langDic = index$2.i18n.YesNoQuestion;
|
|
9
|
+
const YesNoQuestion = ({ lang, name, question, answer, onChange, }) => (jsxRuntime.jsxs("div", { "data-testid": "YesNoQuestion_WRAPPER", children: [jsxRuntime.jsx(index.StepsLabel, { label: question }), jsxRuntime.jsx(index$1.RadioGroup, { name: name, direction: "horizontal", legend: question, radioGroupItems: [
|
|
10
|
+
{ value: "yes", label: langDic.yes[lang] },
|
|
11
|
+
{ value: "no", label: langDic.no[lang] },
|
|
12
|
+
], selectedOption: answer ?? "", setSelectedOption: (value) => {
|
|
13
|
+
onChange(value === "yes" ? "yes" : "no");
|
|
14
|
+
} })] }));
|
|
15
|
+
|
|
16
|
+
exports.YesNoQuestion = YesNoQuestion;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/YesNoQuestion/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsxs","_jsx","StepsLabel","RadioGroup"],"mappings":";;;;;;;AAeA,MAAM,OAAO,GAAGA,YAAI,CAAC,aAAa;MACrB,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,GACY,MACpBC,eAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,uBAAuB,EAAA,QAAA,EAAA,CACtCC,eAACC,gBAAU,EAAA,EAAC,KAAK,EAAE,QAAQ,GAAI,EAC/BD,cAAA,CAACE,kBAAU,EAAA,EACT,IAAI,EAAE,IAAI,EACV,SAAS,EAAC,YAAY,EACtB,MAAM,EAAE,QAAQ,EAChB,eAAe,EAAE;AACf,gBAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AAC1C,gBAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;aACzC,EACD,cAAc,EAAE,MAAM,IAAI,EAAE,EAC5B,iBAAiB,EAAE,CAAC,KAAK,KAAI;AAC3B,gBAAA,QAAQ,CAAC,KAAK,KAAK,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;YAC1C,CAAC,EAAA,CACD,CAAA,EAAA,CACE;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YesNoQuestion.js","sources":["../../../../../src/constants/i18n/Services/YesNoQuestion.tsx"],"sourcesContent":[null],"names":[],"mappings":";;AAAO,MAAM,aAAa,GAAG;AAC3B,IAAA,GAAG,EAAE;AACH,QAAA,EAAE,EAAE,IAAI;AACR,QAAA,EAAE,EAAE,IAAI;AACR,QAAA,EAAE,EAAE,KAAK;AACV,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,EAAE,EAAE,IAAI;AACT,KAAA;;;;;"}
|
|
@@ -27,6 +27,7 @@ var ConsentCheckbox = require('./Services/ConsentCheckbox.js');
|
|
|
27
27
|
var Feedback = require('./Services/Feedback.js');
|
|
28
28
|
var FileUpload = require('./Services/FileUpload.js');
|
|
29
29
|
var S022OfferTable = require('./Services/S022/S022OfferTable.js');
|
|
30
|
+
var YesNoQuestion = require('./Services/YesNoQuestion.js');
|
|
30
31
|
var Table = require('./Table.js');
|
|
31
32
|
|
|
32
33
|
const i18n = {
|
|
@@ -58,6 +59,7 @@ const i18n = {
|
|
|
58
59
|
SearchBar: SearchBar.SearchBar,
|
|
59
60
|
ServiceDetails: ServiceDetails.ServiceDetails,
|
|
60
61
|
Table: Table.Table,
|
|
62
|
+
YesNoQuestion: YesNoQuestion.YesNoQuestion,
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
exports.i18n = i18n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":["AuthQR","Calendar","Common","ConsentCheckbox","DropdownSelect","DocCard","Feedback","Modal","SelectBoxButton","ErrorModal","SetUpAccess","ProfileHealthGeneral","EdsSuccess","Auth","Agreement","CodeInput","HelpNotificationItem","HelpQuestionAnswer","MsgBody","EmptyMessages","MsgComponentHeader","FileUpload","PrivacyModal","S022OfferTable","ScreenMessage","SearchBar","ServiceDetails","Table"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":["AuthQR","Calendar","Common","ConsentCheckbox","DropdownSelect","DocCard","Feedback","Modal","SelectBoxButton","ErrorModal","SetUpAccess","ProfileHealthGeneral","EdsSuccess","Auth","Agreement","CodeInput","HelpNotificationItem","HelpQuestionAnswer","MsgBody","EmptyMessages","MsgComponentHeader","FileUpload","PrivacyModal","S022OfferTable","ScreenMessage","SearchBar","ServiceDetails","Table","YesNoQuestion"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BO,MAAM,IAAI,GAAG;YAClBA,aAAM;cACNC,iBAAQ;YACRC,aAAM;qBACNC,+BAAe;oBACfC,6BAAc;aACdC,eAAO;cACPC,iBAAQ;WACRC,WAAK;qBACLC,+BAAe;gBACfC,qBAAU;iBACVC,uBAAW;0BACXC,yCAAoB;gBACpBC,qBAAU;UACVC,SAAI;eACJC,mBAAS;eACTC,mBAAS;0BACTC,yCAAoB;wBACpBC,qCAAkB;aAElBC,eAAO;mBACPC,2BAAa;wBACbC,qCAAkB;gBAClBC,qBAAU;kBACVC,yBAAY;oBACZC,6BAAc;mBACdC,2BAAa;eACbC,mBAAS;oBACTC,6BAAc;WACdC,WAAK;mBACLC,2BAAa;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -28,13 +28,13 @@ var index$T = require('./baseComponents/SearchBar/index.js');
|
|
|
28
28
|
var index$U = require('./baseComponents/SelectBoxButton/index.js');
|
|
29
29
|
var index$Z = require('./baseComponents/StatusStepper/index.js');
|
|
30
30
|
var index$_ = require('./baseComponents/StatusText/index.js');
|
|
31
|
-
var index
|
|
32
|
-
var index$
|
|
33
|
-
var index$
|
|
34
|
-
var index$
|
|
35
|
-
var index$
|
|
36
|
-
var index$
|
|
37
|
-
var index$
|
|
31
|
+
var index$10 = require('./baseComponents/TabButtons/index.js');
|
|
32
|
+
var index$11 = require('./baseComponents/Table/index.js');
|
|
33
|
+
var index$1a = require('./baseComponents/TextareaField/index.js');
|
|
34
|
+
var index$18 = require('./baseComponents/TextPair/index.js');
|
|
35
|
+
var index$19 = require('./baseComponents/TextWithAction/index.js');
|
|
36
|
+
var index$1b = require('./baseComponents/Title/index.js');
|
|
37
|
+
var index$1c = require('./baseComponents/Typography/index.js');
|
|
38
38
|
var index$6 = require('./components/Calendar/index.js');
|
|
39
39
|
var index$7 = require('./components/Calendar/Body/index.js');
|
|
40
40
|
var index$g = require('./components/ErrorModal/index.js');
|
|
@@ -52,7 +52,7 @@ var index$x = require('./components/Messages/MsgBody/index.js');
|
|
|
52
52
|
var index$y = require('./components/Messages/MsgComponentHeader/index.js');
|
|
53
53
|
var index$z = require('./components/Messages/MsgSearch/index.js');
|
|
54
54
|
var index$v = require('./components/MobileDocumentViewer/index.js');
|
|
55
|
-
var index$
|
|
55
|
+
var index$1f = require('./components/Navigation/ViewToggle/index.js');
|
|
56
56
|
var index$B = require('./components/Notification/Item/index.js');
|
|
57
57
|
var index$C = require('./components/Notification/Wrapper/index.js');
|
|
58
58
|
var index$J = require('./components/Presale/index.js');
|
|
@@ -72,16 +72,18 @@ var index$I = require('./components/Services/PrecheckList/index.js');
|
|
|
72
72
|
var index$R = require('./components/Services/S022/S022OfferTable/index.js');
|
|
73
73
|
var index$V = require('./components/Services/SelectFieldModal/index.js');
|
|
74
74
|
var index$W = require('./components/Services/ServiceCardComponent/index.js');
|
|
75
|
-
var index
|
|
75
|
+
var index$$ = require('./components/Services/StepsLabel/index.js');
|
|
76
|
+
var index$1e = require('./components/Services/UsefulServiceCard/index.js');
|
|
77
|
+
var index$1g = require('./components/Services/YesNoQuestion/index.js');
|
|
76
78
|
var index$S = require('./components/ScreenMessage/index.js');
|
|
77
79
|
var index$Y = require('./components/SocialCard/index.js');
|
|
78
|
-
var index$
|
|
79
|
-
var index$
|
|
80
|
-
var index$
|
|
81
|
-
var index$
|
|
82
|
-
var index$
|
|
83
|
-
var index$
|
|
84
|
-
var index$
|
|
80
|
+
var index$1d = require('./components/UploadFile/index.js');
|
|
81
|
+
var index$12 = require('./baseComponents/Table/TableCell/index.js');
|
|
82
|
+
var index$13 = require('./baseComponents/Table/TableEmpty/index.js');
|
|
83
|
+
var index$14 = require('./baseComponents/Table/TableFooter/index.js');
|
|
84
|
+
var index$15 = require('./baseComponents/Table/TableHead/index.js');
|
|
85
|
+
var index$16 = require('./baseComponents/Table/TableHeadCell/index.js');
|
|
86
|
+
var index$17 = require('./baseComponents/Table/TableRow/index.js');
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
|
|
@@ -111,13 +113,13 @@ exports.SearchBar = index$T.SearchBar;
|
|
|
111
113
|
exports.SelectBoxButton = index$U.SelectBoxButton;
|
|
112
114
|
exports.StatusStepper = index$Z.StatusStepper;
|
|
113
115
|
exports.StatusText = index$_.StatusText;
|
|
114
|
-
exports.TabButtons = index
|
|
115
|
-
exports.Table = index$
|
|
116
|
-
exports.TextareaField = index$
|
|
117
|
-
exports.TextPair = index$
|
|
118
|
-
exports.TextWithAction = index$
|
|
119
|
-
exports.Title = index$
|
|
120
|
-
exports.Typography = index$
|
|
116
|
+
exports.TabButtons = index$10.TabButtons;
|
|
117
|
+
exports.Table = index$11.Table;
|
|
118
|
+
exports.TextareaField = index$1a.TextareaField;
|
|
119
|
+
exports.TextPair = index$18.TextPair;
|
|
120
|
+
exports.TextWithAction = index$19.TextWithAction;
|
|
121
|
+
exports.Title = index$1b.Title;
|
|
122
|
+
exports.Typography = index$1c.Typography;
|
|
121
123
|
exports.Calendar = index$6.Calendar;
|
|
122
124
|
exports.CalendarBody = index$7.CalendarBody;
|
|
123
125
|
exports.ErrorModal = index$g.ErrorModal;
|
|
@@ -135,7 +137,7 @@ exports.MsgBody = index$x.MsgBody;
|
|
|
135
137
|
exports.MsgComponentHeader = index$y.MsgComponentHeader;
|
|
136
138
|
exports.MsgSearch = index$z.MsgSearch;
|
|
137
139
|
exports.MobileDocumentViewer = index$v.MobileDocumentViewer;
|
|
138
|
-
exports.ViewToggle = index$
|
|
140
|
+
exports.ViewToggle = index$1f.ViewToggle;
|
|
139
141
|
exports.NotificationItem = index$B.NotificationItem;
|
|
140
142
|
exports.NotificationWrapper = index$C.NotificationWrapper;
|
|
141
143
|
exports.PresaleComponent = index$J.PresaleComponent;
|
|
@@ -155,14 +157,16 @@ exports.PrecheckList = index$I.PrecheckList;
|
|
|
155
157
|
exports.S022OfferTable = index$R.S022OfferTable;
|
|
156
158
|
exports.SelectFieldModal = index$V.SelectFieldModal;
|
|
157
159
|
exports.ServiceCardComponent = index$W.ServiceCardComponent;
|
|
158
|
-
exports.
|
|
160
|
+
exports.StepsLabel = index$$.StepsLabel;
|
|
161
|
+
exports.UsefulServiceCard = index$1e.UsefulServiceCard;
|
|
162
|
+
exports.YesNoQuestion = index$1g.YesNoQuestion;
|
|
159
163
|
exports.ScreenMessage = index$S.ScreenMessage;
|
|
160
164
|
exports.SocialCard = index$Y.SocialCard;
|
|
161
|
-
exports.UploadFile = index$
|
|
162
|
-
exports.TableCell = index$
|
|
163
|
-
exports.TableEmpty = index$
|
|
164
|
-
exports.TableFooter = index$
|
|
165
|
-
exports.TableHead = index$
|
|
166
|
-
exports.TableHeadCell = index$
|
|
167
|
-
exports.TableRow = index$
|
|
165
|
+
exports.UploadFile = index$1d.UploadFile;
|
|
166
|
+
exports.TableCell = index$12.TableCell;
|
|
167
|
+
exports.TableEmpty = index$13.TableEmpty;
|
|
168
|
+
exports.TableFooter = index$14.TableFooter;
|
|
169
|
+
exports.TableHead = index$15.TableHead;
|
|
170
|
+
exports.TableHeadCell = index$16.TableHeadCell;
|
|
171
|
+
exports.TableRow = index$17.TableRow;
|
|
168
172
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var css_248z = "h3.StepsLabel-module_title__Er-4w {\n display: inline-block;\n margin-bottom: 16px;\n color: var(--surface-accent);\n}\n";
|
|
2
|
+
var styles = {"title":"StepsLabel-module_title__Er-4w"};
|
|
3
|
+
function styleInject(css, options) {
|
|
4
|
+
if (typeof document === 'undefined') return;
|
|
5
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
6
|
+
const style = document.createElement('style');
|
|
7
|
+
style.type = 'text/css';
|
|
8
|
+
if (style.styleSheet) {
|
|
9
|
+
style.styleSheet.cssText = css;
|
|
10
|
+
} else {
|
|
11
|
+
style.appendChild(document.createTextNode(css));
|
|
12
|
+
}
|
|
13
|
+
head.appendChild(style);
|
|
14
|
+
}
|
|
15
|
+
styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
export { styles as default };
|
|
18
|
+
//# sourceMappingURL=StepsLabel.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepsLabel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Typography } from '../../../baseComponents/Typography/index.js';
|
|
3
|
+
import styles from './StepsLabel.module.css.js';
|
|
4
|
+
|
|
5
|
+
const StepsLabel = ({ label }) => (jsx(Typography, { tag: "span", fontClass: "subtitles2", className: styles.title, "data-testid": "StepsLabel_TITLE", children: label }));
|
|
6
|
+
|
|
7
|
+
export { StepsLabel };
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/StepsLabel/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAOO,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAoB,MACpDA,GAAA,CAAC,UAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,KAAK,iBACX,kBAAkB,EAAA,QAAA,EAE7B,KAAK,EAAA,CACK;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { i18n } from '../../../constants/i18n/index.js';
|
|
3
|
+
import { RadioGroup } from '../../../baseComponents/RadioGroup/index.js';
|
|
4
|
+
import { StepsLabel } from '../StepsLabel/index.js';
|
|
5
|
+
|
|
6
|
+
const langDic = i18n.YesNoQuestion;
|
|
7
|
+
const YesNoQuestion = ({ lang, name, question, answer, onChange, }) => (jsxs("div", { "data-testid": "YesNoQuestion_WRAPPER", children: [jsx(StepsLabel, { label: question }), jsx(RadioGroup, { name: name, direction: "horizontal", legend: question, radioGroupItems: [
|
|
8
|
+
{ value: "yes", label: langDic.yes[lang] },
|
|
9
|
+
{ value: "no", label: langDic.no[lang] },
|
|
10
|
+
], selectedOption: answer ?? "", setSelectedOption: (value) => {
|
|
11
|
+
onChange(value === "yes" ? "yes" : "no");
|
|
12
|
+
} })] }));
|
|
13
|
+
|
|
14
|
+
export { YesNoQuestion };
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/YesNoQuestion/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;AAeA,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa;MACrB,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,GACY,MACpBA,IAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,uBAAuB,EAAA,QAAA,EAAA,CACtCC,IAAC,UAAU,EAAA,EAAC,KAAK,EAAE,QAAQ,GAAI,EAC/BA,GAAA,CAAC,UAAU,EAAA,EACT,IAAI,EAAE,IAAI,EACV,SAAS,EAAC,YAAY,EACtB,MAAM,EAAE,QAAQ,EAChB,eAAe,EAAE;AACf,gBAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AAC1C,gBAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;aACzC,EACD,cAAc,EAAE,MAAM,IAAI,EAAE,EAC5B,iBAAiB,EAAE,CAAC,KAAK,KAAI;AAC3B,gBAAA,QAAQ,CAAC,KAAK,KAAK,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;YAC1C,CAAC,EAAA,CACD,CAAA,EAAA,CACE;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YesNoQuestion.js","sources":["../../../../../src/constants/i18n/Services/YesNoQuestion.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG;AAC3B,IAAA,GAAG,EAAE;AACH,QAAA,EAAE,EAAE,IAAI;AACR,QAAA,EAAE,EAAE,IAAI;AACR,QAAA,EAAE,EAAE,KAAK;AACV,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,EAAE,EAAE,IAAI;AACT,KAAA;;;;;"}
|
|
@@ -25,6 +25,7 @@ import { ConsentCheckbox } from './Services/ConsentCheckbox.js';
|
|
|
25
25
|
import { Feedback } from './Services/Feedback.js';
|
|
26
26
|
import { FileUpload } from './Services/FileUpload.js';
|
|
27
27
|
import { S022OfferTable } from './Services/S022/S022OfferTable.js';
|
|
28
|
+
import { YesNoQuestion } from './Services/YesNoQuestion.js';
|
|
28
29
|
import { Table } from './Table.js';
|
|
29
30
|
|
|
30
31
|
const i18n = {
|
|
@@ -56,6 +57,7 @@ const i18n = {
|
|
|
56
57
|
SearchBar,
|
|
57
58
|
ServiceDetails,
|
|
58
59
|
Table,
|
|
60
|
+
YesNoQuestion,
|
|
59
61
|
};
|
|
60
62
|
|
|
61
63
|
export { i18n };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BO,MAAM,IAAI,GAAG;IAClB,MAAM;IACN,QAAQ;IACR,MAAM;IACN,eAAe;IACf,cAAc;IACd,OAAO;IACP,QAAQ;IACR,KAAK;IACL,eAAe;IACf,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,UAAU;IACV,IAAI;IACJ,SAAS;IACT,SAAS;IACT,oBAAoB;IACpB,kBAAkB;IAElB,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,cAAc;IACd,aAAa;IACb,SAAS;IACT,cAAc;IACd,KAAK;IACL,aAAa;;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -70,7 +70,9 @@ export { PrecheckList } from './components/Services/PrecheckList/index.js';
|
|
|
70
70
|
export { S022OfferTable } from './components/Services/S022/S022OfferTable/index.js';
|
|
71
71
|
export { SelectFieldModal } from './components/Services/SelectFieldModal/index.js';
|
|
72
72
|
export { ServiceCardComponent } from './components/Services/ServiceCardComponent/index.js';
|
|
73
|
+
export { StepsLabel } from './components/Services/StepsLabel/index.js';
|
|
73
74
|
export { UsefulServiceCard } from './components/Services/UsefulServiceCard/index.js';
|
|
75
|
+
export { YesNoQuestion } from './components/Services/YesNoQuestion/index.js';
|
|
74
76
|
export { ScreenMessage } from './components/ScreenMessage/index.js';
|
|
75
77
|
export { SocialCard } from './components/SocialCard/index.js';
|
|
76
78
|
export { UploadFile } from './components/UploadFile/index.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ILangProps } from '../../../interfaces/common/index.js';
|
|
3
|
+
|
|
4
|
+
type TYesNoAnswer = "yes" | "no";
|
|
5
|
+
interface IYesNoQuestionProps extends ILangProps {
|
|
6
|
+
name: string;
|
|
7
|
+
question: string;
|
|
8
|
+
answer: TYesNoAnswer | null;
|
|
9
|
+
onChange: (answer: TYesNoAnswer) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const YesNoQuestion: ({ lang, name, question, answer, onChange, }: IYesNoQuestionProps) => react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { YesNoQuestion };
|
|
14
|
+
export type { IYesNoQuestionProps, TYesNoAnswer };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -67,7 +67,9 @@ export { IPrecheckListItem, IPrecheckListProps, PrecheckList, TPrecheckStatus }
|
|
|
67
67
|
export { IS022OfferTableProps, IS022OfferTableVacancy, S022OfferTable } from './components/Services/S022/S022OfferTable/index.js';
|
|
68
68
|
export { ISelectFieldModalProps, SelectFieldModal } from './components/Services/SelectFieldModal/index.js';
|
|
69
69
|
export { ServiceCardComponent } from './components/Services/ServiceCardComponent/index.js';
|
|
70
|
+
export { IStepsLabelProps, StepsLabel } from './components/Services/StepsLabel/index.js';
|
|
70
71
|
export { IUsefulServiceCardProps, UsefulServiceCard } from './components/Services/UsefulServiceCard/index.js';
|
|
72
|
+
export { IYesNoQuestionProps, TYesNoAnswer, YesNoQuestion } from './components/Services/YesNoQuestion/index.js';
|
|
71
73
|
export { IScreenMessageProps, ScreenMessage } from './components/ScreenMessage/index.js';
|
|
72
74
|
export { ISocialCardProps, SocialCard } from './components/SocialCard/index.js';
|
|
73
75
|
export { UploadFile } from './components/UploadFile/index.js';
|