@acvl/frontend-components 0.0.44 → 0.0.45

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.
@@ -0,0 +1,11 @@
1
+ import { MenuItemProps } from "@mui/material";
2
+ import { ReactNode } from "react";
3
+ export interface ExtraButtonsProps {
4
+ loading?: boolean;
5
+ options: MenuItemProps & {
6
+ title: string;
7
+ icon: ReactNode;
8
+ }[];
9
+ }
10
+ declare const ExtraButtons: (props: ExtraButtonsProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default ExtraButtons;
@@ -5,3 +5,4 @@ export * from "./SaveCancelButton";
5
5
  export * from "./CreateButton";
6
6
  export { default as ButtonWithDrawer } from "./ButtonWithDrawer";
7
7
  export { default as MoreOptions } from "./MoreOptions";
8
+ export { default as ExtraButtons } from "./ExtraButtons";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _mui_material from '@mui/material';
2
- import { ButtonProps, ButtonGroupProps, AlertProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps, MenuProps, IconButtonProps, PaletteColorOptions } from '@mui/material';
2
+ import { ButtonProps, ButtonGroupProps, MenuItemProps, AlertProps, BoxProps, AutocompleteProps, SliderProps, SwitchProps, GridProps, DrawerProps, MenuProps, IconButtonProps, PaletteColorOptions } from '@mui/material';
3
3
  import * as React from 'react';
4
4
  import React__default, { ReactNode, Dispatch, SetStateAction, JSX, RefObject } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -102,6 +102,15 @@ interface MoreOptionsProps {
102
102
  }
103
103
  declare const MoreOptions: (props: MoreOptionsProps) => react_jsx_runtime.JSX.Element;
104
104
 
105
+ interface ExtraButtonsProps {
106
+ loading?: boolean;
107
+ options: MenuItemProps & {
108
+ title: string;
109
+ icon: ReactNode;
110
+ }[];
111
+ }
112
+ declare const ExtraButtons: (props: ExtraButtonsProps) => react_jsx_runtime.JSX.Element;
113
+
105
114
  interface StatusBadgeProps {
106
115
  severity?: AlertProps['severity'];
107
116
  title: string;
@@ -1025,5 +1034,5 @@ declare const useMutationHandler: ({ mutationFn, form, onSuccess, onValidationEr
1025
1034
  }) => void;
1026
1035
  };
1027
1036
 
1028
- export { APIContext, APIProvider, ActiveCell, Base, ButtonWithDrawer, CSVUpload, ContentLayout, ControlledDate, ControlledDropdown, ControlledFileField, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, DeleteButton, DeleteConfirmationDialog, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, EditButton, ExportCSV, HistorialDrawer, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, SaveCancelButton, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, deleteColumn, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, setErrors, _default$1 as snackProgressReducer, tags, theme, updateProgressSnackData, useAPI, useHasPermission, useMutationHandler, useNavigation, valueLabel };
1037
+ export { APIContext, APIProvider, ActiveCell, Base, ButtonWithDrawer, CSVUpload, ContentLayout, ControlledDate, ControlledDropdown, ControlledFileField, FileUploadBox as ControlledFileUploadBox, ControlledNumber, ControlledPhoneNumber, ControlledSelect, ControlledSlider as ControlledSimpleSlider, ControlledSlider$1 as ControlledSlider, ControlledSwitch, ControlledText, ControlledTimePicker, ControlledToggleButtons, CoverPage, CreateButtonBase, CreateButtonWithMenuOptions, CrudDropdown, DeleteButton, DeleteConfirmationDialog, DetailPage$1 as DetailPage, DetailPage as DetailPage_v2, EditButton, ExportCSV, ExtraButtons, HistorialDrawer, ListPage, Loadable, LoadingComponent, Logo, MainDrawer, MenuItemWithLoading, ModuleCard, MoreOptions, MyGridEditSingleSelect, NavigationContext, NavigationProvider, NormalOrIcon, NotAllowed, NotFound, ObjectProgressStack, SaveCancelButton, StatusBadge, StyledMenu, Tabs, Transitions, UncontrolledText, changeTitle, closeProgressSnack, deleteColumn, editColumn, filterQuery, formParser, _default as headerReducer, manualCacheRefresh, mergeSettings, openProgressSnack, query, renderEditCellWithErrorTooltip, setErrors, _default$1 as snackProgressReducer, tags, theme, updateProgressSnackData, useAPI, useHasPermission, useMutationHandler, useNavigation, valueLabel };
1029
1038
  export type { APIcontextProps, ComoOpcionesProps, CustomToolbarProps, DeleteGridColumnsProps, EditGridColumnsProps, EditReadOnlyFields, FieldFilter, FieldProps$1 as FieldProps, FieldValidationProps, GridArgs, GridColDefPropsOverrides, JSONFormProps, JSONParserProps, MyDataGridProps, MyGridFilterModel, MyTab, MyTabProps, PageType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",