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,35 @@
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;
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 SvgBrandLogo = function SvgBrandLogo(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: "M5.372 21.727 12 15.043l6.628 6.684 2.63-2.649-6.63-6.686 1.383-1.396V8.241l.961-.97v2.403l.836.844 3.36-3.39.832.837c-.006-.632-.131-2.462-1.67-3.987-1.661-1.611-3.454-.885-4.067-.266L12.904 7.1l.857.863L12 9.74l-1.761-1.777.857-.863-3.36-3.39c-.612-.618-2.406-1.344-4.066.267C2.13 5.503 2.006 7.333 2 7.965l.831-.838 3.36 3.39.837-.843V7.271l.96.97v2.755l1.383 1.396-6.629 6.686z"
32
+ })));
33
+ };
34
+
35
+ module.exports = SvgBrandLogo;
@@ -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;
@@ -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 Accordion = require('./Accordion.cjs');
9
+
10
+
11
+
12
+ exports.default = Accordion.default;
@@ -150,6 +150,9 @@ require('../../assets/icons/hint-outlined.svg.cjs');
150
150
  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
+ require('../../assets/icons/brand-logo.svg.cjs');
154
+ require('../../assets/icons/house-wap.svg.cjs');
155
+ require('../../assets/icons/bulb.svg.cjs');
153
156
  var Icon = require('../Icon/Icon.cjs');
154
157
  var Spinner = require('../Spinner/Spinner.cjs');
155
158
  var utils = require('../../utils');
@@ -304,7 +304,6 @@ const CityPicker = ({
304
304
  }
305
305
  }, [wrapper_reference, isOpen]);
306
306
  React.useEffect(() => {
307
- if (isDirty.current) return;
308
307
  let labeledValue = "";
309
308
  if (value?.judet) {
310
309
  setJudet(value?.judet);
@@ -100,7 +100,25 @@ const DashboardCardStyled = styled.div`
100
100
  background-color: ${utils.colors.black};
101
101
  `}
102
102
 
103
- &> .a7b2c9d4e8f5h3 {
103
+ &>.a1b2c3d4e5adk4 {
104
+ position: absolute;
105
+ bottom: -11px;
106
+ right: 12px;
107
+ display: flex;
108
+ align-items: center;
109
+ gap: 4px;
110
+ padding: 1px 4px;
111
+ border-radius: 4px;
112
+ background-color: ${utils.colors.gray_950};
113
+
114
+ & > span {
115
+ font-size: 13px;
116
+ font-weight: 400;
117
+ color: ${utils.colors.accent_400};
118
+ }
119
+ }
120
+
121
+ & > .a7b2c9d4e8f5h3 {
104
122
  display: flex;
105
123
  position: absolute;
106
124
  top: -10%;
@@ -282,6 +300,7 @@ const DashboardCard = ({
282
300
  loading = false,
283
301
  statusConfiguratii = 0,
284
302
  retention = false,
303
+ promoText = "",
285
304
  ...rest
286
305
  }) => {
287
306
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -297,6 +316,10 @@ const DashboardCard = ({
297
316
  rest.onClick?.(event);
298
317
  },
299
318
  children: [
319
+ promoText.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "a1b2c3d4e5adk4", children: [
320
+ /* @__PURE__ */ jsxRuntime.jsx(Icon.default, { icon: "brand-logo", size: 12, color: utils.colors.accent_500 }),
321
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: promoText })
322
+ ] }),
300
323
  statusConfiguratii > 0 && !loading && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "a7b2c9d4e8f5h3", children: [
301
324
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: statusConfiguratii }),
302
325
  /* @__PURE__ */ jsxRuntime.jsx(Icon.default, { icon: "grocery-2", size: 14, color: utils.colors.white })
@@ -41,6 +41,7 @@ const DropdownWraperStyled = styled.div`
41
41
  }
42
42
 
43
43
  & > input {
44
+ box-sizing: border-box;
44
45
  border-radius: 8px;
45
46
  border: none;
46
47
  outline: none;
@@ -133,6 +134,7 @@ const DropdownContentStyled = styled.div`
133
134
  & > div:last-of-type {
134
135
  padding-right: 4px;
135
136
  div {
137
+ box-sizing: border-box;
136
138
  padding: 12px 8px 12px 12px;
137
139
  width: 100%;
138
140
  overflow-y: scroll;
@@ -156,6 +158,7 @@ const DropdownContentStyled = styled.div`
156
158
  white-space: nowrap;
157
159
  }
158
160
  & > div {
161
+ box-sizing: border-box;
159
162
  height: 42px;
160
163
  display: flex;
161
164
  align-items: center;
@@ -147,6 +147,9 @@ var HintOutlinedIcon = require('../../assets/icons/hint-outlined.svg.cjs');
147
147
  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
+ 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');
150
153
 
151
154
  const IconsList = {
152
155
  asterix: AsterixIcon,
@@ -290,7 +293,10 @@ const IconsList = {
290
293
  "hint-outlined": HintOutlinedIcon,
291
294
  "face-happy": FaceHappyIcon,
292
295
  "person-level": PersonLevelIcon,
293
- "star-reward": StarRewardIcon
296
+ "star-reward": StarRewardIcon,
297
+ "brand-logo": BrandLogoIcon,
298
+ "house-wap": HouseWapIcon,
299
+ bulb: BulbIcon
294
300
  };
295
301
 
296
302
  exports.default = IconsList;
@@ -149,6 +149,9 @@ require('../../assets/icons/hint-outlined.svg.cjs');
149
149
  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
+ require('../../assets/icons/brand-logo.svg.cjs');
153
+ require('../../assets/icons/house-wap.svg.cjs');
154
+ require('../../assets/icons/bulb.svg.cjs');
152
155
  var styled = require('styled-components');
153
156
  var Icon = require('../Icon/Icon.cjs');
154
157
  var Spinner = require('../Spinner/Spinner.cjs');
@@ -149,6 +149,9 @@ require('../../assets/icons/hint-outlined.svg.cjs');
149
149
  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
+ require('../../assets/icons/brand-logo.svg.cjs');
153
+ require('../../assets/icons/house-wap.svg.cjs');
154
+ require('../../assets/icons/bulb.svg.cjs');
152
155
  var styled = require('styled-components');
153
156
  var Icon = require('../Icon/Icon.cjs');
154
157
  var utils = require('../../utils');