@omniumretail/component-library 1.0.98 → 1.0.99

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 (30) hide show
  1. package/dist/bundle.js +1 -12069
  2. package/dist/main.css +26 -1308
  3. package/dist/types/components/AnalyticsBar/index.d.ts +1 -1
  4. package/dist/types/components/Button/index.d.ts +1 -1
  5. package/dist/types/components/Category/CategoryContent/index.d.ts +1 -1
  6. package/dist/types/components/Category/CategorySidebar/index.d.ts +1 -1
  7. package/dist/types/components/Category/index.d.ts +1 -1
  8. package/dist/types/components/DatePicker/index.d.ts +1 -1
  9. package/dist/types/components/DatePickerTag/index.d.ts +1 -1
  10. package/dist/types/components/Footer/index.d.ts +1 -1
  11. package/dist/types/components/Input/index.d.ts +2 -2
  12. package/dist/types/components/InputCountryCode/index.d.ts +1 -1
  13. package/dist/types/components/Label/index.d.ts +1 -1
  14. package/dist/types/components/Link/index.d.ts +1 -1
  15. package/dist/types/components/Menu/index.d.ts +1 -2
  16. package/dist/types/components/ModalConfirmation/index.d.ts +1 -1
  17. package/dist/types/components/ModalWithTable/index.d.ts +1 -1
  18. package/dist/types/components/Navigation/index.d.ts +1 -1
  19. package/dist/types/components/Questions/SingleQuestion/index.d.ts +1 -1
  20. package/dist/types/components/Questions/index.d.ts +1 -1
  21. package/dist/types/components/Radio/index.d.ts +2 -2
  22. package/dist/types/components/Separator/index.d.ts +1 -1
  23. package/dist/types/components/Sidebar/index.d.ts +1 -1
  24. package/dist/types/components/Switch/index.d.ts +1 -1
  25. package/dist/types/components/Table/index.d.ts +1 -1
  26. package/dist/types/components/Tag/index.d.ts +1 -1
  27. package/dist/types/components/Upload/index.d.ts +1 -1
  28. package/dist/types/components/UserInfo/index.d.ts +1 -1
  29. package/package.json +2 -18
  30. package/webpack.config.js +1 -1
@@ -1,2 +1,2 @@
1
1
  import { AnalyticsBarProps } from './interfaces/analyticsBar';
