foxit-component 0.0.1 → 0.0.2
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/README.md +44 -1
- package/es/Alert/Alert.d.ts +12 -0
- package/es/Alert/Alert.js +24 -0
- package/es/Button/Button.d.ts +9 -11
- package/es/Button/Button.js +6 -8
- package/es/Checkbox/Checkbox.d.ts +18 -0
- package/es/Checkbox/Checkbox.js +49 -0
- package/es/Drawer/Drawer.d.ts +10 -0
- package/es/Drawer/Drawer.js +14 -0
- package/es/Empty/Empty.d.ts +7 -0
- package/es/Empty/Empty.js +10 -0
- package/es/Form/Form.d.ts +15 -0
- package/es/Form/Form.js +38 -0
- package/es/Form/Form.types.d.ts +48 -0
- package/es/Form/FormContext.d.ts +3 -0
- package/es/Form/FormContext.js +5 -0
- package/es/Form/FormItem.d.ts +17 -0
- package/es/Form/FormItem.js +34 -0
- package/es/Form/FormProvider.d.ts +10 -0
- package/es/Form/FormProvider.js +260 -0
- package/es/Form/useFormWatch.d.ts +3 -0
- package/es/Form/useFormWatch.js +37 -0
- package/es/Icon/index.d.ts +7 -0
- package/es/Icon/index.js +9 -0
- package/es/Input/Input.d.ts +14 -0
- package/es/Input/Input.js +29 -0
- package/es/Menu/Menu.d.ts +24 -0
- package/es/Menu/Menu.js +167 -0
- package/es/Modal/Modal.d.ts +22 -0
- package/es/Modal/Modal.js +110 -0
- package/es/Modal/ModalTemp.d.ts +11 -0
- package/es/Modal/ModalTemp.js +75 -0
- package/es/Pagination/Pagination.d.ts +12 -0
- package/es/Pagination/Pagination.js +95 -0
- package/es/Quantity/Quantity.d.ts +10 -0
- package/es/Quantity/Quantity.js +45 -0
- package/es/Radio/Radio.d.ts +18 -0
- package/es/Radio/Radio.js +44 -0
- package/es/Select/Select.d.ts +27 -0
- package/es/Select/Select.js +52 -0
- package/es/Spin/Spin.d.ts +10 -0
- package/es/Spin/Spin.js +23 -0
- package/es/Switch/Switch.d.ts +9 -0
- package/es/Switch/Switch.js +20 -0
- package/es/Table/Table.d.ts +18 -0
- package/es/Table/Table.js +29 -0
- package/es/Tabs/Tabs.d.ts +16 -0
- package/es/Tabs/Tabs.js +43 -0
- package/es/Tag/Tag.d.ts +8 -0
- package/es/Tag/Tag.js +10 -0
- package/es/Toast/Toast.d.ts +5 -0
- package/es/Toast/Toast.js +43 -0
- package/es/Toast/Toast.types.d.ts +5 -0
- package/es/Toast/ToastContainer.d.ts +3 -0
- package/es/Toast/ToastContainer.js +46 -0
- package/es/Toast/ToastManager.d.ts +8 -0
- package/es/Toast/ToastManager.js +19 -0
- package/es/Toast/index.d.ts +8 -0
- package/es/Toast/index.js +39 -0
- package/es/Tooltip/Tooltip.d.ts +10 -0
- package/es/Tooltip/Tooltip.js +68 -0
- package/es/constants/icons.d.ts +42 -0
- package/es/constants/icons.js +47 -0
- package/es/index.css +1 -0
- package/es/index.d.ts +36 -0
- package/es/index.js +22 -0
- package/es/node_modules/tslib/tslib.es6.js +49 -1
- package/package.json +32 -16
- package/es/Button/button.css.js +0 -6
- package/es/node_modules/style-inject/dist/style-inject.es.js +0 -28
package/es/index.d.ts
CHANGED
|
@@ -1 +1,37 @@
|
|
|
1
|
+
import Checkbox from './Checkbox/Checkbox';
|
|
2
|
+
import Empty from './Empty/Empty';
|
|
3
|
+
import Form, { FormItem, useFormWatch } from './Form/Form';
|
|
4
|
+
import Input, { SearchInput, PasswordInput } from './Input/Input';
|
|
5
|
+
import Pagination from './Pagination/Pagination';
|
|
6
|
+
import Radio from './Radio/Radio';
|
|
7
|
+
import Select from './Select/Select';
|
|
8
|
+
import Table from './Table/Table';
|
|
9
|
+
import type { Column } from './Table/Table';
|
|
10
|
+
import Tabs from './Tabs/Tabs';
|
|
11
|
+
import Tag from './Tag/Tag';
|
|
12
|
+
import Toast from './Toast/index';
|
|
13
|
+
import Tooltip from './Tooltip/Tooltip';
|
|
1
14
|
export { Button } from './Button/Button';
|
|
15
|
+
export { Checkbox };
|
|
16
|
+
export { Empty };
|
|
17
|
+
export { Form, FormItem, useFormWatch };
|
|
18
|
+
export type { FormRefInstance } from './Form/Form.types';
|
|
19
|
+
export { Icon } from './Icon/index';
|
|
20
|
+
export { Input, SearchInput, PasswordInput };
|
|
21
|
+
export { Menu, getItem } from './Menu/Menu';
|
|
22
|
+
export type { MenuItem } from './Menu/Menu';
|
|
23
|
+
export { Modal } from './Modal/Modal';
|
|
24
|
+
export { Pagination };
|
|
25
|
+
export { Radio };
|
|
26
|
+
export { Select };
|
|
27
|
+
export { Table };
|
|
28
|
+
export type { Column };
|
|
29
|
+
export { Tabs };
|
|
30
|
+
export { Tag };
|
|
31
|
+
export { Toast };
|
|
32
|
+
export { Tooltip };
|
|
33
|
+
export { Switch } from './Switch/Switch';
|
|
34
|
+
export { Spin } from './Spin/Spin';
|
|
35
|
+
export { Alert } from './Alert/Alert';
|
|
36
|
+
export { Quantity } from './Quantity/Quantity';
|
|
37
|
+
export { Drawer } from './Drawer/Drawer';
|
package/es/index.js
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
2
|
+
export { default as Empty } from './Empty/Empty.js';
|
|
3
|
+
export { default as Form } from './Form/Form.js';
|
|
4
|
+
export { default as Input, PasswordInput, SearchInput } from './Input/Input.js';
|
|
5
|
+
export { default as Pagination } from './Pagination/Pagination.js';
|
|
6
|
+
export { default as Radio } from './Radio/Radio.js';
|
|
7
|
+
export { default as Select } from './Select/Select.js';
|
|
8
|
+
export { default as Table } from './Table/Table.js';
|
|
9
|
+
export { default as Tabs } from './Tabs/Tabs.js';
|
|
10
|
+
export { default as Tag } from './Tag/Tag.js';
|
|
11
|
+
export { default as Toast } from './Toast/index.js';
|
|
12
|
+
export { default as Tooltip } from './Tooltip/Tooltip.js';
|
|
1
13
|
export { Button } from './Button/Button.js';
|
|
14
|
+
export { Icon } from './Icon/index.js';
|
|
15
|
+
export { Menu, getItem } from './Menu/Menu.js';
|
|
16
|
+
export { Modal } from './Modal/Modal.js';
|
|
17
|
+
export { Switch } from './Switch/Switch.js';
|
|
18
|
+
export { Spin } from './Spin/Spin.js';
|
|
19
|
+
export { Alert } from './Alert/Alert.js';
|
|
20
|
+
export { Quantity } from './Quantity/Quantity.js';
|
|
21
|
+
export { Drawer } from './Drawer/Drawer.js';
|
|
22
|
+
export { default as FormItem } from './Form/FormItem.js';
|
|
23
|
+
export { useFormWatch } from './Form/useFormWatch.js';
|
|
@@ -38,9 +38,57 @@ function __rest(s, e) {
|
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function __generator(thisArg, body) {
|
|
52
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
53
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
54
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
55
|
+
function step(op) {
|
|
56
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
57
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
58
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
59
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
60
|
+
switch (op[0]) {
|
|
61
|
+
case 0: case 1: t = op; break;
|
|
62
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
63
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
64
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
65
|
+
default:
|
|
66
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
68
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
69
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
70
|
+
if (t[2]) _.ops.pop();
|
|
71
|
+
_.trys.pop(); continue;
|
|
72
|
+
}
|
|
73
|
+
op = body.call(thisArg, _);
|
|
74
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
75
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function __spreadArray(to, from, pack) {
|
|
80
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
81
|
+
if (ar || !(i in from)) {
|
|
82
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
83
|
+
ar[i] = from[i];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
87
|
+
}
|
|
88
|
+
|
|
41
89
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
42
90
|
var e = new Error(message);
|
|
43
91
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
44
92
|
};
|
|
45
93
|
|
|
46
|
-
export { __assign, __rest };
|
|
94
|
+
export { __assign, __awaiter, __generator, __rest, __spreadArray };
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxit-component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "linye",
|
|
6
|
+
"email": "869675630@qq.com"
|
|
7
|
+
},
|
|
8
|
+
"description": "Foxit React Component",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"foxit",
|
|
11
|
+
"component",
|
|
12
|
+
"css",
|
|
13
|
+
"react"
|
|
14
|
+
],
|
|
4
15
|
"module": "es/index.js",
|
|
5
16
|
"types": "es/index.d.ts",
|
|
6
17
|
"files": [
|
|
@@ -22,17 +33,18 @@
|
|
|
22
33
|
"@testing-library/user-event": "^13.5.0",
|
|
23
34
|
"@types/jest": "^27.5.2",
|
|
24
35
|
"@types/node": "^16.18.126",
|
|
25
|
-
"@types/react": "^
|
|
26
|
-
"@types/react-dom": "^
|
|
36
|
+
"@types/react": "^18",
|
|
37
|
+
"@types/react-dom": "^18",
|
|
27
38
|
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
28
39
|
"@typescript-eslint/parser": "^8.24.1",
|
|
40
|
+
"classnames": "^2.5.1",
|
|
29
41
|
"eslint": "^8.57.1",
|
|
30
42
|
"eslint-plugin-react": "^7.37.4",
|
|
31
43
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
32
44
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
33
|
-
"react": "^19.0.0",
|
|
34
|
-
"react-dom": "^19.0.0",
|
|
35
45
|
"react-scripts": "5.0.1",
|
|
46
|
+
"react-select": "^5.10.0",
|
|
47
|
+
"react-transition-group": "^4.4.5",
|
|
36
48
|
"typescript": "^4.9.5",
|
|
37
49
|
"web-vitals": "^2.1.4"
|
|
38
50
|
},
|
|
@@ -61,23 +73,27 @@
|
|
|
61
73
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
62
74
|
"@rollup/plugin-strip": "^3.0.4",
|
|
63
75
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
64
|
-
"@storybook/addon-essentials": "
|
|
65
|
-
"@storybook/addon-interactions": "
|
|
66
|
-
"@storybook/addon-onboarding": "
|
|
67
|
-
"@storybook/blocks": "
|
|
68
|
-
"@storybook/preset-create-react-app": "
|
|
69
|
-
"@storybook/react": "
|
|
70
|
-
"@storybook/react-webpack5": "
|
|
71
|
-
"@storybook/test": "
|
|
76
|
+
"@storybook/addon-essentials": "8.5.8",
|
|
77
|
+
"@storybook/addon-interactions": "8.5.8",
|
|
78
|
+
"@storybook/addon-onboarding": "8.5.8",
|
|
79
|
+
"@storybook/blocks": "8.5.8",
|
|
80
|
+
"@storybook/preset-create-react-app": "8.5.8",
|
|
81
|
+
"@storybook/react": "8.5.8",
|
|
82
|
+
"@storybook/react-webpack5": "8.5.8",
|
|
83
|
+
"@storybook/test": "8.5.8",
|
|
72
84
|
"autoprefixer": "^10.4.20",
|
|
73
85
|
"chromatic": "^11.25.2",
|
|
74
86
|
"eslint-plugin-storybook": "^0.11.3",
|
|
75
87
|
"prettier": "^3.5.1",
|
|
76
88
|
"prop-types": "^15.8.1",
|
|
89
|
+
"rollup": "^4.34.8",
|
|
77
90
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
78
91
|
"rollup-plugin-postcss": "^4.0.2",
|
|
79
|
-
"storybook": "
|
|
80
|
-
"webpack": "^5.98.0"
|
|
81
|
-
|
|
92
|
+
"storybook": "8.5.8",
|
|
93
|
+
"webpack": "^5.98.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"react": "^18",
|
|
97
|
+
"react-dom": "^18"
|
|
82
98
|
}
|
|
83
99
|
}
|
package/es/Button/button.css.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import styleInject from '../node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".storybook-button {\n display: inline-block;\n cursor: pointer;\n border: 0;\n border-radius: 3em;\n font-weight: 700;\n line-height: 1;\n font-family: \"Nunito Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n}\n.storybook-button--primary {\n background-color: #555ab9;\n color: white;\n}\n.storybook-button--secondary {\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;\n background-color: transparent;\n color: #333;\n}\n.storybook-button--small {\n padding: 10px 16px;\n font-size: 12px;\n}\n.storybook-button--medium {\n padding: 11px 20px;\n font-size: 14px;\n}\n.storybook-button--large {\n padding: 12px 24px;\n font-size: 16px;\n}\n";
|
|
4
|
-
styleInject(css_248z);
|
|
5
|
-
|
|
6
|
-
export { css_248z as default };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
function styleInject(css, ref) {
|
|
2
|
-
if ( ref === void 0 ) ref = {};
|
|
3
|
-
var insertAt = ref.insertAt;
|
|
4
|
-
|
|
5
|
-
if (typeof document === 'undefined') { return; }
|
|
6
|
-
|
|
7
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
-
var style = document.createElement('style');
|
|
9
|
-
style.type = 'text/css';
|
|
10
|
-
|
|
11
|
-
if (insertAt === 'top') {
|
|
12
|
-
if (head.firstChild) {
|
|
13
|
-
head.insertBefore(style, head.firstChild);
|
|
14
|
-
} else {
|
|
15
|
-
head.appendChild(style);
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
head.appendChild(style);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (style.styleSheet) {
|
|
22
|
-
style.styleSheet.cssText = css;
|
|
23
|
-
} else {
|
|
24
|
-
style.appendChild(document.createTextNode(css));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { styleInject as default };
|