@para-ui/core 2.2.36 → 2.2.38
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/ComboSelect/index.js +2 -2
- package/DynamicMultiBox/index.js +2 -2
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/PasswordRules/index.d.ts +46 -0
- package/PasswordRules/index.js +15 -0
- package/README.md +13 -0
- package/Selector/index.js +1 -1
- package/Selector/interface.d.ts +4 -0
- package/SelectorPicker/index.js +1 -1
- package/Table/index.js +2 -2
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DynamicMultiBox/index.js +2 -2
- package/cdn/Form/index.js +5 -5
- package/cdn/FormItem/index.js +2 -2
- package/cdn/PasswordRules/index.js +29 -0
- package/cdn/Selector/index.js +1 -1
- package/cdn/SelectorPicker/index.js +1 -1
- package/cdn/Table/index.js +2 -2
- package/index.d.ts +2 -0
- package/index.js +3 -3
- package/package.json +1 -1
- package/style.css +3 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){var t={95002:function(e,t,r){(t=r(23645)(!1)).push([e.id,".paraui-password-rules{padding:14px 16px;line-height:1.43}.paraui-password-rules>.password-rules-item:first-child>.password-rules-item-title{margin-top:0px}.paraui-password-rules>.password-rules-item>.password-rules-item-title{font-size:14px;color:#2e3743;font-weight:700;margin-bottom:6px;margin-top:10px}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail{display:flex;margin-bottom:6px}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail:last-child{margin-bottom:0}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail>.item-flag{min-width:24px}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail>.item-label{flex:1;font-size:14px;color:#2e3743}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-icon>.item-flag{margin-top:0px;line-height:1}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-icon>.item-flag svg{font-size:16px;color:rgba(46,55,67,.7);margin-top:2px}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-order>.item-flag{margin-top:-1px}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-success.rules-item-detail-icon>.item-flag svg{color:#53c31b}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-error.rules-item-detail-order>.item-flag{color:#eb6054}.paraui-password-rules>.password-rules-item>.password-rules-item-content>.rules-item-detail.rules-item-detail-error.rules-item-detail-order>.item-label{color:#eb6054}.paraui-password-rules.paraui-password-rules-box-shadow{box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);border-radius:4px}",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var a=(i=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([a]).join("\n")}var i,s,l;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},27418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,l=a(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(l[u]=i[u]);if(t){s=t(i);for(var d=0;d<s.length;d++)n.call(i,s[d])&&(l[s[d]]=i[s[d]])}}return l}},75251:function(e,t,r){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/r(27418);var n=r(8156),a=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),t.Fragment=o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:i.current}}t.jsx=c,t.jsxs=c},85893:function(e,t,r){"use strict";e.exports=r(75251)},28861:function(e,t,r){var n=r(93379),a=r(95002);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:"head",singleton:!1};n(a,o);e.exports=a.locals||{}},93379:function(e,t,r){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function s(e){for(var t=-1,r=0;r<i.length;r++)if(i[r].identifier===e){t=r;break}return t}function l(e,t){for(var r={},n=[],a=0;a<e.length;a++){var o=e[a],l=t.base?o[0]+t.base:o[0],c=r[l]||0,u="".concat(l," ").concat(c);r[l]=c+1;var d=s(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(i[d].references++,i[d].updater(p)):i.push({identifier:u,updater:v(p,t),references:1}),n.push(u)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=r.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,r,n){var a=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function f(e,t,r){var n=r.css,a=r.media,o=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var m=null,y=0;function v(e,t){var r,n,a;if(t.singleton){var o=y++;r=m||(m=c(t)),n=p.bind(null,r,o,!1),a=p.bind(null,r,o,!0)}else r=c(t),n=f.bind(null,r,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var r=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var a=s(r[n]);i[a].references--}for(var o=l(e,t),c=0;c<r.length;c++){var u=s(r[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}r=o}}}},8156:function(t){"use strict";t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={id:e,exports:{}};return t[e](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a={};return function(){"use strict";n.r(a),n.d(a,{default:function(){return l}});var e=n(8156),t=n.n(e),r=n(85893);!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-icon-primary {\n color: #3666d6;\n}\n.paraui-icon-secondary {\n color: #3666d6;\n}\n.paraui-icon-thirdary {\n color: #3666d6;\n}\n.paraui-icon-small {\n font-size: 16px;\n}\n.paraui-icon-medium {\n font-size: 18px;\n}\n.paraui-icon-large {\n font-size: 20px;\n}');var o=function(e){var t,n,a=e.path,o=e.className,i=e.color,s=void 0===i?"primary":i,l=e.size,c=void 0===l?"small":l,u=e.dataName,d=void 0===u?"":u,p=e.style,f=
|
|
15
|
+
/*! *****************************************************************************
|
|
16
|
+
Copyright (c) Microsoft Corporation.
|
|
17
|
+
|
|
18
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
19
|
+
purpose with or without fee is hereby granted.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
22
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
23
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
24
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
25
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
26
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
28
|
+
***************************************************************************** */
|
|
29
|
+
function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["path","className","color","size","dataName","style"]);return(0,r.jsx)("svg",Object.assign({className:(n="paraui-icon",n+=" svg-icon",o&&(n+=" "+o),"primary"!==s&&"secondary"!==s&&"thirdary"!==s||(n+=" paraui-icon-"+s),c&&(n+=" paraui-icon-"+c),n),viewBox:"0 0 1024 1024","data-name":d,style:(t=Object.assign({},p),s&&"primary"!==s&&"secondary"!==s&&"thirdary"!==s&&(t.color=s),t)},f,{children:a}))},i=function(e){return(0,r.jsx)(o,Object.assign({dataName:"CheckCircle",path:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M512 42.666667a469.333333 469.333333 0 1 0 469.333333 469.333333A469.845333 469.845333 0 0 0 512 42.666667z m0 853.333333a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z"}),(0,r.jsx)("path",{d:"M674.602667 387.882667l-197.12 197.12L376.746667 484.266667a46.933333 46.933333 0 0 0-66.389334 66.389333l133.973334 133.888a46.933333 46.933333 0 0 0 66.346666 0c0.341333-0.298667 0.426667-0.725333 0.725334-1.024s0.725333-0.426667 1.024-0.725333l228.522666-228.522667a46.933333 46.933333 0 0 0-66.346666-66.389333z"})]})},e))},s=function(e){return(0,r.jsx)(o,Object.assign({dataName:"CheckCircleF",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("path",{d:"M512 42.666667a469.333333 469.333333 0 1 0 469.333333 469.333333A469.888 469.888 0 0 0 512 42.666667z m226.133333 408.618666l-228.522666 228.522667c-0.341333 0.298667-0.725333 0.384-1.066667 0.682667s-0.426667 0.768-0.682667 1.109333a42.666667 42.666667 0 0 1-60.330666 0l-133.973334-133.973333a42.666667 42.666667 0 0 1 60.330667-60.330667l103.808 103.765333 200.106667-200.149333a42.666667 42.666667 0 0 1 60.330666 60.373333z"})})},e))};s.displayName="CheckCircleF";n(28861);var l=function(e){var r,n,a,o=e.className,l=e.style,c=e.boxShadow,u=void 0!==c&&c,d=e.value,p=e.config,f=p?(r=p,(null!=(n=Array)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](r):r instanceof n)?p:[p]):[],m=function(e){var r=e.list||[],n=e.type||"icon";return t().createElement("div",{className:"password-rules-item-content"},r.map((function(e,r){return function(e,r){var a,o;if(void 0!==d){if(e.reg)try{a=e.reg.test(d)}catch(e){console.log(e)}e.validator&&(a=e.validator(e,d))}return t().createElement("div",{className:(o="rules-item-detail",o+=" rules-item-detail-"+n,"boolean"==typeof a&&a?o+=" rules-item-detail-success":void 0!==a&&(o+=" rules-item-detail-error"),o),key:r},t().createElement("span",{className:"item-flag"},"order"===n?r+1+"、":!0===a?t().createElement(s,null):t().createElement(i,null)),t().createElement("span",{className:"item-label"},"boolean"!=typeof a&&a?a:e.label))}(e,r)})))};return t().createElement("div",{className:(a="paraui-password-rules",o&&(a+=" "+o),u&&(a+=" paraui-password-rules-box-shadow"),a),style:l},f.map((function(e,r){return t().createElement("div",{className:"password-rules-item",key:r},t().createElement("div",{className:"password-rules-item-title"},e.title),m(e))})))}}(),a}()}));
|