rbro-tat-uds 2.2.16 → 2.2.17

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.
@@ -78,7 +78,7 @@ const Accordion = ({ open = false, children, ...rest }) => {
78
78
  {
79
79
  icon: open ? "select-hide" : "select-open-down",
80
80
  size: 18,
81
- color: utils.colors.info_800
81
+ color: utils.colors.info_600
82
82
  }
83
83
  )
84
84
  ] }),
@@ -0,0 +1,66 @@
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
+
13
+ const ConfigurationStickyBarStyled = styled.div`
14
+ position: fixed;
15
+ width: 100%;
16
+ left: 0;
17
+ bottom: 0;
18
+ z-index: 9999;
19
+ padding-left: 110px;
20
+ display: ${({ $visible }) => $visible ? "flex" : "none"};
21
+ align-items: center;
22
+ justify-content: center;
23
+ box-sizing: border-box;
24
+
25
+ & > div {
26
+ width: 100%;
27
+ padding: 0px 32px;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ max-width: 1220px;
32
+
33
+ & > div {
34
+ width: 100%;
35
+ border-top: 1px solid ${utils.colors.gray_300};
36
+ border-left: 1px solid ${utils.colors.gray_300};
37
+ border-right: 1px solid ${utils.colors.gray_300};
38
+ background-color: ${utils.colors.white};
39
+ }
40
+ }
41
+ `;
42
+ const ConfigurationStickyBar = ({
43
+ referenceContent,
44
+ children,
45
+ threshold = 0.6,
46
+ ...rest
47
+ }) => {
48
+ const [isVisible, setIsVisible] = React.useState(false);
49
+ React.useEffect(() => {
50
+ if (!referenceContent?.current) return;
51
+ const observer = new IntersectionObserver(
52
+ ([entry]) => {
53
+ setIsVisible(entry.intersectionRatio < threshold);
54
+ },
55
+ {
56
+ threshold: [threshold],
57
+ root: null
58
+ }
59
+ );
60
+ observer.observe(referenceContent.current);
61
+ return () => observer.disconnect();
62
+ }, [referenceContent, threshold]);
63
+ return /* @__PURE__ */ jsxRuntime.jsx(ConfigurationStickyBarStyled, { $visible: isVisible, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }) });
64
+ };
65
+
66
+ exports.default = ConfigurationStickyBar;
@@ -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 ConfigurationStickyBar = require('./ConfigurationStickyBar.cjs');
9
+
10
+
11
+
12
+ exports.default = ConfigurationStickyBar.default;
@@ -33,7 +33,15 @@ const Content = ({
33
33
  gap = 32,
34
34
  ...rest
35
35
  }) => {
36
- return /* @__PURE__ */ jsxRuntime.jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(StyledContentInside, { $padding: padding, $gap: gap, children }) });
36
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
37
+ StyledContentInside,
38
+ {
39
+ className: "uds-inner-content-component",
40
+ $padding: padding,
41
+ $gap: gap,
42
+ children
43
+ }
44
+ ) });
37
45
  };
38
46
 
39
47
  exports.default = Content;
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
- require('react');
9
+ var React = require('react');
10
10
  var styled = require('styled-components');
11
11
  var utils = require('../../utils');
12
12
 
@@ -69,60 +69,64 @@ const StyledFlex = styled.div`
69
69
  ${props.$css}
70
70
  `}
