@m4l/components 9.61.0 → 9.61.1-beta-improvement-780-m4l-components-fields-read-only.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/@types/types.d.ts +11 -0
- package/components/ActionsGroup/ActionsGroup.d.ts.map +1 -1
- package/components/ActionsGroup/ActionsGroup.js +98 -26
- package/components/ActionsGroup/ActionsGroup.styles.d.ts.map +1 -1
- package/components/ActionsGroup/ActionsGroup.styles.js +72 -18
- package/components/ActionsGroup/constants.d.ts +1 -1
- package/components/ActionsGroup/constants.d.ts.map +1 -1
- package/components/ActionsGroup/slots/ActionsGroupEnum.d.ts +4 -0
- package/components/ActionsGroup/slots/ActionsGroupEnum.d.ts.map +1 -1
- package/components/ActionsGroup/slots/ActionsGroupEnum.js +2 -2
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +12 -0
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts.map +1 -1
- package/components/ActionsGroup/slots/ActionsGroupSlots.js +29 -13
- package/components/ActionsGroup/types.d.ts +14 -9
- package/components/ActionsGroup/types.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +176 -165
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +106 -86
- package/components/CheckableList/hooks/useCheckableListRender.d.ts +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +117 -102
- package/components/CheckableList/slots/styled.d.ts +5 -5
- package/components/CheckableList/types.d.ts +4 -3
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/components/DateTimeRangePicker/DateTimeRangePicker.js +334 -295
- package/components/DateTimeRangePicker/DateTimeRangePicker.styles.d.ts.map +1 -1
- package/components/DateTimeRangePicker/DateTimeRangePicker.styles.js +124 -49
- package/components/DateTimeRangePicker/__testing__/testUtils.d.ts.map +1 -1
- package/components/DateTimeRangePicker/constants.d.ts +2 -0
- package/components/DateTimeRangePicker/constants.d.ts.map +1 -1
- package/components/DateTimeRangePicker/constants.js +33 -31
- package/components/DateTimeRangePicker/hooks/helpers/fieldValue/fieldValue.d.ts +13 -0
- package/components/DateTimeRangePicker/hooks/helpers/fieldValue/fieldValue.d.ts.map +1 -1
- package/components/DateTimeRangePicker/hooks/helpers/fieldValue/fieldValue.js +58 -48
- package/components/DateTimeRangePicker/hooks/useDateTimeRangePicker.d.ts +3 -1
- package/components/DateTimeRangePicker/hooks/useDateTimeRangePicker.d.ts.map +1 -1
- package/components/DateTimeRangePicker/hooks/useDateTimeRangePicker.js +327 -314
- package/components/DateTimeRangePicker/index.d.ts +2 -2
- package/components/DateTimeRangePicker/index.d.ts.map +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerEnum.d.ts +1 -0
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerEnum.d.ts.map +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerEnum.js +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts +6 -0
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.d.ts.map +1 -1
- package/components/DateTimeRangePicker/slots/DateTimeRangePickerSlots.js +43 -34
- package/components/DateTimeRangePicker/types.d.ts +7 -0
- package/components/DateTimeRangePicker/types.d.ts.map +1 -1
- package/components/DaysOfWeekPicker/DaysOfWeekPicker.styles.d.ts.map +1 -1
- package/components/DaysOfWeekPicker/DaysOfWeekPicker.styles.js +22 -25
- package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +1 -1
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/checkableListStrategy/helpers/whitelist/propertyNormalizers.js +1 -1
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/dateRangePickerStrategy.d.ts.map +1 -1
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/dateRangePickerStrategy/dateRangePickerStrategy.js +22 -21
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.d.ts.map +1 -1
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/numberInputStrategy/numberInputStrategy.js +2 -2
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/textFieldStrategy.d.ts.map +1 -1
- package/components/DynamicForm/helpers/resolveFieldComponent/strategies/textFieldStrategy/textFieldStrategy.js +49 -46
- package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.d.ts.map +1 -1
- package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.js +81 -82
- package/components/DynamicForm/types.d.ts +1 -1
- package/components/DynamicForm/types.d.ts.map +1 -1
- package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
- package/components/MultiCheckbox/MultiCheckbox.d.ts +6 -0
- package/components/MultiCheckbox/MultiCheckbox.d.ts.map +1 -0
- package/components/MultiCheckbox/MultiCheckbox.js +56 -0
- package/components/MultiCheckbox/index.d.ts +3 -0
- package/components/MultiCheckbox/index.d.ts.map +1 -0
- package/components/MultiCheckbox/styles.d.ts +2 -0
- package/components/MultiCheckbox/styles.d.ts.map +1 -0
- package/components/MultiCheckbox/styles.js +16 -0
- package/components/MultiCheckbox/types.d.ts +11 -0
- package/components/MultiCheckbox/types.d.ts.map +1 -0
- package/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.js +144 -94
- package/components/NumberInput/NumberInput.styles.d.ts.map +1 -1
- package/components/NumberInput/NumberInput.styles.js +143 -76
- package/components/NumberInput/slots/NumberInputEnum.d.ts +3 -0
- package/components/NumberInput/slots/NumberInputEnum.d.ts.map +1 -1
- package/components/NumberInput/slots/NumberInputEnum.js +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +9 -0
- package/components/NumberInput/slots/NumberInputSlots.d.ts.map +1 -1
- package/components/NumberInput/slots/NumberInputSlots.js +43 -31
- package/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/components/TimePicker/TimePicker.js +194 -178
- package/components/TimePicker/TimePickerStyles.d.ts.map +1 -1
- package/components/TimePicker/hooks/useTimePicker/useTimePicker.d.ts.map +1 -1
- package/components/TimePicker/hooks/useTimePicker/useTimePicker.js +112 -106
- package/components/TimePicker/types.d.ts +1 -0
- package/components/TimePicker/types.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.styles.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.styles.js +54 -10
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +94 -91
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.d.ts +2 -1
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useEndAdornments.js +59 -47
- package/components/extended/mui/Autocomplete/hooks/useMultipleChips.d.ts +1 -0
- package/components/extended/mui/Autocomplete/hooks/useMultipleChips.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useMultipleChips.js +59 -56
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/types.d.ts +2 -0
- package/components/extended/mui/Autocomplete/types.d.ts.map +1 -1
- package/components/extended/mui/CheckBox/CheckBox.d.ts +7 -9
- package/components/extended/mui/CheckBox/CheckBox.d.ts.map +1 -1
- package/components/extended/mui/CheckBox/CheckBox.js +102 -73
- package/components/extended/mui/CheckBox/CheckBox.styles.d.ts.map +1 -1
- package/components/extended/mui/CheckBox/CheckBox.styles.js +54 -29
- package/components/extended/mui/CheckBox/slots/CheckBoxEnum.d.ts +4 -1
- package/components/extended/mui/CheckBox/slots/CheckBoxEnum.d.ts.map +1 -1
- package/components/extended/mui/CheckBox/slots/CheckBoxEnum.js +2 -2
- package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts +9 -0
- package/components/extended/mui/CheckBox/slots/CheckBoxSlots.d.ts.map +1 -1
- package/components/extended/mui/CheckBox/slots/CheckBoxSlots.js +39 -27
- package/components/extended/mui/CheckBox/types.d.ts +10 -5
- package/components/extended/mui/CheckBox/types.d.ts.map +1 -1
- package/components/extended/mui/Clipboard/Clipboard.d.ts +6 -0
- package/components/extended/mui/Clipboard/Clipboard.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/Clipboard.js +83 -0
- package/components/extended/mui/Clipboard/Clipboard.styles.d.ts +3 -0
- package/components/extended/mui/Clipboard/Clipboard.styles.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/Clipboard.styles.js +27 -0
- package/components/extended/mui/Clipboard/constants.d.ts +3 -0
- package/components/extended/mui/Clipboard/constants.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/constants.js +10 -0
- package/components/extended/mui/Clipboard/index.d.ts +6 -0
- package/components/extended/mui/Clipboard/index.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/slots/ClipboardEnum.d.ts +8 -0
- package/components/extended/mui/Clipboard/slots/ClipboardEnum.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/slots/ClipboardEnum.js +8 -0
- package/components/extended/mui/Clipboard/slots/ClipboardSlots.d.ts +7 -0
- package/components/extended/mui/Clipboard/slots/ClipboardSlots.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/slots/ClipboardSlots.js +17 -0
- package/components/extended/mui/Clipboard/slots/index.d.ts +3 -0
- package/components/extended/mui/Clipboard/slots/index.d.ts.map +1 -0
- package/components/extended/mui/Clipboard/types.d.ts +33 -0
- package/components/extended/mui/Clipboard/types.d.ts.map +1 -0
- package/components/extended/mui/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/extended/mui/DatePicker/DatePicker.js +32 -28
- package/components/extended/mui/DatePicker/DatePicker.styles.d.ts +1 -1
- package/components/extended/mui/DatePicker/DatePicker.styles.d.ts.map +1 -1
- package/components/extended/mui/DatePicker/DatePicker.styles.js +60 -14
- package/components/extended/mui/DatePicker/hooks/useDatePicker/useDatePicker.d.ts.map +1 -1
- package/components/extended/mui/DatePicker/hooks/useDatePicker/useDatePicker.js +141 -106
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +1 -1
- package/components/extended/mui/DatePicker/types.d.ts +3 -2
- package/components/extended/mui/DatePicker/types.d.ts.map +1 -1
- package/components/extended/mui/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/components/extended/mui/DateTimePicker/DateTimePicker.js +246 -163
- package/components/extended/mui/DateTimePicker/DateTimePicker.styles.d.ts.map +1 -1
- package/components/extended/mui/DateTimePicker/DateTimePicker.styles.js +61 -8
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerEnum.d.ts +1 -0
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerEnum.d.ts.map +1 -1
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerEnum.js +1 -1
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +3 -0
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts.map +1 -1
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.js +35 -30
- package/components/extended/mui/DateTimePicker/types.d.ts +4 -0
- package/components/extended/mui/DateTimePicker/types.d.ts.map +1 -1
- package/components/extended/mui/Select/Select.d.ts.map +1 -1
- package/components/extended/mui/Select/Select.js +136 -115
- package/components/extended/mui/Select/Select.styles.d.ts.map +1 -1
- package/components/extended/mui/Select/Select.styles.js +77 -33
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +1 -1
- package/components/extended/mui/TextField/TextField.d.ts +1 -1
- package/components/extended/mui/TextField/TextField.d.ts.map +1 -1
- package/components/extended/mui/TextField/TextField.js +85 -62
- package/components/extended/mui/TextField/TextField.styles.d.ts.map +1 -1
- package/components/extended/mui/TextField/TextField.styles.js +88 -44
- package/components/extended/mui/TextField/constants.d.ts +4 -3
- package/components/extended/mui/TextField/constants.d.ts.map +1 -1
- package/components/extended/mui/TextField/slots/TextFieldEnum.d.ts +1 -0
- package/components/extended/mui/TextField/slots/TextFieldEnum.d.ts.map +1 -1
- package/components/extended/mui/TextField/slots/TextFieldEnum.js +2 -2
- package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts +3 -0
- package/components/extended/mui/TextField/slots/TextFieldSlots.d.ts.map +1 -1
- package/components/extended/mui/TextField/slots/TextFieldSlots.js +14 -10
- package/components/extended/mui/TextField/types.d.ts +22 -15
- package/components/extended/mui/TextField/types.d.ts.map +1 -1
- package/components/extended/mui/TimePicker/TimePicker.d.ts.map +1 -1
- package/components/extended/mui/TimePicker/TimePickerStyles.d.ts.map +1 -1
- package/components/extended/mui/TimePicker/types.d.ts +15 -7
- package/components/extended/mui/TimePicker/types.d.ts.map +1 -1
- package/components/extended/mui/index.d.ts +1 -0
- package/components/extended/mui/index.d.ts.map +1 -1
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.d.ts.map +1 -1
- package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +43 -41
- package/components/hook-form/RHFActionsGroup/types.d.ts +4 -0
- package/components/hook-form/RHFActionsGroup/types.d.ts.map +1 -1
- package/components/hook-form/RHFCheckableList/RHFCheckableList.js +27 -27
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts.map +1 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.js +42 -38
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/types.d.ts +5 -1
- package/components/hook-form/RHFCheckbox/types.d.ts.map +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.d.ts.map +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.js +44 -42
- package/components/hook-form/RHFDateTime/types.d.ts +4 -0
- package/components/hook-form/RHFDateTime/types.d.ts.map +1 -1
- package/components/hook-form/RHFDateTimeRangePicker/RHFDateTimeRangePicker.d.ts +1 -1
- package/components/hook-form/RHFDateTimeRangePicker/RHFDateTimeRangePicker.d.ts.map +1 -1
- package/components/hook-form/RHFDateTimeRangePicker/RHFDateTimeRangePicker.js +31 -11
- package/components/hook-form/RHFMultiCheckbox/index.d.ts +2 -2
- package/components/hook-form/RHFMultiCheckbox/index.d.ts.map +1 -1
- package/components/hook-form/RHFMultiCheckbox/index.js +18 -25
- package/components/hook-form/RHFMultiCheckbox/types.d.ts +2 -2
- package/components/hook-form/RHFMultiCheckbox/types.d.ts.map +1 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +30 -30
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +158 -101
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +52 -13
- package/components/hook-form/RHFRadioGroup/constants.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/constants.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +5 -1
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/slots.js +2 -2
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +4 -0
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.js +40 -24
- package/components/hook-form/RHFRadioGroup/types.d.ts +7 -1
- package/components/hook-form/RHFRadioGroup/types.d.ts.map +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFSelect/types.d.ts +1 -1
- package/components/hook-form/RHFSelect/types.d.ts.map +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/types.d.ts +9 -9
- package/components/hook-form/RHFTextField/types.d.ts.map +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +2 -3
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts.map +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +54 -54
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +23 -21
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +79 -9
- package/components/hook-form/RHFUpload/RHFUploadImage/constants.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/constants.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageEnum.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageEnum.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageEnum.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +6 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.js +34 -26
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +119 -82
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +4 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts.map +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/index.js +648 -631
- package/package.json +5 -5
package/@types/types.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ import {
|
|
|
38
38
|
TextFieldOwnerState,
|
|
39
39
|
TextFieldSlotsType,
|
|
40
40
|
} from '../components/extended/mui/TextField/types';
|
|
41
|
+
import type {
|
|
42
|
+
ClipboardOwnerState,
|
|
43
|
+
ClipboardSlotsType,
|
|
44
|
+
} from '../components/extended/mui/Clipboard/types';
|
|
41
45
|
// type Theme = Omit<MuiTheme, 'components'>;
|
|
42
46
|
import {
|
|
43
47
|
TooltipOwnerState,
|
|
@@ -410,6 +414,7 @@ declare module '@mui/material/styles' {
|
|
|
410
414
|
M4LLabel: LabelSlotsType;
|
|
411
415
|
M4LTooltip: TooltipSlotsType;
|
|
412
416
|
M4LIconButton: IconButtonSlotsType;
|
|
417
|
+
M4LClipboard: ClipboardSlotsType;
|
|
413
418
|
M4LTextField: TextFieldSlotsType;
|
|
414
419
|
M4LBadge: BadgeSlotsType;
|
|
415
420
|
M4LMenuItem: MenuItemSlotsType;
|
|
@@ -529,6 +534,7 @@ declare module '@mui/material/styles' {
|
|
|
529
534
|
M4LTooltip: Partial<TooltipOwnerState>;
|
|
530
535
|
M4LTextField: Partial<TextFieldOwnerState>;
|
|
531
536
|
M4LIconButton: Partial<IconButtonOwnerState>;
|
|
537
|
+
M4LClipboard: Partial<ClipboardOwnerState>;
|
|
532
538
|
M4LBadge: Partial<BadgeOwnerState>;
|
|
533
539
|
M4LMenuItem: Partial<MenuItemOwnerState>;
|
|
534
540
|
M4LSkeleton: Partial<SkeletonOwnerState>;
|
|
@@ -756,6 +762,11 @@ declare module '@mui/material/styles' {
|
|
|
756
762
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAlert'];
|
|
757
763
|
variants?: ComponentsVariants['M4LAlert'];
|
|
758
764
|
};
|
|
765
|
+
M4LClipboard?: {
|
|
766
|
+
defaultProps?: ComponentsPropsList['M4LClipboard'];
|
|
767
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LClipboard'];
|
|
768
|
+
variants?: ComponentsVariants['M4LClipboard'];
|
|
769
|
+
};
|
|
759
770
|
M4LBadge?: {
|
|
760
771
|
defaultProps?: ComponentsPropsList['M4LBadge'];
|
|
761
772
|
styleOverrides?: ComponentsOverrides<Theme>['M4LBadge'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsGroup.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/ActionsGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionsGroup.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/ActionsGroup.tsx"],"names":[],"mappings":"AAQA,OAAO,EAA0B,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAM3F;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,qBAAqB,EAAE,OAAO,iBAAiB,CAAC,CAAC,CAAC,qDAmGxF,CAAC"}
|
|
@@ -1,39 +1,111 @@
|
|
|
1
|
-
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { ActionsGroupRootStyled as
|
|
4
|
-
import { ACTIONS_GROUP_CLASSES as
|
|
5
|
-
import
|
|
6
|
-
import { ActionIconButton as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as l, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as S } from "react";
|
|
3
|
+
import { ActionsGroupRootStyled as u, ReadOnlyValueStyled as N, ReadOnlyIconFrameStyled as z, ReadOnlyIconStyled as A, ReadOnlyLabelStyled as w } from "./slots/ActionsGroupSlots.js";
|
|
4
|
+
import { ACTIONS_GROUP_CLASSES as r } from "./constants.js";
|
|
5
|
+
import O from "clsx";
|
|
6
|
+
import { ActionIconButton as I } from "./subcomponents/ActionIconButton/ActionIconButton.js";
|
|
7
|
+
import { useComponentSize as R } from "@m4l/graphics";
|
|
8
|
+
const F = (f) => {
|
|
9
|
+
const {
|
|
10
|
+
actions: d,
|
|
11
|
+
variant: s = "horizontal",
|
|
12
|
+
disabled: a = !1,
|
|
13
|
+
readOnly: c = !1,
|
|
14
|
+
className: y,
|
|
15
|
+
value: m,
|
|
16
|
+
size: b,
|
|
17
|
+
onChange: v,
|
|
18
|
+
ariaLabel: o,
|
|
19
|
+
ariaLabelledBy: p
|
|
20
|
+
} = f, { currentSize: h } = R(b), t = S(() => ({
|
|
21
|
+
disabled: a,
|
|
22
|
+
readOnly: c,
|
|
23
|
+
variant: s,
|
|
24
|
+
size: b
|
|
25
|
+
}), [a, c, b, s]), i = S(
|
|
26
|
+
() => d.find((e) => e.id === m),
|
|
27
|
+
[d, m]
|
|
28
|
+
);
|
|
29
|
+
if (c) {
|
|
30
|
+
const e = i?.disabled, n = { ...t, itemDisabled: e };
|
|
31
|
+
return /* @__PURE__ */ l(
|
|
32
|
+
u,
|
|
33
|
+
{
|
|
34
|
+
className: O(y, r.root),
|
|
35
|
+
ownerState: t,
|
|
36
|
+
role: "group",
|
|
37
|
+
"aria-disabled": a || e || void 0,
|
|
38
|
+
"aria-label": o,
|
|
39
|
+
"aria-labelledby": o ? void 0 : p,
|
|
40
|
+
"data-readonly": "true",
|
|
41
|
+
children: i ? /* @__PURE__ */ x(
|
|
42
|
+
N,
|
|
43
|
+
{
|
|
44
|
+
className: r.readOnlyValue,
|
|
45
|
+
ownerState: n,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ l(
|
|
48
|
+
z,
|
|
49
|
+
{
|
|
50
|
+
className: r.readOnlyIconFrame,
|
|
51
|
+
ownerState: n,
|
|
52
|
+
children: /* @__PURE__ */ l(
|
|
53
|
+
A,
|
|
54
|
+
{
|
|
55
|
+
className: r.readOnlyIcon,
|
|
56
|
+
color: a || e ? "text.disabled" : "text.primary",
|
|
57
|
+
disabled: a || e,
|
|
58
|
+
ownerState: n,
|
|
59
|
+
size: "small",
|
|
60
|
+
src: i.iconUrl
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ l(
|
|
66
|
+
w,
|
|
67
|
+
{
|
|
68
|
+
className: r.readOnlyLabel,
|
|
69
|
+
color: a || e ? "text.disabled" : "text.primary",
|
|
70
|
+
component: "span",
|
|
71
|
+
disabled: a || e,
|
|
72
|
+
ellipsis: !0,
|
|
73
|
+
ownerState: n,
|
|
74
|
+
size: h,
|
|
75
|
+
variant: "bodyStandard",
|
|
76
|
+
children: i.label
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) : null
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
13
85
|
return /* @__PURE__ */ l(
|
|
14
|
-
|
|
86
|
+
u,
|
|
15
87
|
{
|
|
16
|
-
className:
|
|
88
|
+
className: O(y, r.root),
|
|
17
89
|
ownerState: t,
|
|
18
90
|
role: "toolbar",
|
|
19
|
-
"aria-orientation":
|
|
20
|
-
"aria-disabled":
|
|
21
|
-
"aria-label":
|
|
22
|
-
"aria-labelledby":
|
|
23
|
-
children:
|
|
24
|
-
|
|
91
|
+
"aria-orientation": s === "vertical" ? "vertical" : "horizontal",
|
|
92
|
+
"aria-disabled": a || void 0,
|
|
93
|
+
"aria-label": o,
|
|
94
|
+
"aria-labelledby": o ? void 0 : p,
|
|
95
|
+
children: d.map((e) => /* @__PURE__ */ l(
|
|
96
|
+
I,
|
|
25
97
|
{
|
|
26
|
-
action:
|
|
27
|
-
selected:
|
|
98
|
+
action: e,
|
|
99
|
+
selected: e.id === m,
|
|
28
100
|
ownerState: t,
|
|
29
|
-
onChange:
|
|
30
|
-
groupDisabled:
|
|
101
|
+
onChange: v,
|
|
102
|
+
groupDisabled: a
|
|
31
103
|
},
|
|
32
|
-
String(
|
|
104
|
+
String(e.id ?? e.label)
|
|
33
105
|
))
|
|
34
106
|
}
|
|
35
107
|
);
|
|
36
108
|
};
|
|
37
109
|
export {
|
|
38
|
-
|
|
110
|
+
F as ActionsGroup
|
|
39
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsGroup.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/ActionsGroup.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionsGroup.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/ActionsGroup.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0B,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA8BrE,eAAO,MAAM,kBAAkB,EAAE,kBAsJhC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getIconPaintStyles as
|
|
2
|
-
import { getSizeStyles as
|
|
3
|
-
const
|
|
1
|
+
import { getIconPaintStyles as r } from "@m4l/base";
|
|
2
|
+
import { getSizeStyles as e } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
|
+
const t = ".M4LIcon-root", o = (a, i) => i?.disabled || i?.itemDisabled ? a.vars.palette.text.disabled : i?.itemSelected ? a.vars.palette.primary.semanticText : a.vars.palette.text.secondary, n = (a, i) => i?.disabled || i?.itemDisabled ? a.vars.palette.text.disabled : a.vars.palette.text.primary, l = {
|
|
4
4
|
/**
|
|
5
5
|
* Styles for the actions group root element.
|
|
6
6
|
*/
|
|
7
|
-
root: ({ theme: a, ownerState:
|
|
7
|
+
root: ({ theme: a, ownerState: i }) => ({
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: "row",
|
|
10
10
|
gap: a.vars.size.baseSpacings.sp1,
|
|
@@ -13,43 +13,97 @@ const r = ".M4LIcon-root", e = (a, s) => s?.disabled || s?.itemDisabled ? a.vars
|
|
|
13
13
|
backgroundColor: a.vars.palette.background.base,
|
|
14
14
|
width: "fit-content",
|
|
15
15
|
height: "fit-content",
|
|
16
|
-
...
|
|
16
|
+
...i?.variant === "vertical" && {
|
|
17
17
|
flexDirection: "column"
|
|
18
18
|
},
|
|
19
|
-
...
|
|
19
|
+
...i?.variant === "horizontal" && {
|
|
20
20
|
flexDirection: "row"
|
|
21
|
+
},
|
|
22
|
+
...i?.readOnly && {
|
|
23
|
+
backgroundColor: "transparent",
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
gap: a.vars.size.baseSpacings["sp1-5"],
|
|
26
|
+
padding: a.vars.size.baseSpacings.sp0,
|
|
27
|
+
width: "100%"
|
|
21
28
|
}
|
|
22
29
|
}),
|
|
23
30
|
/**
|
|
24
31
|
* Styles for the action icon button element.
|
|
25
32
|
*/
|
|
26
|
-
actionIconButton: ({ theme: a, ownerState:
|
|
33
|
+
actionIconButton: ({ theme: a, ownerState: i }) => ({
|
|
27
34
|
"&&&": {
|
|
28
|
-
...
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
35
|
+
...e(a, i?.size || "medium", "case", (s) => ({
|
|
36
|
+
width: s,
|
|
37
|
+
height: s
|
|
31
38
|
})),
|
|
32
|
-
...
|
|
39
|
+
...i?.itemSelected && {
|
|
33
40
|
backgroundColor: a.vars.palette.primary.enabledOpacity,
|
|
34
41
|
boxShadow: a.vars.customShadows.z1
|
|
35
42
|
},
|
|
36
43
|
// A single resolved color feeds both Icon strategies, so the mask and SVG
|
|
37
44
|
// sources can never drift apart the way they did before.
|
|
38
|
-
...
|
|
45
|
+
...r(o(a, i), { scope: t })
|
|
39
46
|
}
|
|
40
47
|
}),
|
|
41
48
|
/**
|
|
42
49
|
* Styles for the action icon button skeleton element.
|
|
43
50
|
*/
|
|
44
|
-
actionIconButtonSkeleton: ({ theme: a, ownerState:
|
|
51
|
+
actionIconButtonSkeleton: ({ theme: a, ownerState: i }) => ({
|
|
45
52
|
"&&&": {
|
|
46
53
|
borderRadius: a.vars.size.borderRadius["r1-5"],
|
|
47
|
-
...
|
|
48
|
-
width: `${
|
|
49
|
-
height: `${
|
|
54
|
+
...e(a, i?.size || "medium", "case", (s) => ({
|
|
55
|
+
width: `${s}!important`,
|
|
56
|
+
height: `${s}!important`
|
|
50
57
|
}))
|
|
51
58
|
}
|
|
52
59
|
}),
|
|
60
|
+
/**
|
|
61
|
+
* Styles for the read-only selected action item.
|
|
62
|
+
*/
|
|
63
|
+
readOnlyValue: ({ theme: a, ownerState: i }) => ({
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
display: "flex",
|
|
66
|
+
gap: a.vars.size.baseSpacings["sp1-5"],
|
|
67
|
+
...e(a, i?.size || "medium", "case", (s) => ({
|
|
68
|
+
height: s,
|
|
69
|
+
minHeight: s
|
|
70
|
+
})),
|
|
71
|
+
maxWidth: "100%",
|
|
72
|
+
minWidth: 0,
|
|
73
|
+
pointerEvents: "none",
|
|
74
|
+
width: "fit-content"
|
|
75
|
+
}),
|
|
76
|
+
/**
|
|
77
|
+
* Styles for the read-only selected action icon frame.
|
|
78
|
+
*/
|
|
79
|
+
readOnlyIconFrame: ({ theme: a, ownerState: i }) => ({
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
backgroundColor: a.vars.palette.chips.default.contained.backgroundColor,
|
|
82
|
+
borderRadius: a.vars.size.borderRadius.r2,
|
|
83
|
+
boxSizing: "border-box",
|
|
84
|
+
display: "flex",
|
|
85
|
+
flexShrink: 0,
|
|
86
|
+
justifyContent: "center",
|
|
87
|
+
padding: a.vars.size.baseSpacings.sp1,
|
|
88
|
+
...e(a, i?.size || "medium", "case", (s) => ({
|
|
89
|
+
width: s,
|
|
90
|
+
height: s
|
|
91
|
+
}))
|
|
92
|
+
}),
|
|
93
|
+
/**
|
|
94
|
+
* Styles for the read-only selected action icon.
|
|
95
|
+
*/
|
|
96
|
+
readOnlyIcon: ({ theme: a, ownerState: i }) => ({
|
|
97
|
+
flexShrink: 0,
|
|
98
|
+
...r(n(a, i))
|
|
99
|
+
}),
|
|
100
|
+
/**
|
|
101
|
+
* Styles for the read-only selected action label.
|
|
102
|
+
*/
|
|
103
|
+
readOnlyLabel: () => ({
|
|
104
|
+
flex: "0 1 auto",
|
|
105
|
+
minWidth: 0
|
|
106
|
+
}),
|
|
53
107
|
/**
|
|
54
108
|
* Styles for the icon tooltip message element.
|
|
55
109
|
*/
|
|
@@ -74,7 +128,7 @@ const r = ".M4LIcon-root", e = (a, s) => s?.disabled || s?.itemDisabled ? a.vars
|
|
|
74
128
|
paddingRight: a.vars.size.baseSpacings.sp2,
|
|
75
129
|
// The blocked-action lock is a React element source, so it renders as an
|
|
76
130
|
// SVG and never had the mask element the previous rule targeted.
|
|
77
|
-
...
|
|
131
|
+
...r(a.vars.palette.text.contrastText, { scope: t }),
|
|
78
132
|
"& .M4LTypography-root": {
|
|
79
133
|
color: a.vars.palette.text.contrastText
|
|
80
134
|
}
|
|
@@ -82,5 +136,5 @@ const r = ".M4LIcon-root", e = (a, s) => s?.disabled || s?.itemDisabled ? a.vars
|
|
|
82
136
|
})
|
|
83
137
|
};
|
|
84
138
|
export {
|
|
85
|
-
|
|
139
|
+
l as actionsGroupStyles
|
|
86
140
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ACTIONS_GROUP_KEY_COMPONENT = "M4LActionsGroup";
|
|
2
|
-
export declare const ACTIONS_GROUP_CLASSES: Record<"root" | "tooltip" | "actionIconButton" | "actionIconButtonSkeleton" | "iconTooltipMessage" | "textTooltipMessage", string>;
|
|
2
|
+
export declare const ACTIONS_GROUP_CLASSES: Record<"root" | "tooltip" | "actionIconButton" | "actionIconButtonSkeleton" | "readOnlyValue" | "readOnlyIconFrame" | "readOnlyIcon" | "readOnlyLabel" | "iconTooltipMessage" | "textTooltipMessage", string>;
|
|
3
3
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,oBAAoB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,+MAAsE,CAAC"}
|
|
@@ -2,6 +2,10 @@ export declare enum ActionsGroupSlots {
|
|
|
2
2
|
root = "root",
|
|
3
3
|
actionIconButton = "actionIconButton",
|
|
4
4
|
actionIconButtonSkeleton = "actionIconButtonSkeleton",
|
|
5
|
+
readOnlyValue = "readOnlyValue",
|
|
6
|
+
readOnlyIconFrame = "readOnlyIconFrame",
|
|
7
|
+
readOnlyIcon = "readOnlyIcon",
|
|
8
|
+
readOnlyLabel = "readOnlyLabel",
|
|
5
9
|
iconTooltipMessage = "iconTooltipMessage",
|
|
6
10
|
textTooltipMessage = "textTooltipMessage",
|
|
7
11
|
tooltip = "tooltip"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsGroupEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/ActionsGroup/slots/ActionsGroupEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,gBAAgB,qBAAqB;IACrC,wBAAwB,6BAA6B;IACrD,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,OAAO,YAAY;CACpB"}
|
|
1
|
+
{"version":3,"file":"ActionsGroupEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/ActionsGroup/slots/ActionsGroupEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,gBAAgB,qBAAqB;IACrC,wBAAwB,6BAA6B;IACrD,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,OAAO,YAAY;CACpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = /* @__PURE__ */ ((e) => (e.root = "root", e.actionIconButton = "actionIconButton", e.actionIconButtonSkeleton = "actionIconButtonSkeleton", e.readOnlyValue = "readOnlyValue", e.readOnlyIconFrame = "readOnlyIconFrame", e.readOnlyIcon = "readOnlyIcon", e.readOnlyLabel = "readOnlyLabel", e.iconTooltipMessage = "iconTooltipMessage", e.textTooltipMessage = "textTooltipMessage", e.tooltip = "tooltip", e))(a || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as ActionsGroupSlots
|
|
4
4
|
};
|
|
@@ -7,6 +7,18 @@ export declare const ActionIconButtonStyled: import('@emotion/styled').StyledCom
|
|
|
7
7
|
export declare const ActionIconButtonSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../extended/mui/Skeleton/types').SkeletonProps, keyof import('../../extended/mui/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
8
|
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
10
|
+
export declare const ReadOnlyValueStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
|
+
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
12
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const ReadOnlyIconFrameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
16
|
+
export declare const ReadOnlyIconStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/base').IconProps, "src" | "icon" | keyof import('@m4l/base').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
|
+
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
export declare const ReadOnlyLabelStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "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" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
+
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
10
22
|
export declare const IconTooltipMessageStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/base').IconProps, "src" | "icon" | keyof import('@m4l/base').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
23
|
ownerState?: (Partial<import('../types').ActionsGroupOwnerState> & Record<string, unknown>) | undefined;
|
|
12
24
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsGroupSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/ActionsGroup/slots/ActionsGroupSlots.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;6NAGP,CAAC;AAE7B,eAAO,MAAM,sBAAsB;;UAGK,CAAC;AAEzC,eAAO,MAAM,8BAA8B;;UAGK,CAAC;AAEjD,eAAO,MAAM,wBAAwB;;UAGK,CAAC;AAE3C,eAAO,MAAM,wBAAwB;;UAGK,CAAC"}
|
|
1
|
+
{"version":3,"file":"ActionsGroupSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/ActionsGroup/slots/ActionsGroupSlots.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;6NAGP,CAAC;AAE7B,eAAO,MAAM,sBAAsB;;UAGK,CAAC;AAEzC,eAAO,MAAM,8BAA8B;;UAGK,CAAC;AAEjD,eAAO,MAAM,mBAAmB;;6NAGK,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;iOAGK,CAAC;AAE1C,eAAO,MAAM,kBAAkB;;UAGK,CAAC;AAErC,eAAO,MAAM,mBAAmB;;UAGK,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;UAGK,CAAC;AAE3C,eAAO,MAAM,wBAAwB;;UAGK,CAAC"}
|
|
@@ -2,29 +2,45 @@ import { ActionsGroupSlots as o } from "./ActionsGroupEnum.js";
|
|
|
2
2
|
import { ACTIONS_GROUP_KEY_COMPONENT as t } from "../constants.js";
|
|
3
3
|
import { styled as n } from "@mui/material/styles";
|
|
4
4
|
import { actionsGroupStyles as e } from "../ActionsGroup.styles.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Skeleton as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
const
|
|
5
|
+
import { Icon as l, Typography as a } from "@m4l/base";
|
|
6
|
+
import { Skeleton as s } from "../../extended/mui/Skeleton/Skeleton.js";
|
|
7
|
+
import { IconButton as c } from "../../extended/mui/IconButton/IconButton.js";
|
|
8
|
+
const O = n("div", {
|
|
9
9
|
name: t,
|
|
10
10
|
slot: o.root
|
|
11
|
-
})(e?.root),
|
|
11
|
+
})(e?.root), S = n(c, {
|
|
12
12
|
name: t,
|
|
13
13
|
slot: o.actionIconButton
|
|
14
|
-
})(e?.actionIconButton),
|
|
14
|
+
})(e?.actionIconButton), u = n(s, {
|
|
15
15
|
name: t,
|
|
16
16
|
slot: o.actionIconButtonSkeleton
|
|
17
|
-
})(e?.actionIconButtonSkeleton),
|
|
17
|
+
})(e?.actionIconButtonSkeleton), T = n("div", {
|
|
18
|
+
name: t,
|
|
19
|
+
slot: o.readOnlyValue
|
|
20
|
+
})(e?.readOnlyValue), f = n("span", {
|
|
21
|
+
name: t,
|
|
22
|
+
slot: o.readOnlyIconFrame
|
|
23
|
+
})(e?.readOnlyIconFrame), g = n(l, {
|
|
24
|
+
name: t,
|
|
25
|
+
slot: o.readOnlyIcon
|
|
26
|
+
})(e?.readOnlyIcon), B = n(a, {
|
|
27
|
+
name: t,
|
|
28
|
+
slot: o.readOnlyLabel
|
|
29
|
+
})(e?.readOnlyLabel), M = n(l, {
|
|
18
30
|
name: t,
|
|
19
31
|
slot: o.iconTooltipMessage
|
|
20
|
-
})(e?.iconTooltipMessage),
|
|
32
|
+
})(e?.iconTooltipMessage), R = n(a, {
|
|
21
33
|
name: t,
|
|
22
34
|
slot: o.textTooltipMessage
|
|
23
35
|
})(e?.textTooltipMessage);
|
|
24
36
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
u as ActionIconButtonSkeletonStyled,
|
|
38
|
+
S as ActionIconButtonStyled,
|
|
39
|
+
O as ActionsGroupRootStyled,
|
|
40
|
+
M as IconTooltipMessageStyled,
|
|
41
|
+
f as ReadOnlyIconFrameStyled,
|
|
42
|
+
g as ReadOnlyIconStyled,
|
|
43
|
+
B as ReadOnlyLabelStyled,
|
|
44
|
+
T as ReadOnlyValueStyled,
|
|
45
|
+
R as TextTooltipMessageStyled
|
|
30
46
|
};
|
|
@@ -14,39 +14,43 @@ export interface ActionGroupItem<T extends ActionsGroupValueType> {
|
|
|
14
14
|
}
|
|
15
15
|
export interface ActionsGroupProps<T extends ActionsGroupValueType> {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether the actions group is disabled.
|
|
18
18
|
*/
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Custom class name for the actions group.
|
|
22
22
|
*/
|
|
23
23
|
className?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Accessible label for the group.
|
|
26
26
|
*/
|
|
27
27
|
ariaLabel?: string;
|
|
28
28
|
/**
|
|
29
|
-
* ID
|
|
29
|
+
* ID of the element that labels the group when `ariaLabel` is not provided.
|
|
30
30
|
*/
|
|
31
31
|
ariaLabelledBy?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Selected item.
|
|
34
34
|
*/
|
|
35
35
|
value: T;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Callback fired when an action is selected.
|
|
38
38
|
*/
|
|
39
39
|
onChange: (newValue: T) => void;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Size of the actions group.
|
|
42
42
|
*/
|
|
43
43
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Action list rendered by the group.
|
|
46
46
|
*/
|
|
47
47
|
actions: ActionGroupItem<T>[];
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Displays only the selected action as a non-interactive value.
|
|
50
|
+
*/
|
|
51
|
+
readOnly?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Actions group orientation.
|
|
50
54
|
*/
|
|
51
55
|
variant?: 'vertical' | 'horizontal';
|
|
52
56
|
}
|
|
@@ -54,6 +58,7 @@ export type ActionsGroupSlotsType = keyof typeof ActionsGroupSlots;
|
|
|
54
58
|
export type ActionsGroupOwnerState = {
|
|
55
59
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
56
60
|
disabled?: boolean;
|
|
61
|
+
readOnly?: boolean;
|
|
57
62
|
variant?: 'vertical' | 'horizontal';
|
|
58
63
|
itemSelected?: boolean;
|
|
59
64
|
itemDisabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAE3D,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,qBAAqB;IAC9D,EAAE,EAAE,CAAC,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,qBAAqB;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ActionsGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAE3D,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,qBAAqB;IAC9D,EAAE,EAAE,CAAC,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,qBAAqB;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACrC;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,2BAA2B,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckableList.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/CheckableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAEnB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckableList.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/CheckableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAmCjB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,qDAwUtD,CAAC"}
|