@m4l/components 9.5.1 → 9.5.2-beta-improvement-606-typography-leveling.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +20 -20
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
- package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +6 -6
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/CheckableList/CheckableList.js +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +2 -2
- package/components/CheckableList/slots/styled.d.ts +4 -4
- package/components/Chip/Chip.js +21 -21
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/DaysOfMonthPicker/DaysOfMonthPicker.styles.js +1 -1
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.d.ts +1 -1
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.d.ts +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +3 -3
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/DynamicSort.styles.js +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/EditLabel/slots/EditLabelSlots.d.ts +2 -2
- package/components/HelperError/HelperError.js +1 -1
- package/components/HelperError/HelperError.styles.js +6 -6
- package/components/ImageText/ImageText.js +9 -9
- package/components/Label/Label.js +18 -18
- package/components/LoadingError/LoadingError.js +14 -14
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/NumberInput/NumberInput.styles.js +6 -6
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +17 -17
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +11 -11
- package/components/PrintingSystem/PrintingSystem.js +8 -8
- package/components/PrintingSystem/PrintingSystem.styles.js +6 -6
- package/components/PrintingSystem/types.d.ts +1 -1
- package/components/PrintingSystem/types.d.ts.map +1 -1
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +9 -9
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +11 -11
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentComponent/style.js +1 -1
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +5 -5
- package/components/Stepper/subcomponents/StepArea/index.js +7 -7
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +8 -8
- package/components/TabsNavigator/subcomponents/TabNavigatorClusterComponent/TabNavigatorClusterComponent.js +22 -22
- package/components/TabsNavigator/subcomponents/TabNavigatorComponent/TabNavigatorComponent.js +16 -16
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js +8 -8
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +23 -23
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +7 -7
- package/components/datagrids/Datagrid.styles.js +6 -6
- package/components/datagrids/slots/DataGridSlot.d.ts +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +3 -3
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +21 -21
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +22 -22
- package/components/datagrids/views/ListView/hooks/useListContent/useListContent.js +11 -11
- package/components/datagrids/views/ListView/subcomponents/ListDetail/ListDetail.js +16 -16
- package/components/extended/mui/Accordion/slots/AccordionSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/subcomponents/LoadingText/LoadingText.js +3 -3
- package/components/extended/mui/Autocomplete/subcomponents/NoOptionsText/NoOptionsText.js +3 -3
- package/components/extended/mui/Avatar/styles.js +4 -4
- package/components/extended/mui/Badge/Badge.styles.js +1 -1
- package/components/extended/mui/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/extended/mui/CheckBox/CheckBox.js +6 -6
- package/components/extended/mui/DatePicker/DatePicker.styles.js +4 -4
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +1 -1
- package/components/extended/mui/DateTimePicker/DateTimePicker.styles.js +256 -256
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +2 -2
- package/components/extended/mui/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/extended/mui/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +11 -11
- package/components/extended/mui/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/extended/mui/NavLink/NavLink.styles.js +20 -20
- package/components/extended/mui/Radio/Radio.js +14 -14
- package/components/extended/mui/Select/Select.js +22 -22
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +1 -1
- package/components/extended/mui/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/extended/mui/Tab/Tab.js +12 -12
- package/components/extended/mui/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/extended/mui/TextField/TextField.js +3 -3
- package/components/extended/mui/TextField/TextField.styles.js +5 -5
- package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/extended/mui/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/extended/mui/Tooltip/Tooltip.styles.js +3 -3
- package/components/extended/mui/Typography/Typography.js +7 -7
- package/components/extended/mui/Typography/types.d.ts +18 -19
- package/components/extended/mui/Typography/types.d.ts.map +1 -1
- package/components/extended/mui/Typography/typography.styles.d.ts.map +1 -1
- package/components/extended/mui/Typography/typography.styles.js +24 -17
- package/components/extended/rsuite/DateRangePicker/DateRangePicker.styles.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.js +17 -17
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +4 -4
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +7 -7
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +22 -22
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +1 -1
- package/package.json +6 -6
- package/utils/getTypographyStyles.d.ts +6 -9
- package/utils/getTypographyStyles.d.ts.map +1 -1
- package/utils/getTypographyStyles.js +5 -2
|
@@ -34,7 +34,7 @@ export declare const ContainerAdornmentIconStyled: import('@emotion/styled').Sty
|
|
|
34
34
|
export declare const BackgroundAdornmentIconStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
35
35
|
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
36
36
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
37
|
-
export declare const ButtonAnchoredStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "
|
|
37
|
+
export declare const ButtonAnchoredStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "action" | "content" | "translate" | "className" | "style" | "classes" | "children" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "tooltip" | "value" | "instaceDataTestId" | "placement" | "icon" | "selected" | "rotationAngle" | "disabled" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
38
38
|
ownerState?: (Partial<import('../types').SideBarOwnerState> & Record<string, unknown>) | undefined;
|
|
39
39
|
}, {}, {}>;
|
|
40
40
|
export declare const ContainerFooterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
1
|
+
import { jsxs as p, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as o } from "react";
|
|
3
3
|
import { useStepper as s } from "../../../../hooks/useStepper/index.js";
|
|
4
4
|
import { WrapperTitleStyled as l, TitleStyled as c, TitleTextStyled as d, DescriptionStyled as u } from "../../../../slots/StepperSlot.js";
|
|
@@ -6,10 +6,10 @@ function h() {
|
|
|
6
6
|
const { steps: t, currentStep: i } = s((n) => ({
|
|
7
7
|
steps: n.steps,
|
|
8
8
|
currentStep: n.currentStep
|
|
9
|
-
})),
|
|
10
|
-
return
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
9
|
+
})), r = o(() => t[i], [t, i]);
|
|
10
|
+
return r ? /* @__PURE__ */ p(l, { children: [
|
|
11
|
+
/* @__PURE__ */ e(c, { variant: "paragraphDens", children: /* @__PURE__ */ e(d, { children: r.title }) }),
|
|
12
|
+
r.description && /* @__PURE__ */ e(u, { variant: "bodyStandard", children: r.description })
|
|
13
13
|
] }) : null;
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
@@ -4,12 +4,12 @@ import { Indicator as u } from "./subcomponents/Inidicator/index.js";
|
|
|
4
4
|
import { useStepArea as x } from "./hooks/useStepArea.js";
|
|
5
5
|
import { useVisibileSteps as k } from "./hooks/useVisibileSteps.js";
|
|
6
6
|
function j() {
|
|
7
|
-
const { visibleSteps: t } = k(), { handleStepClick: a, visibleTitle: s, orientation:
|
|
7
|
+
const { visibleSteps: t } = k(), { handleStepClick: a, visibleTitle: s, orientation: S, steps: d, currentStep: n } = x({ visibleSteps: t }), o = {
|
|
8
8
|
visibleTitle: s,
|
|
9
|
-
orientation:
|
|
9
|
+
orientation: S,
|
|
10
10
|
totalSteps: t.length
|
|
11
11
|
};
|
|
12
|
-
return /* @__PURE__ */ r(y, { ownerState: o, children: d.map((i,
|
|
12
|
+
return /* @__PURE__ */ r(y, { ownerState: o, children: d.map((i, l) => {
|
|
13
13
|
const e = t.findIndex((c) => c.key === i.key), p = e !== -1;
|
|
14
14
|
return /* @__PURE__ */ m(
|
|
15
15
|
b,
|
|
@@ -28,15 +28,15 @@ function j() {
|
|
|
28
28
|
s && /* @__PURE__ */ r(
|
|
29
29
|
f,
|
|
30
30
|
{
|
|
31
|
-
variant: "
|
|
31
|
+
variant: "bodyStandard",
|
|
32
32
|
ownerState: {
|
|
33
33
|
...o,
|
|
34
34
|
currentStep: n,
|
|
35
35
|
step: e,
|
|
36
|
-
originalStepIndex:
|
|
36
|
+
originalStepIndex: l,
|
|
37
37
|
isStepVisible: p
|
|
38
38
|
},
|
|
39
|
-
children: /* @__PURE__ */ r(h, { ownerState: { orientation:
|
|
39
|
+
children: /* @__PURE__ */ r(h, { ownerState: { orientation: S }, children: i.title })
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
42
|
/* @__PURE__ */ r(
|
|
@@ -45,7 +45,7 @@ function j() {
|
|
|
45
45
|
currentStep: n,
|
|
46
46
|
step: e,
|
|
47
47
|
totalSteps: t.length,
|
|
48
|
-
originalStepIndex:
|
|
48
|
+
originalStepIndex: l
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
]
|
|
@@ -17,7 +17,7 @@ function J($) {
|
|
|
17
17
|
stepValidationStatus: o.stepValidationStatus
|
|
18
18
|
}),
|
|
19
19
|
w
|
|
20
|
-
), { host_static_assets: c, environment_assets:
|
|
20
|
+
), { host_static_assets: c, environment_assets: d } = _(), { currentSize: b } = B(T), p = M(), u = z(() => p ? "dot" : s, [p, s]), { isCompleted: S, isValidStep: l, hasBeenValidated: f } = z(() => {
|
|
21
21
|
const o = e > t, y = a[t];
|
|
22
22
|
return {
|
|
23
23
|
isCompleted: o,
|
|
@@ -35,38 +35,38 @@ function J($) {
|
|
|
35
35
|
originalStepIndex: t,
|
|
36
36
|
isCompleted: S,
|
|
37
37
|
isCurrent: e === t,
|
|
38
|
-
isValidStep:
|
|
38
|
+
isValidStep: l,
|
|
39
39
|
hasBeenValidated: f
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */ i(I, { ownerState: v, children: f && !
|
|
41
|
+
return /* @__PURE__ */ i(I, { ownerState: v, children: f && !l ? (
|
|
42
42
|
// Mostrar error solo si ha sido validado y es inválido
|
|
43
43
|
/* @__PURE__ */ i(
|
|
44
44
|
m,
|
|
45
45
|
{
|
|
46
|
-
src: `${c}/${
|
|
46
|
+
src: `${c}/${d}/${r.circleError}`,
|
|
47
47
|
size: "small",
|
|
48
48
|
color: "error.contrastText"
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
|
-
) : S &&
|
|
51
|
+
) : S && l ? (
|
|
52
52
|
// Mostrar completado solo si está completado Y es válido
|
|
53
53
|
/* @__PURE__ */ i(
|
|
54
54
|
m,
|
|
55
55
|
{
|
|
56
|
-
src: `${c}/${
|
|
56
|
+
src: `${c}/${d}/${u === "number" ? r.circleCheck : r.dotOutline}`,
|
|
57
57
|
size: "small",
|
|
58
58
|
color: "primary.semanticText"
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
) : (
|
|
62
62
|
// Mostrar estado normal (número o dot) para pasos no validados o actuales
|
|
63
|
-
/* @__PURE__ */ i(V, { variant: "
|
|
63
|
+
/* @__PURE__ */ i(V, { variant: "bodyStandard", ownerState: v, children: u === "number" ? (
|
|
64
64
|
// Solo mostrar número si el step es visible (step >= 0)
|
|
65
65
|
n >= 0 ? n + 1 : ""
|
|
66
66
|
) : /* @__PURE__ */ i(
|
|
67
67
|
m,
|
|
68
68
|
{
|
|
69
|
-
src: `${c}/${
|
|
69
|
+
src: `${c}/${d}/${e === t ? r.dotSelected : r.dotOutline}`,
|
|
70
70
|
size: "small",
|
|
71
71
|
color: e === t ? "primary.semanticText" : "text.disabled"
|
|
72
72
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as b, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import x from "clsx";
|
|
3
3
|
import { TabNavigatorContainerStyled as I, TabNavigatorPositionedContainerStyled as O, TabNavigatorIconContainerStyled as P, TabNavigatorIconStyled as k, PopoverStyled as E, ContentPopoverStyled as _ } from "../../slots/TabsNavigatorSlots.js";
|
|
4
4
|
import { useState as w, useRef as A, useMemo as g } from "react";
|
|
5
5
|
import { TabNavigatorComponent as D } from "../TabNavigatorComponent/TabNavigatorComponent.js";
|
|
6
6
|
import { useEnvironment as M } from "@m4l/core";
|
|
7
|
-
import { TABS_NAVIGATOR_CLASSES as
|
|
7
|
+
import { TABS_NAVIGATOR_CLASSES as o } from "../../constants.js";
|
|
8
8
|
import { useTheme as R } from "@mui/material/styles";
|
|
9
9
|
import { TextMarquee as $ } from "../TextMarquee/TextMarquee.js";
|
|
10
10
|
import { useComponentSize as j } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
11
|
const U = (f) => {
|
|
12
|
-
const { label: u, icon: C, children:
|
|
12
|
+
const { label: u, icon: C, children: a, selectedId: c, onChangeSelectedId: d, variant: r, maxColumnsPopover: p = 3 } = f, [n, i] = w(!1), v = A(null), { host_static_assets: S, environment_assets: N } = M(), { currentSize: m } = j(), s = a.some((e) => e.id === c), l = g(() => ({
|
|
13
13
|
selected: s,
|
|
14
|
-
variant:
|
|
14
|
+
variant: r,
|
|
15
15
|
size: m,
|
|
16
|
-
maxColumnsPopover:
|
|
17
|
-
totalTabs:
|
|
18
|
-
}), [s,
|
|
16
|
+
maxColumnsPopover: p,
|
|
17
|
+
totalTabs: a.length
|
|
18
|
+
}), [s, r, m, p, a.length]), h = R(), y = (e) => {
|
|
19
19
|
(e.key === "Enter" || e.key === " ") && i(!n);
|
|
20
|
-
}, z = g(() =>
|
|
20
|
+
}, z = g(() => a.map((e) => /* @__PURE__ */ t(
|
|
21
21
|
D,
|
|
22
22
|
{
|
|
23
23
|
...e,
|
|
24
24
|
type: "cluster",
|
|
25
25
|
selectedId: c,
|
|
26
|
-
onChangeSelectedId:
|
|
26
|
+
onChangeSelectedId: d,
|
|
27
27
|
onClick: () => {
|
|
28
28
|
e.onClick?.(), i(!1);
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
e.id
|
|
32
|
-
)), [
|
|
32
|
+
)), [a, c, d]);
|
|
33
33
|
return /* @__PURE__ */ b(T, { children: [
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ t(
|
|
35
35
|
I,
|
|
36
36
|
{
|
|
37
37
|
tabIndex: 0,
|
|
@@ -40,7 +40,7 @@ const U = (f) => {
|
|
|
40
40
|
"aria-label": "cluster tabs",
|
|
41
41
|
"aria-expanded": n,
|
|
42
42
|
"aria-haspopup": "menu",
|
|
43
|
-
className:
|
|
43
|
+
className: o.tabNavigatorContainer,
|
|
44
44
|
onClick: () => i(!n),
|
|
45
45
|
onKeyDown: y,
|
|
46
46
|
ownerState: l,
|
|
@@ -48,16 +48,16 @@ const U = (f) => {
|
|
|
48
48
|
O,
|
|
49
49
|
{
|
|
50
50
|
className: x(
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
o.tabNavigatorPositionedContainer,
|
|
52
|
+
o.normal
|
|
53
53
|
),
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ t(P, { ref: v, className: o.tabNavigatorIconContainer, ownerState: l, children: /* @__PURE__ */ t(k, { className: o.tabNavigatorIcon, src: `${S}/${N}/${C}`, ownerState: l }) }),
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
57
|
$,
|
|
58
58
|
{
|
|
59
59
|
speed: 3,
|
|
60
|
-
variant: s ? "bodyDens" : "
|
|
60
|
+
variant: s ? "bodyDens" : "bodyStandard",
|
|
61
61
|
size: m,
|
|
62
62
|
children: u
|
|
63
63
|
}
|
|
@@ -67,17 +67,17 @@ const U = (f) => {
|
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ t(
|
|
71
71
|
E,
|
|
72
72
|
{
|
|
73
73
|
open: n,
|
|
74
74
|
onClose: () => i(!1),
|
|
75
75
|
anchorEl: v.current,
|
|
76
76
|
sx: {
|
|
77
|
-
ml:
|
|
78
|
-
mb:
|
|
77
|
+
ml: r === "vertical" ? h.vars.size.baseSpacings.sp6 : 0,
|
|
78
|
+
mb: r === "horizontal" ? h.vars.size.baseSpacings.sp6 : 0
|
|
79
79
|
},
|
|
80
|
-
...
|
|
80
|
+
...r === "vertical" ? {
|
|
81
81
|
anchorOrigin: {
|
|
82
82
|
vertical: "center",
|
|
83
83
|
horizontal: "right"
|
|
@@ -96,7 +96,7 @@ const U = (f) => {
|
|
|
96
96
|
horizontal: "center"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ t(_, { variant: "flex-wrap", className: o.contentPopover, ownerState: l, children: z })
|
|
100
100
|
}
|
|
101
101
|
)
|
|
102
102
|
] });
|
package/components/TabsNavigator/subcomponents/TabNavigatorComponent/TabNavigatorComponent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as C } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import g from "clsx";
|
|
3
3
|
import { TabNavigatorContainerStyled as p, TabNavigatorPositionedContainerStyled as v, TabNavigatorIconContainerStyled as T, TabNavigatorIconStyled as h, TabNavigatorLabelStyled as I } from "../../slots/TabsNavigatorSlots.js";
|
|
4
|
-
import { TABS_NAVIGATOR_CLASSES as
|
|
4
|
+
import { TABS_NAVIGATOR_CLASSES as a } from "../../constants.js";
|
|
5
5
|
import { useComponentSize as f } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
6
|
import { TextMarquee as u } from "../TextMarquee/TextMarquee.js";
|
|
7
7
|
const L = (d) => {
|
|
@@ -11,50 +11,50 @@ const L = (d) => {
|
|
|
11
11
|
icon: m,
|
|
12
12
|
onClick: b,
|
|
13
13
|
selectedId: N,
|
|
14
|
-
onChangeSelectedId:
|
|
14
|
+
onChangeSelectedId: S,
|
|
15
15
|
type: s = "normal"
|
|
16
|
-
} = d, { currentSize: t } = f(),
|
|
16
|
+
} = d, { currentSize: t } = f(), e = r === N, n = {
|
|
17
17
|
size: t,
|
|
18
|
-
selected:
|
|
18
|
+
selected: e
|
|
19
19
|
}, l = () => {
|
|
20
|
-
|
|
21
|
-
},
|
|
20
|
+
S?.(r), b?.();
|
|
21
|
+
}, y = (c) => {
|
|
22
22
|
(c.key === "Enter" || c.key === " ") && l();
|
|
23
23
|
};
|
|
24
24
|
return /* @__PURE__ */ o(
|
|
25
25
|
p,
|
|
26
26
|
{
|
|
27
27
|
tabIndex: 0,
|
|
28
|
-
"aria-selected":
|
|
29
|
-
className:
|
|
28
|
+
"aria-selected": e,
|
|
29
|
+
className: a.tabNavigatorContainer,
|
|
30
30
|
onClick: l,
|
|
31
|
-
onKeyDown:
|
|
32
|
-
ownerState: { selected:
|
|
31
|
+
onKeyDown: y,
|
|
32
|
+
ownerState: { selected: e },
|
|
33
33
|
children: /* @__PURE__ */ C(
|
|
34
34
|
v,
|
|
35
35
|
{
|
|
36
36
|
className: g(
|
|
37
|
-
|
|
38
|
-
s === "normal" ?
|
|
37
|
+
a.tabNavigatorPositionedContainer,
|
|
38
|
+
s === "normal" ? a.normal : a.cluster
|
|
39
39
|
),
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */ o(T, { className:
|
|
41
|
+
/* @__PURE__ */ o(T, { className: a.tabNavigatorIconContainer, ownerState: n, children: /* @__PURE__ */ o(h, { className: a.tabNavigatorIcon, src: m, ownerState: n }) }),
|
|
42
42
|
s === "normal" ? /* @__PURE__ */ o(
|
|
43
43
|
u,
|
|
44
44
|
{
|
|
45
45
|
speed: 3,
|
|
46
|
-
variant:
|
|
46
|
+
variant: e ? "bodyDens" : "bodyStandard",
|
|
47
47
|
size: t,
|
|
48
48
|
children: i
|
|
49
49
|
}
|
|
50
50
|
) : /* @__PURE__ */ o(
|
|
51
51
|
I,
|
|
52
52
|
{
|
|
53
|
-
variant:
|
|
53
|
+
variant: e ? "bodyDens" : "bodyStandard",
|
|
54
54
|
size: t,
|
|
55
55
|
ellipsis: !0,
|
|
56
56
|
ownerState: n,
|
|
57
|
-
className:
|
|
57
|
+
className: a.tabNavigatorLabel,
|
|
58
58
|
children: i
|
|
59
59
|
}
|
|
60
60
|
)
|
|
@@ -22,10 +22,10 @@ export declare const MessageDescriptionStyled: import('@emotion/styled').StyledC
|
|
|
22
22
|
export declare const MessageIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').IconProps, "src" | "icon" | keyof import('../..').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
23
23
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const MessageCloseButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "
|
|
25
|
+
export declare const MessageCloseButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "action" | "content" | "translate" | "className" | "style" | "classes" | "children" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "tooltip" | "value" | "instaceDataTestId" | "placement" | "icon" | "selected" | "rotationAngle" | "disabled" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
26
26
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
27
27
|
}, {}, {}>;
|
|
28
|
-
export declare const MessagePinButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "
|
|
28
|
+
export declare const MessagePinButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "action" | "content" | "translate" | "className" | "style" | "classes" | "children" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "tooltip" | "value" | "instaceDataTestId" | "placement" | "icon" | "selected" | "rotationAngle" | "disabled" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
29
29
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
30
30
|
}, {}, {}>;
|
|
31
31
|
//# sourceMappingURL=toastContainerSlots.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { TOAST_KEY_COMPONENT as r } from "../../constants.js";
|
|
3
3
|
import { useToastMessage as h } from "./useToastMessage.js";
|
|
4
4
|
import { MessageRootStyled as T, MessageHeaderStyled as m, ContainedHeaderStyled as p, MessageIconRootStyled as C, MessageIconStyled as P, MessageTitleStyled as b, MessagePinButtonStyled as u, MessageCloseButtonStyled as f, MessageDescriptionStyled as z } from "../../slots/toastContainerSlots.js";
|
|
5
5
|
const v = (i) => {
|
|
6
|
-
const { title: a, description: n, closeToast: c } = i, { pinToast: d, isPinned: l, ownerState: e, iconPinPath: y, iconTypePath: S, iconClosePath: M, currentSize:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ s(C, { ownerState: e, children: /* @__PURE__ */ s(P, { src: S, ownerState: e, size:
|
|
11
|
-
/* @__PURE__ */ s(b, { ownerState: e, size:
|
|
6
|
+
const { title: a, description: n, closeToast: c } = i, { pinToast: d, isPinned: l, ownerState: e, iconPinPath: y, iconTypePath: S, iconClosePath: M, currentSize: t, iconColor: g } = h(i);
|
|
7
|
+
return /* @__PURE__ */ o(T, { ownerState: e, children: [
|
|
8
|
+
/* @__PURE__ */ o(m, { ownerState: e, children: [
|
|
9
|
+
/* @__PURE__ */ o(p, { ownerState: e, children: [
|
|
10
|
+
/* @__PURE__ */ s(C, { ownerState: e, children: /* @__PURE__ */ s(P, { src: S, ownerState: e, size: t, color: g }) }),
|
|
11
|
+
/* @__PURE__ */ s(b, { ownerState: e, size: t, variant: "bodyDens", children: a })
|
|
12
12
|
] }),
|
|
13
13
|
!l && /* @__PURE__ */ s(
|
|
14
14
|
u,
|
|
@@ -29,7 +29,7 @@ const v = (i) => {
|
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
] }),
|
|
32
|
-
n && /* @__PURE__ */ s(z, { ownerState: e, size:
|
|
32
|
+
n && /* @__PURE__ */ s(z, { ownerState: e, size: t, variant: "bodyStandard", children: n })
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
@@ -23,27 +23,27 @@ const ue = (N) => {
|
|
|
23
23
|
buildTime: f,
|
|
24
24
|
variant: E,
|
|
25
25
|
actions: r = [],
|
|
26
|
-
collapsed:
|
|
26
|
+
collapsed: S,
|
|
27
27
|
emergeType: a,
|
|
28
|
-
draggable:
|
|
29
|
-
} = N, { host_static_assets: l, environment_assets: c } = H(), { dateFormatter: h } = P(), [O, R] = b(() => r.filter((t) => t.place === "left")), [x, z] = b(() => r.filter((t) => t.place === "right")), [
|
|
28
|
+
draggable: g
|
|
29
|
+
} = N, { host_static_assets: l, environment_assets: c } = H(), { dateFormatter: h } = P(), [O, R] = b(() => r.filter((t) => t.place === "left")), [x, z] = b(() => r.filter((t) => t.place === "right")), [I, v] = b(() => r.filter((t) => t.place === "inside"));
|
|
30
30
|
F(() => {
|
|
31
31
|
const t = r.reduce(
|
|
32
|
-
(e,
|
|
32
|
+
(e, o) => (e[o.place]?.push(o), e),
|
|
33
33
|
{ left: [], right: [], inside: [] }
|
|
34
34
|
);
|
|
35
35
|
R((e) => w(e, t.left) ? e : t.left), z((e) => w(e, t.right) ? e : t.right), v((e) => w(e, t.inside) ? e : t.inside);
|
|
36
36
|
}, [r]);
|
|
37
37
|
const $ = M(() => {
|
|
38
38
|
const t = [
|
|
39
|
-
...
|
|
39
|
+
...I.map((e) => e.type === "groupActions" ? e.actions.map((o) => ({
|
|
40
40
|
type: "menuItem",
|
|
41
|
-
startIcon:
|
|
42
|
-
label:
|
|
43
|
-
onClick:
|
|
44
|
-
disabled:
|
|
41
|
+
startIcon: o.iconUrl,
|
|
42
|
+
label: o.label,
|
|
43
|
+
onClick: o.onClick,
|
|
44
|
+
disabled: o.disabled,
|
|
45
45
|
checkable: !0,
|
|
46
|
-
checked:
|
|
46
|
+
checked: o.key === e.selectedActionKey
|
|
47
47
|
})) : {
|
|
48
48
|
type: "menuItem",
|
|
49
49
|
startIcon: e.iconUrl,
|
|
@@ -64,29 +64,29 @@ const ue = (N) => {
|
|
|
64
64
|
color: "default"
|
|
65
65
|
//className: 'version-action',
|
|
66
66
|
}), t;
|
|
67
|
-
}, [
|
|
67
|
+
}, [I, d, l, c, f, h]), n = {
|
|
68
68
|
selected: B,
|
|
69
69
|
maximized: _,
|
|
70
70
|
variant: E,
|
|
71
71
|
size: i,
|
|
72
72
|
emergeType: a,
|
|
73
|
-
collapsed:
|
|
74
|
-
draggable:
|
|
73
|
+
collapsed: S,
|
|
74
|
+
draggable: g
|
|
75
75
|
}, D = W(O), L = W(x);
|
|
76
|
-
return /* @__PURE__ */ m(U, { className: Z(
|
|
77
|
-
/* @__PURE__ */ m(j, { ownerState:
|
|
78
|
-
C && /* @__PURE__ */ s(V, { size: i, ownerState:
|
|
79
|
-
/* @__PURE__ */ m(q, { size: i, ownerState:
|
|
80
|
-
/* @__PURE__ */ s(K, { variant: a === "popup" || a === "modal" ? "
|
|
76
|
+
return /* @__PURE__ */ m(U, { className: Z(g && A.draggableHandle, k.headerWindowComponent), ownerState: n, children: [
|
|
77
|
+
/* @__PURE__ */ m(j, { ownerState: n, className: k.headerContentWindowBase, children: [
|
|
78
|
+
C && /* @__PURE__ */ s(V, { size: i, ownerState: n, src: C, "aria-label": "main icon" }),
|
|
79
|
+
/* @__PURE__ */ m(q, { size: i, ownerState: n, children: [
|
|
80
|
+
/* @__PURE__ */ s(K, { variant: a === "popup" || a === "modal" ? "bodyStandard" : "captionDens", size: i, skeletonWidth: 100, ownerState: n, children: T }),
|
|
81
81
|
u && /* @__PURE__ */ s(
|
|
82
82
|
G,
|
|
83
83
|
{
|
|
84
84
|
src: `${l}/${c}/frontend/components/window_base/assets/icons/${p.POINT}`,
|
|
85
85
|
size: i,
|
|
86
|
-
ownerState:
|
|
86
|
+
ownerState: n
|
|
87
87
|
}
|
|
88
88
|
),
|
|
89
|
-
u && /* @__PURE__ */ s(J, { variant: a === "popup" || a === "modal" ? "
|
|
89
|
+
u && /* @__PURE__ */ s(J, { variant: a === "popup" || a === "modal" ? "bodyStandard" : "captionDens", size: i, skeletonWidth: 100, ownerState: n, children: u })
|
|
90
90
|
] })
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ m(
|
|
@@ -94,14 +94,14 @@ const ue = (N) => {
|
|
|
94
94
|
{
|
|
95
95
|
id: "icons-wrapper",
|
|
96
96
|
className: A.draggableCancel,
|
|
97
|
-
ownerState:
|
|
97
|
+
ownerState: n,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */ s(X, { ownerState: { collapsed:
|
|
99
|
+
/* @__PURE__ */ s(X, { ownerState: { collapsed: S }, children: D }),
|
|
100
100
|
$.length > 0 && /* @__PURE__ */ s(
|
|
101
101
|
Y,
|
|
102
102
|
{
|
|
103
103
|
type: "menuItem",
|
|
104
|
-
ownerState:
|
|
104
|
+
ownerState: n,
|
|
105
105
|
icon: `${l}/${c}/frontend/components/window_base/assets/icons/${p.MORE_VERTICAL}`,
|
|
106
106
|
arrowType: "no-arrow",
|
|
107
107
|
iconButtonClassName: "window-actions",
|