@omniumretail/component-library 1.2.69 → 1.2.70

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 (81) hide show
  1. package/dist/780.bundle.js +1 -1
  2. package/dist/838.bundle.js +1 -1
  3. package/dist/838.bundle.js.LICENSE.txt +1 -1
  4. package/dist/bundle.js +1 -1
  5. package/dist/bundle.js.LICENSE.txt +11 -21
  6. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +2 -3
  7. package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +2 -3
  8. package/dist/types/components/Button/Button.stories.d.ts +3 -4
  9. package/dist/types/components/Category/Category.stories.d.ts +2 -3
  10. package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +2 -3
  11. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +2 -3
  12. package/dist/types/components/DatePicker/DatePicker.stories.d.ts +2 -3
  13. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +2 -3
  14. package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +2 -3
  15. package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +2 -3
  16. package/dist/types/components/Footer/Footer.stories.d.ts +2 -3
  17. package/dist/types/components/Footer2/Footer.stories.d.ts +3 -4
  18. package/dist/types/components/Header/Header.stories.d.ts +2 -3
  19. package/dist/types/components/Input/Input.stories.d.ts +2 -3
  20. package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +2 -3
  21. package/dist/types/components/Label/Label.stories.d.ts +3 -4
  22. package/dist/types/components/Link/Link.stories.d.ts +4 -5
  23. package/dist/types/components/Menu/Menu.stories.d.ts +2 -3
  24. package/dist/types/components/MobileTable/MobileTable.stories.d.ts +2 -3
  25. package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +2 -3
  26. package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +2 -3
  27. package/dist/types/components/Navigation/Navigation.stories.d.ts +2 -3
  28. package/dist/types/components/Notification/Notification.stories.d.ts +2 -3
  29. package/dist/types/components/Questions/Questions.stories.d.ts +2 -3
  30. package/dist/types/components/Radio/Radio.stories.d.ts +2 -3
  31. package/dist/types/components/ResponseType/ResponseType.stories.d.ts +2 -3
  32. package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +6 -7
  33. package/dist/types/components/Select/Select.stories.d.ts +3 -4
  34. package/dist/types/components/Separator/Separator.stories.d.ts +3 -4
  35. package/dist/types/components/Sidebar/Sidebar.stories.d.ts +3 -4
  36. package/dist/types/components/Switch/Switch.stories.d.ts +2 -3
  37. package/dist/types/components/Table/Table.stories.d.ts +6 -7
  38. package/dist/types/components/Tag/Tag.stories.d.ts +2 -3
  39. package/dist/types/components/Upload/Upload.stories.d.ts +2 -3
  40. package/dist/types/components/UserInfo/UserInfo.stories.d.ts +2 -3
  41. package/dist/types/components/WebCam/WebCam.stories.d.ts +2 -3
  42. package/package.json +184 -186
  43. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +2 -2
  44. package/src/components/BellNotifications/BellNotifications.stories.tsx +2 -2
  45. package/src/components/Button/Button.stories.tsx +2 -2
  46. package/src/components/Category/Category.stories.tsx +2 -2
  47. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +2 -2
  48. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +2 -2
  49. package/src/components/DatePicker/DatePicker.stories.tsx +2 -2
  50. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +2 -2
  51. package/src/components/DropdownButton/DropdownButton.stories.tsx +2 -2
  52. package/src/components/ExportTableData/ExportTableData.stories.tsx +2 -2
  53. package/src/components/Footer/Footer.stories.tsx +2 -2
  54. package/src/components/Footer2/Footer.stories.tsx +4 -4
  55. package/src/components/Header/Header.stories.tsx +2 -2
  56. package/src/components/Input/Input.stories.tsx +2 -2
  57. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +2 -2
  58. package/src/components/Label/Label.stories.tsx +2 -2
  59. package/src/components/Link/Link.stories.tsx +2 -2
  60. package/src/components/Menu/Menu.stories.tsx +2 -2
  61. package/src/components/MobileTable/MobileTable.stories.tsx +2 -2
  62. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +2 -2
  63. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +2 -2
  64. package/src/components/Navigation/Navigation.stories.tsx +2 -2
  65. package/src/components/Notification/Notification.stories.tsx +3 -3
  66. package/src/components/Questions/Questions.stories.tsx +2 -2
  67. package/src/components/Questions/index.tsx +1 -1
  68. package/src/components/Radio/Radio.stories.tsx +2 -2
  69. package/src/components/ResponseType/ResponseType.stories.tsx +2 -2
  70. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +2 -2
  71. package/src/components/Select/Select.stories.tsx +2 -2
  72. package/src/components/Separator/Separator.stories.tsx +2 -2
  73. package/src/components/Sidebar/Sidebar.stories.tsx +2 -2
  74. package/src/components/Switch/Switch.stories.tsx +2 -2
  75. package/src/components/Table/Table.stories.tsx +2 -2
  76. package/src/components/Tag/Tag.stories.tsx +2 -2
  77. package/src/components/Upload/Upload.stories.tsx +2 -2
  78. package/src/components/UserInfo/UserInfo.stories.tsx +2 -2
  79. package/src/components/WebCam/WebCam.stories.tsx +2 -2
  80. package/dist/types/components/MobileTable/UserInfoTable/index.d.ts +0 -21
  81. package/dist/types/components/ResponseType/Category.stories.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Link, CustomLinkProps } from '.';
