@m4l/components 9.3.2 → 9.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/@types/types.d.ts +8 -1
  2. package/components/Card/Card.d.ts +7 -0
  3. package/components/Card/Card.styles.d.ts +2 -0
  4. package/components/Card/constants.d.ts +7 -0
  5. package/components/Card/helpers/getSizeSpacing.d.ts +7 -0
  6. package/components/Card/helpers/getSizeSpacing.test.d.ts +1 -0
  7. package/components/Card/index.d.ts +1 -0
  8. package/components/Card/slots/CardEnum.d.ts +3 -0
  9. package/components/Card/slots/CardSlots.d.ts +3 -0
  10. package/components/Card/test/Card.test.d.ts +1 -0
  11. package/components/Card/types.d.ts +59 -0
  12. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
  13. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
  14. package/components/NumberInput/NumberInput.styles.js +1 -0
  15. package/components/PaperForm/PaperForm.js +1 -2
  16. package/components/PaperForm/components/Header.js +1 -10
  17. package/components/PaperForm/styles.js +1 -4
  18. package/components/PropertyValue/PropertyValue.js +1 -1
  19. package/components/ToastContainer/ToastContainer.js +0 -1
  20. package/components/ToastContainer/ToastContainer.styles.js +126 -122
  21. package/components/ToastContainer/constants.d.ts +670 -0
  22. package/components/ToastContainer/constants.js +672 -1
  23. package/components/areas/contexts/AreasContext/store.js +2 -2
  24. package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
  25. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
  26. package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
  27. package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
  28. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
  29. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
  30. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  31. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
  32. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
  33. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +1 -1
  34. package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
  35. package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
  36. package/components/hook-form/RHFormContext/index.d.ts +1 -1
  37. package/components/mui_extended/Button/ButtonStyles.js +2 -1
  38. package/components/mui_extended/IconButton/IconButton.styles.js +1 -1
  39. package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
  40. package/components/mui_extended/TextField/constants.d.ts +5 -5
  41. package/components/mui_extended/TextField/constants.js +2 -2
  42. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
  43. package/components/mui_extended/TextField/slots/TextFieldEnum.js +8 -8
  44. package/index.js +8 -8
  45. package/package.json +1 -1
  46. package/storybook/components/Card/Card.stories.d.ts +45 -0
  47. package/storybook/components/Card/subcomponents/ContentCard.d.ts +8 -0
  48. package/storybook/components/Card/subcomponents/constants.d.ts +9 -0
  49. package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
  50. package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
  51. /package/storybook/components/{AppBar → appBar}/AppBar.stories.d.ts +0 -0
@@ -5,7 +5,8 @@ const rhfDateTimeStyles = {
5
5
  root: ({ theme }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
- gap: theme.vars.size.baseSpacings["sp0-5"]
8
+ gap: theme.vars.size.baseSpacings["sp0-5"],
9
+ width: "100%"
9
10
  })
10
11
  };
