rbro-tat-uds 2.2.21 → 2.2.23

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.
@@ -62,7 +62,7 @@ const ConfigurationSaveInfo = ({
62
62
  ),
63
63
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
64
64
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
65
- isSimulator ? "Simluare" : "Configuratie",
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;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ 'use strict';
5
+
6
+ Object.defineProperty(exports, '__esModule', { value: true });
7
+
8
+ var PropunereUniqaProtect = require('./PropunereUniqaProtect.cjs');
9
+
10
+
11
+
12
+ exports.default = PropunereUniqaProtect.default;
@@ -36,7 +36,6 @@ const UnitLinkGraphStyled = styled.svg`
36
36
  .text-contribution {
37
37
  font-size: 12px;
38
38
  font-weight: 500;
39
- fill: ${utils.colors.blue_600};
40
39
  }
41
40
  .text-action {
42
41
  font-size: 12px;
@@ -65,6 +64,7 @@ const UnitLinkGraph = ({
65
64
  header: "Placeholder",
66
65
  color_primary: utils.colors.purple_600,
67
66
  color_secondary: utils.colors.purple_50,
67
+ outline_color: utils.colors.white,
68
68
  percentage: 50,
69
69
  place_at_ani: 7,
70
70
  actions: [
@@ -87,6 +87,11 @@ const UnitLinkGraph = ({
87
87
  timeline_texts = {
88
88
  left: "Placeholder"
89
89
  },
90
+ timeline_text_color = {
91
+ left: utils.colors.blue_600,
92
+ right: utils.colors.blue_600
93
+ },
94
+ lineGraphAreaColor,
90
95
  ...rest
91
96
  }) => {
92
97
  const sliderActive = React.useMemo(() => {
@@ -222,7 +227,9 @@ const UnitLinkGraph = ({
222
227
  wrappedLabel,
223
228
  sublabel: item.sublabel,
224
229
  sublabel_x,
225
- sublabel_y
230
+ sublabel_y,
231
+ bgColor: item.bgColor || void 0,
232
+ textColor: item.textColor || void 0
226
233
  };
227
234
  }
228
235
  return {
@@ -254,7 +261,8 @@ const UnitLinkGraph = ({
254
261
  const dynamic_pos_secondary_x = get_position_at_indicator - APPROXIMATE_BAR_STROKE_WIDTH - configurations.bars.width - configurations.area.indicators.margin;
255
262
  const dynamic_pos_main_x = get_position_at_indicator + APPROXIMATE_BAR_STROKE_WIDTH + configurations.area.indicators.strokeWidth + configurations.area.indicators.margin;
256
263
  const h = mainHeightGraph - configurations.bars.actionsGap - START_Y;
257
- const calculate_filled_bar = floorToHalf(config.percentage / 100 * h);
264
+ const mainPercentage = (config?.secondary_percentage || 0) > 0 ? config.percentage - (config?.secondary_percentage || 0) : config.percentage;
265
+ const calculate_filled_bar = floorToHalf(mainPercentage / 100 * h);
258
266
  const x = floorToHalf(main ? dynamic_pos_main_x : dynamic_pos_secondary_x);
259
267
  const w = floorToHalf(configurations.bars.width);
260
268
  const outlined_y = START_Y + APPROXIMATE_BAR_STROKE_WIDTH + configurations.bars.actionsGap;
@@ -279,7 +287,9 @@ const UnitLinkGraph = ({
279
287
  filled_h: Math.max(filled_h, 0),
280
288
  colorPrimary: config.color_primary,
281
289
  colorSecondary: config.color_secondary,
290
+ outlineColor: config.outline_color || utils.colors.white,
282
291
  strokeWidth: configurations.bars.strokeWidth,
292
+ percentage: config.percentage,
283
293
  barActions: {
284
294
  header: {
285
295
  title: config.header,
@@ -310,7 +320,7 @@ const UnitLinkGraph = ({
310
320
  x1: floorToHalf(mainStart + configurations.area.outersPartsWidth),
311
321
  x2: floorToHalf(barMain.x - configurations.area.outersPartsWidth),
312
322
  y1: mainHeightGraph - configurations.area.strokeWidth,
313
- y2: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
323
+ y2: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
314
324
  strokeWidth: barMainConfiguration.percentage === 0 ? 0 : configurations.area.graphLineStrokeWidth
315
325
  };
316
326
  const part_3 = {
@@ -318,8 +328,8 @@ const UnitLinkGraph = ({
318
328
  barMain.x - configurations.area.outersPartsWidth - configurations.area.additionalSpaceVisualize
319
329
  ),
320
330
  x2: floorToHalf(barMain.x),
321
- y1: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
322
- y2: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
331
+ y1: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
332
+ y2: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
323
333
  strokeWidth: barMainConfiguration.percentage === 0 ? 0 : configurations.area.graphLineStrokeWidth
324
334
  };
325
335
  return {
@@ -525,7 +535,7 @@ const UnitLinkGraph = ({
525
535
  y1: graph.main.area.part_1.y1,
526
536
  y2: graph.main.area.part_1.y2,
527
537
  strokeWidth: graph.main.area.part_1.strokeWidth,
528
- stroke: graph.main.bars.main.colorPrimary
538
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
529
539
  }
530
540
  ),
531
541
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -536,7 +546,7 @@ const UnitLinkGraph = ({
536
546
  y1: graph.main.area.part_2.y1,
537
547
  y2: graph.main.area.part_2.y2,
538
548
  strokeWidth: graph.main.area.part_2.strokeWidth,
539
- stroke: graph.main.bars.main.colorPrimary
549
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
540
550
  }
541
551
  ),
542
552
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -547,15 +557,15 @@ const UnitLinkGraph = ({
547
557
  y1: graph.main.area.part_3.y1,
548
558
  y2: graph.main.area.part_3.y2,
549
559
  strokeWidth: graph.main.area.part_3.strokeWidth,
550
- stroke: graph.main.bars.main.colorPrimary
560
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
551
561
  }
552
562
  ),
553
563
  /* @__PURE__ */ jsxRuntime.jsx(
554
564
  "polygon",
555
565
  {
556
566
  points: `
557
- ${graph.main.area.part_2.x2},${graph.main.bars.main.filled_y + 1.5}
558
- ${graph.main.area.part_3.x2},${graph.main.bars.main.filled_y + 1.5}
567
+ ${graph.main.area.part_2.x2},${(graph.main.bars.main.percentage === 100 ? graph.main.bars.main.outlined_y : graph.main.bars.main.filled_y) + 1.5}
568
+ ${graph.main.area.part_3.x2},${(graph.main.bars.main.percentage === 100 ? graph.main.bars.main.outlined_y : graph.main.bars.main.filled_y) + 1.5}
559
569
  ${graph.main.area.part_3.x2},${graph.mainHeightGraph}
560
570
  ${graph.main.area.part_2.x1},${graph.mainHeightGraph}`,
561
571
  fill: graph.main.bars.main.colorSecondary
@@ -615,6 +625,7 @@ const UnitLinkGraph = ({
615
625
  className: "text-contribution",
616
626
  y: graph.timeline.text.left.y,
617
627
  x: graph.timeline.text.left.x,
628
+ fill: timeline_text_color.left,
618
629
  textAnchor: "end",
619
630
  children: timeline_texts.left
620
631
  }
@@ -625,6 +636,7 @@ const UnitLinkGraph = ({
625
636
  className: "text-contribution",
626
637
  y: graph.timeline.text.right.y,
627
638
  x: graph.timeline.text.right.x,
639
+ fill: timeline_text_color.right,
628
640
  textAnchor: "start",
629
641
  children: timeline_texts.right
630
642
  }
@@ -709,7 +721,7 @@ const RenderBar = ({
709
721
  y: bar.outlined_y,
710
722
  width: bar.w,
711
723
  height: bar.outlined_h,
712
- fill: utils.colors.white,
724
+ fill: bar.outlineColor,
713
725
  stroke: bar.colorPrimary,
714
726
  strokeWidth: bar.strokeWidth
715
727
  }
@@ -737,6 +749,8 @@ const RenderBar = ({
737
749
  ),
738
750
  bar.barActions.actions.map((action, index) => {
739
751
  const isActive = activeAction === index;
752
+ const rectColor = isActive ? bar.colorPrimary : action.bgColor ? action.bgColor : bar.colorSecondary;
753
+ const textColor = isActive ? utils.colors.white : action.textColor ? action.textColor : bar.colorPrimary;
740
754
  return /* @__PURE__ */ jsxRuntime.jsxs(
741
755
  "g",
742
756
  {
@@ -746,7 +760,7 @@ const RenderBar = ({
746
760
  /* @__PURE__ */ jsxRuntime.jsx(
747
761
  "rect",
748
762
  {
749
- fill: isActive ? bar.colorPrimary : bar.colorSecondary,
763
+ fill: rectColor,
750
764
  rx: 4,
751
765
  ry: 4,
752
766
  height: action.actions_h,
@@ -761,7 +775,7 @@ const RenderBar = ({
761
775
  className: "text-bar-actions-label",
762
776
  x: action.label_x,
763
777
  y: action.label_y,
764
- fill: isActive ? utils.colors.white : bar.colorPrimary,
778
+ fill: textColor,
765
779
  children: action.wrappedLabel?.map((line, lineIndex) => /* @__PURE__ */ jsxRuntime.jsx(
766
780
  "tspan",
767
781
  {
@@ -776,7 +790,7 @@ const RenderBar = ({
776
790
  action.sublabel && /* @__PURE__ */ jsxRuntime.jsx(
777
791
  "text",
778
792
  {
779
- fill: isActive ? utils.colors.white : bar.colorPrimary,
793
+ fill: textColor,
780
794
  className: "text-bar-actions-sublabel",
781
795
  x: action.sublabel_x,
782
796
  y: action.sublabel_y,
@@ -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;