rbro-tat-uds 2.2.9 → 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.
- package/build/cjs/assets/icons/bulb.svg.cjs +41 -0
- package/build/cjs/assets/icons/house-wap.svg.cjs +41 -0
- package/build/cjs/components/Accordion/Accordion.cjs +89 -0
- package/build/cjs/components/Accordion/index.cjs +12 -0
- package/build/cjs/components/Button/Button.cjs +2 -0
- package/build/cjs/components/CityPicker/CityPicker.cjs +0 -1
- package/build/cjs/components/Icon/IconsList.cjs +5 -1
- package/build/cjs/components/IconButton/IconButton.cjs +2 -0
- package/build/cjs/components/PageMessage/PageMessage.cjs +2 -0
- package/build/cjs/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.cjs +433 -0
- package/build/cjs/components/PropunereAsigurareLocuinta/index.cjs +12 -0
- package/build/cjs/components/TextInput/TextInput.cjs +2 -0
- package/build/cjs/components/index.cjs +4 -0
- package/build/cjs/index.cjs +1212 -682
- package/build/esm/assets/icons/bulb.svg.js +20 -0
- package/build/esm/assets/icons/house-wap.svg.js +20 -0
- package/build/esm/components/Accordion/Accordion.js +85 -0
- package/build/esm/components/Accordion/index.js +8 -0
- package/build/esm/components/Button/Button.js +2 -0
- package/build/esm/components/CityPicker/CityPicker.js +0 -1
- package/build/esm/components/Icon/IconsList.js +5 -1
- package/build/esm/components/IconButton/IconButton.js +2 -0
- package/build/esm/components/PageMessage/PageMessage.js +2 -0
- package/build/esm/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.js +429 -0
- package/build/esm/components/PropunereAsigurareLocuinta/index.js +8 -0
- package/build/esm/components/TextInput/TextInput.js +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/index.js +1211 -683
- package/build/types/components/Accordion/Accordion.d.ts +19 -0
- package/build/types/components/Accordion/index.d.ts +6 -0
- package/build/types/components/Icon/Icon.types.d.ts +1 -1
- package/build/types/components/Icon/IconsList.d.ts +2 -0
- package/build/types/components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.d.ts +34 -0
- package/build/types/components/PropunereAsigurareLocuinta/index.d.ts +6 -0
- package/build/types/index.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,41 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var React = require('react');
|
4
|
+
|
5
|
+
function _interopNamespaceDefault(e) {
|
6
|
+
var n = Object.create(null);
|
7
|
+
if (e) {
|
8
|
+
Object.keys(e).forEach(function (k) {
|
9
|
+
if (k !== 'default') {
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () { return e[k]; }
|
14
|
+
});
|
15
|
+
}
|
16
|
+
});
|
17
|
+
}
|
18
|
+
n.default = e;
|
19
|
+
return Object.freeze(n);
|
20
|
+
}
|
21
|
+
|
22
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
23
|
+
|
24
|
+
var _path, _path2, _path3;
|
25
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
26
|
+
var SvgBulb = function SvgBulb(props) {
|
27
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
29
|
+
viewBox: "0 0 24 24"
|
30
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
31
|
+
d: "M10.068 10.518a2 2 0 0 1 2.45-2.45l.517-1.932a4 4 0 0 0-4.899 4.9z"
|
32
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
33
|
+
fillRule: "evenodd",
|
34
|
+
d: "M7.13 3.653A8 8 0 0 1 17 16.245V17a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-.755a8 8 0 0 1 .13-12.592M12 4a6 6 0 0 0-3.429 10.924l.429.298V17h6v-1.778l.429-.298A6 6 0 0 0 12 4",
|
35
|
+
clipRule: "evenodd"
|
36
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
37
|
+
d: "M15 23H9v-2h6z"
|
38
|
+
})));
|
39
|
+
};
|
40
|
+
|
41
|
+
module.exports = SvgBulb;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var React = require('react');
|
4
|
+
|
5
|
+
function _interopNamespaceDefault(e) {
|
6
|
+
var n = Object.create(null);
|
7
|
+
if (e) {
|
8
|
+
Object.keys(e).forEach(function (k) {
|
9
|
+
if (k !== 'default') {
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () { return e[k]; }
|
14
|
+
});
|
15
|
+
}
|
16
|
+
});
|
17
|
+
}
|
18
|
+
n.default = e;
|
19
|
+
return Object.freeze(n);
|
20
|
+
}
|
21
|
+
|
22
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
23
|
+
|
24
|
+
var _path, _path2, _path3;
|
25
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
26
|
+
var SvgHouseWap = function SvgHouseWap(props) {
|
27
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
29
|
+
viewBox: "0 0 24 24"
|
30
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
31
|
+
d: "M15.375 2.22a1 1 0 0 1 1.25 0l5 4A1 1 0 0 1 22 7v1h-1v5a1 1 0 0 1-1 1h-4v-2h3V8h1v-.52l-4-3.2-4 3.2V8h-2V7a1 1 0 0 1 .375-.78z"
|
32
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
33
|
+
fillRule: "evenodd",
|
34
|
+
d: "M3 15H2v-1a1 1 0 0 1 .375-.78l5-4a1 1 0 0 1 1.25 0l5 4A1 1 0 0 1 14 14v1h-1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm2 0v4h6v-4h1v-.52l-4-3.2-4 3.2V15z",
|
35
|
+
clipRule: "evenodd"
|
36
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
37
|
+
d: "M9.93 4.273a8 8 0 0 0-5.657 5.656L2.34 9.412A10 10 0 0 1 9.41 2.34zM19.22 15.444a8 8 0 0 1-4.55 4.097l.668 1.885a10 10 0 0 0 5.688-5.12z"
|
38
|
+
})));
|
39
|
+
};
|
40
|
+
|
41
|
+
module.exports = SvgHouseWap;
|
@@ -0,0 +1,89 @@
|
|
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 React = require('react');
|
10
|
+
var styled = require('styled-components');
|
11
|
+
var utils = require('../../utils');
|
12
|
+
var Icon = require('../Icon/Icon.cjs');
|
13
|
+
|
14
|
+
const AccordionStyled = styled.div`
|
15
|
+
width: 100%;
|
16
|
+
|
17
|
+
& > button {
|
18
|
+
padding: 16px;
|
19
|
+
background-color: ${utils.colors.warm_gray_30};
|
20
|
+
display: flex;
|
21
|
+
align-items: center;
|
22
|
+
gap: 24px;
|
23
|
+
border: none;
|
24
|
+
width: 100%;
|
25
|
+
cursor: pointer;
|
26
|
+
|
27
|
+
& > div:first-of-type {
|
28
|
+
flex: 1;
|
29
|
+
cursor: pointer;
|
30
|
+
display: flex;
|
31
|
+
justify-content: flex-start;
|
32
|
+
font-size: 14px;
|
33
|
+
font-weight: 500;
|
34
|
+
color: ${utils.colors.gray_950};
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
& > div {
|
39
|
+
padding: 0px 16px;
|
40
|
+
overflow: hidden;
|
41
|
+
transition: all 0.2s ease-in-out;
|
42
|
+
transform-origin: top;
|
43
|
+
|
44
|
+
&[data-open="true"] {
|
45
|
+
transform: scaleY(1);
|
46
|
+
padding: 16px;
|
47
|
+
opacity: 1;
|
48
|
+
}
|
49
|
+
|
50
|
+
&[data-open="false"] {
|
51
|
+
transform: scaleY(0);
|
52
|
+
opacity: 0;
|
53
|
+
padding: 0px 16px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
`;
|
57
|
+
const Accordion = ({ open = false, children, ...rest }) => {
|
58
|
+
let _controlSlot = null;
|
59
|
+
let _panelSlot = null;
|
60
|
+
React.Children.toArray(children).filter(Boolean).forEach((child) => {
|
61
|
+
const element = child;
|
62
|
+
if (element.type === Control) {
|
63
|
+
_controlSlot = child;
|
64
|
+
}
|
65
|
+
if (element.type === Panel) {
|
66
|
+
_panelSlot = child;
|
67
|
+
}
|
68
|
+
});
|
69
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(AccordionStyled, { children: [
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { ...rest, children: [
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: _controlSlot }),
|
72
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
73
|
+
Icon.default,
|
74
|
+
{
|
75
|
+
icon: open ? "select-hide" : "select-open-down",
|
76
|
+
size: 18,
|
77
|
+
color: utils.colors.info_800
|
78
|
+
}
|
79
|
+
)
|
80
|
+
] }),
|
81
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-open": open, children: _panelSlot })
|
82
|
+
] });
|
83
|
+
};
|
84
|
+
const Control = ({ children }) => children;
|
85
|
+
const Panel = ({ children }) => children;
|
86
|
+
Accordion.Control = Control;
|
87
|
+
Accordion.Panel = Panel;
|
88
|
+
|
89
|
+
exports.default = Accordion;
|
@@ -151,6 +151,8 @@ require('../../assets/icons/face-happy.svg.cjs');
|
|
151
151
|
require('../../assets/icons/person-level.svg.cjs');
|
152
152
|
require('../../assets/icons/star-reward.svg.cjs');
|
153
153
|
require('../../assets/icons/brand-logo.svg.cjs');
|
154
|
+
require('../../assets/icons/house-wap.svg.cjs');
|
155
|
+
require('../../assets/icons/bulb.svg.cjs');
|
154
156
|
var Icon = require('../Icon/Icon.cjs');
|
155
157
|
var Spinner = require('../Spinner/Spinner.cjs');
|
156
158
|
var utils = require('../../utils');
|
@@ -148,6 +148,8 @@ var FaceHappyIcon = require('../../assets/icons/face-happy.svg.cjs');
|
|
148
148
|
var PersonLevelIcon = require('../../assets/icons/person-level.svg.cjs');
|
149
149
|
var StarRewardIcon = require('../../assets/icons/star-reward.svg.cjs');
|
150
150
|
var BrandLogoIcon = require('../../assets/icons/brand-logo.svg.cjs');
|
151
|
+
var HouseWapIcon = require('../../assets/icons/house-wap.svg.cjs');
|
152
|
+
var BulbIcon = require('../../assets/icons/bulb.svg.cjs');
|
151
153
|
|
152
154
|
const IconsList = {
|
153
155
|
asterix: AsterixIcon,
|
@@ -292,7 +294,9 @@ const IconsList = {
|
|
292
294
|
"face-happy": FaceHappyIcon,
|
293
295
|
"person-level": PersonLevelIcon,
|
294
296
|
"star-reward": StarRewardIcon,
|
295
|
-
"brand-logo": BrandLogoIcon
|
297
|
+
"brand-logo": BrandLogoIcon,
|
298
|
+
"house-wap": HouseWapIcon,
|
299
|
+
bulb: BulbIcon
|
296
300
|
};
|
297
301
|
|
298
302
|
exports.default = IconsList;
|
@@ -150,6 +150,8 @@ require('../../assets/icons/face-happy.svg.cjs');
|
|
150
150
|
require('../../assets/icons/person-level.svg.cjs');
|
151
151
|
require('../../assets/icons/star-reward.svg.cjs');
|
152
152
|
require('../../assets/icons/brand-logo.svg.cjs');
|
153
|
+
require('../../assets/icons/house-wap.svg.cjs');
|
154
|
+
require('../../assets/icons/bulb.svg.cjs');
|
153
155
|
var styled = require('styled-components');
|
154
156
|
var Icon = require('../Icon/Icon.cjs');
|
155
157
|
var Spinner = require('../Spinner/Spinner.cjs');
|
@@ -150,6 +150,8 @@ require('../../assets/icons/face-happy.svg.cjs');
|
|
150
150
|
require('../../assets/icons/person-level.svg.cjs');
|
151
151
|
require('../../assets/icons/star-reward.svg.cjs');
|
152
152
|
require('../../assets/icons/brand-logo.svg.cjs');
|
153
|
+
require('../../assets/icons/house-wap.svg.cjs');
|
154
|
+
require('../../assets/icons/bulb.svg.cjs');
|
153
155
|
var styled = require('styled-components');
|
154
156
|
var Icon = require('../Icon/Icon.cjs');
|
155
157
|
var utils = require('../../utils');
|
@@ -0,0 +1,433 @@
|
|
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 PropunereAsigurareLocuintaStyled = 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 ? "387px" : "427px"};
|
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
|
+
display: flex;
|
47
|
+
flex-direction: column;
|
48
|
+
|
49
|
+
& > div:first-of-type,
|
50
|
+
& > div:nth-of-type(2) {
|
51
|
+
box-sizing: border-box;
|
52
|
+
display: flex;
|
53
|
+
align-items: stretch;
|
54
|
+
gap: 8px;
|
55
|
+
padding: 8px 16px 12px 16px;
|
56
|
+
height: 60px;
|
57
|
+
background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
|
58
|
+
|
59
|
+
& > div {
|
60
|
+
display: flex;
|
61
|
+
flex-direction: column;
|
62
|
+
gap: 2px;
|
63
|
+
flex: 1;
|
64
|
+
|
65
|
+
& > span:first-of-type {
|
66
|
+
font-size: 14px;
|
67
|
+
font-weight: 400;
|
68
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
|
69
|
+
}
|
70
|
+
|
71
|
+
& > span:last-of-type {
|
72
|
+
font-size: 16px;
|
73
|
+
font-weight: 500;
|
74
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
& > div:last-of-type {
|
80
|
+
box-sizing: border-box;
|
81
|
+
display: flex;
|
82
|
+
flex-direction: column;
|
83
|
+
gap: 2px;
|
84
|
+
padding: 8px 16px 12px 16px;
|
85
|
+
min-height: 82px;
|
86
|
+
height: 100%;
|
87
|
+
background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
|
88
|
+
|
89
|
+
& > span:first-of-type {
|
90
|
+
font-size: 14px;
|
91
|
+
font-weight: 400;
|
92
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
|
93
|
+
}
|
94
|
+
|
95
|
+
& > span:last-of-type {
|
96
|
+
font-size: 20px;
|
97
|
+
font-weight: 700;
|
98
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
99
|
+
}
|
100
|
+
|
101
|
+
& > div {
|
102
|
+
display: flex;
|
103
|
+
align-items: center;
|
104
|
+
gap: 4px;
|
105
|
+
|
106
|
+
& > span {
|
107
|
+
font-size: 12px;
|
108
|
+
font-weight: 400;
|
109
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
& > div:last-child {
|
116
|
+
box-sizing: border-box;
|
117
|
+
border-top: 1px solid ${utils.colors.gray_200};
|
118
|
+
border-bottom: 1px solid ${utils.colors.gray_200};
|
119
|
+
display: flex;
|
120
|
+
align-items: stretch;
|
121
|
+
height: 95px;
|
122
|
+
|
123
|
+
& > div {
|
124
|
+
flex: 1;
|
125
|
+
display: flex;
|
126
|
+
align-items: flex-start;
|
127
|
+
padding: 12px 16px;
|
128
|
+
|
129
|
+
& > div {
|
130
|
+
display: flex;
|
131
|
+
align-items: flex-start;
|
132
|
+
gap: 8px;
|
133
|
+
|
134
|
+
& > div {
|
135
|
+
display: flex;
|
136
|
+
flex-direction: column;
|
137
|
+
gap: 2px;
|
138
|
+
|
139
|
+
& > span:first-of-type {
|
140
|
+
font-size: 12px;
|
141
|
+
font-weight: 400;
|
142
|
+
line-height: 120%;
|
143
|
+
}
|
144
|
+
|
145
|
+
& > span:nth-of-type(2) {
|
146
|
+
font-size: 14px;
|
147
|
+
font-weight: 500;
|
148
|
+
line-height: 120%;
|
149
|
+
}
|
150
|
+
|
151
|
+
& > span:nth-of-type(3) {
|
152
|
+
font-size: 14px;
|
153
|
+
font-weight: 400;
|
154
|
+
line-height: 120%;
|
155
|
+
}
|
156
|
+
|
157
|
+
& > span:nth-of-type(4) {
|
158
|
+
font-size: 14px;
|
159
|
+
font-weight: 400;
|
160
|
+
line-height: 120%;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
& > div:first-of-type {
|
167
|
+
border-right: 0.5px solid ${utils.colors.gray_200};
|
168
|
+
background-color: ${props.$refused ? utils.colors.gray_60 : props.$featured ? utils.colors.white : utils.colors.gray_30};
|
169
|
+
|
170
|
+
& > div {
|
171
|
+
& > div {
|
172
|
+
& > span:first-of-type {
|
173
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
|
174
|
+
}
|
175
|
+
|
176
|
+
& > span:nth-of-type(2) {
|
177
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
178
|
+
}
|
179
|
+
|
180
|
+
& > span:nth-of-type(3) {
|
181
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.info_800};
|
182
|
+
}
|
183
|
+
|
184
|
+
& > span:nth-of-type(4) {
|
185
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.info_800};
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
& > div:last-of-type {
|
192
|
+
border-left: 0.5px solid ${utils.colors.gray_200};
|
193
|
+
background-color: ${(props2) => props2.$refused ? utils.colors.gray_60 : utils.colors.gray_30};
|
194
|
+
|
195
|
+
& > div {
|
196
|
+
& > div {
|
197
|
+
& > span:first-of-type {
|
198
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
|
199
|
+
}
|
200
|
+
|
201
|
+
& > span:nth-of-type(2) {
|
202
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
|
203
|
+
}
|
204
|
+
|
205
|
+
& > span:nth-of-type(3) {
|
206
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.info_800};
|
207
|
+
}
|
208
|
+
|
209
|
+
& > span:nth-of-type(4) {
|
210
|
+
color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.info_800};
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
& > div:last-of-type {
|
219
|
+
height: 42px;
|
220
|
+
box-sizing: border-box;
|
221
|
+
}
|
222
|
+
|
223
|
+
& > button {
|
224
|
+
appearance: none;
|
225
|
+
border: none;
|
226
|
+
outline: none;
|
227
|
+
background-color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_100 : utils.colors.purple_600 : "transparent"};
|
228
|
+
padding: 0px;
|
229
|
+
width: 100%;
|
230
|
+
height: 40px;
|
231
|
+
display: flex;
|
232
|
+
align-items: center;
|
233
|
+
justify-content: center;
|
234
|
+
gap: 8px;
|
235
|
+
border-top: 1px solid ${utils.colors.gray_200};
|
236
|
+
cursor: pointer;
|
237
|
+
|
238
|
+
& > span {
|
239
|
+
font-size: 14px;
|
240
|
+
font-weight: 500;
|
241
|
+
line-height: 120%;
|
242
|
+
color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_600 : utils.colors.white : $disabled ? utils.colors.gray_300 : utils.colors.purple_600};
|
243
|
+
}
|
244
|
+
}
|
245
|
+
` : styled.css`
|
246
|
+
background-color: ${utils.colors.gray_30};
|
247
|
+
display: flex;
|
248
|
+
justify-content: center;
|
249
|
+
align-items: center;
|
250
|
+
padding: 16px;
|
251
|
+
|
252
|
+
& > div {
|
253
|
+
display: flex;
|
254
|
+
flex-direction: column;
|
255
|
+
gap: 16px;
|
256
|
+
justify-content: center;
|
257
|
+
align-items: center;
|
258
|
+
|
259
|
+
& > span {
|
260
|
+
font-size: 14px;
|
261
|
+
font-weight: 400;
|
262
|
+
line-height: 120%;
|
263
|
+
color: ${utils.colors.gray_500};
|
264
|
+
text-align: center;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
`}
|
268
|
+
`;
|
269
|
+
const PropunereAsigurareLocuinta = ({
|
270
|
+
title = "Fix ce ai cerut!",
|
271
|
+
valoareAsigurataImobil = "",
|
272
|
+
primaAsigurareImobilPeAn = "",
|
273
|
+
valoareAsigurataBunuri = "",
|
274
|
+
primaAsigurareBunuriPeAn = "",
|
275
|
+
totalDePlataAnual = "",
|
276
|
+
primaAsigurareAnexeImobil = "",
|
277
|
+
valoareAsigurataAnexeImobil = "",
|
278
|
+
primaAsigurareEchipamente = "",
|
279
|
+
valoareAsigurataEchipamente = "",
|
280
|
+
includePad = false,
|
281
|
+
featured = false,
|
282
|
+
selected = false,
|
283
|
+
disabled = false,
|
284
|
+
refused = false,
|
285
|
+
hideButton = false,
|
286
|
+
empty = false,
|
287
|
+
emptyText = "Indisponibil",
|
288
|
+
iconButtonOnClick,
|
289
|
+
buttonOnClick,
|
290
|
+
children,
|
291
|
+
...rest
|
292
|
+
}) => {
|
293
|
+
let _contentSlot = null;
|
294
|
+
React.Children.toArray(children).filter(Boolean).forEach((child) => {
|
295
|
+
const element = child;
|
296
|
+
if (element.type === ContentSlot) {
|
297
|
+
_contentSlot = child;
|
298
|
+
}
|
299
|
+
});
|
300
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
301
|
+
PropunereAsigurareLocuintaStyled,
|
302
|
+
{
|
303
|
+
$empty: empty,
|
304
|
+
$featured: featured,
|
305
|
+
$selected: selected,
|
306
|
+
$disabled: disabled,
|
307
|
+
$refused: refused,
|
308
|
+
$hideButton: hideButton,
|
309
|
+
...rest,
|
310
|
+
children: !empty ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
311
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
312
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
313
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
314
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
315
|
+
IconButton.default,
|
316
|
+
{
|
317
|
+
onClick: buttonOnClick,
|
318
|
+
icon: "new_tab",
|
319
|
+
intent: "accent",
|
320
|
+
variant: "tertiary",
|
321
|
+
shape: "rounded",
|
322
|
+
color: utils.colors.info_800,
|
323
|
+
size: "medium"
|
324
|
+
}
|
325
|
+
)
|
326
|
+
] }),
|
327
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
328
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
329
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
330
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Valoare asigurata imobil" }),
|
331
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: valoareAsigurataImobil || "-" })
|
332
|
+
] }),
|
333
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
334
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Prima asigurare imobil pe an" }),
|
335
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: primaAsigurareImobilPeAn || "-" })
|
336
|
+
] })
|
337
|
+
] }),
|
338
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
339
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
340
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Valoare asigurata bunuri" }),
|
341
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: valoareAsigurataBunuri || "-" })
|
342
|
+
] }),
|
343
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
344
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Prima asigurare bunuri pe an" }),
|
345
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: primaAsigurareBunuriPeAn || "-" })
|
346
|
+
] })
|
347
|
+
] }),
|
348
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
349
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Total de plata anual" }),
|
350
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: totalDePlataAnual || "-" }),
|
351
|
+
includePad && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
352
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
353
|
+
Icon.default,
|
354
|
+
{
|
355
|
+
icon: "info_filled",
|
356
|
+
size: 14,
|
357
|
+
color: refused ? utils.colors.gray_200 : utils.colors.gray_500
|
358
|
+
}
|
359
|
+
),
|
360
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Include PAD" })
|
361
|
+
] })
|
362
|
+
] })
|
363
|
+
] }),
|
364
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
365
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
366
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
367
|
+
Icon.default,
|
368
|
+
{
|
369
|
+
icon: "house-wap",
|
370
|
+
size: 16,
|
371
|
+
color: refused ? utils.colors.gray_200 : utils.colors.gray_500
|
372
|
+
}
|
373
|
+
),
|
374
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
375
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Prima asigurare anexe imobil" }),
|
376
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: primaAsigurareAnexeImobil || "-" }),
|
377
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Valoare asigurata" }),
|
378
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: valoareAsigurataAnexeImobil || "-" })
|
379
|
+
] })
|
380
|
+
] }) }),
|
381
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
382
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
383
|
+
Icon.default,
|
384
|
+
{
|
385
|
+
icon: "bulb",
|
386
|
+
size: 16,
|
387
|
+
color: refused ? utils.colors.gray_200 : utils.colors.gray_500
|
388
|
+
}
|
389
|
+
),
|
390
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
391
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Prima asigurare echipamente" }),
|
392
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: primaAsigurareEchipamente || "-" }),
|
393
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Valoare asigurata" }),
|
394
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: valoareAsigurataEchipamente || "-" })
|
395
|
+
] })
|
396
|
+
] }) })
|
397
|
+
] })
|
398
|
+
] }),
|
399
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: _contentSlot }),
|
400
|
+
!hideButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
401
|
+
"button",
|
402
|
+
{
|
403
|
+
disabled,
|
404
|
+
type: "button",
|
405
|
+
onClick: !disabled ? buttonOnClick : () => {
|
406
|
+
},
|
407
|
+
children: [
|
408
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
409
|
+
Icon.default,
|
410
|
+
{
|
411
|
+
icon: selected ? "checkmark_filled" : "checkmark-part",
|
412
|
+
size: 16,
|
413
|
+
color: selected ? disabled ? utils.colors.gray_600 : utils.colors.white : utils.colors.purple_600,
|
414
|
+
style: {
|
415
|
+
opacity: disabled && !selected ? "0.25" : "1"
|
416
|
+
}
|
417
|
+
}
|
418
|
+
),
|
419
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: selected ? "Varianta selectata" : "Vreau aceasta varianta!" })
|
420
|
+
]
|
421
|
+
}
|
422
|
+
)
|
423
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
424
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon.default, { size: 20, icon: "rejected", color: utils.colors.gray_500 }),
|
425
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: emptyText })
|
426
|
+
] })
|
427
|
+
}
|
428
|
+
);
|
429
|
+
};
|
430
|
+
const ContentSlot = ({ children }) => children;
|
431
|
+
PropunereAsigurareLocuinta.ContentSlot = ContentSlot;
|
432
|
+
|
433
|
+
exports.default = PropunereAsigurareLocuinta;
|