@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.
Files changed (47) hide show
  1. package/dist/Action/Action.js +1 -1
  2. package/dist/Alert/Alert.agent.js +1 -1
  3. package/dist/Badge/Badge.js +1 -1
  4. package/dist/Card/Card.client.js +1 -1
  5. package/dist/Form/Date/Date.js +1 -1
  6. package/dist/Form/FileUpload/Client/FileUpload.js +2 -2
  7. package/dist/Form/Number/Number.js +1 -1
  8. package/dist/Form/Pass/Pass.js +1 -1
  9. package/dist/Form/Radio/Agent/RadioInput.d.ts +1 -1
  10. package/dist/Form/Select/Agent/SelectBase.js +1 -1
  11. package/dist/Form/Slider/Slider.agent.js +1 -1
  12. package/dist/Form/Text/Agent/Text.js +1 -1
  13. package/dist/Form/Text/Client/Text.js +1 -1
  14. package/dist/Form/Textarea/Textarea.js +1 -1
  15. package/dist/Form/core/Field.js +1 -1
  16. package/dist/Form/core/FieldError.js +1 -1
  17. package/dist/Form/core/FieldForm.js +1 -1
  18. package/dist/Form/core/FieldInput.js +1 -1
  19. package/dist/Form/core/getOptionClassName.js +1 -1
  20. package/dist/Form/core/index.d.ts +0 -1
  21. package/dist/Form/core/index.js +0 -1
  22. package/dist/IconBg/IconBg.client.js +1 -1
  23. package/dist/Layout/Header/Agent/Header.agent.js +1 -1
  24. package/dist/Layout/Header/Agent/Infos/Infos.js +1 -1
  25. package/dist/Layout/Header/Agent/Name/Name.js +1 -1
  26. package/dist/Layout/Header/Agent/NavBar/NavBarBase.js +1 -1
  27. package/dist/Layout/Header/Agent/NavBar/NavBarItem/NavBarItemBase.js +1 -1
  28. package/dist/Layout/Header/Agent/TitleHeader/TitleHeader.js +1 -1
  29. package/dist/Layout/Header/Agent/User/User.js +1 -1
  30. package/dist/List/ContentItemDuo/ContentItemDuo.js +1 -1
  31. package/dist/List/ContentItemMono/ContentItemMono.js +1 -1
  32. package/dist/Table/Pagination/Items.js +1 -1
  33. package/dist/Table/THead.js +1 -1
  34. package/dist/Table/Table.js +1 -1
  35. package/dist/Table/Td.js +1 -1
  36. package/dist/Table/Th.js +1 -1
  37. package/dist/Table/Tr.js +1 -1
  38. package/dist/Tag/Tag.client.js +1 -1
  39. package/dist/Title/Agent/Title.js +1 -1
  40. package/dist/Title/Client/Title.js +1 -1
  41. package/dist/agent.d.ts +2 -1
  42. package/dist/agent.js +2 -1
  43. package/dist/utilities.d.ts +1 -0
  44. package/dist/utilities.js +1 -0
  45. package/package.json +2 -2
  46. /package/dist/{Form/core → utilities/helpers}/getComponentClassName.d.ts +0 -0
  47. /package/dist/{Form/core → utilities/helpers}/getComponentClassName.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../Form/core";
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 "../Form/core";
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) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { getComponentClassName } from "../Form/core";
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");
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { getComponentClassName } from "../Form/core";
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]);
@@ -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 "../core";
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(_Fragment, { children: [_jsxs("li", { className: `af-form__file-line ${isInError ? "af-form__file-line--error" : ""}`, children: [_jsxs("div", { className: "af-form__file-title-container", children: [getIcon(isInError, isLoading), _jsxs("div", { className: "af-form__file-title", 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) => {
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 }))] })] }, fileId), isInError && (_jsxs("small", { className: "af-form__file-error", children: [_jsx(Svg, { src: errorO, className: "af-form__file-error-icon", width: 18 }), errorMessage] }))] }));
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 "../core";
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;
@@ -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 "../core";
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
- }, "className" | "label" | "id"> & {
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 "../../core";
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 "../core";
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 "../../core";
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 "../../core";
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 "../core";
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getComponentClassName } from "./getComponentClassName";
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 "./getComponentClassName";
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 "./getComponentClassName";
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 "./getComponentClassName";
2
+ import { getComponentClassName } from "../../utilities";
3
3
  export const FieldInput = ({ children, className = "", classModifier = "", isVisible = true, }) => {
4
4
  if (!isVisible) {
5
5
  return null;
@@ -1,4 +1,4 @@
1
- import { getComponentClassName } from "./getComponentClassName";
1
+ import { getComponentClassName } from "../../utilities";
2
2
  export function getOptionClassName(className, classModifier, defaultClassName, disabled) {
3
3
  const classModifierWithDisabled = [
4
4
  classModifier,
@@ -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;
@@ -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 "../Form/core";
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 "../../../agent";
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 "../../../../agent";
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 "../../../../agent";
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 "../../../../agent";
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 "../../../../../agent";
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 "../../../../agent";
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 "../../../../agent";
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 "../../Form/core";
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 "../../Form/core";
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 "../../Form/core";
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../Form/core";
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 }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../Form/core";
2
+ import { getComponentClassName } from "../utilities";
3
3
  import { TBody } from "./TBody";
4
4
  import { THead } from "./THead";
5
5
  import { Td } from "./Td";
package/dist/Table/Td.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getComponentClassName } from "../Form/core";
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 "../Form/core";
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 "../Form/core";
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));
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { getComponentClassName } from "../Form/core";
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 "../../Form/core";
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 "../../Form/core";
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, getComponentClassName, } from "./Form/core";
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, getComponentClassName, } from "./Form/core";
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";
@@ -1 +1,2 @@
1
+ export { getComponentClassName } from "./utilities/helpers/getComponentClassName";
1
2
  export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
package/dist/utilities.js CHANGED
@@ -1 +1,2 @@
1
+ export { getComponentClassName } from "./utilities/helpers/getComponentClassName";
1
2
  export { useIsSmallScreen } from "./utilities/hooks/useIsSmallScreen";
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.295",
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.295",
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
  },