rbro-tat-uds 2.2.8 → 2.2.10

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.
Files changed (43) hide show
  1. package/build/cjs/assets/icons/brand-logo.svg.cjs +35 -0
  2. package/build/cjs/assets/icons/bulb.svg.cjs +41 -0
  3. package/build/cjs/assets/icons/house-wap.svg.cjs +41 -0
  4. package/build/cjs/components/Accordion/Accordion.cjs +89 -0
  5. package/build/cjs/components/Accordion/index.cjs +12 -0
  6. package/build/cjs/components/Button/Button.cjs +3 -0
  7. package/build/cjs/components/CityPicker/CityPicker.cjs +0 -1
  8. package/build/cjs/components/DashboardCard/DashboardCard.cjs +24 -1
  9. package/build/cjs/components/Dropdown/Dropdown.cjs +3 -0
  10. package/build/cjs/components/Icon/IconsList.cjs +7 -1
  11. package/build/cjs/components/IconButton/IconButton.cjs +3 -0
  12. package/build/cjs/components/PageMessage/PageMessage.cjs +3 -0
  13. package/build/cjs/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.cjs +433 -0
  14. package/build/cjs/components/PropunereAsigurareLocuinta/index.cjs +12 -0
  15. package/build/cjs/components/TextInput/TextInput.cjs +3 -0
  16. package/build/cjs/components/index.cjs +4 -0
  17. package/build/cjs/index.cjs +1250 -682
  18. package/build/esm/assets/icons/brand-logo.svg.js +14 -0
  19. package/build/esm/assets/icons/bulb.svg.js +20 -0
  20. package/build/esm/assets/icons/house-wap.svg.js +20 -0
  21. package/build/esm/components/Accordion/Accordion.js +85 -0
  22. package/build/esm/components/Accordion/index.js +8 -0
  23. package/build/esm/components/Button/Button.js +3 -0
  24. package/build/esm/components/CityPicker/CityPicker.js +0 -1
  25. package/build/esm/components/DashboardCard/DashboardCard.js +24 -1
  26. package/build/esm/components/Dropdown/Dropdown.js +3 -0
  27. package/build/esm/components/Icon/IconsList.js +7 -1
  28. package/build/esm/components/IconButton/IconButton.js +3 -0
  29. package/build/esm/components/PageMessage/PageMessage.js +3 -0
  30. package/build/esm/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.js +429 -0
  31. package/build/esm/components/PropunereAsigurareLocuinta/index.js +8 -0
  32. package/build/esm/components/TextInput/TextInput.js +3 -0
  33. package/build/esm/components/index.js +2 -0
  34. package/build/esm/index.js +1249 -683
  35. package/build/types/components/Accordion/Accordion.d.ts +19 -0
  36. package/build/types/components/Accordion/index.d.ts +6 -0
  37. package/build/types/components/DashboardCard/DashboardCard.d.ts +1 -0
  38. package/build/types/components/Icon/Icon.types.d.ts +1 -1
  39. package/build/types/components/Icon/IconsList.d.ts +3 -0
  40. package/build/types/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.d.ts +34 -0
  41. package/build/types/components/PropunereAsigurareLocuinta/index.d.ts +6 -0
  42. package/build/types/index.d.ts +2 -0
  43. package/package.json +1 -1