71
71
  `;
72
- const Flex = ({
73
- children,
74
- element = "div",
75
- width,
76
- height,
77
- background,
78
- gap,
79
- direction,
80
- wrap,
81
- grow,
82
- shrink,
83
- basis,
84
- justify,
85
- items,
86
- content,
87
- padding,
88
- margin,
89
- radius,
90
- border,
91
- css: css2,
92
- ...rest
93
- }) => {
94
- const limitedAs = {
95
- div: "div",
96
- main: "main",
97
- article: "article",
98
- p: "p",
99
- span: "span"
100
- };
101
- return /* @__PURE__ */ jsxRuntime.jsx(
102
- StyledFlex,
103
- {
104
- $width: width,
105
- $height: height,
106
- $background: background,
107
- $gap: gap,
108
- $wrap: wrap,
109
- $grow: grow,
110
- $shrink: shrink,
111
- $basis: basis,
112
- $justify: justify,
113
- $items: items,
114
- $content: content,
115
- $padding: padding,
116
- $margin: margin,
117
- $radius: radius,
118
- $border: border,
119
- $css: css2,
120
- $direction: direction,
121
- as: limitedAs[element],
122
- ...rest,
123
- children
124
- }
125
- );
126
- };
72
+ const Flex = React.forwardRef(
73
+ ({
74
+ children,
75
+ element = "div",
76
+ width,
77
+ height,
78
+ background,
79
+ gap,
80
+ direction,
81
+ wrap,
82
+ grow,
83
+ shrink,
84
+ basis,
85
+ justify,
86
+ items,
87
+ content,
88
+ padding,
89
+ margin,
90
+ radius,
91
+ border,
92
+ css: css2,
93
+ ...rest
94
+ }, ref) => {
95
+ const limitedAs = {
96
+ div: "div",
97
+ main: "main",
98
+ article: "article",
99
+ p: "p",
100
+ span: "span"
101
+ };
102
+ return /* @__PURE__ */ jsxRuntime.jsx(
103
+ StyledFlex,
104
+ {
105
+ ref,
106
+ $width: width,
107
+ $height: height,
108
+ $background: background,
109
+ $gap: gap,
110
+ $wrap: wrap,
111
+ $grow: grow,
112
+ $shrink: shrink,
113
+ $basis: basis,
114
+ $justify: justify,
115
+ $items: items,
116
+ $content: content,
117
+ $padding: padding,
118
+ $margin: margin,
119
+ $radius: radius,
120
+ $border: border,
121
+ $css: css2,
122
+ $direction: direction,
123
+ as: limitedAs[element],
124
+ ...rest,
125
+ children
126
+ }
127
+ );
128
+ }
129
+ );
130
+ Flex.displayName = "Flex";
127
131
 
128
132
  exports.default = Flex;
@@ -95,6 +95,7 @@ var Accordion = require('./Accordion/Accordion.cjs');
95
95
  var PropunereAsigurareLocuinta = require('./PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.cjs');
96
96
  var Textarea = require('./Textarea/Textarea.cjs');
97
97
  var FeedbackCard = require('./FeedbackCard/FeedbackCard.cjs');
98
+ var ConfigurationStickyBar = require('./ConfigurationStickyBar/ConfigurationStickyBar.cjs');
98
99
 
99
100
 
100
101
 
@@ -190,3 +191,4 @@ exports.Accordion = Accordion.default;
190
191
  exports.PropunereAsigurareLocuinta = PropunereAsigurareLocuinta.default;
191
192
  exports.Textarea = Textarea.default;
192
193
  exports.FeedbackCard = FeedbackCard.default;
194
+ exports.ConfigurationStickyBar = ConfigurationStickyBar.default;
@@ -61248,7 +61248,15 @@ const Content = ({
61248
61248
  gap = 32,
61249
61249
  ...rest
61250
61250
  }) => {
61251
- return /* @__PURE__ */ jsxRuntime.jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(StyledContentInside, { $padding: padding, $gap: gap, children }) });
61251
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
61252
+ StyledContentInside,
61253
+ {
61254
+ className: "uds-inner-content-component",
61255
+ $padding: padding,
61256
+ $gap: gap,
61257
+ children
61258
+ }
61259
+ ) });
61252
61260
  };
61253
61261
 
61254
61262
  const ContentDropdownStyled = styled__default.default.div`
@@ -64839,61 +64847,65 @@ const StyledFlex = styled__default.default.div`
64839
64847
  ${props.$css}
64840
64848
  `}
