@egov3/system-design 1.3.264 → 1.3.265
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/PrecheckList/PrecheckList.module.css.js +22 -0
- package/dist/cjs/components/Services/PrecheckList/PrecheckList.module.css.js.map +1 -0
- package/dist/cjs/components/Services/PrecheckList/index.js +34 -0
- package/dist/cjs/components/Services/PrecheckList/index.js.map +1 -0
- package/dist/cjs/index.js +70 -68
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Services/PrecheckList/PrecheckList.module.css.js +18 -0
- package/dist/esm/components/Services/PrecheckList/PrecheckList.module.css.js.map +1 -0
- package/dist/esm/components/Services/PrecheckList/index.js +32 -0
- package/dist/esm/components/Services/PrecheckList/index.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/Services/PrecheckList/index.d.ts +16 -0
- package/dist/types/index.d.ts +1 -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 = ".PrecheckList-module_precheckWrapper__CAweE {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\n.PrecheckList-module_checkList__hOcuV {\n display: flex;\n flex-direction: column;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.PrecheckList-module_checkItem__z8Cza {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 2px 0;\n}\n\n.PrecheckList-module_checkIcon__S5cMr {\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n}\n\n.PrecheckList-module_checkIconInProgress__t-U5o {\n color: var(--icon-secondary-color);\n animation: PrecheckList-module_spin__4kFIS 1s linear infinite;\n}\n\n@keyframes PrecheckList-module_spin__4kFIS {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\n.PrecheckList-module_checkIconPassed__d1Yxc {\n color: var(--icon-success);\n}\n\n.PrecheckList-module_checkIconFailed__M4hxx {\n color: var(--icon-error-color);\n}\n\n.PrecheckList-module_checkText__yJp5g {\n display: flex;\n flex-direction: column;\n padding: 8px 0;\n}\n\n.PrecheckList-module_checkStatusPassed__1ZVli {\n color: var(--text-success);\n}\n\n.PrecheckList-module_checkStatusFailed__GG1Qd {\n color: var(--text-error);\n}\n\n.PrecheckList-module_secondaryText__UZEhk {\n color: var(--text-secondary);\n white-space: pre-line;\n}\n";
|
|
6
|
+
var styles = {"precheckWrapper":"PrecheckList-module_precheckWrapper__CAweE","checkList":"PrecheckList-module_checkList__hOcuV","checkItem":"PrecheckList-module_checkItem__z8Cza","checkIcon":"PrecheckList-module_checkIcon__S5cMr","checkIconInProgress":"PrecheckList-module_checkIconInProgress__t-U5o","checkIconPassed":"PrecheckList-module_checkIconPassed__d1Yxc","checkIconFailed":"PrecheckList-module_checkIconFailed__M4hxx","checkText":"PrecheckList-module_checkText__yJp5g","checkStatusPassed":"PrecheckList-module_checkStatusPassed__1ZVli","checkStatusFailed":"PrecheckList-module_checkStatusFailed__GG1Qd","secondaryText":"PrecheckList-module_secondaryText__UZEhk"};
|
|
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=PrecheckList.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrecheckList.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var Check = require('@egov3/graphics/Basic/Check');
|
|
5
|
+
var Close = require('@egov3/graphics/General/Close');
|
|
6
|
+
var Loader = require('@egov3/graphics/General/Loader');
|
|
7
|
+
var joinClasses = require('../../../utils/joinClasses.js');
|
|
8
|
+
var index = require('../../../baseComponents/Typography/index.js');
|
|
9
|
+
var PrecheckList_module = require('./PrecheckList.module.css.js');
|
|
10
|
+
|
|
11
|
+
const statusView = {
|
|
12
|
+
PASSED: {
|
|
13
|
+
Icon: Check.CheckIcon,
|
|
14
|
+
iconClassName: PrecheckList_module.default.checkIconPassed,
|
|
15
|
+
textClassName: PrecheckList_module.default.checkStatusPassed,
|
|
16
|
+
},
|
|
17
|
+
FAILED: {
|
|
18
|
+
Icon: Close.CloseIcon,
|
|
19
|
+
iconClassName: PrecheckList_module.default.checkIconFailed,
|
|
20
|
+
textClassName: PrecheckList_module.default.checkStatusFailed,
|
|
21
|
+
},
|
|
22
|
+
IN_PROGRESS: {
|
|
23
|
+
Icon: Loader.LoaderIcon,
|
|
24
|
+
iconClassName: PrecheckList_module.default.checkIconInProgress,
|
|
25
|
+
textClassName: PrecheckList_module.default.secondaryText,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const PrecheckList = ({ checks, hint }) => (jsxRuntime.jsxs("div", { className: PrecheckList_module.default.precheckWrapper, "data-testid": "PrecheckList_WRAPPER", children: [jsxRuntime.jsx("ul", { className: PrecheckList_module.default.checkList, children: checks.map(({ status, statusText, title }) => {
|
|
29
|
+
const { Icon, iconClassName, textClassName } = statusView[status];
|
|
30
|
+
return (jsxRuntime.jsxs("li", { className: PrecheckList_module.default.checkItem, "data-testid": "PrecheckList_CHECK_ITEM", children: [jsxRuntime.jsx(Icon, { "aria-hidden": "true", className: joinClasses.joinClasses(PrecheckList_module.default.checkIcon, iconClassName), fill: "currentColor" }), jsxRuntime.jsxs("div", { className: PrecheckList_module.default.checkText, "data-testid": "PrecheckList_CHECK_TEXT", children: [jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "body2Regular", "data-testid": "PrecheckList_CHECK_TITLE", children: title }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "caption1Regular", className: textClassName, "data-testid": "PrecheckList_CHECK_STATUS", children: statusText })] })] }, title));
|
|
31
|
+
}) }), jsxRuntime.jsx(index.Typography, { tag: "p", fontClass: "caption1Regular", className: PrecheckList_module.default.secondaryText, "data-testid": "PrecheckList_HINT", children: hint })] }));
|
|
32
|
+
|
|
33
|
+
exports.PrecheckList = PrecheckList;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PrecheckList/index.tsx"],"sourcesContent":[null],"names":["CheckIcon","styles","CloseIcon","LoaderIcon","_jsxs","_jsx","joinClasses","Typography"],"mappings":";;;;;;;;;;AAsBA,MAAM,UAAU,GAAG;AACjB,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAEA,eAAS;QACf,aAAa,EAAEC,2BAAM,CAAC,eAAe;QACrC,aAAa,EAAEA,2BAAM,CAAC,iBAAiB;AACxC,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAEC,eAAS;QACf,aAAa,EAAED,2BAAM,CAAC,eAAe;QACrC,aAAa,EAAEA,2BAAM,CAAC,iBAAiB;AACxC,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAEE,iBAAU;QAChB,aAAa,EAAEF,2BAAM,CAAC,mBAAmB;QACzC,aAAa,EAAEA,2BAAM,CAAC,aAAa;AACpC,KAAA;CACO;AAEH,MAAM,YAAY,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAsB,MAC/DG,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEH,2BAAM,CAAC,eAAe,EAAA,aAAA,EAAc,sBAAsB,EAAA,QAAA,EAAA,CACxEI,cAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAEJ,2BAAM,CAAC,SAAS,EAAA,QAAA,EAC5B,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAI;AAC5C,gBAAA,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC;AAEjE,gBAAA,QACEG,eAAA,CAAA,IAAA,EAAA,EAEE,SAAS,EAAEH,2BAAM,CAAC,SAAS,EAAA,aAAA,EACf,yBAAyB,EAAA,QAAA,EAAA,CAErCI,eAAC,IAAI,EAAA,EAAA,aAAA,EACS,MAAM,EAClB,SAAS,EAAEC,uBAAW,CAACL,2BAAM,CAAC,SAAS,EAAE,aAAa,CAAC,EACvD,IAAI,EAAC,cAAc,EAAA,CACnB,EACFG,yBACE,SAAS,EAAEH,2BAAM,CAAC,SAAS,iBACf,yBAAyB,EAAA,QAAA,EAAA,CAErCI,cAAA,CAACE,gBAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,cAAc,EAAA,aAAA,EACZ,0BAA0B,YAErC,KAAK,EAAA,CACK,EACbF,cAAA,CAACE,gBAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,iBAAiB,EAC3B,SAAS,EAAE,aAAa,EAAA,aAAA,EACZ,2BAA2B,EAAA,QAAA,EAEtC,UAAU,EAAA,CACA,CAAA,EAAA,CACT,KA5BD,KAAK,CA6BP;YAET,CAAC,CAAC,EAAA,CACC,EACLF,cAAA,CAACE,gBAAU,EAAA,EACT,GAAG,EAAC,GAAG,EACP,SAAS,EAAC,iBAAiB,EAC3B,SAAS,EAAEN,2BAAM,CAAC,aAAa,EAAA,aAAA,EACnB,mBAAmB,EAAA,QAAA,EAE9B,IAAI,EAAA,CACM,CAAA,EAAA,CACT;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -20,21 +20,21 @@ var index$C = require('./baseComponents/Overlay/index.js');
|
|
|
20
20
|
var index$D = require('./baseComponents/PageSizeSelector/index.js');
|
|
21
21
|
var index$E = require('./baseComponents/Pagination/index.js');
|
|
22
22
|
var index$G = require('./baseComponents/PhotoCutter/index.js');
|
|
23
|
-
var index$
|
|
23
|
+
var index$L = require('./baseComponents/ProgressBar/index.js');
|
|
24
24
|
var index$b = require('./baseComponents/RadioGroup/index.js');
|
|
25
|
-
var index$
|
|
26
|
-
var index$
|
|
27
|
-
var index$
|
|
28
|
-
var index$
|
|
29
|
-
var index$
|
|
30
|
-
var index$
|
|
31
|
-
var index$
|
|
32
|
-
var index
|
|
33
|
-
var index$
|
|
34
|
-
var index$
|
|
35
|
-
var index$
|
|
36
|
-
var index$
|
|
37
|
-
var index$
|
|
25
|
+
var index$N = require('./baseComponents/RadioToggle/index.js');
|
|
26
|
+
var index$O = require('./baseComponents/Responses/index.js');
|
|
27
|
+
var index$S = require('./baseComponents/SearchBar/index.js');
|
|
28
|
+
var index$T = require('./baseComponents/SelectBoxButton/index.js');
|
|
29
|
+
var index$Y = require('./baseComponents/StatusStepper/index.js');
|
|
30
|
+
var index$Z = require('./baseComponents/StatusText/index.js');
|
|
31
|
+
var index$_ = require('./baseComponents/TabButtons/index.js');
|
|
32
|
+
var index$$ = require('./baseComponents/Table/index.js');
|
|
33
|
+
var index$18 = require('./baseComponents/TextareaField/index.js');
|
|
34
|
+
var index$16 = require('./baseComponents/TextPair/index.js');
|
|
35
|
+
var index$17 = require('./baseComponents/TextWithAction/index.js');
|
|
36
|
+
var index$19 = require('./baseComponents/Title/index.js');
|
|
37
|
+
var index$1a = 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');
|
|
@@ -51,35 +51,36 @@ var index$k = require('./components/Messages/HelpNotificationItem/index.js');
|
|
|
51
51
|
var index$w = require('./components/Messages/MsgBody/index.js');
|
|
52
52
|
var index$x = require('./components/Messages/MsgComponentHeader/index.js');
|
|
53
53
|
var index$y = require('./components/Messages/MsgSearch/index.js');
|
|
54
|
-
var index$
|
|
54
|
+
var index$1d = require('./components/Navigation/ViewToggle/index.js');
|
|
55
55
|
var index$A = require('./components/Notification/Item/index.js');
|
|
56
56
|
var index$B = require('./components/Notification/Wrapper/index.js');
|
|
57
|
-
var index$
|
|
58
|
-
var index$
|
|
57
|
+
var index$I = require('./components/Presale/index.js');
|
|
58
|
+
var index$J = require('./components/PrivacyModal/index.js');
|
|
59
59
|
var index$c = require('./components/Profile/DocCard/index.js');
|
|
60
60
|
var index$n = require('./components/Profile/IconToggleItem/index.js');
|
|
61
|
-
var index$
|
|
62
|
-
var index$
|
|
63
|
-
var index$
|
|
64
|
-
var index$
|
|
61
|
+
var index$K = require('./components/Profile/ProfileHealthGeneral/index.js');
|
|
62
|
+
var index$P = require('./components/Profile/RightMenuSectionItem/index.js');
|
|
63
|
+
var index$W = require('./components/Profile/SetUpAccess/index.js');
|
|
64
|
+
var index$M = require('./components/QRAppButton/index.js');
|
|
65
65
|
var index$a = require('./components/Services/ConsentCheckbox/index.js');
|
|
66
66
|
var index$h = require('./components/Services/Feedback/index.js');
|
|
67
67
|
var index$i = require('./components/Services/FileForUpload/index.js');
|
|
68
68
|
var index$z = require('./components/Services/NextStepComponent/index.js');
|
|
69
69
|
var index$F = require('./components/Services/PersonalIDTemplate/index.js');
|
|
70
|
-
var index$
|
|
71
|
-
var index$
|
|
72
|
-
var index$U = require('./components/Services/
|
|
73
|
-
var index$
|
|
74
|
-
var index$
|
|
75
|
-
var index$
|
|
76
|
-
var index$
|
|
77
|
-
var index
|
|
78
|
-
var index$10 = require('./baseComponents/Table/
|
|
79
|
-
var index$11 = require('./baseComponents/Table/
|
|
80
|
-
var index$12 = require('./baseComponents/Table/
|
|
81
|
-
var index$13 = require('./baseComponents/Table/
|
|
82
|
-
var index$14 = require('./baseComponents/Table/
|
|
70
|
+
var index$H = require('./components/Services/PrecheckList/index.js');
|
|
71
|
+
var index$Q = require('./components/Services/S022/S022OfferTable/index.js');
|
|
72
|
+
var index$U = require('./components/Services/SelectFieldModal/index.js');
|
|
73
|
+
var index$V = require('./components/Services/ServiceCardComponent/index.js');
|
|
74
|
+
var index$1c = require('./components/Services/UsefulServiceCard/index.js');
|
|
75
|
+
var index$R = require('./components/ScreenMessage/index.js');
|
|
76
|
+
var index$X = require('./components/SocialCard/index.js');
|
|
77
|
+
var index$1b = require('./components/UploadFile/index.js');
|
|
78
|
+
var index$10 = require('./baseComponents/Table/TableCell/index.js');
|
|
79
|
+
var index$11 = require('./baseComponents/Table/TableEmpty/index.js');
|
|
80
|
+
var index$12 = require('./baseComponents/Table/TableFooter/index.js');
|
|
81
|
+
var index$13 = require('./baseComponents/Table/TableHead/index.js');
|
|
82
|
+
var index$14 = require('./baseComponents/Table/TableHeadCell/index.js');
|
|
83
|
+
var index$15 = require('./baseComponents/Table/TableRow/index.js');
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
|
|
@@ -100,22 +101,22 @@ exports.Overlay = index$C.Overlay;
|
|
|
100
101
|
exports.PageSizeSelector = index$D.PageSizeSelector;
|
|
101
102
|
exports.Pagination = index$E.Pagination;
|
|
102
103
|
exports.PhotoCutter = index$G.PhotoCutter;
|
|
103
|
-
exports.ProgressBar = index$
|
|
104
|
+
exports.ProgressBar = index$L.ProgressBar;
|
|
104
105
|
exports.CustomRadioButton = index$b.CustomRadioButton;
|
|
105
106
|
exports.RadioGroup = index$b.RadioGroup;
|
|
106
|
-
exports.RadioToggle = index$
|
|
107
|
-
exports.Responses = index$
|
|
108
|
-
exports.SearchBar = index$
|
|
109
|
-
exports.SelectBoxButton = index$
|
|
110
|
-
exports.StatusStepper = index$
|
|
111
|
-
exports.StatusText = index$
|
|
112
|
-
exports.TabButtons = index$
|
|
113
|
-
exports.Table = index
|
|
114
|
-
exports.TextareaField = index$
|
|
115
|
-
exports.TextPair = index$
|
|
116
|
-
exports.TextWithAction = index$
|
|
117
|
-
exports.Title = index$
|
|
118
|
-
exports.Typography = index$
|
|
107
|
+
exports.RadioToggle = index$N.RadioToggle;
|
|
108
|
+
exports.Responses = index$O.Responses;
|
|
109
|
+
exports.SearchBar = index$S.SearchBar;
|
|
110
|
+
exports.SelectBoxButton = index$T.SelectBoxButton;
|
|
111
|
+
exports.StatusStepper = index$Y.StatusStepper;
|
|
112
|
+
exports.StatusText = index$Z.StatusText;
|
|
113
|
+
exports.TabButtons = index$_.TabButtons;
|
|
114
|
+
exports.Table = index$$.Table;
|
|
115
|
+
exports.TextareaField = index$18.TextareaField;
|
|
116
|
+
exports.TextPair = index$16.TextPair;
|
|
117
|
+
exports.TextWithAction = index$17.TextWithAction;
|
|
118
|
+
exports.Title = index$19.Title;
|
|
119
|
+
exports.Typography = index$1a.Typography;
|
|
119
120
|
exports.Calendar = index$6.Calendar;
|
|
120
121
|
exports.CalendarBody = index$7.CalendarBody;
|
|
121
122
|
exports.ErrorModal = index$g.ErrorModal;
|
|
@@ -132,33 +133,34 @@ exports.HelpNotificationItem = index$k.HelpNotificationItem;
|
|
|
132
133
|
exports.MsgBody = index$w.MsgBody;
|
|
133
134
|
exports.MsgComponentHeader = index$x.MsgComponentHeader;
|
|
134
135
|
exports.MsgSearch = index$y.MsgSearch;
|
|
135
|
-
exports.ViewToggle = index$
|
|
136
|
+
exports.ViewToggle = index$1d.ViewToggle;
|
|
136
137
|
exports.NotificationItem = index$A.NotificationItem;
|
|
137
138
|
exports.NotificationWrapper = index$B.NotificationWrapper;
|
|
138
|
-
exports.PresaleComponent = index$
|
|
139
|
-
exports.PrivacyModal = index$
|
|
139
|
+
exports.PresaleComponent = index$I.PresaleComponent;
|
|
140
|
+
exports.PrivacyModal = index$J.PrivacyModal;
|
|
140
141
|
exports.DocCard = index$c.DocCard;
|
|
141
142
|
exports.IconToggleItem = index$n.IconToggleItem;
|
|
142
|
-
exports.ProfileHealthGeneral = index$
|
|
143
|
-
exports.RightMenuSectionItem = index$
|
|
144
|
-
exports.SetUpAccess = index$
|
|
145
|
-
exports.QRAppButton = index$
|
|
143
|
+
exports.ProfileHealthGeneral = index$K.ProfileHealthGeneral;
|
|
144
|
+
exports.RightMenuSectionItem = index$P.RightMenuSectionItem;
|
|
145
|
+
exports.SetUpAccess = index$W.SetUpAccess;
|
|
146
|
+
exports.QRAppButton = index$M.QRAppButton;
|
|
146
147
|
exports.ConsentCheckbox = index$a.ConsentCheckbox;
|
|
147
148
|
exports.Feedback = index$h.Feedback;
|
|
148
149
|
exports.FileForUpload = index$i.FileForUpload;
|
|
149
150
|
exports.NextStepComponent = index$z.NextStepComponent;
|
|
150
151
|
exports.PersonalIDTemplate = index$F.PersonalIDTemplate;
|
|
151
|
-
exports.
|
|
152
|
-
exports.
|
|
153
|
-
exports.
|
|
154
|
-
exports.
|
|
155
|
-
exports.
|
|
156
|
-
exports.
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
159
|
-
exports.
|
|
160
|
-
exports.
|
|
161
|
-
exports.
|
|
162
|
-
exports.
|
|
163
|
-
exports.
|
|
152
|
+
exports.PrecheckList = index$H.PrecheckList;
|
|
153
|
+
exports.S022OfferTable = index$Q.S022OfferTable;
|
|
154
|
+
exports.SelectFieldModal = index$U.SelectFieldModal;
|
|
155
|
+
exports.ServiceCardComponent = index$V.ServiceCardComponent;
|
|
156
|
+
exports.UsefulServiceCard = index$1c.UsefulServiceCard;
|
|
157
|
+
exports.ScreenMessage = index$R.ScreenMessage;
|
|
158
|
+
exports.SocialCard = index$X.SocialCard;
|
|
159
|
+
exports.UploadFile = index$1b.UploadFile;
|
|
160
|
+
exports.TableCell = index$10.TableCell;
|
|
161
|
+
exports.TableEmpty = index$11.TableEmpty;
|
|
162
|
+
exports.TableFooter = index$12.TableFooter;
|
|
163
|
+
exports.TableHead = index$13.TableHead;
|
|
164
|
+
exports.TableHeadCell = index$14.TableHeadCell;
|
|
165
|
+
exports.TableRow = index$15.TableRow;
|
|
164
166
|
//# 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 = ".PrecheckList-module_precheckWrapper__CAweE {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\n.PrecheckList-module_checkList__hOcuV {\n display: flex;\n flex-direction: column;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.PrecheckList-module_checkItem__z8Cza {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 2px 0;\n}\n\n.PrecheckList-module_checkIcon__S5cMr {\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n}\n\n.PrecheckList-module_checkIconInProgress__t-U5o {\n color: var(--icon-secondary-color);\n animation: PrecheckList-module_spin__4kFIS 1s linear infinite;\n}\n\n@keyframes PrecheckList-module_spin__4kFIS {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\n.PrecheckList-module_checkIconPassed__d1Yxc {\n color: var(--icon-success);\n}\n\n.PrecheckList-module_checkIconFailed__M4hxx {\n color: var(--icon-error-color);\n}\n\n.PrecheckList-module_checkText__yJp5g {\n display: flex;\n flex-direction: column;\n padding: 8px 0;\n}\n\n.PrecheckList-module_checkStatusPassed__1ZVli {\n color: var(--text-success);\n}\n\n.PrecheckList-module_checkStatusFailed__GG1Qd {\n color: var(--text-error);\n}\n\n.PrecheckList-module_secondaryText__UZEhk {\n color: var(--text-secondary);\n white-space: pre-line;\n}\n";
|
|
2
|
+
var styles = {"precheckWrapper":"PrecheckList-module_precheckWrapper__CAweE","checkList":"PrecheckList-module_checkList__hOcuV","checkItem":"PrecheckList-module_checkItem__z8Cza","checkIcon":"PrecheckList-module_checkIcon__S5cMr","checkIconInProgress":"PrecheckList-module_checkIconInProgress__t-U5o","checkIconPassed":"PrecheckList-module_checkIconPassed__d1Yxc","checkIconFailed":"PrecheckList-module_checkIconFailed__M4hxx","checkText":"PrecheckList-module_checkText__yJp5g","checkStatusPassed":"PrecheckList-module_checkStatusPassed__1ZVli","checkStatusFailed":"PrecheckList-module_checkStatusFailed__GG1Qd","secondaryText":"PrecheckList-module_secondaryText__UZEhk"};
|
|
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=PrecheckList.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrecheckList.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { CheckIcon } from '@egov3/graphics/Basic/Check';
|
|
3
|
+
import { CloseIcon } from '@egov3/graphics/General/Close';
|
|
4
|
+
import { LoaderIcon } from '@egov3/graphics/General/Loader';
|
|
5
|
+
import { joinClasses } from '../../../utils/joinClasses.js';
|
|
6
|
+
import { Typography } from '../../../baseComponents/Typography/index.js';
|
|
7
|
+
import styles from './PrecheckList.module.css.js';
|
|
8
|
+
|
|
9
|
+
const statusView = {
|
|
10
|
+
PASSED: {
|
|
11
|
+
Icon: CheckIcon,
|
|
12
|
+
iconClassName: styles.checkIconPassed,
|
|
13
|
+
textClassName: styles.checkStatusPassed,
|
|
14
|
+
},
|
|
15
|
+
FAILED: {
|
|
16
|
+
Icon: CloseIcon,
|
|
17
|
+
iconClassName: styles.checkIconFailed,
|
|
18
|
+
textClassName: styles.checkStatusFailed,
|
|
19
|
+
},
|
|
20
|
+
IN_PROGRESS: {
|
|
21
|
+
Icon: LoaderIcon,
|
|
22
|
+
iconClassName: styles.checkIconInProgress,
|
|
23
|
+
textClassName: styles.secondaryText,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const PrecheckList = ({ checks, hint }) => (jsxs("div", { className: styles.precheckWrapper, "data-testid": "PrecheckList_WRAPPER", children: [jsx("ul", { className: styles.checkList, children: checks.map(({ status, statusText, title }) => {
|
|
27
|
+
const { Icon, iconClassName, textClassName } = statusView[status];
|
|
28
|
+
return (jsxs("li", { className: styles.checkItem, "data-testid": "PrecheckList_CHECK_ITEM", children: [jsx(Icon, { "aria-hidden": "true", className: joinClasses(styles.checkIcon, iconClassName), fill: "currentColor" }), jsxs("div", { className: styles.checkText, "data-testid": "PrecheckList_CHECK_TEXT", children: [jsx(Typography, { tag: "span", fontClass: "body2Regular", "data-testid": "PrecheckList_CHECK_TITLE", children: title }), jsx(Typography, { tag: "span", fontClass: "caption1Regular", className: textClassName, "data-testid": "PrecheckList_CHECK_STATUS", children: statusText })] })] }, title));
|
|
29
|
+
}) }), jsx(Typography, { tag: "p", fontClass: "caption1Regular", className: styles.secondaryText, "data-testid": "PrecheckList_HINT", children: hint })] }));
|
|
30
|
+
|
|
31
|
+
export { PrecheckList };
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PrecheckList/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAsBA,MAAM,UAAU,GAAG;AACjB,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,MAAM,CAAC,eAAe;QACrC,aAAa,EAAE,MAAM,CAAC,iBAAiB;AACxC,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,MAAM,CAAC,eAAe;QACrC,aAAa,EAAE,MAAM,CAAC,iBAAiB;AACxC,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,MAAM,CAAC,mBAAmB;QACzC,aAAa,EAAE,MAAM,CAAC,aAAa;AACpC,KAAA;CACO;AAEH,MAAM,YAAY,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAsB,MAC/DA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,eAAe,EAAA,aAAA,EAAc,sBAAsB,EAAA,QAAA,EAAA,CACxEC,GAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,QAAA,EAC5B,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAI;AAC5C,gBAAA,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC;AAEjE,gBAAA,QACED,IAAA,CAAA,IAAA,EAAA,EAEE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,aAAA,EACf,yBAAyB,EAAA,QAAA,EAAA,CAErCC,IAAC,IAAI,EAAA,EAAA,aAAA,EACS,MAAM,EAClB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,EACvD,IAAI,EAAC,cAAc,EAAA,CACnB,EACFD,cACE,SAAS,EAAE,MAAM,CAAC,SAAS,iBACf,yBAAyB,EAAA,QAAA,EAAA,CAErCC,GAAA,CAAC,UAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,cAAc,EAAA,aAAA,EACZ,0BAA0B,YAErC,KAAK,EAAA,CACK,EACbA,GAAA,CAAC,UAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,iBAAiB,EAC3B,SAAS,EAAE,aAAa,EAAA,aAAA,EACZ,2BAA2B,EAAA,QAAA,EAEtC,UAAU,EAAA,CACA,CAAA,EAAA,CACT,KA5BD,KAAK,CA6BP;YAET,CAAC,CAAC,EAAA,CACC,EACLA,GAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAC,GAAG,EACP,SAAS,EAAC,iBAAiB,EAC3B,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,aAAA,EACnB,mBAAmB,EAAA,QAAA,EAE9B,IAAI,EAAA,CACM,CAAA,EAAA,CACT;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export { Feedback } from './components/Services/Feedback/index.js';
|
|
|
65
65
|
export { FileForUpload } from './components/Services/FileForUpload/index.js';
|
|
66
66
|
export { NextStepComponent } from './components/Services/NextStepComponent/index.js';
|
|
67
67
|
export { PersonalIDTemplate } from './components/Services/PersonalIDTemplate/index.js';
|
|
68
|
+
export { PrecheckList } from './components/Services/PrecheckList/index.js';
|
|
68
69
|
export { S022OfferTable } from './components/Services/S022/S022OfferTable/index.js';
|
|
69
70
|
export { SelectFieldModal } from './components/Services/SelectFieldModal/index.js';
|
|
70
71
|
export { ServiceCardComponent } from './components/Services/ServiceCardComponent/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,16 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type TPrecheckStatus = "IN_PROGRESS" | "PASSED" | "FAILED";
|
|
4
|
+
interface IPrecheckListItem {
|
|
5
|
+
status: TPrecheckStatus;
|
|
6
|
+
statusText: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
interface IPrecheckListProps {
|
|
10
|
+
checks: IPrecheckListItem[];
|
|
11
|
+
hint: string;
|
|
12
|
+
}
|
|
13
|
+
declare const PrecheckList: ({ checks, hint }: IPrecheckListProps) => react.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { PrecheckList };
|
|
16
|
+
export type { IPrecheckListItem, IPrecheckListProps, TPrecheckStatus };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export { Feedback, IFeedbackProps } from './components/Services/Feedback/index.j
|
|
|
62
62
|
export { FileForUpload, IFileForUploadProps } from './components/Services/FileForUpload/index.js';
|
|
63
63
|
export { INextStepComponentProps, NextStepComponent } from './components/Services/NextStepComponent/index.js';
|
|
64
64
|
export { PersonalIDTemplate } from './components/Services/PersonalIDTemplate/index.js';
|
|
65
|
+
export { IPrecheckListItem, IPrecheckListProps, PrecheckList, TPrecheckStatus } from './components/Services/PrecheckList/index.js';
|
|
65
66
|
export { IS022OfferTableProps, IS022OfferTableVacancy, S022OfferTable } from './components/Services/S022/S022OfferTable/index.js';
|
|
66
67
|
export { ISelectFieldModalProps, SelectFieldModal } from './components/Services/SelectFieldModal/index.js';
|
|
67
68
|
export { ServiceCardComponent } from './components/Services/ServiceCardComponent/index.js';
|