@m4l/components 4.1.3 → 4.1.5

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.
@@ -5,9 +5,7 @@ export interface PropertyValueClassesType {
5
5
  value: string;
6
6
  iconProperty: string;
7
7
  isDisabled: string;
8
- isFocus: string;
9
8
  variantIsForm: string;
10
- isTabSelected: string;
11
9
  isMobile: string;
12
10
  }
13
11
  export declare type PropertyValueClassesKey = keyof PropertyValueClassesType;
@@ -18,8 +18,6 @@ export interface PropertyValueProps extends PropertyProps, ValueProps, Omit<Fiel
18
18
  disabled?: boolean;
19
19
  }
20
20
  export interface OwnerState extends Pick<PropertyValueProps, 'disabled'> {
21
- isFocus: boolean;
22
21
  isForm: boolean;
23
- isTabSelected: boolean;
24
22
  isMobile: boolean;
25
23
  }
@@ -1,9 +1,4 @@
1
1
  /// <reference types="react" />
2
- import SimpleBarReact from 'simplebar-react';
3
2
  export declare const RootStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const SimpleBarStyle: import("@emotion/styled").StyledComponent<SimpleBarReact.Props & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {
5
- ref?: import("react").Ref<SimpleBarReact> | undefined;
6
- }>;
7
- export declare const SimpleBarStyle2: import("@emotion/styled").StyledComponent<SimpleBarReact.Props & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {
8
- ref?: import("react").Ref<SimpleBarReact> | undefined;
9
- }>;
3
+ export declare const SimpleBarStyle: import("@emotion/styled").StyledComponent<import("simplebar-react").Props & import("react").RefAttributes<import("simplebar-core").default | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
4
+ export declare const SimpleBarStyle2: import("@emotion/styled").StyledComponent<import("simplebar-react").Props & import("react").RefAttributes<import("simplebar-core").default | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
- import SimpleBarReact from 'simplebar-react';
3
- export declare const SimpleBarStyle: import("@emotion/styled").StyledComponent<SimpleBarReact.Props & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {
4
- ref?: import("react").Ref<SimpleBarReact> | undefined;
5
- }>;
2
+ export declare const SimpleBarStyle: import("@emotion/styled").StyledComponent<import("simplebar-react").Props & import("react").RefAttributes<import("simplebar-core").default | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
3
  export declare const AnimatedScrollRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r, Y, bN, aQ, aS, aT, aR, aP, A, bL, bT, c3, j, o, n, k, Z, a1, bY, an, _, $, a9, aa, a0, aE, aG, aF, aI, aD, aC, aH, aJ, aB, bf, av, w, D, ap, aW, aL, b_, bZ, aM, bg, bi, aY, bU, bC, aN, b5, ab, I, b8, ac, t, b6, a2, b7, a3, b9, a4, bp, L, bX, br, ba, bc, bb, be, b$, a5, c5, bj, c4, M, c, b, bt, N, bw, bA, a6, bz, bB, ax, as, ad, bR, bQ, bS, ay, b4, P, bD, R, z, Q, K, C, E, G, J, F, U, V, X, c0, bE, aZ, bF, S, bW, bK, bG, ae, a8, ag, ai, ah, af, T, bH, bJ, al, am, aj, bV, ak, aq, bo, bn, l, W, a$, a_, b0, m, bI, aV, bm, bv, by, aX, aO, bO, bM, s, x, aU, a, aK, c1, au, ao, aw, at, az, aA, g, bq, bs, bl, bk, bu, bx, a7, H, B, y, O, ar, c9, b2, b1, c2, cc, u, c6, ca, cb, bd, bh, c7, bP, q, c8, p, d, e, v, h, i, f, b3 } from "./vendor-rSLsh4no.js";
