@omniumretail/component-library 1.0.71 → 1.0.73

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 (71) hide show
  1. package/NPMPUBLISH.md +29 -0
  2. package/dist/bundle.js +12003 -0
  3. package/dist/main.css +1250 -0
  4. package/dist/types/components/AnalyticsBar/AnalyticsBar.stories.d.ts +5 -0
  5. package/dist/types/components/AnalyticsBar/helpers/codeMutation.d.ts +4 -0
  6. package/dist/types/components/AnalyticsBar/index.d.ts +2 -0
  7. package/dist/types/components/AnalyticsBar/interfaces/analyticsBar.d.ts +12 -0
  8. package/dist/types/components/Button/Button.stories.d.ts +6 -0
  9. package/dist/types/components/Button/index.d.ts +7 -0
  10. package/dist/types/components/Category/Category.stories.d.ts +4 -0
  11. package/dist/types/components/Category/CategoryContent/index.d.ts +7 -0
  12. package/dist/types/components/Category/CategorySidebar/index.d.ts +26 -0
  13. package/dist/types/components/Category/index.d.ts +7 -0
  14. package/dist/types/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +4 -0
  15. package/dist/types/components/CategoryReadOnly/evaluationOptions.d.ts +10 -0
  16. package/dist/types/components/CategoryReadOnly/index.d.ts +9 -0
  17. package/dist/types/components/CategoryResponse/CategoryResponse.stories.d.ts +4 -0
  18. package/dist/types/components/CategoryResponse/evaluationOptions.d.ts +10 -0
  19. package/dist/types/components/CategoryResponse/index.d.ts +9 -0
  20. package/dist/types/components/DatePicker/DatePicker.stories.d.ts +5 -0
  21. package/dist/types/components/DatePicker/index.d.ts +8 -0
  22. package/dist/types/components/DatePickerTag/DatePickerTag.stories.d.ts +5 -0
  23. package/dist/types/components/DatePickerTag/index.d.ts +6 -0
  24. package/dist/types/components/Footer/Footer.stories.d.ts +5 -0
  25. package/dist/types/components/Footer/index.d.ts +4 -0
  26. package/dist/types/components/Input/Input.stories.d.ts +5 -0
  27. package/dist/types/components/Input/index.d.ts +10 -0
  28. package/dist/types/components/InputCountryCode/index.d.ts +10 -0
  29. package/dist/types/components/InputCountryCode/inputCountryCode.stories.d.ts +5 -0
  30. package/dist/types/components/Label/Label.stories.d.ts +6 -0
  31. package/dist/types/components/Label/index.d.ts +7 -0
  32. package/dist/types/components/Link/Link.stories.d.ts +7 -0
  33. package/dist/types/components/Link/index.d.ts +7 -0
  34. package/dist/types/components/Menu/Menu.stories.d.ts +5 -0
  35. package/dist/types/components/Menu/helpers/codeMutation.d.ts +4 -0
  36. package/dist/types/components/Menu/index.d.ts +3 -0
  37. package/dist/types/components/ModalConfirmation/ModalConfirmation.stories.d.ts +5 -0
  38. package/dist/types/components/ModalConfirmation/ModalStatusList.d.ts +5 -0
  39. package/dist/types/components/ModalConfirmation/index.d.ts +9 -0
  40. package/dist/types/components/ModalWithTable/ModalWithTable.stories.d.ts +5 -0
  41. package/dist/types/components/ModalWithTable/index.d.ts +13 -0
  42. package/dist/types/components/Navigation/Navigation.stories.d.ts +5 -0
  43. package/dist/types/components/Navigation/index.d.ts +10 -0
  44. package/dist/types/components/Notification/Notification.stories.d.ts +5 -0
  45. package/dist/types/components/Notification/index.d.ts +9 -0
  46. package/dist/types/components/Questions/Questions.stories.d.ts +4 -0
  47. package/dist/types/components/Questions/SingleQuestion/index.d.ts +1 -0
  48. package/dist/types/components/Questions/index.d.ts +5 -0
  49. package/dist/types/components/Radio/Radio.stories.d.ts +5 -0
  50. package/dist/types/components/Radio/index.d.ts +10 -0
  51. package/dist/types/components/Select/Select.stories.d.ts +6 -0
  52. package/dist/types/components/Select/index.d.ts +5 -0
  53. package/dist/types/components/Separator/Separator.stories.d.ts +6 -0
  54. package/dist/types/components/Separator/index.d.ts +11 -0
  55. package/dist/types/components/Sidebar/Sidebar.stories.d.ts +6 -0
  56. package/dist/types/components/Sidebar/index.d.ts +15 -0
  57. package/dist/types/components/Switch/Switch.stories.d.ts +5 -0
  58. package/dist/types/components/Switch/index.d.ts +2 -0
  59. package/dist/types/components/Table/Table.stories.d.ts +9 -0
  60. package/dist/types/components/Table/index.d.ts +37 -0
  61. package/dist/types/components/Tag/Tag.stories.d.ts +5 -0
  62. package/dist/types/components/Tag/index.d.ts +8 -0
  63. package/dist/types/components/Upload/Upload.stories.d.ts +4 -0
  64. package/dist/types/components/Upload/index.d.ts +8 -0
  65. package/dist/types/components/UserInfo/UserInfo.stories.d.ts +4 -0
  66. package/dist/types/components/UserInfo/index.d.ts +8 -0
  67. package/dist/types/components/index.d.ts +25 -0
  68. package/dist/types/constants/i18n.d.ts +1 -0
  69. package/dist/types/constants/translationHelper.d.ts +2 -0
  70. package/dist/types/index.d.ts +2 -0
  71. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { AnalyticsBarProps } from './interfaces/analyticsBar';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<AnalyticsBarProps>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export type MenuItem = Required<MenuProps>['items'][number];
