@axa-fr/design-system-apollo-react 3.1.2-alpha.1 → 3.1.2-alpha.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.
|
@@ -18,11 +18,12 @@ export type AccordionProps = {
|
|
|
18
18
|
dateProps?: Omit<ComponentProps<"time">, "children">;
|
|
19
19
|
tagLabel?: string;
|
|
20
20
|
tagProps?: Omit<TagProps, "children">;
|
|
21
|
+
isPlain?: boolean;
|
|
21
22
|
} & Omit<AccordionCoreProps, "summary">;
|
|
22
23
|
type AccordionCommonProps = AccordionProps & {
|
|
23
24
|
AccordionCoreComponent: ComponentType<AccordionCoreProps>;
|
|
24
25
|
TagComponent: ComponentType<TagProps>;
|
|
25
26
|
IconComponent: ComponentType<IconProps>;
|
|
26
27
|
};
|
|
27
|
-
export declare const AccordionCommon: ({ variant, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, ...accordionCoreProps }: AccordionCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const AccordionCommon: ({ variant, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, isPlain, ...accordionCoreProps }: AccordionCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -4,9 +4,9 @@ export const accordionVariants = {
|
|
|
4
4
|
primary: "primary",
|
|
5
5
|
secondary: "secondary",
|
|
6
6
|
};
|
|
7
|
-
export const AccordionCommon = ({ variant = accordionVariants.primary, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, ...accordionCoreProps }) => (_jsx(AccordionCoreComponent, { className: getClassName({
|
|
7
|
+
export const AccordionCommon = ({ variant = accordionVariants.primary, className, children, icon, title, subtitle, tagLabel, tagProps, dateLabel, dateProps, info1, info2, AccordionCoreComponent, TagComponent, IconComponent, isPlain, ...accordionCoreProps }) => (_jsx(AccordionCoreComponent, { className: getClassName({
|
|
8
8
|
baseClassName: "af-apollo-accordion",
|
|
9
|
-
modifiers: [variant],
|
|
9
|
+
modifiers: [variant, isPlain && "plain"],
|
|
10
10
|
className,
|
|
11
11
|
}), summary: _jsxs(_Fragment, { children: [icon ? (_jsx(IconComponent, { role: "presentation", src: icon, variant: "primary", size: "S", className: "af-accordion__icon" })) : null, _jsx("p", { className: "af-accordion__title", children: title }), subtitle ? _jsx("p", { className: "af-accordion__subtitle", children: subtitle }) : null, tagLabel ? (_jsx(TagComponent, { variant: "warning", ...tagProps, className: getClassName({
|
|
12
12
|
baseClassName: "af-accordion__tag-container",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-apollo-react",
|
|
3
|
-
"version": "3.1.2-alpha.
|
|
3
|
+
"version": "3.1.2-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@axa-fr/design-system-apollo-css": "3.1.2-alpha.
|
|
49
|
+
"@axa-fr/design-system-apollo-css": "3.1.2-alpha.2",
|
|
50
50
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
51
51
|
"react": ">= 18"
|
|
52
52
|
},
|