@thecb/components 7.13.2 → 7.13.3-beta.2

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.2",
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,9 @@ const CollapsibleSection = ({
24
24
  stackTitleContent,
25
25
  sectionGap = "0.5rem",
26
26
  name = "",
27
- index = 1
27
+ index = 1,
28
+ headerEl = null,
29
+ iconColor = null
28
30
  }) => {
29
31
  const handleKeyDown = e => {
30
32
  if (e.keyCode === 13) {
@@ -94,8 +96,8 @@ const CollapsibleSection = ({
94
96
  >
95
97
  <Cluster justify="space-between" align="center">
96
98
  {customTitle ? (
97
- <Box width="calc(100% - 36px)" padding="0px">
98
- {title}
99
+ <Box width="calc(100% - 36px)" padding="0px" id="cristin">
100
+ {headerEl ? headerEl : title}
99
101
  </Box>
100
102
  ) : (
101
103
  <Title
@@ -103,15 +105,16 @@ const CollapsibleSection = ({
103
105
  color={themeValues.titleColor}
104
106
  as="h6"
105
107
  variant="small"
108
+ id="cristin"
106
109
  >
107
- {title}
110
+ {headerEl ? headerEl : title}
108
111
  </Title>
109
112
  )}
110
113
  <Motion
111
114
  variants={icon}
112
115
  extraStyles={`display: flex; align-items: center;`}
113
116
  >
114
- <ChevronIcon />
117
+ <ChevronIcon color={iconColor ? iconColor : null} />
115
118
  </Motion>
116
119
  </Cluster>
117
120
  </Box>
Binary file
Binary file