@nextelco/common-ui 1.7.165 → 1.7.167

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 (102) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.LICENSE.txt +0 -28
  3. package/dist/types/components/atoms/Acronym/Acronym.d.ts +1 -4
  4. package/dist/types/components/atoms/Acronym/Acronym.stories.d.ts +8 -0
  5. package/dist/types/components/atoms/BreadCrumb/BreadCrumb.stories.d.ts +10 -0
  6. package/dist/types/components/atoms/Button/Button.d.ts +18 -0
  7. package/dist/types/components/atoms/Button/Button.stories.d.ts +48 -0
  8. package/dist/types/components/atoms/Button/variants/ActionButton.d.ts +5 -5
  9. package/dist/types/components/atoms/Button/variants/ActionButton.stories.d.ts +8 -0
  10. package/dist/types/components/atoms/Button/variants/FilterButton.d.ts +1 -2
  11. package/dist/types/components/atoms/Button/variants/FilterButton.stories.d.ts +7 -0
  12. package/dist/types/components/atoms/Button/variants/IconButton.d.ts +1 -4
  13. package/dist/types/components/atoms/Button/variants/IconButton.stories.d.ts +7 -0
  14. package/dist/types/components/atoms/Button/variants/NavButton.d.ts +9 -0
  15. package/dist/types/components/atoms/Button/variants/NavButton.stories.d.ts +7 -0
  16. package/dist/types/components/atoms/Button/variants/TabButton.d.ts +1 -2
  17. package/dist/types/components/atoms/Button/variants/TabButton.stories.d.ts +7 -0
  18. package/dist/types/components/atoms/Card/Card1.d.ts +15 -0
  19. package/dist/types/components/atoms/Card/Card1.stories.d.ts +6 -0
  20. package/dist/types/components/atoms/Card/Card2.d.ts +16 -0
  21. package/dist/types/components/atoms/Card/Card2.stories.d.ts +6 -0
  22. package/dist/types/components/atoms/Card/Card3.d.ts +17 -0
  23. package/dist/types/components/atoms/Card/Card3.stories.d.ts +6 -0
  24. package/dist/types/components/atoms/Card/Card4.d.ts +17 -0
  25. package/dist/types/components/atoms/Card/Card4.stories.d.ts +6 -0
  26. package/dist/types/components/atoms/Card/Card5.d.ts +16 -0
  27. package/dist/types/components/atoms/Card/Card5.stories.d.ts +6 -0
  28. package/dist/types/components/atoms/Card/Card6.d.ts +20 -0
  29. package/dist/types/components/atoms/Card/Card6.stories.d.ts +6 -0
  30. package/dist/types/components/atoms/Field/Field.stories.d.ts +9 -0
  31. package/dist/types/components/atoms/Label/Label.stories.d.ts +19 -0
  32. package/dist/types/components/atoms/Select/Select.stories.d.ts +14 -0
  33. package/dist/types/components/atoms/Stack/Stack.d.ts +1 -1
  34. package/dist/types/components/atoms/Stack/Stack.stories.d.ts +21 -0
  35. package/dist/types/components/atoms/Switch/CustomSwitch.d.ts +0 -2
  36. package/dist/types/components/atoms/Switch/CustomSwitch.stories.d.ts +7 -0
  37. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  38. package/dist/types/components/atoms/Tooltip/Tooltip.stories.d.ts +6 -0
  39. package/dist/types/components/layout/Error/Error.stories.d.ts +10 -0
  40. package/dist/types/components/layout/Footer/Footer.d.ts +5 -1
  41. package/dist/types/components/layout/Footer/Footer.stories.d.ts +6 -0
  42. package/dist/types/components/layout/Header/Header.d.ts +13 -12
  43. package/dist/types/components/layout/Header/Header.stories.d.ts +8 -0
  44. package/dist/types/components/layout/Spinner/Spinner.stories.d.ts +6 -0
  45. package/dist/types/components/moleculas/FormItem/FormItem.d.ts +12 -0
  46. package/dist/types/components/moleculas/FormItem/FormItem.stories.d.ts +7 -0
  47. package/dist/types/components/moleculas/Modal/Modal.d.ts +8 -0
  48. package/dist/types/components/moleculas/Modal/Modal.stories.d.ts +6 -0
  49. package/dist/types/components/moleculas/Operators/Operators.d.ts +15 -0
  50. package/dist/types/components/moleculas/Operators/Operators.stories.d.ts +8 -0
  51. package/dist/types/components/organisms/LazyLoading/LazyLoading.d.ts +15 -0
  52. package/dist/types/components/organisms/Profile/Profile.d.ts +2 -3
  53. package/dist/types/components/organisms/Profile/Profile.stories.d.ts +8 -0
  54. package/dist/types/components/organisms/Selector/Selector.d.ts +0 -19
  55. package/dist/types/contexts/apiContext.d.ts +0 -1
  56. package/dist/types/contexts/authContext.d.ts +14 -18
  57. package/dist/types/hooks/useApi.d.ts +1 -3
  58. package/dist/types/index.d.ts +32 -10
  59. package/dist/types/pages/Error/ErrorPage.stories.d.ts +7 -0
  60. package/dist/types/pages/Loading/Loading.stories.d.ts +8 -0
  61. package/dist/types/pages/NotFound/NotFound.stories.d.ts +6 -0
  62. package/dist/types/types/ButtonTheme.d.ts +5 -0
  63. package/package.json +2 -2
  64. package/dist/084688f4083437c38a98.ttf +0 -0
  65. package/dist/28937b70005aac17035d.ttf +0 -0
  66. package/dist/5f9e53103764bd328f6c.ttf +0 -0
  67. package/dist/types/components/atoms/Button/variants/MainButton.d.ts +0 -15
  68. package/dist/types/components/atoms/IconText/IconText.d.ts +0 -11
  69. package/dist/types/components/atoms/Input/Input.d.ts +0 -12
  70. package/dist/types/components/atoms/MultiTagPickerTag/MultiTagPickerTag.d.ts +0 -10
  71. package/dist/types/components/atoms/SearchSelect/SearchSelect.d.ts +0 -15
  72. package/dist/types/components/molecules/ConfirmModal/ConfirmModal.d.ts +0 -11
  73. package/dist/types/components/molecules/Modal/Modal.d.ts +0 -10
  74. package/dist/types/components/molecules/MultiTagPicker/MultiTagPicker.d.ts +0 -23
  75. package/dist/types/components/molecules/Search/Search.d.ts +0 -7
  76. package/dist/types/components/molecules/Sidebar/Sidebar.d.ts +0 -11
  77. package/dist/types/components/organisms/LazyLoader/LazyLoader.d.ts +0 -15
  78. package/dist/types/constants/Colors.d.ts +0 -28
  79. package/dist/types/constants/FontWeight.d.ts +0 -8
  80. package/dist/types/contexts/socketContext.d.ts +0 -14
  81. package/dist/types/exports/assets.d.ts +0 -0
  82. package/dist/types/exports/atoms.d.ts +0 -14
  83. package/dist/types/exports/constants.d.ts +0 -0
  84. package/dist/types/exports/contexts.d.ts +0 -3
  85. package/dist/types/exports/hooks.d.ts +0 -2
  86. package/dist/types/exports/layout.d.ts +0 -4
  87. package/dist/types/exports/molecules.d.ts +0 -4
  88. package/dist/types/exports/organisms.d.ts +0 -3
  89. package/dist/types/exports/pages.d.ts +0 -3
  90. package/dist/types/exports/styles.d.ts +0 -2
  91. package/dist/types/exports/types.d.ts +0 -7
  92. package/dist/types/exports/utils.d.ts +0 -1
  93. package/dist/types/styles/themes/ButtonThemes.d.ts +0 -6
  94. package/dist/types/styles/utils/utils.d.ts +0 -1
  95. package/dist/types/types/Fetcher.d.ts +0 -4
  96. package/dist/types/types/SelectableElement.d.ts +0 -6
  97. package/dist/types/types/SidebarMenu.d.ts +0 -10
  98. package/dist/types/types/themes/AcronymThemes.d.ts +0 -3
  99. package/dist/types/types/themes/ButtonThemes.d.ts +0 -18
  100. package/dist/types/types/themes/CustomSwitchThemes.d.ts +0 -3
  101. package/dist/types/types/themes/IconTextThemes.d.ts +0 -5
  102. package/dist/types/utils/stringUtils.d.ts +0 -3
