ydb-components-material 0.1.4 → 0.1.6

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/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/static/icon_error.a47c88b2.svg +1 -0
  7. package/build/docs/static/icon_success.67acd079.svg +1 -0
  8. package/build/docs/static/icon_warning.8ebf6588.svg +1 -0
  9. package/build/docs/umi.99c36200.js +1 -0
  10. package/build/docs/{umi.f39ab8b9.css → umi.f2b5fd06.css} +1 -1
  11. package/build/docs/~demos/:uuid.html +3 -3
  12. package/build/docs/~demos/colorful-button-demo.html +3 -3
  13. package/build/docs/~demos/colorful-input-demo.html +3 -3
  14. package/build/lowcode/assets-daily.json +11 -11
  15. package/build/lowcode/assets-dev.json +2 -2
  16. package/build/lowcode/assets-prod.json +11 -11
  17. package/build/lowcode/index.js +1 -1
  18. package/build/lowcode/meta.js +1 -1
  19. package/build/lowcode/preview.js +8 -8
  20. package/build/lowcode/render/default/view.css +1 -1
  21. package/build/lowcode/render/default/view.js +1 -1
  22. package/build/lowcode/view.css +1 -1
  23. package/build/lowcode/view.js +1 -1
  24. package/dist/BizComps.css +1 -1
  25. package/dist/BizComps.js +1 -1
  26. package/dist/BizComps.js.map +1 -1
  27. package/es/components/check-res/index.d.ts +12 -0
  28. package/es/components/check-res/index.js +45 -0
  29. package/es/components/check-res/index.scss +17 -0
  30. package/es/components/tips/icon/icon_error.svg +1 -0
  31. package/es/components/tips/icon/icon_success.svg +1 -0
  32. package/es/components/tips/icon/icon_warning.svg +1 -0
  33. package/es/components/tips/index.d.ts +11 -0
  34. package/es/components/tips/index.js +35 -0
  35. package/es/components/tips/index.scss +17 -0
  36. package/es/index.d.ts +4 -0
  37. package/es/index.js +2 -0
  38. package/es/style.js +1 -0
  39. package/lib/components/check-res/index.d.ts +12 -0
  40. package/lib/components/check-res/index.js +51 -0
  41. package/lib/components/check-res/index.scss +17 -0
  42. package/lib/components/tips/icon/icon_error.svg +1 -0
  43. package/lib/components/tips/icon/icon_success.svg +1 -0
  44. package/lib/components/tips/icon/icon_warning.svg +1 -0
  45. package/lib/components/tips/index.d.ts +11 -0
  46. package/lib/components/tips/index.js +41 -0
  47. package/lib/components/tips/index.scss +17 -0
  48. package/lib/index.d.ts +4 -0
  49. package/lib/index.js +5 -1
  50. package/lib/style.js +1 -0
  51. package/lowcode/card-title/meta.ts +1 -1
  52. package/lowcode/check-loading/meta.ts +1 -1
  53. package/lowcode/check-res/meta.ts +88 -0
  54. package/lowcode/tips/meta.ts +103 -0
  55. package/lowcode_es/card-title/meta.js +1 -1
  56. package/lowcode_es/check-loading/meta.js +1 -1
  57. package/lowcode_es/check-res/meta.d.ts +22 -0
  58. package/lowcode_es/check-res/meta.js +78 -0
  59. package/lowcode_es/meta.js +4 -2
  60. package/lowcode_es/tips/meta.d.ts +22 -0
  61. package/lowcode_es/tips/meta.js +86 -0
  62. package/lowcode_lib/card-title/meta.js +1 -1
  63. package/lowcode_lib/check-loading/meta.js +1 -1
  64. package/lowcode_lib/check-res/meta.d.ts +22 -0
  65. package/lowcode_lib/check-res/meta.js +83 -0
  66. package/lowcode_lib/meta.js +6 -4
  67. package/lowcode_lib/tips/meta.d.ts +22 -0
  68. package/lowcode_lib/tips/meta.js +91 -0
  69. package/package.json +9 -9
  70. package/build/docs/umi.5b1b24a5.js +0 -1
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
7
+ var React = _interopRequireWildcard(require("react"));
8
+ require("./index.scss");
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
10
+ var CheckRes = function CheckRes(_ref) {
11
+ var res = _ref.res,
12
+ name = _ref.name,
13
+ hasBorderBottom = _ref.hasBorderBottom;
14
+ var text = '预检中...';
15
+ if (res === true) {
16
+ text = '预检成功';
17
+ } else if (res === false) {
18
+ text = '预检失败';
19
+ }
20
+ var color = '#1678FF';
21
+ if (res === false) {
22
+ color = '#FF6237';
23
+ } else if (res === true) {
24
+ color = '#15BC83';
25
+ }
26
+ var iconType = res ? 'success-filling' : 'delete-filling';
27
+ var borderBottom = hasBorderBottom ? '1px solid #EEEEEE' : 'none';
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ className: "main",
30
+ style: {
31
+ borderBottom: borderBottom
32
+ }
33
+ }, /*#__PURE__*/React.createElement("div", {
34
+ className: "name"
35
+ }, name), /*#__PURE__*/React.createElement("div", {
36
+ className: "res"
37
+ }, res !== undefined && /*#__PURE__*/React.createElement(_icon["default"], {
38
+ size: "small",
39
+ style: {
40
+ color: color,
41
+ marginRight: '6px'
42
+ },
43
+ type: iconType
44
+ }), /*#__PURE__*/React.createElement("div", {
45
+ style: {
46
+ color: color
47
+ }
48
+ }, text)));
49
+ };
50
+ CheckRes.displayName = 'CheckRes';
51
+ var _default = exports["default"] = CheckRes;
@@ -0,0 +1,17 @@
1
+ .main {
2
+ display: flex;
3
+ align-items: center;
4
+ font-size: 16px;
5
+ justify-content: space-between;
6
+ padding: 16px 0;
7
+
8
+ .name {
9
+ font-size: 14px;
10
+ color: #333;
11
+ }
12
+
13
+ .res {
14
+ display: flex;
15
+ align-items: center;
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><g><rect x="0" y="0" width="14" height="14" rx="7" fill="#FF6237" fill-opacity="1"/></g><g><path d="M10.374788305468751,4.3754119873046875Q10.374788305468751,4.5245664673046875,10.31770940546875,4.662367187304687Q10.26063060546875,4.800168087304687,10.15516230546875,4.905636087304687L10.15526820546875,4.905742087304688L8.06059880546875,7.000411487304687L10.15526910546875,9.095081787304688L10.15516280546875,9.095187687304687Q10.26063060546875,9.200655887304688,10.31770940546875,9.338456587304687Q10.37478880546875,9.476257287304687,10.374789205468751,9.625411987304688Q10.37478880546875,9.699265487304688,10.36038020546875,9.771699887304688Q10.34597210546875,9.844134287304687,10.31770940546875,9.912366387304687Q10.28944680546875,9.980598487304688,10.248416405468749,10.042005587304686Q10.207385105468749,10.103413087304688,10.15516280546875,10.155635787304687Q10.10294060546875,10.207858087304688,10.041533505468749,10.248888987304689Q9.98012590546875,10.289919887304688,9.91189380546875,10.318182987304688Q9.84366230546875,10.346445087304687,9.77122740546875,10.360853187304688Q9.698792505468749,10.375262287304688,9.62493900546875,10.375262287304688Q9.47578430546875,10.375262287304688,9.33798310546875,10.318182987304688Q9.20018240546875,10.261103587304689,9.09471460546875,10.155635787304687L9.09460880546875,10.155741687304687L6.99993900546875,8.061071887304688L4.90526910546875,10.155741687304687L4.90516330546875,10.155635787304687Q4.79969520546875,10.261103587304689,4.66189430546875,10.318182987304688Q4.52409350546875,10.375262287304688,4.3749389654687505,10.375262287304688Q4.30108511546875,10.375262287304688,4.22865045546875,10.360853687304687Q4.1562157254687495,10.346445087304687,4.08798372546875,10.318182487304687Q4.01975172546875,10.289919887304688,3.95834457546875,10.248888987304689Q3.89693739546875,10.207858087304688,3.84471490546875,10.155635787304687Q3.79249238546875,10.103413087304688,3.75146143546875,10.042005987304687Q3.71043047346875,9.980598487304688,3.68216785746875,9.912366887304687Q3.65390524046875,9.844134787304688,3.63949708546875,9.771699887304688Q3.62508893012975,9.699265487304688,3.62508893012975,9.625411987304688Q3.62508893012975,9.476257287304687,3.68216785046875,9.338456587304687Q3.73924677546875,9.200655887304688,3.84471487546875,9.095187687304687L3.84460884546875,9.095081787304688L5.93927880546875,7.000411487304687L3.84460973546875,4.905742087304688L3.84471559546875,4.905636087304687Q3.73924749546875,4.800168087304687,3.68216856946875,4.662367187304687Q3.62508964538575,4.5245664673046875,3.62508964538575,4.3754119873046875Q3.62508964538575,4.301558197304687,3.63949780446875,4.229123477304688Q3.65390596346875,4.156688807304688,3.68216858846875,4.088456777304687Q3.71043121046875,4.020224747304687,3.75146219546875,3.9588175973046873Q3.79249316546875,3.8974104273046875,3.84471568546875,3.8451879473046873Q3.89693820546875,3.7929654273046873,3.95834541546875,3.7519344573046873Q4.01975259546875,3.7109035033046873,4.08798462546875,3.6826408843046874Q4.15621662546875,3.6543782653046875,4.22865134546875,3.6399701093046875Q4.30108606546875,3.6255619525946874,4.37493991546875,3.6255619525946874Q4.52409422546875,3.6255619525946874,4.66189500546875,3.6826408733046874Q4.79969580546875,3.7397197973046876,4.9051642054687505,3.8451879073046875L4.90527010546875,3.8450819273046877L6.99993900546875,5.9397511873046875L9.094607805468751,3.8450819273046877L9.094713705468749,3.8451879073046875Q9.20018200546875,3.7397197973046876,9.33798220546875,3.6826408733046874Q9.475783305468749,3.6255619525946874,9.62493800546875,3.6255619525946874Q9.698791505468751,3.6255619525946874,9.77122590546875,3.6399701093046875Q9.843660805468751,3.6543782633046873,9.91189290546875,3.6826408803046875Q9.980124505468751,3.7109034953046875,10.04153160546875,3.7519344573046873Q10.10293910546875,3.7929654073046875,10.15516190546875,3.8451879273046874Q10.207384105468751,3.8974104273046875,10.24841500546875,3.9588175973046873Q10.28944590546875,4.020224747304687,10.317708505468751,4.088456747304687Q10.345971105468749,4.156688747304687,10.36037970546875,4.229123477304688Q10.374787805468749,4.301558197304687,10.374788305468751,4.3754119873046875Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g><rect x="0" y="0" width="16" height="16" rx="8" fill="#15BC83" fill-opacity="1"/></g><g><path d="M12.930224390734864,6.1302238146325685Q13.035691290734864,6.0247556546325685,13.092770590734863,5.886954964632569Q13.149849890734863,5.749154284632568,13.149849890734863,5.599999904632568Q13.149849890734863,5.526146121632569,13.135440790734863,5.453711424632568Q13.121031790734863,5.381276724632569,13.092769590734862,5.313044724632569Q13.064507490734863,5.244812724632569,13.023476590734862,5.183405574632569Q12.982445690734863,5.121998394632568,12.930223490734864,5.069775874632568Q12.878001190734864,5.017553384632569,12.816594090734863,4.976522444632568Q12.755186590734862,4.935491444632568,12.686954490734863,4.907228824632568Q12.618722890734864,4.878966214632569,12.546288490734863,4.864558104632568Q12.473854090734864,4.850149874632568,12.400000090734864,4.850149874632568Q12.250844990734862,4.850149874632568,12.113043790734864,4.9072289446325685Q11.975243590734863,4.964307964632568,11.869775790734863,5.0697762346325685L11.869669390734863,5.0696698446325685L7.200000090734863,9.739339804632568L5.330330250734863,7.8696701046325686L5.330224270734863,7.869776004632568Q5.224756180734864,7.764308004632568,5.0869554307348634,7.707228904632569Q4.949154660734863,7.650150104632568,4.800000190734863,7.650150104632568Q4.726146407734864,7.650150104632568,4.653711710734863,7.664558204632568Q4.581277010734864,7.678966504632569,4.513045010734864,7.707228904632569Q4.444813010734864,7.735491504632568,4.383405860734864,7.776522404632568Q4.321998680734863,7.817553304632568,4.269776160734863,7.869775804632568Q4.217553670734864,7.921998304632568,4.176522730734863,7.983405604632568Q4.135491730734863,8.044812704632568,4.107229110734863,8.113044704632568Q4.078966500734864,8.181276804632569,4.064558390734863,8.253711504632568Q4.050150160734863,8.326146104632569,4.050150160734863,8.400000104632568Q4.050150210734863,8.549154304632568,4.107229110734863,8.68695500463257Q4.164308070734863,8.824755704632569,4.269776110734863,8.930224204632568L4.2696701307348635,8.930330004632568L6.528248890734863,11.188909004632569Q6.806497590734864,11.467157804632567,7.200000290734863,11.467157804632567Q7.593502490734863,11.467157804632567,7.871751790734863,11.188909004632569L12.930330290734863,6.130329964632568L12.930224390734864,6.1302238146325685Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><g><path d="M14,7Q14,7.1718402,13.991568,7.3434739Q13.983135,7.5151072,13.966292,7.68612Q13.949449,7.8571329,13.924234,8.027113Q13.899019,8.197093,13.865496,8.3656311Q13.83197,8.5341702,13.790217,8.700861Q13.748464,8.8675518,13.698582,9.0319929Q13.648699,9.196434,13.590806,9.3582287Q13.532915,9.5200233,13.467155,9.6787834Q13.401394,9.8375435,13.327923,9.9928856Q13.254452,10.148228,13.173448,10.299777Q13.092443,10.451326,13.004099,10.598719Q12.915755,10.746111,12.820286,10.88899Q12.724816,11.03187,12.622452,11.169893Q12.520086,11.307918,12.411073,11.440753Q12.302058,11.573587,12.186657,11.700912Q12.071257,11.828238,11.949747,11.949747Q11.828238,12.071257,11.700912,12.186658Q11.573587,12.302058,11.440753,12.411073Q11.307918,12.520086,11.169893,12.622451Q11.03187,12.724816,10.88899,12.820286Q10.746111,12.915755,10.598719,13.004099Q10.451326,13.092443,10.299777,13.173449Q10.148228,13.254454,9.9928856,13.327925Q9.8375435,13.401396,9.6787834,13.467155Q9.5200233,13.532916,9.3582287,13.590808Q9.196434,13.648699,9.0319929,13.698583Q8.8675518,13.748465,8.700861,13.790218Q8.5341702,13.831971,8.3656311,13.865496Q8.197093,13.899019,8.027113,13.924234Q7.8571329,13.94945,7.68612,13.966293Q7.5151072,13.983136,7.3434734,13.991568Q7.1718402,14,7,14Q6.8281598,14,6.6565266,13.991568Q6.4848933,13.983135,6.3138804,13.966292Q6.1428671,13.949449,5.9728866,13.924234Q5.802906,13.899019,5.6343675,13.865496Q5.4658289,13.83197,5.2991385,13.790217Q5.1324482,13.748464,4.9680071,13.698582Q4.803566,13.648699,4.6417708,13.590806Q4.4799757,13.532915,4.3212156,13.467155Q4.1624556,13.401394,4.0071144,13.327923Q3.8517723,13.254452,3.700223,13.173448Q3.5486732,13.092443,3.4012804,13.004099Q3.2538881,12.915755,3.1110082,12.820286Q2.9681282,12.724816,2.8301048,12.622452Q2.6920815,12.520086,2.559247,12.411073Q2.4264126,12.302058,2.299087,12.186657Q2.171762,12.071257,2.0502524,11.949747Q1.9287429,11.828238,1.813342,11.700912Q1.6979411,11.573587,1.5889268,11.440753Q1.4799124,11.307918,1.3775473,11.169893Q1.275182,11.03187,1.1797127,10.88899Q1.0842432,10.746111,0.99589968,10.598719Q0.90755606,10.451326,0.82655108,10.299777Q0.74554604,10.148228,0.67207485,9.9928856Q0.59860361,9.8375435,0.53284317,9.6787834Q0.46708274,9.5200233,0.40919149,9.3582287Q0.35130021,9.196434,0.30141759,9.0319929Q0.25153497,8.8675518,0.20978118,8.700861Q0.16802739,8.5341702,0.13450301,8.3656311Q0.10097862,8.197093,0.075764418,8.027113Q0.0505502,7.8571329,0.033706907,7.68612Q0.016863609,7.5151072,0.0084318044,7.3434734Q0,7.1718402,0,7Q0,6.8281598,0.0084318044,6.6565266Q0.016863609,6.4848933,0.033706907,6.3138804Q0.0505502,6.1428671,0.07576441,5.9728866Q0.10097862,5.802906,0.13450301,5.6343675Q0.16802739,5.4658289,0.20978117,5.2991385Q0.25153497,5.1324482,0.30141759,4.9680071Q0.35130021,4.803566,0.40919146,4.6417708Q0.46708274,4.4799757,0.53284317,4.3212156Q0.59860361,4.1624556,0.67207479,4.0071144Q0.74554598,3.8517723,0.82655102,3.700223Q0.90755594,3.5486732,0.99589956,3.4012804Q1.0842431,3.2538881,1.1797125,3.1110082Q1.2751819,2.9681282,1.3775471,2.8301048Q1.4799123,2.6920815,1.5889268,2.559247Q1.6979411,2.4264126,1.8133421,2.299087Q1.9287429,2.171762,2.0502524,2.0502524Q2.171762,1.9287429,2.299087,1.813342Q2.4264126,1.6979411,2.559247,1.5889268Q2.6920815,1.4799124,2.8301048,1.3775473Q2.9681282,1.275182,3.1110082,1.1797127Q3.2538881,1.0842432,3.4012806,0.99589968Q3.5486729,0.90755606,3.7002227,0.82655108Q3.8517723,0.74554604,4.0071139,0.67207485Q4.1624556,0.59860361,4.3212156,0.53284317Q4.4799757,0.46708274,4.6417708,0.40919149Q4.803566,0.35130021,4.9680071,0.30141759Q5.1324482,0.25153497,5.2991385,0.20978118Q5.4658289,0.16802739,5.6343675,0.13450301Q5.802906,0.10097862,5.9728866,0.075764418Q6.1428671,0.0505502,6.31388,0.033706907Q6.4848928,0.016863609,6.6565266,0.0084318044Q6.8281598,0,7,0Q7.1718402,0,7.3434739,0.0084318044Q7.5151072,0.016863609,7.68612,0.033706907Q7.8571329,0.0505502,8.027113,0.07576441Q8.197093,0.10097862,8.3656311,0.13450301Q8.5341702,0.16802739,8.700861,0.20978117Q8.8675518,0.25153497,9.0319929,0.30141759Q9.196434,0.35130021,9.3582287,0.40919146Q9.5200233,0.46708274,9.6787834,0.53284317Q9.8375435,0.59860361,9.9928856,0.67207479Q10.148228,0.74554598,10.299777,0.82655102Q10.451326,0.90755594,10.598719,0.99589956Q10.746111,1.0842431,10.88899,1.1797125Q11.03187,1.2751819,11.169893,1.3775471Q11.307918,1.4799123,11.440753,1.5889268Q11.573587,1.6979411,11.700912,1.8133421Q11.828238,1.9287429,11.949747,2.0502524Q12.071257,2.171762,12.186658,2.299087Q12.302058,2.4264126,12.411073,2.559247Q12.520086,2.6920815,12.622451,2.8301048Q12.724816,2.9681282,12.820286,3.1110082Q12.915755,3.2538881,13.004099,3.4012806Q13.092443,3.5486729,13.173449,3.7002227Q13.254454,3.8517723,13.327925,4.0071139Q13.401396,4.1624556,13.467155,4.3212156Q13.532916,4.4799757,13.590808,4.6417708Q13.648699,4.803566,13.698583,4.9680071Q13.748465,5.1324482,13.790218,5.2991385Q13.831971,5.4658289,13.865496,5.6343675Q13.899019,5.802906,13.924234,5.9728866Q13.94945,6.1428671,13.966293,6.31388Q13.983136,6.4848928,13.991568,6.6565266Q14,6.8281598,14,7ZM6.9999456,8.5557728C6.5703907,8.5557728,6.222168,8.20755,6.222168,7.7779951L6.222168,3.8891058C6.222168,3.4595511,6.5703907,3.1113281,6.9999456,3.1113281C7.4295006,3.1113281,7.7777233,3.4595511,7.7777233,3.8891058L7.7777233,7.7779951C7.7777233,8.20755,7.4295006,8.5557728,6.9999456,8.5557728ZM7.7777233,10.889106Q7.7777228,10.96571,7.7627783,11.040842Q7.7478328,11.115973,7.7185173,11.186747Q7.6892023,11.25752,7.6466436,11.321214Q7.604085,11.384909,7.5499172,11.439076Q7.4957495,11.493243,7.432055,11.535803Q7.3683605,11.578362,7.2975874,11.607677Q7.2268143,11.636992,7.1516819,11.651937Q7.0765495,11.666883,6.9999456,11.666883Q6.9233408,11.666883,6.8482084,11.651937Q6.7730756,11.636992,6.7023025,11.607677Q6.6315289,11.578362,6.5678344,11.535803Q6.5041404,11.493244,6.4499731,11.439077Q6.3958054,11.384909,6.3532467,11.321215Q6.3106875,11.25752,6.2813725,11.186747Q6.2520571,11.115973,6.2371125,11.040841Q6.222168,10.96571,6.222168,10.889106Q6.222168,10.8125,6.237113,10.737368Q6.2520571,10.662235,6.2813725,10.591462Q6.3106875,10.520689,6.3532462,10.456995Q6.3958054,10.3933,6.4499731,10.339133Q6.5041404,10.284966,6.5678349,10.242407Q6.6315289,10.199847,6.702302,10.170532Q6.7730751,10.141217,6.848208,10.126272Q6.9233408,10.111328,6.9999456,10.111328Q7.0765495,10.111328,7.1516819,10.126272Q7.2268143,10.141217,7.2975874,10.170532Q7.3683605,10.199847,7.432055,10.242407Q7.4957495,10.284966,7.5499167,10.339133Q7.604084,10.3933,7.6466436,10.456994Q7.6892023,10.520688,7.7185178,10.591461Q7.7478333,10.662235,7.7627783,10.737368Q7.7777228,10.8125,7.7777233,10.889106Z" fill-rule="evenodd" fill="#F29655" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ export interface TipsProps {
4
+ /**
5
+ * 标题
6
+ */
7
+ text: string;
8
+ type: 'success' | 'warning' | 'error';
9
+ }
10
+ declare const Tips: React.FC<TipsProps>;
11
+ export default Tips;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var React = _interopRequireWildcard(require("react"));
7
+ require("./index.scss");
8
+ var _icon_warning = _interopRequireDefault(require("./icon/icon_warning.svg"));
9
+ var _icon_success = _interopRequireDefault(require("./icon/icon_success.svg"));
10
+ var _icon_error = _interopRequireDefault(require("./icon/icon_error.svg"));
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
+ var Tips = function Tips(_ref) {
13
+ var _ref$text = _ref.text,
14
+ text = _ref$text === void 0 ? '文案' : _ref$text,
15
+ type = _ref.type;
16
+ var color = '#333333';
17
+ if (type === 'warning') {
18
+ color = '#F29655';
19
+ } else if (type === 'error') {
20
+ color = '#FF6237';
21
+ }
22
+ var icon = _icon_success["default"];
23
+ if (type === 'warning') {
24
+ icon = _icon_warning["default"];
25
+ } else if (type === 'error') {
26
+ icon = _icon_error["default"];
27
+ }
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ className: "main"
30
+ }, /*#__PURE__*/React.createElement("img", {
31
+ className: "icon",
32
+ src: icon
33
+ }), /*#__PURE__*/React.createElement("div", {
34
+ className: "text",
35
+ style: {
36
+ color: color
37
+ }
38
+ }, text));
39
+ };
40
+ Tips.displayName = 'Tips';
41
+ var _default = exports["default"] = Tips;
@@ -0,0 +1,17 @@
1
+ .main {
2
+ display: flex;
3
+ justify-content: flex-start;
4
+ align-items: flex-start;
5
+ padding: 0;
6
+
7
+ .icon {
8
+ width: 16px;
9
+ height: 16px;
10
+ margin-top: 2px;
11
+ }
12
+
13
+ .text {
14
+ font-size: 14px;
15
+ margin-left: 8px;
16
+ }
17
+ }
package/lib/index.d.ts CHANGED
@@ -5,5 +5,9 @@ export { default as ColorfulInput } from './components/colorful-input';
5
5
  export { default as CheckLoading } from './components/check-loading';
