@thecb/components 4.1.12 → 4.1.13

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
@@ -35140,10 +35140,12 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
35140
35140
  boxShadow: "0px 0px 4px 0px rgb(110, 114, 126)",
35141
35141
  role: "region",
35142
35142
  "aria-label": "Payment step"
35143
+ }, /*#__PURE__*/React__default.createElement(Center, {
35144
+ maxWidth: "76.5rem"
35143
35145
  }, /*#__PURE__*/React__default.createElement(Reel, {
35144
35146
  padding: "0",
35145
- childGap: "3rem",
35146
- childWidth: "12rem",
35147
+ childGap: "4.5rem",
35148
+ childWidth: "11rem",
35147
35149
  justifyContent: "space-evenly",
35148
35150
  disableScroll: true
35149
35151
  }, repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
@@ -35160,7 +35162,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
35160
35162
  weight: FONT_WEIGHT_SEMIBOLD,
35161
35163
  extraStyles: "display: block; white-space: nowrap;"
35162
35164
  }, t));
35163
- }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter)));
35165
+ }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
35164
35166
  };
35165
35167
 
35166
35168
  var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$s));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.1.12",
3
+ "version": "4.1.13",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -3,7 +3,7 @@ import { repeat } from "ramda";
3
3
 
4
4
  import { fallbackValues } from "./HighlightTabRow.theme";
5
5
  import { themeComponent } from "../../../util/themeUtils";
6
- import { Reel, Box } from "../../atoms/layouts";
6
+ import { Reel, Box, Center } from "../../atoms/layouts";
7
7
  import Text from "../../atoms/text";
8
8
  import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
9
9
 
@@ -28,37 +28,39 @@ const HighlightTabRow = ({ tabs, highlightIndex, themeValues, isMobile }) => {
28
28
  role="region"
29
29
  aria-label="Payment step"
30
30
  >
31
- <Reel
32
- padding="0"
33
- childGap="3rem"
34
- childWidth="12rem"
35
- justifyContent="space-evenly"
36
- disableScroll
37
- >
38
- {repeat(<Box />, boxesBefore)}
39
- {tabs.map((t, i) => (
40
- <Box
41
- key={t}
42
- borderSize="3px"
43
- borderColor={
44
- highlightIndex == i ? themeValues.textColor : "transparent"
45
- }
46
- borderWidthOverride="0 0 3px 0"
47
- extraStyles="text-align: center;"
48
- >
49
- <Text
50
- variant="p"
51
- textAlign="center"
52
- color={themeValues.textColor}
53
- weight={FONT_WEIGHT_SEMIBOLD}
54
- extraStyles="display: block; white-space: nowrap;"
31
+ <Center maxWidth="76.5rem">
32
+ <Reel
33
+ padding="0"
34
+ childGap="4.5rem"
35
+ childWidth="11rem"
36
+ justifyContent="space-evenly"
37
+ disableScroll
38
+ >
39
+ {repeat(<Box />, boxesBefore)}
40
+ {tabs.map((t, i) => (
41
+ <Box
42
+ key={t}
43
+ borderSize="3px"
44
+ borderColor={
45
+ highlightIndex == i ? themeValues.textColor : "transparent"
46
+ }
47
+ borderWidthOverride="0 0 3px 0"
48
+ extraStyles="text-align: center;"
55
49
  >
56
- {t}
57
- </Text>
58
- </Box>
59
- ))}
60
- {repeat(<Box />, boxesAfter)}
61
- </Reel>
50
+ <Text
51
+ variant="p"
52
+ textAlign="center"
53
+ color={themeValues.textColor}
54
+ weight={FONT_WEIGHT_SEMIBOLD}
55
+ extraStyles="display: block; white-space: nowrap;"
56
+ >
57
+ {t}
58
+ </Text>
59
+ </Box>
60
+ ))}
61
+ {repeat(<Box />, boxesAfter)}
62
+ </Reel>
63
+ </Center>
62
64
  </Box>
63
65
  );
64
66
  };