@antscorp/antsomi-ui 1.1.10-beta.32 → 1.1.10-beta.33

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 (61) hide show
  1. package/dist/package.json +1 -3
  2. package/dist/types/components/atoms/Button/Button.d.ts +1 -0
  3. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -0
  4. package/dist/types/components/atoms/Button/index.d.ts +1 -0
  5. package/dist/types/components/atoms/Button/test.d.ts +3 -0
  6. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -0
  7. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -0
  8. package/dist/types/components/atoms/Divider/index.d.ts +1 -0
  9. package/dist/types/components/atoms/Input/Input.d.ts +1 -0
  10. package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -0
  11. package/dist/types/components/atoms/Input/index.d.ts +1 -0
  12. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +7 -0
  13. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -0
  14. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -0
  15. package/dist/types/components/atoms/Radio/index.d.ts +1 -0
  16. package/dist/types/components/atoms/Space/Space.d.ts +1 -0
  17. package/dist/types/components/atoms/Space/index.d.ts +1 -0
  18. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -0
  19. package/dist/types/components/atoms/Tag/index.d.ts +1 -0
  20. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -0
  21. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -0
  22. package/dist/types/components/atoms/Typography/Text.d.ts +1 -0
  23. package/dist/types/components/atoms/Typography/index.d.ts +1 -0
  24. package/dist/types/components/atoms/index.d.ts +9 -0
  25. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +7 -0
  26. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -0
  27. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -0
  28. package/dist/types/components/common/index.d.ts +1 -0
  29. package/dist/types/components/index.d.ts +3 -0
  30. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -0
  31. package/dist/types/components/molecules/Alert/index.d.ts +1 -0
  32. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -0
  33. package/dist/types/components/molecules/Cascader/index.d.ts +1 -0
  34. package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +2 -0
  35. package/dist/types/components/molecules/CustomComponent/index.d.ts +1 -0
  36. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +1 -0
  37. package/dist/types/components/molecules/DatePicker/index.d.ts +1 -0
  38. package/dist/types/components/molecules/DatePickerAdvanced/DatePickerAdvanced.d.ts +24 -0
  39. package/dist/types/components/molecules/DatePickerAdvanced/constants.d.ts +48 -0
  40. package/dist/types/components/molecules/DatePickerAdvanced/index.d.ts +1 -0
  41. package/dist/types/components/molecules/DatePickerAdvanced/styled.d.ts +6 -0
  42. package/dist/types/components/molecules/DatePickerAdvanced/types.d.ts +11 -0
  43. package/dist/types/components/molecules/DatePickerAdvanced/utils.d.ts +1 -0
  44. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -0
  45. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -0
  46. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -0
  47. package/dist/types/components/molecules/Modal/index.d.ts +1 -0
  48. package/dist/types/components/molecules/Select/Select.d.ts +15 -0
  49. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -0
  50. package/dist/types/components/molecules/Select/Test.d.ts +3 -0
  51. package/dist/types/components/molecules/Select/index.d.ts +2 -0
  52. package/dist/types/components/molecules/Select/styled.d.ts +4 -0
  53. package/dist/types/components/molecules/index.d.ts +9 -0
  54. package/dist/types/constants.d.ts +12 -0
  55. package/dist/types/hooks/index.d.ts +2 -0
  56. package/dist/types/index.d.ts +1 -0
  57. package/dist/types/test.d.ts +3 -0
  58. package/dist/types/types/index.d.ts +5 -0
  59. package/dist/types/utils/common.d.ts +8 -0
  60. package/dist/types/utils/handleError.d.ts +2 -0
  61. package/package.json +3 -1
package/dist/package.json CHANGED
@@ -2,9 +2,7 @@
2
2
  "name": "@antscorp/antsomi-ui",
3
3
  "version": "1.1.10-beta.27",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
