prometeo-design-system 4.1.7 → 4.1.8

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.
Files changed (33) hide show
  1. package/dist/Avatar.es.js +37 -38
  2. package/dist/CardProfile.es.js +278 -3
  3. package/dist/Icons/UserAvatar.es.js +4 -4
  4. package/dist/Input.es.js +72 -71
  5. package/dist/PlainTooltip.es.js +19 -19
  6. package/dist/PyrionLayout.es.js +459 -409
  7. package/dist/Select.es.js +46 -46
  8. package/dist/TicketCard.es.js +33 -31
  9. package/dist/badge-BEx-0Q-K.js +35 -0
  10. package/dist/components/Avatar/Avatar.d.ts +1 -2
  11. package/dist/index.d.ts +0 -16
  12. package/dist/prometeo-design-system.es.js +119 -2906
  13. package/dist/styles.css +1 -1
  14. package/package.json +1 -1
  15. package/dist/CardProfile-C1F83KJV.js +0 -280
  16. package/dist/badge-CbqYNrl4.js +0 -87
  17. package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
  18. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
  19. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
  20. package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
  21. package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
  22. package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
  23. package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
  24. package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
  25. package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
  26. package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
  27. package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
  28. package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
  29. package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
  30. package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
  31. package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
  32. package/dist/components/Sidebar/index.d.ts +0 -12
  33. package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
