@nextelco/common-ui 1.7.2 → 1.7.21
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/bundle.js +1 -1
- package/dist/types/components/atoms/MultiTagPickerTag/MultiTagPickerTag.d.ts +10 -0
- package/dist/types/components/atoms/MultiTagPickerTag/MultiTagPickerTag.stories.d.ts +7 -0
- package/dist/types/components/molecules/MultiTagPicker/MultiTagPicker.d.ts +21 -0
- package/dist/types/components/molecules/MultiTagPicker/MultiTagPicker.stories.d.ts +6 -0
- package/dist/types/contexts/modalContext.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -1
@@ -0,0 +1,10 @@
|
|
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;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import MultiTagPickerTag from './MultiTagPickerTag';
|
3
|
+
import './MultiTagPickerTag.scss';
|
4
|
+
declare const meta: Meta<typeof MultiTagPickerTag>;
|
5
|
+
export default meta;
|
6
|
+
type Story = StoryObj<typeof meta>;
|
7
|
+
export declare const Default: Story;
|
@@ -0,0 +1,21 @@
|
|
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
|
+
handleInputKeyDown?: () => void;
|
16
|
+
handleInputChange?: (input: string) => void;
|
17
|
+
handleRemoveItem: (itemId: string) => void;
|
18
|
+
handleAddItem: (item: Option) => void;
|
19
|
+
}
|
20
|
+
declare const MultiTagPicker: React.FC<MultiTagPickerProps>;
|
21
|
+
export default MultiTagPicker;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface ModalProps {
|
3
|
+
allowScroll: boolean;
|
4
|
+
setAllowScroll: React.Dispatch<React.SetStateAction<boolean>>;
|
5
|
+
}
|
6
|
+
export declare function ModalProvider({ children }: {
|
7
|
+
children: React.ReactNode;
|
8
|
+
}): React.JSX.Element;
|
9
|
+
export declare function useModal(): ModalProps;
|
10
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
@@ -30,6 +30,7 @@ export { default as LoadingPage } from './pages/Loading/Loading';
|
|
30
30
|
export { default as ErrorPage } from './pages/Error/ErrorPage';
|
31
31
|
export { default as NotFoundPage } from './pages/NotFound/NotFound';
|
32
32
|
export { useAuth, AuthProvider } from './contexts/authContext';
|
33
|
+
export { ModalProvider } from './contexts/modalContext';
|
33
34
|
export { ApiProvider } from './contexts/apiContext';
|
34
35
|
export { useApi } from './hooks/useApi';
|
35
36
|
export { LoggedUser } from './types/LoggedUser';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nextelco/common-ui",
|
3
|
-
"version": "1.7.
|
3
|
+
"version": "1.7.21",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/bundle.js",
|
6
6
|
"types": "dist/types/index.d.ts",
|
@@ -59,6 +59,7 @@
|
|
59
59
|
"js-cookie": "^3.0.5",
|
60
60
|
"keycloak-js": "^25.0.0",
|
61
61
|
"react-infinite-scroll-component": "^6.1.0",
|
62
|
+
"react-remove-scroll": "^2.6.3",
|
62
63
|
"react-switch": "^7.1.0",
|
63
64
|
"react-tooltip": "^5.28.0",
|
64
65
|
"tough-cookie": "^5.1.2"
|