@@ -0,0 +1,8 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import './Modal.scss';
3
+ type Props = PropsWithChildren<{
4
+ title: string;
5
+ onClose: () => void;
6
+ }>;
7
+ declare const Modal: ({ title, onClose, children }: Props) => React.JSX.Element;
8
+ export default Modal;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Modal from './Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Basic: Story;
@@ -0,0 +1,15 @@
1
+ import "./Operators.scss";
2
+ import React from "react";
3
+ type Props = {
4
+ label: string;
5
+ name: string;
6
+ type: "cui-choose_operator_title" | "cui-add_operator_title";
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ readOnly?: boolean;
10
+ mode?: "cui-add_logo";
11
+ selected?: boolean;
12
+ onSelect?: () => void;
13
+ };
14
+ declare const Operators: ({ label, name, type, placeholder, disabled, readOnly, mode, selected, onSelect, }: Props) => React.JSX.Element;
15
+ export default Operators;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Operators from "./Operators";
3
+ declare const meta: Meta<typeof Operators>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Operadora_01: Story;
7
+ export declare const Operadora_02: Story;
8
+ export declare const Nova_operadora: Story;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface LazyLoadListProps {
3
+ items: any[];
4
+ setItems: (items: any[]) => void;
5
+ page: number;
6
+ limit: number;
7
+ setPage: (page: number) => void;
8
+ hasMore: boolean;
9
+ setHasMore: (hasMore: boolean) => void;
10
+ filters: {
11
+ [key: string]: string;
12
+ };
13
+ }
14
+ declare const LazyLoadList: React.FC<LazyLoadListProps>;
15
+ export default LazyLoadList;
@@ -1,10 +1,9 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { LoggedUser } from '../../../types/LoggedUser';
3
3
  import './Profile.scss';
