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.
- package/build/cjs/components/Accordion/Accordion.cjs +1 -1
- package/build/cjs/components/ConfigurationStickyBar/ConfigurationStickyBar.cjs +66 -0
- package/build/cjs/components/ConfigurationStickyBar/index.cjs +12 -0
- package/build/cjs/components/Content/Content.cjs +9 -1
- package/build/cjs/components/Flex/Flex.cjs +60 -56
- package/build/cjs/components/index.cjs +2 -0
- package/build/cjs/index.cjs +123 -57
- package/build/esm/components/Accordion/Accordion.js +1 -1
- package/build/esm/components/ConfigurationStickyBar/ConfigurationStickyBar.js +62 -0
- package/build/esm/components/ConfigurationStickyBar/index.js +8 -0
- package/build/esm/components/Content/Content.js +9 -1
- package/build/esm/components/Flex/Flex.js +60 -56
- package/build/esm/components/index.js +1 -0
- package/build/esm/index.js +123 -58
- package/build/types/components/ConfigurationStickyBar/ConfigurationStickyBar.d.ts +11 -0
- package/build/types/components/ConfigurationStickyBar/index.d.ts +6 -0
- package/build/types/components/Flex/Flex.d.ts +1 -1
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -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;
|
@@ -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(
|
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
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
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;
|
package/build/cjs/index.cjs
CHANGED
@@ -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(
|
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
|
-
|
64844
|
-
|
64845
|
-
|
64846
|
-
|
64847
|
-
|
64848
|
-
|
64849
|
-
|
64850
|
-
|
64851
|
-
|
64852
|
-
|
64853
|
-
|
64854
|
-
|
64855
|
-
|
64856
|
-
|
64857
|
-
|
64858
|
-
|
64859
|
-
|
64860
|
-
|
64861
|
-
|
64862
|
-
|
64863
|
-
|
64864
|
-
|
64865
|
-
|
64866
|
-
|
64867
|
-
|
64868
|
-
|
64869
|
-
|
64870
|
-
|
64871
|
-
|
64872
|
-
|
64873
|
-
|
64874
|
-
|
64875
|
-
|
64876
|
-
|
64877
|
-
|
64878
|
-
|
64879
|
-
|
64880
|
-
|
64881
|
-
|
64882
|
-
|
64883
|
-
|
64884
|
-
|
64885
|
-
|
64886
|
-
|
64887
|
-
|
64888
|
-
|
64889
|
-
|
64890
|
-
|
64891
|
-
|
64892
|
-
|
64893
|
-
|
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.
|
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;
|
@@ -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 };
|
@@ -29,7 +29,15 @@ const Content = ({
|
|
29
29
|
gap = 32,
|
30
30
|
...rest
|
31
31
|
}) => {
|
32
|
-
return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
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';
|
package/build/esm/index.js
CHANGED
@@ -61225,7 +61225,15 @@ const Content = ({
|
|
61225
61225
|
gap = 32,
|
61226
61226
|
...rest
|
61227
61227
|
}) => {
|
61228
|
-
return /* @__PURE__ */ jsx(StyledContentOutside, { ...rest, children: /* @__PURE__ */ jsx(
|
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
|
-
|
64821
|
-
|
64822
|
-
|
64823
|
-
|
64824
|
-
|
64825
|
-
|
64826
|
-
|
64827
|
-
|
64828
|
-
|
64829
|
-
|
64830
|
-
|
64831
|
-
|
64832
|
-
|
64833
|
-
|
64834
|
-
|
64835
|
-
|
64836
|
-
|
64837
|
-
|
64838
|
-
|
64839
|
-
|
64840
|
-
|
64841
|
-
|
64842
|
-
|
64843
|
-
|
64844
|
-
|
64845
|
-
|
64846
|
-
|
64847
|
-
|
64848
|
-
|
64849
|
-
|
64850
|
-
|
64851
|
-
|
64852
|
-
|
64853
|
-
|
64854
|
-
|
64855
|
-
|
64856
|
-
|
64857
|
-
|
64858
|
-
|
64859
|
-
|
64860
|
-
|
64861
|
-
|
64862
|
-
|
64863
|
-
|
64864
|
-
|
64865
|
-
|
64866
|
-
|
64867
|
-
|
64868
|
-
|
64869
|
-
|
64870
|
-
|
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.
|
81925
|
+
color: colors.info_600
|
81914
81926
|
}
|
81915
81927
|
)
|
81916
81928
|
] }),
|
@@ -82459,4 +82471,57 @@ const FeedbackCard = ({
|
|
82459
82471
|
);
|
82460
82472
|
};
|
82461
82473
|
|
82462
|
-
|
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 };
|
@@ -28,7 +28,7 @@ interface FlexProps extends HTMLAttributes<HTMLDivElement> {
|
|
28
28
|
border?: string;
|
29
29
|
css?: string;
|
30
30
|
}
|
31
|
-
declare const Flex: React.
|
31
|
+
declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
32
32
|
|
33
33
|
export { Flex as default };
|
34
34
|
export type { FlexProps };
|
package/build/types/index.d.ts
CHANGED
@@ -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';
|