foxit-component 1.0.4 → 1.0.5-alpha.10
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/es/Accordion/Accordion.d.ts +22 -0
- package/es/Accordion/Accordion.js +60 -0
- package/es/Alert/Alert.d.ts +2 -1
- package/es/Alert/Alert.js +5 -2
- package/es/Button/Button.d.ts +2 -1
- package/es/Button/Button.js +2 -2
- package/es/Checkbox/Checkbox.d.ts +3 -1
- package/es/Checkbox/Checkbox.js +10 -4
- package/es/ConfigProvider/ConfigProvider.d.ts +11 -0
- package/es/ConfigProvider/ConfigProvider.js +19 -0
- package/es/Input/Input.d.ts +6 -1
- package/es/Input/Input.js +5 -1
- package/es/Input/PhoneInput.d.ts +20 -0
- package/es/Input/PhoneInput.js +145 -0
- package/es/Input/areaCodeData.d.ts +8 -0
- package/es/Input/areaCodeData.js +270 -0
- package/es/Menu/Menu.js +40 -16
- package/es/Modal/Modal.d.ts +2 -0
- package/es/Modal/Modal.js +7 -7
- package/es/Modal/ModalTemp.d.ts +1 -0
- package/es/Modal/ModalTemp.js +4 -4
- package/es/Quantity/Quantity.js +13 -1
- package/es/Select/Select.d.ts +6 -1
- package/es/Select/Select.js +13 -21
- package/es/Table/Table.d.ts +12 -1
- package/es/Table/Table.js +40 -11
- package/es/Table/useRowSelection.d.ts +22 -0
- package/es/Table/useRowSelection.js +116 -0
- package/es/Tabs/Tabs.d.ts +1 -0
- package/es/Tabs/Tabs.js +6 -4
- package/es/Tooltip/Tooltip.d.ts +2 -0
- package/es/Tooltip/Tooltip.js +133 -26
- package/es/index.css +1 -1
- package/es/index.d.ts +8 -2
- package/es/index.js +4 -1
- package/es/utils.d.ts +2 -0
- package/es/utils.js +21 -0
- package/package.json +2 -1
package/es/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Checkbox from './Checkbox/Checkbox';
|
|
2
2
|
import Empty from './Empty/Empty';
|
|
3
3
|
import Form, { FormItem, useFormWatch } from './Form/Form';
|
|
4
|
-
import Input, { SearchInput, PasswordInput } from './Input/Input';
|
|
4
|
+
import Input, { SearchInput, PasswordInput, TextArea } from './Input/Input';
|
|
5
|
+
import PhoneInput from './Input/PhoneInput';
|
|
5
6
|
import Pagination from './Pagination/Pagination';
|
|
6
7
|
import Radio from './Radio/Radio';
|
|
7
8
|
import Select from './Select/Select';
|
|
@@ -11,13 +12,17 @@ import Tabs from './Tabs/Tabs';
|
|
|
11
12
|
import Tag from './Tag/Tag';
|
|
12
13
|
import Toast from './Toast/index';
|
|
13
14
|
import Tooltip from './Tooltip/Tooltip';
|
|
15
|
+
export { Accordion } from './Accordion/Accordion';
|
|
16
|
+
export type { AccordionItem, AccordionProps } from './Accordion/Accordion';
|
|
14
17
|
export { Button } from './Button/Button';
|
|
15
18
|
export { Checkbox };
|
|
16
19
|
export { Empty };
|
|
17
20
|
export { Form, FormItem, useFormWatch };
|
|
18
21
|
export type { FormRefInstance } from './Form/Form.types';
|
|
19
22
|
export { Icon } from './Icon/index';
|
|
20
|
-
export { Input, SearchInput, PasswordInput };
|
|
23
|
+
export { Input, SearchInput, PasswordInput, PhoneInput, TextArea };
|
|
24
|
+
export type { PhoneInputFieldValue, PhoneInputProps, PhoneInputValue } from './Input/PhoneInput';
|
|
25
|
+
export type { AreaCodeOption } from './Input/areaCodeData';
|
|
21
26
|
export { Menu, getItem } from './Menu/Menu';
|
|
22
27
|
export type { MenuItem } from './Menu/Menu';
|
|
23
28
|
export { Modal } from './Modal/Modal';
|
|
@@ -36,4 +41,5 @@ export { Alert } from './Alert/Alert';
|
|
|
36
41
|
export { Quantity } from './Quantity/Quantity';
|
|
37
42
|
export { Drawer } from './Drawer/Drawer';
|
|
38
43
|
export { Steps } from './Steps/Steps';
|
|
44
|
+
export { ConfigProvider, useConfig } from './ConfigProvider/ConfigProvider';
|
|
39
45
|
export type { StepsProps, StepItem } from './Steps/Steps.types';
|
package/es/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
2
2
|
export { default as Empty } from './Empty/Empty.js';
|
|
3
3
|
export { default as Form } from './Form/Form.js';
|
|
4
|
-
export { default as Input, PasswordInput, SearchInput } from './Input/Input.js';
|
|
4
|
+
export { default as Input, PasswordInput, SearchInput, TextArea } from './Input/Input.js';
|
|
5
|
+
export { default as PhoneInput } from './Input/PhoneInput.js';
|
|
5
6
|
export { default as Pagination } from './Pagination/Pagination.js';
|
|
6
7
|
export { default as Radio } from './Radio/Radio.js';
|
|
7
8
|
export { default as Select } from './Select/Select.js';
|
|
@@ -10,6 +11,7 @@ export { default as Tabs } from './Tabs/Tabs.js';
|
|
|
10
11
|
export { default as Tag } from './Tag/Tag.js';
|
|
11
12
|
export { default as Toast } from './Toast/index.js';
|
|
12
13
|
export { default as Tooltip } from './Tooltip/Tooltip.js';
|
|
14
|
+
export { Accordion } from './Accordion/Accordion.js';
|
|
13
15
|
export { Button } from './Button/Button.js';
|
|
14
16
|
export { Icon } from './Icon/index.js';
|
|
15
17
|
export { Menu, getItem } from './Menu/Menu.js';
|
|
@@ -20,5 +22,6 @@ export { Alert } from './Alert/Alert.js';
|
|
|
20
22
|
export { Quantity } from './Quantity/Quantity.js';
|
|
21
23
|
export { Drawer } from './Drawer/Drawer.js';
|
|
22
24
|
export { Steps } from './Steps/Steps.js';
|
|
25
|
+
export { ConfigProvider, useConfig } from './ConfigProvider/ConfigProvider.js';
|
|
23
26
|
export { default as FormItem } from './Form/FormItem.js';
|
|
24
27
|
export { useFormWatch } from './Form/useFormWatch.js';
|
package/es/utils.d.ts
ADDED
package/es/utils.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var getDirection = function (element) {
|
|
2
|
+
var _a;
|
|
3
|
+
if (typeof window === 'undefined' || !document)
|
|
4
|
+
return 'ltr';
|
|
5
|
+
var current = element || document.documentElement;
|
|
6
|
+
var htmlDir = (_a = document.querySelector('html')) === null || _a === void 0 ? void 0 : _a.getAttribute('dir');
|
|
7
|
+
if (htmlDir && (htmlDir === 'rtl' || htmlDir === 'ltr')) {
|
|
8
|
+
return htmlDir;
|
|
9
|
+
}
|
|
10
|
+
while (current) {
|
|
11
|
+
var dir = current.getAttribute('dir');
|
|
12
|
+
if (dir === 'rtl' || dir === 'ltr') {
|
|
13
|
+
return dir;
|
|
14
|
+
}
|
|
15
|
+
current = current.parentElement;
|
|
16
|
+
}
|
|
17
|
+
var rootDir = document.documentElement.getAttribute('dir');
|
|
18
|
+
return (rootDir === 'rtl' ? 'rtl' : 'ltr');
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { getDirection };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxit-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5-alpha.10",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "linye",
|
|
6
6
|
"email": "869675630@qq.com"
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"autoprefixer": "^10.4.20",
|
|
85
85
|
"chromatic": "^11.25.2",
|
|
86
86
|
"eslint-plugin-storybook": "^0.11.3",
|
|
87
|
+
"postcss-rtlcss": "^5.7.1",
|
|
87
88
|
"prettier": "^3.5.1",
|
|
88
89
|
"prop-types": "^15.8.1",
|
|
89
90
|
"rollup": "^4.34.8",
|