3
3
  import { SearchOutlined } from '@ant-design/icons';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: Link,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<CustomLinkProps> = (args) => <Link {...args}> this is a link </Link>;
10
+ const Template: StoryFn<CustomLinkProps> = (args: any) => <Link {...args}> this is a link </Link>;
11
11
 
12
12
  export const Primary = Template.bind({});
13
13
  Primary.args = {
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Menu } from '.';
3
3
  import { MenuProps } from 'antd';
4
4
  import { getItem } from './helpers/codeMutation';
@@ -8,7 +8,7 @@ export default {
8
8
  component: Menu,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<MenuProps> = (args) => {
11
+ const Template: StoryFn<MenuProps> = (args: any) => {
12
12
  const data = [
13
13
  {
14
14
  "Year": 2023,
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { useEffect, useState } from "react";
3
3
  import { MobileTable, MobileTableProps } from '.';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: MobileTable,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<MobileTableProps> = (args) => {
10
+ const Template: StoryFn<MobileTableProps> = (args: any) => {
11
11
  const [modalData, setModalData] = useState<any>({});
12
12
  const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
13
13
 
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ModalConfirmation, ModalConfirmationProps } from '.';
4
4
  import { ModalStatus } from './ModalStatusList';
@@ -8,7 +8,7 @@ export default {
8
8
  component: ModalConfirmation,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<ModalConfirmationProps> = (args) => {
11
+ const Template: StoryFn<ModalConfirmationProps> = (args: any) => {
12
12
  const [modalData, setModalData] = useState<any>({});
13
13
  const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
14
14
 
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ModalWithTable, ModalWithTableProps } from '.';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: ModalWithTable,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<ModalWithTableProps> = (args) => {
10
+ const Template: StoryFn<ModalWithTableProps> = (args: any) => {
11
11
  const [modalData, setModalData] = useState<any>({});
12
12
  const [isFetching, setIsFetching] = useState<boolean>(false);
13
13
  const [tagsData, setTagsData] = useState<any>({});
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Navigation, NavigationProps } from '.';
3
3
 
4
4
  export default {
@@ -6,7 +6,7 @@ export default {
6
6
  component: Navigation,
7
7
  } as Meta;
8
8
 
9
- const Template: Story<NavigationProps> = (args) => <Navigation {...args}></Navigation>;
9
+ const Template: StoryFn<NavigationProps> = (args: any) => <Navigation {...args}></Navigation>;
10
10
 
11
11
  export const Primary = Template.bind({});
12
12
  Primary.args = {
@@ -1,12 +1,12 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { StoryFn } from "@storybook/react-webpack5";
2
2
  import { Notification, ErrorNotificationProps } from '.';
3
3
 
4
4
  export default {
5
5
  title: 'Notification',
6
6
  component: Notification,
7
- } as unknown as Meta;
7
+ } as any;
8
8
 
9
- const Template: Story<ErrorNotificationProps> = (args) => {
9
+ const Template: StoryFn<ErrorNotificationProps> = (args: any) => {
10
10
 
11
11
  const { openNotificationWithIcon } = Notification({
12
12
  message: args.message,
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Questions } from '.';
3
3
  import { SearchOutlined } from '@ant-design/icons';
4
4
  import { Button, Form, Input } from "antd";
@@ -9,7 +9,7 @@ export default {
9
9
  component: Questions,
10
10
  } as Meta;
11
11
 
12
- const Template: Story<any> = (args) => {
12
+ const Template: StoryFn<any> = (args: any) => {
13
13
  const [form] = useForm();
14
14
 
15
15
  const onFinish = (values: any) => {
@@ -1,6 +1,6 @@
1
1
  import { PlusOutlined } from '@ant-design/icons';
2
2
  import { Form } from 'antd';
3
- import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
3
+ import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd';
4
4
  import { SingleQuestion } from "./SingleQuestion";
5
5
  import { Link } from '../Link';
6
6
  import { t } from 'i18next';
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Radio as RadioAntd, RadioChangeEvent, RadioProps } from "antd";
3
3
  import { useState } from "react";
4
4
  import { Radio, RadioGroup } from '.';
@@ -8,7 +8,7 @@ export default {
8
8
  component: Radio,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<RadioProps> = (args) => {
11
+ const Template: StoryFn<RadioProps> = (args: any) => {
12
12
  const [value, setValue] = useState();
13
13
 
14
14
  const onChange = (e: RadioChangeEvent) => {
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { useEffect, useState } from "react";
3
3
  import { ResponseType } from '.';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: ResponseType,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<any> = (args) => {
10
+ const Template: StoryFn<any> = (args: any) => {
11
11
  const [categoryContentInfo, setCategoryContentInfo] = useState<any>();
12
12
 
13
13
  const getAnswer = {
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { ResponsiveTable, ResponsiveTableCustomProps } from '.';
3
3
  import { useState } from "react";
4
4
  import { useTranslation } from "react-i18next";
@@ -9,7 +9,7 @@ export default {
9
9
  component: ResponsiveTable,
10
10
  } as Meta;
11
11
 
12
- const Template: Story<ResponsiveTableCustomProps> = (args) => {
12
+ const Template: StoryFn<ResponsiveTableCustomProps> = (args: any) => {
13
13
  const { t } = useTranslation();
14
14
  const [pageInfo, setPageInfo] = useState<any>({});
15
15
  const [rowSelectionInfo, setRowSelectionInfo] = useState<any>({});
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Select } from '.';
3
3
  import { SelectProps } from 'antd';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: Select,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<SelectProps> = (args) => <Select {...args}></Select>;
10
+ const Template: StoryFn<SelectProps> = (args: any) => <Select {...args}></Select>;
11
11
 
12
12
  export const Primary = Template.bind({});
13
13
  Primary.args = {
@@ -1,4 +1,4 @@
1
- import {Meta, Story} from "@storybook/react";
1
+ import {Meta, StoryFn} from "@storybook/react-webpack5";
2
2
  import { Separator, SeparatorProps, Spaces } from '.';
3
3
 
4
4
  export default {
@@ -6,7 +6,7 @@ export default {
6
6
  component: Separator,
7
7
  } as Meta;
8
8
 
9
- const Template: Story<SeparatorProps> = (args) => <Separator {...args}></Separator>;
9
+ const Template: StoryFn<SeparatorProps> = (args: any) => <Separator {...args}></Separator>;
10
10
 
11
11
  export const Primary = Template.bind({});
12
12
  Primary.args = {
@@ -1,5 +1,5 @@
1
1
  import { RightCircleOutlined } from "@ant-design/icons";
2
- import { Meta, Story } from "@storybook/react";
2
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
3
3
  import { Sidebar, SidebarProps } from '.';
4
4
 
5
5
  export default {
@@ -7,7 +7,7 @@ export default {
7
7
  component: Sidebar,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<SidebarProps> = (args) => {
10
+ const Template: StoryFn<SidebarProps> = (args: any) => {
11
11
  const navigate = (targetRoute: string) => {
12
12
  console.log(targetRoute);
13
13
  }
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Switch } from '.';
3
3
  import { SwitchProps } from 'antd';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: Switch,
8
8
  } as Meta;
9
9
 
10
- const Template: Story<SwitchProps> = (args) => <Switch {...args}></Switch>;
10
+ const Template: StoryFn<SwitchProps> = (args: any) => <Switch {...args}></Switch>;
11
11
 
12
12
  export const Primary = Template.bind({});
13
13
  Primary.args = {
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Table, TableCustomProps } from '.';
3
3
  import { useState } from "react";
4
4
  import { useTranslation } from "react-i18next";
@@ -8,7 +8,7 @@ export default {
8
8
  component: Table,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<TableCustomProps> = (args) => {
11
+ const Template: StoryFn<TableCustomProps> = (args: any) => {
12
12
  const { t } = useTranslation();
13
13
  const [pageInfo, setPageInfo] = useState<any>({});
14
14
  const [rowSelectionInfo, setRowSelectionInfo] = useState<any>({});
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { TagField } from '.';
3
3
  import { TagProps } from 'antd';
4
4
  import { useState } from "react";
@@ -9,7 +9,7 @@ export default {
9
9
  component: TagField,
10
10
  } as Meta;
11
11
 
12
- const Template: Story<TagProps> = (args) => {
12
+ const Template: StoryFn<TagProps> = (args: any) => {
13
13
  const [tagsInfo, setTagsInfo] = useState<any>({});
14
14
  const [advancedTagsInfo, setAdvancedTagsInfo] = useState<any>({});
15
15
  const advancedsFilters = [{ display: t('components.tag.State'), value: "State" }, { display: t('components.tag.1'), value: "Olaaaaaa" }];
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { Form, UploadFile } from "antd";
3
3
  import { Button } from "components/Button";
4
4
  import { Upload } from '.';
@@ -8,7 +8,7 @@ export default {
8
8
  component: Upload,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<any> = (args) => {
11
+ const Template: StoryFn<any> = (args: any) => {
12
12
  const [form] = Form.useForm();
13
13
 
14
14
  const handleSubmit = (values: any) => {
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { UserInfo } from '.';
3
3
 
4
4
  export default {
@@ -6,7 +6,7 @@ export default {
6
6
  component: UserInfo,
7
7
  } as Meta;
8
8
 
9
- const Template: Story<any> = (args) => {
9
+ const Template: StoryFn<any> = (args: any) => {
10
10
 
11
11
  const data = {
12
12
  Date: "946080000",
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from "@storybook/react";
1
+ import { Meta, StoryFn } from "@storybook/react-webpack5";
2
2
  import { CameraCapture } from '.';
3
3
  import { useState } from "react";
4
4
  import { Button } from "antd";
@@ -8,7 +8,7 @@ export default {
8
8
  component: CameraCapture,
9
9
  } as Meta;
10
10
 
11
- const Template: Story<any> = (args) => {
11
+ const Template: StoryFn<any> = (args: any) => {
12
12
  const [openCamera, setOpenCamera] = useState(false);
13
13
  const [imgSrc, setImgSrc] = useState("");
14
14
 
@@ -1,21 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- interface Action {
3
- key: string;
4
- label: string;
5
- onClick: () => void;
6
- }
7
- interface MobileTableProps {
8
- data: Record<string, any>;
9
- translation: string;
10
- modalVisible: boolean;
11
- setModalVisible: Dispatch<SetStateAction<boolean>>;
12
- actions: Action[];
13
- hasArrows?: boolean;
14
- handlePrev?: () => void;
15
- handleNext?: () => void;
16
- hiddenColumns?: string[];
17
- modalTableData?: any;
18
- currentIndex?: number;
19
- }
20
- export declare const MobileTable: ({ data, translation, modalVisible, setModalVisible, actions, hiddenColumns, hasArrows, handleNext, handlePrev, modalTableData, currentIndex }: MobileTableProps) => import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,4 +0,0 @@
1
- import { Meta, Story } from "@storybook/react";
2
- declare const _default: Meta<import("@storybook/react").Args>;
3
- export default _default;
4
- export declare const Primary: Story<any>;