@m4l/components 9.84.0-beta-feat-temporal-scatter-widgets-reports.0 → 9.84.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 +24 -0
- package/components/BaseModule/BaseModule.d.ts +1 -1
- package/components/BaseModule/BaseModule.d.ts.map +1 -1
- package/components/BaseModule/BaseModule.js +29 -21
- package/components/BaseModule/types.d.ts +5 -1
- package/components/BaseModule/types.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.d.ts +3 -3
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +218 -202
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +37 -18
- package/components/CheckableList/constants.d.ts +19 -1
- package/components/CheckableList/constants.d.ts.map +1 -1
- package/components/CheckableList/constants.js +29 -7
- package/components/CheckableList/helpers/resolveGroupEdgeColors.d.ts +6 -0
- package/components/CheckableList/helpers/resolveGroupEdgeColors.d.ts.map +1 -0
- package/components/CheckableList/helpers/resolveGroupEdgeColors.js +37 -0
- package/components/CheckableList/helpers/types.d.ts +6 -0
- package/components/CheckableList/helpers/types.d.ts.map +1 -0
- package/components/CheckableList/hooks/types.d.ts +107 -0
- package/components/CheckableList/hooks/types.d.ts.map +1 -0
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +3 -14
- package/components/CheckableList/hooks/useCheckableListHandlers.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListHandlers.js +37 -39
- package/components/CheckableList/hooks/useCheckableListItems.d.ts +5 -15
- package/components/CheckableList/hooks/useCheckableListItems.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListItems.js +35 -64
- package/components/CheckableList/hooks/useCheckableListRender.d.ts +4 -59
- package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +96 -222
- package/components/CheckableList/hooks/useCheckableListSelection.d.ts +4 -11
- package/components/CheckableList/hooks/useCheckableListSelection.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListSelection.js +34 -37
- package/components/CheckableList/hooks/useCheckableListState.d.ts +2 -9
- package/components/CheckableList/hooks/useCheckableListState.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListState.js +19 -21
- package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +8 -18
- package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListVirtualization.js +51 -39
- package/components/CheckableList/slots/slots.d.ts +2 -0
- package/components/CheckableList/slots/slots.d.ts.map +1 -1
- package/components/CheckableList/slots/slots.js +1 -1
- package/components/CheckableList/slots/styled.d.ts +6 -0
- package/components/CheckableList/slots/styled.d.ts.map +1 -1
- package/components/CheckableList/slots/styled.js +62 -54
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.d.ts +4 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/CheckableListGroupRow.js +114 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/types.d.ts +11 -0
- package/components/CheckableList/subcomponents/CheckableListGroupRow/types.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.d.ts +4 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.d.ts.map +1 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/CheckableListItemRow.js +93 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/types.d.ts +9 -0
- package/components/CheckableList/subcomponents/CheckableListItemRow/types.d.ts.map +1 -0
- package/components/CheckableList/types.d.ts +99 -81
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.js +65 -123
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.styles.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/HoursOfWeekPicker.styles.js +71 -47
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.d.ts +7 -0
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/HoursOfWeekSelection.js +28 -0
- package/components/HoursOfWeekPicker/constants.d.ts +5 -3
- package/components/HoursOfWeekPicker/constants.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/constants.js +19 -13
- package/components/HoursOfWeekPicker/helpers/firstAvailableRange/firstAvailableRange.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/firstAvailableRange/firstAvailableRange.js +7 -8
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.d.ts +7 -0
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/helpers/getHoursOfWeekPresets/getHoursOfWeekPresets.js +29 -0
- package/components/HoursOfWeekPicker/helpers/getTimeOptions/getTimeOptions.d.ts +1 -1
- package/components/HoursOfWeekPicker/helpers/getTimeOptions/getTimeOptions.js +4 -4
- package/components/HoursOfWeekPicker/helpers/index.d.ts +1 -1
- package/components/HoursOfWeekPicker/helpers/index.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/matrixToValue/matrixToValue.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/matrixToValue/matrixToValue.js +5 -6
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.d.ts +7 -0
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/helpers/normalizeValue/normalizeValue.js +12 -0
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.d.ts +5 -2
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/parseTime/parseTime.js +5 -8
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.d.ts +6 -3
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/helpers/valueToMatrix/valueToMatrix.js +8 -11
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekCards/useHoursOfWeekCards.d.ts +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.d.ts +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/hooks/useHoursOfWeekPicker/useHoursOfWeekPicker.js +56 -56
- package/components/HoursOfWeekPicker/index.d.ts +4 -0
- package/components/HoursOfWeekPicker/index.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.d.ts +4 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerEnum.js +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.d.ts +51 -144
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/slots/HoursOfWeekPickerSlots.js +212 -54
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCards/HoursOfWeekCards.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCards/HoursOfWeekCards.js +75 -75
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekCell/HoursOfWeekCell.js +9 -9
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekLegend/HoursOfWeekLegend.js +21 -21
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekPeriods/HoursOfWeekPeriods.js +19 -19
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekRow/HoursOfWeekRow.js +15 -15
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.d.ts +7 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSelectionContent/HoursOfWeekSelectionContent.js +75 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.d.ts +7 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.d.ts.map +1 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekShortcuts/HoursOfWeekShortcuts.js +35 -0
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.d.ts +2 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.d.ts.map +1 -1
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSkeleton/HoursOfWeekSkeleton.js +10 -10
- package/components/HoursOfWeekPicker/subcomponents/HoursOfWeekSummary/HoursOfWeekSummary.js +18 -18
- package/components/HoursOfWeekPicker/types.d.ts +97 -16
- package/components/HoursOfWeekPicker/types.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +134 -130
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.d.ts +2 -1
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.d.ts.map +1 -1
- package/components/MFIsolationAppStorybook/createComponentsMFIsolationAppStorybookProps.js +33 -25
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -1
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js +9 -4
- package/components/MFLoader/index.d.ts +0 -1
- package/components/MFLoader/index.d.ts.map +1 -1
- package/components/MFLoader/types.d.ts +0 -3
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/SortableList/SortableList.d.ts +3 -0
- package/components/SortableList/SortableList.d.ts.map +1 -0
- package/components/SortableList/SortableList.js +137 -0
- package/components/SortableList/SortableList.styles.d.ts +3 -0
- package/components/SortableList/SortableList.styles.d.ts.map +1 -0
- package/components/SortableList/SortableList.styles.js +45 -0
- package/components/SortableList/__testing__/SortableHarnesses.d.ts +23 -0
- package/components/SortableList/__testing__/SortableHarnesses.d.ts.map +1 -0
- package/components/SortableList/__testing__/fixtures.d.ts +24 -0
- package/components/SortableList/__testing__/fixtures.d.ts.map +1 -0
- package/components/SortableList/__testing__/types.d.ts +78 -0
- package/components/SortableList/__testing__/types.d.ts.map +1 -0
- package/components/SortableList/constants.d.ts +14 -0
- package/components/SortableList/constants.d.ts.map +1 -0
- package/components/SortableList/constants.js +18 -0
- package/components/SortableList/dictionary.d.ts +3 -0
- package/components/SortableList/dictionary.d.ts.map +1 -0
- package/components/SortableList/dictionary.js +6 -0
- package/components/SortableList/helpers.d.ts +12 -0
- package/components/SortableList/helpers.d.ts.map +1 -0
- package/components/SortableList/helpers.js +35 -0
- package/components/SortableList/index.d.ts +4 -0
- package/components/SortableList/index.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListEnum.d.ts +10 -0
- package/components/SortableList/slots/SortableListEnum.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListEnum.js +4 -0
- package/components/SortableList/slots/SortableListSlots.d.ts +9 -0
- package/components/SortableList/slots/SortableListSlots.d.ts.map +1 -0
- package/components/SortableList/slots/SortableListSlots.js +38 -0
- package/components/SortableList/slots/index.d.ts +2 -0
- package/components/SortableList/slots/index.d.ts.map +1 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.d.ts +4 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.d.ts.map +1 -0
- package/components/SortableList/subcomponents/SortableListItem/SortableListItem.js +103 -0
- package/components/SortableList/types.d.ts +80 -0
- package/components/SortableList/types.d.ts.map +1 -0
- package/components/SortableList/vendor.d.ts +7 -0
- package/components/SortableList/vendor.d.ts.map +1 -0
- package/components/SortableList/vendor.js +10 -0
- package/components/Stepper/Stepper.d.ts +3 -2
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/Stepper.js +48 -35
- package/components/Stepper/Stepper.styles.d.ts.map +1 -1
- package/components/Stepper/Stepper.styles.js +141 -99
- package/components/Stepper/constants.d.ts +6 -0
- package/components/Stepper/constants.d.ts.map +1 -1
- package/components/Stepper/constants.js +8 -2
- package/components/Stepper/dictionary.d.ts +1 -0
- package/components/Stepper/dictionary.d.ts.map +1 -1
- package/components/Stepper/dictionary.js +1 -0
- package/components/Stepper/hooks/useDynamicValidation/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useDynamicValidation/index.js +44 -42
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts +4 -3
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useIsLastVisibleValidStep/index.js +19 -15
- package/components/Stepper/hooks/useStepper/index.d.ts +3 -0
- package/components/Stepper/hooks/useStepper/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useStepper/index.js +12 -8
- package/components/Stepper/hooks/useStepperActions/index.d.ts.map +1 -1
- package/components/Stepper/hooks/useStepperActions/index.js +40 -38
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.d.ts +9 -0
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.d.ts.map +1 -0
- package/components/Stepper/hooks/useStepperLayout/useStepperLayout.js +54 -0
- package/components/Stepper/slots/StepperEnum.d.ts +1 -0
- package/components/Stepper/slots/StepperEnum.d.ts.map +1 -1
- package/components/Stepper/slots/StepperEnum.js +3 -3
- package/components/Stepper/slots/StepperSlot.d.ts +3 -0
- package/components/Stepper/slots/StepperSlot.d.ts.map +1 -1
- package/components/Stepper/slots/StepperSlot.js +21 -17
- package/components/Stepper/subcomponents/ContentArea/index.d.ts +1 -0
- package/components/Stepper/subcomponents/ContentArea/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/ContentArea/index.js +17 -16
- package/components/Stepper/subcomponents/StepArea/index.d.ts +3 -1
- package/components/Stepper/subcomponents/StepArea/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepArea/index.js +32 -29
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts +1 -0
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +20 -20
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts +4 -2
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.d.ts.map +1 -1
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +7 -7
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.d.ts +9 -0
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.d.ts.map +1 -0
- package/components/Stepper/subcomponents/StepperSideList/StepperSideList.js +33 -0
- package/components/Stepper/tests/responsive/fixtures.d.ts +7 -0
- package/components/Stepper/tests/responsive/fixtures.d.ts.map +1 -0
- package/components/Stepper/tests/responsive/observer.d.ts +34 -0
- package/components/Stepper/tests/responsive/observer.d.ts.map +1 -0
- package/components/Stepper/tests/responsive/types.d.ts +27 -0
- package/components/Stepper/tests/responsive/types.d.ts.map +1 -0
- package/components/Stepper/types.d.ts +70 -3
- package/components/Stepper/types.d.ts.map +1 -1
- package/components/WindowBase/icons.d.ts +0 -6
- package/components/WindowBase/icons.d.ts.map +1 -1
- package/components/WindowBase/icons.js +13 -20
- package/components/datagrids/formatters/ColumnDurationFormatter/__testing__/types.d.ts +8 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/__testing__/types.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/index.d.ts +3 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/index.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/types.d.ts +5 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/types.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.d.ts +9 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.d.ts.map +1 -0
- package/components/datagrids/formatters/ColumnDurationFormatter/useColumnDuration.js +14 -0
- package/components/datagrids/formatters/index.d.ts +1 -0
- package/components/datagrids/formatters/index.d.ts.map +1 -1
- package/components/extended/Re-resizable/ResizablePanel.d.ts +4 -0
- package/components/extended/Re-resizable/ResizablePanel.d.ts.map +1 -0
- package/components/extended/Re-resizable/ResizablePanel.js +75 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.d.ts +3 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.d.ts.map +1 -0
- package/components/extended/Re-resizable/ResizablePanel.styles.js +65 -0
- package/components/extended/Re-resizable/constants.d.ts +18 -0
- package/components/extended/Re-resizable/constants.d.ts.map +1 -0
- package/components/extended/Re-resizable/constants.js +25 -0
- package/components/extended/Re-resizable/helpers.d.ts +6 -0
- package/components/extended/Re-resizable/helpers.d.ts.map +1 -0
- package/components/extended/Re-resizable/helpers.js +22 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.d.ts +4 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.d.ts.map +1 -0
- package/components/extended/Re-resizable/hooks/useResizablePanel.js +113 -0
- package/components/extended/Re-resizable/index.d.ts +3 -0
- package/components/extended/Re-resizable/index.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/slots.d.ts +5 -0
- package/components/extended/Re-resizable/slots/slots.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/slots.js +4 -0
- package/components/extended/Re-resizable/slots/styled.d.ts +19 -0
- package/components/extended/Re-resizable/slots/styled.d.ts.map +1 -0
- package/components/extended/Re-resizable/slots/styled.js +10 -0
- package/components/extended/Re-resizable/tests/engineBoundary.d.ts +33 -0
- package/components/extended/Re-resizable/tests/engineBoundary.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/fixtures.d.ts +7 -0
- package/components/extended/Re-resizable/tests/fixtures.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/observerBoundary.d.ts +28 -0
- package/components/extended/Re-resizable/tests/observerBoundary.d.ts.map +1 -0
- package/components/extended/Re-resizable/tests/types.d.ts +7 -0
- package/components/extended/Re-resizable/tests/types.d.ts.map +1 -0
- package/components/extended/Re-resizable/types.d.ts +67 -0
- package/components/extended/Re-resizable/types.d.ts.map +1 -0
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.d.ts.map +1 -1
- package/components/extended/mui/MenuItem/MenuItem.js +13 -15
- package/components/extended/mui/Switch/Switch.styles.d.ts.map +1 -1
- package/components/extended/mui/Switch/Switch.styles.js +39 -27
- package/components/formatters/DurationFormatter/DurationFormatter.d.ts +6 -0
- package/components/formatters/DurationFormatter/DurationFormatter.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/DurationFormatter.js +49 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.d.ts +3 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/DurationFormatter.styles.js +8 -0
- package/components/formatters/DurationFormatter/constants.d.ts +2 -0
- package/components/formatters/DurationFormatter/constants.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/constants.js +4 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.d.ts +4 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/hooks/useDurationFormatter.js +21 -0
- package/components/formatters/DurationFormatter/index.d.ts +4 -0
- package/components/formatters/DurationFormatter/index.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.d.ts +4 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterEnum.js +4 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.d.ts +3 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.d.ts.map +1 -0
- package/components/formatters/DurationFormatter/slots/DurationFormatterSlots.js +12 -0
- package/components/formatters/DurationFormatter/types.d.ts +28 -0
- package/components/formatters/DurationFormatter/types.d.ts.map +1 -0
- package/components/formatters/index.d.ts +1 -0
- package/components/formatters/index.d.ts.map +1 -1
- package/components/hook-form/RHFHelperError/index.d.ts +1 -1
- package/components/hook-form/RHFHelperError/index.d.ts.map +1 -1
- package/components/hook-form/RHFHelperError/index.js +7 -11
- package/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.d.ts.map +1 -1
- package/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.js +12 -8
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +226 -143
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +99 -29
- package/components/hook-form/RHFRadioGroup/constants.d.ts +4 -2
- package/components/hook-form/RHFRadioGroup/constants.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/constants.js +4 -3
- package/components/hook-form/RHFRadioGroup/index.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/index.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/layoutHelpers.d.ts +8 -0
- package/components/hook-form/RHFRadioGroup/layoutHelpers.d.ts.map +1 -0
- package/components/hook-form/RHFRadioGroup/layoutHelpers.js +23 -0
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +3 -0
- package/components/hook-form/RHFRadioGroup/slots/slots.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/slots.js +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +8 -2
- package/components/hook-form/RHFRadioGroup/slots/styled.d.ts.map +1 -1
- package/components/hook-form/RHFRadioGroup/slots/styled.js +40 -26
- package/components/hook-form/RHFRadioGroup/types.d.ts +51 -13
- package/components/hook-form/RHFRadioGroup/types.d.ts.map +1 -1
- package/components/hook-form/RHFSortableList/RHFSortableList.d.ts +5 -0
- package/components/hook-form/RHFSortableList/RHFSortableList.d.ts.map +1 -0
- package/components/hook-form/RHFSortableList/RHFSortableList.js +49 -0
- package/components/hook-form/RHFSortableList/index.d.ts +3 -0
- package/components/hook-form/RHFSortableList/index.d.ts.map +1 -0
- package/components/hook-form/RHFSortableList/types.d.ts +19 -0
- package/components/hook-form/RHFSortableList/types.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/RHFormProvider.d.ts +5 -5
- package/components/hook-form/RHFormProvider/RHFormProvider.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/RHFormProvider.js +107 -60
- package/components/hook-form/RHFormProvider/classes/index.d.ts +5 -0
- package/components/hook-form/RHFormProvider/classes/index.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/classes/index.js +19 -9
- package/components/hook-form/RHFormProvider/classes/types.d.ts +5 -0
- package/components/hook-form/RHFormProvider/classes/types.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/constants.d.ts +7 -0
- package/components/hook-form/RHFormProvider/constants.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/constants.js +9 -0
- package/components/hook-form/RHFormProvider/dictionary.d.ts +15 -0
- package/components/hook-form/RHFormProvider/dictionary.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/dictionary.js +17 -2
- package/components/hook-form/RHFormProvider/dictionaryDefaults.d.ts +32 -0
- package/components/hook-form/RHFormProvider/dictionaryDefaults.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/dictionaryDefaults.js +37 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.d.ts +21 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/hooks/useFormInteractionBoundary.js +56 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.d.ts +25 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/hooks/useGuardedFormMethods.js +29 -0
- package/components/hook-form/RHFormProvider/index.d.ts +1 -1
- package/components/hook-form/RHFormProvider/index.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/styles.d.ts +8 -0
- package/components/hook-form/RHFormProvider/styles.d.ts.map +1 -1
- package/components/hook-form/RHFormProvider/styles.js +81 -5
- package/components/hook-form/RHFormProvider/tests/fixtures.d.ts +10 -0
- package/components/hook-form/RHFormProvider/tests/fixtures.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/tests/interactionFixture.d.ts +4 -0
- package/components/hook-form/RHFormProvider/tests/interactionFixture.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/tests/types.d.ts +23 -0
- package/components/hook-form/RHFormProvider/tests/types.d.ts.map +1 -0
- package/components/hook-form/RHFormProvider/types.d.ts +77 -40
- package/components/hook-form/RHFormProvider/types.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +2 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/contexts/form.d.ts +1 -0
- package/contexts/form.d.ts.map +1 -1
- package/index.js +733 -713
- package/package.json +12 -9
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.d.ts +0 -4
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.d.ts.map +0 -1
- package/components/HoursOfWeekPicker/helpers/copyDay/copyDay.js +0 -6
- package/components/MFLoader/reportTypes.d.ts +0 -19
- package/components/MFLoader/reportTypes.d.ts.map +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CSSProperties, KeyboardEvent, RefObject } from 'react';
|
|
2
|
+
import { Resizable, ResizableProps as UpstreamResizableProps } from 're-resizable';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
5
|
+
import { RESIZABLE_PANEL_KEY_COMPONENT } from './constants';
|
|
6
|
+
import { ResizablePanelSlots } from './slots/slots';
|
|
7
|
+
/** Controlled pixel sizing with the upstream height contract. / Tamaño controlado en píxeles con la altura del vendor. */
|
|
8
|
+
export type ResizablePanelSize = NonNullable<UpstreamResizableProps['size']> & {
|
|
9
|
+
width: number;
|
|
10
|
+
};
|
|
11
|
+
/** Shared right-edge extension of re-resizable. / Extensión compartida del borde derecho de re-resizable. */
|
|
12
|
+
export interface ResizablePanelProps extends Pick<UpstreamResizableProps, 'children' | 'className' | 'bounds' | 'boundsByDirection' | 'onResizeStart' | 'onResize' | 'onResizeStop'> {
|
|
13
|
+
size: ResizablePanelSize;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
maxWidth: number;
|
|
16
|
+
/** All user width requests, including keyboard/reset, use this callback. / Solicitudes de ancho por ratón, teclado y reset. */
|
|
17
|
+
onWidthChange: (width: number) => void;
|
|
18
|
+
/** Accessible name supplied by the consumer's dictionary. / Nombre accesible del diccionario del consumidor. */
|
|
19
|
+
handleLabel: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
resetWidth?: number;
|
|
22
|
+
keyboardStep?: number;
|
|
23
|
+
id?: string;
|
|
24
|
+
dataTestId?: string;
|
|
25
|
+
}
|
|
26
|
+
/** State exposed to themed slots. / Estado disponible para los slots del tema. */
|
|
27
|
+
export interface ResizablePanelOwnerState extends Record<string, unknown> {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
resizing: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ResizablePanelStyledProps extends Record<string, unknown> {
|
|
32
|
+
ownerState: ResizablePanelOwnerState;
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
35
|
+
export type ResizablePanelSlotsType = keyof typeof ResizablePanelSlots;
|
|
36
|
+
export type ResizablePanelStyles = M4LOverridesStyleRules<ResizablePanelSlotsType, typeof RESIZABLE_PANEL_KEY_COMPONENT, Theme>;
|
|
37
|
+
/** Effective pixel limits after parent/window constraints. / Límites efectivos tras las restricciones del contenedor. */
|
|
38
|
+
export interface ResizablePanelLimits {
|
|
39
|
+
min: number;
|
|
40
|
+
max: number;
|
|
41
|
+
}
|
|
42
|
+
/** Geometry inputs independent of React state. / Geometría independiente del estado de React. */
|
|
43
|
+
export interface ResizablePanelBoundsOptions {
|
|
44
|
+
element: HTMLElement;
|
|
45
|
+
bounds: ResizablePanelProps['bounds'];
|
|
46
|
+
minWidth: number;
|
|
47
|
+
maxWidth: number;
|
|
48
|
+
}
|
|
49
|
+
/** Typed interaction seam used by the rendering component. / Contrato de interacción del componente visual. */
|
|
50
|
+
export interface ResizablePanelController {
|
|
51
|
+
engineRef: RefObject<Resizable | null>;
|
|
52
|
+
handleRef: RefObject<HTMLDivElement | null>;
|
|
53
|
+
limits: ResizablePanelLimits;
|
|
54
|
+
width: number;
|
|
55
|
+
ownerState: ResizablePanelOwnerState;
|
|
56
|
+
onResizeStart: NonNullable<UpstreamResizableProps['onResizeStart']>;
|
|
57
|
+
onResize: NonNullable<UpstreamResizableProps['onResize']>;
|
|
58
|
+
onResizeStop: NonNullable<UpstreamResizableProps['onResizeStop']>;
|
|
59
|
+
onHandleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
60
|
+
onReset: () => void;
|
|
61
|
+
trackGrip: (clientY: number) => void;
|
|
62
|
+
}
|
|
63
|
+
/** Engine-owned positioning only; visual styles belong to themed slots. / Posición del motor; estilos visuales en slots. */
|
|
64
|
+
export type ResizablePanelHandleStyles = {
|
|
65
|
+
right: CSSProperties;
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/Re-resizable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,0HAA0H;AAC1H,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjG,6GAA6G;AAC7G,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,sBAAsB,EACtE,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,mBAAmB,GAAG,eAAe,GAAG,UAAU,GAAG,cAAc,CAAC;IAC1G,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,+HAA+H;IAC/H,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gHAAgH;IAChH,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kFAAkF;AAClF,MAAM,WAAW,wBAAyB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvE,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAAG,UAAU,EAAE,wBAAwB,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CAAE;AACjI,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,uBAAuB,EAAE,OAAO,6BAA6B,EAAE,KAAK,CAAC,CAAC;AAEhI,yHAAyH;AACzH,MAAM,WAAW,oBAAoB;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE;AAEnE,iGAAiG;AACjG,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,+GAA+G;AAC/G,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACvC,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,wBAAwB,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC;IACpE,QAAQ,EAAE,WAAW,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1D,YAAY,EAAE,WAAW,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,CAAC;IAClE,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,4HAA4H;AAC5H,MAAM,MAAM,0BAA0B,GAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/extended/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/extended/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAsB,aAAa,EAAE,MAAM,SAAS,CAAC;AAgB5D;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAsB,aAAa,EAAE,MAAM,SAAS,CAAC;AAgB5D;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,qDAuK5C,CAAC"}
|
|
@@ -13,11 +13,11 @@ function X(o) {
|
|
|
13
13
|
}
|
|
14
14
|
const le = (o) => {
|
|
15
15
|
const {
|
|
16
|
-
startIcon:
|
|
17
|
-
endIcon:
|
|
16
|
+
startIcon: v,
|
|
17
|
+
endIcon: x,
|
|
18
18
|
startAdornment: S,
|
|
19
19
|
endAdornment: f,
|
|
20
|
-
label:
|
|
20
|
+
label: g,
|
|
21
21
|
description: l,
|
|
22
22
|
value: w,
|
|
23
23
|
skeletonWidth: C = "100%",
|
|
@@ -26,19 +26,19 @@ const le = (o) => {
|
|
|
26
26
|
disabled: d = !1,
|
|
27
27
|
size: D = "medium",
|
|
28
28
|
checked: y = !1,
|
|
29
|
-
checkable:
|
|
29
|
+
checkable: c = !1,
|
|
30
30
|
className: N,
|
|
31
31
|
dataTestId: T,
|
|
32
32
|
...W
|
|
33
|
-
} = o, L = S !== void 0 ? S :
|
|
33
|
+
} = o, L = S !== void 0 ? S : v, R = f !== void 0 ? f : x, { currentSize: u } = U(D), j = P(), n = u === "small" || u === "medium" ? u : "medium", e = z(() => ({
|
|
34
34
|
size: n,
|
|
35
35
|
disabled: d,
|
|
36
36
|
selected: m,
|
|
37
37
|
color: M,
|
|
38
|
-
checkable:
|
|
38
|
+
checkable: c,
|
|
39
39
|
checked: y,
|
|
40
40
|
hasDescription: l != null
|
|
41
|
-
}), [n, d, m, M,
|
|
41
|
+
}), [n, d, m, M, c, y, l]), h = z(() => (s, A, a) => {
|
|
42
42
|
if (!s || typeof s == "boolean" || typeof s == "number")
|
|
43
43
|
return null;
|
|
44
44
|
if (typeof s == "string")
|
|
@@ -65,12 +65,12 @@ const le = (o) => {
|
|
|
65
65
|
return /* @__PURE__ */ r(_, { ownerState: { ...e }, children: i });
|
|
66
66
|
}
|
|
67
67
|
if (Q(i)) {
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
68
|
+
const p = i.props;
|
|
69
|
+
if (p.color === void 0)
|
|
70
70
|
return /* @__PURE__ */ r(
|
|
71
71
|
E,
|
|
72
72
|
{
|
|
73
|
-
...
|
|
73
|
+
...p,
|
|
74
74
|
ownerState: { ...e },
|
|
75
75
|
selected: m,
|
|
76
76
|
enabledSelected: !0,
|
|
@@ -78,9 +78,7 @@ const le = (o) => {
|
|
|
78
78
|
size: n,
|
|
79
79
|
disabled: d,
|
|
80
80
|
instaceDataTestId: A,
|
|
81
|
-
className: I(
|
|
82
|
-
[t.iconExternal]: c.originalColor
|
|
83
|
-
})
|
|
81
|
+
className: I(p.className, a, t.menuItemIcon)
|
|
84
82
|
}
|
|
85
83
|
);
|
|
86
84
|
}
|
|
@@ -112,7 +110,7 @@ const le = (o) => {
|
|
|
112
110
|
className: I(N, t.root),
|
|
113
111
|
"data-testid": T || "MenuItemRoot",
|
|
114
112
|
children: [
|
|
115
|
-
|
|
113
|
+
c && /* @__PURE__ */ r(
|
|
116
114
|
B,
|
|
117
115
|
{
|
|
118
116
|
src: O,
|
|
@@ -130,7 +128,7 @@ const le = (o) => {
|
|
|
130
128
|
variant: e.hasDescription ? "bodyDens" : "bodyStandard",
|
|
131
129
|
size: n,
|
|
132
130
|
"data-testid": "MenuItemLabel",
|
|
133
|
-
children:
|
|
131
|
+
children: g
|
|
134
132
|
}
|
|
135
133
|
),
|
|
136
134
|
e.hasDescription ? /* @__PURE__ */ r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,YAAY,EAAE,YAmR1B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { getSizeStyles as o } from "../../../../utils/getSizeStyles/getSizeStyle
|
|
|
3
3
|
const d = {
|
|
4
4
|
/** Root container styles: flex row, centered, with gap between thumb and label. */
|
|
5
5
|
root: ({ theme: a, ownerState: i }) => {
|
|
6
|
-
const r = i?.variant || "text",
|
|
6
|
+
const r = i?.variant || "text", t = !!i?.groupPosition;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
@@ -17,8 +17,8 @@ const d = {
|
|
|
17
17
|
maxWidth: "100%",
|
|
18
18
|
minWidth: 0,
|
|
19
19
|
cursor: i?.disabled ? "default" : "pointer",
|
|
20
|
-
borderRadius: r === "text" ||
|
|
21
|
-
...!
|
|
20
|
+
borderRadius: r === "text" || t ? a.vars.size.borderRadius.r1 : a.vars.size.borderRadius.r2,
|
|
21
|
+
...!t && r !== "text" && {
|
|
22
22
|
border: `1px solid ${a.vars.palette.border.disabled}`,
|
|
23
23
|
...r === "contained" && {
|
|
24
24
|
backgroundColor: a.vars.palette.default.enabledOpacity
|
|
@@ -33,13 +33,13 @@ const d = {
|
|
|
33
33
|
},
|
|
34
34
|
/** MUI Switch element styles: track, thumb, hover/active/focus rings, and checked/disabled states. */
|
|
35
35
|
muiSwitch: ({ theme: a, ownerState: i }) => {
|
|
36
|
-
const r = i?.error,
|
|
36
|
+
const r = i?.error, t = i?.size || "medium", { height: e } = o(a, t, "action");
|
|
37
37
|
return {
|
|
38
38
|
overflow: "visible",
|
|
39
39
|
padding: 0,
|
|
40
40
|
// Root = track: w = action × 1.133 (27.2/24), h = action × 0.667 (16/24)
|
|
41
|
-
width: `calc(${
|
|
42
|
-
height: `calc(${
|
|
41
|
+
width: `calc(${e} * 1.133)`,
|
|
42
|
+
height: `calc(${e} * 0.667)`,
|
|
43
43
|
// Track — pill completa, llena el root
|
|
44
44
|
"& .MuiSwitch-track": {
|
|
45
45
|
width: "100%",
|
|
@@ -53,11 +53,20 @@ const d = {
|
|
|
53
53
|
// SwitchBase — action×action, centrado sobre track (overflow -0.167 × action = -4px)
|
|
54
54
|
"& .MuiSwitch-switchBase": {
|
|
55
55
|
padding: 0,
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
58
|
-
top: `calc(${
|
|
59
|
-
left: `calc(${
|
|
56
|
+
width: e,
|
|
57
|
+
height: e,
|
|
58
|
+
top: `calc(${e} * -0.167)`,
|
|
59
|
+
left: `calc(${e} * -0.167)`,
|
|
60
60
|
backgroundColor: "transparent",
|
|
61
|
+
// Only the thumb moves; the base and its native hit target stay on the track.
|
|
62
|
+
// Solo se mueve el círculo; la base y su input nativo permanecen sobre la pista.
|
|
63
|
+
transform: "none",
|
|
64
|
+
// Keep the invisible input on the track instead of MUI's expanded 300% hit area.
|
|
65
|
+
// Mantiene el input invisible sobre la pista en vez del área de clic ampliada al 300% de MUI.
|
|
66
|
+
"& .MuiSwitch-input": {
|
|
67
|
+
left: `calc(${e} * 0.167)`,
|
|
68
|
+
width: `calc(${e} * 1.133)`
|
|
69
|
+
},
|
|
61
70
|
// Hover — ring via box-shadow en el thumb (unchecked)
|
|
62
71
|
"&:hover .MuiSwitch-thumb": {
|
|
63
72
|
boxShadow: `0px 0px 0px 6px ${r ? a.vars.palette.error.hoverOpacity : a.vars.palette.default.hoverOpacity}, 0px 1px 4px 0px rgba(0, 0, 0, 0.15)`
|
|
@@ -70,9 +79,10 @@ const d = {
|
|
|
70
79
|
"&.Mui-focusVisible .MuiSwitch-thumb": {
|
|
71
80
|
boxShadow: `0px 0px 0px 2px ${a.vars.palette.primary.focusVisible}, 0px 1px 4px 0px rgba(0, 0, 0, 0.15)`
|
|
72
81
|
},
|
|
73
|
-
// Checked: translateX 0.471 × action (11.3/24)
|
|
82
|
+
// Checked thumb: translateX 0.471 × action (11.3/24), preserving the stationary input.
|
|
83
|
+
// Círculo activo: translateX 0.471 × action (11.3/24), manteniendo fijo el input.
|
|
74
84
|
"&.Mui-checked": {
|
|
75
|
-
transform:
|
|
85
|
+
transform: "none",
|
|
76
86
|
// Track — (primary/error)ownerstate/palettecolor/selectedopacity
|
|
77
87
|
"& + .MuiSwitch-track": {
|
|
78
88
|
backgroundColor: r ? a.vars.palette.error.selectedOpacity : a.vars.palette.primary.selectedOpacity,
|
|
@@ -81,6 +91,7 @@ const d = {
|
|
|
81
91
|
},
|
|
82
92
|
// Thumb checked — var(--primary-owner-state-palette-color-enabled, #0064FF)
|
|
83
93
|
"& .MuiSwitch-thumb": {
|
|
94
|
+
transform: `translateX(calc(${e} * 0.471))`,
|
|
84
95
|
backgroundColor: r ? a.vars.palette.error.enabled : a.vars.palette.primary.enabled,
|
|
85
96
|
boxShadow: "inset 0px 2.4px 3.2px 0px rgba(255, 255, 255, 0.16)",
|
|
86
97
|
filter: "drop-shadow(0px 1.6px 3.2px rgba(0, 0, 0, 0.16))"
|
|
@@ -116,13 +127,14 @@ const d = {
|
|
|
116
127
|
// unchecked: text.secondary token | checked: palette.primary.enabled (#0064FF)
|
|
117
128
|
// Posición unchecked: 1.6px desde borde track | checked: ~13px desde borde izq
|
|
118
129
|
"& .MuiSwitch-thumb": {
|
|
119
|
-
width: `calc(${
|
|
120
|
-
height: `calc(${
|
|
121
|
-
margin: `calc(${
|
|
130
|
+
width: `calc(${e} * 0.533)`,
|
|
131
|
+
height: `calc(${e} * 0.533)`,
|
|
132
|
+
margin: `calc(${e} * 0.233)`,
|
|
122
133
|
backgroundColor: a.vars.palette.text.secondary,
|
|
123
134
|
borderRadius: "50%",
|
|
124
135
|
boxShadow: "inset 0px 2.4px 3.2px 0px rgba(255, 255, 255, 0.16)",
|
|
125
|
-
filter: "drop-shadow(0px 1.6px 3.2px rgba(0, 0, 0, 0.16))"
|
|
136
|
+
filter: "drop-shadow(0px 1.6px 3.2px rgba(0, 0, 0, 0.16))",
|
|
137
|
+
transition: a.transitions.create("transform", { duration: a.transitions.duration.shortest })
|
|
126
138
|
},
|
|
127
139
|
...i?.disabled && {
|
|
128
140
|
pointerEvents: "none"
|
|
@@ -192,35 +204,35 @@ const d = {
|
|
|
192
204
|
}),
|
|
193
205
|
/** Skeleton loading state styles for the switch track and optional label. */
|
|
194
206
|
skeleton: ({ theme: a, ownerState: i }) => {
|
|
195
|
-
const r = i?.size || "medium", { height:
|
|
207
|
+
const r = i?.size || "medium", { height: t } = o(a, r, "action");
|
|
196
208
|
return {
|
|
197
209
|
borderRadius: a.vars.size.borderRadius.r1,
|
|
198
210
|
backgroundColor: a.vars.palette?.skeleton.default,
|
|
199
211
|
// Label skeleton: ancho fijo aproximado al texto, alto = body typography
|
|
200
212
|
"&.switchSkeletonLabel": {
|
|
201
|
-
width: `calc(${
|
|
202
|
-
height: `calc(${
|
|
213
|
+
width: `calc(${t} * 2.5)`,
|
|
214
|
+
height: `calc(${t} * 0.467)`,
|
|
203
215
|
borderRadius: a.vars.size.borderRadius.r1
|
|
204
216
|
},
|
|
205
217
|
"&.switchSkeletonDescription": {
|
|
206
|
-
width: `calc(${
|
|
207
|
-
height: `calc(${
|
|
218
|
+
width: `calc(${t} * 3.75)`,
|
|
219
|
+
height: `calc(${t} * 0.4)`,
|
|
208
220
|
borderRadius: a.vars.size.borderRadius.r1
|
|
209
221
|
},
|
|
210
222
|
"&.switchSkeletonEndLabel": {
|
|
211
|
-
width: `calc(${
|
|
212
|
-
height: `calc(${
|
|
223
|
+
width: `calc(${t} * 1.5)`,
|
|
224
|
+
height: `calc(${t} * 0.467)`,
|
|
213
225
|
borderRadius: a.vars.size.borderRadius.r1
|
|
214
226
|
},
|
|
215
227
|
"&.switchSkeletonIcon": {
|
|
216
|
-
width: `calc(${
|
|
217
|
-
height: `calc(${
|
|
228
|
+
width: `calc(${t})`,
|
|
229
|
+
height: `calc(${t})`,
|
|
218
230
|
borderRadius: a.vars.size.borderRadius.r2
|
|
219
231
|
},
|
|
220
232
|
// Switch skeleton: mismas proporciones que el track real (action × 1.133 × 0.667)
|
|
221
233
|
[`&.${s.skeleton}`]: {
|
|
222
|
-
width: `calc(${
|
|
223
|
-
height: `calc(${
|
|
234
|
+
width: `calc(${t} * 1.133)`,
|
|
235
|
+
height: `calc(${t} * 0.667)`,
|
|
224
236
|
borderRadius: "80px"
|
|
225
237
|
}
|
|
226
238
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { DurationFormatterRootStyled } from './slots/DurationFormatterSlots';
|
|
3
|
+
import { DurationFormatterProps } from './types';
|
|
4
|
+
/** Display a stored duration using shared units, localization, and empty-value behavior. */
|
|
5
|
+
export declare function DurationFormatter<T extends ElementType = typeof DurationFormatterRootStyled>(props: DurationFormatterProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=DurationFormatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DurationFormatter.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/formatters/DurationFormatter/DurationFormatter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAA+B,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEnF,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,OAAO,2BAA2B,EAC1F,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,oDAiDjC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as r, Fragment as N } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Fragment as T } from "react";
|
|
3
|
+
import g from "clsx";
|
|
4
|
+
import { getComponentSlotRoot as y } from "../../../utils/getComponentSlotRoot.js";
|
|
5
|
+
import { getPropDataTestId as R } from "../../../test/getNameDataTestId.js";
|
|
6
|
+
import { DURATION_FORMATTER_KEY_COMPONENT as i } from "./constants.js";
|
|
7
|
+
import { useDurationFormatter as S } from "./hooks/useDurationFormatter.js";
|
|
8
|
+
import { DurationFormatterSlots as h } from "./slots/DurationFormatterEnum.js";
|
|
9
|
+
import { DurationFormatterRootStyled as m } from "./slots/DurationFormatterSlots.js";
|
|
10
|
+
function j(s) {
|
|
11
|
+
const {
|
|
12
|
+
value: p,
|
|
13
|
+
inputUnit: c,
|
|
14
|
+
formatStyle: e = "compact",
|
|
15
|
+
defaultValue: l,
|
|
16
|
+
locale: u,
|
|
17
|
+
Component: o = m,
|
|
18
|
+
componentProps: a,
|
|
19
|
+
dataTestId: f,
|
|
20
|
+
className: d,
|
|
21
|
+
color: D,
|
|
22
|
+
size: F = "medium"
|
|
23
|
+
} = s, t = S({ inputUnit: c, style: e, defaultValue: l, locale: u })(p), C = { formatStyle: e };
|
|
24
|
+
if (o === T)
|
|
25
|
+
return /* @__PURE__ */ r(N, { children: t });
|
|
26
|
+
const n = {
|
|
27
|
+
...a,
|
|
28
|
+
className: g(
|
|
29
|
+
y(i),
|
|
30
|
+
a?.className,
|
|
31
|
+
d
|
|
32
|
+
),
|
|
33
|
+
...R(i, h.root, f)
|
|
34
|
+
};
|
|
35
|
+
return o === m ? /* @__PURE__ */ r(
|
|
36
|
+
m,
|
|
37
|
+
{
|
|
38
|
+
...n,
|
|
39
|
+
variant: "body",
|
|
40
|
+
size: F,
|
|
41
|
+
color: D,
|
|
42
|
+
ownerState: C,
|
|
43
|
+
children: t
|
|
44
|
+
}
|
|
45
|
+
) : /* @__PURE__ */ r(o, { ...n, children: t });
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
j as DurationFormatter
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DurationFormatter.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/formatters/DurationFormatter/DurationFormatter.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,uBAAuB,EAAE,uBAIrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/formatters/DurationFormatter/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormatDurationOptions } from '@m4l/core';
|
|
2
|
+
/** Return a stable duration formatter that follows the effective user locale. */
|
|
3
|
+
export declare function useDurationFormatter(options?: FormatDurationOptions): (value: number | null | undefined) => string;
|
|
4
|
+
//# sourceMappingURL=useDurationFormatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDurationFormatter.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/formatters/DurationFormatter/hooks/useDurationFormatter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,WAU5D,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,CAQ7C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useCallback as l } from "react";
|
|
2
|
+
import { useUserPreferences as s, formatDuration as u } from "@m4l/core";
|
|
3
|
+
function i(e = {}) {
|
|
4
|
+
const { locale: a } = s(), {
|
|
5
|
+
inputUnit: o = "seconds",
|
|
6
|
+
style: r = "compact",
|
|
7
|
+
defaultValue: t = "-"
|
|
8
|
+
} = e, c = e.locale ?? a ?? "en-US";
|
|
9
|
+
return l(
|
|
10
|
+
(n) => u(n, {
|
|
11
|
+
inputUnit: o,
|
|
12
|
+
style: r,
|
|
13
|
+
defaultValue: t,
|
|
14
|
+
locale: c
|
|
15
|
+
}),
|
|
16
|
+
[o, r, t, c]
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as useDurationFormatter
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DurationFormatter } from './DurationFormatter';
|
|
2
|
+
export { useDurationFormatter } from './hooks/useDurationFormatter';
|
|
3
|
+
export type { DurationFormatterProps, DurationFormatterOwnerState, DurationFormatterSlotsType, DurationFormatterStyles, } from './types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/formatters/DurationFormatter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DurationFormatterEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/formatters/DurationFormatter/slots/DurationFormatterEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DurationFormatterStyledProps } from '../types';
|
|
2
|
+
export declare const DurationFormatterRootStyled: 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> & DurationFormatterStyledProps, {}, {}>;
|
|
3
|
+
//# sourceMappingURL=DurationFormatterSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DurationFormatterSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/formatters/DurationFormatter/slots/DurationFormatterSlots.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAG7D,eAAO,MAAM,2BAA2B,k0NAGsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Typography as o } from "@m4l/base";
|
|
2
|
+
import { styled as t } from "@mui/material/styles";
|
|
3
|
+
import { DURATION_FORMATTER_KEY_COMPONENT as r } from "../constants.js";
|
|
4
|
+
import { durationFormatterStyles as m } from "../DurationFormatter.styles.js";
|
|
5
|
+
import { DurationFormatterSlots as a } from "./DurationFormatterEnum.js";
|
|
6
|
+
const n = t(o, {
|
|
7
|
+
name: r,
|
|
8
|
+
slot: a.root
|
|
9
|
+
})(m.root);
|
|
10
|
+
export {
|
|
11
|
+
n as DurationFormatterRootStyled
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
+
import { DurationFormatStyle, FormatDurationOptions } from '@m4l/core';
|
|
3
|
+
import { TypographyProps } from '@m4l/base';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
6
|
+
import { DURATION_FORMATTER_KEY_COMPONENT } from './constants';
|
|
7
|
+
import { DurationFormatterSlots } from './slots/DurationFormatterEnum';
|
|
8
|
+
import { DurationFormatterRootStyled } from './slots/DurationFormatterSlots';
|
|
9
|
+
/** Presentation props for a stored numeric duration, independent of the current time. */
|
|
10
|
+
export interface DurationFormatterProps<T extends ElementType = typeof DurationFormatterRootStyled> extends Omit<FormatDurationOptions, 'style'>, Pick<TypographyProps, 'color' | 'size'> {
|
|
11
|
+
value?: number | null;
|
|
12
|
+
formatStyle?: DurationFormatStyle;
|
|
13
|
+
Component?: T;
|
|
14
|
+
componentProps?: Omit<ComponentPropsWithoutRef<T>, 'ownerState' | 'children'>;
|
|
15
|
+
dataTestId?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Presentation state available to duration formatter theme overrides. */
|
|
19
|
+
export interface DurationFormatterOwnerState extends Record<string, unknown> {
|
|
20
|
+
formatStyle: DurationFormatStyle;
|
|
21
|
+
}
|
|
22
|
+
/** Require typed duration state while accepting the shared override interpolation props. */
|
|
23
|
+
export interface DurationFormatterStyledProps extends Record<string, unknown> {
|
|
24
|
+
ownerState: DurationFormatterOwnerState;
|
|
25
|
+
}
|
|
26
|
+
export type DurationFormatterSlotsType = keyof typeof DurationFormatterSlots;
|
|
27
|
+
export type DurationFormatterStyles = M4LOverridesStyleRules<DurationFormatterSlotsType, typeof DURATION_FORMATTER_KEY_COMPONENT, Theme>;
|
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/formatters/DurationFormatter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAElF,yFAAyF;AACzF,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,WAAW,GAAG,OAAO,2BAA2B,CAChG,SAAQ,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,MAAM,CAAC;IACrF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,cAAc,CAAC,EAAE,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC,CAAC;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0EAA0E;AAC1E,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1E,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED,4FAA4F;AAC5F,MAAM,WAAW,4BAA6B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3E,UAAU,EAAE,2BAA2B,CAAC;CACzC;AAED,MAAM,MAAM,0BAA0B,GAAG,MAAM,OAAO,sBAAsB,CAAC;AAE7E,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAC1D,0BAA0B,EAC1B,OAAO,gCAAgC,EACvC,KAAK,CACN,CAAC"}
|
|
@@ -8,6 +8,7 @@ export { useFormatPeriod, PeriodFormatter, } from './PeriodFormatter/PeriodForma
|
|
|
8
8
|
export { PriceFormatter, getFormatPrice, } from './PriceFormatter/PriceFormatter';
|
|
9
9
|
export { NumberFormatter, getFormatNumber, } from './NumberFormatter/NumberFormatter';
|
|
10
10
|
export * from './DistanceToNowFormatter';
|
|
11
|
+
export * from './DurationFormatter';
|
|
11
12
|
export type { UncertaintyRange } from './UncertaintyFormatter/types';
|
|
12
13
|
export { TagsFormatter } from './TagsFormatter';
|
|
13
14
|
export { ColorFormatter } from './ColorFormatter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,cAAc,GACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,cAAc,GACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export type HelperErrorProps = {
|
|
|
2
2
|
name: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Display an existing form error without registering or validating its field.
|
|
6
6
|
*/
|
|
7
7
|
export declare function RHFHelperError(props: HelperErrorProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/hook-form/RHFHelperError/index.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/hook-form/RHFHelperError/index.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,2DASrD"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useFormContext as
|
|
3
|
-
import { HelperError as
|
|
4
|
-
function
|
|
5
|
-
const { name:
|
|
6
|
-
|
|
7
|
-
control: t,
|
|
8
|
-
rules: { required: !0 }
|
|
9
|
-
});
|
|
10
|
-
return r?.error?.message ? /* @__PURE__ */ s(l, { message: r?.error?.message }) : null;
|
|
1
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as a, useFormState as c } from "react-hook-form";
|
|
3
|
+
import { HelperError as f } from "../../HelperError/HelperError.js";
|
|
4
|
+
function u(o) {
|
|
5
|
+
const { name: r } = o, { control: t, getFieldState: m } = a(), s = c({ control: t, name: r }), { error: e } = m(r, s);
|
|
6
|
+
return e?.message ? /* @__PURE__ */ n(f, { message: e.message }) : null;
|
|
11
7
|
}
|
|
12
8
|
export {
|
|
13
|
-
|
|
9
|
+
u as RHFHelperError
|
|
14
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RHFHoursOfWeekPicker.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RHFHoursOfWeekPicker.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/hook-form/RHFHoursOfWeekPicker/RHFHoursOfWeekPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAiB3F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,sLAA4E,CAAC"}
|