@@ -0,0 +1,429 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
+ import { colors } from '../../utils';
6
+ import { Children } from 'react';
7
+ import styled, { css } from 'styled-components';
8
+ import IconButton from '../IconButton/IconButton.js';
9
+ import Icon from '../Icon/Icon.js';
10
+
11
+ const PropunereAsigurareLocuintaStyled = styled.div`
12
+ border-radius: 8px;
13
+ border: 1px solid
14
+ ${({ $featured, $selected }) => $selected ? colors.purple_500 : $featured ? colors.accent_600 : colors.gray_200};
15
+ overflow: hidden;
16
+ min-height: ${({ $hideButton }) => $hideButton ? "387px" : "427px"};
17
+ box-sizing: border-box;
18
+ height: 100%;
19
+ width: 100%;
20
+
21
+ ${(props) => !props.$empty ? css`
22
+ outline: ${props.$featured ? `3px solid ${colors.accent_300}` : "none"};
23
+
24
+ & > div:first-of-type {
25
+ & > div:first-child {
26
+ padding: 6px 6px 0px 16px;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ gap: 8px;
31
+ background-color: ${props.$refused ? colors.gray_30 : props.$selected ? colors.purple_50 : props.$featured ? colors.accent_100 : "transparent"};
32
+
33
+ & > span {
34
+ font-size: 18px;
35
+ font-weight: 700;
36
+ line-height: 120%;
37
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.purple_600};
38
+ }
39
+ }
40
+
41
+ & > div:nth-child(2) {
42
+ display: flex;
43
+ flex-direction: column;
44
+
45
+ & > div:first-of-type,
46
+ & > div:nth-of-type(2) {
47
+ box-sizing: border-box;
48
+ display: flex;
49
+ align-items: stretch;
50
+ gap: 8px;
51
+ padding: 8px 16px 12px 16px;
52
+ height: 60px;
53
+ background-color: ${props.$refused ? colors.gray_30 : props.$selected ? colors.purple_50 : props.$featured ? colors.accent_100 : "transparent"};
54
+
55
+ & > div {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 2px;
59
+ flex: 1;
60
+
61
+ & > span:first-of-type {
62
+ font-size: 14px;
63
+ font-weight: 400;
64
+ color: ${({ $refused }) => $refused ? colors.gray_200 : colors.gray_700};
65
+ }
66
+
67
+ & > span:last-of-type {
68
+ font-size: 16px;
69
+ font-weight: 500;
70
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_950};
71
+ }
72
+ }
73
+ }
74
+
75
+ & > div:last-of-type {
76
+ box-sizing: border-box;
77
+ display: flex;
78
+ flex-direction: column;
79
+ gap: 2px;
80
+ padding: 8px 16px 12px 16px;
81
+ min-height: 82px;
82
+ height: 100%;
83
+ background-color: ${props.$refused ? colors.gray_30 : props.$selected ? colors.purple_50 : props.$featured ? colors.accent_100 : "transparent"};
84
+
85
+ & > span:first-of-type {
86
+ font-size: 14px;
87
+ font-weight: 400;
88
+ color: ${({ $refused }) => $refused ? colors.gray_200 : colors.gray_700};
89
+ }
90
+
91
+ & > span:last-of-type {
92
+ font-size: 20px;
93
+ font-weight: 700;
94
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_950};
95
+ }
96
+
97
+ & > div {
98
+ display: flex;
99
+ align-items: center;
100
+ gap: 4px;
101
+
102
+ & > span {
103
+ font-size: 12px;
104
+ font-weight: 400;
105
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_700};
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ & > div:last-child {
112
+ box-sizing: border-box;
113
+ border-top: 1px solid ${colors.gray_200};
114
+ border-bottom: 1px solid ${colors.gray_200};
115
+ display: flex;
116
+ align-items: stretch;
117
+ height: 95px;
118
+
119
+ & > div {
120
+ flex: 1;
121
+ display: flex;
122
+ align-items: flex-start;
123
+ padding: 12px 16px;
124
+
125
+ & > div {
126
+ display: flex;
127
+ align-items: flex-start;
128
+ gap: 8px;
129
+
130
+ & > div {
131
+ display: flex;
132
+ flex-direction: column;
133
+ gap: 2px;
134
+
135
+ & > span:first-of-type {
136
+ font-size: 12px;
137
+ font-weight: 400;
138
+ line-height: 120%;
139
+ }
140
+
141
+ & > span:nth-of-type(2) {
142
+ font-size: 14px;
143
+ font-weight: 500;
144
+ line-height: 120%;
145
+ }
146
+
147
+ & > span:nth-of-type(3) {
148
+ font-size: 14px;
149
+ font-weight: 400;
150
+ line-height: 120%;
151
+ }
152
+
153
+ & > span:nth-of-type(4) {
154
+ font-size: 14px;
155
+ font-weight: 400;
156
+ line-height: 120%;
157
+ }
158
+ }
159
+ }
160
+ }
161
+
162
+ & > div:first-of-type {
163
+ border-right: 0.5px solid ${colors.gray_200};
164
+ background-color: ${props.$refused ? colors.gray_60 : props.$featured ? colors.white : colors.gray_30};
165
+
166
+ & > div {
167
+ & > div {
168
+ & > span:first-of-type {
169
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_700};
170
+ }
171
+
172
+ & > span:nth-of-type(2) {
173
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_950};
174
+ }
175
+
176
+ & > span:nth-of-type(3) {
177
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.info_800};
178
+ }
179
+
180
+ & > span:nth-of-type(4) {
181
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.info_800};
182
+ }
183
+ }
184
+ }
185
+ }
186
+
187
+ & > div:last-of-type {
188
+ border-left: 0.5px solid ${colors.gray_200};
189
+ background-color: ${(props2) => props2.$refused ? colors.gray_60 : colors.gray_30};
190
+
191
+ & > div {
192
+ & > div {
193
+ & > span:first-of-type {
194
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_700};
195
+ }
196
+
197
+ & > span:nth-of-type(2) {
198
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.gray_950};
199
+ }
200
+
201
+ & > span:nth-of-type(3) {
202
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.info_800};
203
+ }
204
+
205
+ & > span:nth-of-type(4) {
206
+ color: ${({ $refused }) => $refused ? colors.gray_300 : colors.info_800};
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ & > div:last-of-type {
215
+ height: 42px;
216
+ box-sizing: border-box;
217
+ }
218
+
219
+ & > button {
220
+ appearance: none;
221
+ border: none;
222
+ outline: none;
223
+ background-color: ${({ $selected, $disabled }) => $selected ? $disabled ? colors.gray_100 : colors.purple_600 : "transparent"};
224
+ padding: 0px;
225
+ width: 100%;
226
+ height: 40px;
227
+ display: flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ gap: 8px;
231
+ border-top: 1px solid ${colors.gray_200};
232
+ cursor: pointer;
233
+
234
+ & > span {
235
+ font-size: 14px;
236
+ font-weight: 500;
237
+ line-height: 120%;
238
+ color: ${({ $selected, $disabled }) => $selected ? $disabled ? colors.gray_600 : colors.white : $disabled ? colors.gray_300 : colors.purple_600};
239
+ }
240
+ }
241
+ ` : css`
242
+ background-color: ${colors.gray_30};
243
+ display: flex;
244
+ justify-content: center;
245
+ align-items: center;
246
+ padding: 16px;
247
+
248
+ & > div {
249
+ display: flex;
250
+ flex-direction: column;
251
+ gap: 16px;
252
+ justify-content: center;
253
+ align-items: center;
254
+
255
+ & > span {
256
+ font-size: 14px;
257
+ font-weight: 400;
258
+ line-height: 120%;
259
+ color: ${colors.gray_500};
260
+ text-align: center;
261
+ }
262
+ }
263
+ `}
264
+ `;
265
+ const PropunereAsigurareLocuinta = ({
266
+ title = "Fix ce ai cerut!",
267
+ valoareAsigurataImobil = "",
268
+ primaAsigurareImobilPeAn = "",
269
+ valoareAsigurataBunuri = "",
270
+ primaAsigurareBunuriPeAn = "",
271
+ totalDePlataAnual = "",
272
+ primaAsigurareAnexeImobil = "",
273
+ valoareAsigurataAnexeImobil = "",
274
+ primaAsigurareEchipamente = "",
275
+ valoareAsigurataEchipamente = "",
276
+ includePad = false,
277
+ featured = false,
278
+ selected = false,
279
+ disabled = false,
280
+ refused = false,
281
+ hideButton = false,
282
+ empty = false,
283
+ emptyText = "Indisponibil",
284
+ iconButtonOnClick,
285
+ buttonOnClick,
286
+ children,
287
+ ...rest
288
+ }) => {
289
+ let _contentSlot = null;
290
+ Children.toArray(children).filter(Boolean).forEach((child) => {
291
+ const element = child;
292
+ if (element.type === ContentSlot) {
293
+ _contentSlot = child;
294
+ }
295
+ });
296
+ return /* @__PURE__ */ jsx(
297
+ PropunereAsigurareLocuintaStyled,
298
+ {
299
+ $empty: empty,
300
+ $featured: featured,
301
+ $selected: selected,
302
+ $disabled: disabled,
303
+ $refused: refused,
304
+ $hideButton: hideButton,
305
+ ...rest,
306
+ children: !empty ? /* @__PURE__ */ jsxs(Fragment, { children: [
307
+ /* @__PURE__ */ jsxs("div", { children: [
308
+ /* @__PURE__ */ jsxs("div", { children: [
309
+ /* @__PURE__ */ jsx("span", { children: title }),
310
+ /* @__PURE__ */ jsx(
311
+ IconButton,
312
+ {
313
+ onClick: buttonOnClick,
314
+ icon: "new_tab",
315
+ intent: "accent",
316
+ variant: "tertiary",
317
+ shape: "rounded",
318
+ color: colors.info_800,
319
+ size: "medium"
320
+ }
321
+ )
322
+ ] }),
323
+ /* @__PURE__ */ jsxs("div", { children: [
324
+ /* @__PURE__ */ jsxs("div", { children: [
325
+ /* @__PURE__ */ jsxs("div", { children: [
326
+ /* @__PURE__ */ jsx("span", { children: "Valoare asigurata imobil" }),
327
+ /* @__PURE__ */ jsx("span", { children: valoareAsigurataImobil || "-" })
328
+ ] }),
329
+ /* @__PURE__ */ jsxs("div", { children: [
330
+ /* @__PURE__ */ jsx("span", { children: "Prima asigurare imobil pe an" }),
331
+ /* @__PURE__ */ jsx("span", { children: primaAsigurareImobilPeAn || "-" })
332
+ ] })
333
+ ] }),
334
+ /* @__PURE__ */ jsxs("div", { children: [
335
+ /* @__PURE__ */ jsxs("div", { children: [
336
+ /* @__PURE__ */ jsx("span", { children: "Valoare asigurata bunuri" }),
337
+ /* @__PURE__ */ jsx("span", { children: valoareAsigurataBunuri || "-" })
338
+ ] }),
339
+ /* @__PURE__ */ jsxs("div", { children: [
340
+ /* @__PURE__ */ jsx("span", { children: "Prima asigurare bunuri pe an" }),
341
+ /* @__PURE__ */ jsx("span", { children: primaAsigurareBunuriPeAn || "-" })
342
+ ] })
343
+ ] }),
344
+ /* @__PURE__ */ jsxs("div", { children: [
345
+ /* @__PURE__ */ jsx("span", { children: "Total de plata anual" }),
346
+ /* @__PURE__ */ jsx("span", { children: totalDePlataAnual || "-" }),
347
+ includePad && /* @__PURE__ */ jsxs("div", { children: [
348
+ /* @__PURE__ */ jsx(
349
+ Icon,
350
+ {
351
+ icon: "info_filled",
352
+ size: 14,
353
+ color: refused ? colors.gray_200 : colors.gray_500
354
+ }
355
+ ),
356
+ /* @__PURE__ */ jsx("span", { children: "Include PAD" })
357
+ ] })
358
+ ] })
359
+ ] }),
360
+ /* @__PURE__ */ jsxs("div", { children: [
361
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
362
+ /* @__PURE__ */ jsx(
363
+ Icon,
364
+ {
365
+ icon: "house-wap",
366
+ size: 16,
367
+ color: refused ? colors.gray_200 : colors.gray_500
368
+ }
369
+ ),
370
+ /* @__PURE__ */ jsxs("div", { children: [
371
+ /* @__PURE__ */ jsx("span", { children: "Prima asigurare anexe imobil" }),
372
+ /* @__PURE__ */ jsx("span", { children: primaAsigurareAnexeImobil || "-" }),
373
+ /* @__PURE__ */ jsx("span", { children: "Valoare asigurata" }),
374
+ /* @__PURE__ */ jsx("span", { children: valoareAsigurataAnexeImobil || "-" })
375
+ ] })
376
+ ] }) }),
377
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
378
+ /* @__PURE__ */ jsx(
379
+ Icon,
380
+ {
381
+ icon: "bulb",
382
+ size: 16,
383
+ color: refused ? colors.gray_200 : colors.gray_500
384
+ }
385
+ ),
386
+ /* @__PURE__ */ jsxs("div", { children: [
387
+ /* @__PURE__ */ jsx("span", { children: "Prima asigurare echipamente" }),
388
+ /* @__PURE__ */ jsx("span", { children: primaAsigurareEchipamente || "-" }),
389
+ /* @__PURE__ */ jsx("span", { children: "Valoare asigurata" }),
390
+ /* @__PURE__ */ jsx("span", { children: valoareAsigurataEchipamente || "-" })
391
+ ] })
392
+ ] }) })
393
+ ] })
394
+ ] }),
395
+ /* @__PURE__ */ jsx("div", { children: _contentSlot }),
396
+ !hideButton && /* @__PURE__ */ jsxs(
397
+ "button",
398
+ {
399
+ disabled,
400
+ type: "button",
401
+ onClick: !disabled ? buttonOnClick : () => {
402
+ },
403
+ children: [
404
+ /* @__PURE__ */ jsx(
405
+ Icon,
406
+ {
407
+ icon: selected ? "checkmark_filled" : "checkmark-part",
408
+ size: 16,
409
+ color: selected ? disabled ? colors.gray_600 : colors.white : colors.purple_600,
410
+ style: {
411
+ opacity: disabled && !selected ? "0.25" : "1"
412
+ }
413
+ }
414
+ ),
415
+ /* @__PURE__ */ jsx("span", { children: selected ? "Varianta selectata" : "Vreau aceasta varianta!" })
416
+ ]
417
+ }
418
+ )
419
+ ] }) : /* @__PURE__ */ jsxs("div", { children: [
420
+ /* @__PURE__ */ jsx(Icon, { size: 20, icon: "rejected", color: colors.gray_500 }),
421
+ /* @__PURE__ */ jsx("span", { children: emptyText })
422
+ ] })
423
+ }
424
+ );
425
+ };
426
+ const ContentSlot = ({ children }) => children;
427
+ PropunereAsigurareLocuinta.ContentSlot = ContentSlot;
428
+
429
+ export { PropunereAsigurareLocuinta as default };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ import PropunereAsigurareLocuinta from './PropunereAsigurareLocuinta.js';
5
+
6
+
7
+
8
+ export { PropunereAsigurareLocuinta as default };
@@ -146,6 +146,9 @@ import '../../assets/icons/hint-outlined.svg.js';
146
146
  import '../../assets/icons/face-happy.svg.js';
147
147
  import '../../assets/icons/person-level.svg.js';
148
148
  import '../../assets/icons/star-reward.svg.js';
149
+ import '../../assets/icons/brand-logo.svg.js';
150
+ import '../../assets/icons/house-wap.svg.js';
151
+ import '../../assets/icons/bulb.svg.js';
149
152
  import { createPortal } from 'react-dom';
150
153
  import Icon from '../Icon/Icon.js';
151
154
  import Numpad from '../Numpad/Numpad.js';
@@ -89,3 +89,5 @@ export { default as Icon } from './Icon/Icon.js';
89
89
  export { default as Spinner } from './Spinner/Spinner.js';
90
90
  export { default as GraficContributieUnitlinked } from './GraficContributieUnitlinked/GraficContributieUnitlinked.js';
91
91
  export { default as SelectionAppCard } from './SelectionAppCard/SelectionAppCard.js';
92
+ export { default as Accordion } from './Accordion/Accordion.js';
93
+ export { default as PropunereAsigurareLocuinta } from './PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.js';