@thecb/components 3.5.10 → 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
- if (panSession.current !== null) {
10042
- panSession.current.updateHandlers(handlers);
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,
@@ -15343,7 +15345,7 @@ _curry2(function nth(offset, list) {
15343
15345
  *
15344
15346
  * @func
15345
15347
  * @memberOf R
15346
- * @since v0.27.0
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(Text$1, {
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "3.5.10",
3
+ "version": "3.5.11",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -160,9 +160,14 @@ const RadioSection = ({
160
160
  />
161
161
  </Box>
162
162
  )}
163
- <Text variant="p" color={CHARADE_GREY} aria-level="3">
164
- {section.title}
165
- </Text>
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">