@m4l/components 8.2.4 → 9.1.0

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 (139) hide show
  1. package/@types/export.d.ts +0 -6
  2. package/@types/types.d.ts +119 -100
  3. package/components/AccountPopover/classes/index.d.ts +1 -1
  4. package/components/CommonActions/components/ActionsContainer/ActionsContainer.d.ts +11 -0
  5. package/components/CommonActions/components/ActionsContainer/ActionsContainer.js +23 -0
  6. package/components/CommonActions/components/ActionsContainer/ActionsContainer.test.d.ts +1 -0
  7. package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.d.ts +2 -0
  8. package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +26 -0
  9. package/components/CommonActions/components/ActionsContainer/constans.d.ts +8 -0
  10. package/components/CommonActions/components/ActionsContainer/constans.js +4 -0
  11. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.d.ts +3 -0
  12. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.js +7 -0
  13. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +4 -0
  14. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.js +12 -0
  15. package/components/CommonActions/components/ActionsContainer/slots/index.d.ts +2 -0
  16. package/components/CommonActions/components/ActionsContainer/slots/index.js +1 -0
  17. package/components/CommonActions/components/ActionsContainer/types.d.ts +20 -0
  18. package/components/CommonActions/index.d.ts +1 -1
  19. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
  20. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
  21. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +4 -0
  22. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
  23. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  24. package/components/DynamicFilter/slots/dynamicFilterSlots.js +2 -2
  25. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
  26. package/components/SideBar/classes/index.d.ts +1 -1
  27. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +5 -0
  28. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +2 -2
  29. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
  30. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +4 -0
  31. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +2 -2
  32. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  33. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
  34. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
  35. package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  36. package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  37. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
  38. package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts +5 -0
  39. package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts +8 -0
  40. package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +4 -0
  41. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerEnum.d.ts +10 -0
  42. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +28 -0
  43. package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.defaultProps.stories.d.ts +26 -0
  44. package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.error.stories.d.ts +13 -0
  45. package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.variants.stories.d.ts +23 -0
  46. package/components/hook-form/RHFInputNumberSpinner/types.d.ts +71 -0
  47. package/components/hook-form/RHFTextField/RHFTextField.js +13 -23
  48. package/components/hook-form/RHFTextField/RHFTextField.styles.js +104 -157
  49. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  50. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +29 -0
  51. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +29 -0
  52. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +29 -0
  53. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +32 -0
  54. package/components/hook-form/RHFTextField/types.d.ts +3 -0
  55. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
  56. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
  57. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +2 -2
  58. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.js +1 -1
  59. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +4 -0
  60. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +2 -2
  61. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +1 -1
  62. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
  63. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
  64. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +2 -2
  65. package/components/modal/WindowConfirm/index.d.ts +5 -0
  66. package/components/modal/WindowConfirm/index.js +2 -2
  67. package/components/modal/classes/index.d.ts +2 -2
  68. package/components/mui_extended/MenuActions/MenuActions.d.ts +8 -1
  69. package/components/mui_extended/MenuActions/MenuActions.js +55 -77
  70. package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +4 -0
  71. package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -38
  72. package/components/mui_extended/MenuActions/constants.d.ts +17 -0
  73. package/components/mui_extended/MenuActions/constants.js +6 -2
  74. package/components/mui_extended/MenuActions/dictionary.d.ts +15 -0
  75. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +8 -5
  76. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -4
  77. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +29 -16
  78. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +16 -33
  79. package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +25 -0
  80. package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +13 -0
  81. package/components/mui_extended/MenuActions/types.d.ts +80 -18
  82. package/components/mui_extended/MenuItem/MenuItem.js +85 -0
  83. package/components/mui_extended/MenuItem/MenuItem.styles.js +121 -0
  84. package/components/mui_extended/MenuItem/constants.js +4 -0
  85. package/components/mui_extended/MenuItem/index.js +1 -0
  86. package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +9 -0
  87. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +24 -0
  88. package/components/mui_extended/MenuItem/types.js +1 -0
  89. package/components/mui_extended/Pager/classes/index.d.ts +1 -1
  90. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  91. package/components/mui_extended/Tab/Slots/TabEnum.d.ts +9 -0
  92. package/components/mui_extended/Tab/Slots/TabEnum.js +9 -0
  93. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +26 -0
  94. package/components/mui_extended/Tab/Slots/TabSlots.js +24 -0
  95. package/components/mui_extended/Tab/Slots/index.d.ts +2 -0
  96. package/components/mui_extended/Tab/Slots/index.js +1 -0
  97. package/components/mui_extended/Tab/Tab.d.ts +5 -0
  98. package/components/mui_extended/Tab/Tab.js +67 -0
  99. package/components/mui_extended/Tab/Tab.styles.d.ts +5 -0
  100. package/components/mui_extended/Tab/Tab.styles.js +147 -0
  101. package/components/mui_extended/Tab/constants.d.ts +14 -0
  102. package/components/mui_extended/Tab/constants.js +10 -0
  103. package/components/mui_extended/Tab/index.d.ts +1 -5
  104. package/components/mui_extended/Tab/types.d.ts +53 -2
  105. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
  106. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +6 -6
  107. package/components/mui_extended/TextField/types.d.ts +54 -10
  108. package/components/mui_extended/index.d.ts +1 -1
  109. package/index.js +3 -3
  110. package/package.json +1 -1
  111. package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts +13 -0
  112. package/storybook/components/extended/mui/Tab/stories/Tab.disable.stories.d.ts +36 -0
  113. package/storybook/components/extended/mui/Tab/stories/Tab.enable.stories.d.ts +36 -0
  114. package/storybook/components/extended/mui/Tab/stories/Tab.sizes.stories.d.ts +28 -0
  115. package/storybook/components/extended/mui/Tab/stories/Tab.skeleton.stories.d.ts +32 -0
  116. package/components/CommonActions/components/Actions/index.d.ts +0 -2
  117. package/components/CommonActions/components/Actions/index.js +0 -24
  118. package/components/CommonActions/components/Actions/styles.d.ts +0 -1
  119. package/components/CommonActions/components/Actions/styles.js +0 -14
  120. package/components/CommonActions/components/Actions/types.d.ts +0 -4
  121. package/components/CommonActions/tests/constants.js +0 -4
  122. package/components/CommonActions/tests/utils.js +0 -7
  123. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
  124. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +0 -9
  125. package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +0 -9
  126. package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +0 -9
  127. package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +0 -25
  128. package/components/mui_extended/Tab/classes/constants.d.ts +0 -1
  129. package/components/mui_extended/Tab/classes/constants.js +0 -4
  130. package/components/mui_extended/Tab/classes/index.d.ts +0 -10
  131. package/components/mui_extended/Tab/classes/index.js +0 -25
  132. package/components/mui_extended/Tab/classes/types.d.ts +0 -7
  133. package/components/mui_extended/Tab/constant.d.ts +0 -1
  134. package/components/mui_extended/Tab/constant.js +0 -4
  135. package/components/mui_extended/Tab/index.js +0 -40
  136. package/components/mui_extended/Tab/styles.d.ts +0 -2
  137. package/components/mui_extended/Tab/styles.js +0 -11
  138. package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
  139. /package/components/{mui_extended/Tab/tests/index.test.d.ts → CommonActions/components/ActionsContainer/ActionsContainer.integration.test.d.ts} +0 -0
