@yup/taro-ui 0.0.8 → 0.1.0
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 +52 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/es/components/button/index.d.ts +19 -3
- package/es/components/button/index.js +1 -1
- package/es/components/button/style/index.css +81 -29
- package/es/components/button/style/index.d.ts +1 -0
- package/es/components/button/style/index.js +1 -0
- package/es/components/checkbox/checkbox-group.d.ts +6 -2
- package/es/components/checkbox/checkbox-group.js +1 -1
- package/es/components/checkbox/index.js +1 -1
- package/es/components/checkbox/style/index.css +2 -24
- package/es/components/checkbox/style/index.d.ts +1 -0
- package/es/components/checkbox/style/index.js +1 -0
- package/es/components/date-picker-view/index.d.ts +40 -0
- package/es/components/date-picker-view/index.js +1 -0
- package/es/components/date-picker-view/style/index.css +3 -0
- package/es/components/date-picker-view/style/index.d.ts +2 -0
- package/es/components/date-picker-view/style/index.js +2 -0
- package/es/components/date-picker-view/util.d.ts +7 -0
- package/es/components/date-picker-view/util.js +1 -0
- package/es/components/form/form-item.js +1 -1
- package/es/components/form/index.js +1 -1
- package/es/components/form/style/index.css +0 -22
- package/es/components/form/style/index.d.ts +1 -0
- package/es/components/form/style/index.js +1 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.js +1 -0
- package/es/components/icon/style/iconfont.css +60 -0
- package/es/components/icon/style/iconfont.ttf +0 -0
- package/es/components/icon/style/iconfont.woff +0 -0
- package/es/components/icon/style/iconfont.woff2 +0 -0
- package/es/components/icon/style/index.d.ts +1 -0
- package/es/components/icon/style/index.js +1 -0
- package/es/components/input/index.d.ts +12 -0
- package/es/components/input/index.js +1 -1
- package/es/components/input/style/index.css +28 -27
- package/es/components/input/style/index.d.ts +2 -0
- package/es/components/input/style/index.js +2 -0
- package/es/components/input/style/search.css +21 -0
- package/es/components/picker-view/index.d.ts +25 -0
- package/es/components/picker-view/index.js +1 -0
- package/es/components/picker-view/style/index.css +62 -0
- package/es/components/picker-view/style/index.d.ts +2 -0
- package/es/components/picker-view/style/index.js +2 -0
- package/es/components/popup/index.d.ts +62 -0
- package/es/components/popup/index.js +1 -0
- package/es/components/popup/style/index.css +91 -0
- package/es/components/popup/style/index.d.ts +2 -0
- package/es/components/popup/style/index.js +2 -0
- package/es/components/radio/context.d.ts +5 -0
- package/es/components/radio/context.js +1 -0
- package/es/components/radio/index.js +1 -1
- package/es/components/radio/radio-group.js +1 -1
- package/es/components/radio/style/group.css +0 -22
- package/es/components/radio/style/index.d.ts +1 -0
- package/es/components/radio/style/index.js +1 -0
- package/es/components/radio/style/radio.css +11 -24
- package/es/components/safe-area/index.d.ts +13 -0
- package/es/components/safe-area/index.js +1 -0
- package/es/components/safe-area/style/index.css +3 -0
- package/es/components/safe-area/style/index.d.ts +2 -0
- package/es/components/safe-area/style/index.js +2 -0
- package/es/components/safe-area/util.d.ts +5 -0
- package/es/components/safe-area/util.js +1 -0
- package/es/components/switch/index.d.ts +6 -0
- package/es/components/switch/index.js +1 -0
- package/es/components/switch/style/index.css +38 -0
- package/es/components/switch/style/index.d.ts +2 -0
- package/es/components/switch/style/index.js +2 -0
- package/es/components/toast/style/index.css +0 -22
- package/es/components/toast/style/index.d.ts +1 -0
- package/es/components/toast/style/index.js +1 -0
- package/es/components/toast/toast.js +1 -1
- package/es/components/toast/withToast.js +1 -1
- package/es/global/global.css +18 -0
- package/es/global/index.d.ts +2 -1
- package/es/global/theme-default.css +18 -0
- package/es/global/variables.css +0 -0
- package/es/hooks/useRefState.d.ts +7 -0
- package/es/hooks/useRefState.js +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +1 -1
- package/es/node_modules/@yup/taro-checkbox/dist/_virtual/_rollupPluginBabelHelpers.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/checkbox-group.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/_virtual/_rollupPluginBabelHelpers.js +3 -0
- package/es/node_modules/@yup/taro-form/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/formItem.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/fromStore.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/useForm.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/useWatch.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/_virtual/_rollupPluginBabelHelpers.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/radio-group.js +1 -0
- package/es/style/iconfont.ttf +0 -0
- package/es/style/iconfont.woff +0 -0
- package/es/style/iconfont.woff2 +0 -0
- package/es/style/index.css +225 -203
- package/package.json +12 -7
- package/es/_virtual/_commonjsHelpers.js +0 -1
- package/es/_virtual/index.js +0 -1
- package/es/_virtual/jsx-runtime.js +0 -1
- package/es/_virtual/react-jsx-runtime.development.js +0 -1
- package/es/_virtual/react-jsx-runtime.production.min.js +0 -1
- package/es/global.css +0 -22
- package/es/node_modules/classnames/index.js +0 -1
- package/es/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1
- package/es/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
- package/es/node_modules/react/jsx-runtime.js +0 -1
- package/es/utils/react.d.ts +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{typeof as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{__exports as r}from"../../../_virtual/react-jsx-runtime.development.js";import t from"react";var n;function o(){return n||(n=1,"production"!==process.env.NODE_ENV&&function(){var n=t,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator;var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];!function(e,r,t){var n=b.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(r+="%s",t=t.concat([o]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}var _;function k(e){return e.displayName||"Context"}function j(r){if(null==r)return null;if("number"==typeof r.tag&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case i:return"Fragment";case a:return"Portal";case c:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case y:return"SuspenseList"}if("object"===e(r))switch(r.$$typeof){case u:return k(r)+".Consumer";case l:return k(r._context)+".Provider";case f:return function(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return""!==o?t+"("+o+")":t}(r,r.render,"ForwardRef");case d:var t=r.displayName||null;return null!==t?t:j(r.type)||"Memo";case m:var n=r,o=n._payload,v=n._init;try{return j(v(o))}catch(e){return null}}return null}_=Symbol.for("react.module.reference");var w,S,O,R,E,P,T,$=Object.assign,x=0;function C(){}C.__reactDisabledLog=!0;var N,D=b.ReactCurrentDispatcher;function F(e,r,t){if(void 0===N)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return"\n"+N+e}var I,W=!1,L="function"==typeof WeakMap?WeakMap:Map;function A(r,t){if(!r||W)return"";var n,o=I.get(r);if(void 0!==o)return o;W=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=D.current,D.current=null,function(){if(0===x){w=console.log,S=console.info,O=console.warn,R=console.error,E=console.group,P=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":e(Reflect))&&Reflect.construct){try{Reflect.construct(s,[])}catch(e){n=e}Reflect.construct(r,[],s)}else{try{s.call()}catch(e){n=e}r.call(s.prototype)}}else{try{throw Error()}catch(e){n=e}r()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var c=e.stack.split("\n"),l=n.stack.split("\n"),u=c.length-1,f=l.length-1;u>=1&&f>=0&&c[u]!==l[f];)f--;for(;u>=1&&f>=0;u--,f--)if(c[u]!==l[f]){if(1!==u||1!==f)do{if(u--,--f<0||c[u]!==l[f]){var p="\n"+c[u].replace(" at new "," at ");return r.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",r.displayName)),"function"==typeof r&&I.set(r,p),p}}while(u>=1&&f>=0);break}}}finally{W=!1,D.current=a,function(){if(0===--x){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:w}),info:$({},e,{value:S}),warn:$({},e,{value:O}),error:$({},e,{value:R}),group:$({},e,{value:E}),groupCollapsed:$({},e,{value:P}),groupEnd:$({},e,{value:T})})}x<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var y=r?r.displayName||r.name:"",d=y?F(y):"";return"function"==typeof r&&I.set(r,d),d}function U(r,t,n){if(null==r)return"";if("function"==typeof r)return A(r,!(!(o=r.prototype)||!o.isReactComponent));var o;if("string"==typeof r)return F(r);switch(r){case p:return F("Suspense");case y:return F("SuspenseList")}if("object"===e(r))switch(r.$$typeof){case f:return A(r.render,!1);case d:return U(r.type,t,n);case m:var a=r,i=a._payload,s=a._init;try{return U(s(i),t,n)}catch(e){}}return""}I=new L;var z=Object.prototype.hasOwnProperty,M={},Y=b.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var q=Array.isArray;function J(e){return q(e)}function K(e){return""+e}function V(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}var X,H,G,Q=b.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};G={};function ee(e,r,t,n,a){var i,s={},c=null,l=null;for(i in void 0!==t&&(V(t),c=""+t),function(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(V(r.key),c=""+r.key),function(e){if(z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(l=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=j(Q.current.type);G[t]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(Q.current.type),e.ref),G[t]=!0)}}(r,a)),r)z.call(r,i)&&!Z.hasOwnProperty(i)&&(s[i]=r[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===s[i]&&(s[i]=u[i])}if(c||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,r){var t=function(){X||(X=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,f),l&&function(e,r){var t=function(){H||(H=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(s,f)}return function(e,r,t,n,a,i,s){var c={$$typeof:o,type:e,key:r,ref:t,props:s,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,l,a,n,Q.current,s)}var re,te=b.ReactCurrentOwner,ne=b.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ne.setExtraStackFrame(t)}else ne.setExtraStackFrame(null)}function ae(r){return"object"===e(r)&&null!==r&&r.$$typeof===o}function ie(){if(te.current){var e=j(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}re=!1;var se={};function ce(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ie();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!se[t]){se[t]=!0;var n="";e&&e._owner&&e._owner!==te.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),oe(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),oe(null)}}}function le(r,t){if("object"===e(r))if(J(r))for(var n=0;n<r.length;n++){var o=r[n];ae(o)&&ce(o,t)}else if(ae(r))r._store&&(r._store.validated=!0);else if(r){var a=function(r){if(null===r||"object"!==e(r))return null;var t=g&&r[g]||r["@@iterator"];return"function"==typeof t?t:null}(r);if("function"==typeof a&&a!==r.entries)for(var i,s=a.call(r);!(i=s.next()).done;)ae(i.value)&&ce(i.value,t)}}function ue(r){var t,n=r.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!==e(n)||n.$$typeof!==f&&n.$$typeof!==d)return;t=n.propTypes}if(t){var o=j(n);!function(r,t,n,o,a){var i=Function.call.bind(z);for(var s in r)if(i(r,s)){var c=void 0;try{if("function"!=typeof r[s]){var l=Error((o||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+e(r[s])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}c=r[s](t,s,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(B(a),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,s,e(c)),B(null)),c instanceof Error&&!(c.message in M)&&(M[c.message]=!0,B(a),h("Failed %s type: %s",n,c.message),B(null))}}(t,r.props,"prop",o,r)}else if(void 0!==n.PropTypes&&!re){re=!0,h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var fe={};function pe(r,t,n,a,g,b){var k=function(r){return"string"==typeof r||"function"==typeof r||r===i||r===c||r===s||r===p||r===y||r===v||"object"===e(r)&&null!==r&&(r.$$typeof===m||r.$$typeof===d||r.$$typeof===l||r.$$typeof===u||r.$$typeof===f||r.$$typeof===_||void 0!==r.getModuleId)}(r);if(!k){var w="";(void 0===r||"object"===e(r)&&null!==r&&0===Object.keys(r).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);w+=O||ie(),null===r?S="null":J(r)?S="array":void 0!==r&&r.$$typeof===o?(S="<"+(j(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):S=e(r),h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,w)}var R=ee(r,t,n,g,b);if(null==R)return R;if(k){var E=t.children;if(void 0!==E)if(a)if(J(E)){for(var P=0;P<E.length;P++)le(E[P],r);Object.freeze&&Object.freeze(E)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,r)}if(z.call(t,"key")){var T=j(r),$=Object.keys(t).filter(function(e){return"key"!==e}),x=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!fe[T+x])h('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',x,T,$.length>0?"{"+$.join(": ..., ")+": ...}":"{}",T),fe[T+x]=!0}return r===i?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){oe(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),oe(null);break}}null!==e.ref&&(oe(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}(R):ue(R),R}var ye=function(e,r,t){return pe(e,r,t,!1)},de=function(e,r,t){return pe(e,r,t,!0)};r.Fragment=i,r.jsx=ye,r.jsxs=de}()),r}export{o as __require};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../_virtual/react-jsx-runtime.production.min.js";import e from"react";
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var t;function o(){if(t)return r;t=1;var o=e,n=Symbol.for("react.element"),_=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(r,e,t){var o,_={},u=null,p=null;for(o in void 0!==t&&(u=""+t),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(p=e.ref),e)f.call(e,o)&&!i.hasOwnProperty(o)&&(_[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===_[o]&&(_[o]=e[o]);return{$$typeof:n,type:r,key:u,ref:p,props:_,_owner:a.current}}return r.Fragment=_,r.jsx=u,r.jsxs=u,r}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/jsx-runtime.js";import{__require as e}from"./cjs/react-jsx-runtime.production.min.js";import{__require as o}from"./cjs/react-jsx-runtime.development.js";"production"===process.env.NODE_ENV?r.exports=e():r.exports=o();var s=r.exports;export{s as j};
|
package/es/utils/react.d.ts
DELETED