@m4l/components 9.3.3 → 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 (32) hide show
  1. package/components/NumberInput/NumberInput.styles.js +1 -0
  2. package/components/PaperForm/PaperForm.js +1 -2
  3. package/components/PaperForm/components/Header.js +1 -10
  4. package/components/PaperForm/styles.js +1 -4
  5. package/components/PropertyValue/PropertyValue.js +1 -1
  6. package/components/ToastContainer/ToastContainer.js +0 -1
  7. package/components/ToastContainer/ToastContainer.styles.js +126 -122
  8. package/components/ToastContainer/constants.d.ts +670 -0
  9. package/components/ToastContainer/constants.js +672 -1
  10. package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
  11. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
  12. package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
  13. package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
  14. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
  15. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
  16. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  17. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
  18. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
  19. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +1 -1
  20. package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
  21. package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
  22. package/components/mui_extended/Button/ButtonStyles.js +2 -1
  23. package/components/mui_extended/IconButton/IconButton.styles.js +1 -1
  24. package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
  25. package/components/mui_extended/TextField/constants.d.ts +5 -5
  26. package/components/mui_extended/TextField/constants.js +2 -2
  27. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
  28. package/components/mui_extended/TextField/slots/TextFieldEnum.js +8 -8
  29. package/index.js +8 -8
  30. package/package.json +1 -1
  31. package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
  32. package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
@@ -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.
@@ -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.3",
3
+ "version": "9.3.4",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {
@@ -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>, {}>;