@m4l/components 9.1.151 → 9.2.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/.storybook/utils/getStylesColorsByMode.d.ts +116 -116
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
- package/components/AppBar/slots/AppBarSlots.d.ts +2 -2
- package/components/Chip/ChipStyles.js +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/slots/ColorSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +3 -0
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DynamicFilter/dictionary.js +12 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +4 -4
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -7
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/dictionary.js +6 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.js +2 -2
- package/components/DynamicSort/store/DynamicSortContext.js +1 -7
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/Pager/Pager.styles.js +8 -0
- package/components/Pager/dicctionary.js +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/index.d.ts +0 -8
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +14 -42
- package/components/WindowConfirm/index.d.ts +0 -8
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +13 -39
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions/useHeaderActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow/useWindow.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +15 -15
- package/components/areas/contexts/AreasContext/store.js +3 -3
- package/components/areas/icons.js +8 -0
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +3 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.d.ts +2 -2
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Autocomplete/Autocomplete.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -4
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +3 -3
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +5 -1
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TabContent/classes/index.js +1 -1
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsProvider/hooks/useHeaderActionsPopups/useHeaderActionsPopups.d.ts +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.d.ts +1 -1
- package/components/popups/components/PopupsViewer/icons.js +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useDataGridPersistence/constants.d.ts +3 -0
- package/hooks/useDataGridPersistence/constants.js +6 -0
- package/hooks/useDataGridPersistence/helpers.d.ts +5 -0
- package/hooks/useDataGridPersistence/helpers.js +9 -0
- package/hooks/useDataGridPersistence/index.d.ts +1 -0
- package/hooks/useDataGridPersistence/types.d.ts +3 -0
- package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +9 -0
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +29 -0
- package/hooks/useDynamicFilterAndSort/constants.d.ts +2 -0
- package/hooks/useDynamicFilterAndSort/constants.js +5 -1
- package/hooks/useDynamicFilterAndSort/helpers.d.ts +4 -0
- package/hooks/useDynamicFilterAndSort/helpers.js +9 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +5 -2
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +27 -9
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +24 -45
- package/package.json +1 -1
- package/storybook/components/AccountPopover/AccountPopover.stories.d.ts +11 -0
- package/storybook/components/Areas/AreasAdmin/AreasAdmin.stories.d.ts +8 -0
- package/storybook/components/Areas/AreasViewer/AreasViewr.stories.d.ts +7 -0
- package/storybook/components/Areas/AreasViewer/moks/mokData.d.ts +14 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/ClientsHeaderActions.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/UsersHeaderActions.d.ts +4 -0
- package/storybook/components/Areas/AreasViewer/subcomponents/WithExtendedContainer.d.ts +5 -0
- package/storybook/components/Areas/AreasViewerWithNetwork/AreasViewerWithNetwork.stories.d.ts +7 -0
- package/storybook/components/Areas/AreasViewerWithNetwork/moks/mokData.d.ts +14 -0
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/ClientsHeaderActions.d.ts +4 -0
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/UsersHeaderActions.d.ts +4 -0
- package/storybook/components/Areas/AreasViewerWithNetwork/subcomponents/WithExtendedContainer.d.ts +5 -0
- package/storybook/components/Chip/Chip.stories.d.ts +33 -0
- package/storybook/components/Color/Color.stories.d.ts +14 -0
- package/storybook/components/DataGrid/DataGrid.stories.d.ts +30 -0
- package/storybook/components/DataGrid/helpers/getRows.d.ts +5 -0
- package/storybook/components/DataGrid/helpers/icons.d.ts +3 -0
- package/storybook/components/DataGrid/helpers/types.d.ts +59 -0
- package/storybook/components/DataGrid/helpers/useColumns.d.ts +7 -0
- package/storybook/components/DataGrid/helpers/useSeed.d.ts +8 -0
- package/storybook/components/DataGrid/subcomponents/DataGridRender.d.ts +13 -0
- package/storybook/components/DragResizeWindow/stories/DragResizeWindow.stories.d.ts +7 -0
- package/storybook/components/DragResizeWindow/stories/constants.d.ts +3 -0
- package/storybook/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +4 -0
- package/storybook/components/DragResizeWindow/stories/subcomponents/WithExtendedContainer.d.ts +5 -0
- package/storybook/components/DragResizeWindow/stories/types.d.ts +3 -0
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +29 -0
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +25 -0
- package/storybook/components/HelperError/HelperError.stories.d.ts +9 -0
- package/storybook/components/Icon/Icon.stories.d.ts +21 -0
- package/storybook/components/Label/Label.stories.d.ts +16 -0
- package/storybook/components/LanguagePopover/LanguagePopover.stories.d.ts +17 -0
- package/storybook/components/LanguagePopover/moks/mokData.d.ts +4 -0
- package/storybook/components/LoadingError/Loadingerror.stories.d.ts +9 -0
- package/storybook/components/MenuActions/MenuActions.stories.d.ts +72 -0
- package/storybook/components/ModalDialog/ModalDialog.stories.d.ts +8 -0
- package/storybook/components/ModalDialog/subcomponent/WithExtendedContainer.d.ts +33 -0
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +8 -0
- package/storybook/components/NumberInput/NumberInput.default.stories.d.ts +17 -0
- package/storybook/components/PDFViewer/PDFViewer.stories.d.ts +9 -0
- package/storybook/components/Pager/Pager.stories.d.ts +21 -0
- package/storybook/components/Pager/subcomopnents/WithContextDataProvider.d.ts +4 -0
- package/storybook/components/PopupsViewer/basic.stories.d.ts +6 -0
- package/storybook/components/PopupsViewer/dictionary.d.ts +1 -0
- package/storybook/components/PopupsViewer/subcomponents/PopupActions.d.ts +4 -0
- package/storybook/components/PopupsViewer/subcomponents/PopupContentExample.d.ts +4 -0
- package/storybook/components/PopupsViewer/subcomponents/WithExtendedPopupsContainer.d.ts +5 -0
- package/storybook/components/PopupsViewer/subcomponents/initialPopups.d.ts +6 -0
- package/storybook/components/PopupsViewer/types.d.ts +3 -0
- package/storybook/components/PropertyValue/PropertyValue.stories.d.ts +61 -0
- package/storybook/components/SideBar/SideBar.stories.d.ts +18 -0
- package/storybook/components/SideBar/data/menuData.d.ts +2 -0
- package/storybook/components/SideBar/subcomponents/SibarDecorator.d.ts +3 -0
- package/storybook/components/ToastContainer/ToastContainer.stories.d.ts +47 -0
- package/storybook/components/WindowBase/subcomponents/WithContextWindowToolsProvider.d.ts +5 -0
- package/storybook/components/WindowBase/windowBase.stories.d.ts +12 -0
- package/storybook/components/WindowConfirm/windowConfirm.stories.d.ts +8 -0
- package/storybook/components/appBar/AppBar.stories.d.ts +9 -0
- package/storybook/components/commonActions/components/ActionCancel/ActionCancel.stories.d.ts +22 -0
- package/storybook/components/commonActions/components/ActionFormCancel/ActionFormCancel.stories.d.ts +6 -0
- package/storybook/components/commonActions/components/ActionFormCancel/WindowToolsMFProvider.d.ts +5 -0
- package/storybook/components/commonActions/components/ActionFormIntro/ActionFormIntro.stories.d.ts +14 -0
- package/storybook/components/commonActions/components/ActionIntro/ActionIntro.stories.d.ts +22 -0
- package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts +13 -0
- package/storybook/components/extended/React-Router-Dom/NavLink/NavLInk.stories.d.ts +16 -0
- package/storybook/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.stories.d.ts +9 -0
- package/storybook/components/extended/React-Splitter-Layout/SplitLayout.stories.d.ts +13 -0
- package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +25 -0
- package/storybook/components/extended/mui/Autocomplete/AutoComple.stories.d.ts +20 -0
- package/storybook/components/extended/mui/Badge/Badge.stories.d.ts +33 -0
- package/storybook/components/extended/mui/Button/Button.stories.d.ts +26 -0
- package/storybook/components/extended/mui/CheckBox/CheckBox.stories.d.ts +19 -0
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.default.stories.d.ts +14 -0
- package/storybook/components/extended/mui/CircularProgress/CircularProgress.sizes.stories.d.ts +18 -0
- package/storybook/components/extended/mui/DataTimePicker/DataTimePicker.stories.d.ts +21 -0
- package/storybook/components/extended/mui/Dialog/Dialog.stories.d.ts +7 -0
- package/storybook/components/extended/mui/Dialog/subcomponents/ContentExample.d.ts +29 -0
- package/storybook/components/extended/mui/Dialog/subcomponents/WithExtendedContainer.d.ts +34 -0
- package/storybook/components/extended/mui/Divider/Divider.stories.d.ts +15 -0
- package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +40 -0
- package/storybook/components/extended/mui/LoadingButton/LoadingButton.stories.d.ts +42 -0
- package/storybook/components/extended/mui/MenuDivider/MenuDivider.stories.d.ts +25 -0
- package/storybook/components/extended/mui/MenuItem/MenuItem.stories.d.ts +65 -0
- package/storybook/components/extended/mui/Popover/Popover.stories.d.ts +14 -0
- package/storybook/components/extended/mui/Popover/WithPopoverContext.d.ts +11 -0
- package/storybook/components/extended/mui/Popover/types.d.ts +11 -0
- package/storybook/components/extended/mui/Popper/Popper.stories.d.ts +9 -0
- package/storybook/components/extended/mui/Select/Select.stories.d.ts +38 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Circular/skeleton.defaultCircular.stories.d.ts +14 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rectangular/skeleton.defaultRectangular.stories.d.ts +14 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Rounded/skeleton.defaultRounded.stories.d.ts +15 -0
- package/storybook/components/extended/mui/Skeleton/Colors/Default/Variants/Text/skeleton.defaultText.stories.d.ts +15 -0
- package/storybook/components/extended/mui/Stack/Stack.stories.d.ts +13 -0
- package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +57 -0
- package/storybook/components/extended/mui/Tabs/Tabs.stories.d.ts +8 -0
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +13 -0
- package/storybook/components/extended/mui/TimePicker/TimePicker.stories.d.ts +21 -0
- package/storybook/components/extended/mui/ToggleButton/ToggleButton.stories.d.ts +53 -0
- package/storybook/components/extended/mui/ToggleIconButton/ToggleIconButton.stories.d.ts +37 -0
- package/storybook/components/extended/mui/Tooltip/Tooltip.stories.d.ts +29 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/body/Estados/typography.body.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/bodyDens/Estados/typography.bodyDens.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h1/Estados/typography.h1.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h2/Estados/typography.h2.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h3/Estados/typography.h3.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/h5/Estados/typography.h5.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraph/Estados/typography.paragraph.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/paragraphDens/Estados/typography.paragraphDens.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitle/Estados/typography.subtitle.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/Typography/PaletteColor/text.primary/Variantes/subtitleDens/Estados/typography.subtitleDens.estados.stories.d.ts +23 -0
- package/storybook/components/extended/mui/avatar/Avatar.stories.d.ts +12 -0
- package/storybook/components/extended/react-resizable/ResizableBox/resizableBox.stories.d.ts +13 -0
- package/storybook/components/extended/scrollBar/ScrollBar.stories.d.ts +7 -0
- package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +11 -0
- package/storybook/components/formatters/BooleanFormatter/BooleanFormatter.stories.d.ts +41 -0
- package/storybook/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.stories.d.ts +13 -0
- package/storybook/components/formatters/DateFormatter/DateFormatter.stories.d.ts +29 -0
- package/storybook/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.stories.d.ts +157 -0
- package/storybook/components/formatters/DistanceToNowFormatter/subcomponents/WithDTNFProvider.d.ts +5 -0
- package/storybook/components/formatters/DistanceToNowFormatter/types.d.ts +3 -0
- package/storybook/components/formatters/PeriodFormatter/PeriodFormatter.stories.d.ts +36 -0
- package/storybook/components/formatters/PoinsFormatter/PointsFormatter.stories.d.ts +21 -0
- package/storybook/components/formatters/PriceFormatter/PriceFormatter.stories.d.ts +17 -0
- package/storybook/components/formatters/UncertaintyFormatter/UncertaintyFormatter.stories.d.ts +13 -0
- package/storybook/components/image/image.stories.d.ts +11 -0
- package/storybook/components/paperForm/PaperForm.stories.d.ts +22 -0
- package/storybook/hook-form/RHFAutocomplete/RHFAutocomplete.stories.d.ts +20 -0
- package/storybook/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.stories.d.ts +17 -0
- package/storybook/hook-form/RHFCheckBox/RHFCheckBox.stories.d.ts +8 -0
- package/storybook/hook-form/RHFColorPicker/RHFColorPicker.stories.d.ts +21 -0
- package/storybook/hook-form/RHFDateTime/RHFDateTime.stories.d.ts +21 -0
- package/storybook/hook-form/RHFNumberInput/RHFNumberInput.stories.d.ts +21 -0
- package/storybook/hook-form/RHFPeriod/RHFPeriod.stories.d.ts +8 -0
- package/storybook/hook-form/RHFSelect/RHFSelect.stories.d.ts +32 -0
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +8 -0
- package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +8 -0
- package/storybook/hook-form/RHFTimePicker/RHFTimePicker.stories.d.ts +21 -0
- package/storybook/hook-form/RHFUploadImage/RHFUploadFile.stories.d.ts +6 -0
- package/test/mocks.d.ts +2 -2
- package/components/WindowBase/types.js +0 -1
- package/components/WindowConfirm/types.js +0 -1
- /package/{components/WindowBase/subcomponents/Header/types.js → hooks/useDataGridPersistence/index.js} +0 -0
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { A as A2 } from "./components/animate/AnimatedScroll/animatedScroll.js";
|
|
|
10
10
|
import { v } from "./components/animate/variants/fade.js";
|
|
11
11
|
import { v as v2 } from "./components/animate/variants/bounce.js";
|
|
12
12
|
import { v as v3 } from "./components/animate/variants/container.js";
|
|
13
|
-
import {
|
|
13
|
+
import { v as v4, a, b } from "./components/animate/variants/transition.js";
|
|
14
14
|
import { A as A3 } from "./components/AppBar/AppBar.js";
|
|
15
15
|
import { g as g2 } from "./components/AppBar/dictionary.js";
|
|
16
16
|
import { A as A4 } from "./components/areas/components/AreasAdmin/AreasAdmin.js";
|
|
@@ -84,7 +84,7 @@ import { D as D7 } from "./components/formatters/DistanceToNowFormatter/Distance
|
|
|
84
84
|
import { g as g14 } from "./components/formatters/dictionary.js";
|
|
85
85
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
86
86
|
import { R as R3 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
87
|
-
import { c as c3,
|
|
87
|
+
import { c as c3, d as d3, e } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
88
88
|
import { i, k } from "./components/GridLayout/utils.js";
|
|
89
89
|
import { w } from "./components/GridLayout/subcomponents/withSizeProvider/index.js";
|
|
90
90
|
import { H as H2 } from "./components/HelmetPage/index.js";
|
|
@@ -175,21 +175,16 @@ import { S as S8 } from "./components/ScrollBar/ScrollBar.js";
|
|
|
175
175
|
import { S as S9 } from "./components/SideBar/SideBar.js";
|
|
176
176
|
import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
177
177
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
178
|
-
import { w as w2 } from "./components/WindowBase/WindowBase.styles.js";
|
|
179
178
|
import { W as W2 } from "./components/WindowBase/WindowBase.js";
|
|
180
|
-
import { W as W3 } from "./components/
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import { a as
|
|
184
|
-
import { H as H5 } from "./components/WindowBase/subcomponents/Header/HeaderWindowBase.js";
|
|
185
|
-
import { a as a12, g as g23 } from "./components/ModalDialog/dictionary.js";
|
|
186
|
-
import { M as M7 } from "./components/ModalDialog/ModalDialog.js";
|
|
187
|
-
import { a as a13, D as D9, M as M8 } from "./components/areas/contexts/DynamicMFParmsContext/index.js";
|
|
179
|
+
import { W as W3 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
180
|
+
import { a as a11, g as g23 } from "./components/ModalDialog/dictionary.js";
|
|
181
|
+
import { M as M6 } from "./components/ModalDialog/ModalDialog.js";
|
|
182
|
+
import { a as a12, D as D9, M as M7 } from "./components/areas/contexts/DynamicMFParmsContext/index.js";
|
|
188
183
|
import { F as F2, R as R22, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
189
184
|
import { g as g24 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
190
185
|
import { u as u17 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
191
186
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
192
|
-
import { a as
|
|
187
|
+
import { a as a13, M as M8 } from "./contexts/ModalContext/index.js";
|
|
193
188
|
import { u as u18 } from "./hooks/useFormAddEdit/index.js";
|
|
194
189
|
import { u as u19 } from "./hooks/useModal/index.js";
|
|
195
190
|
import { u as u20 } from "./hooks/useTab/index.js";
|
|
@@ -199,10 +194,11 @@ import { u as u22 } from "./hooks/useInterval/index.js";
|
|
|
199
194
|
import { u as u23 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
200
195
|
import { u as u24 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
201
196
|
import { u as u25 } from "./hooks/useStateRef/index.js";
|
|
202
|
-
import {
|
|
197
|
+
import { a as a14 } from "./hooks/useSvgColor/constants.js";
|
|
203
198
|
import { u as u26 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
204
199
|
import { u as u27 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
205
|
-
import {
|
|
200
|
+
import { u as u28 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
201
|
+
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
206
202
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
207
203
|
import { g as g26 } from "./utils/getComponentUtilityClass.js";
|
|
208
204
|
import { g as g27 } from "./utils/getPaletteColor.js";
|
|
@@ -252,8 +248,6 @@ export {
|
|
|
252
248
|
C10 as ColumnSetCheckFormatter,
|
|
253
249
|
C2 as ColumnUncertaintyFormatter,
|
|
254
250
|
C12 as ConcatenatedFormatter,
|
|
255
|
-
a11 as ContentEditionInfoStyled,
|
|
256
|
-
C15 as ContentWindowStyled,
|
|
257
251
|
D as DICTIONARY,
|
|
258
252
|
D2 as DataGrid,
|
|
259
253
|
D6 as DateFormatter,
|
|
@@ -261,24 +255,18 @@ export {
|
|
|
261
255
|
D7 as DistanceToNowFormatter,
|
|
262
256
|
D3 as DragResizeWindow,
|
|
263
257
|
D4 as DynamicFilter,
|
|
264
|
-
|
|
258
|
+
a12 as DynamicMFParmsContext,
|
|
265
259
|
D9 as DynamicMFParmsProvider,
|
|
266
260
|
D5 as DynamicSort,
|
|
267
261
|
F as FixedSizeList,
|
|
268
262
|
F2 as FormProviderCustom,
|
|
269
263
|
G as GridLayout,
|
|
270
264
|
H as HamburgerMenu,
|
|
271
|
-
b4 as HeaderContentStyled,
|
|
272
|
-
H5 as HeaderWindowBase,
|
|
273
|
-
H4 as HeaderWindowComponentStyled,
|
|
274
265
|
H2 as HelmetPage,
|
|
275
266
|
H3 as HelperError,
|
|
276
|
-
I6 as ICONS,
|
|
277
267
|
I2 as Icon,
|
|
278
268
|
I4 as IconButton,
|
|
279
269
|
I as IconButtonAnimate,
|
|
280
|
-
I7 as IconWindowStyled,
|
|
281
|
-
e2 as IconsWrapperStyled,
|
|
282
270
|
I3 as Image,
|
|
283
271
|
I5 as ImageButton,
|
|
284
272
|
L2 as LABEL_FILTER_BUTTON,
|
|
@@ -286,7 +274,6 @@ export {
|
|
|
286
274
|
L4 as LanguagePopover,
|
|
287
275
|
L8 as LinearProgress,
|
|
288
276
|
L5 as LinearProgressIndeterminate,
|
|
289
|
-
L11 as LinearProgressIndeterminateStyled,
|
|
290
277
|
L9 as LinkWithRoute,
|
|
291
278
|
L6 as Loadable,
|
|
292
279
|
L10 as LoadingButton,
|
|
@@ -294,13 +281,12 @@ export {
|
|
|
294
281
|
L as LoadingScreen,
|
|
295
282
|
M4 as MFIsolationApp,
|
|
296
283
|
M5 as MFLoader,
|
|
297
|
-
|
|
284
|
+
M7 as MemonizedDynamicMFParmsProvider,
|
|
298
285
|
a8 as MemonizedMenuActions,
|
|
299
286
|
M3 as MenuActions,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
M9 as ModalProvider,
|
|
287
|
+
a13 as ModalContext,
|
|
288
|
+
M6 as ModalDialog,
|
|
289
|
+
M8 as ModalProvider,
|
|
304
290
|
M as MotionContainer,
|
|
305
291
|
M2 as MotionLazyContainer,
|
|
306
292
|
N2 as NavLink,
|
|
@@ -313,8 +299,6 @@ export {
|
|
|
313
299
|
P8 as PaperForm,
|
|
314
300
|
P3 as PeriodFormatter,
|
|
315
301
|
P5 as PeriodRootStyled,
|
|
316
|
-
c4 as PointIconStyled,
|
|
317
|
-
P14 as PointStyled,
|
|
318
302
|
P2 as PointsFormatter,
|
|
319
303
|
P7 as Popover,
|
|
320
304
|
P10 as PopupsContext,
|
|
@@ -346,7 +330,7 @@ export {
|
|
|
346
330
|
R as Resizable,
|
|
347
331
|
R2 as ResizableBox,
|
|
348
332
|
R3 as Responsive,
|
|
349
|
-
|
|
333
|
+
a14 as SKELETON_SVG_ICON,
|
|
350
334
|
S8 as ScrollBar,
|
|
351
335
|
S as ScrollToTop,
|
|
352
336
|
S2 as SectionCommercial,
|
|
@@ -356,8 +340,6 @@ export {
|
|
|
356
340
|
S3 as SortCompareValues,
|
|
357
341
|
S4 as SplitLayout,
|
|
358
342
|
S7 as Stack,
|
|
359
|
-
S10 as SubtitleContainerStyled,
|
|
360
|
-
d5 as SubtitleWindowStyled,
|
|
361
343
|
T11 as TOGGLE_BUTTON_KEY_COMPONENT,
|
|
362
344
|
T15 as TOGGLE_ICON_BUTTON_KEY_COMPONENT,
|
|
363
345
|
T4 as Tab,
|
|
@@ -367,7 +349,6 @@ export {
|
|
|
367
349
|
T6 as Tabs,
|
|
368
350
|
T2 as TextEditor,
|
|
369
351
|
T3 as TextFieldStyled,
|
|
370
|
-
T20 as TitleWindowStyled,
|
|
371
352
|
T18 as ToastContainer,
|
|
372
353
|
T19 as ToastMessage,
|
|
373
354
|
T10 as ToggleButton,
|
|
@@ -381,16 +362,14 @@ export {
|
|
|
381
362
|
T9 as Typography,
|
|
382
363
|
U as UncertaintyFormatter,
|
|
383
364
|
V as VariableSizeList,
|
|
384
|
-
W3 as WINDOW_BASE_KEY_COMPONENT,
|
|
385
365
|
W2 as WindowBase,
|
|
386
|
-
|
|
387
|
-
W5 as WindowBaseStyled,
|
|
366
|
+
W3 as WindowConfirm,
|
|
388
367
|
a2 as WindowToolsMFContext,
|
|
389
368
|
W as WindowToolsMFProvider,
|
|
390
369
|
c3 as addLayoutItemToBreakPointIfNoExists,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
370
|
+
d3 as addLayoutItemToBreakPoints,
|
|
371
|
+
c4 as capitalizeFirstLetter,
|
|
372
|
+
e as cloneLayouts,
|
|
394
373
|
c2 as createDynamicMFStore,
|
|
395
374
|
c as createToaster,
|
|
396
375
|
d as defaultCommonActionsDictionary,
|
|
@@ -423,7 +402,7 @@ export {
|
|
|
423
402
|
g18 as getLoadingErrorComponentsDictionary,
|
|
424
403
|
g19 as getMFLoaderComponentsDictionary,
|
|
425
404
|
a7 as getMenuActionsComponentsDictionary,
|
|
426
|
-
|
|
405
|
+
a11 as getModalDialogComponentsDictionary,
|
|
427
406
|
g23 as getModalDictionary,
|
|
428
407
|
g21 as getNoItemSelectedComponentsDictionary,
|
|
429
408
|
g22 as getObjectLogsComponentsDictionary,
|
|
@@ -455,6 +434,7 @@ export {
|
|
|
455
434
|
u13 as useColumnSetCheck,
|
|
456
435
|
u23 as useComponentSize,
|
|
457
436
|
u16 as useCustomForm,
|
|
437
|
+
u28 as useDataGridPersistence,
|
|
458
438
|
u27 as useDynamicFilterAndSort,
|
|
459
439
|
u as useDynamicMFParametersStore,
|
|
460
440
|
u18 as useFormAddEdit,
|
|
@@ -472,9 +452,8 @@ export {
|
|
|
472
452
|
v2 as varBounce,
|
|
473
453
|
v3 as varContainer,
|
|
474
454
|
v as varFade,
|
|
475
|
-
|
|
476
|
-
|
|
455
|
+
v4 as varTranEnter,
|
|
456
|
+
a as varTranExit,
|
|
477
457
|
b as varTranHover,
|
|
478
|
-
w2 as windowBaseStyles,
|
|
479
458
|
w as withSizeProvider
|
|
480
459
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SideBar } from '../../../src/components/SideBar';
|
|
3
|
+
import { AccountPopover } from '../../../src/components/AccountPopover';
|
|
4
|
+
declare const meta: Meta<typeof AccountPopover>;
|
|
5
|
+
type Story = StoryObj<typeof SideBar>;
|
|
6
|
+
/**
|
|
7
|
+
* Componente AccountPopover por defecto.
|
|
8
|
+
* Muestra el avatar del usuario, la versión de la aplicación, el nombre del usuario y las opciones de menú.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export default meta;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
+
import { AreasAdmin } from '../../../../src/components/areas/components/AreasAdmin/AreasAdmin';
|
|
4
|
+
declare const meta: Meta<typeof AreasAdmin>;
|
|
5
|
+
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Skeleton: Story;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
+
import { AreasAdmin } from '../../../../src/components/areas/components/AreasAdmin/AreasAdmin';
|
|
4
|
+
declare const meta: Meta<typeof AreasAdmin>;
|
|
5
|
+
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MOCK_CLIENTS: {
|
|
2
|
+
nombre: string;
|
|
3
|
+
correo: string;
|
|
4
|
+
telefono: string;
|
|
5
|
+
direccion: string;
|
|
6
|
+
ciudad: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const MOCK_USERS: {
|
|
9
|
+
nombre: string;
|
|
10
|
+
apellido: string;
|
|
11
|
+
email: string;
|
|
12
|
+
telefono: string;
|
|
13
|
+
activo: boolean;
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PaperForm } from '../../../../src/components/PaperForm';
|
|
3
|
+
import { AreasAdmin } from '../../../../src/components/areas/components/AreasAdmin/AreasAdmin';
|
|
4
|
+
declare const meta: Meta<typeof AreasAdmin>;
|
|
5
|
+
type Story = StoryObj<typeof PaperForm>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MOCK_CLIENTS: {
|
|
2
|
+
nombre: string;
|
|
3
|
+
correo: string;
|
|
4
|
+
telefono: string;
|
|
5
|
+
direccion: string;
|
|
6
|
+
ciudad: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const MOCK_USERS: {
|
|
9
|
+
nombre: string;
|
|
10
|
+
apellido: string;
|
|
11
|
+
email: string;
|
|
12
|
+
telefono: string;
|
|
13
|
+
activo: boolean;
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Chip } from '../../../src/components/Chip';
|
|
3
|
+
declare const meta: Meta<typeof Chip>;
|
|
4
|
+
type Story = StoryObj<typeof Chip>;
|
|
5
|
+
/**
|
|
6
|
+
* Base story for `Chip` in default mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Base story for `Chip` with external color 1.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ExternalColor1: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Base story for `Chip` with external color 1.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ExternalColor2: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Base story for `Chip` with a start icon.
|
|
19
|
+
*/
|
|
20
|
+
export declare const WithStartIcon: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Base story for `Chip` with an end icon.
|
|
23
|
+
*/
|
|
24
|
+
export declare const WithEndIconAndDelete: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Base story for `Chip` with a start and end icon.
|
|
27
|
+
*/
|
|
28
|
+
export declare const WithStartAndEndIcon: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Base story for `Chip` in skeleton mode.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Skeleton: Story;
|
|
33
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Color } from '../../../src/components/Color/Color';
|
|
3
|
+
declare const meta: Meta<typeof Color>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Color>;
|
|
6
|
+
/**
|
|
7
|
+
* Componente color cuando no se le asigna un `value`
|
|
8
|
+
*/
|
|
9
|
+
export declare const ColorSinValue: Story;
|
|
10
|
+
/**
|
|
11
|
+
* Componente color cuando se le asigna un `value`
|
|
12
|
+
*/
|
|
13
|
+
export declare const ColorConValue: Story;
|
|
14
|
+
export declare const Skeleton: Story;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DataGrid, RowKey } from '../../../src/components/DataGrid';
|
|
3
|
+
import { RowType } from './helpers/types';
|
|
4
|
+
declare const meta: Meta<typeof DataGrid<RowType, unknown, RowKey>>;
|
|
5
|
+
type Story = StoryObj<typeof DataGrid>;
|
|
6
|
+
/**
|
|
7
|
+
* DataGrid por defecto con checkbox y paginación
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* DataGrid en modo skeleton
|
|
12
|
+
*/
|
|
13
|
+
export declare const DatagridSkeleton: Story;
|
|
14
|
+
/**
|
|
15
|
+
* DataGrid con loadFromNetwork
|
|
16
|
+
*/
|
|
17
|
+
export declare const DataGridWithEventChangeUserColumn: Story;
|
|
18
|
+
/**
|
|
19
|
+
* DataGrid con columns formatters
|
|
20
|
+
*/
|
|
21
|
+
export declare const DatagridWithFormatters: Story;
|
|
22
|
+
/**
|
|
23
|
+
* DataGrid sin pager
|
|
24
|
+
*/
|
|
25
|
+
export declare const NoPager: Story;
|
|
26
|
+
/**
|
|
27
|
+
* DataGrid con leftActions y rightActions
|
|
28
|
+
*/
|
|
29
|
+
export declare const CustomHeader: Story;
|
|
30
|
+
export default meta;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HeaderRendererProps } from 'react-data-grid';
|
|
2
|
+
export interface SeedProps {
|
|
3
|
+
quantity: number;
|
|
4
|
+
withBoolean?: boolean;
|
|
5
|
+
withConcatenated?: boolean;
|
|
6
|
+
withDate?: boolean;
|
|
7
|
+
withIcon?: boolean;
|
|
8
|
+
withInteractiveCheck?: boolean;
|
|
9
|
+
withNestedValue?: boolean;
|
|
10
|
+
withPoints?: boolean;
|
|
11
|
+
withPrice?: boolean;
|
|
12
|
+
withUncertainty?: boolean;
|
|
13
|
+
withSetCheck?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type GetColumnsProps = Omit<SeedProps, 'quantity'>;
|
|
16
|
+
export type ColumnType = 'string' | 'number' | 'boolean' | 'date' | 'custom';
|
|
17
|
+
export interface RowType {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
email: string;
|
|
21
|
+
phone: string;
|
|
22
|
+
ip: string;
|
|
23
|
+
active?: boolean;
|
|
24
|
+
concatenated?: {
|
|
25
|
+
email: string;
|
|
26
|
+
phone: string;
|
|
27
|
+
};
|
|
28
|
+
created_at?: Date;
|
|
29
|
+
icon?: string;
|
|
30
|
+
interactiveCheck?: any;
|
|
31
|
+
nestedValue?: any;
|
|
32
|
+
points?: number[];
|
|
33
|
+
unit?: string;
|
|
34
|
+
price?: number;
|
|
35
|
+
uncertainty?: {
|
|
36
|
+
ranges: RangesUncertanty[];
|
|
37
|
+
symbol: string;
|
|
38
|
+
unit: string;
|
|
39
|
+
};
|
|
40
|
+
setCheck?: boolean;
|
|
41
|
+
}
|
|
42
|
+
interface RangesUncertanty {
|
|
43
|
+
cmc_min: number;
|
|
44
|
+
cmc_max: number;
|
|
45
|
+
cmc_min_closed: boolean;
|
|
46
|
+
cmc_max_closed: boolean;
|
|
47
|
+
cmc_uncertainty: number;
|
|
48
|
+
}
|
|
49
|
+
export interface Column<TRow, TSummaryRow> {
|
|
50
|
+
key: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: ColumnType;
|
|
53
|
+
formatter?: (props: any) => JSX.Element;
|
|
54
|
+
width?: number;
|
|
55
|
+
withinHeaderRenderer?: React.FunctionComponent<HeaderRendererProps<TRow, TSummaryRow>>;
|
|
56
|
+
customFilter?: (row: TRow, value: string) => boolean;
|
|
57
|
+
customSort?: (a: TRow, b: TRow) => number;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetColumnsProps, RowType, Column } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ****************************************************************
|
|
4
|
+
* Función que retorna las columnas para el DataGrid de Storybook
|
|
5
|
+
* ****************************************************************
|
|
6
|
+
*/
|
|
7
|
+
export declare const useColumnsSeed: <TRow extends RowType, TSumaryRow>(props: GetColumnsProps) => readonly Column<TRow, TSumaryRow>[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SeedProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Función que retorna el seed para el DataGrid de Storybook
|
|
4
|
+
*/
|
|
5
|
+
export declare const useSeed: (props: SeedProps) => {
|
|
6
|
+
columns: readonly import('./types').Column<import('./types').RowType, unknown>[];
|
|
7
|
+
rows: import('./types').RowType[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataGridProps, RowKey } from '../../../../src/components/DataGrid/types';
|
|
2
|
+
import { RowType, SeedProps } from '../helpers/types';
|
|
3
|
+
interface DataGridRenderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
|
|
4
|
+
dataGridProps: DataGridProps<TRow, TSummaryRow, TKey>;
|
|
5
|
+
seedProps: SeedProps;
|
|
6
|
+
rowsSelecteds?: boolean;
|
|
7
|
+
withCustomHeader?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Componente que renderiza el DataGrid para el storybook
|
|
11
|
+
*/
|
|
12
|
+
declare function DataGridRender<TKey extends RowKey = RowKey>(props: DataGridRenderProps<RowType, unknown, TKey>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default DataGridRender;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DragResizeWindow } from '../../../../src/components/DragResizeWindow/DragResizeWindow';
|
|
3
|
+
declare const meta: Meta<typeof DragResizeWindow>;
|
|
4
|
+
type Story = StoryObj<typeof DragResizeWindow>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Hidden: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DynamicFilter } from '../../../src/components/DynamicFilter/DynamicFilter';
|
|
3
|
+
declare const meta: Meta<typeof DynamicFilter>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DynamicFilter>;
|
|
6
|
+
/**
|
|
7
|
+
* Base DynamicFilter component
|
|
8
|
+
*/
|
|
9
|
+
export declare const Base: Story;
|
|
10
|
+
/**
|
|
11
|
+
* DynamicFilter With props `automatic=true`
|
|
12
|
+
*/
|
|
13
|
+
export declare const WithAutomatic: Story;
|
|
14
|
+
/**
|
|
15
|
+
* DynamicFilter With props `withAllField=true`
|
|
16
|
+
*/
|
|
17
|
+
export declare const WithAllField: Story;
|
|
18
|
+
/**
|
|
19
|
+
* DynamicFilter With fixed field
|
|
20
|
+
*/
|
|
21
|
+
export declare const WithFixedField: Story;
|
|
22
|
+
/**
|
|
23
|
+
* DynamicFilter in skeleton mode
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithSkeleton: Story;
|
|
26
|
+
/**
|
|
27
|
+
* DynamicFilter with errors
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithErrors: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DynamicSort } from '../../../src/components/DynamicSort/DynamicSort';
|
|
3
|
+
declare const meta: Meta<typeof DynamicSort>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DynamicSort>;
|
|
6
|
+
/**
|
|
7
|
+
* Base DynamicSort component
|
|
8
|
+
*/
|
|
9
|
+
export declare const Base: Story;
|
|
10
|
+
/**
|
|
11
|
+
* DynamicSort with `initialAppliedSorts`
|
|
12
|
+
*/
|
|
13
|
+
export declare const WithInitialSort: Story;
|
|
14
|
+
/**
|
|
15
|
+
* DynamicSort in skeleton mode
|
|
16
|
+
*/
|
|
17
|
+
export declare const WithSkeleton: Story;
|
|
18
|
+
/**
|
|
19
|
+
* DynamicFilter With fixed field
|
|
20
|
+
*/
|
|
21
|
+
export declare const WithFixedField: Story;
|
|
22
|
+
/**
|
|
23
|
+
* DynamicFilter With props `automatic=true`
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithAutomatic: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HelperError } from '../../../src/components/HelperError';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof HelperError>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HelperError>;
|
|
6
|
+
/** Base HelperError component */
|
|
7
|
+
export declare const HelperErrorComponent: Story;
|
|
8
|
+
/** Skeleton HelperError component */
|
|
9
|
+
export declare const Skeleton: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Icon } from '../../../src/components/Icon';
|
|
3
|
+
declare const meta: Meta<typeof Icon>;
|
|
4
|
+
type Story = StoryObj<typeof Icon>;
|
|
5
|
+
/**
|
|
6
|
+
* Icon component by default with tooltip content 'Tooltip'
|
|
7
|
+
*/
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Icon component with color primary.enabled
|
|
11
|
+
*/
|
|
12
|
+
export declare const iconColor: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Icon component with size small
|
|
15
|
+
*/
|
|
16
|
+
export declare const small: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Icon component with size medium
|
|
19
|
+
*/
|
|
20
|
+
export declare const medium: Story;
|
|
21
|
+
export default meta;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Label } from '../../../src/components/Label/Label';
|
|
3
|
+
/**
|
|
4
|
+
* Label es un componente React que renderiza una etiqueta de texto, la cual puede ser utilizada en formularios o en cualquier
|
|
5
|
+
* lugar donde se necesite una descripción textual.
|
|
6
|
+
* Soporta la visualización de un indicador de campo obligatorio, mensaje de ayuda a través
|
|
7
|
+
* de un tooltip, y puede adaptar su tamaño. El componente también puede mostrar un estado de esqueleto, indicando
|
|
8
|
+
* que el contenido está cargando.
|
|
9
|
+
*/
|
|
10
|
+
declare const meta: Meta<typeof Label>;
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof Label>;
|
|
13
|
+
/** Label component Props Comunes */
|
|
14
|
+
export declare const LabelDefault: Story;
|
|
15
|
+
/** Label component mode Skeleton With props `helperMessage` */
|
|
16
|
+
export declare const LabelDefaultSkeleton: Story;
|