@antscorp/antsomi-ui 1.2.0 → 1.2.1-beta.0
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/index.js +1 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +1 -2
- package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -0
- package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -0
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +4 -1
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +1 -0
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +1 -0
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +1 -1
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +2 -1
- package/dist/types/components/molecules/index.d.ts +1 -1
- package/dist/types/locales/i18n.d.ts +73 -0
- package/dist/types/locales/translations.d.ts +37 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -54
- package/dist/json/6c296f4f68b6157dbae376b802e8cb69.json +0 -8
- package/dist/json/92f420e6aec822089f8cf33e83aa1e0c.json +0 -8
- package/dist/types/jest-setup.d.ts +0 -1
- package/dist/types/src/components/atoms/Button/Button.d.ts +0 -1
- package/dist/types/src/components/atoms/Button/Button.stories.d.ts +0 -32
- package/dist/types/src/components/atoms/Button/index.d.ts +0 -10
- package/dist/types/src/components/atoms/Button/test.d.ts +0 -3
- package/dist/types/src/components/atoms/Divider/Divider.d.ts +0 -1
- package/dist/types/src/components/atoms/Divider/Divider.stories.d.ts +0 -8
- package/dist/types/src/components/atoms/Divider/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Input/Input.d.ts +0 -7
- package/dist/types/src/components/atoms/Input/Input.stories.d.ts +0 -19
- package/dist/types/src/components/atoms/Input/index.d.ts +0 -1
- package/dist/types/src/components/atoms/InputNumber/InputNumber.d.ts +0 -7
- package/dist/types/src/components/atoms/InputNumber/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Radio/Radio.d.ts +0 -1
- package/dist/types/src/components/atoms/Radio/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Space/Space.d.ts +0 -1
- package/dist/types/src/components/atoms/Space/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Tag/Tag.d.ts +0 -1
- package/dist/types/src/components/atoms/Tag/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Tooltip/Tooltip.d.ts +0 -1
- package/dist/types/src/components/atoms/Tooltip/index.d.ts +0 -1
- package/dist/types/src/components/atoms/Typography/Text.d.ts +0 -1
- package/dist/types/src/components/atoms/Typography/index.d.ts +0 -1
- package/dist/types/src/components/atoms/index.d.ts +0 -9
- package/dist/types/src/components/common/ConfigProvider/ConfigProvider.d.ts +0 -7
- package/dist/types/src/components/common/ConfigProvider/GlobalStyle.d.ts +0 -5
- package/dist/types/src/components/common/ConfigProvider/index.d.ts +0 -1
- package/dist/types/src/components/common/index.d.ts +0 -1
- package/dist/types/src/components/icons/EventIcon.d.ts +0 -3
- package/dist/types/src/components/icons/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts +0 -3
- package/dist/types/src/components/molecules/Alert/Alert.d.ts +0 -1
- package/dist/types/src/components/molecules/Alert/index.d.ts +0 -1
- package/dist/types/src/components/molecules/Cascader/Cascader.d.ts +0 -1
- package/dist/types/src/components/molecules/Cascader/index.d.ts +0 -1
- package/dist/types/src/components/molecules/CustomComponent/CustomComponent.d.ts +0 -2
- package/dist/types/src/components/molecules/CustomComponent/index.d.ts +0 -1
- package/dist/types/src/components/molecules/DatePicker/DatePicker.d.ts +0 -8
- package/dist/types/src/components/molecules/DatePicker/DatePicker.stories.d.ts +0 -4
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +0 -24
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +0 -5
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +0 -53
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +0 -3
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +0 -6
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +0 -11
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +0 -15
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +0 -9
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +0 -7
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +0 -4
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +0 -2
- package/dist/types/src/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +0 -14
- package/dist/types/src/components/molecules/DatePicker/index.d.ts +0 -3
- package/dist/types/src/components/molecules/Dropdown/Dropdown.d.ts +0 -1
- package/dist/types/src/components/molecules/Dropdown/index.d.ts +0 -1
- package/dist/types/src/components/molecules/Modal/Modal.d.ts +0 -1
- package/dist/types/src/components/molecules/Modal/index.d.ts +0 -1
- package/dist/types/src/components/molecules/Select/Select.d.ts +0 -15
- package/dist/types/src/components/molecules/Select/Select.stories.d.ts +0 -28
- package/dist/types/src/components/molecules/Select/Test.d.ts +0 -3
- package/dist/types/src/components/molecules/Select/index.d.ts +0 -2
- package/dist/types/src/components/molecules/Select/styled.d.ts +0 -4
- package/dist/types/src/components/molecules/index.d.ts +0 -8
- package/dist/types/src/constants.d.ts +0 -12
- package/dist/types/src/hooks/index.d.ts +0 -2
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/locales/i18n.d.ts +0 -23
- package/dist/types/src/locales/translations.d.ts +0 -14
- package/dist/types/src/test.d.ts +0 -3
- package/dist/types/src/types/index.d.ts +0 -5
- package/dist/types/src/utils/common.d.ts +0 -8
- package/dist/types/src/utils/handleError.d.ts +0 -2
- /package/dist/types/{src/components → components}/atoms/Button/__tests__/Button.test.d.ts +0 -0
- /package/dist/types/{src/locales → locales}/types.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './Checkbox';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputNumberProps as AntdInputNumberProps } from 'antd';
|
|
3
|
-
interface InputNumberProps extends AntdInputNumberProps {
|
|
3
|
+
export interface InputNumberProps extends AntdInputNumberProps {
|
|
4
4
|
showHandler?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const InputNumber: React.FC<InputNumberProps>;
|
|
7
|
-
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./InputNumber").InputNumberProps>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<React.FC<import("./InputNumber").InputNumberProps>>;
|
|
6
|
+
export declare const BasicUsage: ComponentStory<any>;
|
|
7
|
+
export declare const PrePostTab: ComponentStory<any>;
|
|
8
|
+
export declare const HighPrecisionDecimals: ComponentStory<any>;
|
|
9
|
+
export declare const KeyBoard: ComponentStory<any>;
|
|
10
|
+
export declare const OutOfRange: ComponentStory<any>;
|
|
11
|
+
export declare const Status: ComponentStory<any>;
|
|
12
|
+
export declare const Sizes: ComponentStory<any>;
|
|
13
|
+
export declare const Disabled: ComponentStory<any>;
|
|
14
|
+
export declare const Formatter: ComponentStory<any>;
|
|
15
|
+
export declare const Borderless: ComponentStory<any>;
|
|
16
|
+
export declare const Prefix: ComponentStory<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ConfigProviderProps as AntdConfigProviderProps } from 'antd/es/config-provider';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
|
-
|
|
3
|
+
import { TLocale } from 'src/types';
|
|
4
|
+
import 'src/locales/i18n';
|
|
5
|
+
interface ConfigProviderProps extends Omit<AntdConfigProviderProps, 'locale'> {
|
|
4
6
|
children?: ReactNode;
|
|
7
|
+
locale?: TLocale;
|
|
5
8
|
}
|
|
6
9
|
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
7
10
|
export default ConfigProvider;
|
|
@@ -4,3 +4,4 @@ export declare const DropdownFooter: import("styled-components").StyledComponent
|
|
|
4
4
|
export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
6
6
|
export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const CalendarIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* @param {number} [value=0] - Value to be added or subtracted.
|
|
12
12
|
* @param {string} [dateFormat=DEFAULT_DATE_FORMAT] - Format in which to return the new date.
|
|
13
13
|
* @returns {string} The new date in the specified format.
|
|
14
|
-
*/
|
|
14
|
+
*/
|
|
15
15
|
export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TOnChangePayload, TTimeRange } from './types';
|
|
3
3
|
export interface AdvancedRangePickerProps {
|
|
4
|
+
calculationTypeKeysShow?: string[];
|
|
4
5
|
timeRange: TTimeRange;
|
|
5
6
|
errorMessage?: string;
|
|
6
7
|
showLabel?: boolean;
|
|
7
|
-
onChange?: ({ timeRange, mode
|
|
8
|
+
onChange?: ({ timeRange, mode }: TOnChangePayload) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare const AdvancedRangePicker: React.FC<AdvancedRangePickerProps>;
|
|
@@ -5,4 +5,4 @@ export { Modal } from './Modal';
|
|
|
5
5
|
export { Select } from './Select';
|
|
6
6
|
export { CustomComponent } from './CustomComponent';
|
|
7
7
|
export { DatePicker } from './DatePicker';
|
|
8
|
-
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange } from './DatePicker';
|
|
8
|
+
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const translationsJson: {
|
|
2
|
+
en: {
|
|
3
|
+
translation: {
|
|
4
|
+
global: {
|
|
5
|
+
minus: string;
|
|
6
|
+
plus: string;
|
|
7
|
+
};
|
|
8
|
+
button: {};
|
|
9
|
+
datePicker: {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
dateTypes: {
|
|
13
|
+
today: string;
|
|
14
|
+
firstDayOfWeekMonSun: string;
|
|
15
|
+
firstDayOfWeekSunSat: string;
|
|
16
|
+
firstDayOfMonth: string;
|
|
17
|
+
firstDayOfQuarter: string;
|
|
18
|
+
firstDayOfYear: string;
|
|
19
|
+
lastDayOfWeekMonSun: string;
|
|
20
|
+
lastDayOfWeekSunSat: string;
|
|
21
|
+
lastDayOfMonth: string;
|
|
22
|
+
lastDayOfQuarter: string;
|
|
23
|
+
lastDayOfYear: string;
|
|
24
|
+
fixed: string;
|
|
25
|
+
};
|
|
26
|
+
seconds: string;
|
|
27
|
+
minutes: string;
|
|
28
|
+
hours: string;
|
|
29
|
+
days: string;
|
|
30
|
+
weeks: string;
|
|
31
|
+
months: string;
|
|
32
|
+
quarters: string;
|
|
33
|
+
years: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
vi: {
|
|
38
|
+
translation: {
|
|
39
|
+
global: {
|
|
40
|
+
minus: string;
|
|
41
|
+
plus: string;
|
|
42
|
+
};
|
|
43
|
+
button: {};
|
|
44
|
+
datePicker: {
|
|
45
|
+
startDate: string;
|
|
46
|
+
endDate: string;
|
|
47
|
+
dateTypes: {
|
|
48
|
+
today: string;
|
|
49
|
+
firstDayOfWeekMonSun: string;
|
|
50
|
+
firstDayOfWeekSunSat: string;
|
|
51
|
+
firstDayOfMonth: string;
|
|
52
|
+
firstDayOfQuarter: string;
|
|
53
|
+
firstDayOfYear: string;
|
|
54
|
+
lastDayOfWeekMonSun: string;
|
|
55
|
+
lastDayOfWeekSunSat: string;
|
|
56
|
+
lastDayOfMonth: string;
|
|
57
|
+
lastDayOfQuarter: string;
|
|
58
|
+
lastDayOfYear: string;
|
|
59
|
+
fixed: string;
|
|
60
|
+
};
|
|
61
|
+
seconds: string;
|
|
62
|
+
minutes: string;
|
|
63
|
+
hours: string;
|
|
64
|
+
days: string;
|
|
65
|
+
weeks: string;
|
|
66
|
+
months: string;
|
|
67
|
+
quarters: string;
|
|
68
|
+
years: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ConvertedToObjectType, TranslationJsonType } from './types';
|
|
2
|
+
export declare const translations: ConvertedToObjectType<TranslationJsonType>;
|
|
3
|
+
export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
|
|
4
|
+
global: {
|
|
5
|
+
minus: string;
|
|
6
|
+
plus: string;
|
|
7
|
+
};
|
|
8
|
+
button: {};
|
|
9
|
+
datePicker: {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
dateTypes: {
|
|
13
|
+
today: string;
|
|
14
|
+
firstDayOfWeekMonSun: string;
|
|
15
|
+
firstDayOfWeekSunSat: string;
|
|
16
|
+
firstDayOfMonth: string;
|
|
17
|
+
firstDayOfQuarter: string;
|
|
18
|
+
firstDayOfYear: string;
|
|
19
|
+
lastDayOfWeekMonSun: string;
|
|
20
|
+
lastDayOfWeekSunSat: string;
|
|
21
|
+
lastDayOfMonth: string;
|
|
22
|
+
lastDayOfQuarter: string;
|
|
23
|
+
lastDayOfYear: string;
|
|
24
|
+
fixed: string;
|
|
25
|
+
};
|
|
26
|
+
seconds: string;
|
|
27
|
+
minutes: string;
|
|
28
|
+
hours: string;
|
|
29
|
+
days: string;
|
|
30
|
+
weeks: string;
|
|
31
|
+
months: string;
|
|
32
|
+
quarters: string;
|
|
33
|
+
years: string;
|
|
34
|
+
};
|
|
35
|
+
}>, current?: string) => void;
|
|
36
|
+
export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
|
|
37
|
+
export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
### Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
-
|
|
5
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
-
|
|
7
|
-
#### [v1.2.0](https://github.com/irisnikita/antsomi-ui/compare/v1.1.11...v1.2.0)
|
|
8
|
-
|
|
9
|
-
- chore(jestTest): config jest test for react component [`f84b44d`](https://github.com/irisnikita/antsomi-ui/commit/f84b44d595c8b6d2b023fe473ec31cb71cfedc9d)
|
|
10
|
-
- chore(locales): add translate config for project [`7332eba`](https://github.com/irisnikita/antsomi-ui/commit/7332eba57f8841b57bfdd1dc93653ff30e8a9fca)
|
|
11
|
-
|
|
12
|
-
#### [v1.1.11](https://github.com/irisnikita/antsomi-ui/compare/v1.1.10...v1.1.11)
|
|
13
|
-
|
|
14
|
-
> 9 April 2023
|
|
15
|
-
|
|
16
|
-
- feat(DatePickerAdvanced): add new DatePickerAdvanced component [`2966953`](https://github.com/irisnikita/antsomi-ui/commit/2966953a8b37978784f00759ffc637b74bddd402)
|
|
17
|
-
- style(GlobalStyle): change global style for date picker when hover [`4a31019`](https://github.com/irisnikita/antsomi-ui/commit/4a3101984c322d292824f71e8a85f2a6ec37eb00)
|
|
18
|
-
- feat(DatePicker.tsx): create DatePicker, AdvancePicker, AdvancedRangePicker component [`e62c8fa`](https://github.com/irisnikita/antsomi-ui/commit/e62c8fa7c88a32949f40b988e263d9d76d0d5a93)
|
|
19
|
-
|
|
20
|
-
#### [v1.1.10](https://github.com/irisnikita/antsomi-ui/compare/v1.1.9...v1.1.10)
|
|
21
|
-
|
|
22
|
-
> 31 March 2023
|
|
23
|
-
|
|
24
|
-
- chore: update package version to 1.1.10-beta.6 [`722e80c`](https://github.com/irisnikita/antsomi-ui/commit/722e80cf61fab78aba82c6252a8cb9dc731c8f7c)
|
|
25
|
-
|
|
26
|
-
#### [v1.1.9](https://github.com/irisnikita/antsomi-ui/compare/v1.1.6...v1.1.9)
|
|
27
|
-
|
|
28
|
-
> 29 March 2023
|
|
29
|
-
|
|
30
|
-
#### [v1.1.6](https://github.com/irisnikita/antsomi-ui/compare/v1.1.5...v1.1.6)
|
|
31
|
-
|
|
32
|
-
> 28 March 2023
|
|
33
|
-
|
|
34
|
-
- chore(Divider.stories.tsx): update links text in Vertical story of Divider component [`e3c3a78`](https://github.com/irisnikita/antsomi-ui/commit/e3c3a78ba368e711f981ab4bf5e2b996b0c7c4f9)
|
|
35
|
-
|
|
36
|
-
#### [v1.1.5](https://github.com/irisnikita/antsomi-ui/compare/v1.1.4...v1.1.5)
|
|
37
|
-
|
|
38
|
-
> 28 March 2023
|
|
39
|
-
|
|
40
|
-
- chore(Divider.stories.tsx): update links in Vertical story to have unique text [`ad7d462`](https://github.com/irisnikita/antsomi-ui/commit/ad7d46246d3d5078d8963321875503f9bcc55c62)
|
|
41
|
-
|
|
42
|
-
#### [v1.1.4](https://github.com/irisnikita/antsomi-ui/compare/v1.1.3...v1.1.4)
|
|
43
|
-
|
|
44
|
-
> 28 March 2023
|
|
45
|
-
|
|
46
|
-
- feat(Divider): add text to Vertical story [`d9288eb`](https://github.com/irisnikita/antsomi-ui/commit/d9288ebd1ea4221fcc74f0d7036981321afa1fa1)
|
|
47
|
-
|
|
48
|
-
#### v1.1.3
|
|
49
|
-
|
|
50
|
-
> 28 March 2023
|
|
51
|
-
|
|
52
|
-
- Create CHANGELOG.md [`5210493`](https://github.com/irisnikita/antsomi-ui/commit/5210493564763454f79b6cee9b7f7eb8f7049189)
|
|
53
|
-
- Init antosmi UI [`175bcd4`](https://github.com/irisnikita/antsomi-ui/commit/175bcd4b05dacb70bfa4c463c0ae53591e344673)
|
|
54
|
-
- chore(package): add and config commitlint [`a56d6c8`](https://github.com/irisnikita/antsomi-ui/commit/a56d6c80205dcb7d8a4b30f5e44f2daac832fedf)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Button } from 'antd';
|
|
@@ -1,32 +0,0 @@
|
|
|
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" | "submit" | "reset" | 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" | "submit" | "reset" | 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>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const Button: import("react").ForwardRefExoticComponent<Partial<{
|
|
2
|
-
href: string;
|
|
3
|
-
target?: string | undefined;
|
|
4
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
5
|
-
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
6
|
-
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
7
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
8
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
9
|
-
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Divider } from 'antd';
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Divider } from './Divider';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Input: import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
|
|
3
|
-
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
4
|
-
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
5
|
-
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
6
|
-
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
7
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Input } from './Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputNumber } from './InputNumber';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Radio } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Radio } from './Radio';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Space } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Space } from './Space';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from './Tag';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip } from './Tooltip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Typography } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Typography } from './Text';
|
|
@@ -1,9 +0,0 @@
|
|
|
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';
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ConfigProvider } from './ConfigProvider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ConfigProvider } from './ConfigProvider';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EventIcon } from './EventIcon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert } from './Alert';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Cascader } from 'antd';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Cascader } from './Cascader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CustomComponent } from './CustomComponent';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DatePicker as AntdDatePicker } from 'antd';
|
|
2
|
-
import { AdvancedPicker } from './components/AdvancedPicker';
|
|
3
|
-
import { AdvancedRangePicker } from './components/AdvancedRangePicker';
|
|
4
|
-
export type TDatePicker = typeof AntdDatePicker & {
|
|
5
|
-
AdvancedPicker: typeof AdvancedPicker;
|
|
6
|
-
AdvancedRangePicker: typeof AdvancedRangePicker;
|
|
7
|
-
};
|
|
8
|
-
export declare const DatePicker: TDatePicker;
|
package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TAdvancedType, TOperatorKey, TOption } from './types';
|
|
3
|
-
export interface AdvancedPickerProps {
|
|
4
|
-
label?: 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
|
-
onUpdatedNewDate?: (newDate: any) => void;
|
|
19
|
-
onApply?: ({ date, option }: {
|
|
20
|
-
date: string;
|
|
21
|
-
option: TOption;
|
|
22
|
-
}) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: ComponentStory<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
package/dist/types/src/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { TAdvancedType } from './types';
|
|
2
|
-
export declare const DATE_TYPES: {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const CALCULATION_TYPES: {
|
|
7
|
-
value: string;
|
|
8
|
-
label: string;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const CALCULATION_DATES: {
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
14
|
-
export declare const VALUE_TYPES: {
|
|
15
|
-
INPUT_TEXT: string;
|
|
16
|
-
INPUT_NUMBER: string;
|
|
17
|
-
MATCHES_ANY: string;
|
|
18
|
-
YEAR: string;
|
|
19
|
-
YEAR_QUARTER: string;
|
|
20
|
-
YEAR_MONTH: string;
|
|
21
|
-
YEAR_WEEK: string;
|
|
22
|
-
YEAR_MONTH_DAY: string;
|
|
23
|
-
YEAR_MONTH_DAY_HOUR: string;
|
|
24
|
-
YEAR_MONTH_DAY_MINUTE: string;
|
|
25
|
-
YEAR_MONTH_DAY_SECOND: string;
|
|
26
|
-
QUARTER: string;
|
|
27
|
-
MONTH: string;
|
|
28
|
-
WEEK: string;
|
|
29
|
-
MONTH_DAY: string;
|
|
30
|
-
DAY_OF_WEEK: string;
|
|
31
|
-
DAY: string;
|
|
32
|
-
HOUR: string;
|
|
33
|
-
MINUTE: string;
|
|
34
|
-
INPUT_TEXT_NO_FIELD: string;
|
|
35
|
-
};
|
|
36
|
-
export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
|
|
37
|
-
export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
38
|
-
export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
|
|
39
|
-
export declare const TIME_PICKER_TYPE: {
|
|
40
|
-
DATE_TIME: string;
|
|
41
|
-
DATE_HOUR: string;
|
|
42
|
-
DATE_HOUR_MINUTE: string;
|
|
43
|
-
DATE: string;
|
|
44
|
-
};
|
|
45
|
-
export declare const YEAR_PICKER_TYPE: {
|
|
46
|
-
YEAR: string;
|
|
47
|
-
MONTH: string;
|
|
48
|
-
QUARTER: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const ADVANCED_PICKER_TYPE: Record<string, {
|
|
51
|
-
value: TAdvancedType;
|
|
52
|
-
label: string;
|
|
53
|
-
}>;
|