@data-c/ui 0.1.66 → 0.1.68

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/dist/index.d.ts CHANGED
@@ -477,6 +477,17 @@ interface MenuItemProps {
477
477
  }
478
478
  declare function MenuItem(props: MenuItemProps): react_jsx_runtime.JSX.Element;
479
479
 
480
+ interface MenuProps {
481
+ isOpen: boolean;
482
+ toggleMenu: () => void;
483
+ }
484
+ interface MenuProviderProps {
485
+ children: React.ReactNode;
486
+ storageKey?: string;
487
+ }
488
+ declare function MenuProvider(props: MenuProviderProps): react_jsx_runtime.JSX.Element;
489
+ declare function useMenu(): MenuProps;
490
+
480
491
  interface MenuRootProps {
481
492
  children: ReactNode;
482
493
  open: boolean;
@@ -489,6 +500,7 @@ declare function renderMenuItems(items: MenuItemProps[]): React.ReactNode;
489
500
  declare const Menu: {
490
501
  Root: typeof MenuRoot;
491
502
  Item: typeof MenuItem;
503
+ Provider: typeof MenuProvider;
492
504
  };
493
505
 
494
506
  interface BreadcrumbsItem {
@@ -758,11 +770,11 @@ interface TableProps<T> extends Omit<DataGridProps, 'onCellKeyDown' | 'onRowDoub
758
770
  }
759
771
  declare function Table<T>(props: TableProps<T>): react_jsx_runtime.JSX.Element;
760
772
 
761
- interface TitleProps {
773
+ interface TitleProps extends TypographyProps {
762
774
  titleDivider?: boolean;
763
775
  children: string;
764
776
  }
765
- declare function Title({ children, titleDivider }: TitleProps): react_jsx_runtime.JSX.Element;
777
+ declare function Title({ children, titleDivider, sx, }: TitleProps): react_jsx_runtime.JSX.Element;
766
778
 
767
779
  declare function Root({ children, height, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
768
780
 
@@ -875,4 +887,4 @@ declare const Card: {
875
887
  Title: typeof CardTitle;
876
888
  };
877
889
 
878
- export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button$1 as Button, ButtonContainer, Button as ButtonGroup, Card, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable$1 as DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DataTable as DataTableV2, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterApiContext, FilterApiContextProps, FilterContainer$1 as FilterContainer, FilterControl, FilterDataContext, FilterDataContextProps, FilterOptions, FilterProps, FilterProvider, FilterProviderProps, Flag, FormContainer, FormContainerProps, GridColDef, Header, Icon, LabelValue, LabelValueProps, List$1 as List, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, List as Popover, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme, useFilter, useFilterApi };
890
+ export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button$1 as Button, ButtonContainer, Button as ButtonGroup, Card, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable$1 as DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DataTable as DataTableV2, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterApiContext, FilterApiContextProps, FilterContainer$1 as FilterContainer, FilterControl, FilterDataContext, FilterDataContextProps, FilterOptions, FilterProps, FilterProvider, FilterProviderProps, Flag, FormContainer, FormContainerProps, GridColDef, Header, Icon, LabelValue, LabelValueProps, List$1 as List, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, List as Popover, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme, useFilter, useFilterApi, useMenu };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-c/ui",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "author": "Raphael <raphael@datac.com.br>",
5
5
  "homepage": "https://gitlab.com/raphaelbsr/mio#readme",
6
6
  "license": "MIT",
@@ -30,6 +30,7 @@
30
30
  "bugs": {
31
31
  "url": "https://gitlab.com/raphaelbsr/mio/issues"
32
32
  },
33
+ "type": "module",
33
34
  "devDependencies": {
34
35
  "@babel/core": "^7.20.12",
35
36
  "@babel/preset-env": "^7.25.4",
@@ -88,5 +89,5 @@
88
89
  "resolutions": {
89
90
  "csstype": "3.1.2"
90
91
  },
91
- "gitHead": "56f9bbf65f2a94259bd70b3ca8c626e253ab0e06"
92
+ "gitHead": "91791b2165ceda98ee126efbe4539ae99e495832"
92
93
  }