2
- export declare const AnalyticsBar: (props: AnalyticsBarProps) => JSX.Element;
2
+ export declare const AnalyticsBar: (props: AnalyticsBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export interface CustomButtonProps extends ButtonProps {
4
4
  buttonStyle?: string;
5
5
  customClass?: string;
6
6
  }
7
- export declare const Button: ({ customClass, ...props }: CustomButtonProps) => JSX.Element;
7
+ export declare const Button: ({ customClass, ...props }: CustomButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,5 @@ interface categoryContent {
3
3
  categoryContentInfo: any;
4
4
  categorySidebarData: any;
5
5
  }
6
- export declare const CategoryContent: (props: categoryContent) => JSX.Element;
6
+ export declare const CategoryContent: (props: categoryContent) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -22,5 +22,5 @@ interface SidebarProps {
22
22
  categoryContentFinalData: any;
23
23
  data: DataNode[];
24
24
  }
25
- export declare const CategorySidebar: (props: SidebarProps) => JSX.Element;
25
+ export declare const CategorySidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
26
26
  export {};
@@ -3,5 +3,5 @@ interface Category {
3
3
  data: DataNode[];
4
4
  serverReadyData: any;
5
5
  }
6
- export declare const Category: (props: Category) => JSX.Element;
6
+ export declare const Category: (props: Category) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -5,4 +5,4 @@ export type CustomDatePickerProps = DatePickerProps & {
5
5
  disabled?: boolean;
6
6
  defaultValue?: any;
7
7
  };
8
- export declare const CustomDatePicker: ({ className, onChange, value, isRangePicker, disabled, defaultValue, ...rest }: CustomDatePickerProps) => JSX.Element;
8
+ export declare const CustomDatePicker: ({ className, onChange, value, isRangePicker, disabled, defaultValue, ...rest }: CustomDatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ export interface DatePickerTagProps extends TagProps {
3
3
  customTags?: any;
4
4
  tagsInfo?: any;
5
5
  }
6
- export declare const DatePickerTag: (props: DatePickerTagProps) => JSX.Element;
6
+ export declare const DatePickerTag: (props: DatePickerTagProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ export interface FooterProps {
2
2
  storeName: string;
3
3
  favIcon?: boolean;
4
4
  }
5
- export declare const Footer: (props: FooterProps) => JSX.Element;
5
+ export declare const Footer: (props: FooterProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,5 @@ export interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
6
6
  export interface inputPropsCustom extends InputProps {
7
7
  customClass?: string;
8
8
  }
9
- export declare const InputField: ({ customClass, ...inputProps }: inputPropsCustom) => JSX.Element;
10
- export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => JSX.Element;
9
+ export declare const InputField: ({ customClass, ...inputProps }: inputPropsCustom) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,4 +7,4 @@ export interface FormInputCountryCodeProps extends Omit<FormItemProps, "name"> {
7
7
  value?: string;
8
8
  onChange?: (value: any) => void;
9
9
  }
10
- export declare const InputCountryCode: ({ inputProps, selectProps, name, inputWithSelectBoxValue, value, onChange, ...itemProps }: FormInputCountryCodeProps) => JSX.Element;
10
+ export declare const InputCountryCode: ({ inputProps, selectProps, name, inputWithSelectBoxValue, value, onChange, ...itemProps }: FormInputCountryCodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export interface LabelProps {
4
4
  customStyle?: string;
5
5
  isUppercase?: boolean;
6
6
  }
7
- export declare const Label: (props: LabelProps) => JSX.Element;
7
+ export declare const Label: (props: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export interface CustomLinkProps extends ButtonProps {
4
4
  linkSecondary?: boolean;
5
5
  customClass?: string;
6
6
  }
7
- export declare const Link: ({ customClass, iconAlignRight, linkSecondary, ...props }: CustomLinkProps) => JSX.Element;
7
+ export declare const Link: ({ customClass, iconAlignRight, linkSecondary, ...props }: CustomLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { MenuProps } from 'antd';
3
- export declare const Menu: (props: MenuProps) => JSX.Element;
2
+ export declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,4 @@ export interface ModalConfirmationProps {
6
6
  isOpen: boolean;
7
7
  modalData?: any;
8
8
  }
9
- export declare const ModalConfirmation: (props: ModalConfirmationProps) => JSX.Element;
9
+ export declare const ModalConfirmation: (props: ModalConfirmationProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,4 +13,4 @@ export interface ModalWithTableProps {
13
13
  value: string;
14
14
  }[];
15
15
  }
16
- export declare const ModalWithTable: (props: ModalWithTableProps) => JSX.Element;
16
+ export declare const ModalWithTable: (props: ModalWithTableProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export interface NavigationProps {
8
8
  backLinkOnClickFunction?: () => void;
9
9
  homeOnClickFunction?: () => void;
10
10
  }
11
- export declare const Navigation: (props: NavigationProps) => JSX.Element;
11
+ export declare const Navigation: (props: NavigationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const SingleQuestion: ({ key, provided, snapshot, remove, name, showGrade, handleChanges, ...restField }: any) => JSX.Element;
1
+ export declare const SingleQuestion: ({ key, provided, snapshot, remove, name, showGrade, handleChanges, ...restField }: any) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ export interface QuestionsProps {
2
2
  showGrade?: boolean;
3
3
  handleChanges: any;
4
4
  }
5
- export declare const Questions: (props: QuestionsProps) => JSX.Element;
5
+ export declare const Questions: (props: QuestionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import type { RadioProps } from 'antd';
2
2
  import type { RadioGroupProps } from 'antd/lib/radio';
3
- export declare const Radio: ({ ...radioProps }: RadioProps) => JSX.Element;
3
+ export declare const Radio: ({ ...radioProps }: RadioProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export interface CustomRadioGroupProps extends RadioGroupProps {
5
5
  options: {
6
6
  label: string;
7
7
  value: string;
8
8
  }[];
9
9
  }
10
- export declare const RadioGroup: ({ options, ...radioGroupProps }: CustomRadioGroupProps) => JSX.Element;
10
+ export declare const RadioGroup: ({ options, ...radioGroupProps }: CustomRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export interface SeparatorProps {
8
8
  colorIsBlue?: boolean;
9
9
  space: Spaces;
10
10
  }
11
- export declare const Separator: (props: SeparatorProps) => JSX.Element;
11
+ export declare const Separator: (props: SeparatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,4 +12,4 @@ export interface SidebarProps {
12
12
  links: Links[];
13
13
  navigateFunction: (targetRoute: string) => void;
14
14
  }
15
- export declare const Sidebar: (props: SidebarProps) => JSX.Element;
15
+ export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { SwitchProps } from 'antd';
2
- export declare const Switch: ({ ...props }: SwitchProps) => JSX.Element;
2
+ export declare const Switch: ({ ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -38,4 +38,4 @@ export interface TableCustomProps extends TableProps<any> {
38
38
  side: 'left' | 'right';
39
39
  }[];
40
40
  }
41
- export declare const Table: (props: TableCustomProps) => JSX.Element;
41
+ export declare const Table: (props: TableCustomProps) => import("react/jsx-runtime").JSX.Element;
@@ -9,4 +9,4 @@ export interface customTagProps extends TagProps {
9
9
  }[];
10
10
  addExtraTags?: string;
11
11
  }
12
- export declare const TagField: (props: customTagProps) => JSX.Element;
12
+ export declare const TagField: (props: customTagProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,5 @@ interface UploadPropsExtended extends UploadProps {
4
4
  initialFileList?: UploadFile[];
5
5
  initialImageUrl?: string;
6
6
  }
7
- export declare const Upload: (props: UploadPropsExtended) => JSX.Element;
7
+ export declare const Upload: (props: UploadPropsExtended) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -6,4 +6,4 @@ export interface UserInfoProps {
6
6
  userInfoTranslationsKey?: string;
7
7
  customClass?: string;
8
8
  }
9
- export declare const UserInfo: ({ userData, customClass, userImage, userName, userCode, userInfoTranslationsKey, }: UserInfoProps) => JSX.Element;
9
+ export declare const UserInfo: ({ userData, customClass, userImage, userName, userCode, userInfoTranslationsKey, }: UserInfoProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
7
7
  "dependencies": {
8
8
  "@ant-design/icons": "^4.8.0",
9
- "@babel/core": "^7.16.0",
10
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
11
9
  "@svgr/webpack": "^5.5.0",
12
10
  "@testing-library/jest-dom": "^5.14.1",
13
11
  "@testing-library/react": "^13.0.0",
@@ -23,7 +21,6 @@
23
21
  "babel-loader": "^8.2.3",
24
22
  "babel-plugin-named-asset-import": "^0.3.8",
25
23
  "babel-preset-react-app": "^10.0.1",
26
- "bfj": "^7.0.2",
27
24
  "browser-image-compression": "^2.0.2",
28
25
  "browserslist": "^4.18.1",
29
26
  "camelcase": "^6.2.1",
@@ -50,10 +47,7 @@
50
47
  "mini-css-extract-plugin": "^2.7.2",
51
48
  "moment": "^2.29.4",
52
49
  "postcss": "^8.4.4",
53
- "postcss-flexbugs-fixes": "^5.0.2",
54
50
  "postcss-loader": "^6.2.1",
55
- "postcss-normalize": "^10.0.1",
56
- "postcss-preset-env": "^7.0.1",
57
51
  "prompts": "^2.4.2",
58
52
  "rc-tween-one": "^3.0.6",
59
53
  "react": "^18.2.0",
@@ -63,22 +57,13 @@
63
57
  "react-dom": "^18.2.0",
64
58
  "react-easy-crop": "^4.7.4",
65
59
  "react-i18next": "^12.1.4",
66
- "react-refresh": "^0.11.0",
67
- "resolve": "^1.20.0",
68
- "resolve-url-loader": "^4.0.0",
69
60
  "sass": "^1.56.1",
70
61
  "sass-loader": "^12.3.0",
71
- "semver": "^7.3.5",
72
- "source-map-loader": "^3.0.0",
73
62
  "style-loader": "^3.3.1",
74
- "tailwindcss": "^3.0.2",
75
63
  "terser-webpack-plugin": "^5.2.5",
76
64
  "typescript": "^4.9.3",
77
65
  "url-loader": "^4.1.1",
78
- "web-vitals": "^2.1.0",
79
- "webpack-dev-server": "^4.6.0",
80
- "webpack-manifest-plugin": "^4.0.2",
81
- "workbox-webpack-plugin": "^6.4.1"
66
+ "web-vitals": "^2.1.0"
82
67
  },
83
68
  "scripts": {
84
69
  "prepublish": "rm -rf ./dist && npm run build",
@@ -128,7 +113,6 @@
128
113
  "@storybook/preset-create-react-app": "^4.1.2",
129
114
  "@storybook/react": "^6.5.14",
130
115
  "@storybook/testing-library": "^0.0.13",
131
- "babel-plugin-named-exports-order": "^0.0.2",
132
116
  "prop-types": "^15.8.1",
133
117
  "react-scripts": "^5.0.1",
134
118
  "storybook-addon-sass-postcss": "^0.1.3",
package/webpack.config.js CHANGED
@@ -2,7 +2,7 @@ const path = require('path');
2
2
  const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3
3
 
4
4
  module.exports = {
5
- mode: 'development',
5
+ mode: 'production',
6
6
  entry: './src/index.ts',
7
7
  devtool: "eval-cheap-source-map",
8
8
  output: {