1
+ import { r, Y, bN, aQ, aS, aT, aR, aP, A, bL, bT, c3, j, o, n, k, Z, a1, bY, an, _, $, a9, aa, a0, aE, aG, aF, aI, aD, aC, aH, aJ, aB, bf, av, w, D, ap, aW, aL, b_, bZ, aM, bg, bi, aY, bU, bC, aN, b5, ab, I, b8, ac, t, b6, a2, b7, a3, b9, a4, bp, L, bX, br, ba, bc, bb, be, b$, a5, c5, bj, c4, M, c, b, bt, N, bw, bA, a6, bz, bB, ax, as, ad, bR, bQ, bS, ay, b4, P, bD, R, z, Q, K, C, E, G, J, F, U, V, X, c0, bE, aZ, bF, S, bW, bK, bG, ae, a8, ag, ai, ah, af, T, bH, bJ, al, am, aj, bV, ak, aq, bo, bn, l, W, a$, a_, b0, m, bI, aV, bm, bv, by, aX, aO, bO, bM, s, x, aU, a, aK, c1, au, ao, aw, at, az, aA, g, bq, bs, bl, bk, bu, bx, a7, H, B, y, O, ar, c9, b2, b1, c2, cc, u, c6, ca, cb, bd, bh, c7, bP, q, c8, p, d, e, v, h, i, f, b3 } from "./vendor-B-YY15ND.js";
2
2
  export {
3
3
  r as AREAS_DICTIONARY_ID,
4
4
  Y as Accordion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "src/**/*.{js,ts,jsx,tsx}": "eslint --max-warnings=0 --fix",
@@ -53,7 +53,7 @@
53
53
  "react-spinners": "^0.13.8",
54
54
  "react-toastify": "10.0.5",
55
55
  "react-transition-group": "^4.4.5",
56
- "simplebar-react": "2.4.1",
56
+ "simplebar-react": "3.2.6",
57
57
  "storybook": "8.2.9",
58
58
  "yup": "^0.32.11",
59
59
  "zustand": "4.3.6"
@@ -9217,9 +9217,6 @@ const RootStyle = styled$1("div")(({ theme }) => ({
9217
9217
  ...theme.components?.M4LScrollBar?.styleOverrides
9218
9218
  }));
9219
9219
  const SimpleBarStyle = styled$1(SimpleBarReact)`
9220
- /* flex-grow: 1;
9221
- height: 100%;
9222
- overflow: hidden; */
9223
9220
  height: 100%;
9224
9221
  `;
9225
9222
  styled$1(SimpleBarReact)(({ theme }) => ({
@@ -10813,7 +10810,7 @@ const MessagePinButtonIconStyled = styled$1(Icon, {
10813
10810
  const ToastContainer = (props) => {
10814
10811
  const { children, fixed = true, dataTestId, ...restProps } = props;
10815
10812
  const ownerState = { fixed };
10816
- return /* @__PURE__ */ jsxs(
10813
+ return /* @__PURE__ */ jsx(AppearanceComponentProvider, { children: /* @__PURE__ */ jsxs(
10817
10814
  RootStyled$2,
10818
10815
  {
10819
10816
  ownerState,
@@ -10833,7 +10830,7 @@ const ToastContainer = (props) => {
10833
10830
  children
10834
10831
  ]
10835
10832
  }
10836
- );
10833
+ ) });
10837
10834
  };
10838
10835
  const ICONS = {
10839
10836
  SUCCESS: "success.svg",
@@ -22383,9 +22380,7 @@ generateUtilityClasses(
22383
22380
  "value",
22384
22381
  /* states or variants of elements */
22385
22382
  "isDisabled",
22386
- "isFocus",
22387
22383
  "variantIsForm",
22388
- "isTabSelected",
22389
22384
  "isMobile"
22390
22385
  ]
22391
22386
  );
@@ -22397,9 +22392,7 @@ const propertyValueUtilityClasses = (ownerState) => {
22397
22392
  root: [
22398
22393
  "root",
22399
22394
  ownerState.disabled && "isDisabled",
22400
- ownerState.isFocus && "isFocus",
22401
22395
  ownerState.isForm && "variantIsForm",
22402
- ownerState.isTabSelected && "isTabSelected",
22403
22396
  ownerState.isMobile && "isMobile"
22404
22397
  ],
22405
22398
  property: ["property"],
@@ -22431,8 +22424,6 @@ function PropertyValue(props) {
22431
22424
  helperMessage
22432
22425
  } = props;
22433
22426
  const isDesktop = useResponsiveDesktop();
22434
- const [isFocus, setIsFocus] = useState(false);
22435
- const [isTabSelected, setIsTabSelected] = useState(false);
22436
22427
  const getValueW = () => {
22437
22428
  if (valueWidthMobile && !isDesktop) {
22438
22429
  return valueWidthMobile;
@@ -22458,22 +22449,8 @@ function PropertyValue(props) {
22458
22449
  }
22459
22450
  return 100;
22460
22451
  };
22461
- const handlerFocus = () => {
22462
- setIsFocus(true);
22463
- };
22464
- const handlerKeyUp = (event) => {
22465
- if (event.key === "Tab") {
22466
- setIsTabSelected(true);
22467
- }
22468
- };
22469
- const handlerOnBlur = () => {
22470
- setIsFocus(false);
22471
- setIsTabSelected(false);
22472
- };
22473
22452
  const ownerState = {
22474
22453
  disabled: isForm && disabled ? disabled : false,
22475
- isFocus: !disabled && isForm ? isFocus : false,
22476
- isTabSelected: !disabled && isForm ? isTabSelected : false,
22477
22454
  isForm: isForm ? true : false,
22478
22455
  isMobile: !isDesktop
22479
22456
  };
@@ -22554,11 +22531,6 @@ function PropertyValue(props) {
22554
22531
  {
22555
22532
  className: clsx(classes2.root, className),
22556
22533
  style: { gridTemplateColumns: propertyWidth ? `${propertyWidth}px 1fr` : "150px 1fr" },
22557
- role: "button",
22558
- tabIndex: 0,
22559
- onClick: handlerFocus,
22560
- onBlur: handlerOnBlur,
22561
- onKeyUp: handlerKeyUp,
22562
22534
  ...process.env.NODE_ENV !== "production" ? {
22563
22535
  [TEST_PROPS_DATA]: JSON.stringify([
22564
22536
  { property: property ? true : false, value: value ? true : false }