@axa-fr/canopee-react 2.0.0-alpha.6 → 2.0.0-alpha.8
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/ItemMultiSelect/ItemMultiSelectApollo.d.ts +7 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo.js +6 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.d.ts +8 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectCommon.js +9 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.d.ts +7 -0
- package/dist/prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF.js +6 -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
|
@@ -36,6 +36,7 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
|
36
36
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
37
37
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
38
38
|
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
39
|
+
export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
39
40
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
40
41
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
41
42
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
package/dist/client.js
CHANGED
|
@@ -36,6 +36,7 @@ InputText as TextInput, } from "./prospect-client/Form/InputText/InputTextLF";
|
|
|
36
36
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomLF";
|
|
37
37
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelLF";
|
|
38
38
|
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageLF";
|
|
39
|
+
export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectLF";
|
|
39
40
|
export { CardRadio } from "./prospect-client/Form/Radio/CardRadio/CardRadioLF";
|
|
40
41
|
export { CardRadioGroup } from "./prospect-client/Form/Radio/CardRadioGroup/CardRadioGroupLF";
|
|
41
42
|
export { Radio } from "./prospect-client/Form/Radio/Radio/RadioLF";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/prospect/Form/ItemMultiSelect/ItemMultiSelectApollo.css";
|
|
2
|
+
import { type ItemMultiSelectCommonProps } from "./ItemMultiSelectCommon";
|
|
3
|
+
export type ItemMultiSelectProps = Omit<ItemMultiSelectCommonProps, "Checkbox">;
|
|
4
|
+
export declare const ItemMultiSelect: {
|
|
5
|
+
(props: ItemMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/prospect/Form/ItemMultiSelect/ItemMultiSelectApollo.css";
|
|
3
|
+
import { Checkbox } from "../Checkbox/Checkbox/CheckboxApollo";
|
|
4
|
+
import { ItemMultiSelectCommon, } from "./ItemMultiSelectCommon";
|
|
5
|
+
export const ItemMultiSelect = (props) => (_jsx(ItemMultiSelectCommon, { ...props, Checkbox: Checkbox }));
|
|
6
|
+
ItemMultiSelect.displayName = "ItemMultiSelect";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps, type ComponentType, type FC, type ReactNode } from "react";
|
|
2
|
+
export type ItemMultiSelectVariant = "primary" | "secondary";
|
|
3
|
+
export type ItemMultiSelectCommonProps = Omit<ComponentProps<"input">, "type"> & {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
variant?: ItemMultiSelectVariant;
|
|
6
|
+
Checkbox: ComponentType<ComponentProps<"input">>;
|
|
7
|
+
};
|
|
8
|
+
export declare const ItemMultiSelectCommon: FC<ItemMultiSelectCommonProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import {} from "react";
|
|
3
|
+
import { getClassName } from "../../utilities/getClassName";
|
|
4
|
+
export const ItemMultiSelectCommon = ({ label, variant = "primary", className = "", id, Checkbox, ...inputProps }) => (_jsxs("label", { className: getClassName({
|
|
5
|
+
baseClassName: "af-item-multi-select",
|
|
6
|
+
modifiers: [variant],
|
|
7
|
+
className: className ?? "",
|
|
8
|
+
}), htmlFor: id, children: [_jsx("span", { className: "af-item-multi-select__checkbox", children: _jsx(Checkbox, { id: id, ...inputProps }) }), _jsx("span", { className: "af-item-multi-select__label", children: label })] }));
|
|
9
|
+
ItemMultiSelectCommon.displayName = "ItemMultiSelectCommon";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "@axa-fr/canopee-css/client/Form/ItemMultiSelect/ItemMultiSelectLF.css";
|
|
2
|
+
import { type ItemMultiSelectCommonProps } from "./ItemMultiSelectCommon";
|
|
3
|
+
export type ItemMultiSelectProps = Omit<ItemMultiSelectCommonProps, "Checkbox">;
|
|
4
|
+
export declare const ItemMultiSelect: {
|
|
5
|
+
(props: ItemMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import "@axa-fr/canopee-css/client/Form/ItemMultiSelect/ItemMultiSelectLF.css";
|
|
3
|
+
import { Checkbox } from "../Checkbox/Checkbox/CheckboxLF";
|
|
4
|
+
import { ItemMultiSelectCommon, } from "./ItemMultiSelectCommon";
|
|
5
|
+
export const ItemMultiSelect = (props) => (_jsx(ItemMultiSelectCommon, { ...props, Checkbox: Checkbox }));
|
|
6
|
+
ItemMultiSelect.displayName = "ItemMultiSelect";
|
package/dist/prospect.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { InputText } from "./prospect-client/Form/InputText/InputTextApollo";
|
|
|
32
32
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomApollo";
|
|
33
33
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
|
|
34
34
|
export { ItemMessage, itemMessageVariants, type ItemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
|
|
35
|
+
export { ItemMultiSelect, type ItemMultiSelectProps, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
|
|
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 { InputText } from "./prospect-client/Form/InputText/InputTextApollo";
|
|
|
32
32
|
export { InputTextAtom } from "./prospect-client/Form/InputTextAtom/InputTextAtomApollo";
|
|
33
33
|
export { ItemLabel } from "./prospect-client/Form/ItemLabel/ItemLabelApollo";
|
|
34
34
|
export { ItemMessage, itemMessageVariants, } from "./prospect-client/Form/ItemMessage/ItemMessageApollo";
|
|
35
|
+
export { ItemMultiSelect, } from "./prospect-client/Form/ItemMultiSelect/ItemMultiSelectApollo";
|
|
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.8",
|
|
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.8",
|
|
57
57
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
58
58
|
"@material-symbols/svg-700": ">= 0.19.0",
|
|
59
59
|
"react": ">= 19"
|