@trionesdev/antd-mobile-react 0.0.2-beta.1 → 0.0.2-beta.11

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 (203) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/ActionSheet.d.ts +25 -0
  3. package/dist/ActionSheet/ActionSheet.js +77 -0
  4. package/dist/ActionSheet/index.d.ts +1 -1
  5. package/dist/ActionSheet/index.js +1 -1
  6. package/dist/ActionSheet/style.scss +52 -0
  7. package/dist/Avatar/demo/base.js +2 -2
  8. package/dist/Avatar/demo/style.scss +6 -6
  9. package/dist/Badge/demo/base.js +2 -2
  10. package/dist/Badge/demo/base.scss +6 -6
  11. package/dist/Button/demo/base.js +2 -2
  12. package/dist/Button/style.scss +234 -232
  13. package/dist/Calendar/calendar.js +2 -1
  14. package/dist/Calendar/style.scss +85 -85
  15. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  16. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +5 -6
  17. package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +37 -132
  18. package/dist/CalendarDatetimePicker/demo/base.js +5 -21
  19. package/dist/CalendarDatetimePicker/index.d.ts +2 -2
  20. package/dist/CalendarDatetimePicker/style.scss +10 -54
  21. package/dist/CalendarDatetimePicker/types.d.ts +0 -4
  22. package/dist/CalendarDatetimePicker/types.js +1 -6
  23. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.d.ts +10 -0
  24. package/dist/CalendarDatetimePopup/CalendarDatetimePopup.js +142 -0
  25. package/dist/CalendarDatetimePopup/demo/base.js +41 -0
  26. package/dist/CalendarDatetimePopup/index.d.ts +3 -0
  27. package/dist/CalendarDatetimePopup/index.js +2 -0
  28. package/dist/CalendarDatetimePopup/style.scss +54 -0
  29. package/dist/CalendarDatetimePopup/types.d.ts +5 -0
  30. package/dist/CalendarDatetimePopup/types.js +6 -0
  31. package/dist/CalendarPopup/calendar-popup.d.ts +4 -0
  32. package/dist/{CalendarPicker/calendar-picker.js → CalendarPopup/calendar-popup.js} +2 -2
  33. package/dist/CalendarPopup/calendar-range-popup.d.ts +4 -0
  34. package/dist/{CalendarPicker/calendar-range-picker.js → CalendarPopup/calendar-range-popup.js} +8 -7
  35. package/dist/{CalendarPicker → CalendarPopup}/demo/base.js +3 -3
  36. package/dist/CalendarPopup/index.d.ts +9 -0
  37. package/dist/CalendarPopup/index.js +5 -0
  38. package/dist/CalendarPopup/style.scss +31 -0
  39. package/dist/{CalendarPicker → CalendarPopup}/types.d.ts +2 -2
  40. package/dist/Card/demo/base.js +2 -2
  41. package/dist/Card/demo/base.scss +18 -18
  42. package/dist/CascaderPicker/CascaderPicker.d.ts +25 -0
  43. package/dist/CascaderPicker/CascaderPicker.js +78 -0
  44. package/dist/CascaderPicker/demo/base.js +6 -18
  45. package/dist/CascaderPicker/index.d.ts +1 -1
  46. package/dist/CascaderPicker/index.js +1 -1
  47. package/dist/CascaderPicker/style.scss +24 -0
  48. package/dist/CascaderPopup/cascader-popup.d.ts +27 -0
  49. package/dist/CascaderPopup/cascader-popup.js +90 -0
  50. package/dist/CascaderPopup/demo/base.d.ts +3 -0
  51. package/dist/CascaderPopup/demo/base.js +82 -0
  52. package/dist/CascaderPopup/index.d.ts +3 -0
  53. package/dist/CascaderPopup/index.js +2 -0
  54. package/dist/CascaderPopup/style.scss +45 -0
  55. package/dist/Cell/demo/base.js +41 -2
  56. package/dist/Checkbox/demo/base.js +11 -6
  57. package/dist/Checkbox/demo/disabled.js +2 -1
  58. package/dist/ConfigProvider/demo/base.js +2 -2
  59. package/dist/DemoBlock/index.d.ts +6 -0
  60. package/dist/DemoBlock/index.js +9 -2
  61. package/dist/DemoBlock/index.scss +20 -20
  62. package/dist/DemoDescription/index.scss +3 -3
  63. package/dist/Divider/demo/base.js +2 -2
  64. package/dist/Ellipsis/demo/base.js +2 -2
  65. package/dist/Empty/demo/base.js +2 -2
  66. package/dist/ErrorBlock/demo/base.js +2 -2
  67. package/dist/Footer/demo/base.js +2 -2
  68. package/dist/Form/FormItem/form-item-input.d.ts +15 -0
  69. package/dist/Form/FormItem/form-item-input.js +39 -0
  70. package/dist/Form/FormItem/form-item-label.d.ts +13 -0
  71. package/dist/Form/FormItem/form-item-label.js +27 -0
  72. package/dist/Form/FormItem/form-item.d.ts +22 -0
  73. package/dist/Form/FormItem/form-item.js +73 -0
  74. package/dist/Form/FormItem/index.d.ts +5 -0
  75. package/dist/Form/FormItem/index.js +3 -0
  76. package/dist/Form/demo/input.js +1 -1
  77. package/dist/Form/index.d.ts +8 -1
  78. package/dist/Form/index.js +5 -1
  79. package/dist/Form/style.scss +67 -0
  80. package/dist/Grid/demo/base.js +2 -2
  81. package/dist/Grid/demo/base.scss +7 -7
  82. package/dist/Icon/demo/base.js +2 -2
  83. package/dist/Image/demo/base.js +2 -2
  84. package/dist/Image/demo/base.scss +4 -4
  85. package/dist/Image/style.scss +30 -30
  86. package/dist/ImagesPreview/ImagesPreview.js +2 -2
  87. package/dist/ImagesPreview/style.scss +34 -34
  88. package/dist/ImagesWall/CameraModal.js +2 -2
  89. package/dist/ImagesWall/style.scss +70 -70
  90. package/dist/Input/base-input.d.ts +13 -0
  91. package/dist/Input/base-input.js +41 -0
  92. package/dist/Input/demo/base.js +89 -13
  93. package/dist/Input/index.d.ts +14 -2
  94. package/dist/Input/index.js +11 -1
  95. package/dist/Input/index.scss +223 -0
  96. package/dist/Input/input-affix-wrapper.d.ts +11 -0
  97. package/dist/Input/input-affix-wrapper.js +37 -0
  98. package/dist/Input/input-opt.d.ts +16 -0
  99. package/dist/Input/input-opt.js +87 -0
  100. package/dist/Input/input-password.d.ts +7 -0
  101. package/dist/Input/input-password.js +48 -0
  102. package/dist/Input/input.d.ts +18 -0
  103. package/dist/Input/input.js +63 -0
  104. package/dist/Input/textarea.d.ts +15 -0
  105. package/dist/Input/textarea.js +51 -0
  106. package/dist/Input/types.d.ts +3 -0
  107. package/dist/Input/types.js +2 -0
  108. package/dist/NavBar/demo/base.scss +5 -5
  109. package/dist/NoticeBar/demo/base.js +2 -2
  110. package/dist/Overlay/Overlay.d.ts +16 -0
  111. package/dist/Overlay/Overlay.js +117 -0
  112. package/dist/Overlay/demo/base.d.ts +3 -0
  113. package/dist/{Mask → Overlay}/demo/base.js +14 -16
  114. package/dist/Overlay/index.d.ts +4 -0
  115. package/dist/Overlay/index.js +3 -0
  116. package/dist/Overlay/style.scss +20 -0
  117. package/dist/PageIndicator/demo/base.js +2 -2
  118. package/dist/Picker/index.d.ts +1 -1
  119. package/dist/Picker/index.js +1 -1
  120. package/dist/Picker/picker.d.ts +19 -0
  121. package/dist/Picker/picker.js +97 -0
  122. package/dist/Picker/style.scss +44 -0
  123. package/dist/PickerView/index.d.ts +2 -1
  124. package/dist/PickerView/index.js +1 -1
  125. package/dist/PickerView/picker-view-column-item.d.ts +7 -0
  126. package/dist/PickerView/picker-view-column-item.js +11 -0
  127. package/dist/PickerView/picker-view-column.d.ts +10 -0
  128. package/dist/PickerView/picker-view-column.js +117 -0
  129. package/dist/PickerView/picker-view.d.ts +12 -0
  130. package/dist/PickerView/picker-view.js +60 -0
  131. package/dist/PickerView/style.scss +72 -0
  132. package/dist/PickerView/types.d.ts +4 -0
  133. package/dist/PickerView/types.js +1 -0
  134. package/dist/Popup/demo/base.js +109 -27
  135. package/dist/Popup/index.d.ts +2 -1
  136. package/dist/Popup/index.js +2 -1
  137. package/dist/Popup/popup.d.ts +31 -0
  138. package/dist/Popup/popup.js +87 -0
  139. package/dist/Popup/style.scss +129 -0
  140. package/dist/Progress/index.d.ts +1 -1
  141. package/dist/Progress/index.js +1 -1
  142. package/dist/Radio/demo/base.js +2 -2
  143. package/dist/Radio/demo/base.scss +4 -4
  144. package/dist/Result/demo/base.js +2 -2
  145. package/dist/SafeArea/demo/base.scss +18 -18
  146. package/dist/ScrollView/index.d.ts +2 -1
  147. package/dist/ScrollView/index.js +1 -1
  148. package/dist/ScrollView/scroll-view.d.ts +4 -0
  149. package/dist/ScrollView/scroll-view.js +55 -0
  150. package/dist/ScrollView/style.scss +19 -0
  151. package/dist/ScrollView/types.d.ts +26 -0
  152. package/dist/ScrollView/types.js +1 -0
  153. package/dist/SideBar/index.d.ts +1 -1
  154. package/dist/SideBar/side-bar.js +6 -6
  155. package/dist/SideBar/style.scss +85 -85
  156. package/dist/Space/demo/base.js +2 -2
  157. package/dist/Swiper/style.scss +54 -54
  158. package/dist/Switch/demo/base.js +2 -2
  159. package/dist/TabBar/demo/base.js +2 -2
  160. package/dist/Tag/demo/base.js +2 -2
  161. package/dist/Tag/demo/style.scss +8 -8
  162. package/dist/Toast/style.scss +63 -63
  163. package/dist/Toast/toast-modal.js +4 -4
  164. package/dist/VerificationCodeInput/demo/base.js +2 -2
  165. package/dist/VerificationCodeInput/index.d.ts +2 -2
  166. package/dist/VerificationCodeInput/index.js +1 -1
  167. package/dist/VerificationCodeInput/style.scss +20 -0
  168. package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
  169. package/dist/VerificationCodeInput/verification-code-input.js +99 -0
  170. package/dist/WaterMark/demo/demo1.js +2 -2
  171. package/dist/WaterMark/demo/demo1.scss +6 -6
  172. package/dist/WaterMark/demo/demo2.js +2 -2
  173. package/dist/index.d.ts +9 -7
  174. package/dist/index.js +4 -3
  175. package/dist/style/variable.scss +1 -1
  176. package/dist/types.d.ts +0 -8
  177. package/dist/types.js +0 -1
  178. package/dist/utils/type.js +36 -36
  179. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
  180. package/dist/utils/with-default-props.js +4 -4
  181. package/package.json +10 -11
  182. package/readme.md +43 -43
  183. package/dist/CalendarPicker/calendar-picker.d.ts +0 -4
  184. package/dist/CalendarPicker/calendar-range-picker.d.ts +0 -4
  185. package/dist/CalendarPicker/index.d.ts +0 -9
  186. package/dist/CalendarPicker/index.js +0 -5
  187. package/dist/CalendarPicker/style.scss +0 -31
  188. package/dist/Mask/index.d.ts +0 -3
  189. package/dist/Mask/index.js +0 -2
  190. package/dist/Progress/Progress.d.ts +0 -37
  191. package/dist/Progress/Progress.js +0 -52
  192. package/dist/Progress/ProgressCircle.d.ts +0 -17
  193. package/dist/Progress/ProgressCircle.js +0 -148
  194. package/dist/Progress/ProgressLine.d.ts +0 -15
  195. package/dist/Progress/ProgressLine.js +0 -87
  196. package/dist/Progress/style.scss +0 -33
  197. package/dist/Progress/types.d.ts +0 -4
  198. package/dist/Progress/types.js +0 -2
  199. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.d.ts +0 -0
  200. /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.js +0 -0
  201. /package/dist/{CalendarPicker → CalendarDatetimePopup}/demo/base.d.ts +0 -0
  202. /package/dist/{Mask → CalendarPopup}/demo/base.d.ts +0 -0
  203. /package/dist/{CalendarPicker → CalendarPopup}/types.js +0 -0