4
4
  type Props = {
5
5
  user: LoggedUser;
6
6
  handleLogout: () => void;
7
- notifications?: ReactNode;
8
7
  };
9
- declare const Profile: ({ user, handleLogout, notifications }: Props) => React.JSX.Element;
8
+ declare const Profile: ({ user, handleLogout }: Props) => React.JSX.Element;
10
9
  export default Profile;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Profile from './Profile';
3
+ import { ComponentProps } from 'react';
4
+ type StoryProps = ComponentProps<typeof Profile>;
5
+ declare const meta: Meta<StoryProps>;
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const ProfileStory: Story;
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
- import { Fetcher } from '../../../types/Fetcher';
4
- import './Selector.scss';
5
- import { SelectableElement } from '../../../types/SelectableElement';
6
- type SelectorProps<T extends SelectableElement> = {
7
- title: string;
8
- onClose: () => void;
9
- onConfirm: (selected: T[]) => void;
10
- onDisabled?: (disabled: T) => ReactNode;
11
- initiallySelected: T[];
12
- blocked?: string[];
13
- single?: boolean;
14
- icon: IconProp;
15
- fetcher: Fetcher;
16
- working?: boolean;
17
- };
18
- export declare const Selector: <T extends SelectableElement>({ title, icon, onClose, onConfirm, initiallySelected, blocked, fetcher, single, working, onDisabled, }: SelectorProps<T>) => React.JSX.Element;
19
- export {};
@@ -4,6 +4,5 @@ export declare const ApiProvider: React.FC<{
4
4
  children: React.ReactNode;
5
5
  baseURL: string;
6
6
  token?: string;
7
- withCredentials?: boolean;
8
7
  }>;