@@ -1,32 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface SecondaryBarRootProps {
3
- children: ReactNode;
4
- isOpen?: boolean;
5
- className?: string;
6
- width?: string;
7
- action?: string;
8
- primarySidebarCollapsed?: boolean;
9
- onClose?: () => void;
10
- }
11
- export interface HeaderProps {
12
- children: ReactNode;
13
- className?: string;
14
- }
15
- export interface ContentProps {
16
- children: ReactNode;
17
- className?: string;
18
- }
19
- export interface FooterProps {
20
- children: ReactNode;
21
- className?: string;
22
- }
23
- export interface SpacerProps {
24
- className?: string;
25
- }
26
- export declare const SecondaryBar: (({ children, isOpen, className, width, action, primarySidebarCollapsed, onClose, }: SecondaryBarRootProps) => import("react/jsx-runtime").JSX.Element) & {
27
- Root: ({ children, isOpen, className, width, action, primarySidebarCollapsed, onClose, }: SecondaryBarRootProps) => import("react/jsx-runtime").JSX.Element;
28
- Header: ({ children, className }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
29
- Content: ({ children, className }: ContentProps) => import("react/jsx-runtime").JSX.Element;
30
- Footer: ({ children, className }: FooterProps) => import("react/jsx-runtime").JSX.Element;
31
- Spacer: ({ className }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
32
- };
@@ -1,2 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare const useSecondaryBarAnimation: (secondaryBarRef: RefObject<HTMLDivElement | null>, isOpen: boolean) => void;
@@ -1 +0,0 @@
1
- export { SecondaryBar } from './SecondaryBar';
@@ -1,43 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { TabSwitchElement } from '../TabSwitch/TabSwitch';
3
- interface SidebarRootProps {
4
- children: ReactNode;
5
- isCollapsed?: boolean;
6
- className?: string;
7
- tabs?: TabSwitchElement[];
8
- currentTabName?: string;
9
- }
10
- interface CollapseButtonProps {
11
- isCollapsed: boolean;
12
- onToggleCollapse: () => void;
13
- }
14
- export declare const CollapseButton: ({ isCollapsed, onToggleCollapse }: CollapseButtonProps) => import("react/jsx-runtime").JSX.Element;
15
- interface HeaderProps {
16
- children: ReactNode;
17
- className: string;
18
- }
19
- interface DividerProps {
20
- className?: string;
21
- }
22
- interface ContentProps {
23
- children: ReactNode;
24
- className: string;
25
- }
26
- interface SpacerProps {
27
- size?: 'auto' | 'small' | 'medium' | 'large' | string;
28
- className?: string;
29
- }
30
- interface FooterProps {
31
- children: ReactNode;
32
- className?: string;
33
- }
34
- export declare const Sidebar: import('react').ForwardRefExoticComponent<SidebarRootProps & import('react').RefAttributes<HTMLDivElement>> & {
35
- Root: import('react').ForwardRefExoticComponent<SidebarRootProps & import('react').RefAttributes<HTMLDivElement>>;
36
- CollapseButton: ({ isCollapsed, onToggleCollapse }: CollapseButtonProps) => import("react/jsx-runtime").JSX.Element;
37
- Header: ({ children, className }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
38
- Divider: ({ className }: DividerProps) => import("react/jsx-runtime").JSX.Element;
39
- Content: ({ children, className }: ContentProps) => import("react/jsx-runtime").JSX.Element;
40
- Spacer: ({ className, size }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
41
- Footer: ({ children, className }: FooterProps) => import("react/jsx-runtime").JSX.Element;
42
- };
43
- export {};
@@ -1,11 +0,0 @@
1
- interface NavigationLinkProps {
2
- children: React.ReactNode;
3
- icon?: React.ReactNode;
4
- label?: string;
5
- href?: string;
6
- onClick?: () => void;
7
- isActive?: boolean;
8
- className?: string;
9
- }
10
- export declare const NavigationLink: ({ children, icon, label, href, onClick, isActive, className }: NavigationLinkProps) => import("react/jsx-runtime").JSX.Element;
11
- export default NavigationLink;
@@ -1,5 +0,0 @@
1
- export interface CompanyLogoProps {
2
- logoUrl: string;
3
- companyName?: string;
4
- }
5
- export declare const CompanyLogo: ({ logoUrl, companyName }: CompanyLogoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { INavAction } from '../hooks/useNavLinks';
2
- export interface INavbarActionsProps {
3
- linkActions: INavAction[];
4
- onClick?: (actionName: string) => void;
5
- activeAction?: string;
6
- }
7
- export declare const NavBarActions: ({ linkActions, onClick, activeAction, }: INavbarActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { INavLink } from '../hooks/useNavLinks';
2
- export interface NavbarLinksProps {
3
- links: INavLink[];
4
- isLinkActive: (path: string) => boolean;
5
- onLinkClick?: (path: string) => void;
6
- }
7
- export declare const NavbarLinks: ({ links, isLinkActive, onLinkClick, }: NavbarLinksProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { ReactNode, RefObject } from 'react';
2
- interface SidebarContextType {
3
- primarySidebarRef: RefObject<HTMLDivElement | null>;
4
- registerPrimarySidebar: (ref: RefObject<HTMLDivElement | null>) => void;
5
- tabBarRef: RefObject<HTMLDivElement | null>;
6
- registerTabBar: (ref: RefObject<HTMLDivElement | null>) => void;
7
- }
8
- interface SidebarProviderProps {
9
- children: ReactNode;
10
- }
11
- export declare const SidebarProvider: ({ children }: SidebarProviderProps) => import("react/jsx-runtime").JSX.Element;
12
- export declare const useSidebarContext: () => SidebarContextType;
13
- export {};
@@ -1,3 +0,0 @@
1
- export declare const SidebarProvider: ({ children, }: {
2
- children: React.ReactNode;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- interface IRootState {
2
- isActiveModalNotification: boolean;
3
- setIsActiveModalNotification: (isActiveModalNotification: boolean) => void;
4
- }
5
- export declare const useActionsNavbar: ({ isActiveModalNotification, setIsActiveModalNotification, }: IRootState) => {
6
- handleNotificationClick: () => void;
7
- isActiveModalNotification: boolean;
8
- };
9
- export {};
@@ -1,4 +0,0 @@
1
- export declare const useNavbarCollapse: (isCollapsed: boolean) => {
2
- isCollapsed: boolean;
3
- navbarRef: import('react').RefObject<HTMLDivElement | null>;
4
- };
@@ -1,32 +0,0 @@
1
- export type Role = "Developer" | "SuperAdmin" | "Admin" | "Regular";
2
- export declare const Roles: {
3
- levelOne: readonly ["Developer"];
4
- levelTwo: Role[];
5
- levelThree: Role[];
6
- levelFour: Role[];
7
- };
8
- export type RoleLevels = typeof Roles;
9
- export interface INavLink {
10
- path: string;
11
- title: string;
12
- icon?: (props: {
13
- size: number;
14
- className: string;
15
- }) => React.ReactNode;
16
- viewAccess?: () => boolean;
17
- discover?: "render" | "none";
18
- isView?: boolean | (() => boolean);
19
- relatedPaths?: string[];
20
- count?: number;
21
- }
22
- export interface INavAction {
23
- actionName: string;
24
- title: string;
25
- icon: (props: {
26
- size: number;
27
- className: string;
28
- }) => React.ReactNode;
29
- viewAccess: () => boolean;
30
- isView?: boolean | (() => boolean);
31
- count?: number;
32
- }
@@ -1,13 +0,0 @@
1
- import { RefObject } from 'react';
2
- export interface SidebarContextValue {
3
- isCollapsed: boolean;
4
- setIsCollapsed: (collapsed: boolean) => void;
5
- navbarRef: RefObject<HTMLDivElement | null>;
6
- toggleCollapse: () => void;
7
- activeSecondaryBar: string | null;
8
- openSecondaryBar: (action: string) => void;
9
- closeSecondaryBar: () => void;
10
- toggleSecondaryBar: (action: string) => void;
11
- }
12
- export declare const SidebarContext: import('react').Context<SidebarContextValue | undefined>;
13
- export declare const useSidebar: () => SidebarContextValue;
@@ -1,12 +0,0 @@
1
- export { SecondaryBar } from './SecondaryBar/SecondaryBar';
2
- export { Sidebar } from './SidebarComposable';
3
- export { SidebarProvider } from './hooks/SidebarProvider';
4
- export { useSidebar } from './hooks/useSidebarHook';
5
- export { NavigationLink } from './components/NavigationLink';
6
- export { Badge } from './components/badge';
7
- export { NavBarActions } from './components/nav-actions';
8
- export { NavbarLinks } from './components/nav-links';
9
- export { useActionsNavbar } from './hooks/useNavBarActions';
10
- export { useNavbarCollapse } from './hooks/useNavBarCollapse';
11
- export type { BadgeProps } from './components/badge';
12
- export type { NavbarLinksProps } from './components/nav-links';
@@ -1,2 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare const useNavbarAnimations: (navbarRef: RefObject<HTMLDivElement | null>, isCollapsed: boolean, isSecondaryBarOpen?: boolean) => void;