64841
64849
  `;
64842
- const Flex = ({
64843
- children,
64844
- element = "div",
64845
- width,
64846
- height,
64847
- background,
64848
- gap,
64849
- direction,
64850
- wrap,
64851
- grow,
64852
- shrink,
64853
- basis,
64854
- justify,
64855
- items,
64856
- content,
64857
- padding,
64858
- margin,
64859
- radius,
64860
- border,
64861
- css: css2,
64862
- ...rest
64863
- }) => {
64864
- const limitedAs = {
64865
- div: "div",
64866
- main: "main",
64867
- article: "article",
64868
- p: "p",
64869
- span: "span"
64870
- };
64871
- return /* @__PURE__ */ jsxRuntime.jsx(
64872
- StyledFlex,
64873
- {
64874
- $width: width,
64875
- $height: height,
64876
- $background: background,
64877
- $gap: gap,
64878
- $wrap: wrap,
64879
- $grow: grow,
64880
- $shrink: shrink,
64881
- $basis: basis,
64882
- $justify: justify,
64883
- $items: items,
64884
- $content: content,
64885
- $padding: padding,
64886
- $margin: margin,
64887
- $radius: radius,
64888
- $border: border,
64889
- $css: css2,
64890
- $direction: direction,
64891
- as: limitedAs[element],
64892
- ...rest,
64893
- children
64894
- }
64895
- );
64896
- };
64850
+ const Flex = React__namespace.default.forwardRef(
64851
+ ({
64852
+ children,
64853
+ element = "div",
64854
+ width,
64855
+ height,
64856
+ background,
64857
+ gap,
64858
+ direction,
64859
+ wrap,
64860
+ grow,
64861
+ shrink,
64862
+ basis,
64863
+ justify,
64864
+ items,
64865
+ content,
64866
+ padding,
64867
+ margin,
64868
+ radius,
64869
+ border,
64870
+ css: css2,
64871
+ ...rest
64872
+ }, ref) => {
64873
+ const limitedAs = {
64874
+ div: "div",
64875
+ main: "main",
64876
+ article: "article",
64877
+ p: "p",
64878
+ span: "span"
64879
+ };
64880
+ return /* @__PURE__ */ jsxRuntime.jsx(
64881
+ StyledFlex,
64882
+ {
64883
+ ref,
64884
+ $width: width,
64885
+ $height: height,
64886
+ $background: background,
64887
+ $gap: gap,
64888
+ $wrap: wrap,
64889
+ $grow: grow,
64890
+ $shrink: shrink,
64891
+ $basis: basis,
64892
+ $justify: justify,
64893
+ $items: items,
64894
+ $content: content,
64895
+ $padding: padding,
64896
+ $margin: margin,
64897
+ $radius: radius,
64898
+ $border: border,
64899
+ $css: css2,
64900
+ $direction: direction,
64901
+ as: limitedAs[element],
64902
+ ...rest,
64903
+ children
64904
+ }
64905
+ );
64906
+ }
64907
+ );
64908
+ Flex.displayName = "Flex";
64897
64909
 
64898
64910
  const GraficConfiguratiePensiiStyled = styled__default.default.svg`
64899
64911
  & > .limitMinLabel {
@@ -81933,7 +81945,7 @@ const Accordion = ({ open = false, children, ...rest }) => {
81933
81945
  {
81934
81946
  icon: open ? "select-hide" : "select-open-down",
81935
81947
  size: 18,
81936
- color: utils.colors.info_800
81948
+ color: utils.colors.info_600
81937
81949
  }
81938
81950
  )
81939
81951
  ] }),
@@ -82482,6 +82494,59 @@ const FeedbackCard = ({
82482
82494
  );
82483
82495
  };
82484
82496
 
