@m4l/components 9.3.43 → 9.4.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.
Files changed (127) hide show
  1. package/@types/export.d.ts +2 -2
  2. package/@types/types.d.ts +18 -10
  3. package/components/CheckableList/CheckableList.d.ts +20 -0
  4. package/components/CheckableList/CheckableList.js +225 -0
  5. package/components/CheckableList/CheckableList.styles.d.ts +2 -0
  6. package/components/CheckableList/CheckableList.styles.js +247 -0
  7. package/components/CheckableList/constants.d.ts +5 -0
  8. package/components/CheckableList/constants.js +17 -0
  9. package/components/CheckableList/dictionary.d.ts +14 -0
  10. package/components/CheckableList/dictionary.js +14 -0
  11. package/components/CheckableList/hooks/index.d.ts +6 -0
  12. package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +21 -0
  13. package/components/CheckableList/hooks/useCheckableListHandlers.js +66 -0
  14. package/components/CheckableList/hooks/useCheckableListItems.d.ts +19 -0
  15. package/components/CheckableList/hooks/useCheckableListItems.js +79 -0
  16. package/components/CheckableList/hooks/useCheckableListRender.d.ts +52 -0
  17. package/components/CheckableList/hooks/useCheckableListRender.js +223 -0
  18. package/components/CheckableList/hooks/useCheckableListSelection.d.ts +19 -0
  19. package/components/CheckableList/hooks/useCheckableListSelection.js +69 -0
  20. package/components/CheckableList/hooks/useCheckableListState.d.ts +17 -0
  21. package/components/CheckableList/hooks/useCheckableListState.js +59 -0
  22. package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +14 -0
  23. package/components/CheckableList/hooks/useCheckableListVirtualization.js +42 -0
  24. package/components/CheckableList/icons.d.ts +5 -0
  25. package/components/CheckableList/icons.js +8 -0
  26. package/components/CheckableList/index.d.ts +3 -0
  27. package/components/CheckableList/index.js +1 -0
  28. package/components/CheckableList/slots/index.d.ts +2 -0
  29. package/components/CheckableList/slots/index.js +1 -0
  30. package/components/CheckableList/slots/slots.d.ts +26 -0
  31. package/components/CheckableList/slots/slots.js +30 -0
  32. package/components/CheckableList/slots/styled.d.ts +72 -0
  33. package/components/CheckableList/slots/styled.js +130 -0
  34. package/components/CheckableList/types.d.ts +277 -0
  35. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
  36. package/components/DataGrid/Datagrid.styles.js +8 -8
  37. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +2 -2
  38. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +6 -0
  39. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +12 -0
  40. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +2 -2
  41. package/components/DynamicFilter/store/DynamicFilterContext.js +11 -0
  42. package/components/DynamicFilter/store/DynamicFilterStore.js +9 -0
  43. package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -1
  44. package/components/DynamicFilter/types.d.ts +4 -0
  45. package/components/DynamicSort/store/DynamicSortStore.js +6 -0
  46. package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.d.ts +1 -1
  47. package/components/DynamicSort/types.d.ts +4 -0
  48. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  49. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
  50. package/components/Stepper/Stepper.styles.js +13 -8
  51. package/components/WindowBase/hooks/useDynamicMFParameters/index.d.ts +4 -4
  52. package/components/areas/contexts/AreasContext/store.js +2 -2
  53. package/components/commercial/SectionCommercial/styles.d.ts +1 -1
  54. package/components/hook-form/RHFCheckableList/RHFCheckableList.d.ts +7 -0
  55. package/components/hook-form/RHFCheckableList/RHFCheckableList.js +91 -0
  56. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.d.ts +2 -0
  57. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.js +30 -0
  58. package/components/hook-form/RHFCheckableList/constants.d.ts +8 -0
  59. package/components/hook-form/RHFCheckableList/constants.js +11 -0
  60. package/components/hook-form/RHFCheckableList/index.d.ts +2 -0
  61. package/components/hook-form/RHFCheckableList/index.js +1 -0
  62. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.d.ts +6 -0
  63. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.js +10 -0
  64. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.d.ts +20 -0
  65. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js +29 -0
  66. package/components/hook-form/RHFCheckableList/slots/index.d.ts +2 -0
  67. package/components/hook-form/RHFCheckableList/types.d.ts +60 -0
  68. package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.d.ts +1 -1
  69. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +3 -4
  70. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +3 -3
  71. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +66 -24
  72. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts +5 -0
  73. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +29 -0
  74. package/components/hook-form/RHFRadioGroup/constants.d.ts +5 -0
  75. package/components/hook-form/RHFRadioGroup/constants.js +8 -0
  76. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -2
  77. package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +5 -0
  78. package/components/hook-form/RHFRadioGroup/slots/slots.js +9 -0
  79. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +9 -0
  80. package/components/hook-form/RHFRadioGroup/slots/styled.js +20 -0
  81. package/components/hook-form/RHFRadioGroup/types.d.ts +55 -11
  82. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +1 -1
  83. package/components/hook-form/index.d.ts +1 -0
  84. package/components/index.d.ts +1 -0
  85. package/components/mui_extended/CheckBox/CheckBox.js +2 -0
  86. package/components/mui_extended/Radio/Radio.d.ts +20 -0
  87. package/components/mui_extended/{RadioButton/RadioButton.js → Radio/Radio.js} +27 -26
  88. package/components/mui_extended/Radio/Radio.styles.d.ts +2 -0
  89. package/components/mui_extended/{RadioButton/RadioButton.styles.js → Radio/Radio.styles.js} +17 -42
  90. package/components/mui_extended/Radio/constants.d.ts +2 -0
  91. package/components/mui_extended/Radio/constants.js +8 -0
  92. package/components/mui_extended/Radio/index.d.ts +1 -0
  93. package/components/mui_extended/Radio/index.js +1 -0
  94. package/components/mui_extended/Radio/slots/slots.d.ts +6 -0
  95. package/components/mui_extended/Radio/slots/slots.js +10 -0
  96. package/components/mui_extended/{RadioButton/slots/RadioButtonSlots.d.ts → Radio/slots/styled.d.ts} +6 -12
  97. package/components/mui_extended/Radio/slots/styled.js +28 -0
  98. package/components/mui_extended/Radio/types.d.ts +53 -0
  99. package/components/mui_extended/Stack/Stack.d.ts +1 -1
  100. package/components/mui_extended/Stack/Stack.js +5 -2
  101. package/components/mui_extended/index.d.ts +1 -1
  102. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +2 -1
  103. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +1 -0
  104. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -3
  105. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +6 -0
  106. package/hooks/useDynamicFilterAndSort/styles.js +23 -0
  107. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
  108. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +27 -21
  109. package/index.js +145 -139
  110. package/package.json +1 -1
  111. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.d.ts +0 -6
  112. package/components/DataGrid/subcomponents/Table/subcomponents/RadioButtonFormatter.js +0 -12
  113. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.js +0 -16
  114. package/components/mui_extended/RadioButton/RadioButton.d.ts +0 -24
  115. package/components/mui_extended/RadioButton/RadioButton.styles.d.ts +0 -2
  116. package/components/mui_extended/RadioButton/constants.d.ts +0 -1
  117. package/components/mui_extended/RadioButton/constants.js +0 -4
  118. package/components/mui_extended/RadioButton/index.d.ts +0 -1
  119. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.d.ts +0 -8
  120. package/components/mui_extended/RadioButton/slots/RadioButtonEnum.js +0 -12
  121. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.js +0 -39
  122. package/components/mui_extended/RadioButton/types.d.ts +0 -50
  123. /package/components/{mui_extended/RadioButton → CheckableList/hooks}/index.js +0 -0
  124. /package/components/DataGrid/tests/table/subcomponents/{RadioButtonFormatter.test.d.ts → RadioFormatter.test.d.ts} +0 -0
  125. /package/components/mui_extended/{RadioButton → Radio}/icons.d.ts +0 -0
  126. /package/components/mui_extended/{RadioButton → Radio}/icons.js +0 -0
  127. /package/components/mui_extended/{RadioButton/tests/RadioButton.test.d.ts → Radio/tests/Radio.test.d.ts} +0 -0
