@m4l/components 9.1.68 → 9.1.70
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/@types/types.d.ts +25 -120
- package/components/Loadable/index.d.ts +8 -0
- package/components/Loadable/index.js +2 -2
- package/components/NumberInput/NumberInput.d.ts +5 -0
- package/components/{InputNumberSpinner/InputNumberSpinner.styles.d.ts → NumberInput/NumberInput.styles.d.ts} +2 -2
- package/components/NumberInput/NumberInput.test.d.ts +1 -0
- package/components/NumberInput/constants.d.ts +4 -0
- package/components/NumberInput/hooks/useNumberInput/NumberInputActions.d.ts +42 -0
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.d.ts +5 -0
- package/components/NumberInput/hooks/useNumberInput/types.d.ts +126 -0
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.d.ts +26 -0
- package/components/NumberInput/slots/NumberInputEnum.d.ts +9 -0
- package/components/NumberInput/slots/NumberInputSlots.d.ts +21 -0
- package/components/NumberInput/types.d.ts +48 -0
- package/components/NumberInput/utils.d.ts +6 -0
- package/components/animate/index.d.ts +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.d.ts +11 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +53 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.d.ts +2 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +39 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/constants.d.ts +1 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/constants.js +4 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerEnum.d.ts +4 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerEnum.js +8 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +6 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.js +17 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/index.d.ts +2 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/index.js +1 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/tests/PropagateLoaderSpinner.test.d.ts +1 -0
- package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +58 -0
- package/components/hook-form/{RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts → RHFNumberInput/RHFNumberInput.d.ts} +2 -2
- package/components/hook-form/{RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts → RHFNumberInput/RHFNumberInput.styles.d.ts} +2 -2
- package/components/hook-form/RHFNumberInput/RHFNumberInput.test.d.ts +1 -0
- package/components/hook-form/RHFNumberInput/constants.d.ts +4 -0
- package/components/hook-form/{RHFInputNumberSpinner/slots/RHFInputNumberSpinnerEnum.d.ts → RHFNumberInput/slots/RHFNumberInputEnum.d.ts} +2 -5
- package/components/hook-form/RHFNumberInput/slots/RHFNumberInputSlots.d.ts +7 -0
- package/components/hook-form/RHFNumberInput/types.d.ts +47 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/utils/getHeightSizeStyles.d.ts +12 -0
- package/components/ControlIncrement/ControlIncrement.d.ts +0 -9
- package/components/ControlIncrement/ControlIncrement.styles.d.ts +0 -8
- package/components/ControlIncrement/constants.d.ts +0 -25
- package/components/ControlIncrement/slots/ControlIncrementEnum.d.ts +0 -6
- package/components/ControlIncrement/slots/ControltrolIncrementSlots.d.ts +0 -14
- package/components/ControlIncrement/slots/index.d.ts +0 -2
- package/components/ControlIncrement/stories/ControlClick/ControlIncrement.controlclick.stories.d.ts +0 -13
- package/components/ControlIncrement/stories/DefaultAndDisabled/ControlIncrement.defaultanddisabled.stories.d.ts +0 -17
- package/components/ControlIncrement/stories/Sizes/ControlIncrement.sizes.stories.d.ts +0 -21
- package/components/ControlIncrement/types.d.ts +0 -56
- package/components/InputNumberSpinner/InputNumberSpinner.d.ts +0 -9
- package/components/InputNumberSpinner/constants.d.ts +0 -9
- package/components/InputNumberSpinner/hooks/types.d.ts +0 -13
- package/components/InputNumberSpinner/hooks/useInputNumberSpinner.d.ts +0 -19
- package/components/InputNumberSpinner/index.d.ts +0 -2
- package/components/InputNumberSpinner/slots/InputNumberSpinnerEnum.d.ts +0 -7
- package/components/InputNumberSpinner/slots/InputNumberSpinnerSlots.d.ts +0 -15
- package/components/InputNumberSpinner/slots/index.d.ts +0 -2
- package/components/InputNumberSpinner/stories/Default/InputNumberSpinner.default.stories.d.ts +0 -25
- package/components/InputNumberSpinner/stories/Error/InputNumberSpinner.error.stories.d.ts +0 -25
- package/components/InputNumberSpinner/stories/Sizes/InputNumberSpinner.sizes.stories.d.ts +0 -41
- package/components/InputNumberSpinner/stories/Variants/InputNumberSpinner.variants.stories.d.ts +0 -25
- package/components/InputNumberSpinner/types.d.ts +0 -64
- package/components/animate/PropagateLoader/index.d.ts +0 -6
- package/components/animate/PropagateLoader/index.js +0 -11
- package/components/animate/PropagateLoader/syles.d.ts +0 -1
- package/components/animate/PropagateLoader/syles.js +0 -16
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +0 -4
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +0 -28
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.defaultProps.stories.d.ts +0 -26
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.error.stories.d.ts +0 -13
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.variants.stories.d.ts +0 -23
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +0 -71
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Sizes } from '@m4l/styles';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
4
|
+
import { NumberInputSlots as Slots } from './slots/NumberInputEnum';
|
|
5
|
+
import { NUMBER_INPUT_KEY_COMPONENT } from './constants';
|
|
6
|
+
import { UseNumberInputParameters } from './hooks/useNumberInput/types';
|
|
7
|
+
export interface NumberInputOwnProps extends Omit<UseNumberInputParameters, 'error' | 'inputId' | 'inputRef' | 'focusError'> {
|
|
8
|
+
/**
|
|
9
|
+
* Clase
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Trailing adornment for this input.
|
|
14
|
+
*/
|
|
15
|
+
endAdornment?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* If `true`, the `input` will indicate an error by setting the `aria-invalid` attribute on the input and the `baseui--error` class on the root element.
|
|
18
|
+
*/
|
|
19
|
+
error?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The id of the `input` element.
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The short hint displayed in the `input` before the user enters a value.
|
|
26
|
+
*/
|
|
27
|
+
placeholder?: React.InputHTMLAttributes<HTMLInputElement>['placeholder'];
|
|
28
|
+
/**
|
|
29
|
+
* Leading adornment for this input.
|
|
30
|
+
*/
|
|
31
|
+
startAdornment?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface NumberInputProps extends NumberInputOwnProps {
|
|
34
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
35
|
+
variant?: 'outlined' | 'text';
|
|
36
|
+
withDecimal?: boolean;
|
|
37
|
+
dataTestId?: string;
|
|
38
|
+
}
|
|
39
|
+
export type NumberInputOwnerState = {
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
42
|
+
variant?: 'outlined' | 'text';
|
|
43
|
+
error?: boolean;
|
|
44
|
+
focusError?: boolean;
|
|
45
|
+
noButtons?: boolean;
|
|
46
|
+
};
|
|
47
|
+
export type NumberInputSlotsType = keyof typeof Slots;
|
|
48
|
+
export type NumberInputStyles = OverridesStyleRules<Slots, typeof NUMBER_INPUT_KEY_COMPONENT, Theme>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ajusta un valor de manera controlada dentro de un rango y en pasos definidos,
|
|
3
|
+
* y isNumber verifica si un valor es un número válido
|
|
4
|
+
*/
|
|
5
|
+
export declare function clampStepwise(val: number, min?: number, max?: number, stepProp?: number, withDecimal?: boolean): number;
|
|
6
|
+
export declare function isNumber(val: unknown): val is number;
|
|
@@ -3,5 +3,5 @@ export { IconButtonAnimate } from './IconButtonAnimate';
|
|
|
3
3
|
export { MotionContainer } from './MotionContainer';
|
|
4
4
|
export { MotionLazyContainer } from './MotionLazyContainer';
|
|
5
5
|
export { LoadingScreen } from './LoadingScreen';
|
|
6
|
-
export {
|
|
6
|
+
export { PropagateLoaderSpinner } from '../extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner';
|
|
7
7
|
export { AnimatedScroll } from './AnimatedScroll';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropagateLoaderSpinnerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Un componente de cargador que muestra un propagador de carga.
|
|
4
|
+
* Utiliza React Spinners bajo el nombre de `PropagateLoader`.
|
|
5
|
+
* @returns Un componente de cargador que muestra un propagador de carga.
|
|
6
|
+
* @author cesar - automatic
|
|
7
|
+
* @createdAt 2025-01-07 11:39:01 - automatic
|
|
8
|
+
* @updatedAt 2025-01-14 14:13:30 - automatic
|
|
9
|
+
* @updatedUser cesar - automatic
|
|
10
|
+
*/
|
|
11
|
+
export declare const PropagateLoaderSpinner: React.FC<PropagateLoaderSpinnerProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme } from "@mui/material";
|
|
3
|
+
import { P as PropagateLoaderSpinnerStyled, L as LoaderStyled } from "./slots/PropagateLoaderSpinnerSlots.js";
|
|
4
|
+
import { P as PROPAGATE_LOADER_SPINNER_KEY_COMPONENT } from "./constants.js";
|
|
5
|
+
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
6
|
+
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
7
|
+
import clsx from "clsx";
|
|
8
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
|
+
import { P as PropagateLoaderSpinnerSlots } from "./slots/PropagateLoaderSpinnerEnum.js";
|
|
10
|
+
const PropagateLoaderSpinner = ({
|
|
11
|
+
loading = true,
|
|
12
|
+
color,
|
|
13
|
+
speedMultiplier = 1,
|
|
14
|
+
cssOverride,
|
|
15
|
+
size = "medium",
|
|
16
|
+
dataTestId,
|
|
17
|
+
className,
|
|
18
|
+
...other
|
|
19
|
+
}) => {
|
|
20
|
+
const { palette } = useTheme();
|
|
21
|
+
const { currentSize } = useComponentSize(size);
|
|
22
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
23
|
+
const ownerState = {
|
|
24
|
+
propagateLoaderSize: adjustedSize
|
|
25
|
+
};
|
|
26
|
+
if (!loading) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
PropagateLoaderSpinnerStyled,
|
|
31
|
+
{
|
|
32
|
+
ownerState,
|
|
33
|
+
className: clsx(getComponentSlotRoot(PROPAGATE_LOADER_SPINNER_KEY_COMPONENT), className),
|
|
34
|
+
...getPropDataTestId(PROPAGATE_LOADER_SPINNER_KEY_COMPONENT, PropagateLoaderSpinnerSlots.root, dataTestId),
|
|
35
|
+
...other,
|
|
36
|
+
role: "propagate-loader-spinner",
|
|
37
|
+
children: /* @__PURE__ */ jsx(
|
|
38
|
+
LoaderStyled,
|
|
39
|
+
{
|
|
40
|
+
ownerState: {},
|
|
41
|
+
loading,
|
|
42
|
+
color: color || palette.primary.main,
|
|
43
|
+
speedMultiplier,
|
|
44
|
+
cssOverride,
|
|
45
|
+
...other
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
PropagateLoaderSpinner as P
|
|
53
|
+
};
|
package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { g as getHeightSizeStyles } from "../../../../utils/getHeightSizeStyles.js";
|
|
2
|
+
const propagateLoaderSpinnerStyles = {
|
|
3
|
+
/**
|
|
4
|
+
* Estilos del componente raíz del contenedor de la ventana.
|
|
5
|
+
* @author cesar - automatic
|
|
6
|
+
* @createdAt 2024-11-21 08:55:01 - automatic
|
|
7
|
+
* @updatedAt 2025-01-14 14:13:30 - automatic
|
|
8
|
+
* @updatedUser cesar - automatic
|
|
9
|
+
*/
|
|
10
|
+
root: () => ({
|
|
11
|
+
height: "100%",
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center"
|
|
15
|
+
}),
|
|
16
|
+
/**
|
|
17
|
+
* Estilos del loader.
|
|
18
|
+
* @author cesar - automatic
|
|
19
|
+
* @createdAt 2025-01-14 14:13:30 - automatic
|
|
20
|
+
* @updatedAt 2025-01-14 14:13:30 - automatic
|
|
21
|
+
* @updatedUser cesar - automatic
|
|
22
|
+
*/
|
|
23
|
+
loader: ({ theme, ownerState }) => ({
|
|
24
|
+
display: "flex",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
...getHeightSizeStyles(
|
|
28
|
+
theme.generalSettings.isMobile,
|
|
29
|
+
ownerState.propagateLoaderSize || "medium",
|
|
30
|
+
"action"
|
|
31
|
+
),
|
|
32
|
+
"& > span": {
|
|
33
|
+
alignItems: "center"
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
propagateLoaderSpinnerStyles as p
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROPAGATE_LOADER_SPINNER_KEY_COMPONENT = "M4LPropagateLoaderSpinner";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PropagateLoaderSpinnerSlots = /* @__PURE__ */ ((PropagateLoaderSpinnerSlots2) => {
|
|
2
|
+
PropagateLoaderSpinnerSlots2["root"] = "root";
|
|
3
|
+
PropagateLoaderSpinnerSlots2["loader"] = "loader";
|
|
4
|
+
return PropagateLoaderSpinnerSlots2;
|
|
5
|
+
})(PropagateLoaderSpinnerSlots || {});
|
|
6
|
+
export {
|
|
7
|
+
PropagateLoaderSpinnerSlots as P
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PropagateLoaderSpinnerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').PropagateLoaderSpinnerOwnerState> & Record<string, unknown> & {
|
|
2
|
+
ownerState: Partial<import('../types').PropagateLoaderSpinnerOwnerState> & Record<string, unknown>;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const LoaderStyled: import('@emotion/styled').StyledComponent<Pick<import('react-spinners/helpers/props').LoaderSizeProps, keyof import('react-spinners/helpers/props').LoaderSizeProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').PropagateLoaderSpinnerOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').PropagateLoaderSpinnerOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { styled } from "@mui/material";
|
|
2
|
+
import { P as PROPAGATE_LOADER_SPINNER_KEY_COMPONENT } from "../constants.js";
|
|
3
|
+
import { P as PropagateLoaderSpinnerSlots } from "./PropagateLoaderSpinnerEnum.js";
|
|
4
|
+
import { p as propagateLoaderSpinnerStyles } from "../PropagateLoaderSpinner.styles.js";
|
|
5
|
+
import { PropagateLoader } from "react-spinners";
|
|
6
|
+
const PropagateLoaderSpinnerStyled = styled("div", {
|
|
7
|
+
name: PROPAGATE_LOADER_SPINNER_KEY_COMPONENT,
|
|
8
|
+
slot: PropagateLoaderSpinnerSlots.root
|
|
9
|
+
})(propagateLoaderSpinnerStyles?.root);
|
|
10
|
+
const LoaderStyled = styled(PropagateLoader, {
|
|
11
|
+
name: PROPAGATE_LOADER_SPINNER_KEY_COMPONENT,
|
|
12
|
+
slot: PropagateLoaderSpinnerSlots.loader
|
|
13
|
+
})(propagateLoaderSpinnerStyles?.loader);
|
|
14
|
+
export {
|
|
15
|
+
LoaderStyled as L,
|
|
16
|
+
PropagateLoaderSpinnerStyled as P
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { PropagateLoaderSpinnerSlots } from './slots/PropagateLoaderSpinnerEnum';
|
|
3
|
+
import { PROPAGATE_LOADER_SPINNER_KEY_COMPONENT } from './constants';
|
|
4
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
|
+
import { Theme } from '@mui/material';
|
|
6
|
+
import { Sizes } from '@m4l/styles';
|
|
7
|
+
export type PropagateLoaderSpinnerType = keyof typeof PropagateLoaderSpinnerSlots;
|
|
8
|
+
/**
|
|
9
|
+
* Propiedades comunes para configurar el loader.
|
|
10
|
+
*/
|
|
11
|
+
export interface PropagateLoaderSpinnerProps {
|
|
12
|
+
/**
|
|
13
|
+
* Indica si el loader debe mostrarse o no.
|
|
14
|
+
* Por defecto: `true`.
|
|
15
|
+
*/
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Color del loader.
|
|
19
|
+
* Puede ser cualquier valor de color válido en CSS.
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Factor de multiplicación de la velocidad del loader.
|
|
24
|
+
* Por defecto: `1`.
|
|
25
|
+
*/
|
|
26
|
+
speedMultiplier?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Estilos en línea para sobrescribir los predeterminados del loader.
|
|
29
|
+
*/
|
|
30
|
+
cssOverride?: CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Opciones de tamaño del componente.
|
|
33
|
+
*/
|
|
34
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
35
|
+
/**
|
|
36
|
+
* data-testid para pruebas unitarias.
|
|
37
|
+
*/
|
|
38
|
+
dataTestId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Clase CSS para sobrescribir los estilos predeterminados del loader.
|
|
41
|
+
*/
|
|
42
|
+
className?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Props adicionales que se pueden pasar al loader.
|
|
45
|
+
*/
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export interface PropagateLoaderSpinnerOwnerState {
|
|
49
|
+
/**
|
|
50
|
+
* Tamaño del campo de texto.
|
|
51
|
+
*/
|
|
52
|
+
propagateLoaderSize: PropagateLoaderSpinnerProps['size'];
|
|
53
|
+
/**
|
|
54
|
+
* Props adicionales que se pueden pasar al loader.
|
|
55
|
+
*/
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
export type PropagateLoaderSpinnerStyles = OverridesStyleRules<PropagateLoaderSpinnerType, typeof PROPAGATE_LOADER_SPINNER_KEY_COMPONENT, Theme>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RHFNumberInputProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente RHFInputNumberSpinner
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
@@ -6,4 +6,4 @@ import { RHFInputNumberSpinnerProps } from './types';
|
|
|
6
6
|
* @updatedAt 2024-12-30 14:36:10 - automatic
|
|
7
7
|
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const RHFNumberInput: (props: RHFNumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RHFNumberInputStyles } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Estilos para el componente `RHFInputNumberSpinner`.
|
|
4
4
|
*
|
|
5
5
|
* Este objeto contiene los estilos para los diferentes slots del componente,
|
|
6
6
|
* permitiendo personalizar su apariencia a través de las propiedades definidas.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const rhfNumberInputStyles: RHFNumberInputStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
* Define los nombres de los slots de estilo para el componente `RHFInputNumberSpinner`. Estos slots se utilizan para
|
|
3
3
|
* aplicar estilos específicos y crear clases CSS únicas para los distintos elementos del componente.
|
|
4
4
|
*/
|
|
5
|
-
export declare enum
|
|
6
|
-
root = "root"
|
|
7
|
-
label = "label",
|
|
8
|
-
inputNumberSpinner = "inputNumberSpinner",
|
|
9
|
-
helperError = "helperError"
|
|
5
|
+
export declare enum RHFNumberInputSlots {
|
|
6
|
+
root = "root"
|
|
10
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Este componente utiliza el slot `root` para aplicar estilos personalizados
|
|
3
|
+
* al contenedor principal del `RHFInputNumberSpinner`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').RHFNumberInputOwnerState> & Record<string, unknown> & {
|
|
6
|
+
ownerState: Partial<import('../types').RHFNumberInputOwnerState> & Record<string, unknown>;
|
|
7
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Sizes } from '@m4l/styles';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
4
|
+
import { NumberInputProps } from '../../NumberInput/types';
|
|
5
|
+
import { LabelProps } from '../../Label';
|
|
6
|
+
import { RHFNumberInputSlots } from './slots/RHFNumberInputEnum';
|
|
7
|
+
import { RHF_NUMBER_INPUT_KEY_COMPONENT } from './constants';
|
|
8
|
+
/**
|
|
9
|
+
* Props para el componente RHFNumberInput
|
|
10
|
+
*/
|
|
11
|
+
export interface RHFNumberInputProps extends Omit<LabelProps, 'label' | 'color'>, Omit<NumberInputProps, 'variant' | 'color' | 'value'> {
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Prop Para el testeo del componente
|
|
15
|
+
*/
|
|
16
|
+
instaceDataTestId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* label para informar sobre el campo
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Variante
|
|
23
|
+
*/
|
|
24
|
+
variant?: 'outlined' | 'text';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Define las claves del objeto `RHFNumberInputSlotsType`, que se utilizan para
|
|
28
|
+
* hacer referencia a los diferentes slots disponibles para estilizar el componente
|
|
29
|
+
* `RHFInputNumberSpinner`.
|
|
30
|
+
*/
|
|
31
|
+
export type RHFNumberInputSlotsType = keyof typeof RHFNumberInputSlots;
|
|
32
|
+
/**
|
|
33
|
+
* Representa las propiedades de estado específicas del componente `RHFNumberInputOwnerState`.
|
|
34
|
+
*/
|
|
35
|
+
export interface RHFNumberInputOwnerState {
|
|
36
|
+
/**
|
|
37
|
+
* Valor para definir el tamaño del icono.
|
|
38
|
+
*/
|
|
39
|
+
iconSize: Sizes;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Define los estilos del componente `RHFNumberInputStyles`. Permite la personalización parcial
|
|
43
|
+
* de las reglas de estilo mediante `OverridesStyleRules`.
|
|
44
|
+
*
|
|
45
|
+
* Puede ser parcial o estar indefinido.
|
|
46
|
+
*/
|
|
47
|
+
export type RHFNumberInputStyles = OverridesStyleRules<RHFNumberInputSlots, typeof RHF_NUMBER_INPUT_KEY_COMPONENT, Theme>;
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { I as I2 } from "./components/animate/IconButtonAnimate/index.js";
|
|
|
10
10
|
import { M } from "./components/animate/MotionContainer/index.js";
|
|
11
11
|
import { M as M2 } from "./components/animate/MotionLazyContainer/index.js";
|
|
12
12
|
import { L } from "./components/animate/LoadingScreen/index.js";
|
|
13
|
-
import { P } from "./components/
|
|
13
|
+
import { P } from "./components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js";
|
|
14
14
|
import { A } from "./components/animate/AnimatedScroll/animatedScroll.js";
|
|
15
15
|
import { v } from "./components/animate/variants/fade.js";
|
|
16
16
|
import { v as v2 } from "./components/animate/variants/bounce.js";
|
|
@@ -306,7 +306,7 @@ export {
|
|
|
306
306
|
P13 as PopupsViewer,
|
|
307
307
|
P4 as PriceFormatter,
|
|
308
308
|
P5 as PrintingSystem,
|
|
309
|
-
P as
|
|
309
|
+
P as PropagateLoaderSpinner,
|
|
310
310
|
P11 as PropertyValue,
|
|
311
311
|
R as RHFAutocomplete,
|
|
312
312
|
R2 as RHFAutocompleteAsync,
|
package/package.json
CHANGED
|
@@ -14,3 +14,15 @@ import { Sizes, SizesComponentsTypes } from '@m4l/styles';
|
|
|
14
14
|
* @updatedUser Andrés Quintero - automatic
|
|
15
15
|
*/
|
|
16
16
|
export declare const getHeightSizeStyles: (isMobile: boolean, size: Extract<Sizes, "small" | "medium">, variantSize: SizesComponentsTypes, css?: Record<string, any> | ((heightSize: string | number) => Record<string, any>)) => any;
|
|
17
|
+
/**
|
|
18
|
+
* Utilidad que se encarga de obtener los estilos de tamaño para ser usados en el css de los componentes.
|
|
19
|
+
* @param isMobile - Modalidad de dispositivo en el que se encuentra la aplicación (Escritorio y móvil). Se espera que se obtenga del objeto
|
|
20
|
+
* theme.generalSettings.isMobile.
|
|
21
|
+
* @param size - Formato de tamaño definido por el componente o el contexto de AppearanceComponentProvider, puede ser small,
|
|
22
|
+
* medium o large.
|
|
23
|
+
* @param variantSize - Variante de tamaño que se desea aplicar al componente.
|
|
24
|
+
* @param css - Estilos css adicionales o una función que devuelve un objeto de estilos. Si es una función, recibe `sizeValue` como argumento.
|
|
25
|
+
* @param property - Propiedad CSS que se desea aplicar (por defecto es 'height').
|
|
26
|
+
* @returns Objeto con los estilos calculados.
|
|
27
|
+
*/
|
|
28
|
+
export declare const getSizeStyles: (isMobile: boolean, size: Extract<Sizes, "small" | "medium">, variantSize: SizesComponentsTypes, css?: Record<string, any> | ((sizeValue: string | number) => Record<string, any>), property?: "height" | "width") => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ControlIncrementProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente Para Incrementar o Decrementar
|
|
4
|
-
* @author Andrés Quintero - automatic
|
|
5
|
-
* @createdAt 2024-12-30 14:36:05 - automatic
|
|
6
|
-
* @updatedAt 2024-12-30 14:36:08 - automatic
|
|
7
|
-
* @updatedUser Andrés Quintero - automatic
|
|
8
|
-
*/
|
|
9
|
-
export declare const ControlIncrement: (props: ControlIncrementProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ControlIncrementStyles } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Estilos utilizados para el componente `ControlIncrement`.
|
|
4
|
-
* Este objeto define los estilos para los diferentes "slots" (partes) del componente,
|
|
5
|
-
* como el contenedor principal (`root`), los botones de incremento (`iconButtonUp`) y decremento (`iconButtonDown`),
|
|
6
|
-
* y el esqueleto (`controlIncrementSkeleton`).
|
|
7
|
-
*/
|
|
8
|
-
export declare const controlIncrementStyles: ControlIncrementStyles;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nombre de clase que se usa para dar identidad a los slots del componente.
|
|
3
|
-
*/
|
|
4
|
-
export declare const CONTROL_INCREMENT_KEY_COMPONENT = "M4LControlIncrement";
|
|
5
|
-
/**
|
|
6
|
-
* Constante para la url del icono arrow up
|
|
7
|
-
*/
|
|
8
|
-
export declare const ICON_INCREMENT = "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/ControlIncrement/assets/icons/chevron_up_sm.svg";
|
|
9
|
-
/**
|
|
10
|
-
* Constante para la url del icono arrow down
|
|
11
|
-
*/
|
|
12
|
-
export declare const ICON_DECREMENT = "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/ControlIncrement/assets/icons/chevron_down_sm.svg";
|
|
13
|
-
/**
|
|
14
|
-
* Nombre de clase creado para aportar especificidad a los estilos del componente. Es usado para sobreescribir los estilos de MUI sin
|
|
15
|
-
* tener la necesidad de agregar valores en !important.
|
|
16
|
-
*/
|
|
17
|
-
export declare const CONTROL_INCREMENT_SPECIFY = "M4lclassCssSpecificity";
|
|
18
|
-
/**
|
|
19
|
-
* Cosntante para su uso en una clase para mas especificidad y evitar el uso de important
|
|
20
|
-
*/
|
|
21
|
-
export declare const BUTTON_UP = "button-up";
|
|
22
|
-
/**
|
|
23
|
-
* Cosntante para su uso en una clase para mas especificidad y evitar el uso de important
|
|
24
|
-
*/
|
|
25
|
-
export declare const BUTTON_DOWN = "button-down";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown> & {
|
|
2
|
-
ownerState: Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown>;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
4
|
-
export declare const IconButtonUpStyles: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown> & {
|
|
5
|
-
ownerState: Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown>;
|
|
6
|
-
}, {}, {}>;
|
|
7
|
-
export declare const IconButtonDownStyles: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown> & {
|
|
8
|
-
ownerState: Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown>;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
export declare const ControlIncrementSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
|
-
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
12
|
-
}, "children" | "style" | "variant" | "width" | "height" | "animation" | "sx" | "classes" | "className">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "variant" | "width" | "height" | "translate" | "animation" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown> & {
|
|
13
|
-
ownerState: Partial<import('../types').ControlIncrementOwnerState> & Record<string, unknown>;
|
|
14
|
-
}, {}, {}>;
|
package/components/ControlIncrement/stories/ControlClick/ControlIncrement.controlclick.stories.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { ControlIncrement } from '../../ControlIncrement';
|
|
3
|
-
declare const meta: Meta<typeof ControlIncrement>;
|
|
4
|
-
type Story = StoryObj<typeof ControlIncrement>;
|
|
5
|
-
/**
|
|
6
|
-
* ControlIncrement en modo Base
|
|
7
|
-
*/
|
|
8
|
-
export declare const Base: Story;
|
|
9
|
-
/**
|
|
10
|
-
* ControlIncrement Tiene la particularidad de que cuando le des click a up o down este ejecute una funcion
|
|
11
|
-
*/
|
|
12
|
-
export declare const Click: Story;
|
|
13
|
-
export default meta;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
-
import { ControlIncrement } from '../../ControlIncrement';
|
|
3
|
-
declare const meta: Meta<typeof ControlIncrement>;
|
|
4
|
-
type Story = StoryObj<typeof ControlIncrement>;
|
|
5
|
-
/**
|
|
6
|
-
* ControlIncrement en modo Base
|
|
7
|
-
*/
|
|
8
|
-
export declare const Base: Story;
|
|
9
|
-
/**
|
|
10
|
-
* ControlIncrement cuando esta en modo default
|
|
11
|
-
*/
|
|
12
|
-
export declare const Default: Story;
|
|
13
|
-
/**
|
|
14
|
-
* ControlIncrement cuando esta en modo disabled
|
|
15
|
-
*/
|
|
16
|
-
export declare const Disabled: Story;
|
|
17
|
-
export default meta;
|