82497
+ const ConfigurationStickyBarStyled = styled__default.default.div`
82498
+ position: fixed;
82499
+ width: 100%;
82500
+ left: 0;
82501
+ bottom: 0;
82502
+ z-index: 9999;
82503
+ padding-left: 110px;
82504
+ display: ${({ $visible }) => $visible ? "flex" : "none"};
82505
+ align-items: center;
82506
+ justify-content: center;
82507
+ box-sizing: border-box;
82508
+
82509
+ & > div {
82510
+ width: 100%;
82511
+ padding: 0px 32px;
82512
+ display: flex;
82513
+ align-items: center;
82514
+ justify-content: center;
82515
+ max-width: 1220px;
82516
+
82517
+ & > div {
82518
+ width: 100%;
82519
+ border-top: 1px solid ${utils.colors.gray_300};
82520
+ border-left: 1px solid ${utils.colors.gray_300};
82521
+ border-right: 1px solid ${utils.colors.gray_300};
82522
+ background-color: ${utils.colors.white};
82523
+ }
82524
+ }
82525
+ `;
82526
+ const ConfigurationStickyBar = ({
82527
+ referenceContent,
82528
+ children,
82529
+ threshold = 0.6,
82530
+ ...rest
82531
+ }) => {
82532
+ const [isVisible, setIsVisible] = React.useState(false);
82533
+ React.useEffect(() => {
82534
+ if (!referenceContent?.current) return;
82535
+ const observer = new IntersectionObserver(
82536
+ ([entry]) => {
82537
+ setIsVisible(entry.intersectionRatio < threshold);
82538
+ },
82539
+ {
82540
+ threshold: [threshold],
82541
+ root: null
82542
+ }
82543
+ );
82544
+ observer.observe(referenceContent.current);
82545
+ return () => observer.disconnect();
82546
+ }, [referenceContent, threshold]);
82547
+ return /* @__PURE__ */ jsxRuntime.jsx(ConfigurationStickyBarStyled, { $visible: isVisible, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }) });
82548
+ };
82549
+
82485
82550
  exports.Accordion = Accordion;
82486
82551
  exports.Alert = Alert;
82487
82552
  exports.AppBranding = AppBranding;
@@ -82495,6 +82560,7 @@ exports.Card = Card;
82495
82560
  exports.Checkbox = Checkbox;
82496
82561
  exports.CityPicker = CityPicker;
82497
82562
  exports.ConfigurationSaveInfo = ConfigurationSaveInfo;
82563
+ exports.ConfigurationStickyBar = ConfigurationStickyBar;
82498
82564
  exports.Container = Container;
82499
82565
  exports.Content = Content;
82500
82566
  exports.ContentDropdown = ContentDropdown;
@@ -74,7 +74,7 @@ const Accordion = ({ open = false, children, ...rest }) => {
74
74
  {
75
75
  icon: open ? "select-hide" : "select-open-down",
76
76
  size: 18,
77
- color: colors.info_800
77
+ color: colors.info_600
78
78
  }
79
79
  )
80
80
  ] }),
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ import { jsx } from 'react/jsx-runtime';
5
+ import { useState, useEffect } from 'react';
6
+ import styled from 'styled-components';
7
+ import { colors } from '../../utils';
8
+
9
+ const ConfigurationStickyBarStyled = styled.div`
10
+ position: fixed;
11
+ width: 100%;
12
+ left: 0;
13
+ bottom: 0;
14
+ z-index: 9999;
15
+ padding-left: 110px;
16
+ display: ${({ $visible }) => $visible ? "flex" : "none"};
17
+ align-items: center;
18
+ justify-content: center;
19
+ box-sizing: border-box;
20
+
21
+ & > div {
22
+ width: 100%;
23
+ padding: 0px 32px;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ max-width: 1220px;
28
+
29
+ & > div {
30
+ width: 100%;
31
+ border-top: 1px solid ${colors.gray_300};
32
+ border-left: 1px solid ${colors.gray_300};
33
+ border-right: 1px solid ${colors.gray_300};
34
+ background-color: ${colors.white};
35
+ }
36
+ }
37
+ `;
38
+ const ConfigurationStickyBar = ({
39
+ referenceContent,
40
+ children,
41
+ threshold = 0.6,
42
+ ...rest
43
+ }) => {
44
+ const [isVisible, setIsVisible] = useState(false);
45
+ useEffect(() => {
46
+ if (!referenceContent?.current) return;
47
+ const observer = new IntersectionObserver(
48
+ ([entry]) => {
49
+ setIsVisible(entry.intersectionRatio < threshold);
50
+ },
51
+ {
52
+ threshold: [threshold],
53
+ root: null
54
+ }
55
+ );
56
+ observer.observe(referenceContent.current);
57
+ return () => observer.disconnect();
58
+ }, [referenceContent, threshold]);
59
+ return /* @__PURE__ */ jsx(ConfigurationStickyBarStyled, { $visible: isVisible, ...rest, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { children }) }) });
60
+ };
61
+
62
+ export { ConfigurationStickyBar as default };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ import ConfigurationStickyBar from './ConfigurationStickyBar.js';
5
+
6
+
7
+
8
+ export { ConfigurationStickyBar as default };
@@ -29,7 +29,15 @@ const Content = ({
29
29
  gap = 32,
30
30
  ...rest
31
31
  }) => {
32
- return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(StyledContentInside, { $padding: padding, $gap: gap, children }) });
32
+ return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(
33
+ StyledContentInside,
34
+ {
35
+ className: "uds-inner-content-component",
36
+ $padding: padding,
37
+ $gap: gap,
38
+ children
39
+ }
40
+ ) });
33
41
  };
