@m4l/components 9.2.62-B09072025beta.1 → 9.2.62-B10072025beta.2
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 +0 -8
- package/components/Image/Image.js +2 -4
- package/components/Image/image.styles.js +3 -6
- package/components/Image/types.d.ts +0 -2
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +8 -7
- package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
- package/components/index.d.ts +0 -1
- package/components/mui_extended/Accordion/styles.js +5 -3
- package/components/mui_extended/TabContent/TabContent.styles.js +0 -3
- package/components/mui_extended/TabContent/constants.d.ts +0 -1
- package/components/mui_extended/TabContent/constants.js +0 -2
- package/components/mui_extended/Typography/Typography.js +1 -3
- package/components/mui_extended/Typography/types.d.ts +0 -5
- package/components/mui_extended/Typography/typography.styles.js +1 -7
- package/index.js +38 -40
- package/package.json +1 -1
- package/components/ContainerFlow/ContainerFlow.d.ts +0 -7
- package/components/ContainerFlow/ContainerFlow.js +0 -25
- package/components/ContainerFlow/ContainerFlow.styles.d.ts +0 -2
- package/components/ContainerFlow/ContainerFlow.styles.js +0 -46
- package/components/ContainerFlow/constants.d.ts +0 -8
- package/components/ContainerFlow/constants.js +0 -19
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.d.ts +0 -7
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +0 -10
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.test.d.ts +0 -1
- package/components/ContainerFlow/index.d.ts +0 -2
- package/components/ContainerFlow/index.js +0 -1
- package/components/ContainerFlow/slots/ContainerFlowEnum.d.ts +0 -4
- package/components/ContainerFlow/slots/ContainerFlowEnum.js +0 -8
- package/components/ContainerFlow/slots/ContainerFlowSlots.d.ts +0 -6
- package/components/ContainerFlow/slots/ContainerFlowSlots.js +0 -16
- package/components/ContainerFlow/slots/index.d.ts +0 -0
- package/components/ContainerFlow/tests/ContainerFlow.test.d.ts +0 -1
- package/components/ContainerFlow/types.d.ts +0 -41
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
- package/storybook/components/ContainerFlow/ContainerFlow.stories.d.ts +0 -32
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +0 -5
- package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +0 -10
package/@types/types.d.ts
CHANGED
|
@@ -149,7 +149,6 @@ import { ScrollBarOwnerState, ScrollBarSlotsType } from '../components/ScrollBar
|
|
|
149
149
|
import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
|
|
150
150
|
import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
|
|
151
151
|
import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
|
|
152
|
-
import { ContainerFlowOwnerState, ContainerFlowSlotsType } from '../components/ContainerFlow/types';
|
|
153
152
|
declare module '@mui/material/styles' {
|
|
154
153
|
// Define the slots in the theme
|
|
155
154
|
interface ComponentNameToClassKey {
|
|
@@ -229,7 +228,6 @@ declare module '@mui/material/styles' {
|
|
|
229
228
|
M4LSplitLayout: SplitLayoutOwnerState;
|
|
230
229
|
M4LObjectLogs: ObjectLogsSlotsType;
|
|
231
230
|
M4LLanguagePopover: LanguagePopoverSlotsType;
|
|
232
|
-
M4LContainerFlow: ContainerFlowSlotsType;
|
|
233
231
|
}
|
|
234
232
|
interface ComponentsPropsList {
|
|
235
233
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
@@ -309,7 +307,6 @@ declare module '@mui/material/styles' {
|
|
|
309
307
|
M4LSplitLayout: Partial<SplitLayoutOwnerState>;
|
|
310
308
|
M4LObjectLogs: Partial<ObjectLogsOwnerState>;
|
|
311
309
|
M4LLanguagePopover: Partial<LanguagePopoverOwnerState>;
|
|
312
|
-
M4LContainerFlow: Partial<ContainerFlowOwnerState>;
|
|
313
310
|
}
|
|
314
311
|
interface Components {
|
|
315
312
|
M4LDynamicFilter?: {
|
|
@@ -702,10 +699,5 @@ declare module '@mui/material/styles' {
|
|
|
702
699
|
styleOverrides?: ComponentsOverrides<Theme>['M4LLanguagePopover'];
|
|
703
700
|
variants?: ComponentsVariants['M4LLanguagePopover'];
|
|
704
701
|
};
|
|
705
|
-
M4LContainerFlow?: {
|
|
706
|
-
defaultProps?: ComponentsPropsList['M4LContainerFlow'];
|
|
707
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LContainerFlow'];
|
|
708
|
-
variants?: ComponentsVariants['M4LContainerFlow'];
|
|
709
|
-
};
|
|
710
702
|
}
|
|
711
703
|
}
|
|
@@ -13,14 +13,12 @@ function Image(props) {
|
|
|
13
13
|
threshold = 100,
|
|
14
14
|
dataTestId,
|
|
15
15
|
className,
|
|
16
|
-
cover,
|
|
17
16
|
...others
|
|
18
17
|
} = props;
|
|
19
18
|
const isSkeleton = useModuleSkeleton();
|
|
20
19
|
const ownerState = useMemo(() => ({
|
|
21
|
-
isSkeleton
|
|
22
|
-
|
|
23
|
-
}), [cover, isSkeleton]);
|
|
20
|
+
isSkeleton
|
|
21
|
+
}), [isSkeleton]);
|
|
24
22
|
const lazyLoadComponent = useMemo(() => {
|
|
25
23
|
return /* @__PURE__ */ jsx(
|
|
26
24
|
LazyLoadComponent,
|
|
@@ -2,14 +2,11 @@ const imageStyles = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Estilos para Image.
|
|
4
4
|
*/
|
|
5
|
-
root:
|
|
5
|
+
root: {
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
|
-
alignItems: "flex-start"
|
|
9
|
-
|
|
10
|
-
objectFit: "cover"
|
|
11
|
-
}
|
|
12
|
-
}),
|
|
8
|
+
alignItems: "flex-start"
|
|
9
|
+
},
|
|
13
10
|
/**
|
|
14
11
|
* Estilos para el intersectComponente o para el 'span'
|
|
15
12
|
*/
|
|
@@ -31,11 +31,9 @@ export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible'
|
|
|
31
31
|
enableIntersectionObserver?: boolean;
|
|
32
32
|
className?: string;
|
|
33
33
|
dataTestId?: string;
|
|
34
|
-
cover?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export type ImageSlotsType = keyof typeof ImageSlots;
|
|
37
36
|
export interface ImageOwnerState {
|
|
38
37
|
isSkeleton?: boolean;
|
|
39
|
-
cover?: boolean;
|
|
40
38
|
}
|
|
41
39
|
export type ImageStyles = M4LOverridesStyleRules<ImageSlots, typeof IMAGE_KEY_COMPONENT, Theme>;
|
|
@@ -23,11 +23,8 @@ const rhfPeriodStyles = {
|
|
|
23
23
|
/**
|
|
24
24
|
* textField class
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
width: "43px !important",
|
|
29
|
-
border: theme.vars.palette.border.default,
|
|
30
|
-
color: theme.vars.palette.text.disabled
|
|
26
|
+
numberInput: () => ({
|
|
27
|
+
width: "43px !important"
|
|
31
28
|
}),
|
|
32
29
|
/**
|
|
33
30
|
* select class
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var RHFPeriodSlots = /* @__PURE__ */ ((RHFPeriodSlots2) => {
|
|
2
2
|
RHFPeriodSlots2["root"] = "root";
|
|
3
3
|
RHFPeriodSlots2["periodRoot"] = "periodRoot";
|
|
4
|
-
RHFPeriodSlots2["
|
|
4
|
+
RHFPeriodSlots2["numberInput"] = "numberInput";
|
|
5
5
|
RHFPeriodSlots2["select"] = "select";
|
|
6
6
|
return RHFPeriodSlots2;
|
|
7
7
|
})(RHFPeriodSlots || {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const RHFPeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
2
2
|
export declare const PeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const NumberInputStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../NumberInput/types').NumberInputProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../NumberInput/types').NumberInputProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
4
4
|
export declare const SelectStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Select').SelectProps<string | number, boolean | undefined>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "onClose" | "title" | "name" | "error" | "input" | "options" | "rows" | "id" | "type" | "disabled" | "components" | "hidden" | "content" | "style" | "open" | "multiple" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "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" | "exportparts" | "part" | "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" | "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" | "componentsProps" | "onOpen" | "dataTestId" | "autoComplete" | "placeholder" | "readOnly" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -2,7 +2,7 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { R as RHF_PERIOD_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { r as rhfPeriodStyles } from "../RHFPeriod.styles.js";
|
|
4
4
|
import { R as RHFPeriodSlots } from "./RHFPeriodEnum.js";
|
|
5
|
-
import {
|
|
5
|
+
import { N as NumberInput } from "../../../NumberInput/NumberInput.js";
|
|
6
6
|
import { S as Select } from "../../../mui_extended/Select/Select.js";
|
|
7
7
|
const RHFPeriodRootStyled = styled("div", {
|
|
8
8
|
name: RHF_PERIOD_KEY_COMPONENT,
|
|
@@ -12,17 +12,17 @@ const PeriodRootStyled = styled("div", {
|
|
|
12
12
|
name: RHF_PERIOD_KEY_COMPONENT,
|
|
13
13
|
slot: RHFPeriodSlots.periodRoot
|
|
14
14
|
})(rhfPeriodStyles?.periodRoot);
|
|
15
|
-
const
|
|
15
|
+
const NumberInputStyled = styled(NumberInput, {
|
|
16
16
|
name: RHF_PERIOD_KEY_COMPONENT,
|
|
17
|
-
slot: RHFPeriodSlots.
|
|
18
|
-
})(rhfPeriodStyles?.
|
|
17
|
+
slot: RHFPeriodSlots.numberInput
|
|
18
|
+
})(rhfPeriodStyles?.numberInput);
|
|
19
19
|
const SelectStyled = styled(Select, {
|
|
20
20
|
name: RHF_PERIOD_KEY_COMPONENT,
|
|
21
21
|
slot: RHFPeriodSlots.select
|
|
22
22
|
})(rhfPeriodStyles?.select);
|
|
23
23
|
export {
|
|
24
|
+
NumberInputStyled as N,
|
|
24
25
|
PeriodRootStyled as P,
|
|
25
26
|
RHFPeriodRootStyled as R,
|
|
26
|
-
SelectStyled as S
|
|
27
|
-
TextFieldStyled as T
|
|
27
|
+
SelectStyled as S
|
|
28
28
|
};
|
|
@@ -4,7 +4,7 @@ import { E as ETimePeriods } from "./types.js";
|
|
|
4
4
|
import { d as dictionary } from "./dictionary.js";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { u as useComponentSize } from "../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
7
|
-
import { P as PeriodRootStyled, S as SelectStyled,
|
|
7
|
+
import { P as PeriodRootStyled, S as SelectStyled, N as NumberInputStyled } from "../../slots/RHFPeriodSlots.js";
|
|
8
8
|
import { I as Icon } from "../../../../Icon/Icon.js";
|
|
9
9
|
const Period = (props) => {
|
|
10
10
|
const {
|
|
@@ -27,7 +27,7 @@ const Period = (props) => {
|
|
|
27
27
|
);
|
|
28
28
|
const getSingleValue = (period) => {
|
|
29
29
|
if (!period) {
|
|
30
|
-
return
|
|
30
|
+
return null;
|
|
31
31
|
}
|
|
32
32
|
if (period.singleValue !== void 0) {
|
|
33
33
|
return period.singleValue;
|
|
@@ -41,7 +41,7 @@ const Period = (props) => {
|
|
|
41
41
|
if (period.days && period.days > 0) {
|
|
42
42
|
return period.days;
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return null;
|
|
45
45
|
};
|
|
46
46
|
const getSelPeriodTime = (period) => {
|
|
47
47
|
if (!period) {
|
|
@@ -68,7 +68,7 @@ const Period = (props) => {
|
|
|
68
68
|
selPeriodTime: newPeriodTime,
|
|
69
69
|
singleValue: newValue
|
|
70
70
|
};
|
|
71
|
-
if (newValue
|
|
71
|
+
if (newValue && newValue > 0) {
|
|
72
72
|
newPeriod.years = 0;
|
|
73
73
|
newPeriod.months = 0;
|
|
74
74
|
newPeriod.days = 0;
|
|
@@ -117,13 +117,14 @@ const Period = (props) => {
|
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
119
|
/* @__PURE__ */ jsx(
|
|
120
|
-
|
|
120
|
+
NumberInputStyled,
|
|
121
121
|
{
|
|
122
122
|
type: "number",
|
|
123
123
|
variant: "outlined",
|
|
124
124
|
value: singleValue,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
withDecimal: true,
|
|
126
|
+
onChange: (_event, newValue) => {
|
|
127
|
+
onTotalChange(selPeriodTime, newValue);
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
)
|
|
@@ -9,8 +9,8 @@ export type PeriodTime = {
|
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
11
|
export type PeriodType = {
|
|
12
|
-
selPeriodTime:
|
|
13
|
-
singleValue: number |
|
|
12
|
+
selPeriodTime: null | ETimePeriods | undefined;
|
|
13
|
+
singleValue: number | null;
|
|
14
14
|
years?: number;
|
|
15
15
|
months?: number;
|
|
16
16
|
days?: number;
|
package/components/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './BaseModule';
|
|
|
7
7
|
export * from './Chip';
|
|
8
8
|
export * from './commercial';
|
|
9
9
|
export * from './CommonActions/';
|
|
10
|
-
export * from './ContainerFlow';
|
|
11
10
|
export * from './CommonActions/dictionary';
|
|
12
11
|
export * from './DataGrid';
|
|
13
12
|
export * from './DragResizeWindowRND';
|
|
@@ -16,8 +16,7 @@ const accordionStyles = {
|
|
|
16
16
|
borderRadius: "unset"
|
|
17
17
|
},
|
|
18
18
|
margin: "unset",
|
|
19
|
-
overflow: "visible"
|
|
20
|
-
height: "min-content"
|
|
19
|
+
overflow: "visible"
|
|
21
20
|
}
|
|
22
21
|
}),
|
|
23
22
|
/**
|
|
@@ -103,7 +102,10 @@ const accordionStyles = {
|
|
|
103
102
|
* **************************************************************
|
|
104
103
|
*/
|
|
105
104
|
accordionDetails: ({ theme, ownerState }) => ({
|
|
106
|
-
|
|
105
|
+
paddingLeft: theme.vars.size.baseSpacings.sp3,
|
|
106
|
+
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
107
|
+
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
108
|
+
paddingBottom: theme.vars.size.baseSpacings.sp1,
|
|
107
109
|
background: theme.vars.palette.background.default,
|
|
108
110
|
display: "flex",
|
|
109
111
|
flexDirection: "column",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { C as CONTAINER_QUERY_NAME } from "./constants.js";
|
|
2
1
|
const tabContentStyles = {
|
|
3
2
|
/**
|
|
4
3
|
* Elemento root referencia a `TabContent`
|
|
@@ -10,8 +9,6 @@ const tabContentStyles = {
|
|
|
10
9
|
paddingRight: 0,
|
|
11
10
|
display: "flex",
|
|
12
11
|
overflow: "auto",
|
|
13
|
-
containerName: CONTAINER_QUERY_NAME,
|
|
14
|
-
containerType: "inline-size",
|
|
15
12
|
// height: '100%',
|
|
16
13
|
flexDirection: "column",
|
|
17
14
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
@@ -17,7 +17,6 @@ function Typography(props) {
|
|
|
17
17
|
dataTestid,
|
|
18
18
|
children,
|
|
19
19
|
disabled,
|
|
20
|
-
ellipsis = false,
|
|
21
20
|
...other
|
|
22
21
|
} = props;
|
|
23
22
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -29,8 +28,7 @@ function Typography(props) {
|
|
|
29
28
|
size: adjustedSize,
|
|
30
29
|
skeletonRows,
|
|
31
30
|
variant,
|
|
32
|
-
skeleton: isSkeleton
|
|
33
|
-
ellipsis
|
|
31
|
+
skeleton: isSkeleton
|
|
34
32
|
};
|
|
35
33
|
return /* @__PURE__ */ jsx(
|
|
36
34
|
StyledMUITypography,
|
|
@@ -43,10 +43,6 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
43
43
|
htmlFor?: string | undefined;
|
|
44
44
|
/** Si esta disabled, el texto pasa a text.disabled */
|
|
45
45
|
disabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Si se activa, el texto se corta y se muestra un elipsis.
|
|
48
|
-
*/
|
|
49
|
-
ellipsis?: boolean;
|
|
50
46
|
}
|
|
51
47
|
/**
|
|
52
48
|
* Define valores de estado necesarios para estilar el componente.
|
|
@@ -58,7 +54,6 @@ export interface TypographyOwnerState {
|
|
|
58
54
|
size: TypographyProps['size'];
|
|
59
55
|
skeletonRows: TypographyProps['skeletonRows'];
|
|
60
56
|
skeleton: boolean;
|
|
61
|
-
ellipsis: TypographyProps['ellipsis'];
|
|
62
57
|
}
|
|
63
58
|
/**
|
|
64
59
|
* Agrupa la lista de slots del componente.
|
|
@@ -32,13 +32,7 @@ const typographyStyles = {
|
|
|
32
32
|
theme.generalSettings.isMobile,
|
|
33
33
|
ownerState?.size || "medium",
|
|
34
34
|
ownerState?.variant || "body"
|
|
35
|
-
)
|
|
36
|
-
// ellipsis 🔤
|
|
37
|
-
...ownerState?.ellipsis && {
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
textOverflow: "ellipsis",
|
|
40
|
-
whiteSpace: "nowrap"
|
|
41
|
-
}
|
|
35
|
+
)
|
|
42
36
|
},
|
|
43
37
|
...ownerState?.skeleton ? {
|
|
44
38
|
width: ownerState?.width ? ownerState?.width : "100%"
|
package/index.js
CHANGED
|
@@ -29,32 +29,31 @@ import { A as A11 } from "./components/CommonActions/components/ActionIntro/Acti
|
|
|
29
29
|
import { A as A12 } from "./components/CommonActions/components/ActionFormCancel/ActionFormCancel.js";
|
|
30
30
|
import { A as A13 } from "./components/CommonActions/components/ActionFormIntro/ActionFormIntro.js";
|
|
31
31
|
import { D, d, g as g4 } from "./components/CommonActions/dictionary.js";
|
|
32
|
-
import { C as C2 } from "./components/ContainerFlow/ContainerFlow.js";
|
|
33
32
|
import { D as D2 } from "./components/DataGrid/DataGrid.js";
|
|
34
33
|
import { g as g5 } from "./components/DataGrid/dictionary.js";
|
|
35
34
|
import { N, T as T2 } from "./components/DataGrid/subcomponents/editors/TextEditor/index.js";
|
|
36
35
|
import { g as g6 } from "./components/DataGrid/utils/getDataGridRowsFromSet.js";
|
|
37
36
|
import { b as b3, a as a4, e } from "./components/DataGrid/constants.js";
|
|
38
|
-
import { C as
|
|
37
|
+
import { C as C2 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js";
|
|
39
38
|
import { u as u2 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js";
|
|
40
|
-
import { C as
|
|
39
|
+
import { C as C3 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js";
|
|
41
40
|
import { u as u3 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js";
|
|
42
|
-
import { C as
|
|
41
|
+
import { C as C4 } from "./components/DataGrid/formatters/ColumnDateFormatter/formatter.js";
|
|
43
42
|
import { u as u4 } from "./components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js";
|
|
44
|
-
import { C as
|
|
45
|
-
import { C as
|
|
43
|
+
import { C as C5 } from "./components/DataGrid/formatters/ColumnIconFormatter/formatter.js";
|
|
44
|
+
import { C as C6 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
46
45
|
import { u as u5 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js";
|
|
47
|
-
import { C as
|
|
46
|
+
import { C as C7 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js";
|
|
48
47
|
import { u as u6 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js";
|
|
49
|
-
import { C as
|
|
48
|
+
import { C as C8 } from "./components/DataGrid/formatters/ColumnPointsFormatter/formatter.js";
|
|
50
49
|
import { u as u7 } from "./components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js";
|
|
51
|
-
import { C as
|
|
50
|
+
import { C as C9 } from "./components/DataGrid/formatters/ColumnPriceFormatter/formatter.js";
|
|
52
51
|
import { u as u8 } from "./components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js";
|
|
53
|
-
import { C as
|
|
52
|
+
import { C as C10 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js";
|
|
54
53
|
import { u as u9 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js";
|
|
55
|
-
import { C as
|
|
54
|
+
import { C as C11 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js";
|
|
56
55
|
import { u as u10 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js";
|
|
57
|
-
import { C as
|
|
56
|
+
import { C as C12 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js";
|
|
58
57
|
import { u as u11 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js";
|
|
59
58
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
60
59
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
@@ -75,7 +74,7 @@ import { V } from "./components/extended/React-Window/VariableSizeList/VariableS
|
|
|
75
74
|
import { A as A14 } from "./components/mui_extended/Avatar/Avatar.js";
|
|
76
75
|
import { B as B2 } from "./components/mui_extended/BoxIcon/index.js";
|
|
77
76
|
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
78
|
-
import { C as
|
|
77
|
+
import { C as C13 } from "./components/mui_extended/CircularProgress/CircularProgress.js";
|
|
79
78
|
import { B as B4 } from "./components/mui_extended/Badge/Badge.js";
|
|
80
79
|
import { L as L3 } from "./components/mui_extended/LinearProgress/index.js";
|
|
81
80
|
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
@@ -85,7 +84,7 @@ import { A as A15 } from "./components/mui_extended/Accordion/Accordion.js";
|
|
|
85
84
|
import { T as T3 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
86
85
|
import { I as I2 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
87
86
|
import { B as B5 } from "./components/mui_extended/Button/Button.js";
|
|
88
|
-
import { C as
|
|
87
|
+
import { C as C14 } from "./components/mui_extended/CheckBox/CheckBox.js";
|
|
89
88
|
import { I as I3 } from "./components/mui_extended/ImageButton/ImageButton.js";
|
|
90
89
|
import { P as P2 } from "./components/mui_extended/Popover/Popover.js";
|
|
91
90
|
import { S as S4 } from "./components/mui_extended/Skeleton/Skeleton.js";
|
|
@@ -112,10 +111,10 @@ import { B as B6 } from "./components/formatters/BooleanFormatter/BooleanFormatt
|
|
|
112
111
|
import { D as D8, g as g12 } from "./components/formatters/DateFormatter/DateFormatter.js";
|
|
113
112
|
import { U, g as g13 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
114
113
|
import { P as P3, g as g14 } from "./components/formatters/PointsFormatter/PointsFormatter.js";
|
|
115
|
-
import { C as
|
|
114
|
+
import { C as C15, g as g15 } from "./components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
116
115
|
import { P as P4, u as u12 } from "./components/formatters/PeriodFormatter/PeriodFormatter.js";
|
|
117
116
|
import { P as P5, g as g16 } from "./components/formatters/PriceFormatter/PriceFormatter.js";
|
|
118
|
-
import { C as
|
|
117
|
+
import { C as C16 } from "./components/formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
119
118
|
import { g as g17 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
120
119
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
121
120
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
@@ -145,7 +144,7 @@ import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
|
145
144
|
import { R as R16 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
146
145
|
import { R as R17 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
147
146
|
import { R as R18 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
|
|
148
|
-
import { P as P6, R as R19, S as S6
|
|
147
|
+
import { N as N3, P as P6, R as R19, S as S6 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
149
148
|
import { R as R20 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
|
|
150
149
|
import { R as R21 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
151
150
|
import { I as I4 } from "./components/Icon/Icon.js";
|
|
@@ -161,7 +160,7 @@ import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
|
161
160
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
162
161
|
import { M as M5 } from "./components/MFLoader/MFLoader.js";
|
|
163
162
|
import { g as g24 } from "./components/MFLoader/dictionary.js";
|
|
164
|
-
import { N as
|
|
163
|
+
import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
165
164
|
import { g as g25 } from "./components/NoItemSelected/dictionary.js";
|
|
166
165
|
import { g as g26 } from "./components/ObjectLogs/dictionary.js";
|
|
167
166
|
import { O } from "./components/ObjectLogs/ObjectLogs.js";
|
|
@@ -174,8 +173,8 @@ import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
|
174
173
|
import { P as P12 } from "./components/PropertyValue/PropertyValue.js";
|
|
175
174
|
import { S as S7 } from "./components/ScrollBar/ScrollBar.js";
|
|
176
175
|
import { S as S8 } from "./components/SideBar/SideBar.js";
|
|
177
|
-
import { T as
|
|
178
|
-
import { T as
|
|
176
|
+
import { T as T17 } from "./components/ToastContainer/ToastContainer.js";
|
|
177
|
+
import { T as T18 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
179
178
|
import { W } from "./components/WindowBase/WindowBase.js";
|
|
180
179
|
import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
181
180
|
import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
@@ -242,23 +241,22 @@ export {
|
|
|
242
241
|
B2 as BoxIcon,
|
|
243
242
|
B3 as Breadcrumbs,
|
|
244
243
|
B5 as Button,
|
|
245
|
-
|
|
244
|
+
C14 as CheckBox,
|
|
246
245
|
C as Chip,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
C2 as ContainerFlow,
|
|
246
|
+
C16 as ChipStatusFormatter,
|
|
247
|
+
C13 as CircularProgress,
|
|
248
|
+
C2 as ColumnBooleanFormatter,
|
|
249
|
+
C12 as ColumnChipStatusFormatter,
|
|
250
|
+
C3 as ColumnConcatenatedValueFormatter,
|
|
251
|
+
C4 as ColumnDateFormatter,
|
|
252
|
+
C5 as ColumnIconFormatter,
|
|
253
|
+
C6 as ColumnInteractiveCheckFormatter,
|
|
254
|
+
C7 as ColumnNestedValueFormatter,
|
|
255
|
+
C8 as ColumnPointsFormatter,
|
|
256
|
+
C9 as ColumnPriceFormatter,
|
|
257
|
+
C10 as ColumnSetCheckFormatter,
|
|
258
|
+
C11 as ColumnUncertaintyFormatter,
|
|
259
|
+
C15 as ConcatenatedFormatter,
|
|
262
260
|
b3 as DATAGRID_ROW_HEADER_HEIGHTS,
|
|
263
261
|
a4 as DATAGRID_ROW_HEIGHTS,
|
|
264
262
|
e as DATAGRID_SEMANTIC_WIDTHS,
|
|
@@ -306,8 +304,9 @@ export {
|
|
|
306
304
|
M as MotionContainer,
|
|
307
305
|
M2 as MotionLazyContainer,
|
|
308
306
|
N2 as NavLink,
|
|
309
|
-
|
|
307
|
+
N4 as NoItemSelected,
|
|
310
308
|
N as NumberEditor,
|
|
309
|
+
N3 as NumberInputStyled,
|
|
311
310
|
O as ObjectLogs,
|
|
312
311
|
O2 as ObjectQueue,
|
|
313
312
|
P8 as PDFViewer,
|
|
@@ -364,9 +363,8 @@ export {
|
|
|
364
363
|
a7 as TabProvider,
|
|
365
364
|
T5 as Tabs,
|
|
366
365
|
T2 as TextEditor,
|
|
367
|
-
T17 as
|
|
368
|
-
T18 as
|
|
369
|
-
T19 as ToastMessage,
|
|
366
|
+
T17 as ToastContainer,
|
|
367
|
+
T18 as ToastMessage,
|
|
370
368
|
T9 as ToggleButton,
|
|
371
369
|
T12 as ToggleButtonRootStyled,
|
|
372
370
|
T11 as ToggleButtonSlots,
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente que permite renderizar un contenedor de items en forma de flujo.
|
|
4
|
-
* @param props - Propiedades del componente.
|
|
5
|
-
* @returns Un componente de tipo div con los estilos del contenedor de items.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ContainerFlow: (props: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { C as CONTAINER_FLOW_CLASSES } from "./constants.js";
|
|
3
|
-
import { C as ContainerFlowWrapperItemStyled, a as ContainerFlowRootStyled } from "./slots/ContainerFlowSlots.js";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
const ContainerFlow = (props) => {
|
|
6
|
-
const { variant = "column-flex", size, children, minWidth, className, gap = "standard" } = props;
|
|
7
|
-
const isColumnFlex = variant === "column-flex";
|
|
8
|
-
const ownerState = {
|
|
9
|
-
variant,
|
|
10
|
-
size,
|
|
11
|
-
minWidth,
|
|
12
|
-
gap
|
|
13
|
-
};
|
|
14
|
-
const childrenArray = Array.isArray(children) ? children : children ? [children] : [];
|
|
15
|
-
let itemsToRender;
|
|
16
|
-
if (!isColumnFlex && children) {
|
|
17
|
-
itemsToRender = children;
|
|
18
|
-
} else if (childrenArray.length > 0) {
|
|
19
|
-
itemsToRender = childrenArray.map((child, index) => /* @__PURE__ */ jsx(ContainerFlowWrapperItemStyled, { role: "listitem", ownerState: { variant, size }, className: CONTAINER_FLOW_CLASSES.wrapperItem, children: child }, index));
|
|
20
|
-
}
|
|
21
|
-
return /* @__PURE__ */ jsx(ContainerFlowRootStyled, { role: "list", ownerState, className: clsx(CONTAINER_FLOW_CLASSES.root, className), children: itemsToRender });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
ContainerFlow as C
|
|
25
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { g as getSpacingValue } from "./helpers/getSpacingValue/getSpacingValue.js";
|
|
2
|
-
import { a as CONTAINER_QUERY_NAME } from "./constants.js";
|
|
3
|
-
const containerFlowStyles = {
|
|
4
|
-
/**
|
|
5
|
-
* Estilos para el contenedor raíz del componente.
|
|
6
|
-
*/
|
|
7
|
-
root: ({ ownerState }) => ({
|
|
8
|
-
width: "100%",
|
|
9
|
-
height: "100%",
|
|
10
|
-
gap: getSpacingValue(ownerState?.gap ?? "standard"),
|
|
11
|
-
containerName: CONTAINER_QUERY_NAME,
|
|
12
|
-
containerType: "inline-size",
|
|
13
|
-
...ownerState?.variant === "grid-layout" && {
|
|
14
|
-
display: "grid",
|
|
15
|
-
gridTemplateColumns: `repeat(auto-fill, minmax(${ownerState.minWidth ?? 200}px, 1fr))`,
|
|
16
|
-
height: "fit-content"
|
|
17
|
-
},
|
|
18
|
-
...(ownerState?.variant === "column-flex" || ownerState?.variant === "flex-wrap") && {
|
|
19
|
-
display: "flex",
|
|
20
|
-
flexDirection: "row",
|
|
21
|
-
flexWrap: "wrap",
|
|
22
|
-
height: "fit-content",
|
|
23
|
-
"& > .M4LContainerFlow-wrapperItem": {
|
|
24
|
-
minWidth: ownerState?.minWidth ?? "300px",
|
|
25
|
-
flex: 1
|
|
26
|
-
},
|
|
27
|
-
[`@container ${CONTAINER_QUERY_NAME} (max-width: ${ownerState?.minWidth ? ownerState?.minWidth - 1 : 200 - 1}px)`]: {
|
|
28
|
-
"& > .M4LContainerFlow-wrapperItem": {
|
|
29
|
-
minWidth: "100%",
|
|
30
|
-
maxWidth: "100%"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
/**
|
|
36
|
-
* Estilos para el contenedor de los items del componente.
|
|
37
|
-
*/
|
|
38
|
-
wrapperItem: () => ({
|
|
39
|
-
display: "flex",
|
|
40
|
-
flexDirection: "row",
|
|
41
|
-
flexWrap: "wrap"
|
|
42
|
-
})
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
containerFlowStyles as c
|
|
46
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const CONTAINER_FLOW_KEY_COMPONENT = "M4LContainerFlow";
|
|
2
|
-
export declare const CONTAINER_FLOW_CLASSES: Record<string, string>;
|
|
3
|
-
export declare const CONTAINER_FLOW_GAP_VALUES: {
|
|
4
|
-
compact: number;
|
|
5
|
-
standard: number;
|
|
6
|
-
comfortable: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const CONTAINER_QUERY_NAME = "container";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import { C as ContainerFlowSlots } from "./slots/ContainerFlowEnum.js";
|
|
3
|
-
const CONTAINER_FLOW_KEY_COMPONENT = "M4LContainerFlow";
|
|
4
|
-
const CONTAINER_FLOW_CLASSES = getComponentClasses(
|
|
5
|
-
CONTAINER_FLOW_KEY_COMPONENT,
|
|
6
|
-
ContainerFlowSlots
|
|
7
|
-
);
|
|
8
|
-
const CONTAINER_FLOW_GAP_VALUES = {
|
|
9
|
-
compact: 8,
|
|
10
|
-
standard: 16,
|
|
11
|
-
comfortable: 24
|
|
12
|
-
};
|
|
13
|
-
const CONTAINER_QUERY_NAME = "container";
|
|
14
|
-
export {
|
|
15
|
-
CONTAINER_FLOW_CLASSES as C,
|
|
16
|
-
CONTAINER_QUERY_NAME as a,
|
|
17
|
-
CONTAINER_FLOW_GAP_VALUES as b,
|
|
18
|
-
CONTAINER_FLOW_KEY_COMPONENT as c
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SemanticSpacings } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Función que retorna el valor del gap en función del tipo de gap recibido.
|
|
4
|
-
* @param gap - El gap a convertir.
|
|
5
|
-
* @returns El valor del gap en función del tipo de gap recibido.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getSpacingValue: (gap: SemanticSpacings | number) => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var ContainerFlowSlots = /* @__PURE__ */ ((ContainerFlowSlots2) => {
|
|
2
|
-
ContainerFlowSlots2["root"] = "root";
|
|
3
|
-
ContainerFlowSlots2["wrapperItem"] = "wrapperItem";
|
|
4
|
-
return ContainerFlowSlots2;
|
|
5
|
-
})(ContainerFlowSlots || {});
|
|
6
|
-
export {
|
|
7
|
-
ContainerFlowSlots as C
|
|
8
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const ContainerFlowRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
-
ownerState?: (Partial<import('../types').ContainerFlowOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
-
export declare const ContainerFlowWrapperItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
|
-
ownerState?: (Partial<import('../types').ContainerFlowOwnerState> & Record<string, unknown>) | undefined;
|
|
6
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { c as CONTAINER_FLOW_KEY_COMPONENT } from "../constants.js";
|
|
3
|
-
import { C as ContainerFlowSlots } from "./ContainerFlowEnum.js";
|
|
4
|
-
import { c as containerFlowStyles } from "../ContainerFlow.styles.js";
|
|
5
|
-
const ContainerFlowRootStyled = styled("div", {
|
|
6
|
-
name: CONTAINER_FLOW_KEY_COMPONENT,
|
|
7
|
-
slot: ContainerFlowSlots.root
|
|
8
|
-
})(containerFlowStyles?.root);
|
|
9
|
-
const ContainerFlowWrapperItemStyled = styled("div", {
|
|
10
|
-
name: CONTAINER_FLOW_KEY_COMPONENT,
|
|
11
|
-
slot: ContainerFlowSlots.wrapperItem
|
|
12
|
-
})(containerFlowStyles?.wrapperItem);
|
|
13
|
-
export {
|
|
14
|
-
ContainerFlowWrapperItemStyled as C,
|
|
15
|
-
ContainerFlowRootStyled as a
|
|
16
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Sizes } from '@m4l/styles';
|
|
2
|
-
import { ContainerFlowSlots } from './slots/ContainerFlowEnum';
|
|
3
|
-
import { CONTAINER_FLOW_KEY_COMPONENT } from './constants';
|
|
4
|
-
import { Theme } from '@mui/material';
|
|
5
|
-
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
6
|
-
export type ContainerFlowVariant = 'flex-wrap' | 'column-flex' | 'grid-layout';
|
|
7
|
-
export type SemanticSpacings = 'compact' | 'comfortable' | 'standard';
|
|
8
|
-
export type ContainerFlowProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Variante del contenedor de items.
|
|
11
|
-
*/
|
|
12
|
-
variant: ContainerFlowVariant;
|
|
13
|
-
/**
|
|
14
|
-
* Items del contenedor de items.
|
|
15
|
-
*/
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Tamaño del contenedor de items.
|
|
19
|
-
*/
|
|
20
|
-
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
21
|
-
/**
|
|
22
|
-
* Ancho mínimo de los items del contenedor de items.
|
|
23
|
-
*/
|
|
24
|
-
minWidth?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Clase del contenedor de items.
|
|
27
|
-
*/
|
|
28
|
-
className?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Espacio entre los items del contenedor de items.
|
|
31
|
-
*/
|
|
32
|
-
gap?: SemanticSpacings | number;
|
|
33
|
-
};
|
|
34
|
-
export type ContainerFlowSlotsType = keyof typeof ContainerFlowSlots;
|
|
35
|
-
export type ContainerFlowOwnerState = {
|
|
36
|
-
variant: ContainerFlowProps['variant'];
|
|
37
|
-
size: ContainerFlowProps['size'];
|
|
38
|
-
minWidth: ContainerFlowProps['minWidth'];
|
|
39
|
-
gap: ContainerFlowProps['gap'];
|
|
40
|
-
};
|
|
41
|
-
export type ContainerFlowStyles = M4LOverridesStyleRules<ContainerFlowSlots, typeof CONTAINER_FLOW_KEY_COMPONENT, Theme>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RHFDateTimeRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { ContainerFlow } from '../../../src/components/ContainerFlow/ContainerFlow';
|
|
3
|
-
/**
|
|
4
|
-
* Renderiza un chip para cada color
|
|
5
|
-
*/
|
|
6
|
-
declare const meta: Meta<typeof ContainerFlow>;
|
|
7
|
-
type Story = StoryObj<typeof ContainerFlow>;
|
|
8
|
-
/**
|
|
9
|
-
* FlexColumn
|
|
10
|
-
*/
|
|
11
|
-
export declare const H001_FlexColumn: Story;
|
|
12
|
-
/**
|
|
13
|
-
* variante column-flex con 3 wrappers
|
|
14
|
-
*/
|
|
15
|
-
export declare const H002_FlexColumn3Wrappers: Story;
|
|
16
|
-
/**
|
|
17
|
-
* variante column-flex con 2 wrappers
|
|
18
|
-
*/
|
|
19
|
-
export declare const H003_FlexColumn2Wrappers: Story;
|
|
20
|
-
/**
|
|
21
|
-
* variante column-flex con 1 wrapper
|
|
22
|
-
*/
|
|
23
|
-
export declare const H004_FlexColumn1Wrappers: Story;
|
|
24
|
-
/**
|
|
25
|
-
* variante flex-wrap
|
|
26
|
-
*/
|
|
27
|
-
export declare const H005_FlexWrap: Story;
|
|
28
|
-
/**
|
|
29
|
-
* variante grid-layout
|
|
30
|
-
*/
|
|
31
|
-
export declare const H006_GridLayout: Story;
|
|
32
|
-
export default meta;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderFlexColumn: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderFlexColumn1Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderFlexColumn2Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderFlexColumn3Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderFlexWrap: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
-
/**
|
|
3
|
-
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
-
*/
|
|
5
|
-
export declare const RenderGridLayout: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Componente que se encarga de envolver los items del contenedor de items.
|
|
3
|
-
* @param children - Los items del contenedor de items.
|
|
4
|
-
* @returns Un componente de tipo div con los estilos del contenedor de items.
|
|
5
|
-
*/
|
|
6
|
-
export declare const WrapperItems: ({ children, width, style }: {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
width?: string | number;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|