@@ -0,0 +1,20 @@
1
+ @use "../style/variable" as variable;
2
+
3
+ $verificationCodeInputCls: 'triones-antm-verification-code-input';
4
+
5
+ .#{$verificationCodeInputCls} {
6
+ &-send {
7
+ padding-inline: variable.$trionesPaddingContentHorizontal;
8
+ cursor: pointer;
9
+
10
+ &:hover {
11
+ color: variable.$trionesColorPrimary;
12
+ }
13
+ }
14
+
15
+ &-counting {
16
+ padding-inline: variable.$trionesPaddingContentHorizontal;
17
+ cursor: not-allowed;
18
+ color: variable.$trionesColorTextDisabled;
19
+ }
20
+ }
@@ -0,0 +1,24 @@
1
+ import { FC } from 'react';
2
+ import { InputProps } from '..';
3
+ import './style.scss';
4
+ export type VerificationCodeInputProps = Omit<InputProps, 'suffix'> & {
5
+ /**
6
+ * @description 发送文本
7
+ * @default 获取验证码
8
+ */
9
+ sendText?: string;
10
+ /**
11
+ * @description 重新发送文本
12
+ * @default 重新发送
13
+ */
14
+ resendText?: string;
15
+ /**
16
+ * @description 等待时间
17
+ */
18
+ waitSeconds?: number;
19
+ /**
20
+ * @description 发送事件
21
+ */
22
+ onSend?: () => Promise<boolean>;
23
+ };
24
+ export declare const VerificationCodeInput: FC<VerificationCodeInputProps>;
@@ -0,0 +1,99 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["sendText", "resendText", "waitSeconds", "onSend"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
5
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
6
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+ import classNames from 'classnames';
16
+ import React, { useEffect, useRef, useState } from 'react';
17
+ import Input from "../Input";
18
+ import "./style.scss";
19
+ export var VerificationCodeInput = function VerificationCodeInput(_ref) {
20
+ var _ref$sendText = _ref.sendText,
21
+ sendText = _ref$sendText === void 0 ? '获取验证码' : _ref$sendText,
22
+ _ref$resendText = _ref.resendText,
23
+ resendText = _ref$resendText === void 0 ? '重新发送' : _ref$resendText,
24
+ _ref$waitSeconds = _ref.waitSeconds,
25
+ waitSeconds = _ref$waitSeconds === void 0 ? 60 : _ref$waitSeconds,
26
+ onSend = _ref.onSend,
27
+ props = _objectWithoutProperties(_ref, _excluded);
28
+ var _useState = useState(false),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ send = _useState2[0],
31
+ setSend = _useState2[1];
32
+ var _useState3 = useState(0),
33
+ _useState4 = _slicedToArray(_useState3, 2),
34
+ seconds = _useState4[0],
35
+ setSeconds = _useState4[1];
36
+ var secondsRef = useRef(0);
37
+ var timer = useRef(null);
38
+ useEffect(function () {
39
+ if (seconds < 1) {
40
+ clearTimeout(timer.current);
41
+ timer.current = null;
42
+ } else {
43
+ setSend(true);
44
+ }
45
+ }, [seconds]);
46
+ useEffect(function () {
47
+ return function () {
48
+ clearTimeout(timer.current);
49
+ };
50
+ }, []);
51
+ var prefixCls = 'triones-antm-verification-code-input';
52
+ var handleSuffix = function handleSuffix() {
53
+ if (seconds > 0) {
54
+ return /*#__PURE__*/React.createElement("div", {
55
+ className: classNames("".concat(prefixCls, "-counting"))
56
+ }, seconds, "s");
57
+ }
58
+ return /*#__PURE__*/React.createElement("div", {
59
+ className: classNames("".concat(prefixCls, "-send")),
60
+ onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
61
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
62
+ while (1) switch (_context.prev = _context.next) {
63
+ case 0:
64
+ if (timer.current) {
65
+ _context.next = 9;
66
+ break;
67
+ }
68
+ _context.t0 = onSend === undefined;
69
+ if (_context.t0) {
70
+ _context.next = 6;
71
+ break;
72
+ }
73
+ _context.next = 5;
74
+ return onSend === null || onSend === void 0 ? void 0 : onSend();
75
+ case 5:
76
+ _context.t0 = _context.sent;
77
+ case 6:
78
+ if (!_context.t0) {
79
+ _context.next = 9;
80
+ break;
81
+ }
82
+ secondsRef.current = waitSeconds;
83
+ timer.current = setInterval(function () {
84
+ secondsRef.current = secondsRef.current - 1;
85
+ setSeconds(secondsRef.current);
86
+ }, 1000);
87
+ case 9:
88
+ case "end":
89
+ return _context.stop();
90
+ }
91
+ }, _callee);
92
+ }))
93
+ }, send ? resendText : sendText);
94
+ };
95
+ return /*#__PURE__*/React.createElement(Input, _extends({}, props, {
96
+ className: classNames(prefixCls, props.className),
97
+ suffix: handleSuffix()
98
+ }));
99
+ };
@@ -4,8 +4,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- /**
8
- * compact: true
7
+ /**
8
+ * compact: true
9
9
  */