34
42
 
35
43
  export { Content as default };
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
 
4
4
  import { jsx } from 'react/jsx-runtime';
5
- import 'react';
5
+ import React__default from 'react';
6
6
  import styled, { css } from 'styled-components';
7
7
  import { colors } from '../../utils';
8
8
 
@@ -65,60 +65,64 @@ const StyledFlex = styled.div`
65
65
  ${props.$css}
66
66
  `}
67
67
  `;
68
- const Flex = ({
69
- children,
70
- element = "div",
71
- width,
72
- height,
73
- background,
74
- gap,
75
- direction,
76
- wrap,
77
- grow,
78
- shrink,
79
- basis,
80
- justify,
81
- items,
82
- content,
83
- padding,
84
- margin,
85
- radius,
86
- border,
87
- css: css2,
88
- ...rest
89
- }) => {
90
- const limitedAs = {
91
- div: "div",
92
- main: "main",
93
- article: "article",
94
- p: "p",
95
- span: "span"
96
- };
97
- return /* @__PURE__ */ jsx(
98
- StyledFlex,
99
- {
100
- $width: width,
101
- $height: height,
102
- $background: background,
103
- $gap: gap,
104
- $wrap: wrap,
105
- $grow: grow,
106
- $shrink: shrink,
107
- $basis: basis,
108
- $justify: justify,
109
- $items: items,
110
- $content: content,
111
- $padding: padding,
112
- $margin: margin,
113
- $radius: radius,
114
- $border: border,
115
- $css: css2,
116
- $direction: direction,
117
- as: limitedAs[element],
118
- ...rest,
119
- children
120
- }
121
- );
122
- };
68
+ const Flex = React__default.forwardRef(
69
+ ({
70
+ children,
71
+ element = "div",
72
+ width,
73
+ height,
74
+ background,
75
+ gap,
76
+ direction,
77
+ wrap,
78
+ grow,
79
+ shrink,
80
+ basis,
81
+ justify,
82
+ items,
83
+ content,
84
+ padding,
85
+ margin,
86
+ radius,
87
+ border,
88
+ css: css2,
89
+ ...rest
90
+ }, ref) => {
91
+ const limitedAs = {
92
+ div: "div",
93
+ main: "main",
94
+ article: "article",
95
+ p: "p",
96
+ span: "span"
97
+ };
98
+ return /* @__PURE__ */ jsx(
99
+ StyledFlex,
100
+ {
101
+ ref,
102
+ $width: width,
103
+ $height: height,
104
+ $background: background,
105
+ $gap: gap,
106
+ $wrap: wrap,
107
+ $grow: grow,
108
+ $shrink: shrink,
109
+ $basis: basis,
110
+ $justify: justify,
111
+ $items: items,
112
+ $content: content,
113
+ $padding: padding,
114
+ $margin: margin,
115
+ $radius: radius,
116
+ $border: border,
117
+ $css: css2,
118
+ $direction: direction,
119
+ as: limitedAs[element],
120
+ ...rest,
121
+ children
122
+ }
123
+ );
124
+ }
125
+ );
126
+ Flex.displayName = "Flex";
123
127
 
124
128
  export { Flex as default };
@@ -93,3 +93,4 @@ export { default as Accordion } from './Accordion/Accordion.js';
93
93
  export { default as PropunereAsigurareLocuinta } from './PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.js';
94
94
  export { default as Textarea } from './Textarea/Textarea.js';
95
95
  export { default as FeedbackCard } from './FeedbackCard/FeedbackCard.js';
96
+ export { default as ConfigurationStickyBar } from './ConfigurationStickyBar/ConfigurationStickyBar.js';
@@ -61225,7 +61225,15 @@ const Content = ({
61225
61225
  gap = 32,
61226
61226
  ...rest
61227
61227
  }) => {
61228
- return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(StyledContentInside, { $padding: padding, $gap: gap, children }) });
61228
+ return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(
61229
+ StyledContentInside,
61230
+ {
61231
+ className: "uds-inner-content-component",
61232
+ $padding: padding,
61233
+ $gap: gap,
61234
+ children
61235
+ }
61236
+ ) });
61229
61237
  };
61230
61238
 
61231
61239
  const ContentDropdownStyled = styled.div`
