rbro-tat-uds 2.2.22 → 2.2.24
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/build/cjs/components/CityPicker/cities-extended.cjs +0 -4
- package/build/cjs/components/ConfigurationSaveInfo/ConfigurationSaveInfo.cjs +1 -1
- package/build/cjs/components/PropunereUniqaProtect/PropunereUniqaProtect.cjs +389 -0
- package/build/cjs/components/PropunereUniqaProtect/index.cjs +12 -0
- package/build/cjs/components/index.cjs +2 -0
- package/build/cjs/index.cjs +403 -32
- package/build/esm/components/CityPicker/cities-extended.js +0 -4
- package/build/esm/components/ConfigurationSaveInfo/ConfigurationSaveInfo.js +1 -1
- package/build/esm/components/PropunereUniqaProtect/PropunereUniqaProtect.js +385 -0
- package/build/esm/components/PropunereUniqaProtect/index.js +8 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/index.js +403 -33
- package/build/types/components/PropunereUniqaProtect/PropunereUniqaProtect.d.ts +30 -0
- package/build/types/components/PropunereUniqaProtect/index.d.ts +6 -0
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13892,10 +13892,6 @@ const cities_extended = [
|
|
|
13892
13892
|
{
|
|
13893
13893
|
title: "Bucuresti",
|
|
13894
13894
|
localitati: [
|
|
13895
|
-
{
|
|
13896
|
-
title: "Municipiul Bucuresti",
|
|
13897
|
-
clasificare: "3"
|
|
13898
|
-
},
|
|
13899
13895
|
{
|
|
13900
13896
|
title: "Sectorul 1",
|
|
13901
13897
|
clasificare: "3"
|
|
@@ -62,7 +62,7 @@ const ConfigurationSaveInfo = ({
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
64
64
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
65
|
-
isSimulator ? "
|
|
65
|
+
isSimulator ? "Simulare" : "Configuratie",
|
|
66
66
|
" din data"
|
|
67
67
|
] }),
|
|
68
68
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: date.length ? date : "N/A" })
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
var utils = require('../../utils');
|
|
10
|
+
var React = require('react');
|
|
11
|
+
var styled = require('styled-components');
|
|
12
|
+
var IconButton = require('../IconButton/IconButton.cjs');
|
|
13
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
14
|
+
|
|
15
|
+
const PropunereUniqaProtectStyled = styled.div`
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
border: 1px solid
|
|
18
|
+
${({ $featured, $selected }) => $selected ? utils.colors.purple_500 : $featured ? utils.colors.accent_600 : utils.colors.gray_200};
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
min-height: ${({ $hideButton }) => $hideButton ? "294px" : "334px"};
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
${(props) => !props.$empty ? styled.css`
|
|
26
|
+
outline: ${props.$featured ? `3px solid ${utils.colors.accent_300}` : "none"};
|
|
27
|
+
|
|
28
|
+
& > div:first-of-type {
|
|
29
|
+
& > div:first-child {
|
|
30
|
+
padding: 6px 6px 0px 16px;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
gap: 8px;
|
|
35
|
+
background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
|
|
36
|
+
|
|
37
|
+
& > span {
|
|
38
|
+
font-size: 18px;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 120%;
|
|
41
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.purple_600};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
& > div:nth-child(2) {
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: stretch;
|
|
49
|
+
height: 80px;
|
|
50
|
+
|
|
51
|
+
& > div:first-of-type {
|
|
52
|
+
padding: 8px 4px 12px 16px;
|
|
53
|
+
flex: 1;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 2px;
|
|
58
|
+
background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
|
|
59
|
+
|
|
60
|
+
& > div {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: flex-start;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
|
|
65
|
+
& > svg {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& > span:first-of-type {
|
|
70
|
+
flex: 1;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: ${({ $includePad }) => $includePad ? 700 : 400};
|
|
73
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& > span {
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
font-weight: 700;
|
|
80
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
& > div:nth-of-type(2) {
|
|
85
|
+
padding: 8px 16px 12px 4px;
|
|
86
|
+
flex: 1;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: 2px;
|
|
91
|
+
background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
|
|
92
|
+
|
|
93
|
+
& > span:first-of-type {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
font-weight: ${({ $includePad }) => $includePad ? 700 : 400};
|
|
96
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& > span:nth-of-type(2) {
|
|
100
|
+
font-size: 20px;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& > div:last-child {
|
|
108
|
+
display: flex;
|
|
109
|
+
border-top: 1px solid ${utils.colors.gray_200};
|
|
110
|
+
border-bottom: 1px solid ${utils.colors.gray_200};
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: stretch;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
|
|
115
|
+
& > div:first-of-type {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
flex: 1;
|
|
118
|
+
height: 58px;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: flex-start;
|
|
121
|
+
padding: 12px 16px;
|
|
122
|
+
gap: 8px;
|
|
123
|
+
border-right: 0.5px solid ${utils.colors.gray_200};
|
|
124
|
+
background-color: ${props.$refused ? utils.colors.gray_60 : props.$featured ? utils.colors.white : utils.colors.gray_30};
|
|
125
|
+
|
|
126
|
+
& > div {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
gap: 2px;
|
|
130
|
+
|
|
131
|
+
& > div:first-of-type {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 4px;
|
|
135
|
+
|
|
136
|
+
& > span:first-of-type {
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
font-weight: 400;
|
|
139
|
+
line-height: 120%;
|
|
140
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& > span {
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
line-height: 120%;
|
|
148
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& > div:last-of-type {
|
|
154
|
+
box-sizing: border-box;
|
|
155
|
+
flex: 1;
|
|
156
|
+
height: 58px;
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: flex-start;
|
|
159
|
+
padding: 12px 16px;
|
|
160
|
+
gap: 8px;
|
|
161
|
+
border-left: 0.5px solid ${utils.colors.gray_200};
|
|
162
|
+
background-color: ${(props2) => props2.$refused ? utils.colors.gray_60 : utils.colors.gray_30};
|
|
163
|
+
|
|
164
|
+
& > div {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
gap: 2px;
|
|
168
|
+
|
|
169
|
+
& > span:first-of-type {
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
font-weight: 400;
|
|
172
|
+
line-height: 120%;
|
|
173
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
& > span:nth-of-type(2) {
|
|
177
|
+
font-size: 14px;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
line-height: 120%;
|
|
180
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
& > div:last-of-type {
|
|
188
|
+
height: 106px;
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
& > button {
|
|
193
|
+
appearance: none;
|
|
194
|
+
border: none;
|
|
195
|
+
outline: none;
|
|
196
|
+
background-color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_100 : utils.colors.purple_600 : "transparent"};
|
|
197
|
+
padding: 0px;
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 40px;
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
gap: 8px;
|
|
204
|
+
border-top: 1px solid ${utils.colors.gray_200};
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
|
|
207
|
+
& > span {
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
line-height: 120%;
|
|
211
|
+
color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_600 : utils.colors.white : $disabled ? utils.colors.gray_300 : utils.colors.purple_600};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
` : styled.css`
|
|
215
|
+
background-color: ${utils.colors.gray_30};
|
|
216
|
+
display: flex;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
align-items: center;
|
|
219
|
+
padding: 16px;
|
|
220
|
+
|
|
221
|
+
& > div {
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
gap: 16px;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
align-items: center;
|
|
227
|
+
|
|
228
|
+
& > span {
|
|
229
|
+
font-size: 14px;
|
|
230
|
+
font-weight: 400;
|
|
231
|
+
line-height: 120%;
|
|
232
|
+
color: ${utils.colors.gray_500};
|
|
233
|
+
text-align: center;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`}
|
|
237
|
+
`;
|
|
238
|
+
const PropunereUniqaProtect = ({
|
|
239
|
+
title = "Fix ce ai cerut!",
|
|
240
|
+
contributiaLunara = "",
|
|
241
|
+
durata = "",
|
|
242
|
+
taxaDePolita = "",
|
|
243
|
+
numarPolite = "",
|
|
244
|
+
featured = false,
|
|
245
|
+
selected = false,
|
|
246
|
+
disabled = false,
|
|
247
|
+
refused = false,
|
|
248
|
+
hideButton = false,
|
|
249
|
+
empty = false,
|
|
250
|
+
emptyText = "Indisponibil",
|
|
251
|
+
iconButtonOnClick,
|
|
252
|
+
buttonOnClick,
|
|
253
|
+
contributiaLunaraHintOnClick,
|
|
254
|
+
taxaDePolitaHintOnClick,
|
|
255
|
+
children,
|
|
256
|
+
...rest
|
|
257
|
+
}) => {
|
|
258
|
+
let _contentSlot = null;
|
|
259
|
+
React.Children.toArray(children).filter(Boolean).forEach((child) => {
|
|
260
|
+
const element = child;
|
|
261
|
+
if (element.type === ContentSlot) {
|
|
262
|
+
_contentSlot = child;
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
266
|
+
PropunereUniqaProtectStyled,
|
|
267
|
+
{
|
|
268
|
+
$empty: empty,
|
|
269
|
+
$featured: featured,
|
|
270
|
+
$selected: selected,
|
|
271
|
+
$disabled: disabled,
|
|
272
|
+
$refused: refused,
|
|
273
|
+
$hideButton: hideButton,
|
|
274
|
+
...rest,
|
|
275
|
+
children: !empty ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
276
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
277
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
278
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
|
279
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
+
IconButton.default,
|
|
281
|
+
{
|
|
282
|
+
onClick: iconButtonOnClick,
|
|
283
|
+
icon: "new_tab",
|
|
284
|
+
intent: "accent",
|
|
285
|
+
variant: "tertiary",
|
|
286
|
+
shape: "rounded",
|
|
287
|
+
color: utils.colors.info_800,
|
|
288
|
+
size: "medium"
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
] }),
|
|
292
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
293
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
294
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
295
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Contributia lunara" }),
|
|
296
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
297
|
+
Icon.default,
|
|
298
|
+
{
|
|
299
|
+
onClick: contributiaLunaraHintOnClick,
|
|
300
|
+
icon: "hint_filled",
|
|
301
|
+
size: 16,
|
|
302
|
+
color: refused ? utils.colors.gray_200 : utils.colors.info_700
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: contributiaLunara || "-" })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
309
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Durata" }),
|
|
310
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: durata || "-" })
|
|
311
|
+
] })
|
|
312
|
+
] }),
|
|
313
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
314
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
315
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
316
|
+
Icon.default,
|
|
317
|
+
{
|
|
318
|
+
icon: "invoice_seal",
|
|
319
|
+
size: 16,
|
|
320
|
+
color: refused ? utils.colors.gray_200 : utils.colors.gray_500
|
|
321
|
+
}
|
|
322
|
+
),
|
|
323
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
324
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
325
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Taxa de polita" }),
|
|
326
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
327
|
+
Icon.default,
|
|
328
|
+
{
|
|
329
|
+
onClick: taxaDePolitaHintOnClick,
|
|
330
|
+
icon: "hint_filled",
|
|
331
|
+
size: 16,
|
|
332
|
+
color: refused ? utils.colors.gray_200 : utils.colors.info_700
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: taxaDePolita || "-" })
|
|
337
|
+
] })
|
|
338
|
+
] }),
|
|
339
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
340
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
341
|
+
Icon.default,
|
|
342
|
+
{
|
|
343
|
+
icon: "docs",
|
|
344
|
+
size: 16,
|
|
345
|
+
color: refused ? utils.colors.gray_200 : utils.colors.gray_500
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
349
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Numar polite" }),
|
|
350
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: numarPolite || "-" })
|
|
351
|
+
] })
|
|
352
|
+
] })
|
|
353
|
+
] })
|
|
354
|
+
] }),
|
|
355
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: _contentSlot }),
|
|
356
|
+
!hideButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
357
|
+
"button",
|
|
358
|
+
{
|
|
359
|
+
disabled,
|
|
360
|
+
type: "button",
|
|
361
|
+
onClick: !disabled ? buttonOnClick : () => {
|
|
362
|
+
},
|
|
363
|
+
children: [
|
|
364
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
+
Icon.default,
|
|
366
|
+
{
|
|
367
|
+
icon: selected ? "checkmark_filled" : "checkmark-part",
|
|
368
|
+
size: 16,
|
|
369
|
+
color: selected ? disabled ? utils.colors.gray_600 : utils.colors.white : utils.colors.purple_600,
|
|
370
|
+
style: {
|
|
371
|
+
opacity: disabled && !selected ? "0.25" : "1"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
),
|
|
375
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: selected ? "Varianta selectata" : "Vreau aceasta varianta!" })
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
)
|
|
379
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
380
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon.default, { size: 20, icon: "rejected", color: utils.colors.gray_500 }),
|
|
381
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: emptyText })
|
|
382
|
+
] })
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
};
|
|
386
|
+
const ContentSlot = ({ children }) => children;
|
|
387
|
+
PropunereUniqaProtect.ContentSlot = ContentSlot;
|
|
388
|
+
|
|
389
|
+
exports.default = PropunereUniqaProtect;
|
|
@@ -96,6 +96,7 @@ var PropunereAsigurareLocuinta = require('./PropunereAsigurareLocuinta/Propunere
|
|
|
96
96
|
var Textarea = require('./Textarea/Textarea.cjs');
|
|
97
97
|
var FeedbackCard = require('./FeedbackCard/FeedbackCard.cjs');
|
|
98
98
|
var ConfigurationStickyBar = require('./ConfigurationStickyBar/ConfigurationStickyBar.cjs');
|
|
99
|
+
var PropunereUniqaProtect = require('./PropunereUniqaProtect/PropunereUniqaProtect.cjs');
|
|
99
100
|
|
|
100
101
|
|
|
101
102
|
|
|
@@ -192,3 +193,4 @@ exports.PropunereAsigurareLocuinta = PropunereAsigurareLocuinta.default;
|
|
|
192
193
|
exports.Textarea = Textarea.default;
|
|
193
194
|
exports.FeedbackCard = FeedbackCard.default;
|
|
194
195
|
exports.ConfigurationStickyBar = ConfigurationStickyBar.default;
|
|
196
|
+
exports.PropunereUniqaProtect = PropunereUniqaProtect.default;
|