@axa-fr/design-system-slash-react 0.2.0-beta.295 → 0.2.0-beta.297
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/Action/Action.js +1 -1
- package/dist/Alert/Alert.agent.js +1 -1
- package/dist/Badge/Badge.js +1 -1
- package/dist/Card/Card.client.js +1 -1
- package/dist/Form/Date/Date.js +1 -1
- package/dist/Form/FileUpload/Client/FileUpload.js +2 -2
- package/dist/Form/Number/Number.js +1 -1
- package/dist/Form/Pass/Pass.js +1 -1
- package/dist/Form/Radio/Agent/RadioInput.d.ts +1 -1
- package/dist/Form/Select/Agent/SelectBase.js +1 -1
- package/dist/Form/Slider/Slider.agent.js +1 -1
- package/dist/Form/Text/Agent/Text.js +1 -1
- package/dist/Form/Text/Client/Text.js +1 -1
- package/dist/Form/Textarea/Textarea.js +1 -1
- package/dist/Form/core/Field.js +1 -1
- package/dist/Form/core/FieldError.js +1 -1
- package/dist/Form/core/FieldForm.js +1 -1
- package/dist/Form/core/FieldInput.js +1 -1
- package/dist/Form/core/getOptionClassName.js +1 -1
- package/dist/Form/core/index.d.ts +0 -1
- package/dist/Form/core/index.js +0 -1
- package/dist/IconBg/IconBg.client.js +1 -1
- package/dist/Layout/Header/Agent/Header.agent.js +1 -1
- package/dist/Layout/Header/Agent/Infos/Infos.js +1 -1
- package/dist/Layout/Header/Agent/Name/Name.js +1 -1
- package/dist/Layout/Header/Agent/NavBar/NavBarBase.js +1 -1
- package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.js +1 -1
- package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.js +1 -1
- package/dist/Layout/Header/Agent/User/User.js +1 -1
- package/dist/List/ContentItemDuo/ContentItemDuo.js +1 -1
- package/dist/List/ContentItemMono/ContentItemMono.js +1 -1
- package/dist/Table/Pagination/Items.js +1 -1
- package/dist/Table/THead.js +1 -1
- package/dist/Table/Table.js +1 -1
- package/dist/Table/Td.js +1 -1
- package/dist/Table/Th.js +1 -1
- package/dist/Table/Tr.js +1 -1
- package/dist/Tag/Tag.client.js +1 -1
- package/dist/Title/Agent/Title.js +1 -1
- package/dist/Title/Client/Title.js +1 -1
- package/dist/agent.d.ts +2 -1
- package/dist/agent.js +2 -1
- package/dist/utilities.d.ts +1 -0
- package/dist/utilities.js +1 -0
- package/package.json +2 -2
- /package/dist/{Form/core → utilities/helpers}/getComponentClassName.d.ts +0 -0
- /package/dist/{Form/core → utilities/helpers}/getComponentClassName.js +0 -0
package/dist/Action/Action.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
import "@axa-fr/design-system-slash-css/dist/Action/Action.scss";
|
|
4
4
|
export const Action = ({ icon, className, classModifier, ...otherProps }) => {
|
|
5
5
|
const componentClassName = getComponentClassName(className, classModifier, "btn af-btn--circle");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
import "@axa-fr/design-system-slash-css/dist/Alert/Alert.agent.scss";
|
|
4
4
|
export var TypeIcons;
|
|
5
5
|
(function (TypeIcons) {
|
package/dist/Badge/Badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { getComponentClassName } from "../
|
|
3
|
+
import { getComponentClassName } from "../utilities";
|
|
4
4
|
import "@axa-fr/design-system-slash-css/dist/Badge/Badge.scss";
|
|
5
5
|
export const Badge = forwardRef(({ children, className, classModifier, ...otherProps }, ref) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-badge");
|
package/dist/Card/Card.client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { getComponentClassName } from "../
|
|
3
|
+
import { getComponentClassName } from "../utilities";
|
|
4
4
|
export const Card = ({ children, className, classModifier, onClick, ...otherProps }) => {
|
|
5
5
|
const componentClassName = useMemo(() => getComponentClassName(className, classModifier, "af-card"), [className, classModifier]);
|
|
6
6
|
const Component = useMemo(() => (onClick ? "button" : "section"), [onClick]);
|
package/dist/Form/Date/Date.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Date/Date.agent.scss";
|
|
3
3
|
import { forwardRef, useMemo } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
const formatDateValue = (dateValue) => {
|
|
6
6
|
const monthFormatted = `0${dateValue.getMonth() + 1}`.slice(-2);
|
|
7
7
|
const dayFormatted = `0${dateValue.getDate()}`.slice(-2);
|
|
@@ -36,7 +36,7 @@ const FileUpload = ({ id, label, buttonLabel, instructions, dropzoneDescription,
|
|
|
36
36
|
const effectiveSize = getReadableFileSizeString(size);
|
|
37
37
|
const isInError = errors.some((fileError) => fileError.id === fileId);
|
|
38
38
|
const errorMessage = errors.find((fileError) => fileError.id === fileId)?.message;
|
|
39
|
-
return (_jsxs(
|
|
39
|
+
return (_jsxs("li", { className: "af-form__file-line", children: [_jsxs("div", { className: `af-form__file-line-container ${isInError ? "af-form__file-line-container--error" : ""}`, children: [_jsxs("div", { className: "af-form__file-title", children: [getIcon(isInError, isLoading), _jsxs("div", { children: [_jsx("span", { className: "af-form__file-name", children: name }), _jsx("span", { className: "af-form__file-size", children: effectiveSize })] })] }), _jsxs("div", { className: "af-form__file-actions", children: [onView && (_jsx(Svg, { tabIndex: 0, role: "button", "aria-label": "Visualiser", onClick: () => onView(fileId), onKeyDown: (e) => {
|
|
40
40
|
if (e.key === "Enter") {
|
|
41
41
|
onView(fileId);
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ const FileUpload = ({ id, label, buttonLabel, instructions, dropzoneDescription,
|
|
|
44
44
|
if (e.key === "Enter") {
|
|
45
45
|
onDelete(fileId);
|
|
46
46
|
}
|
|
47
|
-
}, className: "af-form__file-actions-icon", src: close }))] })] }
|
|
47
|
+
}, className: "af-form__file-actions-icon", src: close }))] })] }), isInError && (_jsxs("small", { className: "af-form__file-error", children: [_jsx(Svg, { src: errorO, className: "af-form__file-error-icon", width: 18 }), errorMessage] }))] }, fileId));
|
|
48
48
|
}) }) })] }));
|
|
49
49
|
};
|
|
50
50
|
FileUpload.displayName = "FileUpload";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Text/Agent/Text.agent.scss";
|
|
3
3
|
import { forwardRef, useId } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
const Number = forwardRef(({ id, className, classModifier, ...otherProps }, inputRef) => {
|
|
6
6
|
const inputUseId = useId();
|
|
7
7
|
const inputId = id ?? inputUseId;
|
package/dist/Form/Pass/Pass.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { getComponentClassName } from "
|
|
3
|
+
import { getComponentClassName } from "../../utilities";
|
|
4
4
|
import "@axa-fr/design-system-slash-css/dist/Form/Pass/Pass.agent.scss";
|
|
5
5
|
const Pass = forwardRef(({ onToggleType, type = "password", className, classModifier, ...inputProps }, inputRef) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-form__pass");
|
|
@@ -40,7 +40,7 @@ declare const RadioInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
40
40
|
isChecked?: boolean;
|
|
41
41
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
42
42
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
43
|
-
}, "
|
|
43
|
+
}, "label" | "className" | "id"> & {
|
|
44
44
|
options: import("../../core").Option[];
|
|
45
45
|
mode?: keyof typeof RadioModes;
|
|
46
46
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Select/Agent/Select.agent.scss";
|
|
3
3
|
import { forwardRef, } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../../utilities";
|
|
5
5
|
const SelectBase = forwardRef(({ options, id, className, classModifier, ...otherProps }, inputRef) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-form__input-select");
|
|
7
7
|
return (_jsxs("div", { className: "af-form__select-container", children: [_jsx("select", { ...otherProps, id: id, className: componentClassName, ref: inputRef, required: classModifier?.includes("required"), children: options.map(({ label, ...opt }) => (_jsx("option", { ...opt, children: label }, opt.value?.toString()))) }), _jsx("span", { "aria-controls": id, className: "glyphicon glyphicon-menu-down" })] }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import RcSlider from "rc-slider";
|
|
3
3
|
import { useCallback, useMemo, } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
const Slider = ({ options, value, defaultValue, className, classModifier, ...otherProps }) => {
|
|
6
6
|
const defaultValueIndex = useMemo(() => {
|
|
7
7
|
const newDefaultValueIndex = options.findIndex((opt) => opt.value === (defaultValue || value));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Text/Agent/Text.agent.scss";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../../utilities";
|
|
5
5
|
const Text = forwardRef(({ className, classModifier, ...otherProps }, inputRef) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-form__input-text");
|
|
7
7
|
return (_jsx("input", { className: componentClassName, type: "text", ref: inputRef, ...otherProps }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Text/Client/Text.client.scss";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../../utilities";
|
|
5
5
|
import { InputError } from "../../InputError";
|
|
6
6
|
const Text = forwardRef(({ className, classModifier = "", ...otherProps }, inputRef) => {
|
|
7
7
|
const componentClassName = getComponentClassName(className, classModifier, "af-form__input-text");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Form/Textarea/Textarea.agent.scss";
|
|
3
3
|
import { forwardRef, useId } from "react";
|
|
4
|
-
import { getComponentClassName } from "
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
const Textarea = forwardRef(({ id, className, classModifier, ...otherProps }, inputRef) => {
|
|
6
6
|
const inputUseId = useId();
|
|
7
7
|
const inputId = id ?? inputUseId;
|
package/dist/Form/core/Field.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "
|
|
2
|
+
import { getComponentClassName } from "../../utilities";
|
|
3
3
|
import { FieldError } from "./FieldError";
|
|
4
4
|
import { MessageTypes } from "./MessageTypes";
|
|
5
5
|
import { FieldForm } from "./FieldForm";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "
|
|
2
|
+
import { getComponentClassName } from "../../utilities";
|
|
3
3
|
import { MessageTypes } from "./MessageTypes";
|
|
4
4
|
const DEFAULT_CLASS_NAME = "af-form__message";
|
|
5
5
|
export const FieldError = ({ message = null, messageType = MessageTypes.error, }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cloneElement, Children, useState, useRef, useEffect, isValidElement, } from "react";
|
|
3
|
-
import { getComponentClassName } from "
|
|
3
|
+
import { getComponentClassName } from "../../utilities";
|
|
4
4
|
import { MessageTypes } from "./MessageTypes";
|
|
5
5
|
import { FormClassManager } from "./FormClassManager";
|
|
6
6
|
const defaultClassName = "md-10";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "
|
|
2
|
+
import { getComponentClassName } from "../../utilities";
|
|
3
3
|
export const FieldInput = ({ children, className = "", classModifier = "", isVisible = true, }) => {
|
|
4
4
|
if (!isVisible) {
|
|
5
5
|
return null;
|
|
@@ -10,7 +10,6 @@ export { InputList } from "./InputList";
|
|
|
10
10
|
export { useInputClassModifier } from "./useInputClassModifier";
|
|
11
11
|
export { getOptionClassName } from "./getOptionClassName";
|
|
12
12
|
export { useOptionsWithId } from "./useOptionsWithId";
|
|
13
|
-
export { getComponentClassName } from "./getComponentClassName";
|
|
14
13
|
export { getFirstId } from "./getFirstId";
|
|
15
14
|
export type Option = {
|
|
16
15
|
id?: string;
|
package/dist/Form/core/index.js
CHANGED
|
@@ -9,5 +9,4 @@ export { InputList } from "./InputList";
|
|
|
9
9
|
export { useInputClassModifier } from "./useInputClassModifier";
|
|
10
10
|
export { getOptionClassName } from "./getOptionClassName";
|
|
11
11
|
export { useOptionsWithId } from "./useOptionsWithId";
|
|
12
|
-
export { getComponentClassName } from "./getComponentClassName";
|
|
13
12
|
export { getFirstId } from "./getFirstId";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { getComponentClassName } from "../
|
|
3
|
+
import { getComponentClassName } from "../utilities";
|
|
4
4
|
export const IconBg = ({ children, className, classModifier, isDisabled = false, }) => {
|
|
5
5
|
const componentClassName = useMemo(() => {
|
|
6
6
|
let newClassModifier = classModifier;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/Header.agent.scss";
|
|
3
|
-
import { getComponentClassName } from "../../../
|
|
3
|
+
import { getComponentClassName } from "../../../utilities";
|
|
4
4
|
const defaultClassName = "af-header";
|
|
5
5
|
const HeaderAgent = ({ classModifier, className, children }) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, defaultClassName);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from "react";
|
|
3
3
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/Infos/Infos.scss";
|
|
4
|
-
import { getComponentClassName } from "../../../../
|
|
4
|
+
import { getComponentClassName } from "../../../../utilities";
|
|
5
5
|
const defaultClassName = "af-contrat";
|
|
6
6
|
const Infos = ({ infos, className, classModifier }) => {
|
|
7
7
|
const componentClassName = getComponentClassName(className, classModifier, defaultClassName);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/Name/Name.scss";
|
|
3
3
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/Logo/Logo.scss";
|
|
4
|
-
import { getComponentClassName } from "../../../../
|
|
4
|
+
import { getComponentClassName } from "../../../../utilities";
|
|
5
5
|
const defaultClassName = "af-header__name";
|
|
6
6
|
const Name = ({ alt = "logo", classModifier, className, img, onClick, subtitle, title, }) => {
|
|
7
7
|
const componentClassName = getComponentClassName(className, classModifier, defaultClassName);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../../../../
|
|
2
|
+
import { getComponentClassName } from "../../../../utilities";
|
|
3
3
|
const defaultClassName = "af-nav-container";
|
|
4
4
|
const NavBarBase = ({ isVisible = true, onClick, id = "mainmenu", toggleMenuId = "togglemenu", isMenuFocused, className, classModifier, handleKeys, onFocus, onBlur, children, }) => {
|
|
5
5
|
const componentClassName = getComponentClassName(className, classModifier, defaultClassName);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useRef, } from "react";
|
|
3
|
-
import { getComponentClassName } from "../../../../../
|
|
3
|
+
import { getComponentClassName } from "../../../../../utilities";
|
|
4
4
|
import { handleLinkFocus } from "./NavBarItemBase.helpers";
|
|
5
5
|
export const NavBarItemBase = ({ tabIndex = -1, role = "menuitem", children, hasFocus, handleKeys, isMenuOpen, className, classModifier, actionElt, ...otherProps }) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-nav__item");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/TitleHeader/TitleHeader.scss";
|
|
3
|
-
import { getComponentClassName } from "../../../../
|
|
3
|
+
import { getComponentClassName } from "../../../../utilities";
|
|
4
4
|
import { ToggleButton } from "../ToggleButton/ToggleButton";
|
|
5
5
|
import { Action } from "../../../../Action/Action";
|
|
6
6
|
import { getClassModifier } from "./TitleHeader.helpers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { InnerUser } from "./InnerUser";
|
|
3
3
|
import "@axa-fr/design-system-slash-css/dist/Layout/Header/Agent/User/User.scss";
|
|
4
|
-
import { getComponentClassName } from "../../../../
|
|
4
|
+
import { getComponentClassName } from "../../../../utilities";
|
|
5
5
|
const defaultClassName = "af-info-user";
|
|
6
6
|
const User = ({ children, classModifier, className, href, name, path, profile, onClick, title = "Voir mon profil", }) => {
|
|
7
7
|
const componentClassName = getComponentClassName(className, classModifier, defaultClassName);
|
|
@@ -3,7 +3,7 @@ import checkIcon from "@material-symbols/svg-400/outlined/check.svg";
|
|
|
3
3
|
import closeIcon from "@material-symbols/svg-400/outlined/close.svg";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { Variants } from "../../Button/Button.client";
|
|
6
|
-
import { getComponentClassName } from "../../
|
|
6
|
+
import { getComponentClassName } from "../../utilities";
|
|
7
7
|
import { Button, Svg } from "../../client";
|
|
8
8
|
export const ContentItemDuo = ({ label, value, isVertical = false, className, classModifier, isShowingDoneIcon = false, isShowingCloseIcon = false, buttonText, onButtonClick, }) => {
|
|
9
9
|
const componentClassName = useMemo(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { getComponentClassName } from "../../
|
|
3
|
+
import { getComponentClassName } from "../../utilities";
|
|
4
4
|
import { ContentItemMonoSize } from "./constants";
|
|
5
5
|
export const ContentItemMono = ({ children, className, classModifier, secondaryText, tertiaryText, leftElement, size = ContentItemMonoSize.M, isDisabled = false, isLeftElementCentered = false, hasStick = false, }) => {
|
|
6
6
|
const componentClassName = useMemo(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { getComponentClassName } from "../../
|
|
3
|
+
import { getComponentClassName } from "../../utilities";
|
|
4
4
|
const Items = ({ className, classModifier, onChange, displayLabel = "Afficher", elementsLabel = "éléments", id, items = [5, 10, 25, 50, 100], numberItems = 10, }) => {
|
|
5
5
|
const defaultIdName = useId();
|
|
6
6
|
const newId = id ?? defaultIdName;
|
package/dist/Table/THead.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
const THead = ({ children, className, classModifier, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getComponentClassName(className, classModifier, "af-table__thead");
|
|
5
5
|
return (_jsx("thead", { className: componentClassName, ...otherProps, children: children }));
|
package/dist/Table/Table.js
CHANGED
package/dist/Table/Td.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
const Td = ({ children, id, className, classModifier, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getComponentClassName(className, classModifier, "af-table__cell");
|
|
5
5
|
return (_jsx("td", { className: componentClassName, id: id, ...otherProps, children: children }, id));
|
package/dist/Table/Th.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
const Th = ({ children, id, className, classModifier, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getComponentClassName(className, classModifier, "af-table__th");
|
|
5
5
|
return (_jsx("th", { className: componentClassName, id: id, ...otherProps, children: children }, id));
|
package/dist/Table/Tr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getComponentClassName } from "../
|
|
2
|
+
import { getComponentClassName } from "../utilities";
|
|
3
3
|
const Tr = ({ children, id, className, classModifier, ...otherProps }) => {
|
|
4
4
|
const componentClassName = getComponentClassName(className, classModifier, "af-table__tr");
|
|
5
5
|
return (_jsx("tr", { className: componentClassName, ...otherProps, children: children }, id));
|
package/dist/Tag/Tag.client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { getComponentClassName } from "../
|
|
3
|
+
import { getComponentClassName } from "../utilities";
|
|
4
4
|
export const Tag = ({ children, className, classModifier = "", ...divProps }) => {
|
|
5
5
|
const componentClassName = useMemo(() => getComponentClassName(className, classModifier, "af-tag"), [className, classModifier]);
|
|
6
6
|
return (_jsx("div", { className: componentClassName, ...divProps, children: _jsx("span", { className: "af-tag__label", children: children }) }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import "@axa-fr/design-system-slash-css/dist/Title/Agent/Title.scss";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import { getComponentClassName } from "../../
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
export const Title = forwardRef(({ className, classModifier, children, heading: Heading = "h2", ...otherProps }, ref) => {
|
|
6
6
|
const componentClassName = getComponentClassName(className, classModifier, "af-title");
|
|
7
7
|
return (_jsx(Heading, { ref: ref, className: componentClassName, ...otherProps, children: children }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo, } from "react";
|
|
3
3
|
import { IconBg } from "../../client";
|
|
4
|
-
import { getComponentClassName } from "../../
|
|
4
|
+
import { getComponentClassName } from "../../utilities";
|
|
5
5
|
import { TitleSize } from "./constants";
|
|
6
6
|
import { TitleWithSubtitles } from "./TitleWithSubtitles";
|
|
7
7
|
export const Title = ({ children: title, className, classModifier, firstSubtitle, icon, secondSubtitle, size = TitleSize.XL, }) => {
|
package/dist/agent.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Badge } from "./Badge/Badge";
|
|
|
6
6
|
export { ButtonAgent as Button } from "./Button/Button.agent";
|
|
7
7
|
export { Checkbox, CheckboxInput, CheckboxItem, CheckboxModes, } from "./Form/Checkbox/Agent";
|
|
8
8
|
export { Choice, ChoiceInput } from "./Form/Choice";
|
|
9
|
-
export { Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes,
|
|
9
|
+
export { Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./Form/core";
|
|
10
10
|
export { Date, DateInput } from "./Form/Date";
|
|
11
11
|
export { MultiSelect, MultiSelectInput } from "./Form/MultiSelect";
|
|
12
12
|
export { Number, NumberInput } from "./Form/Number";
|
|
@@ -22,4 +22,5 @@ export { Step, StepBase, Steps } from "./Steps";
|
|
|
22
22
|
export { Svg } from "./Svg";
|
|
23
23
|
export { Tabs } from "./Tabs/Agent/Tabs.agent";
|
|
24
24
|
export { Title } from "./Title/Agent/Title";
|
|
25
|
+
export { getComponentClassName } from "./utilities";
|
|
25
26
|
export * from "./Table";
|
package/dist/agent.js
CHANGED
|
@@ -6,7 +6,7 @@ export { Badge } from "./Badge/Badge";
|
|
|
6
6
|
export { ButtonAgent as Button } from "./Button/Button.agent";
|
|
7
7
|
export { Checkbox, CheckboxInput, CheckboxItem, CheckboxModes, } from "./Form/Checkbox/Agent";
|
|
8
8
|
export { Choice, ChoiceInput } from "./Form/Choice";
|
|
9
|
-
export { Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes,
|
|
9
|
+
export { Field, FieldError, FieldForm, FieldInput, FormClassManager, HelpMessage, InputList, MessageTypes, } from "./Form/core";
|
|
10
10
|
export { Date, DateInput } from "./Form/Date";
|
|
11
11
|
export { MultiSelect, MultiSelectInput } from "./Form/MultiSelect";
|
|
12
12
|
export { Number, NumberInput } from "./Form/Number";
|
|
@@ -22,4 +22,5 @@ export { Step, StepBase, Steps } from "./Steps";
|
|
|
22
22
|
export { Svg } from "./Svg";
|
|
23
23
|
export { Tabs } from "./Tabs/Agent/Tabs.agent";
|
|
24
24
|
export { Title } from "./Title/Agent/Title";
|
|
25
|
+
export { getComponentClassName } from "./utilities";
|
|
25
26
|
export * from "./Table";
|
package/dist/utilities.d.ts
CHANGED
package/dist/utilities.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-slash-react",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.297",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./agent": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@axa-fr/design-system-slash-css": "0.2.0-beta.
|
|
48
|
+
"@axa-fr/design-system-slash-css": "0.2.0-beta.297",
|
|
49
49
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
50
50
|
"react": ">= 18"
|
|
51
51
|
},
|
|
File without changes
|
|
File without changes
|