@yup/taro-ui 0.0.4 → 0.0.5

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 (54) hide show
  1. package/es/_virtual/_commonjsHelpers.js +1 -3
  2. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -120
  3. package/es/_virtual/index.js +1 -1
  4. package/es/_virtual/jsx-runtime.js +1 -1
  5. package/es/_virtual/react-jsx-runtime.development.js +1 -1
  6. package/es/_virtual/react-jsx-runtime.production.min.js +1 -1
  7. package/es/components/button/index.js +1 -35
  8. package/es/components/button/style/index.css +1 -1
  9. package/es/components/button/style/index.js +1 -1
  10. package/es/components/checkbox/checkbox-group.js +1 -12
  11. package/es/components/checkbox/index.js +1 -23
  12. package/es/components/checkbox/style/index.css +1 -1
  13. package/es/components/checkbox/style/index.js +1 -1
  14. package/es/components/form/form-item.js +1 -14
  15. package/es/components/form/index.js +1 -18
  16. package/es/components/form/style/index.css +1 -1
  17. package/es/components/form/style/index.js +1 -1
  18. package/es/components/input/index.js +1 -57
  19. package/es/components/input/style/index.css +1 -1
  20. package/es/components/input/style/index.js +1 -1
  21. package/es/components/radio/index.js +1 -18
  22. package/es/components/radio/radio-group.js +1 -16
  23. package/es/components/radio/style/index.js +2 -2
  24. package/es/components/radio/style/radio.css +1 -1
  25. package/es/components/toast/index.js +1 -1
  26. package/es/components/toast/style/index.css +1 -1
  27. package/es/components/toast/style/index.js +1 -1
  28. package/es/components/toast/toast.js +1 -89
  29. package/es/components/toast/withToast.js +1 -9
  30. package/es/global.css +1 -1
  31. package/es/index.js +1 -2
  32. package/es/node_modules/classnames/index.js +1 -56
  33. package/es/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1137
  34. package/es/node_modules/react/cjs/react-jsx-runtime.production.min.js +3 -41
  35. package/es/node_modules/react/jsx-runtime.js +1 -6
  36. package/es/utils/is.js +1 -9
  37. package/package.json +1 -1
  38. package/es/components/button/style/button.css +0 -3
  39. package/es/components/button/style/button.less +0 -3
  40. package/es/components/button/style/css.js +0 -1
  41. package/es/components/button/style/index.less +0 -81
  42. package/es/components/checkbox/style/css.js +0 -1
  43. package/es/components/checkbox/style/index.less +0 -59
  44. package/es/components/form/style/css.js +0 -1
  45. package/es/components/form/style/index.less +0 -51
  46. package/es/components/input/style/css.js +0 -1
  47. package/es/components/input/style/index.less +0 -36
  48. package/es/components/radio/style/css.js +0 -2
  49. package/es/components/radio/style/group.less +0 -12
  50. package/es/components/radio/style/radio.less +0 -32
  51. package/es/components/toast/style/css.js +0 -1
  52. package/es/components/toast/style/index.less +0 -23
  53. package/es/global/global.less +0 -1
  54. package/es/global/theme-default.less +0 -37
@@ -1,56 +1 @@
1
- import {typeof as _typeof}from'../../_virtual/_rollupPluginBabelHelpers.js';import {getDefaultExportFromCjs}from'../../_virtual/_commonjsHelpers.js';import {__module as classnames}from'../../_virtual/index.js';(function (module) {
2
- /* global define */
3
-
4
- (function () {
5
-
6
- var hasOwn = {}.hasOwnProperty;
7
- function classNames() {
8
- var classes = '';
9
- for (var i = 0; i < arguments.length; i++) {
10
- var arg = arguments[i];
11
- if (arg) {
12
- classes = appendClass(classes, parseValue(arg));
13
- }
14
- }
15
- return classes;
16
- }
17
- function parseValue(arg) {
18
- if (typeof arg === 'string' || typeof arg === 'number') {
19
- return arg;
20
- }
21
- if (_typeof(arg) !== 'object') {
22
- return '';
23
- }
24
- if (Array.isArray(arg)) {
25
- return classNames.apply(null, arg);
26
- }
27
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
28
- return arg.toString();
29
- }
30
- var classes = '';
31
- for (var key in arg) {
32
- if (hasOwn.call(arg, key) && arg[key]) {
33
- classes = appendClass(classes, key);
34
- }
35
- }
36
- return classes;
37
- }
38
- function appendClass(value, newClass) {
39
- if (!newClass) {
40
- return value;
41
- }
42
- if (value) {
43
- return value + ' ' + newClass;
44
- }
45
- return value + newClass;
46
- }
47
- if (module.exports) {
48
- classNames["default"] = classNames;
49
- module.exports = classNames;
50
- } else {
51
- window.classNames = classNames;
52
- }
53
- })();
54
- })(classnames);
55
- var classnamesExports = classnames.exports;
56
- var cns = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);export{cns as default};
1
+ import{typeof as r}from"../../_virtual/_rollupPluginBabelHelpers.js";import{getDefaultExportFromCjs as t}from"../../_virtual/_commonjsHelpers.js";import{__module as o}from"../../_virtual/index.js";var e;e=o,function(){var t={}.hasOwnProperty;function o(){for(var r="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(r=i(r,n(o)))}return r}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!==r(e))return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var a in e)t.call(e,a)&&e[a]&&(n=i(n,a));return n}function i(r,t){return t?r?r+" "+t:r+t:r}e.exports?(o.default=o,e.exports=o):window.classNames=o}();var n=t(o.exports);export{n as default};