4
+ export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
@@ -0,0 +1,2 @@
1
+ import { AnalyticsBarProps } from './interfaces/analyticsBar';
2
+ export declare const AnalyticsBar: (props: AnalyticsBarProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ export interface AnalyticsBarProps {
2
+ data: any;
3
+ selectOptions: any;
4
+ selectDefault: any;
5
+ selectUserOption?: any;
6
+ sortedBy?: any;
7
+ activeListItem?: any;
8
+ }
9
+ export declare enum sortBy {
10
+ asc = "asc",
11
+ desc = "desc"
12
+ }
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { CustomButtonProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<CustomButtonProps>;
6
+ export declare const Secondary: Story<CustomButtonProps>;
@@ -0,0 +1,7 @@
1
+ import { ButtonProps } from 'antd';
2
+ export interface CustomButtonProps extends ButtonProps {
3
+ iconAlignRight?: boolean;
4
+ buttonStyle?: string;
5
+ customClass?: string;
6
+ }
7
+ export declare const Button: ({ customClass, ...props }: CustomButtonProps) => JSX.Element;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,7 @@
1
+ interface categoryContent {
2
+ categoryContentShow: boolean;
3
+ categoryContentInfo: any;
4
+ categorySidebarData: any;
5
+ }
6
+ export declare const CategoryContent: (props: categoryContent) => JSX.Element;
7
+ export {};
@@ -0,0 +1,26 @@
1
+ export interface Questions {
2
+ grade: string;
3
+ questions: string;
4
+ info: string;
5
+ }
6
+ export interface Data {
7
+ categoryName: string;
8
+ generalEvaluationLevel: string;
9
+ grade: string;
10
+ openAnswer: boolean;
11
+ questions: Questions[];
12
+ }
13
+ export interface DataNode {
14
+ title: string;
15
+ key: string;
16
+ data?: Data;
17
+ children?: DataNode[];
18
+ }
19
+ interface SidebarProps {
20
+ categoryContentData: any;
21
+ categorySidebarInfo: any;
22
+ categoryContentFinalData: any;
23
+ data: DataNode[];
24
+ }
25
+ export declare const CategorySidebar: (props: SidebarProps) => JSX.Element;
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import { DataNode } from './CategorySidebar';
2
+ interface Category {
3
+ data: DataNode[];
4
+ serverReadyData: any;
5
+ }
6
+ export declare const Category: (props: Category) => JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,10 @@
1
+ export type EvaluationOption = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export type EvaluationOptions = {
6
+ scale_0: EvaluationOption[];
7
+ scale_1: EvaluationOption[];
8
+ scale_2: EvaluationOption[];
9
+ };
10
+ export declare const evaluationOptions: EvaluationOptions;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CategoryResponse {
3
+ data: any;
4
+ serverReadyData: any;
5
+ onNextCategoryAvailabilityChange: (hasNext: boolean) => void;
6
+ onPreviousCategoryAvailabilityChange: (hasPrevious: boolean) => void;
7
+ }
8
+ export declare const CategoryReadOnly: React.ForwardRefExoticComponent<CategoryResponse & React.RefAttributes<unknown>>;
9
+ export {};
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,10 @@
1
+ export type EvaluationOption = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export type EvaluationOptions = {
6
+ scale_0: EvaluationOption[];
7
+ scale_1: EvaluationOption[];
8
+ scale_2: EvaluationOption[];
9
+ };
10
+ export declare const evaluationOptions: EvaluationOptions;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CategoryResponse {
3
+ data: any;
4
+ serverReadyData: any;
5
+ onNextCategoryAvailabilityChange: (hasNext: boolean) => void;
6
+ onPreviousCategoryAvailabilityChange: (hasPrevious: boolean) => void;
7
+ }
8
+ export declare const CategoryResponse: React.ForwardRefExoticComponent<CategoryResponse & React.RefAttributes<unknown>>;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { CustomDatePickerProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<CustomDatePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { DatePickerProps } from 'antd';
2
+ export type CustomDatePickerProps = DatePickerProps & {
3
+ isRangePicker?: boolean;
4
+ onChange?: (a: any, b: any) => void;
5
+ disabled?: boolean;
6
+ defaultValue?: any;
7
+ };
8
+ export declare const CustomDatePicker: ({ className, onChange, value, isRangePicker, disabled, defaultValue, ...rest }: CustomDatePickerProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { TagProps } from 'antd';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<TagProps>;
@@ -0,0 +1,6 @@
1
+ import { TagProps } from 'antd';
2
+ export interface DatePickerTagProps extends TagProps {
3
+ customTags?: any;
4
+ tagsInfo?: any;
5
+ }
6
+ export declare const DatePickerTag: (props: DatePickerTagProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { FooterProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<FooterProps>;
@@ -0,0 +1,4 @@
1
+ export interface FooterProps {
2
+ storeName: string;
3
+ }
4
+ export declare const Footer: (props: FooterProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { FormInputFieldProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<FormInputFieldProps>;
@@ -0,0 +1,10 @@
1
+ import { FormItemProps, InputProps } from 'antd';
2
+ export interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
3
+ name: string;
4
+ inputProps?: InputProps;
5
+ }
6
+ export interface inputPropsCustom extends InputProps {
7
+ customClass?: string;
8
+ }
9
+ export declare const InputField: ({ customClass, ...inputProps }: inputPropsCustom) => JSX.Element;
10
+ export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { FormItemProps, InputProps, SelectProps } from 'antd';
2
+ export interface FormInputCountryCodeProps extends Omit<FormItemProps, "name"> {
3
+ name?: string;
4
+ selectProps?: SelectProps;
5
+ inputProps?: InputProps;
6
+ inputWithSelectBoxValue?: string;
7
+ value?: string;
8
+ onChange?: (value: any) => void;
9
+ }
10
+ export declare const InputCountryCode: ({ inputProps, selectProps, name, inputWithSelectBoxValue, value, onChange, ...itemProps }: FormInputCountryCodeProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { FormInputCountryCodeProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<FormInputCountryCodeProps>;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { LabelProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<LabelProps>;
6
+ export declare const Secondary: Story<LabelProps>;
@@ -0,0 +1,7 @@
1
+ export interface LabelProps {
2
+ forAttribute?: string;
3
+ children?: any;
4
+ customStyle?: string;
5
+ isUppercase?: boolean;
6
+ }
7
+ export declare const Label: (props: LabelProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { CustomLinkProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<CustomLinkProps>;
6
+ export declare const Secondary: Story<CustomLinkProps>;
7
+ export declare const iconAlignRight: Story<CustomLinkProps>;
@@ -0,0 +1,7 @@
1
+ import { ButtonProps } from 'antd';
2
+ export interface CustomLinkProps extends ButtonProps {
3
+ iconAlignRight?: boolean;
4
+ linkSecondary?: boolean;
5
+ customClass?: string;
6
+ }
7
+ export declare const Link: ({ customClass, iconAlignRight, linkSecondary, ...props }: CustomLinkProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { MenuProps } from 'antd';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<MenuProps>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export type MenuItem = Required<MenuProps>['items'][number];
4
+ export declare function getItem(label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group'): MenuItem;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export declare const Menu: (props: MenuProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { ModalConfirmationProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<ModalConfirmationProps>;
@@ -0,0 +1,5 @@
1
+ export declare const ModalStatus: {
2
+ CANCELED: string;
3
+ OPEN: string;
4
+ REQUESTED_CHANGES: string;
5
+ };
@@ -0,0 +1,9 @@
1
+ export interface ModalConfirmationProps {
2
+ closeText: string;
3
+ title: string;
4
+ description: string;
5
+ buttonText: string;
6
+ isOpen: boolean;
7
+ modalData?: any;
8
+ }
9
+ export declare const ModalConfirmation: (props: ModalConfirmationProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { ModalWithTableProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<ModalWithTableProps>;
@@ -0,0 +1,13 @@
1
+ import { TableCustomProps } from '../Table';
2
+ export interface ModalWithTableProps {
3
+ closeText: string;
4
+ buttonText: string;
5
+ isOpen: boolean;
6
+ tableData: TableCustomProps;
7
+ modalData?: any;
8
+ isLoading?: boolean;
9
+ confirmLoading?: boolean;
10
+ initialRowSelectedInfo?: any;
11
+ advancedTagsList?: string[];
12
+ }
13
+ export declare const ModalWithTable: (props: ModalWithTableProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { NavigationProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<NavigationProps>;
@@ -0,0 +1,10 @@
1
+ export interface NavigationProps {
2
+ backLink?: boolean;
3
+ title: string;
4
+ homeLink?: boolean;
5
+ loginLink?: boolean;
6
+ loginOnClickFunction?: () => void;
7
+ backLinkOnClickFunction?: () => void;
8
+ homeOnClickFunction?: () => void;
9
+ }
10
+ export declare const Navigation: (props: NavigationProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { ErrorNotificationProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<ErrorNotificationProps>;
@@ -0,0 +1,9 @@
1
+ export interface ErrorNotificationProps {
2
+ message: string;
3
+ description: string;
4
+ }
5
+ type NotificationType = 'success' | 'info' | 'warning' | 'error';
6
+ export declare const Notification: ({ message, description }: ErrorNotificationProps) => {
7
+ openNotificationWithIcon: (type: NotificationType) => void;
8
+ };
9
+ export {};
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1 @@
1
+ export declare const SingleQuestion: ({ key, provided, snapshot, remove, name, showGrade, handleChanges, ...restField }: any) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface QuestionsProps {
2
+ showGrade?: boolean;
3
+ handleChanges: any;
4
+ }
5
+ export declare const Questions: (props: QuestionsProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { RadioProps } from "antd";
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<RadioProps>;
@@ -0,0 +1,10 @@
1
+ import type { RadioProps } from 'antd';
2
+ import type { RadioGroupProps } from 'antd/lib/radio';
3
+ export declare const Radio: ({ ...radioProps }: RadioProps) => JSX.Element;
4
+ export interface CustomRadioGroupProps extends RadioGroupProps {
5
+ options: {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ }
10
+ export declare const RadioGroup: ({ options, ...radioGroupProps }: CustomRadioGroupProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { SelectProps } from 'antd';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>>;
6
+ export declare const noArguments: Story<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType>>;
@@ -0,0 +1,5 @@
1
+ import { SelectProps as AntdSelectProps } from 'antd';
2
+ export interface SelectProps extends AntdSelectProps {
3
+ customClass?: string;
4
+ }
5
+ export declare const Select: ({ customClass, ...props }: SelectProps) => any;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { SeparatorProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<SeparatorProps>;
6
+ export declare const Secondary: Story<SeparatorProps>;
@@ -0,0 +1,11 @@
1
+ export declare enum Spaces {
2
+ s = "s",
3
+ m = "m",
4
+ l = "l"
5
+ }
6
+ export interface SeparatorProps {
7
+ hasOpacity?: boolean;
8
+ colorIsBlue?: boolean;
9
+ space: Spaces;
10
+ }
11
+ export declare const Separator: (props: SeparatorProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { SidebarProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<SidebarProps>;
6
+ export declare const Secondary: Story<SidebarProps>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export interface Links {
3
+ label: string;
4
+ targetRoute: string;
5
+ active: boolean;
6
+ icon?: React.ReactNode;
7
+ sublinks?: Links[];
8
+ activeSubMenu?: boolean;
9
+ }
10
+ export interface SidebarProps {
11
+ isOpen?: boolean;
12
+ links: Links[];
13
+ navigateFunction: (targetRoute: string) => void;
14
+ }
15
+ export declare const Sidebar: (props: SidebarProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { SwitchProps } from 'antd';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<SwitchProps>;
@@ -0,0 +1,2 @@
1
+ import { SwitchProps } from 'antd';
2
+ export declare const Switch: ({ ...props }: SwitchProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { TableCustomProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<TableCustomProps>;
6
+ export declare const Secondary: Story<TableCustomProps>;
7
+ export declare const WithCheckbox: Story<TableCustomProps>;
8
+ export declare const withActions: Story<TableCustomProps>;
9
+ export declare const NoData: Story<TableCustomProps>;
@@ -0,0 +1,37 @@
1
+ import { TableProps } from 'antd';
2
+ export interface FilterOptions {
3
+ value: string;
4
+ label: string;
5
+ direction: string;
6
+ }
7
+ export interface Actions {
8
+ key: string;
9
+ label: string;
10
+ }
11
+ export declare enum sortBy {
12
+ asc = "asc",
13
+ desc = "desc"
14
+ }
15
+ export interface TableCustomProps extends TableProps<any> {
16
+ fieldsToSort?: any[];
17
+ selectPlaceholder?: string;
18
+ onSort?: (field: any, sortBy: any) => void;
19
+ sortInfo?: any;
20
+ paginationInfo?: any;
21
+ headingTranslationsKey?: string;
22
+ actionsArray?: any;
23
+ rowSelectionInfo?: any;
24
+ rowKeyValue?: string;
25
+ hiddenColumns?: string[];
26
+ rowSelection?: any;
27
+ onSelectAllButtonClick?: () => void;
28
+ AllItemsShowing?: boolean;
29
+ selectAllStatus?: any;
30
+ isTableDataRefreshed?: any;
31
+ tableLoading?: any;
32
+ tableMaxHeight?: any;
33
+ columnsSortChange?: any;
34
+ sortByColumns?: boolean;
35
+ columnsToSort?: string[];
36
+ }
37
+ export declare const Table: (props: TableCustomProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { TagProps } from 'antd';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<TagProps>;
@@ -0,0 +1,8 @@
1
+ import { TagProps } from 'antd';
2
+ export interface customTagProps extends TagProps {
3
+ customTags?: string[];
4
+ tagsInfo?: (tags: string[]) => void;
5
+ advancedTagsInfo?: (tags: string[]) => void;
6
+ advancedTags?: string[];
7
+ }
8
+ export declare const TagField: (props: customTagProps) => JSX.Element;
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,8 @@
1
+ import type { UploadFile, UploadProps } from 'antd/es/upload/interface';
2
+ interface UploadPropsExtended extends UploadProps {
3
+ onImageChange?: (file: UploadFile | null) => void;
4
+ initialFileList?: UploadFile[];
5
+ initialImageUrl?: string;
6
+ }
7
+ export declare const Upload: (props: UploadPropsExtended) => JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
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>;
@@ -0,0 +1,8 @@
1
+ export interface UserInfoProps {
2
+ userData: any;
3
+ userName: string;
4
+ userCode: string;
5
+ userInfoTranslationsKey?: string;
6
+ customClass?: string;
7
+ }
8
+ export declare const UserInfo: ({ userData, customClass, userName, userCode, userInfoTranslationsKey }: UserInfoProps) => JSX.Element;
@@ -0,0 +1,25 @@
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';
@@ -0,0 +1 @@
1
+ export declare const mergei18n: (appResources: any) => void;
@@ -0,0 +1,2 @@
1
+ declare const translate: (key: any, options?: {}) => string;
2
+ export default translate;
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './constants/i18n';