9
8
  export declare const useAxiosInstance: () => AxiosInstance;
@@ -1,11 +1,6 @@
1
- import React from 'react';
2
- import { KeycloakInstance } from 'keycloak-js';
3
- export interface LoggedUser {
4
- id: string;
5
- name: string;
6
- email: string;
7
- roles: string[];
8
- }
1
+ import React, { ReactNode } from 'react';
2
+ import { KeycloakConfig, KeycloakInstance } from 'keycloak-js';
3
+ import { LoggedUser } from '../types/LoggedUser';
9
4
  interface AuthContextProps {
10
5
  keycloak: KeycloakInstance | null;
11
6
  user: LoggedUser | null;
@@ -13,17 +8,18 @@ interface AuthContextProps {
13
8
  loading: boolean;
14
9
  login: () => void;
15
10
  logout: () => void;
16
- hasRole: (role: string) => boolean;
17
11
  }
18
- export interface AuthProviderProps {
19
- children: React.ReactNode;
20
- keycloakConfig: {
21
- url: string;
22
- realm: string;
23
- clientId: string;
24
- };
25
- allowedRoles: string[];
12
+ interface AuthProviderConfig {
13
+ keycloakConfig: KeycloakConfig;
14
+ cookieName?: string;
15
+ tokenRefreshInterval?: number;
16
+ minTokenValidity?: number;
17
+ onInitError?: (error: Error) => void;
18
+ onTokenRefreshError?: (error: Error) => void;
26
19
  }
27
- export declare const AuthProvider: React.FC<AuthProviderProps>;
20
+ export declare const AuthProvider: React.FC<{
21
+ children: ReactNode;
22
+ config: AuthProviderConfig;
23
+ }>;
28
24
  export declare const useAuth: () => AuthContextProps;
29
25
  export {};
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  type AllowedMethods = 'get' | 'post' | 'put' | 'delete' | 'patch';
3
- export interface RequestOptions {
3
+ interface RequestOptions {
4
4
  method: AllowedMethods;
5
5
  url: string;
6
6
  body?: object | FormData;
7
7
  params?: object;
8
8
  responseType?: 'blob';
9
- timeout?: number;
10
- signal?: AbortSignal;
11
9
  }
12
10
  export declare const useApi: () => {
13
11
  request: (options: RequestOptions) => Promise<any | null>;
@@ -1,10 +1,32 @@
1
- export * from './exports/atoms';
2
- export * from './exports/molecules';
3
- export * from './exports/organisms';
4
- export * from './exports/layout';
5
- export * from './exports/pages';
6
- export * from './exports/contexts';
7
- export * from './exports/hooks';
8
- export * from './exports/types';
9
- export * from './exports/styles';
10
- export * from './exports/utils';
1
+ export { default as Label } from './components/atoms/Label/Label';
2
+ export { default as BreadCrumb } from './components/atoms/BreadCrumb/BreadCrumb';
3
+ export { default as CustomSwitch } from './components/atoms/Switch/CustomSwitch';
4
+ export { default as Operators } from './components/moleculas/Operators/Operators';
5
+ export { default as Field } from './components/atoms/Field/Field';
6
+ export { default as Card1 } from './components/atoms/Card/Card1';
7
+ export { default as Card2 } from './components/atoms/Card/Card2';
8
+ export { default as Card3 } from './components/atoms/Card/Card3';
9
+ export { default as Card4 } from './components/atoms/Card/Card4';
10
+ export { default as Card5 } from './components/atoms/Card/Card5';
11
+ export { default as Card6 } from './components/atoms/Card/Card6';
12
+ export { default as Select } from './components/atoms/Select/Select';
13
+ export { default as ActionButton } from './components/atoms/Button/variants/ActionButton';
14
+ export { default as FilterButton } from './components/atoms/Button/variants/FilterButton';
15
+ export { default as IconButton } from './components/atoms/Button/variants/IconButton';
16
+ export { default as NavButton } from './components/atoms/Button/variants/NavButton';
17
+ export { default as TabButton } from './components/atoms/Button/variants/TabButton';
18
+ export { default as Stack } from './components/atoms/Stack/Stack';
19
+ export { default as Modal } from './components/moleculas/Modal/Modal';
20
+ export { default as FormItem } from './components/moleculas/FormItem/FormItem';
21
+ export { default as Profile } from './components/organisms/Profile/Profile';
22
+ export { default as Header } from './components/layout/Header/Header';
23
+ export { default as Footer } from './components/layout/Footer/Footer';
24
+ export { default as Error } from './components/layout/Error/Error';
25
+ export { default as Spinner } from './components/layout/Spinner/Spinner';
26
+ export { default as LoadingPage } from './pages/Loading/Loading';
27
+ export { default as ErrorPage } from './pages/Error/ErrorPage';
28
+ export { useAuth, AuthProvider } from './contexts/authContext';
29
+ export { ApiProvider } from './contexts/apiContext';
30
+ export { useApi } from './hooks/useApi';
31
+ export { LoggedUser } from './types/LoggedUser';
32
+ export { ButtonTheme } from './types/ButtonTheme';
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ErrorPage from './ErrorPage';
3
+ declare const meta: Meta<typeof ErrorPage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const MultipleErrors: Story;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import Loading from './Loading';
4
+ type StoryProps = ComponentProps<typeof Loading>;
5
+ declare const meta: Meta<StoryProps>;
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const LoadingStory: Story;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import NotFound from './NotFound';
3
+ declare const meta: Meta<typeof NotFound>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,5 @@
1
+ export type ButtonTheme = {
2
+ backgroundColor: string;
3
+ fontColor: string;
4
+ iconColor: string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "1.7.165",
3
+ "version": "1.7.167",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "storybook": "storybook dev -p 6006",
13
13
  "build-storybook": "storybook build",
14
14
  "pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish",
15
- "pubOnly": "npm run build && npm publish"
15
+ "pubOnly": "npm version patch && npm run build && npm publish"
16
16
  },
17
17
  "keywords": [],
18
18
  "author": "",
Binary file
Binary file
Binary file
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { PropsWithChildren } from 'react';
3
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
- import { MainButtonTheme } from '../../../../types/themes/ButtonThemes';
5
- import './MainButton.scss';
6
- type Props = PropsWithChildren<{
7
- icon: IconProp;
8
- title: string;
9
- description?: string;
10
- theme: MainButtonTheme;
11
- onClick: () => void;
12
- disabled?: boolean;
13
- }>;
14
- declare const MainButton: ({ icon, title, description, theme, onClick, disabled, }: Props) => React.JSX.Element;
15
- export default MainButton;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
- import './IconText.scss';
4
- import { IconTextTheme } from '../../../types/themes/IconTextThemes';
5
- interface IconTextProps {
6
- icon: IconProp;
7
- text: string;
8
- theme: IconTextTheme;
9
- }
10
- declare const IconText: React.FC<IconTextProps>;
11
- export default IconText;
@@ -1,12 +0,0 @@
1
- import React, { ChangeEvent } from 'react';
2
- import './Input.scss';
3
- type Props = {
4
- placeholder?: string;
5
- onChange: (e: ChangeEvent<HTMLInputElement>) => void;
6
- onBlur?: (e: ChangeEvent<HTMLInputElement>) => void;
7
- type?: 'number' | 'text';
8
- value?: string | number | null;
9
- disabled?: boolean;
10
- };
11
- declare const Input: ({ placeholder, onChange, onBlur, type, value, disabled, }: Props) => React.JSX.Element;
12
- export default Input;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './MultiTagPickerTag.scss';
3
- interface TagProps {
4
- id: string;
5
- label: string;
6
- selected: boolean;
7
- handleTagChange: (changedTo: boolean) => void;
8
- }
9
- declare const Select: React.FC<TagProps>;
10
- export default Select;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './SearchSelect.scss';
3
- interface Option {
4
- value: string;
5
- label: string;
6
- }
7
- type Props = {
8
- placeholder: string;
9
- options: Option[];
10
- option: string;
11
- onChange: (value: string) => void;
12
- disabled?: boolean;
13
- };
14
- declare function SearchSelect({ placeholder, options, option, disabled, onChange, }: Props): React.JSX.Element;
15
- export default SearchSelect;
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import './ConfirmModal.scss';
3
- interface ConfirmModal {
4
- title: string;
5
- children: ReactNode;
6
- handleCancel: () => void;
7
- handleConfirm: () => void;
8
- working: boolean;
9
- }
10
- declare function ConfirmModal({ title, children, handleCancel, handleConfirm, working, }: ConfirmModal): React.JSX.Element;
11
- export default ConfirmModal;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './Modal.scss';
3
- declare const Modal: React.ForwardRefExoticComponent<{
4
- title: string;
5
- modalOnly?: boolean;
6
- onClose: () => void;
7
- } & {
8
- children?: React.ReactNode | undefined;
9
- } & React.RefAttributes<HTMLDivElement>>;
10
- export default Modal;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import './MultiTagPicker.scss';
3
- export interface Option {
4
- id: string;
5
- label: string;
6
- }
7
- export interface MultiTagPickerProps {
8
- placeholder?: string;
9
- noOptionsLabel?: string;
10
- searchInput: string;
11
- editable: boolean;
12
- loading: boolean;
13
- optionsSelected: Option[];
14
- options: Option[];
15
- hasMoreItems: boolean;
16
- handleInputKeyDown?: () => void;
17
- handleInputChange?: (input: string) => void;
18
- handleRemoveItem: (itemId: string) => void;
19
- handleAddItem: (item: Option) => void;
20
- loadMore?: () => void;
21
- }
22
- declare const MultiTagPicker: React.FC<MultiTagPickerProps>;
23
- export default MultiTagPicker;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './Search.scss';
3
- type Props = {
4
- handleSearch: (searchTerm: string) => void;
5
- };
6
- export declare const Search: ({ handleSearch }: Props) => React.JSX.Element;
7
- export default Search;
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import './Sidebar.scss';
3
- interface SidebarProps {
4
- title: string;
5
- isHome: boolean;
6
- isOpen: boolean;
7
- onClose: () => void;
8
- children: ReactNode;
9
- }
10
- declare const Sidebar: React.FC<SidebarProps>;
11
- export default Sidebar;
@@ -1,15 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface LazyLoaderProps<T> {
3
- endpoint: string;
4
- params?: Record<string, unknown>;
5
- children: (items: T[], loading: boolean, error: ReactNode | null) => ReactNode;
6
- scrollableTarget?: string;
7
- className?: string;
8
- height?: number | string;
9
- scrollThreshold?: number | string;
10
- limit?: number;
11
- }
12
- export declare const LazyLoader: <T extends {
13
- id: string | number;
14
- }>({ endpoint, params, children, scrollableTarget, className, height, scrollThreshold, limit, }: LazyLoaderProps<T>) => React.JSX.Element;
15
- export {};
@@ -1,28 +0,0 @@
1
- export declare enum Color {
2
- BRIGHT_BLUE = "#006fff",
3
- BRIGHT_GREEN = "#17daa4",
4
- DARK_BLUE = "#010060",
5
- LIGHT_GRAY_01 = "#dddddd",
6
- ALMOST_WHITE = "#f8f8f8",
7
- ALMOST_BLACK = "#1f1f1f",
8
- MEDIUM_BLUE = "#87a9ff",
9
- MEDIUM_GREEN = "#b0ebdb",
10
- MEDIUM_DARK_BLUE = "#7d7dab",
11
- MEDIUM_GRAY_01 = "#c2c2c2",
12
- LIGHT_GRAY_02 = "#ededed",
13
- LIGHT_BLUE = "#cedcff",
14
- DARK_GRAY = "#6c6c6c",
15
- WARM_YELLOW = "#ebc25a",
16
- WARM_ORANGE = "#eb745a",
17
- LIGHT_YELLOW = "#ffedbf",
18
- BRIGHT_PURPLE = "#801de2",
19
- REJECTED = "#de4321",
20
- APPROVED = "#1dc88a",
21
- STAND_BY = "#ffcc4a",
22
- BG_LIGHT_YELLOW = "#ffedbf",
23
- DARK_YELLOW = "#856404",
24
- BG_LIGHT_RED = "#ffbdae",
25
- DARK_RED = "#842029",
26
- BG_SUCCESS = "#8ef8d2",
27
- DARK_green = "#0f5132"
28
- }
@@ -1,8 +0,0 @@
1
- export declare enum FontWeight {
2
- LIGHT = "light",
3
- MEDIUM = "medium",
4
- REGULAR = "regular",
5
- SEMIBOLD = "semibold",
6
- BOLD = "bold"
7
- }
8
- export declare const WeightValue: Record<FontWeight, number>;
@@ -1,14 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { Socket } from 'socket.io-client';
3
- interface SocketProviderProps {
4
- children: ReactNode;
5
- config: {
6
- serverUrl: string;
7
- path?: string;
8
- transports?: string[];
9
- query?: Record<string, string>;
10
- };
11
- }
12
- export declare const SocketProvider: React.FC<SocketProviderProps>;
13
- export declare const useSocket: () => Socket | null;
14
- export {};
File without changes
@@ -1,14 +0,0 @@
1
- export { default as CustomSwitch } from '../components/atoms/Switch/CustomSwitch';
2
- export { default as BreadCrumb } from '../components/atoms/BreadCrumb/BreadCrumb';
3
- export { default as IconText } from '../components/atoms/IconText/IconText';
4
- export { default as Acronym } from '../components/atoms/Acronym/Acronym';
5
- export { default as Label } from '../components/atoms/Label/Label';
6
- export { default as Field } from '../components/atoms/Field/Field';
7
- export { default as Select } from '../components/atoms/Select/Select';
8
- export { default as ActionButton } from '../components/atoms/Button/variants/ActionButton';
9
- export { default as FilterButton } from '../components/atoms/Button/variants/FilterButton';
10
- export { default as IconButton } from '../components/atoms/Button/variants/IconButton';
11
- export { default as TabButton } from '../components/atoms/Button/variants/TabButton';
12
- export { default as MainButton } from '../components/atoms/Button/variants/MainButton';
13
- export { default as Stack } from '../components/atoms/Stack/Stack';
14
- export { default as Tooltip } from '../components/atoms/Tooltip/Tooltip';
File without changes
@@ -1,3 +0,0 @@
1
- export { useAuth, AuthProvider } from '../contexts/authContext';
2
- export { ApiProvider } from '../contexts/apiContext';
3
- export { useSocket, SocketProvider } from '../contexts/socketContext';
@@ -1,2 +0,0 @@
1
- export { useApi } from '../hooks/useApi';
2
- export { RequestOptions } from '../hooks/useApi';
@@ -1,4 +0,0 @@
1
- export { default as Header } from '../components/layout/Header/Header';
2
- export { default as Footer } from '../components/layout/Footer/Footer';
3
- export { default as Error } from '../components/layout/Error/Error';
4
- export { default as Spinner } from '../components/layout/Spinner/Spinner';
@@ -1,4 +0,0 @@
1
- export { default as Modal } from '../components/molecules/Modal/Modal';
2
- export { default as Sidebar } from '../components/molecules/Sidebar/Sidebar';
3
- export { default as MultiTagPicker, Option, } from '../components/molecules/MultiTagPicker/MultiTagPicker';
4
- export { default as ConfirmModal } from '../components/molecules/ConfirmModal/ConfirmModal';
@@ -1,3 +0,0 @@
1
- export { default as Profile } from '../components/organisms/Profile/Profile';
2
- export { LazyLoader } from '../components/organisms/LazyLoader/LazyLoader';
3
- export { Selector } from '../components/organisms/Selector/Selector';
@@ -1,3 +0,0 @@
1
- export { default as LoadingPage } from '../pages/Loading/Loading';
2
- export { default as ErrorPage } from '../pages/Error/ErrorPage';
3
- export { default as NotFoundPage } from '../pages/NotFound/NotFound';
@@ -1,2 +0,0 @@
1
- export { getCSSVariable } from '../styles/utils/utils';
2
- export { FontWeight } from '../constants/FontWeight';
@@ -1,7 +0,0 @@
1
- export { LoggedUser } from '../types/LoggedUser';
2
- export { Menu, Submenu } from '../types/SidebarMenu';
3
- export { Fetcher } from '../types/Fetcher';
4
- export { IconTextTheme } from '../types/themes/IconTextThemes';
5
- export { ActionButtonTheme, IconButtonTheme, MainButtonTheme, } from '../types/themes/ButtonThemes';
6
- export { AcronymTheme } from '../types/themes/AcronymThemes';
7
- export { CustomSwitchTheme } from '../types/themes/CustomSwitchThemes';
@@ -1 +0,0 @@
1
- export { getAcronym, getFirstAndLastName, partialMatchWithUsername, } from '../utils/stringUtils';
@@ -1,6 +0,0 @@
1
- import { IconTextTheme } from '../../exports/types';
2
- import { ActionButtonTheme, IconButtonTheme } from '../../types/themes/ButtonThemes';
3
- export declare const ActionButtonThemeStyled: ActionButtonTheme;
4
- export declare const IconButtonThemeStyled: IconButtonTheme;
5
- export declare const IconTextDarkThemeStyled: IconTextTheme;
6
- export declare const IconTextLightThemeStyled: IconTextTheme;
@@ -1 +0,0 @@
1
- export declare const getCSSVariable: (variable: string) => string;
@@ -1,4 +0,0 @@
1
- export interface Fetcher {
2
- endpoint: string;
3
- params?: Record<string, unknown>;
4
- }
@@ -1,6 +0,0 @@
1
- export type SelectableElement = {
2
- id: string;
3
- name: string;
4
- code?: string;
5
- disabled?: boolean;
6
- };
@@ -1,10 +0,0 @@
1
- export interface Submenu {
2
- name: string;
3
- path: string;
4
- external: boolean;
5
- icon?: string;
6
- }
7
- export interface Menu {
8
- name: string;
9
- submenus: Submenu[];
10
- }
@@ -1,3 +0,0 @@
1
- export interface AcronymTheme {
2
- mode: 'dark' | 'light';
3
- }
@@ -1,18 +0,0 @@
1
- import { FontWeight } from '../../constants/FontWeight';
2
- export interface ActionButtonTheme {
3
- backgroundColor: string;
4
- fontColor: string;
5
- iconColor: string;
6
- fontWeight?: FontWeight;
7
- hoverBackgroundColor?: string;
8
- size: 'default' | 'compact' | 'large';
9
- }
10
- export interface IconButtonTheme {
11
- backgroundColor: string;
12
- iconColor: string;
13
- size: 'default' | 'compact' | 'large' | 'ultra-compact';
14
- }
15
- export interface MainButtonTheme {
16
- backgroundColor: string;
17
- color: string;
18
- }
@@ -1,3 +0,0 @@
1
- export interface CustomSwitchTheme {
2
- size: 'default' | 'compact' | 'large';
3
- }