foxit-component 0.0.1 → 1.0.0-alpha.29

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 (70) hide show
  1. package/README.md +44 -1
  2. package/es/Alert/Alert.d.ts +12 -0
  3. package/es/Alert/Alert.js +24 -0
  4. package/es/Button/Button.d.ts +9 -11
  5. package/es/Button/Button.js +6 -8
  6. package/es/Checkbox/Checkbox.d.ts +18 -0
  7. package/es/Checkbox/Checkbox.js +49 -0
  8. package/es/Drawer/Drawer.d.ts +10 -0
  9. package/es/Drawer/Drawer.js +14 -0
  10. package/es/Empty/Empty.d.ts +7 -0
  11. package/es/Empty/Empty.js +10 -0
  12. package/es/Form/Form.d.ts +15 -0
  13. package/es/Form/Form.js +38 -0
  14. package/es/Form/Form.types.d.ts +48 -0
  15. package/es/Form/FormContext.d.ts +3 -0
  16. package/es/Form/FormContext.js +5 -0
  17. package/es/Form/FormItem.d.ts +16 -0
  18. package/es/Form/FormItem.js +34 -0
  19. package/es/Form/FormProvider.d.ts +10 -0
  20. package/es/Form/FormProvider.js +260 -0
  21. package/es/Form/useFormWatch.d.ts +3 -0
  22. package/es/Form/useFormWatch.js +37 -0
  23. package/es/Icon/index.d.ts +7 -0
  24. package/es/Icon/index.js +9 -0
  25. package/es/Input/Input.d.ts +14 -0
  26. package/es/Input/Input.js +29 -0
  27. package/es/Menu/Menu.d.ts +23 -0
  28. package/es/Menu/Menu.js +163 -0
  29. package/es/Modal/Modal.d.ts +22 -0
  30. package/es/Modal/Modal.js +110 -0
  31. package/es/Modal/ModalTemp.d.ts +11 -0
  32. package/es/Modal/ModalTemp.js +75 -0
  33. package/es/Pagination/Pagination.d.ts +12 -0
  34. package/es/Pagination/Pagination.js +95 -0
  35. package/es/Quantity/Quantity.d.ts +10 -0
  36. package/es/Quantity/Quantity.js +45 -0
  37. package/es/Radio/Radio.d.ts +18 -0
  38. package/es/Radio/Radio.js +44 -0
  39. package/es/Select/Select.d.ts +27 -0
  40. package/es/Select/Select.js +47 -0
  41. package/es/Spin/Spin.d.ts +10 -0
  42. package/es/Spin/Spin.js +23 -0
  43. package/es/Switch/Switch.d.ts +9 -0
  44. package/es/Switch/Switch.js +20 -0
  45. package/es/Table/Table.d.ts +18 -0
  46. package/es/Table/Table.js +29 -0
  47. package/es/Tabs/Tabs.d.ts +14 -0
  48. package/es/Tabs/Tabs.js +21 -0
  49. package/es/Tag/Tag.d.ts +8 -0
  50. package/es/Tag/Tag.js +10 -0
  51. package/es/Toast/Toast.d.ts +5 -0
  52. package/es/Toast/Toast.js +43 -0
  53. package/es/Toast/Toast.types.d.ts +5 -0
  54. package/es/Toast/ToastContainer.d.ts +3 -0
  55. package/es/Toast/ToastContainer.js +46 -0
  56. package/es/Toast/ToastManager.d.ts +8 -0
  57. package/es/Toast/ToastManager.js +19 -0
  58. package/es/Toast/index.d.ts +8 -0
  59. package/es/Toast/index.js +39 -0
  60. package/es/Tooltip/Tooltip.d.ts +8 -0
  61. package/es/Tooltip/Tooltip.js +51 -0
  62. package/es/constants/icons.d.ts +40 -0
  63. package/es/constants/icons.js +45 -0
  64. package/es/index.css +1 -0
  65. package/es/index.d.ts +36 -0
  66. package/es/index.js +22 -0
  67. package/es/node_modules/tslib/tslib.es6.js +49 -1
  68. package/package.json +32 -16
  69. package/es/Button/button.css.js +0 -6
  70. package/es/node_modules/style-inject/dist/style-inject.es.js +0 -28
@@ -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.1",
3
+ "version": "1.0.0-alpha.29",
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": "^19.0.10",
26
- "@types/react-dom": "^19.0.4",
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": "^8.5.8",
65
- "@storybook/addon-interactions": "^8.5.8",
66
- "@storybook/addon-onboarding": "^8.5.8",
67
- "@storybook/blocks": "^8.5.8",
68
- "@storybook/preset-create-react-app": "^8.5.8",
69
- "@storybook/react": "^8.5.8",
70
- "@storybook/react-webpack5": "^8.5.8",
71
- "@storybook/test": "^8.5.8",
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": "^8.5.8",
80
- "webpack": "^5.98.0",
81
- "rollup": "^4.34.8"
92
+ "storybook": "8.5.8",
93
+ "webpack": "^5.98.0"
94
+ },
95
+ "peerDependencies": {
96
+ "react": "^18",
97
+ "react-dom": "^18"
82
98
  }
83
99
  }
@@ -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 };