6
6
  export type { CardTitleProps } from './components/card-title';
7
7
  export { default as CardTitle } from './components/card-title';
8
+ export type { CheckResProps } from './components/check-res';
9
+ export { default as CheckRes } from './components/check-res';
10
+ export type { TipsProps } from './components/tips';
11
+ export { default as Tips } from './components/tips';
8
12
  declare const bizCssPrefix = "bizpack";
9
13
  export { bizCssPrefix };
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.bizCssPrefix = exports.ColorfulInput = exports.ColorfulButton = exports.CheckLoading = exports.CardTitle = void 0;
5
+ exports.bizCssPrefix = exports.Tips = exports.ColorfulInput = exports.ColorfulButton = exports.CheckRes = exports.CheckLoading = exports.CardTitle = void 0;
6
6
  var _colorfulButton = _interopRequireDefault(require("./components/colorful-button"));
7
7
  exports.ColorfulButton = _colorfulButton["default"];
8
8
  var _colorfulInput = _interopRequireDefault(require("./components/colorful-input"));
@@ -11,4 +11,8 @@ var _checkLoading = _interopRequireDefault(require("./components/check-loading")
11
11
  exports.CheckLoading = _checkLoading["default"];
12
12
  var _cardTitle = _interopRequireDefault(require("./components/card-title"));
13
13
  exports.CardTitle = _cardTitle["default"];
14
+ var _checkRes = _interopRequireDefault(require("./components/check-res"));
15
+ exports.CheckRes = _checkRes["default"];
16
+ var _tips = _interopRequireDefault(require("./components/tips"));
17
+ exports.Tips = _tips["default"];
14
18
  var bizCssPrefix = exports.bizCssPrefix = 'bizpack';
package/lib/style.js CHANGED
@@ -1,3 +1,4 @@
1
1
  require('@alifd/next/lib/button/style');
2
2
  require('@alifd/next/lib/input/style');
3
+ require('@alifd/next/lib/icon/style');
3
4
  require('./index.scss');
@@ -43,7 +43,7 @@ const CardTitleMeta: IPublicTypeComponentMetadata = {
43
43
  };
44
44
  const snippets: IPublicTypeSnippet[] = [
45
45
  {
46
- "title": "CardTitle",
46
+ "title": "卡片标题",
47
47
  "screenshot": "",
48
48
  "schema": {
49
49
  "componentName": "CardTitle",
@@ -25,7 +25,7 @@ const CheckLoadingMeta: IPublicTypeComponentMetadata = {
25
25
  };
26
26
  const snippets: IPublicTypeSnippet[] = [
27
27
  {
28
- "title": "CheckLoading",
28
+ "title": "预检loading",
29
29
  "screenshot": "",
30
30
  "schema": {
31
31
  "componentName": "CheckLoading",
@@ -0,0 +1,88 @@
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const CheckResMeta: IPublicTypeComponentMetadata = {
5
+ "componentName": "CheckRes",
6
+ "title": "预检结果",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "ydb-components-material",
12
+ "version": "0.1.4",
13
+ "exportName": "CheckRes",
14
+ "main": "src/index.tsx",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ "props": [
20
+ {
21
+ "title": {
22
+ "label": {
23
+ "type": "i18n",
24
+ "en-US": "res",
25
+ "zh-CN": "检查结果"
26
+ },
27
+ "tip": "res | 检查结果"
28
+ },
29
+ "name": "res",
30
+ "description": "检查结果",
31
+ "setter": {
32
+ "componentName": "BoolSetter",
33
+ "isRequired": false,
34
+ "initialValue": false
35
+ }
36
+ },
37
+ {
38
+ "title": {
39
+ "label": {
40
+ "type": "i18n",
41
+ "en-US": "name",
42
+ "zh-CN": "检查项目"
43
+ }
44
+ },
45
+ "name": "name",
46
+ "setter": {
47
+ "componentName": "StringSetter",
48
+ "isRequired": true,
49
+ "initialValue": ""
50
+ }
51
+ },
52
+ {
53
+ "title": {
54
+ "label": {
55
+ "type": "i18n",
56
+ "en-US": "hasBorderBottom",
57
+ "zh-CN": "下边框"
58
+ }
59
+ },
60
+ "name": "hasBorderBottom",
61
+ "setter": {
62
+ "componentName": "BoolSetter",
63
+ "isRequired": true,
64
+ "initialValue": true
65
+ }
66
+ }
67
+ ],
68
+ "supports": {
69
+ "style": true
70
+ },
71
+ "component": {}
72
+ }
73
+ };
74
+ const snippets: IPublicTypeSnippet[] = [
75
+ {
76
+ "title": "预检结果",
77
+ "screenshot": "",
78
+ "schema": {
79
+ "componentName": "CheckRes",
80
+ "props": {}
81
+ }
82
+ }
83
+ ];
84
+
85
+ export default {
86
+ ...CheckResMeta,
87
+ snippets
88
+ };
@@ -0,0 +1,103 @@
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const TipsMeta: IPublicTypeComponentMetadata = {
5
+ "componentName": "Tips",
6
+ "title": "Tips",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "ydb-components-material",
12
+ "version": "0.1.5",
13
+ "exportName": "Tips",
14
+ "main": "src/index.tsx",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ "props": [
20
+ {
21
+ "title": {
22
+ "label": {
23
+ "type": "i18n",
24
+ "en-US": "text",
25
+ "zh-CN": "标题"
26
+ },
27
+ "tip": "text | 标题"
28
+ },
29
+ "name": "text",
30
+ "description": "标题",
31
+ "setter": {
32
+ "componentName": "StringSetter",
33
+ "isRequired": true,
34
+ "initialValue": ""
35
+ }
36
+ },
37
+ {
38
+ "title": {
39
+ "label": {
40
+ "type": "i18n",
41
+ "en-US": "type",
42
+ "zh-CN": "type"
43
+ }
44
+ },
45
+ "name": "type",
46
+ "setter": {
47
+ "componentName": "RadioGroupSetter",
48
+ "props": {
49
+ "dataSource": [
50
+ {
51
+ "label": "success",
52
+ "value": "success"
53
+ },
54
+ {
55
+ "label": "warning",
56
+ "value": "warning"
57
+ },
58
+ {
59
+ "label": "error",
60
+ "value": "error"
61
+ }
62
+ ],
63
+ "options": [
64
+ {
65
+ "label": "success",
66
+ "value": "success"
67
+ },
68
+ {
69
+ "label": "warning",
70
+ "value": "warning"
71
+ },
72
+ {
73
+ "label": "error",
74
+ "value": "error"
75
+ }
76
+ ]
77
+ },
78
+ "isRequired": true,
79
+ "initialValue": "success"
80
+ }
81
+ }
82
+ ],
83
+ "supports": {
84
+ "style": true
85
+ },
86
+ "component": {}
87
+ }
88
+ };
89
+ const snippets: IPublicTypeSnippet[] = [
90
+ {
91
+ "title": "提示文字",
92
+ "screenshot": "",
93
+ "schema": {
94
+ "componentName": "Tips",
95
+ "props": {}
96
+ }
97
+ }
98
+ ];
99
+
100
+ export default {
101
+ ...TipsMeta,
102
+ snippets
103
+ };
@@ -38,7 +38,7 @@ var CardTitleMeta = {
38
38
  }
39
39
  };
40
40
  var snippets = [{
41
- "title": "CardTitle",
41
+ "title": "卡片标题",
42
42
  "screenshot": "",
43
43
  "schema": {
44
44
  "componentName": "CardTitle",
@@ -22,7 +22,7 @@ var CheckLoadingMeta = {
22
22
  }
23
23
  };
24
24
  var snippets = [{
25
- "title": "CheckLoading",
25
+ "title": "预检loading",
26
26
  "screenshot": "",
27
27
  "schema": {
28
28
  "componentName": "CheckLoading",
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,78 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var CheckResMeta = {
3
+ "componentName": "CheckRes",
4
+ "title": "预检结果",
5
+ "docUrl": "",
6
+ "screenshot": "",
7
+ "devMode": "proCode",
8
+ "npm": {
9
+ "package": "ydb-components-material",
10
+ "version": "0.1.4",
11
+ "exportName": "CheckRes",
12
+ "main": "src/index.tsx",
13
+ "destructuring": true,
14
+ "subName": ""
15
+ },
16
+ "configure": {
17
+ "props": [{
18
+ "title": {
19
+ "label": {
20
+ "type": "i18n",
21
+ "en-US": "res",
22
+ "zh-CN": "检查结果"
23
+ },
24
+ "tip": "res | 检查结果"
25
+ },
26
+ "name": "res",
27
+ "description": "检查结果",
28
+ "setter": {
29
+ "componentName": "BoolSetter",
30
+ "isRequired": false,
31
+ "initialValue": false
32
+ }
33
+ }, {
34
+ "title": {
35
+ "label": {
36
+ "type": "i18n",
37
+ "en-US": "name",
38
+ "zh-CN": "检查项目"
39
+ }
40
+ },
41
+ "name": "name",
42
+ "setter": {
43
+ "componentName": "StringSetter",
44
+ "isRequired": true,
45
+ "initialValue": ""
46
+ }
47
+ }, {
48
+ "title": {
49
+ "label": {
50
+ "type": "i18n",
51
+ "en-US": "hasBorderBottom",
52
+ "zh-CN": "下边框"
53
+ }
54
+ },
55
+ "name": "hasBorderBottom",
56
+ "setter": {
57
+ "componentName": "BoolSetter",
58
+ "isRequired": true,
59
+ "initialValue": true
60
+ }
61
+ }],
62
+ "supports": {
63
+ "style": true
64
+ },
65
+ "component": {}
66
+ }
67
+ };
68
+ var snippets = [{
69
+ "title": "预检结果",
70
+ "screenshot": "",
71
+ "schema": {
72
+ "componentName": "CheckRes",
73
+ "props": {}
74
+ }
75
+ }];
76
+ export default _extends({}, CheckResMeta, {
77
+ snippets: snippets
78
+ });
@@ -1,8 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import CardTitleMeta from "./card-title/meta";
3
3
  import CheckLoadingMeta from "./check-loading/meta";
4
+ import CheckResMeta from "./check-res/meta";
4
5
  import ColorfulButtonMeta from "./colorful-button/meta";
5
6
  import ColorfulInputMeta from "./colorful-input/meta";
7
+ import TipsMeta from "./tips/meta";
6
8
  var componentCategorySort = {};
7
9
  ["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
8
10
  componentCategorySort[item] = ++index;
@@ -74,7 +76,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
74
76
  packageName = 'ydb-components-material';
75
77
  }
76
78
  if (version === void 0) {
77
- version = '0.1.4';
79
+ version = '0.1.6';
78
80
  }
79
81
  if (basicLibraryVersion === void 0) {
80
82
  basicLibraryVersion = {
@@ -101,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
101
103
  }
102
104
  return meta;
103
105
  }
104
- var componentMetas = [CardTitleMeta, CheckLoadingMeta, ColorfulButtonMeta, ColorfulInputMeta];
106
+ var componentMetas = [CardTitleMeta, CheckLoadingMeta, CheckResMeta, ColorfulButtonMeta, ColorfulInputMeta, TipsMeta];
105
107
  var components = [];
106
108
  var npmInfo = {};
107
109
  componentMetas.forEach(function (meta) {
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;