@yup/taro-ui 0.0.1

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 (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/es/_virtual/_commonjsHelpers.js +3 -0
  4. package/es/_virtual/_rollupPluginBabelHelpers.js +120 -0
  5. package/es/_virtual/index.js +1 -0
  6. package/es/_virtual/jsx-runtime.js +1 -0
  7. package/es/_virtual/react-jsx-runtime.development.js +1 -0
  8. package/es/_virtual/react-jsx-runtime.production.min.js +1 -0
  9. package/es/components/button/index.d.ts +19 -0
  10. package/es/components/button/index.js +35 -0
  11. package/es/components/button/style/button.css +3 -0
  12. package/es/components/button/style/button.less +3 -0
  13. package/es/components/button/style/css.js +1 -0
  14. package/es/components/button/style/index.css +67 -0
  15. package/es/components/button/style/index.d.ts +1 -0
  16. package/es/components/button/style/index.js +1 -0
  17. package/es/components/button/style/index.less +81 -0
  18. package/es/components/checkbox/checkbox-group.d.ts +10 -0
  19. package/es/components/checkbox/checkbox-group.js +12 -0
  20. package/es/components/checkbox/index.d.ts +13 -0
  21. package/es/components/checkbox/index.js +23 -0
  22. package/es/components/checkbox/style/css.js +1 -0
  23. package/es/components/checkbox/style/index.css +45 -0
  24. package/es/components/checkbox/style/index.d.ts +1 -0
  25. package/es/components/checkbox/style/index.js +1 -0
  26. package/es/components/checkbox/style/index.less +59 -0
  27. package/es/components/form/form-item.d.ts +10 -0
  28. package/es/components/form/form-item.js +14 -0
  29. package/es/components/form/index.d.ts +15 -0
  30. package/es/components/form/index.js +18 -0
  31. package/es/components/form/style/css.js +1 -0
  32. package/es/components/form/style/index.css +33 -0
  33. package/es/components/form/style/index.d.ts +1 -0
  34. package/es/components/form/style/index.js +1 -0
  35. package/es/components/form/style/index.less +51 -0
  36. package/es/components/input/index.d.ts +22 -0
  37. package/es/components/input/index.js +57 -0
  38. package/es/components/input/style/css.js +1 -0
  39. package/es/components/input/style/index.css +30 -0
  40. package/es/components/input/style/index.d.ts +1 -0
  41. package/es/components/input/style/index.js +1 -0
  42. package/es/components/input/style/index.less +36 -0
  43. package/es/components/radio/index.d.ts +13 -0
  44. package/es/components/radio/index.js +18 -0
  45. package/es/components/radio/radio-group.d.ts +10 -0
  46. package/es/components/radio/radio-group.js +16 -0
  47. package/es/components/radio/style/css.js +2 -0
  48. package/es/components/radio/style/group.css +12 -0
  49. package/es/components/radio/style/group.less +12 -0
  50. package/es/components/radio/style/index.d.ts +2 -0
  51. package/es/components/radio/style/index.js +2 -0
  52. package/es/components/radio/style/radio.css +28 -0
  53. package/es/components/radio/style/radio.less +32 -0
  54. package/es/components/toast/index.d.ts +2 -0
  55. package/es/components/toast/index.js +1 -0
  56. package/es/components/toast/style/css.js +1 -0
  57. package/es/components/toast/style/index.css +22 -0
  58. package/es/components/toast/style/index.d.ts +1 -0
  59. package/es/components/toast/style/index.js +1 -0
  60. package/es/components/toast/style/index.less +23 -0
  61. package/es/components/toast/toast.d.ts +18 -0
  62. package/es/components/toast/toast.js +89 -0
  63. package/es/components/toast/withToast.d.ts +2 -0
  64. package/es/components/toast/withToast.js +9 -0
  65. package/es/global/global.less +1 -0
  66. package/es/global/index.d.ts +1 -0
  67. package/es/global/theme-default.less +37 -0
  68. package/es/global.css +20 -0
  69. package/es/index.d.ts +7 -0
  70. package/es/index.js +2 -0
  71. package/es/node_modules/classnames/index.js +56 -0
  72. package/es/node_modules/react/cjs/react-jsx-runtime.development.js +1137 -0
  73. package/es/node_modules/react/cjs/react-jsx-runtime.production.min.js +48 -0
  74. package/es/node_modules/react/jsx-runtime.js +6 -0
  75. package/es/utils/debounce.d.ts +1 -0
  76. package/es/utils/is.d.ts +7 -0
  77. package/es/utils/is.js +9 -0
  78. package/es/utils/react.d.ts +2 -0
  79. package/es/utils/throttle.d.ts +4 -0
  80. package/es/utils/tool.d.ts +4 -0
  81. package/package.json +127 -0
@@ -0,0 +1,48 @@
1
+ import {__exports as reactJsxRuntime_production_min}from'../../../_virtual/react-jsx-runtime.production.min.js';import React from'react';/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ var hasRequiredReactJsxRuntime_production_min;
11
+ function requireReactJsxRuntime_production_min() {
12
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
13
+ hasRequiredReactJsxRuntime_production_min = 1;
14
+ var f = React,
15
+ k = Symbol["for"]("react.element"),
16
+ l = Symbol["for"]("react.fragment"),
17
+ m = Object.prototype.hasOwnProperty,
18
+ n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
19
+ p = {
20
+ key: !0,
21
+ ref: !0,
22
+ __self: !0,
23
+ __source: !0
24
+ };
25
+ function q(c, a, g) {
26
+ var b,
27
+ d = {},
28
+ e = null,
29
+ h = null;
30
+ void 0 !== g && (e = "" + g);
31
+ void 0 !== a.key && (e = "" + a.key);
32
+ void 0 !== a.ref && (h = a.ref);
33
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
34
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
35
+ return {
36
+ $$typeof: k,
37
+ type: c,
38
+ key: e,
39
+ ref: h,
40
+ props: d,
41
+ _owner: n.current
42
+ };
43
+ }
44
+ reactJsxRuntime_production_min.Fragment = l;
45
+ reactJsxRuntime_production_min.jsx = q;
46
+ reactJsxRuntime_production_min.jsxs = q;
47
+ return reactJsxRuntime_production_min;
48
+ }export{requireReactJsxRuntime_production_min as __require};
@@ -0,0 +1,6 @@
1
+ import {__module as jsxRuntime}from'../../_virtual/jsx-runtime.js';import {__require as requireReactJsxRuntime_production_min}from'./cjs/react-jsx-runtime.production.min.js';import {__require as requireReactJsxRuntime_development}from'./cjs/react-jsx-runtime.development.js';if (process.env.NODE_ENV === 'production') {
2
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
3
+ } else {
4
+ jsxRuntime.exports = requireReactJsxRuntime_development();
5
+ }
6
+ var jsxRuntimeExports = jsxRuntime.exports;export{jsxRuntimeExports as j};
@@ -0,0 +1 @@
1
+ export default function debounce(func: Function, wait?: number): (...args: any[]) => void;
@@ -0,0 +1,7 @@
1
+ export declare const getTypeChar: (obj: any) => string;
2
+ export declare function isUndef(obj: any): boolean;
3
+ export declare function isString(obj: any): boolean;
4
+ export declare function isFunction(obj: any): boolean;
5
+ export declare function isNumber(obj: any): boolean;
6
+ export declare function isPromise(obj: any): boolean;
7
+ export declare function isAsyncFunction(obj: any): boolean;
package/es/utils/is.js ADDED
@@ -0,0 +1,9 @@
1
+ // 内部函数, 用于判断对象类型
2
+ var getTypeChar = function getTypeChar(obj) {
3
+ var _Object$prototype;
4
+ var r = (Object === null || Object === void 0 || (_Object$prototype = Object.prototype) === null || _Object$prototype === void 0 || (_Object$prototype = _Object$prototype.toString) === null || _Object$prototype === void 0 || (_Object$prototype = _Object$prototype.call(obj)) === null || _Object$prototype === void 0 ? void 0 : _Object$prototype.match(/^\[object\s(.*)\]$/)) || [];
5
+ return r[1];
6
+ };
7
+ function isNumber(obj) {
8
+ return getTypeChar(obj).toLowerCase() === 'number';
9
+ }export{getTypeChar,isNumber};
@@ -0,0 +1,2 @@
1
+ export { isValidElement } from "react";
2
+ export { cloneElement } from "react";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @desc 节流函数
3
+ */
4
+ export default function throttle(func: Function, delay?: number): (...args: any[]) => any;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @desc 节流函数
3
+ */
4
+ export declare function throttle(func: Function, delay?: number): (...args: any[]) => any;
package/package.json ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "@yup/taro-ui",
3
+ "version": "0.0.1",
4
+ "description": "鱼泡 Taro UI组件库",
5
+ "type": "module",
6
+ "main": "es/index.js",
7
+ "module": "es/index.js",
8
+ "types": "es/index.d.ts",
9
+ "files": [
10
+ "es",
11
+ "LICENSE",
12
+ "README.md"
13
+ ],
14
+ "scripts": {
15
+ "start": "npm run dev",
16
+ "dev": "cross-env PORT=8888 dumi dev",
17
+ "build:doc": "dumi build",
18
+ "build:components": "gulp && rollup -c && cpx 'types/**/*' es",
19
+ "preview": "dumi preview",
20
+ "lint": "eslint .",
21
+ "prepare": "husky install && dumi setup",
22
+ "release": "npm run build:components && npm publish",
23
+ "release:patch": "npm version patch && npm run build:components && npm publish"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org/"
28
+ },
29
+ "authors": [],
30
+ "license": "MIT",
31
+ "commitlint": {
32
+ "extends": [
33
+ "@commitlint/config-conventional"
34
+ ]
35
+ },
36
+ "lint-staged": {
37
+ "*.{md,json}": [
38
+ "prettier --write --no-error-on-unmatched-pattern"
39
+ ]
40
+ },
41
+ "devDependencies": {
42
+ "@babel/core": "^7.25.2",
43
+ "@babel/node": "^7.25.0",
44
+ "@babel/parser": "^7.25.3",
45
+ "@babel/plugin-proposal-decorators": "^7.24.7",
46
+ "@babel/plugin-transform-runtime": "^7.28.5",
47
+ "@babel/preset-env": "^7.25.3",
48
+ "@babel/preset-react": "^7.24.7",
49
+ "@babel/preset-typescript": "^7.24.7",
50
+ "@babel/register": "^7.24.6",
51
+ "@commitlint/cli": "^17.1.2",
52
+ "@commitlint/config-conventional": "^17.1.0",
53
+ "@eslint/js": "^10.0.0",
54
+ "@rollup/plugin-alias": "^5.1.0",
55
+ "@rollup/plugin-babel": "^6.0.4",
56
+ "@rollup/plugin-commonjs": "^26.0.1",
57
+ "@rollup/plugin-node-resolve": "^15.2.3",
58
+ "@rollup/plugin-replace": "^5.0.7",
59
+ "@rollup/plugin-terser": "^0.4.4",
60
+ "@rollup/plugin-typescript": "^11.1.6",
61
+ "@tarojs/components": "3.6.37",
62
+ "@tarojs/plugin-framework-react": "3.6.37",
63
+ "@tarojs/plugin-platform-h5": "3.6.37",
64
+ "@tarojs/react": "3.6.37",
65
+ "@tarojs/runtime": "3.6.37",
66
+ "@tarojs/taro": "3.6.37",
67
+ "@tarojs/taro-h5": "3.6.37",
68
+ "@types/minimatch": "5.1.2",
69
+ "@types/node-sass": "^4.11.8",
70
+ "@yangzw/bruce-std": "^1.3.6",
71
+ "babel-loader": "^10.0.0",
72
+ "babel-plugin-import": "^1.13.8",
73
+ "babel-plugin-transform-taroapi": "3.6.37",
74
+ "cpx": "^1.5.0",
75
+ "cross-env": "^7.0.3",
76
+ "dumi": "^2.3.0",
77
+ "dumi-theme-mobile": "^2.0.0",
78
+ "eslint": "^9.9.0",
79
+ "eslint-plugin-import": "^2.27.5",
80
+ "eslint-plugin-react": "^7.37.2",
81
+ "eslint-plugin-simple-import-sort": "^12.1.1",
82
+ "eslint-webpack-plugin": "^5.0.2",
83
+ "globals": "^15.9.0",
84
+ "gulp": "^5.0.0",
85
+ "gulp-concat": "^2.6.1",
86
+ "gulp-copy": "^4.0.1",
87
+ "gulp-less": "^5.0.0",
88
+ "gulp-rename": "^2.0.0",
89
+ "gulp-replace": "^1.1.4",
90
+ "gulp-style-aliases": "^1.1.11",
91
+ "gulp-typescript": "^6.0.0-alpha.1",
92
+ "husky": "^8.0.1",
93
+ "less": "^4.2.0",
94
+ "less-plugin-autoprefix": "^2.0.0",
95
+ "lint-staged": "^13.0.3",
96
+ "prettier": "^2.7.1",
97
+ "rimraf": "^6.1.0",
98
+ "rollup-plugin-copy": "^3.5.0",
99
+ "rollup-plugin-ignore": "^1.0.10",
100
+ "rollup-plugin-jsx": "^1.0.3",
101
+ "rollup-plugin-less": "^1.1.3",
102
+ "rollup-plugin-postcss": "^4.0.2",
103
+ "rollup-plugin-typescript2": "^0.36.0",
104
+ "stylelint": "^16.8.2",
105
+ "stylelint-config-standard": "^36.0.1",
106
+ "stylelint-config-standard-scss": "^13.1.0",
107
+ "stylelint-webpack-plugin": "^5.0.1",
108
+ "tslib": "^2.6.3",
109
+ "typescript": "^5.5.4",
110
+ "typescript-eslint": "^8.2.0"
111
+ },
112
+ "peerDependencies": {
113
+ "classnames": "^2.3.2",
114
+ "react": "^18.2.0",
115
+ "react-dom": "^18.2.0"
116
+ },
117
+ "author": "huanghao <huanghao@yzgong.com>",
118
+ "dependencies": {
119
+ "@types/react": "18.3.1",
120
+ "@yup/taro-checkbox": "^0.9.0",
121
+ "@yup/taro-form": "0.9.1",
122
+ "@yup/taro-radio": "^0.9.0",
123
+ "classnames": "^2.3.2",
124
+ "react": "18.3.1",
125
+ "react-dom": "^18.2.0"
126
+ }
127
+ }