@thecb/components 5.4.4 → 5.5.0

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": "5.4.4",
3
+ "version": "5.5.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,6 +24,8 @@ const Reel = ({
24
24
  justifyContent={justifyContent}
25
25
  disableScroll={disableScroll}
26
26
  as={elementType}
27
+ useOrderedList={useOrderedList}
28
+ useUnorderedList={useUnorderedList}
27
29
  {...rest}
28
30
  >
29
31
  {safeChildren(children, <Fragment />)}
@@ -14,4 +14,15 @@ export const ReelStyled = styled.div`
14
14
  > * {
15
15
  flex: 0 0 ${({ childWidth }) => childWidth};
16
16
  }
17
+
18
+ ${({ useOrderedList, useUnorderedList }) =>
19
+ useOrderedList || useUnorderedList
20
+ ? `
21
+ margin: 0;
22
+ margin-block-start: 0;
23
+ margin-block-end: 0;
24
+ padding-inline-start: 0;
25
+ list-style-type: none;
26
+ `
27
+ : ``}
17
28
  `;
@@ -2,7 +2,7 @@ import React, { Fragment } from "react";
2
2
  import { fallbackValues } from "./CollapsibleSection.theme";
3
3
  import { AnimatePresence } from "framer-motion";
4
4
  import { themeComponent } from "../../../util/themeUtils";
5
- import Heading from "../../atoms/heading";
5
+ import Title from "../../atoms/title";
6
6
  import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
7
7
  import { Box, Cluster, Stack, Motion } from "../../atoms/layouts";
8
8
  import { ChevronIcon } from "../../atoms/icons";
@@ -98,14 +98,14 @@ const CollapsibleSection = ({
98
98
  {title}
99
99
  </Box>
100
100
  ) : (
101
- <Heading
102
- variant="h6"
101
+ <Title
103
102
  weight={FONT_WEIGHT_SEMIBOLD}
104
103
  color={themeValues.titleColor}
105
104
  as="h6"
105
+ variant="small"
106
106
  >
107
107
  {title}
108
- </Heading>
108
+ </Title>
109
109
  )}
110
110
  <Motion
111
111
  variants={icon}
@@ -111,7 +111,7 @@ const EditableList = ({
111
111
  text="Remove"
112
112
  action={() => removeItem(item.id)}
113
113
  extraStyles={`min-width: 0;`}
114
- aria-label={`Remove ${itemName} ${title}`}
114
+ aria-label={`Remove ${itemName}`}
115
115
  />
116
116
  )}
117
117
  </Box>
@@ -129,7 +129,7 @@ const EditableList = ({
129
129
  text="Edit"
130
130
  action={() => editItem(item.id)}
131
131
  extraStyles={`min-width: 0;`}
132
- aria-label={`Edit ${itemName} ${title}`}
132
+ aria-label={`Edit ${itemName}`}
133
133
  />
134
134
  </Box>
135
135
  )}