@bytebrand/fe-ui-core 4.1.159 → 4.1.161

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": "@bytebrand/fe-ui-core",
3
- "version": "4.1.159",
3
+ "version": "4.1.161",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -22,6 +22,8 @@ export interface IExpansionPanelProps {
22
22
  expandedClassName?: string;
23
23
  arrowIconClassName?: string;
24
24
  expanded?: string | boolean;
25
+ isCompare?: boolean;
26
+ accordionSummaryClassName?: string;
25
27
  accordionClassName?: string;
26
28
  }
27
29
 
@@ -45,10 +47,12 @@ class ExpansionPanel extends React.Component<IExpansionPanelProps> {
45
47
  reactScrollName,
46
48
  reactScrollClassName,
47
49
  defaultExpanded,
50
+ accordionSummaryClassName,
48
51
  subTitleClassName,
49
52
  onChange,
50
53
  expanded,
51
- accordionClassName
54
+ accordionClassName,
55
+ isCompare = false
52
56
  } = this.props;
53
57
 
54
58
  const scrollElementClassName = classnames(reactScrollClassName);
@@ -62,13 +66,14 @@ class ExpansionPanel extends React.Component<IExpansionPanelProps> {
62
66
  <ThemeProvider theme={Theme}>
63
67
  <Accordion
64
68
  defaultExpanded={defaultExpanded}
65
- onChange={onChange && reactScrollName && onChange(reactScrollName)}
66
- expanded={expanded && reactScrollName && (expanded === reactScrollName)}
69
+ onChange={isCompare ? onChange : onChange && onChange(reactScrollName)}
70
+ expanded={isCompare ? expanded : expanded && (expanded === reactScrollName)}
67
71
  className={accordionClassName}
68
72
  >
69
73
  <AccordionSummary
70
74
  expandIcon={<IconSVG name={'arrowSelect'} className={styles.icon} customDimensions />}
71
75
  aria-controls={title}
76
+ className={accordionSummaryClassName}
72
77
  id={title}
73
78
  >
74
79
  <span>
package/utils.ts CHANGED
@@ -16,13 +16,6 @@ export {
16
16
  } from './source/framework/utils/DateUtils';
17
17
  export { getPriceRating, getPriceRatingConfig } from './source/framework/utils/CommonUtils';
18
18
 
19
- export {
20
- IEquipmentProps,
21
- ICarPropElement,
22
- IAccardionSectionProps,
23
- IDecoratedProps
24
- } from './source/framework/types/types';
25
-
26
19
  export {
27
20
  getVehicleDetails,
28
21
  getOverviewDetails,