10
10
  import React, { useState } from 'react';
11
11
  import "./demo1.scss";
@@ -1,6 +1,6 @@
1
- .water-mark-overlay {
2
- padding: 12px;
3
- button {
4
- margin-bottom: 12px;
5
- }
6
- }
1
+ .water-mark-overlay {
2
+ padding: 12px;
3
+ button {
4
+ margin-bottom: 12px;
5
+ }
6
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import { DemoBlock } from "../../DemoBlock";
5
5
  import React from 'react';
package/dist/index.d.ts CHANGED
@@ -10,14 +10,16 @@ export { default as Button } from './Button';
10
10
  export type { ButtonProps } from './Button';
11
11
  export { default as Calendar, CalendarGrid, TouchableCalendarGrid, } from './Calendar';
12
12
  export type { CalendarGridProps, CalendarProps } from './Calendar';
13
- export { default as CalendarDatetimePicker } from './CalendarDatetimePicker';
14
- export type { CalendarDatetimePickerProps } from './CalendarDatetimePicker';
15
- export { default as CalendarPicker } from './CalendarPicker';
16
- export type { CalendarPickerProps } from './CalendarPicker';
13
+ export { default as CalendarDatetimePopup } from './CalendarDatetimePopup';
14
+ export type { CalendarDatetimePopupProps } from './CalendarDatetimePopup';
15
+ export { default as CalendarPopup } from './CalendarPopup';
16
+ export type { CalendarPopupProps } from './CalendarPopup';
17
17
  export { default as Card } from './Card';
18
18
  export type { CardProps } from './Card';
19
19
  export { default as CascaderPicker } from './CascaderPicker';
20
20
  export type { CascaderPickerProps } from './CascaderPicker';
21
+ export { default as CascaderPopup } from './CascaderPopup';
22
+ export type { CascaderPopupProps } from './CascaderPopup';
21
23
  export { default as CascaderView } from './CascaderView';
22
24
  export type { CascaderViewProps } from './CascaderView';
23
25
  export { default as Cell } from './Cell';
@@ -52,12 +54,12 @@ export { default as Input } from './Input';
52
54
  export type { InputOPTProps, InputPasswordProps, InputProps, InputTextareaProps } from './Input';
53
55
  export { default as InputNumber } from './InputNumber';
54
56
  export type { InputNumberProps } from './InputNumber';
55
- export { default as Mask } from "./Mask";
56
- export type { MaskProps } from "./Mask";
57
57
  export { default as NavBar } from './NavBar';
58
58
  export type { NavBarProps } from './NavBar';
59
59
  export { default as NoticeBar } from './NoticeBar';
60
60
  export type { NoticeBarProps } from './NoticeBar';
61
+ export { default as Overlay } from './Overlay';
62
+ export type { OverlayProps } from './Overlay';
61
63
  export { default as PageIndicator } from './PageIndicator';
62
64
  export type { PageIndicatorProps } from './PageIndicator';
63
65
  export { default as Picker } from './Picker';
@@ -101,6 +103,6 @@ export type { ToastProps } from './Toast';
101
103
  export { default as Tabs } from './Tabs';
102
104
  export type { TabsProps } from './Tabs';
103
105
  export { default as VerificationCodeInput } from './VerificationCodeInput';
104
- export type { ValidationCodeInputProps } from './VerificationCodeInput';
106
+ export type { VerificationCodeInputProps } from './VerificationCodeInput';
105
107
  export { default as WaterMark } from './WaterMark';
106
108
  export type { WaterMarkProps } from './WaterMark';
package/dist/index.js CHANGED
@@ -4,10 +4,11 @@ export { default as Avatar } from "./Avatar";
4
4
  export { default as Badge } from "./Badge";
5
5
  export { default as Button } from "./Button";
6
6
  export { default as Calendar, CalendarGrid, TouchableCalendarGrid } from "./Calendar";
7
- export { default as CalendarDatetimePicker } from "./CalendarDatetimePicker";
8
- export { default as CalendarPicker } from "./CalendarPicker";
7
+ export { default as CalendarDatetimePopup } from "./CalendarDatetimePopup";
8
+ export { default as CalendarPopup } from "./CalendarPopup";
9
9
  export { default as Card } from "./Card";
10
10
  export { default as CascaderPicker } from "./CascaderPicker";
11
+ export { default as CascaderPopup } from "./CascaderPopup";
11
12
  export { default as CascaderView } from "./CascaderView";
12
13
  export { default as Cell } from "./Cell";
13
14
  export { default as Checkbox } from "./Checkbox";
@@ -25,9 +26,9 @@ export { default as ImagesPreview } from "./ImagesPreview";
25
26
  export { default as ImagesWall } from "./ImagesWall";
26
27
  export { default as Input } from "./Input";
27
28
  export { default as InputNumber } from "./InputNumber";
28
- export { default as Mask } from "./Mask";
29
29
  export { default as NavBar } from "./NavBar";
30
30
  export { default as NoticeBar } from "./NoticeBar";
31
+ export { default as Overlay } from "./Overlay";
31
32
  export { default as PageIndicator } from "./PageIndicator";
32
33
  export { default as Picker } from "./Picker";
33
34
  export { default as PickerView } from "./PickerView";
@@ -1 +1 @@
1
- @forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
1
+ @forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
package/dist/types.d.ts CHANGED
@@ -1,8 +0,0 @@
1
- export type BoundingClientRectType = {
2
- top: number;
3
- left: number;
4
- right: number;
5
- bottom: number;
6
- width: number;
7
- height: number;
8
- };
package/dist/types.js CHANGED
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +1,45 @@
1
1
  /** https://github.com/Microsoft/TypeScript/issues/29729 */
2
2
 
3
- /**
4
- * Get component props
5
- * @example
6
- * ```ts
7
- * import { Checkbox } from 'antd'
8
- * import type { GetProps } from 'antd';
9
- *
10
- * type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
11
- * ```
12
- * @since 5.13.0
3
+ /**
4
+ * Get component props
5
+ * @example
6
+ * ```ts
7
+ * import { Checkbox } from 'antd'
8
+ * import type { GetProps } from 'antd';
9
+ *
10
+ * type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
11
+ * ```
12
+ * @since 5.13.0
13
13
  */
14
14
 
15
- /**
16
- * Get component props by component name
17
- * @example
18
- * ```ts
19
- * import { Select } from 'antd';
20
- * import type { GetProp, SelectProps } from 'antd';
21
- *
22
- * type SelectOption1 = GetProp<SelectProps, 'options'>[number];
23
- * // or
24
- * type SelectOption2 = GetProp<typeof Select, 'options'>[number];
25
- *
26
- * const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
27
- * // Do something
28
- * };
29
- * ```
30
- * @since 5.13.0
15
+ /**
16
+ * Get component props by component name
17
+ * @example
18
+ * ```ts
19
+ * import { Select } from 'antd';
20
+ * import type { GetProp, SelectProps } from 'antd';
21
+ *
22
+ * type SelectOption1 = GetProp<SelectProps, 'options'>[number];
23
+ * // or
24
+ * type SelectOption2 = GetProp<typeof Select, 'options'>[number];
25
+ *
26
+ * const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
27
+ * // Do something
28
+ * };
29
+ * ```
30
+ * @since 5.13.0
31
31
  */
32
32
 
33
- /**
34
- * Get component ref
35
- * @example
36
- * ```ts
37
- * import { Input } from 'antd';
38
- * import type { GetRef } from 'antd';
39
- *
40
- * type InputRef = GetRef<typeof Input>;
41
- * ```
42
- * @since 5.13.0
33
+ /**
34
+ * Get component ref
35
+ * @example
36
+ * ```ts
37
+ * import { Input } from 'antd';
38
+ * import type { GetRef } from 'antd';
39
+ *
40
+ * type InputRef = GetRef<typeof Input>;
41
+ * ```
42
+ * @since 5.13.0
43
43
  */
44
44
 
45
45
  export var ComponentDefaults = {
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
2
+ export declare const useIsomorphicUpdateLayoutEffect: typeof import("react").useLayoutEffect | typeof import("react").useEffect;
@@ -15,10 +15,10 @@ export function mergeProps() {
15
15
  return ret;
16
16
  }
17
17
 
18
- /**
19
- * Merge props and return the first non-undefined value.
20
- * The later has higher priority. e.g. (10, 1, 5) => 5 wins.
21
- * This is useful with legacy props that have been deprecated.
18
+ /**
19
+ * Merge props and return the first non-undefined value.
20
+ * The later has higher priority. e.g. (10, 1, 5) => 5 wins.
21
+ * This is useful with legacy props that have been deprecated.
22
22
  */
23
23
  export function mergeProp(defaultProp) {
24
24
  for (var _len2 = arguments.length, propList = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trionesdev/antd-mobile-react",
3
- "version": "0.0.2-beta.1",
3
+ "version": "0.0.2-beta.11",
4
4
  "description": "antd mobile react ",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
19
19
  "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
20
20
  "prepublishOnly": "father doctor && npm run build",
21
- "publish": "npm publish --registry=https://registry.npmjs.org/",
21
+ "publish": "npm publish --tag latest --registry=https://registry.npmjs.org/",
22
22
  "publishOnly": "npm publish --ignore-scripts --registry=https://registry.npmjs.org/"
23
23
  },
24
24
  "authors": [
@@ -73,13 +73,13 @@
73
73
  "@umijs/lint": "^4.0.0",
74
74
  "classnames": "^2.5.1",
75
75
  "cross-env": "^7.0.3",
76
- "dumi": "2.4.12",
76
+ "dumi": "2.4.21",
77
77
  "dumi-theme-mobile": "^2.3.5",
78
78
  "eslint": "^8.23.0",
79
- "father": "^4.5.1",
79
+ "father": "^4.6.9",
80
80
  "husky": "^8.0.1",
81
81
  "lint-staged": "^13.0.3",
82
- "lodash-es": "^4.17.21",
82
+ "lodash-es": "^4.17.23",
83
83
  "prettier": "^3.4.2",
84
84
  "prettier-plugin-organize-imports": "^4.1.0",
85
85
  "prettier-plugin-packagejson": "^2.5.6",
@@ -89,16 +89,15 @@
89
89
  "stylelint": "^16.12.0"
90
90
  },
91
91
  "dependencies": {
92
- "@trionesdev/antd-mobile-base-react": "^0.0.2-beta.1",
92
+ "@trionesdev/antd-mobile-base-react": "^0.0.2-beta.11",
93
93
  "ahooks": "^3.8.4",
94
94
  "crypto-js": "^4.2.0",
95
- "rc-field-form": "^2.7.0",
96
- "rc-util": "^5.44.3",
97
- "runes2": "^1.1.4"
95
+ "dayjs": "^1.11.19",
96
+ "rc-field-form": "^2.7.0"
98
97
  },
99
98
  "optionalDependencies": {
100
99
  "@trionesdev/antd-mobile-base-react": "workspace:*",
101
- "@trionesdev/antd-mobile-icons-react": "0.0.2-beta.1"
100
+ "@trionesdev/antd-mobile-icons-react": "0.0.2-beta.10"
102
101
  },
103
- "gitHead": "4af3397bf3fe6c14968ea5ab3a070ba36147f3e4"
102
+ "gitHead": "ac56b7bd2ded2ad9bf30daeb7d9f52b8a43745a6"
104
103
  }
package/readme.md CHANGED
@@ -1,43 +1,43 @@
1
- # @trionesdev/antd-taro-react
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
5
-
6
- antd mobile react
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ pnpm install
21
-
22
- # develop library by docs demo
23
- $ pnpm start
24
-
25
- # build library source code
26
- $ pnpm run build
27
-
28
- # build library source code in watch mode
29
- $ pnpm run build:watch
30
-
31
- # build docs
32
- $ pnpm run docs:build
33
-
34
- # Locally preview the production build.
35
- $ pnpm run docs:preview
36
-
37
- # check your project for potential problems
38
- $ pnpm run doctor
39
- ```
40
-
41
- ## LICENSE
42
-
43
- MIT
1
+ # @trionesdev/antd-taro-react
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@trionesdev/antd-mobile-react.svg?style=flat)](https://npmjs.org/package/@trionesdev/antd-mobile-react)
5
+
6
+ antd mobile react
7
+
8
+ ## Usage
9
+
10
+ TODO
11
+
12
+ ## Options
13
+
14
+ TODO
15
+
16
+ ## Development
17
+
18
+ ```bash
19
+ # install dependencies
20
+ $ pnpm install
21
+
22
+ # develop library by docs demo
23
+ $ pnpm start
24
+
25
+ # build library source code
26
+ $ pnpm run build
27
+
28
+ # build library source code in watch mode
29
+ $ pnpm run build:watch
30
+
31
+ # build docs
32
+ $ pnpm run docs:build
33
+
34
+ # Locally preview the production build.
35
+ $ pnpm run docs:preview
36
+
37
+ # check your project for potential problems
38
+ $ pnpm run doctor
39
+ ```
40
+
41
+ ## LICENSE
42
+
43
+ MIT
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import './style.scss';
3
- import { CalendarPickerProps } from './types';
4
- export declare const CalendarPicker: FC<CalendarPickerProps>;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import "./style.scss";
3
- import { CalendarPickerRangeProps } from "./types";
4
- export declare const CalendarRangePicker: FC<CalendarPickerRangeProps>;
@@ -1,9 +0,0 @@
1
- import { CalendarPicker as InternalCalendarPicker } from "./calendar-picker";
2
- import { CalendarRangePicker } from "./calendar-range-picker";
3
- import { CalendarPickerProps } from "./types";
4
- type CompoundedComponent = typeof InternalCalendarPicker & {
5
- Range: typeof CalendarRangePicker;
6
- };
7
- declare const CalendarPicker: CompoundedComponent;
8
- export type { CalendarPickerProps };
9
- export default CalendarPicker;
@@ -1,5 +0,0 @@
1
- import { CalendarPicker as InternalCalendarPicker } from "./calendar-picker";
2
- import { CalendarRangePicker } from "./calendar-range-picker";
3
- var CalendarPicker = InternalCalendarPicker;
4
- CalendarPicker.Range = CalendarRangePicker;
5
- export default CalendarPicker;
@@ -1,31 +0,0 @@
1
- @use "../style/variable" as *;
2
-
3
- $calendarPickerCls: 'triones-antm-calendar-picker';
4
-
5
- .#{$calendarPickerCls} {
6
- border-top-left-radius: $trionesBorderRadius;
7
- border-top-right-radius: $trionesBorderRadius;
8
-
9
- &-header {
10
- display: flex;
11
- justify-content: space-between;
12
- border-bottom: 1Px solid $trionesBorderColor;
13
- padding: 4Px;
14
- &-button {
15
- padding: 8Px 12Px;
16
-
17
- &-cancel {
18
- }
19
-
20
- &-ok {
21
- color: $trionesColorPrimary;
22
- }
23
- }
24
-
25
-
26
- }
27
-
28
- &-body {
29
- pointer-events: unset;
30
- }
31
- }
@@ -1,3 +0,0 @@
1
- import { Mask, MaskProps } from "@trionesdev/antd-mobile-base-react";
2
- export type { MaskProps };
3
- export default Mask;
@@ -1,2 +0,0 @@
1
- import { Mask } from "@trionesdev/antd-mobile-base-react";
2
- export default Mask;
@@ -1,37 +0,0 @@
1
- import { FC } from "react";
2
- import "./style.scss";
3
- import { PercentPositionAlign, ProgressStatus } from "./types";
4
- import { Size } from "@trionesdev/antd-mobile-base-react";
5
- export type ProgressProps = {
6
- /**
7
- * @description 内容的模板函数
8
- * @default percent => `${percent}%`
9
- */
10
- format?: (percent: number) => string;
11
- type?: 'line' | 'circle';
12
- /**
13
- * @description 百分比
14
- * @default 0
15
- */
16
- percent?: number;
17
- size?: Size;
18
- /**
19
- * @description 是否显示进度数值或状态图标
20
- * @default true
21
- */
22
- showInfo?: boolean;
23
- /**
24
- * @description 未完成的分段的颜色
25
- */
26
- railColor?: string;
27
- /**
28
- * @description 进度条的色彩
29
- */
30
- strokeColor?: string;
31
- status?: ProgressStatus;
32
- /**
33
- * @description 进度数值位置
34
- */
35
- percentPositionAlign?: PercentPositionAlign;
36
- };
37
- export declare const Progress: FC<ProgressProps>;