11
12
  export {
@@ -8,7 +8,8 @@ const rhfNumberInputStyles = {
8
8
  root: ({ theme }) => ({
9
9
  display: "flex",
10
10
  flexDirection: "column",
11
- gap: theme.vars.size.baseSpacings.sp1
11
+ gap: theme.vars.size.baseSpacings.sp1,
12
+ width: "100%"
12
13
  })
13
14
  };
14
15
  export {
@@ -23,11 +23,8 @@ const rhfPeriodStyles = {
23
23
  /**
24
24
  * textField class
25
25
  */
26
- textField: ({ theme }) => ({
27
- borderRadius: "50px",
28
- width: "43px !important",
29
- border: theme.vars.palette.border.default,
30
- color: theme.vars.palette.text.disabled
26
+ numberInput: () => ({
27
+ maxWidth: "43px !important"
31
28
  }),
32
29
  /**
33
30
  * select class
@@ -1,6 +1,6 @@
1
1
  export declare enum RHFPeriodSlots {
2
2
  root = "root",
3
3
  periodRoot = "periodRoot",
4
- textField = "textField",
4
+ numberInput = "numberInput",
5
5
  select = "select"
6
6
  }
@@ -1,7 +1,7 @@
1
1
  var RHFPeriodSlots = /* @__PURE__ */ ((RHFPeriodSlots2) => {
2
2
  RHFPeriodSlots2["root"] = "root";
3
3
  RHFPeriodSlots2["periodRoot"] = "periodRoot";
4
- RHFPeriodSlots2["textField"] = "textField";
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 TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "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" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
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" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "minRows" | "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 { T as TextField } from "../../../mui_extended/TextField/TextField.js";
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 TextFieldStyled = styled(TextField, {
15
+ const NumberInputStyled = styled(NumberInput, {
16
16
  name: RHF_PERIOD_KEY_COMPONENT,
17
- slot: RHFPeriodSlots.textField
18
- })(rhfPeriodStyles?.textField);
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, T as TextFieldStyled } from "../../slots/RHFPeriodSlots.js";
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) {
@@ -64,21 +64,22 @@ const Period = (props) => {
64
64
  const singleValue = getSingleValue(value);
65
65
  const selPeriodTime = getSelPeriodTime(value);
66
66
  const onTotalChange = (newPeriodTime, newValue) => {
67
+ const newPeriodTimeInt = typeof newPeriodTime === "string" ? parseInt(newPeriodTime) : newPeriodTime;
67
68
  const newPeriod = {
68
- selPeriodTime: newPeriodTime,
69
+ selPeriodTime: newPeriodTimeInt,
69
70
  singleValue: newValue
70
71
  };
71
- if (newValue !== "" && newValue > 0) {
72
+ if (newValue && newValue > 0) {
72
73
  newPeriod.years = 0;
73
74
  newPeriod.months = 0;
74
75
  newPeriod.days = 0;
75
- if (newPeriodTime === ETimePeriods.YEARS) {
76
+ if (newPeriodTimeInt === ETimePeriods.YEARS) {
76
77
  newPeriod.years = newValue;
77
78
  }
78
- if (newPeriodTime === ETimePeriods.MONTHS) {
79
+ if (newPeriodTimeInt === ETimePeriods.MONTHS) {
79
80
  newPeriod.months = newValue;
80
81
  }
81
- if (newPeriodTime === ETimePeriods.DAYS) {
82
+ if (newPeriodTimeInt === ETimePeriods.DAYS) {
82
83
  newPeriod.days = newValue;
83
84
  }
84
85
  }
@@ -117,13 +118,14 @@ const Period = (props) => {
117
118
  }
118
119
  ),
119
120
  /* @__PURE__ */ jsx(
120
- TextFieldStyled,
121
+ NumberInputStyled,
121
122
  {
122
123
  type: "number",
123
124
  variant: "outlined",
124
125
  value: singleValue,
125
- onChange: (e) => {
126
- onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
126
+ withDecimal: true,
127
+ onChange: (_event, newValue) => {
128
+ onTotalChange(selPeriodTime, newValue);
127
129
  }
128
130
  }
129
131
  )
@@ -1,5 +1,5 @@
1
1
  import { g as getCommonActionsDictionary } from "../../../../CommonActions/dictionary.js";
2
- const DICTIONARY_KEY = "rhf_period";
2
+ const DICTIONARY_KEY = "period";
3
3
  const DICTIONARY = {
4
4
  LABEL_YEARS: `${DICTIONARY_KEY}.label_years`,
5
5
  LABEL_MONTHS: `${DICTIONARY_KEY}.label_months`,
@@ -9,8 +9,8 @@ export type PeriodTime = {
9
9
  label: string;
10
10
  };
11
11
  export type PeriodType = {
12
- selPeriodTime: '' | ETimePeriods | undefined;
13
- singleValue: number | '';
12
+ selPeriodTime: null | ETimePeriods | undefined;
13
+ singleValue: number | null;
14
14
  years?: number;
15
15
  months?: number;
16
16
  days?: number;
@@ -5,7 +5,8 @@ const rhfSelectStyles = {
5
5
  root: ({ theme }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
- gap: theme.vars.size.baseSpacings.sp1
8
+ gap: theme.vars.size.baseSpacings.sp1,
9
+ width: "100%"
9
10
  }),
10
11
  /**
11
12
  * Estilos del Label.
@@ -3,7 +3,7 @@ import { CustomFormArguments, FormProviderCustomProps, FormProviderProps } from
3
3
  /**
4
4
  * TODO: Documentar
5
5
  */
6
- export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, undefined>;
6
+ export declare function useCustomForm({ validationSchema, values, statusLoad }: CustomFormArguments): import('react-hook-form').UseFormReturn<FieldValues, any, FieldValues>;
7
7
  /**
8
8
  * TODO: Documentar
9
9
  */
@@ -13,6 +13,7 @@ const buttonStyles = {
13
13
  borderRadius: theme.vars.size.borderRadius.r1,
14
14
  maxWidth: "200px",
15
15
  minWidth: "0",
16
+ flexShrink: 0,
16
17
  "&:hover": {
17
18
  backgroundColor: ownerState?.paletteColor?.hoverOpacity,
18
19
  borderColor: ownerState?.paletteColor?.hover
@@ -103,7 +104,7 @@ const buttonStyles = {
103
104
  textOverflow: "ellipsis"
104
105
  },
105
106
  ...ownerState.variant === "contained" && {
106
- color: ownerState.paletteColor?.contrastText
107
+ color: ownerState.color === "default" ? ownerState.paletteColor?.semanticText : ownerState.paletteColor?.contrastText
107
108
  },
108
109
  ...(ownerState?.variant === "outlined" || ownerState?.variant === "text") && {
109
110
  color: ownerState?.paletteColor?.semanticText
@@ -128,7 +128,7 @@ const iconButtonStyles = {
128
128
  backgroundColor: paletteColor.enabled,
129
129
  // 🖼️ Color del icono
130
130
  "&&& .M4LIcon-icon": {
131
- backgroundColor: paletteColor.contrastText
131
+ backgroundColor: paletteColor.semanticText
132
132
  },
133
133
  // 🖱️ Estado Hover
134
134
  "&:hover": {
@@ -107,7 +107,8 @@ const menuItemStyles = {
107
107
  */
108
108
  menuItemTypography: () => ({
109
109
  overflow: "hidden",
110
- textOverflow: "ellipsis"
110
+ textOverflow: "ellipsis",
111
+ cursor: "inherit"
111
112
  }),
112
113
  /**
113
114
  * Estilos para el contenedor de los items del menú contenedor
@@ -1,10 +1,10 @@
1
- import { TexFieldComplementaryClasses, TextFieldSlots } from './slots';
1
+ import { TextFieldComplementaryClasses, TextFieldSlots } from './slots';
2
2
  export declare const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
3
3
  export declare const COMBINATED_TEXTFIELD_ENUMS: {
4
- outlined: TexFieldComplementaryClasses.outlined;
5
- text: TexFieldComplementaryClasses.text;
6
- contained: TexFieldComplementaryClasses.contained;
7
- readOnly: TexFieldComplementaryClasses.readOnly;
4
+ outlined: TextFieldComplementaryClasses.outlined;
5
+ text: TextFieldComplementaryClasses.text;
6
+ contained: TextFieldComplementaryClasses.contained;
7
+ readOnly: TextFieldComplementaryClasses.readOnly;
8
8
  root: TextFieldSlots.root;
9
9
  skeleton: TextFieldSlots.skeleton;
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
- import { a as TexFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
2
+ import { a as TextFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
3
3
  const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
4
4
  const COMBINATED_TEXTFIELD_ENUMS = {
5
5
  ...TextFieldSlots,
6
- ...TexFieldComplementaryClasses
6
+ ...TextFieldComplementaryClasses
7
7
  };
8
8
  const TEXT_FIELD_CLASSES = getComponentClasses(TEXT_FIELD_KEY_COMPONENT, COMBINATED_TEXTFIELD_ENUMS);
9
9
  export {
@@ -2,7 +2,7 @@ export declare enum TextFieldSlots {
2
2
  root = "root",
3
3
  skeleton = "skeleton"
4
4
  }
5
- export declare enum TexFieldComplementaryClasses {
5
+ export declare enum TextFieldComplementaryClasses {
6
6
  outlined = "outlined",
7
7
  text = "text",
8
8
  contained = "contained",
@@ -3,14 +3,14 @@ var TextFieldSlots = /* @__PURE__ */ ((TextFieldSlots2) => {
3
3
  TextFieldSlots2["skeleton"] = "skeleton";
4
4
  return TextFieldSlots2;
5
5
  })(TextFieldSlots || {});
6
- var TexFieldComplementaryClasses = /* @__PURE__ */ ((TexFieldComplementaryClasses2) => {
7
- TexFieldComplementaryClasses2["outlined"] = "outlined";
8
- TexFieldComplementaryClasses2["text"] = "text";
9
- TexFieldComplementaryClasses2["contained"] = "contained";
10
- TexFieldComplementaryClasses2["readOnly"] = "readOnly";
11
- return TexFieldComplementaryClasses2;
12
- })(TexFieldComplementaryClasses || {});
6
+ var TextFieldComplementaryClasses = /* @__PURE__ */ ((TextFieldComplementaryClasses2) => {
7
+ TextFieldComplementaryClasses2["outlined"] = "outlined";
8
+ TextFieldComplementaryClasses2["text"] = "text";
9
+ TextFieldComplementaryClasses2["contained"] = "contained";
10
+ TextFieldComplementaryClasses2["readOnly"] = "readOnly";
11
+ return TextFieldComplementaryClasses2;
12
+ })(TextFieldComplementaryClasses || {});
13
13
  export {
14
14
  TextFieldSlots as T,
15
- TexFieldComplementaryClasses as a
15
+ TextFieldComplementaryClasses as a
16
16
  };
package/index.js CHANGED
@@ -146,7 +146,7 @@ import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
146
146
  import { R as R16 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
147
147
  import { R as R17 } from "./components/hook-form/RHFPeriod/constants.js";
148
148
  import { R as R18 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
149
- import { P as P6, R as R19, S as S7, T as T17 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
149
+ import { N as N3, P as P6, R as R19, S as S7 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
150
150
  import { R as R20 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
151
151
  import { R as R21 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
152
152
  import { I as I4 } from "./components/Icon/Icon.js";
@@ -162,7 +162,7 @@ import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
162
162
  import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
163
163
  import { M as M5 } from "./components/MFLoader/MFLoader.js";
164
164
  import { g as g24 } from "./components/MFLoader/dictionary.js";
165
- import { N as N3 } from "./components/NoItemSelected/NoItemSelected.js";
165
+ import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
166
166
  import { g as g25 } from "./components/NoItemSelected/dictionary.js";
167
167
  import { g as g26 } from "./components/ObjectLogs/dictionary.js";
168
168
  import { O } from "./components/ObjectLogs/ObjectLogs.js";
@@ -175,8 +175,8 @@ import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
175
175
  import { P as P12 } from "./components/PropertyValue/PropertyValue.js";
176
176
  import { S as S8 } from "./components/ScrollBar/ScrollBar.js";
177
177
  import { S as S9 } from "./components/SideBar/SideBar.js";
178
- import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
179
- import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
178
+ import { T as T17 } from "./components/ToastContainer/ToastContainer.js";
179
+ import { T as T18 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
180
180
  import { W } from "./components/WindowBase/WindowBase.js";
181
181
  import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
182
182
  import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
@@ -307,8 +307,9 @@ export {
307
307
  M as MotionContainer,
308
308
  M2 as MotionLazyContainer,
309
309
  N2 as NavLink,
310
- N3 as NoItemSelected,
310
+ N4 as NoItemSelected,
311
311
  N as NumberEditor,
312
+ N3 as NumberInputStyled,
312
313
  O as ObjectLogs,
313
314
  O2 as ObjectQueue,
314
315
  P8 as PDFViewer,
@@ -366,9 +367,8 @@ export {
366
367
  a7 as TabProvider,
367
368
  T5 as Tabs,
368
369
  T2 as TextEditor,
369
- T17 as TextFieldStyled,
370
- T18 as ToastContainer,
371
- T19 as ToastMessage,
370
+ T17 as ToastContainer,
371
+ T18 as ToastMessage,
372
372
  T9 as ToggleButton,
373
373
  T12 as ToggleButtonRootStyled,
374
374
  T11 as ToggleButtonSlots,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.2",
3
+ "version": "9.3.4",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {
@@ -0,0 +1,45 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Card } from '../../../src/components/Card';
3
+ declare const meta: Meta<typeof Card>;
4
+ type Story = StoryObj<typeof Card>;
5
+ /**
6
+ * Base story for `Card` with variant outlined.
7
+ */
8
+ export declare const H001_Variant_Outlined: Story;
9
+ /**
10
+ * Base story for `Card` with variant text.
11
+ */
12
+ export declare const H002_Variant_Text: Story;
13
+ /**
14
+ * Base story for `Card` with variant outlined and hover.
15
+ */
16
+ export declare const H003_Variant_Outlined_Hover: Story;
17
+ /**
18
+ * Base story for `Card` with variant outlined and selected.
19
+ */
20
+ export declare const H004_Variant_Outlined_Selected: Story;
21
+ /**
22
+ * Base story for `Card` with variant outlined and active.
23
+ */
24
+ export declare const H005_Variant_Outlined_Active: Story;
25
+ /**
26
+ * Base story for `Card` with variant outlined and focus visible.
27
+ */
28
+ export declare const H006_Variant_Outlined_Focus_Visible: Story;
29
+ /**
30
+ * Base story for `Card` with variant text and hover.
31
+ */
32
+ export declare const H007_Variant_Text_Hover: Story;
33
+ /**
34
+ * Base story for `Card` with variant text and hover.
35
+ */
36
+ export declare const H008_Variant_Text_Selected: Story;
37
+ /**
38
+ * Base story for `Card` with variant text and active.
39
+ */
40
+ export declare const H009_Variant_Text_Active: Story;
41
+ /**
42
+ * Base story for `Card` with variant text and focus visible.
43
+ */
44
+ export declare const H010_Variant_Text_Focus_Visible: Story;
45
+ export default meta;
@@ -0,0 +1,8 @@
1
+ import { CardProps } from '../../../../src/components/Card/types';
2
+ /**
3
+ * Componente que se renderiza en el contenido de la tarjeta
4
+ * @returns {React.ReactElement}
5
+ */
6
+ export declare const ContentCard: ({ gap }: {
7
+ gap?: CardProps["gap"];
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const ICONS: {
2
+ STATUS: string;
3
+ LOCATION: string;
4
+ TIME: string;
5
+ SPEED: string;
6
+ ACTION: string;
7
+ INFORMATION: string;
8
+ MENU: string;
9
+ };
@@ -19,4 +19,8 @@ export declare const WithChildren: Story;
19
19
  ********************************************************/
20
20
  export declare const WithPropertyValues: Story;
21
21
  export declare const WithSimpleContent: Story;
22
+ /**
23
+ * State Skeleton
24
+ */
25
+ export declare const Skeleton: Story;
22
26
  export default meta;
@@ -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>, {}>;