@@ -0,0 +1,28 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tab } from '../../../../../../src/components/mui_extended/Tab';
3
+ /**
4
+ * El componente Tab agrupa contenido relacionado y permite la navegación sin salir de la página.
5
+ */
6
+ declare const meta: Meta<typeof Tab>;
7
+ export default meta;
8
+ type Story = StoryObj<typeof Tab>;
9
+ /**
10
+ * Tab base con icono y tamaño mediano, estilo seleccionado (activo).
11
+ */
12
+ export declare const Base: Story;
13
+ /**
14
+ * Tab activo de tamaño pequeño con icono.
15
+ */
16
+ export declare const SmallActive: Story;
17
+ /**
18
+ * Tab activo de tamaño mediano con icono.
19
+ */
20
+ export declare const MediumActive: Story;
21
+ /**
22
+ * Tab por defecto de tamaño pequeño con icono.
23
+ */
24
+ export declare const SmallDefault: Story;
25
+ /**
26
+ * Tab por defecto de tamaño mediano con icono.
27
+ */
28
+ export declare const MediumDefault: Story;
@@ -0,0 +1,32 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tab } from '../../../../../../src/components/mui_extended/Tab';
3
+ /**
4
+ * El componente Tab agrupa contenido relacionado y permite la navegación sin salir de la página.
5
+ */
6
+ declare const meta: Meta<typeof Tab>;
7
+ export default meta;
8
+ type Story = StoryObj<typeof Tab>;
9
+ /**
10
+ * Tab en estado Skeleton cuando está activo, con icono y texto.
11
+ */
12
+ export declare const SkeletonActiveWithIconAndText: Story;
13
+ /**
14
+ * Tab en estado Skeleton cuando está activo, con solo texto.
15
+ */
16
+ export declare const SkeletonActiveWithText: Story;
17
+ /**
18
+ * Tab en estado Skeleton cuando está activo, con solo icono.
19
+ */
20
+ export declare const SkeletonActiveWithIcon: Story;
21
+ /**
22
+ * Tab en estado Skeleton por defecto, con icono y texto.
23
+ */
24
+ export declare const SkeletonDefaultWithIconAndText: Story;
25
+ /**
26
+ * Tab en estado Skeleton por defecto, con solo texto.
27
+ */
28
+ export declare const SkeletonDefaultWithText: Story;
29
+ /**
30
+ * Tab en estado Skeleton por defecto, con solo icono.
31
+ */
32
+ export declare const SkeletonDefaultWithIcon: Story;
@@ -1,2 +0,0 @@
1
- import { CommonActionsProps } from './types';
2
- export declare const Actions: import('react').ForwardRefExoticComponent<CommonActionsProps & import('react').RefAttributes<any>>;
@@ -1,24 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import clsx from "clsx";
4
- import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
5
- import { u as useCommonActionsUtilityClasses } from "../../classes/index.js";
6
- import { W as WrapperStandarActions } from "./styles.js";
7
- import { g as getNameCommonActionsDataTestId } from "../../tests/utils.js";
8
- const Actions = forwardRef(function ActionsForwarded(props, ref) {
9
- const { children, ...restProps } = props;
10
- const classes = useCommonActionsUtilityClasses();
11
- return /* @__PURE__ */ jsx(
12
- WrapperStandarActions,
13
- {
14
- ...restProps,
15
- ref,
16
- className: clsx(classes.root, restProps?.className),
17
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameCommonActionsDataTestId("root") } : {},
18
- children
19
- }
20
- );
21
- });
22
- export {
23
- Actions as A
24
- };
@@ -1 +0,0 @@
1
- export declare const WrapperStandarActions: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,14 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- const WrapperStandarActions = styled("div")(({ theme }) => ({
3
- // paddingTop: theme.spacing(3),
4
- // display: 'flex',
5
- // flexDirection: 'row',
6
- // justifyContent: 'flex-end',
7
- // '& > button': {
8
- // marginLeft: '10px',
9
- // },
10
- ...theme.components?.M4LCommonActions?.styleOverrides || {}
11
- }));
12
- export {
13
- WrapperStandarActions as W
14
- };
@@ -1,4 +0,0 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
2
- export interface CommonActionsProps extends HTMLAttributes<HTMLDivElement> {
3
- children: ReactNode;
4
- }
@@ -1,4 +0,0 @@
1
- const COMMONACTIONS_PREFIX = "M4LCommonActions";
2
- export {
3
- COMMONACTIONS_PREFIX as C
4
- };
@@ -1,7 +0,0 @@
1
- import { C as COMMONACTIONS_PREFIX } from "./constants.js";
2
- const getNameCommonActionsDataTestId = (KEY) => {
3
- return `${COMMONACTIONS_PREFIX}-${KEY}`;
4
- };
5
- export {
6
- getNameCommonActionsDataTestId as g
7
- };
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react/*';
2
- import { RHFTextField } from '../../..';
3
- declare const meta: Meta<typeof RHFTextField>;
4
- type Story = StoryObj<typeof RHFTextField>;
5
- /**
6
- * Error en RHFTextField outlined y text se utiliza para mostrar un campo de texto que indica un estado de error. Esto es útil para proporcionar retroalimentación visual al usuario cuando hay un problema con la entrada de datos.
7
- */
8
- export declare const ErrorOutlined: Story;
9
- export default meta;
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react/*';
2
- import { RHFTextField } from '../../..';
3
- declare const meta: Meta<typeof RHFTextField>;
4
- type Story = StoryObj<typeof RHFTextField>;
5
- /**
6
- * Error en RHFTextField outlined y text se utiliza para mostrar un campo de texto que indica un estado de error. Esto es útil para proporcionar retroalimentación visual al usuario cuando hay un problema con la entrada de datos.
7
- */
8
- export declare const ErrorText: Story;
9
- export default meta;
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react/*';
2
- import { RHFTextField } from '../../..';
3
- declare const meta: Meta<typeof RHFTextField>;
4
- type Story = StoryObj<typeof RHFTextField>;
5
- /**
6
- * Story for the primary outlined RHFvariants of the TextField component.
7
- */
8
- export declare const PrimaryOutlined: Story;
9
- export default meta;
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react/*';
2
- import { RHFTextField } from '../../..';
3
- declare const meta: Meta<typeof RHFTextField>;
4
- type Story = StoryObj<typeof RHFTextField>;
5
- /**
6
- * Story for the primary text variant of the TextField component.
7
- */
8
- export declare const PrimaryText: Story;
9
- export default meta;
@@ -1,25 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { MenuActions } from './index';
3
- declare const meta: Meta<typeof MenuActions>;
4
- export default meta;
5
- type Story = StoryObj<typeof MenuActions>;
6
- /**
7
- * Base MenuActions component
8
- */
9
- export declare const Base: Story;
10
- /**
11
- * MenuActions in skeleton mode
12
- */
13
- export declare const WithSkeleton: Story;
14
- /**
15
- * MenuActions with Badge content
16
- */
17
- export declare const WithBadge: Story;
18
- /**
19
- * MenuActions with end ListElement
20
- */
21
- export declare const WithEndListElement: Story;
22
- /**
23
- * MenuActions empty state
24
- */
25
- export declare const Empty: Story;
@@ -1 +0,0 @@
1
- export declare const componentName = "M4LTab";
@@ -1,4 +0,0 @@
1
- const componentName = "M4LTab";
2
- export {
3
- componentName as c
4
- };
@@ -1,10 +0,0 @@
1
- import { TabClassesType } from './types';
2
- export declare const tabClasses: TabClassesType;
3
- export declare function getTabUtilityClass(slot: string): string;
4
- /**
5
- * TODO: Documentar
6
- */
7
- export declare const tabUtilityClasses: () => {
8
- skeleton: string;
9
- root: string;
10
- };
@@ -1,25 +0,0 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import { unstable_composeClasses } from "@mui/base";
3
- import { c as componentName } from "./constants.js";
4
- generateUtilityClasses(componentName, [
5
- /* elements */
6
- "root",
7
- "skeleton"
8
- /* states or variants of elements */
9
- ]);
10
- function getTabUtilityClass(slot) {
11
- return generateUtilityClass(componentName, slot);
12
- }
13
- const tabUtilityClasses = () => {
14
- const slots = {
15
- root: ["root"],
16
- skeleton: ["skeleton"]
17
- };
18
- const composedClasses = unstable_composeClasses(slots, getTabUtilityClass, {});
19
- return {
20
- ...composedClasses
21
- };
22
- };
23
- export {
24
- tabUtilityClasses as t
25
- };
@@ -1,7 +0,0 @@
1
- import { tabUtilityClasses } from '.';
2
- export interface TabClassesType {
3
- root: string;
4
- skeleton: string;
5
- }
6
- export type TabClassesKey = keyof TabClassesType;
7
- export type Classes = ReturnType<typeof tabUtilityClasses>;
@@ -1 +0,0 @@
1
- export declare const COMPONENT_PREFIX = "m4l-tab";
@@ -1,4 +0,0 @@
1
- const COMPONENT_PREFIX = "m4l-tab";
2
- export {
3
- COMPONENT_PREFIX as C
4
- };
@@ -1,40 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useModuleSkeleton } from "@m4l/core";
3
- import { Tab as Tab$1, Skeleton } from "@mui/material";
4
- import { T as TabRoot, S as SKTTabWrapper } from "./styles.js";
5
- import { t as tabUtilityClasses } from "./classes/index.js";
6
- import clsx from "clsx";
7
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
8
- import { g as getNameDataTestId } from "../../../test/getNameDataTestId.js";
9
- import { C as COMPONENT_PREFIX } from "./constant.js";
10
- function Tab(props) {
11
- const { SKTWidth, SKTHeight, className, dataTestId = "", ...other } = props;
12
- const isSkeleton = useModuleSkeleton();
13
- const classes = tabUtilityClasses();
14
- return /* @__PURE__ */ jsx(
15
- TabRoot,
16
- {
17
- className: clsx(classes.root, className),
18
- ...process.env.NODE_ENV !== "production" ? {
19
- [TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
20
- } : {},
21
- children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
22
- SKTTabWrapper,
23
- {
24
- className: classes.skeleton,
25
- ...process.env.NODE_ENV !== "production" ? {
26
- [TEST_PROP_ID]: getNameDataTestId(
27
- COMPONENT_PREFIX,
28
- "skeleton",
29
- dataTestId
30
- )
31
- } : {},
32
- children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: SKTWidth, height: SKTHeight })
33
- }
34
- )
35
- }
36
- );
37
- }
38
- export {
39
- Tab as T
40
- };
@@ -1,2 +0,0 @@
1
- export declare const TabRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
- export declare const SKTTabWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,11 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- const TabRoot = styled("div")(({ theme }) => ({
3
- ...theme.components?.M4LTab?.styleOverrides || {}
4
- }));
5
- const SKTTabWrapper = styled("div")(({ theme }) => ({
6
- padding: theme.spacing(1.5, 2)
7
- }));
8
- export {
9
- SKTTabWrapper as S,
10
- TabRoot as T
11
- };
@@ -1,2 +0,0 @@
1
- import { TabClassesKey } from '../classes/types';
2
- export declare const getNameTabDataTestId: (KEY: TabClassesKey, DATATESTID: string) => string;