@@ -64816,61 +64824,65 @@ const StyledFlex = styled.div`
64816
64824
  ${props.$css}
64817
64825
  `}
64818
64826
  `;
64819
- const Flex = ({
64820
- children,
64821
- element = "div",
64822
- width,
64823
- height,
64824
- background,
64825
- gap,
64826
- direction,
64827
- wrap,
64828
- grow,
64829
- shrink,
64830
- basis,
64831
- justify,
64832
- items,
64833
- content,
64834
- padding,
64835
- margin,
64836
- radius,
64837
- border,
64838
- css: css2,
64839
- ...rest
64840
- }) => {
64841
- const limitedAs = {
64842
- div: "div",
64843
- main: "main",
64844
- article: "article",
64845
- p: "p",
64846
- span: "span"
64847
- };
64848
- return /* @__PURE__ */ jsx(
64849
- StyledFlex,
64850
- {
64851
- $width: width,
64852
- $height: height,
64853
- $background: background,
64854
- $gap: gap,
64855
- $wrap: wrap,
64856
- $grow: grow,
64857
- $shrink: shrink,
64858
- $basis: basis,
64859
- $justify: justify,
64860
- $items: items,
64861
- $content: content,
64862
- $padding: padding,
64863
- $margin: margin,
64864
- $radius: radius,
64865
- $border: border,
64866
- $css: css2,
64867
- $direction: direction,
64868
- as: limitedAs[element],
64869
- ...rest,
64870
- children
64871
- }
64872
- );
64873
- };
64827
+ const Flex = React__default.forwardRef(
64828
+ ({
64829
+ children,
64830
+ element = "div",
64831
+ width,
64832
+ height,
64833
+ background,
64834
+ gap,
64835
+ direction,
64836
+ wrap,
64837
+ grow,
64838
+ shrink,
64839
+ basis,
64840
+ justify,
64841
+ items,
64842
+ content,
64843
+ padding,
64844
+ margin,
64845
+ radius,
64846
+ border,
64847
+ css: css2,
64848
+ ...rest
64849
+ }, ref) => {
64850
+ const limitedAs = {
64851
+ div: "div",
64852
+ main: "main",
64853
+ article: "article",
64854
+ p: "p",
64855
+ span: "span"
64856
+ };
64857
+ return /* @__PURE__ */ jsx(
64858
+ StyledFlex,
64859
+ {
64860
+ ref,
64861
+ $width: width,
64862
+ $height: height,
64863
+ $background: background,
64864
+ $gap: gap,
64865
+ $wrap: wrap,
64866
+ $grow: grow,
64867
+ $shrink: shrink,
64868
+ $basis: basis,
64869
+ $justify: justify,
64870
+ $items: items,
64871
+ $content: content,
64872
+ $padding: padding,
64873
+ $margin: margin,
64874
+ $radius: radius,
64875
+ $border: border,
64876
+ $css: css2,
64877
+ $direction: direction,
64878
+ as: limitedAs[element],
64879
+ ...rest,
64880
+ children
64881
+ }
64882
+ );
64883
+ }
64884
+ );
64885
+ Flex.displayName = "Flex";
64874
64886
 
64875
64887
  const GraficConfiguratiePensiiStyled = styled.svg`
