@thecb/components 3.5.8 → 3.5.11
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/dist/index.cjs.js
CHANGED
|
@@ -10038,9 +10038,11 @@ function usePanGesture(_a, ref) {
|
|
|
10038
10038
|
onPanEnd && onPanEnd(event, info);
|
|
10039
10039
|
},
|
|
10040
10040
|
};
|
|
10041
|
-
|
|
10042
|
-
panSession.current
|
|
10043
|
-
|
|
10041
|
+
React.useEffect(function () {
|
|
10042
|
+
if (panSession.current !== null) {
|
|
10043
|
+
panSession.current.updateHandlers(handlers);
|
|
10044
|
+
}
|
|
10045
|
+
});
|
|
10044
10046
|
function onPointerDown(event) {
|
|
10045
10047
|
panSession.current = new PanSession(event, handlers, {
|
|
10046
10048
|
transformPagePoint: transformPagePoint,
|
|
@@ -14091,7 +14093,7 @@ var AlertSuccessIcon = function AlertSuccessIcon() {
|
|
|
14091
14093
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14092
14094
|
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
14093
14095
|
d: "M12,24 C18.627417,24 24,18.627417 24,12 C24,5.372583 18.627417,0 12,0 C5.372583,0 0,5.372583 0,12 C0,18.627417 5.372583,24 12,24 Z M16.9497475,7.46446609 L18.363961,8.87867966 L9.87867966,17.363961 L5.63603897,13.1213203 L7.05025253,11.7071068 L9.87803897,14.5354661 L16.9497475,7.46446609 Z",
|
|
14094
|
-
id: "
|
|
14096
|
+
id: "alertSuccess"
|
|
14095
14097
|
})), /*#__PURE__*/React__default.createElement("g", {
|
|
14096
14098
|
id: "Symbols",
|
|
14097
14099
|
stroke: "none",
|
|
@@ -14108,12 +14110,12 @@ var AlertSuccessIcon = function AlertSuccessIcon() {
|
|
|
14108
14110
|
id: "mask-2",
|
|
14109
14111
|
fill: "white"
|
|
14110
14112
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
14111
|
-
xlinkHref: "#
|
|
14113
|
+
xlinkHref: "#alertSuccess"
|
|
14112
14114
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
14113
14115
|
id: "background-2",
|
|
14114
14116
|
fill: "#47B872",
|
|
14115
14117
|
fillRule: "nonzero",
|
|
14116
|
-
xlinkHref: "#
|
|
14118
|
+
xlinkHref: "#alertSuccess"
|
|
14117
14119
|
})))));
|
|
14118
14120
|
};
|
|
14119
14121
|
|
|
@@ -15343,7 +15345,7 @@ _curry2(function nth(offset, list) {
|
|
|
15343
15345
|
*
|
|
15344
15346
|
* @func
|
|
15345
15347
|
* @memberOf R
|
|
15346
|
-
* @since v0.27.
|
|
15348
|
+
* @since v0.27.1
|
|
15347
15349
|
* @category Object
|
|
15348
15350
|
* @typedefn Idx = [String | Int]
|
|
15349
15351
|
* @sig [Idx] -> {a} -> [a | Undefined]
|
|
@@ -37267,11 +37269,15 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37267
37269
|
return toggleOpenSection(section.id);
|
|
37268
37270
|
},
|
|
37269
37271
|
tabIndex: "-1"
|
|
37270
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
37272
|
+
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
37273
|
+
align: "center"
|
|
37274
|
+
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
37275
|
+
padding: section.titleIcon ? "0 0 0 8px" : "0"
|
|
37276
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
37271
37277
|
variant: "p",
|
|
37272
37278
|
color: CHARADE_GREY,
|
|
37273
37279
|
"aria-level": "3"
|
|
37274
|
-
}, section.title)), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
37280
|
+
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
37275
37281
|
childGap: "0.5rem"
|
|
37276
37282
|
}, section.rightIcons.map(function (icon) {
|
|
37277
37283
|
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
@@ -37860,7 +37866,10 @@ var Timeout$1 = withWindowSize(Timeout);
|
|
|
37860
37866
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
37861
37867
|
var _ref$workflowName = _ref.workflowName,
|
|
37862
37868
|
workflowName = _ref$workflowName === void 0 ? "Test Workflow" : _ref$workflowName,
|
|
37863
|
-
|
|
37869
|
+
_ref$workflowDescript = _ref.workflowDescription,
|
|
37870
|
+
workflowDescription = _ref$workflowDescript === void 0 ? "Link your benefit plan" : _ref$workflowDescript,
|
|
37871
|
+
_ref$workflowActionNa = _ref.workflowActionName,
|
|
37872
|
+
workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
|
|
37864
37873
|
slug = _ref.slug;
|
|
37865
37874
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
37866
37875
|
background: WHITE,
|
|
@@ -37883,7 +37892,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
37883
37892
|
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
37884
37893
|
variant: "pS",
|
|
37885
37894
|
color: STORM_GREY
|
|
37886
|
-
}, workflowDescription
|
|
37895
|
+
}, workflowDescription)), /*#__PURE__*/React__default.createElement(Box, {
|
|
37887
37896
|
padding: "1.5rem 1rem",
|
|
37888
37897
|
background: GRECIAN_GREY
|
|
37889
37898
|
}, /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -37892,7 +37901,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
37892
37901
|
fontWeight: FONT_WEIGHT_SEMIBOLD,
|
|
37893
37902
|
fontSize: "1.125rem",
|
|
37894
37903
|
borderRadius: "0px",
|
|
37895
|
-
text:
|
|
37904
|
+
text: workflowActionName,
|
|
37896
37905
|
minWidth: "100%",
|
|
37897
37906
|
url: "/service/".concat(slug),
|
|
37898
37907
|
extraStyles: "width: 100%;"
|
package/package.json
CHANGED
|
@@ -160,9 +160,14 @@ const RadioSection = ({
|
|
|
160
160
|
/>
|
|
161
161
|
</Box>
|
|
162
162
|
)}
|
|
163
|
-
|
|
164
|
-
{section.
|
|
165
|
-
|
|
163
|
+
{section.titleIcon && (
|
|
164
|
+
<Cluster align="center">{section.titleIcon}</Cluster>
|
|
165
|
+
)}
|
|
166
|
+
<Box padding={section.titleIcon ? "0 0 0 8px" : "0"}>
|
|
167
|
+
<Text variant="p" color={CHARADE_GREY} aria-level="3">
|
|
168
|
+
{section.title}
|
|
169
|
+
</Text>
|
|
170
|
+
</Box>
|
|
166
171
|
</Cluster>
|
|
167
172
|
{section.rightIcons && (
|
|
168
173
|
<Cluster childGap="0.5rem">
|
|
@@ -14,7 +14,8 @@ import ButtonWithLink from "../../atoms/button-with-link";
|
|
|
14
14
|
import { Box, Stack } from "../../atoms/layouts";
|
|
15
15
|
const WorkflowTile = ({
|
|
16
16
|
workflowName = "Test Workflow",
|
|
17
|
-
workflowDescription,
|
|
17
|
+
workflowDescription = "Link your benefit plan",
|
|
18
|
+
workflowActionName = "Search",
|
|
18
19
|
slug
|
|
19
20
|
}) => (
|
|
20
21
|
<Box
|
|
@@ -35,7 +36,7 @@ const WorkflowTile = ({
|
|
|
35
36
|
</Box>
|
|
36
37
|
<Box padding={"0 1rem 1rem 1rem"} minHeight={"4.25rem"}>
|
|
37
38
|
<Paragraph variant="pS" color={STORM_GREY}>
|
|
38
|
-
{workflowDescription
|
|
39
|
+
{workflowDescription}
|
|
39
40
|
</Paragraph>
|
|
40
41
|
</Box>
|
|
41
42
|
<Box padding={"1.5rem 1rem"} background={GRECIAN_GREY}>
|
|
@@ -45,7 +46,7 @@ const WorkflowTile = ({
|
|
|
45
46
|
fontWeight={FONT_WEIGHT_SEMIBOLD}
|
|
46
47
|
fontSize={"1.125rem"}
|
|
47
48
|
borderRadius={"0px"}
|
|
48
|
-
text={
|
|
49
|
+
text={workflowActionName}
|
|
49
50
|
minWidth={"100%"}
|
|
50
51
|
url={`/service/${slug}`}
|
|
51
52
|
extraStyles={`width: 100%;`}
|
|
@@ -11,7 +11,7 @@ export const AlertSuccessIcon = () => (
|
|
|
11
11
|
<defs>
|
|
12
12
|
<path
|
|
13
13
|
d="M12,24 C18.627417,24 24,18.627417 24,12 C24,5.372583 18.627417,0 12,0 C5.372583,0 0,5.372583 0,12 C0,18.627417 5.372583,24 12,24 Z M16.9497475,7.46446609 L18.363961,8.87867966 L9.87867966,17.363961 L5.63603897,13.1213203 L7.05025253,11.7071068 L9.87803897,14.5354661 L16.9497475,7.46446609 Z"
|
|
14
|
-
id="
|
|
14
|
+
id="alertSuccess"
|
|
15
15
|
></path>
|
|
16
16
|
</defs>
|
|
17
17
|
<g
|
|
@@ -27,13 +27,13 @@ export const AlertSuccessIcon = () => (
|
|
|
27
27
|
transform="translate(24.000000, 34.000000)"
|
|
28
28
|
>
|
|
29
29
|
<mask id="mask-2" fill="white">
|
|
30
|
-
<use xlinkHref="#
|
|
30
|
+
<use xlinkHref="#alertSuccess"></use>
|
|
31
31
|
</mask>
|
|
32
32
|
<use
|
|
33
33
|
id="background-2"
|
|
34
34
|
fill="#47B872"
|
|
35
35
|
fillRule="nonzero"
|
|
36
|
-
xlinkHref="#
|
|
36
|
+
xlinkHref="#alertSuccess"
|
|
37
37
|
></use>
|
|
38
38
|
</g>
|
|
39
39
|
</g>
|