@thecb/components 7.13.2 → 7.13.3-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.13.2",
3
+ "version": "7.13.3-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
package/src/.DS_Store CHANGED
Binary file
@@ -24,7 +24,8 @@ const CollapsibleSection = ({
24
24
  stackTitleContent,
25
25
  sectionGap = "0.5rem",
26
26
  name = "",
27
- index = 1
27
+ index = 1,
28
+ headerEl = null
28
29
  }) => {
29
30
  const handleKeyDown = e => {
30
31
  if (e.keyCode === 13) {
@@ -94,8 +95,8 @@ const CollapsibleSection = ({
94
95
  >
95
96
  <Cluster justify="space-between" align="center">
96
97
  {customTitle ? (
97
- <Box width="calc(100% - 36px)" padding="0px">
98
- {title}
98
+ <Box width="calc(100% - 36px)" padding="0px" id="cristin">
99
+ {headerEl ? headerEl : title}
99
100
  </Box>
100
101
  ) : (
101
102
  <Title
@@ -103,15 +104,16 @@ const CollapsibleSection = ({
103
104
  color={themeValues.titleColor}
104
105
  as="h6"
105
106
  variant="small"
107
+ id="cristin"
106
108
  >
107
- {title}
109
+ {headerEl ? headerEl : title}
108
110
  </Title>
109
111
  )}
110
112
  <Motion
111
113
  variants={icon}
112
114
  extraStyles={`display: flex; align-items: center;`}
113
115
  >
114
- <ChevronIcon />
116
+ <ChevronIcon color={iconColor ? iconColor : null} />
115
117
  </Motion>
116
118
  </Cluster>
117
119
  </Box>
Binary file
Binary file