@axa-fr/canopee-react 2.0.0-alpha.39 → 2.0.0-alpha.40
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/dist/client.d.ts +1 -0
- package/dist/client.js +1 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.d.ts +4 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListApollo.js +5 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.d.ts +11 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListCommon.js +2 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.d.ts +4 -0
- package/dist/prospect-client/Form/MultiSelectList/MultiSelectListLF.js +5 -0
- package/dist/prospect.d.ts +1 -0
- package/dist/prospect.js +1 -0
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAto
|
|
|
32
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
33
33
|
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
34
34
|
export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
35
|
+
export { MultiSelectList, type MultiSelectListProps, } from "./prospect-client/Form/MultiSelectList/MultiSelectListLF";
|
|
35
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
36
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
37
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
package/dist/client.js
CHANGED
|
@@ -32,6 +32,7 @@ export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAto
|
|
|
32
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
33
33
|
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
34
34
|
export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
35
|
+
export { MultiSelectList, } from "./prospect-client/Form/MultiSelectList/MultiSelectListLF";
|
|
35
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
36
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
37
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/Form/MultiSelectList/MultiSelectListAll.css";
|
|
2
|
+
import { type MultiSelectListProps } from "./MultiSelectListCommon";
|
|
3
|
+
export type { MultiSelectListProps } from "./MultiSelectListCommon";
|
|
4
|
+
export declare const MultiSelectList: (props: MultiSelectListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/MultiSelectList/MultiSelectListAll.css";
|
|
3
|
+
import { ItemMultiSelect } from "../ItemMultiSelect/ItemMultiSelectApollo";
|
|
4
|
+
import { MultiSelectListCommon, } from "./MultiSelectListCommon";
|
|
5
|
+
export const MultiSelectList = (props) => (_jsx(MultiSelectListCommon, { ...props, ItemMultiSelectComponent: ItemMultiSelect }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { ListProps } from "../../List/List/ListCommon";
|
|
3
|
+
import type { ItemMultiSelectCommonProps } from "../ItemMultiSelect/ItemMultiSelectCommon";
|
|
4
|
+
export type MultiSelectListProps = Omit<ListProps, "children" | "separator" | "onChange"> & {
|
|
5
|
+
items: Omit<ItemMultiSelectCommonProps, "Checkbox">[];
|
|
6
|
+
};
|
|
7
|
+
type MultiSelectListCommonProps = MultiSelectListProps & {
|
|
8
|
+
ItemMultiSelectComponent: ComponentType<Omit<ItemMultiSelectCommonProps, "Checkbox">>;
|
|
9
|
+
};
|
|
10
|
+
export declare const MultiSelectListCommon: ({ items, ItemMultiSelectComponent, }: MultiSelectListCommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const MultiSelectListCommon = ({ items, ItemMultiSelectComponent, }) => (_jsx("ul", { className: "af-multi-select-list", children: items.map((item, index) => (_jsx("li", { children: _jsx(ItemMultiSelectComponent, { ...item, variant: index % 2 === 0 ? "primary" : "secondary" }) }, item.id))) }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/client/Form/MultiSelectList/MultiSelectListAll.css";
|
|
2
|
+
import { type MultiSelectListProps } from "./MultiSelectListCommon";
|
|
3
|
+
export type { MultiSelectListProps } from "./MultiSelectListCommon";
|
|
4
|
+
export declare const MultiSelectList: (props: MultiSelectListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/MultiSelectList/MultiSelectListAll.css";
|
|
3
|
+
import { ItemMultiSelect } from "../ItemMultiSelect/ItemMultiSelectLF";
|
|
4
|
+
import { MultiSelectListCommon, } from "./MultiSelectListCommon";
|
|
5
|
+
export const MultiSelectList = (props) => (_jsx(MultiSelectListCommon, { ...props, ItemMultiSelectComponent: ItemMultiSelect }));
|
package/dist/prospect.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAto
|
|
|
32
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
|
|
33
33
|
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
|
|
34
34
|
export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
|
|
35
|
+
export { MultiSelectList, type MultiSelectListProps, } from "./prospect-client/Form/MultiSelectList/MultiSelectListApollo";
|
|
35
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
|
|
36
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
|
|
37
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
|
package/dist/prospect.js
CHANGED
|
@@ -32,6 +32,7 @@ export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAto
|
|
|
32
32
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
|
|
33
33
|
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
|
|
34
34
|
export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
|
|
35
|
+
export { MultiSelectList, } from "./prospect-client/Form/MultiSelectList/MultiSelectListApollo";
|
|
35
36
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioApollo";
|
|
36
37
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupApollo";
|
|
37
38
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioApollo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/canopee-react",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.40",
|
|
4
4
|
"description": "Package React - Design System Canopée",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./distributeur": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@axa-fr/canopee-css": "2.0.0-alpha.
|
|
56
|
+
"@axa-fr/canopee-css": "2.0.0-alpha.40",
|
|
57
57
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
58
58
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
59
59
|
"react": ">= 19"
|