@omniumretail/component-library 1.2.68 → 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.
- package/dist/780.bundle.js +1 -1
- package/dist/838.bundle.js +1 -1
- package/dist/838.bundle.js.LICENSE.txt +1 -1
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.LICENSE.txt +11 -21
- package/dist/main.css +1 -1
- package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +2 -3
- package/dist/types/components/BellNotifications/BellNotifications.stories.d.ts +2 -3
- package/dist/types/components/Button/Button.stories.d.ts +3 -4
- package/dist/types/components/Category/Category.stories.d.ts +2 -3
- package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +2 -3
- package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +2 -3
- package/dist/types/components/DatePicker/DatePicker.stories.d.ts +2 -3
- package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +2 -3
- package/dist/types/components/DropdownButton/DropdownButton.stories.d.ts +2 -3
- package/dist/types/components/ExportTableData/ExportTableData.stories.d.ts +2 -3
- package/dist/types/components/Footer/Footer.stories.d.ts +2 -3
- package/dist/types/components/Footer2/Footer.stories.d.ts +3 -4
- package/dist/types/components/Header/Header.stories.d.ts +2 -3
- package/dist/types/components/Input/Input.stories.d.ts +2 -3
- package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +2 -3
- package/dist/types/components/Label/Label.stories.d.ts +3 -4
- package/dist/types/components/Link/Link.stories.d.ts +4 -5
- package/dist/types/components/Menu/Menu.stories.d.ts +2 -3
- package/dist/types/components/MobileTable/MobileTable.stories.d.ts +2 -3
- package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +2 -3
- package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +2 -3
- package/dist/types/components/Navigation/Navigation.stories.d.ts +2 -3
- package/dist/types/components/Notification/Notification.stories.d.ts +2 -3
- package/dist/types/components/Questions/Questions.stories.d.ts +2 -3
- package/dist/types/components/Radio/Radio.stories.d.ts +2 -3
- package/dist/types/components/ResponseType/ResponseType.stories.d.ts +2 -3
- package/dist/types/components/ResponsiveTable/ResponsiveTable.stories.d.ts +6 -7
- package/dist/types/components/Select/Select.stories.d.ts +3 -4
- package/dist/types/components/Separator/Separator.stories.d.ts +3 -4
- package/dist/types/components/Sidebar/Sidebar.stories.d.ts +3 -4
- package/dist/types/components/Switch/Switch.stories.d.ts +2 -3
- package/dist/types/components/Table/Table.stories.d.ts +6 -7
- package/dist/types/components/Tag/Tag.stories.d.ts +2 -3
- package/dist/types/components/Upload/Upload.stories.d.ts +2 -3
- package/dist/types/components/UserInfo/UserInfo.stories.d.ts +2 -3
- package/dist/types/components/WebCam/WebCam.stories.d.ts +2 -3
- package/package.json +184 -186
- package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +2 -2
- package/src/components/BellNotifications/BellNotifications.stories.tsx +2 -2
- package/src/components/Button/Button.stories.tsx +2 -2
- package/src/components/Category/Category.stories.tsx +2 -2
- package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +2 -2
- package/src/components/CategoryResponse/CategoryResponse.stories.tsx +2 -2
- package/src/components/DatePicker/DatePicker.stories.tsx +2 -2
- package/src/components/DatePickerTag/DatePickerTag.stories.tsx +2 -2
- package/src/components/DropdownButton/DropdownButton.stories.tsx +2 -2
- package/src/components/ExportTableData/ExportTableData.stories.tsx +2 -2
- package/src/components/Footer/Footer.stories.tsx +2 -2
- package/src/components/Footer2/Footer.stories.tsx +5 -5
- package/src/components/Footer2/index.tsx +1 -2
- package/src/components/Footer2/styles.module.scss +6 -1
- package/src/components/Header/Header.stories.tsx +3 -2
- package/src/components/Input/Input.stories.tsx +2 -2
- package/src/components/InputCountryCode/inputCountryCode.stories.tsx +2 -2
- package/src/components/Label/Label.stories.tsx +2 -2
- package/src/components/Link/Link.stories.tsx +2 -2
- package/src/components/Menu/Menu.stories.tsx +2 -2
- package/src/components/MobileTable/MobileTable.stories.tsx +2 -2
- package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +2 -2
- package/src/components/ModalWithTable/ModalWithTable.stories.tsx +2 -2
- package/src/components/Navigation/Navigation.stories.tsx +2 -2
- package/src/components/Notification/Notification.stories.tsx +3 -3
- package/src/components/Questions/Questions.stories.tsx +2 -2
- package/src/components/Questions/index.tsx +1 -1
- package/src/components/Radio/Radio.stories.tsx +2 -2
- package/src/components/ResponseType/ResponseType.stories.tsx +2 -2
- package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +2 -2
- package/src/components/Select/Select.stories.tsx +2 -2
- package/src/components/Separator/Separator.stories.tsx +2 -2
- package/src/components/Sidebar/Sidebar.stories.tsx +2 -2
- package/src/components/Switch/Switch.stories.tsx +2 -2
- package/src/components/Table/Table.stories.tsx +2 -2
- package/src/components/Tag/Tag.stories.tsx +2 -2
- package/src/components/Upload/Upload.stories.tsx +2 -2
- package/src/components/UserInfo/UserInfo.stories.tsx +2 -2
- package/src/components/WebCam/WebCam.stories.tsx +2 -2
- package/dist/types/components/MobileTable/UserInfoTable/index.d.ts +0 -21
- package/dist/types/components/ResponseType/Category.stories.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
2
2
|
import { FormInputField, FormInputFieldProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: FormInputField,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<FormInputFieldProps> = (args: any) => <FormInputField {...args}></FormInputField>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Form, Button } from 'antd';
|
|
2
|
-
import { Meta,
|
|
2
|
+
import { Meta, StoryFn } from "@storybook/react-webpack5";
|
|
3
3
|
import { InputCountryCode, FormInputCountryCodeProps } from '.';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: InputCountryCode,
|
|
8
8
|
} as Meta;
|
|
9
9
|
|
|
10
|
-
const Template:
|
|
10
|
+
const Template: StoryFn<FormInputCountryCodeProps> = (args: any) => {
|
|
11
11
|
return (
|
|
12
12
|
<Form>
|
|
13
13
|
<InputCountryCode {...args}></InputCountryCode>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Meta,
|
|
1
|
+
import {Meta, StoryFn} from "@storybook/react-webpack5";
|
|
2
2
|
import { Label, LabelProps } from '.';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: Label,
|
|
7
7
|
} as Meta;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
9
|
+
const Template: StoryFn<LabelProps> = (args: any) => <Label {...args}></Label>;
|
|
10
10
|
|
|
11
11
|
export const Primary = Template.bind({});
|
|
12
12
|
Primary.args = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
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:
|
|
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,
|
|
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:
|
|
11
|
+
const Template: StoryFn<MenuProps> = (args: any) => {
|
|
12
12
|
const data = [
|
|
13
13
|
{
|
|
14
14
|
"Year": 2023,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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 {
|
|
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
|
|
7
|
+
} as any;
|
|
8
8
|
|
|
9
|
-
const Template:
|
|
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,
|
|
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:
|
|
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
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
9
|
+
const Template: StoryFn<any> = (args: any) => {
|
|
10
10
|
|
|
11
11
|
const data = {
|
|
12
12
|
Date: "946080000",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta,
|
|
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:
|
|
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 {};
|