@@ -1,50 +0,0 @@
1
- import { RadioProps as MUIRadioProps, Theme } from '@mui/material';
2
- import { RadioButtonSlots } from './slots/RadioButtonEnum';
3
- import { ComponentPalletColor, Sizes } from '@m4l/styles';
4
- import { M4LOverridesStyleRules } from '../../../@types/augmentations';
5
- import { RADIO_BUTTON_KEY_COMPONENT } from './constants';
6
- import { LabelProps } from '../../Label/types';
7
- export interface RadioButtonProps extends MUIRadioProps, Omit<LabelProps, 'label' | 'size'> {
8
- /**
9
- * El texto que se muestra junto al radio button
10
- */
11
- inlineText?: string;
12
- /**
13
- * Tamaño
14
- */
15
- size?: Extract<Sizes, 'small' | 'medium'>;
16
- /**
17
- * Color
18
- */
19
- color?: Extract<ComponentPalletColor, 'default'>;
20
- }
21
- export interface RadioButtonOwnerState {
22
- /**
23
- * Indica si el RadioButton está marcado.
24
- */
25
- checked?: boolean;
26
- /**
27
- * Indica si el RadioButton está deshabilitado.
28
- */
29
- disabled?: boolean;
30
- /**
31
- * El tamaño del RadioButton.
32
- */
33
- size: Extract<Sizes, 'small' | 'medium'>;
34
- /**
35
- * El color del RadioButton.
36
- */
37
- color: Extract<ComponentPalletColor, 'default'>;
38
- /**
39
- * Indica si hay un error en el RadioButton.
40
- */
41
- error?: boolean;
42
- }
43
- /**
44
- * Tipos de slots de RadioButton
45
- */
46
- export type RadioButtonSlotsType = keyof typeof RadioButtonSlots;
47
- /**
48
- * Estilos del RadioButton
49
- */
50
- export type RadioButtonStyles = M4LOverridesStyleRules<RadioButtonSlotsType, typeof RADIO_BUTTON_KEY_COMPONENT, Theme>;