64876
64888
  & > .limitMinLabel {
@@ -81910,7 +81922,7 @@ const Accordion = ({ open = false, children, ...rest }) => {
81910
81922
  {
81911
81923
  icon: open ? "select-hide" : "select-open-down",
81912
81924
  size: 18,
81913
- color: colors.info_800
81925
+ color: colors.info_600
81914
81926
  }
81915
81927
  )
81916
81928
  ] }),
@@ -82459,4 +82471,57 @@ const FeedbackCard = ({
82459
82471
  );
82460
82472
  };
82461
82473
 
82462
- export { Accordion, Alert, AppBranding, AutosaveStatus, Bar, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, Card, Checkbox, CityPicker, ConfigurationSaveInfo, Container, Content, ContentDropdown, CreditCard, DashboardCard, DashboardCategory, DashboardSmallShortcut, Datepicker, Divider, DonutGraph, Dropdown, FeedbackCard, Flex, FormField, GraficConfiguratiePensii, GraficContributieUnitlinked, GraficFondInvestitii, GraficFondInvestitiiInflatie, GraficPensii, GraficPlanInvestitii, GraficPropunerePensii, Icon$1 as Icon, IconButton, IconCard, Illustration, ImageCard, InPageTab, InvestmentFundItem, LabeledText, LabeledTextInLine, Layout, Logo, Modal, ObjectiveCard, ObjectiveCardSmall, OfferCard, OperationsDashboardCard, OperationsDashboardCategory, PageMessage, PageTitle, Pill, PlanFinanciarAUMBar, PlanFinanciarAUMGraph, PlanulFinanciarTeaser, ProductTeaser, ProductTeaserButton, ProductTeaserParameters, ProductTeaserStep, ProposalPensii, ProposalUnitlinked, PropunereAsigurareLocuinta, PropunereAsigurariCalatorie, PropunereFlexicredit, PropunereFondInvestitii, PropunuerePlanInvestitii as PropunerePlanInvestitii, Radio, RatesCalculator, Section, SegmentedTabs, SelectionAppCard, SelectionButton, SelectionPill, ShortcutCard, Sidebar, SidebarItem, Slider, Spinner, StepTab, StepsBar, Switch, Tab, TextInput, Textarea, TimedButton, TimelineSteps, TimelineStepsItem, Timer, UnitLinkGraph as UnitlinkGraph, VerticalHeat };
82474
+ const ConfigurationStickyBarStyled = styled.div`
82475
+ position: fixed;
82476
+ width: 100%;
82477
+ left: 0;
82478
+ bottom: 0;
82479
+ z-index: 9999;
82480
+ padding-left: 110px;
82481
+ display: ${({ $visible }) => $visible ? "flex" : "none"};
82482
+ align-items: center;
82483
+ justify-content: center;
82484
+ box-sizing: border-box;
82485
+
82486
+ & > div {
82487
+ width: 100%;
82488
+ padding: 0px 32px;
82489
+ display: flex;
82490
+ align-items: center;
82491
+ justify-content: center;
82492
+ max-width: 1220px;
82493
+
82494
+ & > div {
82495
+ width: 100%;
82496
+ border-top: 1px solid ${colors.gray_300};
82497
+ border-left: 1px solid ${colors.gray_300};
82498
+ border-right: 1px solid ${colors.gray_300};
82499
+ background-color: ${colors.white};
82500
+ }
82501
+ }
82502
+ `;
82503
+ const ConfigurationStickyBar = ({
82504
+ referenceContent,
82505
+ children,
82506
+ threshold = 0.6,
82507
+ ...rest
82508
+ }) => {
82509
+ const [isVisible, setIsVisible] = useState(false);
82510
+ useEffect(() => {
82511
+ if (!referenceContent?.current) return;
82512
+ const observer = new IntersectionObserver(
82513
+ ([entry]) => {
82514
+ setIsVisible(entry.intersectionRatio < threshold);
82515
+ },
82516
+ {
82517
+ threshold: [threshold],
82518
+ root: null
82519
+ }
82520
+ );
82521
+ observer.observe(referenceContent.current);
82522
+ return () => observer.disconnect();
82523
+ }, [referenceContent, threshold]);
82524
+ return /* @__PURE__ */ jsx(ConfigurationStickyBarStyled, { $visible: isVisible, ...rest, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { children }) }) });
82525
+ };
82526
+
82527
+ export { Accordion, Alert, AppBranding, AutosaveStatus, Bar, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, Card, Checkbox, CityPicker, ConfigurationSaveInfo, ConfigurationStickyBar, Container, Content, ContentDropdown, CreditCard, DashboardCard, DashboardCategory, DashboardSmallShortcut, Datepicker, Divider, DonutGraph, Dropdown, FeedbackCard, Flex, FormField, GraficConfiguratiePensii, GraficContributieUnitlinked, GraficFondInvestitii, GraficFondInvestitiiInflatie, GraficPensii, GraficPlanInvestitii, GraficPropunerePensii, Icon$1 as Icon, IconButton, IconCard, Illustration, ImageCard, InPageTab, InvestmentFundItem, LabeledText, LabeledTextInLine, Layout, Logo, Modal, ObjectiveCard, ObjectiveCardSmall, OfferCard, OperationsDashboardCard, OperationsDashboardCategory, PageMessage, PageTitle, Pill, PlanFinanciarAUMBar, PlanFinanciarAUMGraph, PlanulFinanciarTeaser, ProductTeaser, ProductTeaserButton, ProductTeaserParameters, ProductTeaserStep, ProposalPensii, ProposalUnitlinked, PropunereAsigurareLocuinta, PropunereAsigurariCalatorie, PropunereFlexicredit, PropunereFondInvestitii, PropunuerePlanInvestitii as PropunerePlanInvestitii, Radio, RatesCalculator, Section, SegmentedTabs, SelectionAppCard, SelectionButton, SelectionPill, ShortcutCard, Sidebar, SidebarItem, Slider, Spinner, StepTab, StepsBar, Switch, Tab, TextInput, Textarea, TimedButton, TimelineSteps, TimelineStepsItem, Timer, UnitLinkGraph as UnitlinkGraph, VerticalHeat };
@@ -0,0 +1,11 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+
3
+ interface ConfigurationStickyBarProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: React.ReactNode;
5
+ referenceContent: React.RefObject<HTMLDivElement | null>;
6
+ threshold?: number;
7
+ }
8
+ declare const ConfigurationStickyBar: React.FC<ConfigurationStickyBarProps>;
9
+
10
+ export { ConfigurationStickyBar as default };
11
+ export type { ConfigurationStickyBarProps };
@@ -0,0 +1,6 @@
1
+ import ConfigurationStickyBar from './ConfigurationStickyBar.js';
2
+ export { ConfigurationStickyBarProps } from './ConfigurationStickyBar.js';
3
+
4
+
5
+
6
+ export { ConfigurationStickyBar as default };
@@ -28,7 +28,7 @@ interface FlexProps extends HTMLAttributes<HTMLDivElement> {
28
28
  border?: string;
29
29
  css?: string;
30
30
  }
31
- declare const Flex: React.FC<FlexProps>;
31
+ declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
32
32
 
33
33
  export { Flex as default };
34
34
  export type { FlexProps };
@@ -91,3 +91,4 @@ export { default as Accordion, AccordionProps } from './components/Accordion/Acc
91
91
  export { default as PropunereAsigurareLocuinta, PropunereAsigurareLocuintaProps } from './components/PropunereAsigurareLocuinta/PropunereAsigurareLocuinta.js';
92
92
  export { default as Textarea, TextareaProps } from './components/Textarea/Textarea.js';
93
93
  export { default as FeedbackCard, FeedbackCardProps } from './components/FeedbackCard/FeedbackCard.js';
94
+ export { default as ConfigurationStickyBar, ConfigurationStickyBarProps } from './components/ConfigurationStickyBar/ConfigurationStickyBar.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbro-tat-uds",
3
- "version": "2.2.16",
3
+ "version": "2.2.17",
4
4
  "type": "module",
5
5
  "main": "build/cjs/index.cjs",
6
6
  "module": "build/esm/index.js",