@omniumretail/component-library 1.2.76 → 1.2.77
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/component-library.es.js +354 -323
- package/dist/component-library.umd.js +4 -4
- package/dist/components/AnalyticsBar/helpers/codeMutation.d.ts +2 -3
- package/dist/components/AnalyticsBar/index.d.ts +1 -2
- package/dist/components/AnalyticsBar/interfaces/analyticsBar.d.ts +12 -12
- package/dist/components/BellNotifications/index.d.ts +23 -23
- package/dist/components/Button/index.d.ts +6 -7
- package/dist/components/Category/CategoryContent/index.d.ts +10 -10
- package/dist/components/Category/CategorySidebar/index.d.ts +28 -28
- package/dist/components/Category/index.d.ts +9 -10
- package/dist/components/CategoryReadOnly/evaluationOptions.d.ts +10 -10
- package/dist/components/CategoryReadOnly/index.d.ts +9 -10
- package/dist/components/CategoryResponse/evaluationOptions.d.ts +10 -10
- package/dist/components/CategoryResponse/index.d.ts +14 -15
- package/dist/components/DatePicker/index.d.ts +7 -8
- package/dist/components/DatePickerTag/index.d.ts +5 -6
- package/dist/components/DropdownButton/index.d.ts +10 -11
- package/dist/components/ExportTableData/index.d.ts +8 -8
- package/dist/components/Footer/index.d.ts +5 -5
- package/dist/components/Footer2/index.d.ts +59 -60
- package/dist/components/Header/Header.data.d.ts +2 -3
- package/dist/components/Header/Header.types.d.ts +28 -29
- package/dist/components/Header/index.d.ts +6 -7
- package/dist/components/Input/index.d.ts +9 -10
- package/dist/components/InputCountryCode/index.d.ts +10 -11
- package/dist/components/Label/index.d.ts +7 -7
- package/dist/components/Link/index.d.ts +6 -7
- package/dist/components/Menu/helpers/codeMutation.d.ts +2 -3
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/MobileTable/index.d.ts +21 -22
- package/dist/components/ModalConfirmation/ModalStatusList.d.ts +5 -5
- package/dist/components/ModalConfirmation/index.d.ts +9 -9
- package/dist/components/ModalWithTable/index.d.ts +15 -16
- package/dist/components/Navigation/index.d.ts +15 -15
- package/dist/components/Notification/index.d.ts +12 -13
- package/dist/components/Questions/SingleQuestion/index.d.ts +1 -1
- package/dist/components/Questions/index.d.ts +11 -11
- package/dist/components/Radio/index.d.ts +8 -9
- package/dist/components/ResponseType/index.d.ts +7 -7
- package/dist/components/ResponsiveTable/index.d.ts +52 -53
- package/dist/components/Select/index.d.ts +4 -5
- package/dist/components/Separator/index.d.ts +11 -11
- package/dist/components/Sidebar/index.d.ts +14 -15
- package/dist/components/Switch/index.d.ts +4 -5
- package/dist/components/Table/index.d.ts +45 -46
- package/dist/components/Tag/index.d.ts +26 -27
- package/dist/components/Upload/index.d.ts +10 -11
- package/dist/components/UserInfo/index.d.ts +9 -9
- package/dist/components/WebCam/index.d.ts +7 -8
- package/dist/components/index.d.ts +34 -34
- package/dist/constants/i18n.d.ts +1 -1
- package/dist/constants/logoCompanyHelper.d.ts +28 -28
- package/dist/constants/translationHelper.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/package.json +28 -28
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TagProps } from 'antd';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export declare const TagField: (props: customTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export interface customTagProps extends TagProps {
|
|
4
|
+
customTags?: string[];
|
|
5
|
+
tagsInfo?: (tags: string[]) => void;
|
|
6
|
+
advancedTagsInfo?: (tags: string[]) => void;
|
|
7
|
+
advancedTags?: {
|
|
8
|
+
display: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
addExtraTags?: string;
|
|
12
|
+
disable?: boolean;
|
|
13
|
+
addSwitch?: boolean;
|
|
14
|
+
setInactiveUsersSwitch?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
15
|
+
hideAdvancedFilters?: boolean;
|
|
16
|
+
defaultAdvancedFilters?: {
|
|
17
|
+
display: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
inputPlacehold?: string;
|
|
21
|
+
inputDefaultAdvancedFilter?: string;
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
extraButtons?: {
|
|
24
|
+
icon: React.ReactNode;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
export declare const TagField: (props: customTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { UploadFile, UploadProps } from 'antd/es/upload/interface';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
-
export {};
|
|
3
|
+
interface UploadPropsExtended extends UploadProps {
|
|
4
|
+
onImageChange?: (file: UploadFile | null) => void;
|
|
5
|
+
initialFileList?: UploadFile[];
|
|
6
|
+
initialImageUrl?: string;
|
|
7
|
+
disable?: boolean;
|
|
8
|
+
file?: boolean;
|
|
9
|
+
setFiles?: Dispatch<SetStateAction<UploadFile<any>[]>> | any;
|
|
10
|
+
}
|
|
11
|
+
export declare const Upload: (props: UploadPropsExtended) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface UserInfoProps {
|
|
2
|
-
userData: any;
|
|
3
|
-
userImage: string;
|
|
4
|
-
userName: string;
|
|
5
|
-
userCode: string;
|
|
6
|
-
userInfoTranslationsKey?: string;
|
|
7
|
-
customClass?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const UserInfo: ({ userData, customClass, userImage, userName, userCode, userInfoTranslationsKey, }: UserInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface UserInfoProps {
|
|
2
|
+
userData: any;
|
|
3
|
+
userImage: string;
|
|
4
|
+
userName: string;
|
|
5
|
+
userCode: string;
|
|
6
|
+
userInfoTranslationsKey?: string;
|
|
7
|
+
customClass?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const UserInfo: ({ userData, customClass, userImage, userName, userCode, userInfoTranslationsKey, }: UserInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export {};
|
|
2
|
+
interface CameraCaptureProps {
|
|
3
|
+
isCameraOn: boolean;
|
|
4
|
+
customClass?: string;
|
|
5
|
+
setImgSrc: React.Dispatch<React.SetStateAction<string>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const CameraCapture: React.FC<CameraCaptureProps>;
|
|
8
|
+
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from './Button';
|
|
2
|
-
export * from './Navigation';
|
|
3
|
-
export * from './Input';
|
|
4
|
-
export * from './InputCountryCode';
|
|
5
|
-
export * from './Label';
|
|
6
|
-
export * from './Link';
|
|
7
|
-
export * from './Select';
|
|
8
|
-
export * from './Separator';
|
|
9
|
-
export * from './Table';
|
|
10
|
-
export * from './Tag';
|
|
11
|
-
export * from './DatePicker';
|
|
12
|
-
export * from './Radio';
|
|
13
|
-
export * from './Footer';
|
|
14
|
-
export * from './ModalConfirmation';
|
|
15
|
-
export * from './ModalWithTable';
|
|
16
|
-
export * from './Sidebar';
|
|
17
|
-
export * from './Switch';
|
|
18
|
-
export * from './Category';
|
|
19
|
-
export * from './DatePickerTag';
|
|
20
|
-
export * from './AnalyticsBar';
|
|
21
|
-
export * from './CategoryResponse';
|
|
22
|
-
export * from './Upload';
|
|
23
|
-
export * from './UserInfo';
|
|
24
|
-
export * from './CategoryReadOnly';
|
|
25
|
-
export * from './Notification';
|
|
26
|
-
export * from './ExportTableData';
|
|
27
|
-
export * from './DropdownButton';
|
|
28
|
-
export * from './ResponsiveTable';
|
|
29
|
-
export * from './WebCam';
|
|
30
|
-
export * from './ResponseType';
|
|
31
|
-
export * from './Header';
|
|
32
|
-
export * from './BellNotifications';
|
|
33
|
-
export * from './MobileTable';
|
|
34
|
-
export * from './Footer2';
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Navigation';
|
|
3
|
+
export * from './Input';
|
|
4
|
+
export * from './InputCountryCode';
|
|
5
|
+
export * from './Label';
|
|
6
|
+
export * from './Link';
|
|
7
|
+
export * from './Select';
|
|
8
|
+
export * from './Separator';
|
|
9
|
+
export * from './Table';
|
|
10
|
+
export * from './Tag';
|
|
11
|
+
export * from './DatePicker';
|
|
12
|
+
export * from './Radio';
|
|
13
|
+
export * from './Footer';
|
|
14
|
+
export * from './ModalConfirmation';
|
|
15
|
+
export * from './ModalWithTable';
|
|
16
|
+
export * from './Sidebar';
|
|
17
|
+
export * from './Switch';
|
|
18
|
+
export * from './Category';
|
|
19
|
+
export * from './DatePickerTag';
|
|
20
|
+
export * from './AnalyticsBar';
|
|
21
|
+
export * from './CategoryResponse';
|
|
22
|
+
export * from './Upload';
|
|
23
|
+
export * from './UserInfo';
|
|
24
|
+
export * from './CategoryReadOnly';
|
|
25
|
+
export * from './Notification';
|
|
26
|
+
export * from './ExportTableData';
|
|
27
|
+
export * from './DropdownButton';
|
|
28
|
+
export * from './ResponsiveTable';
|
|
29
|
+
export * from './WebCam';
|
|
30
|
+
export * from './ResponseType';
|
|
31
|
+
export * from './Header';
|
|
32
|
+
export * from './BellNotifications';
|
|
33
|
+
export * from './MobileTable';
|
|
34
|
+
export * from './Footer2';
|
package/dist/constants/i18n.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mergei18n: (appResources: any) => void;
|
|
1
|
+
export declare const mergei18n: (appResources: any) => void;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface CompanyLogo {
|
|
2
|
-
normal: string;
|
|
3
|
-
white: string;
|
|
4
|
-
alt: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Obtém os logos de uma empresa específica
|
|
8
|
-
* @param companyName - Nome da empresa
|
|
9
|
-
* @returns Objeto com os logos normal, white e alt da empresa
|
|
10
|
-
*/
|
|
11
|
-
export declare const getCompanyLogos: (companyName: string) => CompanyLogo;
|
|
12
|
-
/**
|
|
13
|
-
* Verifica se uma empresa possui logos configurados
|
|
14
|
-
* @param companyName - Nome da empresa
|
|
15
|
-
* @returns Boolean indicando se a empresa existe no mapa de logos
|
|
16
|
-
*/
|
|
17
|
-
export declare const hasCompanyLogos: (companyName: string) => boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Obtém a lista de empresas disponíveis
|
|
20
|
-
* @returns Array com os nomes das empresas configuradas
|
|
21
|
-
*/
|
|
22
|
-
export declare const getAvailableCompanies: () => string[];
|
|
23
|
-
declare const _default: {
|
|
24
|
-
getCompanyLogos: (companyName: string) => CompanyLogo;
|
|
25
|
-
hasCompanyLogos: (companyName: string) => boolean;
|
|
26
|
-
getAvailableCompanies: () => string[];
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
1
|
+
export interface CompanyLogo {
|
|
2
|
+
normal: string;
|
|
3
|
+
white: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Obtém os logos de uma empresa específica
|
|
8
|
+
* @param companyName - Nome da empresa
|
|
9
|
+
* @returns Objeto com os logos normal, white e alt da empresa
|
|
10
|
+
*/
|
|
11
|
+
export declare const getCompanyLogos: (companyName: string) => CompanyLogo;
|
|
12
|
+
/**
|
|
13
|
+
* Verifica se uma empresa possui logos configurados
|
|
14
|
+
* @param companyName - Nome da empresa
|
|
15
|
+
* @returns Boolean indicando se a empresa existe no mapa de logos
|
|
16
|
+
*/
|
|
17
|
+
export declare const hasCompanyLogos: (companyName: string) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Obtém a lista de empresas disponíveis
|
|
20
|
+
* @returns Array com os nomes das empresas configuradas
|
|
21
|
+
*/
|
|
22
|
+
export declare const getAvailableCompanies: () => string[];
|
|
23
|
+
declare const _default: {
|
|
24
|
+
getCompanyLogos: (companyName: string) => CompanyLogo;
|
|
25
|
+
hasCompanyLogos: (companyName: string) => boolean;
|
|
26
|
+
getAvailableCompanies: () => string[];
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const translate: (key: any, options?: {}) => string;
|
|
2
|
-
export default translate;
|
|
1
|
+
declare const translate: (key: any, options?: {}) => string;
|
|
2
|
+
export default translate;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export * from './constants/i18n';
|
|
3
|
-
export * from './constants/logoCompanyHelper';
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './constants/i18n';
|
|
3
|
+
export * from './constants/logoCompanyHelper';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.77",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/component-library.umd.js",
|
|
6
6
|
"module": "dist/component-library.es.js",
|
|
@@ -18,52 +18,52 @@
|
|
|
18
18
|
"react-i18next": "^12.1.4"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"camelcase": "^
|
|
21
|
+
"camelcase": "^8.0.0",
|
|
22
22
|
"classnames": "^2.3.2",
|
|
23
23
|
"lodash.merge": "^4.6.2"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
+
"@e965/xlsx": "^0.20.3",
|
|
26
27
|
"@hello-pangea/dnd": "^18.0.1",
|
|
27
28
|
"antd-img-crop": "^4.10.2",
|
|
28
29
|
"browser-image-compression": "^2.0.2",
|
|
29
30
|
"html2canvas": "^1.4.1",
|
|
30
|
-
"i18next-browser-languagedetector": "^
|
|
31
|
-
"i18next-fetch-backend": "^
|
|
31
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
32
|
+
"i18next-fetch-backend": "^6.0.0",
|
|
32
33
|
"jspdf": "^3.0.2",
|
|
33
34
|
"rc-tween-one": "^3.0.6",
|
|
34
|
-
"react-easy-crop": "^
|
|
35
|
-
"react-webcam": "^7.1.1"
|
|
36
|
-
"@e965/xlsx": "^0.20.3"
|
|
35
|
+
"react-easy-crop": "^5.5.0",
|
|
36
|
+
"react-webcam": "^7.1.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@ant-design/icons": "^
|
|
40
|
-
"@storybook/addon-docs": "9.1.
|
|
41
|
-
"@storybook/addon-links": "^9.1.
|
|
42
|
-
"@storybook/cli": "^9.1.
|
|
43
|
-
"@storybook/react-vite": "^9.1.
|
|
39
|
+
"@ant-design/icons": "^6.0.1",
|
|
40
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
41
|
+
"@storybook/addon-links": "^9.1.5",
|
|
42
|
+
"@storybook/cli": "^9.1.5",
|
|
43
|
+
"@storybook/react-vite": "^9.1.5",
|
|
44
44
|
"@types/lodash.merge": "^4.6.9",
|
|
45
|
-
"@types/node": "^
|
|
46
|
-
"@types/react": "^
|
|
45
|
+
"@types/node": "^24.3.1",
|
|
46
|
+
"@types/react": "^19.1.12",
|
|
47
47
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
48
|
-
"@types/react-dom": "^
|
|
49
|
-
"@vitejs/plugin-react": "^5.0.
|
|
50
|
-
"antd": "^5.
|
|
51
|
-
"dayjs": "^1.11.
|
|
52
|
-
"i18next": "^
|
|
48
|
+
"@types/react-dom": "^19.1.9",
|
|
49
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
50
|
+
"antd": "^5.27.3",
|
|
51
|
+
"dayjs": "^1.11.18",
|
|
52
|
+
"i18next": "^25.5.2",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
56
|
-
"react-i18next": "^
|
|
57
|
-
"sass": "^1.
|
|
58
|
-
"sass-loader": "^
|
|
54
|
+
"react": "^19.1.1",
|
|
55
|
+
"react-dom": "^19.1.1",
|
|
56
|
+
"react-i18next": "^15.7.3",
|
|
57
|
+
"sass": "^1.92.1",
|
|
58
|
+
"sass-loader": "^16.0.5",
|
|
59
59
|
"storybook-css-modules": "^1.0.8",
|
|
60
|
-
"terser": "^5.
|
|
60
|
+
"terser": "^5.44.0",
|
|
61
61
|
"tsconfig-paths": "^4.2.0",
|
|
62
|
-
"typescript": "^
|
|
62
|
+
"typescript": "^5.9.2",
|
|
63
63
|
"vite": "^7.1.5",
|
|
64
64
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
65
65
|
"vite-plugin-dts": "^4.5.4",
|
|
66
|
-
"web-vitals": "^
|
|
66
|
+
"web-vitals": "^5.1.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"prepublish": "rd /s /q .\\dist && yarn build",
|
|
@@ -89,4 +89,4 @@
|
|
|
89
89
|
"last 1 safari version"
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
|
-
}
|
|
92
|
+
}
|