- "main": "cjs/index.js",
6
- "module": "esm/index.js",
7
- "types": "index.d.ts",
5
+ "main": "index.js",
8
6
  "scripts": {
9
7
  "dev": "vite",
10
8
  "build": "rollup -c",
@@ -0,0 +1 @@
1
+ export { Button } from 'antd';
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
4
+ href: string;
5
+ target?: string | undefined;
6
+ onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
7
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
8
+ htmlType?: "button" | "reset" | "submit" | undefined;
9
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
10
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
11
+ Group: React.FC<import("antd/es/button").ButtonGroupProps>;
12
+ }>;
13
+ export default _default;
14
+ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<Partial<{
15
+ href: string;
16
+ target?: string | undefined;
17
+ onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
18
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
19
+ htmlType?: "button" | "reset" | "submit" | undefined;
20
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
21
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
22
+ Group: React.FC<import("antd/es/button").ButtonGroupProps>;
23
+ }>;
24
+ export declare const Type: ComponentStory<any>;
25
+ export declare const Size: ComponentStory<any>;
26
+ export declare const Loading: ComponentStory<any>;
27
+ export declare const GhostButton: ComponentStory<any>;
28
+ export declare const BlockButton: ComponentStory<any>;
29
+ export declare const IconButton: ComponentStory<any>;
30
+ export declare const Disabled: ComponentStory<any>;
31
+ export declare const MultipleButtons: ComponentStory<any>;
32
+ export declare const DangerButtons: ComponentStory<any>;
@@ -0,0 +1 @@
1
+ export { Button } from './Button';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TestButton: React.FC;
3
+ export default TestButton;
@@ -0,0 +1 @@
1
+ export { Divider } from 'antd';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.FC<import("antd").DividerProps>>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<React.FC<import("antd").DividerProps>>;
6
+ export declare const Horizontal: ComponentStory<any>;
7
+ export declare const TextWithoutHeadingStyle: ComponentStory<any>;
8
+ export declare const Vertical: ComponentStory<any>;
@@ -0,0 +1 @@
1
+ export { Divider } from './Divider';
@@ -0,0 +1 @@
1
+ export { Input } from 'antd';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("antd").InputProps & React.RefAttributes<import("rc-input").InputRef>> & {
4
+ Group: React.FC<import("antd/es/input").GroupProps>;
5
+ Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("rc-input").InputRef>>;
6
+ TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
7
+ Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("rc-input").InputRef>>;
8
+ }>;
9
+ export default _default;
10
+ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<import("antd").InputProps & React.RefAttributes<import("rc-input").InputRef>> & {
11
+ Group: React.FC<import("antd/es/input").GroupProps>;
12
+ Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("rc-input").InputRef>>;
13
+ TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
14
+ Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("rc-input").InputRef>>;
15
+ }>;
16
+ export declare const BasicUsage: ComponentStory<any>;
17
+ export declare const TextArea: ComponentStory<any>;
18
+ export declare const Status: ComponentStory<any>;
19
+ export declare const BorderLess: ComponentStory<any>;
@@ -0,0 +1 @@
1
+ export { Input } from './Input';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { InputNumberProps as AntdInputNumberProps } from 'antd';
3
+ interface InputNumberProps extends AntdInputNumberProps {
4
+ showHandler?: boolean;
5
+ }
6
+ export declare const InputNumber: React.FC<InputNumberProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export { InputNumber } from './InputNumber';
@@ -0,0 +1 @@
1
+ export { Radio } from 'antd';
@@ -0,0 +1 @@
1
+ export { Radio } from './Radio';
@@ -0,0 +1 @@
1
+ export { Space } from 'antd';
@@ -0,0 +1 @@
1
+ export { Space } from './Space';
@@ -0,0 +1 @@
1
+ export { Tag } from 'antd';
@@ -0,0 +1 @@
1
+ export { Tag } from './Tag';
@@ -0,0 +1 @@
1
+ export { Tooltip } from 'antd';
@@ -0,0 +1 @@
1
+ export { Tooltip } from './Tooltip';
@@ -0,0 +1 @@
1
+ export { Typography } from 'antd';
@@ -0,0 +1 @@
1
+ export { Typography } from './Text';
@@ -0,0 +1,9 @@
1
+ export { Button } from './Button';
2
+ export { Divider } from './Divider';
3
+ export { Input } from './Input';
4
+ export { InputNumber } from './InputNumber';
5
+ export { Radio } from './Radio';
6
+ export { Space } from './Space';
7
+ export { Tag } from './Tag';
8
+ export { Tooltip } from './Tooltip';
9
+ export { Typography } from './Typography';
@@ -0,0 +1,7 @@
1
+ import { ConfigProviderProps as AntdConfigProviderProps } from 'antd/es/config-provider';
2
+ import React, { ReactNode } from 'react';
3
+ interface ConfigProviderProps extends AntdConfigProviderProps {
4
+ children?: ReactNode;
5
+ }
6
+ declare const ConfigProvider: React.FC<ConfigProviderProps>;
7
+ export default ConfigProvider;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface GlobalStyleProps {
3
+ }
4
+ export declare const GlobalStyle: React.FC<GlobalStyleProps>;
5
+ export {};
@@ -0,0 +1 @@
1
+ export { default as ConfigProvider } from './ConfigProvider';
@@ -0,0 +1 @@
1
+ export { ConfigProvider } from './ConfigProvider';
@@ -0,0 +1,3 @@
1
+ export * from './atoms';
2
+ export * from './molecules';
3
+ export * from './common';
@@ -0,0 +1 @@
1
+ export { Alert } from 'antd';
@@ -0,0 +1 @@
1
+ export { Alert } from './Alert';
@@ -0,0 +1 @@
1
+ export { Cascader } from 'antd';
@@ -0,0 +1 @@
1
+ export { Cascader } from './Cascader';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomComponent: React.FC<any>;
@@ -0,0 +1 @@
1
+ export { CustomComponent } from './CustomComponent';
@@ -0,0 +1 @@
1
+ export { DatePicker } from 'antd';
@@ -0,0 +1 @@
1
+ export { DatePicker } from './DatePicker';
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { TAdvancedType, TOperatorKey, TOption } from './types';
3
+ export interface AdvancedProps {
4
+ title?: string;
5
+ dateTypeKeysShow?: string[];
6
+ defaultDateTypeKey?: string;
7
+ valueType?: string;
8
+ option?: TOption;
9
+ operatorKey?: TOperatorKey;
10
+ type?: TAdvancedType;
11
+ date?: string;
12
+ format?: string;
13
+ formatInputDisplay?: string;
14
+ inputStyle?: React.CSSProperties;
15
+ disableAfterDate?: string;
16
+ disableBeforeDate?: string;
17
+ errorMessage?: string;
18
+ callbackNewDate?: (newDate: any) => void;
19
+ onApply?: ({ date, option }: {
20
+ date: string;
21
+ option: TOption;
22
+ }) => void;
23
+ }
24
+ export declare const DatePickerAdvanced: React.FC<AdvancedProps>;
@@ -0,0 +1,48 @@
1
+ export declare const DATE_TYPES: {
2
+ value: string;
3
+ label: string;
4
+ }[];
5
+ export declare const CALCULATION_TYPES: {
6
+ value: string;
7
+ label: string;
8
+ }[];
9
+ export declare const CALCULATION_DATES: {
10
+ value: string;
11
+ label: string;
12
+ }[];
13
+ export declare const VALUE_TYPES: {
14
+ INPUT_TEXT: string;
15
+ INPUT_NUMBER: string;
16
+ MATCHES_ANY: string;
17
+ YEAR: string;
18
+ YEAR_QUARTER: string;
19
+ YEAR_MONTH: string;
20
+ YEAR_WEEK: string;
21
+ YEAR_MONTH_DAY: string;
22
+ YEAR_MONTH_DAY_HOUR: string;
23
+ YEAR_MONTH_DAY_MINUTE: string;
24
+ YEAR_MONTH_DAY_SECOND: string;
25
+ QUARTER: string;
26
+ MONTH: string;
27
+ WEEK: string;
28
+ MONTH_DAY: string;
29
+ DAY_OF_WEEK: string;
30
+ DAY: string;
31
+ HOUR: string;
32
+ MINUTE: string;
33
+ INPUT_TEXT_NO_FIELD: string;
34
+ };
35
+ export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
36
+ export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
37
+ export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
38
+ export declare const TIME_PICKER_TYPE: {
39
+ DATE_TIME: string;
40
+ DATE_HOUR: string;
41
+ DATE_HOUR_MINUTE: string;
42
+ DATE: string;
43
+ };
44
+ export declare const YEAR_PICKER_TYPE: {
45
+ YEAR: string;
46
+ MONTH: string;
47
+ QUARTER: string;
48
+ };
@@ -0,0 +1 @@
1
+ export { DatePickerAdvanced } from './DatePickerAdvanced';
@@ -0,0 +1,6 @@
1
+ export declare const DropdownContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DropdownFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
6
+ export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,11 @@
1
+ export type TOption = {
2
+ dateType: TDateType;
3
+ calculationType: TCalculationType;
4
+ calculationDate: TCalculationDate;
5
+ value: number;
6
+ };
7
+ export type TDateType = 'today' | 'first_day_of_week_mon_sun' | 'first_day_of_week_sun_sat' | 'first_day_of_month' | 'first_day_of_quarter' | 'first_day_of_year' | 'last_day_of_week_mon_sun' | 'last_day_of_week_sun_sat' | 'last_day_of_month' | 'last_day_of_quarter' | 'last_day_of_year' | 'fixed';
8
+ export type TCalculationType = 'minus' | 'plus' | '';
9
+ export type TCalculationDate = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | '';
10
+ export type TOperatorKey = 'after' | 'between' | 'before';
11
+ export type TAdvancedType = 'startDate' | 'endDate';
@@ -0,0 +1 @@
1
+ export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;
@@ -0,0 +1 @@
1
+ export { Dropdown } from 'antd';
@@ -0,0 +1 @@
1
+ export { Dropdown } from './Dropdown';
@@ -0,0 +1 @@
1
+ export { Modal } from 'antd';
@@ -0,0 +1 @@
1
+ export { Modal } from './Modal';
@@ -0,0 +1,15 @@
1
+ import { SelectProps as AntdSelectProps } from 'antd';
2
+ import React from 'react';
3
+ export interface SelectProps extends AntdSelectProps {
4
+ }
5
+ declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: AntdSelectProps<ValueType, OptionType> & {
6
+ children?: React.ReactNode;
7
+ } & {
8
+ ref?: React.Ref<import("antd").RefSelectProps> | undefined;
9
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
10
+ SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
11
+ Option: import("rc-select/lib/Option").OptionFC;
12
+ OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
13
+ _InternalPanelDoNotUseOrYouWillBeFired: any;
14
+ } & React.FC<SelectProps>;
15
+ export { Select };
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ import { Select, SelectProps } from './Select';
4
+ declare const _default: ComponentMeta<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
5
+ children?: React.ReactNode;
6
+ } & {
7
+ ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
8
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
9
+ SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
10
+ Option: import("rc-select/lib/Option").OptionFC;
11
+ OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
12
+ _InternalPanelDoNotUseOrYouWillBeFired: any;
13
+ } & React.FC<SelectProps>>;
14
+ export default _default;
15
+ export declare const Default: ComponentStory<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
16
+ children?: React.ReactNode;
17
+ } & {
18
+ ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
19
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
20
+ SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
21
+ Option: import("rc-select/lib/Option").OptionFC;
22
+ OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
23
+ _InternalPanelDoNotUseOrYouWillBeFired: any;
24
+ } & React.FC<SelectProps>>;
25
+ export declare const BasicUsage: ComponentStory<typeof Select>;
26
+ export declare const MultipleSelection: ComponentStory<typeof Select>;
27
+ export declare const CustomSelectionRender: ComponentStory<typeof Select>;
28
+ export declare const Status: ComponentStory<typeof Select>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SelectTest: () => JSX.Element;
3
+ export default SelectTest;
@@ -0,0 +1,2 @@
1
+ export { Select } from './Select';
2
+ export type { SelectProps } from './Select';
@@ -0,0 +1,4 @@
1
+ export declare const StyledTag: import("styled-components").StyledComponent<import("antd").TagType, any, {}, never>;
2
+ export declare const TagCloseBtn: import("styled-components").StyledComponent<"div", any, {
3
+ borderColor?: string | undefined;
4
+ }, never>;
@@ -0,0 +1,9 @@
1
+ export { Alert } from './Alert';
2
+ export { Cascader } from './Cascader';
3
+ export { Dropdown } from './Dropdown';
4
+ export { Modal } from './Modal';
5
+ export { Select } from './Select';
6
+ export { CustomComponent } from './CustomComponent';
7
+ export { DatePicker } from './DatePicker';
8
+ export { DatePickerAdvanced } from './DatePickerAdvanced';
9
+ export type { SelectProps } from './Select';
@@ -0,0 +1,12 @@
1
+ import { ThemeConfig } from 'antd';
2
+ type TTheme = {
3
+ token?: ThemeConfig['token'] & {
4
+ [key: string]: any;
5
+ };
6
+ components?: ThemeConfig['components'];
7
+ algorithm?: ThemeConfig['algorithm'];
8
+ hashed?: ThemeConfig['hashed'];
9
+ inherit?: ThemeConfig['inherit'];
10
+ };
11
+ export declare const THEME: TTheme;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useDeepCompareEffect(callback: React.EffectCallback, dependencies: React.DependencyList | undefined): void;
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import '@antscorp/icons/main.css';
3
+ export declare const App: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type THandleErrorPayload = {
2
+ path: string;
3
+ name: string;
4
+ args: Record<string, any>;
5
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Function to reorder list
3
+ * @param {Object[]} list - list of item want to reorder
4
+ * @param {number} startIndex - start item index want to replace position: ;
5
+ * @param {number} endIndex - end item index want to replace position: ;
6
+ * @returns {object[]}
7
+ */
8
+ export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
@@ -0,0 +1,2 @@
1
+ import { THandleErrorPayload } from 'src/types';
2
+ export declare const handleError: (error: any, payload: THandleErrorPayload) => void;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.1.10-beta.32",
3
+ "version": "1.1.10-beta.33",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "main": "dist/index.js",
6
+ "module": "dist/index.js",
6
7
  "files": [
7
8
  "dist"
8
9
  ],
10
+ "types": "dist/types",
9
11
  "scripts": {
10
12
  "dev": "vite",
11
13
  "build": "rollup -c",