tiny-ui 1.0.1 → 1.0.3

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 (581) hide show
  1. package/dist/styles/index.css +8 -64
  2. package/dist/styles/index.css.map +1 -1
  3. package/dist/styles/index.min.css +1 -1
  4. package/dist/styles/index.min.css.map +1 -1
  5. package/dist/tiny.min.js +1 -1
  6. package/dist/tiny.min.js.map +1 -1
  7. package/es/_utils/use-theme.js +1 -1
  8. package/es/_utils/use-theme.js.map +1 -1
  9. package/es/alert/alert.d.ts +4 -0
  10. package/es/alert/alert.js +56 -0
  11. package/es/alert/alert.js.map +1 -0
  12. package/es/alert/index.d.ts +1 -3
  13. package/es/alert/index.js +1 -54
  14. package/es/alert/index.js.map +1 -1
  15. package/es/anchor/anchor.js +9 -0
  16. package/es/anchor/anchor.js.map +1 -1
  17. package/es/aspect-ratio/aspect-ratio.d.ts +4 -0
  18. package/es/aspect-ratio/aspect-ratio.js +15 -0
  19. package/es/aspect-ratio/aspect-ratio.js.map +1 -0
  20. package/es/aspect-ratio/index.d.ts +1 -3
  21. package/es/aspect-ratio/index.js +1 -13
  22. package/es/aspect-ratio/index.js.map +1 -1
  23. package/es/back-top/back-top.d.ts +3 -0
  24. package/es/back-top/back-top.js +80 -0
  25. package/es/back-top/back-top.js.map +1 -0
  26. package/es/back-top/index.d.ts +1 -2
  27. package/es/back-top/index.js +1 -78
  28. package/es/back-top/index.js.map +1 -1
  29. package/es/badge/badge.d.ts +4 -0
  30. package/es/badge/badge.js +29 -0
  31. package/es/badge/badge.js.map +1 -0
  32. package/es/badge/index.d.ts +1 -3
  33. package/es/badge/index.js +1 -27
  34. package/es/badge/index.js.map +1 -1
  35. package/es/calendar/calendar.d.ts +4 -0
  36. package/es/calendar/calendar.js +117 -0
  37. package/es/calendar/calendar.js.map +1 -0
  38. package/es/calendar/index.d.ts +1 -3
  39. package/es/calendar/index.js +1 -115
  40. package/es/calendar/index.js.map +1 -1
  41. package/es/collapse-transition/collapse-transition.d.ts +10 -0
  42. package/es/collapse-transition/collapse-transition.js +89 -0
  43. package/es/collapse-transition/collapse-transition.js.map +1 -0
  44. package/es/collapse-transition/index.d.ts +1 -9
  45. package/es/collapse-transition/index.js +1 -87
  46. package/es/collapse-transition/index.js.map +1 -1
  47. package/es/config-provider/config-provider.d.ts +6 -0
  48. package/es/config-provider/config-provider.js +23 -0
  49. package/es/config-provider/config-provider.js.map +1 -0
  50. package/es/config-provider/index.d.ts +1 -5
  51. package/es/config-provider/index.js +1 -21
  52. package/es/config-provider/index.js.map +1 -1
  53. package/es/copy-to-clipboard/copy-to-clipboard.d.ts +7 -0
  54. package/es/copy-to-clipboard/copy-to-clipboard.js +47 -0
  55. package/es/copy-to-clipboard/copy-to-clipboard.js.map +1 -0
  56. package/es/copy-to-clipboard/index.d.ts +1 -6
  57. package/es/copy-to-clipboard/index.js +1 -45
  58. package/es/copy-to-clipboard/index.js.map +1 -1
  59. package/es/countdown/countdown.d.ts +4 -0
  60. package/es/countdown/countdown.js +42 -0
  61. package/es/countdown/countdown.js.map +1 -0
  62. package/es/countdown/index.d.ts +1 -3
  63. package/es/countdown/index.js +1 -40
  64. package/es/countdown/index.js.map +1 -1
  65. package/es/date-picker/date-picker.d.ts +6 -0
  66. package/es/date-picker/date-picker.js +142 -0
  67. package/es/date-picker/date-picker.js.map +1 -0
  68. package/es/date-picker/index.d.ts +1 -5
  69. package/es/date-picker/index.js +1 -140
  70. package/es/date-picker/index.js.map +1 -1
  71. package/es/divider/divider.d.ts +4 -0
  72. package/es/divider/divider.js +18 -0
  73. package/es/divider/divider.js.map +1 -0
  74. package/es/divider/index.d.ts +1 -3
  75. package/es/divider/index.js +1 -16
  76. package/es/divider/index.js.map +1 -1
  77. package/es/drawer/drawer.d.ts +4 -0
  78. package/es/drawer/drawer.js +67 -0
  79. package/es/drawer/drawer.js.map +1 -0
  80. package/es/drawer/index.d.ts +1 -3
  81. package/es/drawer/index.js +1 -65
  82. package/es/drawer/index.js.map +1 -1
  83. package/es/drawer/style/_index.scss +4 -0
  84. package/es/dropdown/dropdown.d.ts +6 -0
  85. package/es/dropdown/dropdown.js +101 -0
  86. package/es/dropdown/dropdown.js.map +1 -0
  87. package/es/dropdown/index.d.ts +1 -5
  88. package/es/dropdown/index.js +1 -99
  89. package/es/dropdown/index.js.map +1 -1
  90. package/es/empty/empty.d.ts +4 -0
  91. package/es/empty/empty.js +28 -0
  92. package/es/empty/empty.js.map +1 -0
  93. package/es/empty/index.d.ts +1 -3
  94. package/es/empty/index.js +1 -26
  95. package/es/empty/index.js.map +1 -1
  96. package/es/flex/flex.d.ts +4 -0
  97. package/es/flex/flex.js +29 -0
  98. package/es/flex/flex.js.map +1 -0
  99. package/es/flex/index.d.ts +1 -3
  100. package/es/flex/index.js +1 -27
  101. package/es/flex/index.js.map +1 -1
  102. package/es/grid/types.d.ts +1 -1
  103. package/es/icon/icon.d.ts +4 -0
  104. package/es/icon/icon.js +17 -0
  105. package/es/icon/icon.js.map +1 -0
  106. package/es/icon/index.d.ts +1 -3
  107. package/es/icon/index.js +1 -15
  108. package/es/icon/index.js.map +1 -1
  109. package/es/image/image.d.ts +6 -0
  110. package/es/image/image.js +34 -0
  111. package/es/image/image.js.map +1 -0
  112. package/es/image/index.d.ts +1 -5
  113. package/es/image/index.js +1 -32
  114. package/es/image/index.js.map +1 -1
  115. package/es/input-number/index.d.ts +1 -3
  116. package/es/input-number/index.js +1 -60
  117. package/es/input-number/index.js.map +1 -1
  118. package/es/input-number/input-number.d.ts +4 -0
  119. package/es/input-number/input-number.js +62 -0
  120. package/es/input-number/input-number.js.map +1 -0
  121. package/es/input-password/index.d.ts +1 -2
  122. package/es/input-password/index.js +1 -19
  123. package/es/input-password/index.js.map +1 -1
  124. package/es/input-password/input-password.d.ts +3 -0
  125. package/es/input-password/input-password.js +21 -0
  126. package/es/input-password/input-password.js.map +1 -0
  127. package/es/intl-provider/index.d.ts +1 -7
  128. package/es/intl-provider/index.js +1 -6
  129. package/es/intl-provider/index.js.map +1 -1
  130. package/es/intl-provider/intl-provider.d.ts +8 -0
  131. package/es/intl-provider/intl-provider.js +8 -0
  132. package/es/intl-provider/intl-provider.js.map +1 -0
  133. package/es/keyboard/index.d.ts +1 -3
  134. package/es/keyboard/index.js +1 -13
  135. package/es/keyboard/index.js.map +1 -1
  136. package/es/keyboard/keyboard.d.ts +4 -0
  137. package/es/keyboard/keyboard.js +15 -0
  138. package/es/keyboard/keyboard.js.map +1 -0
  139. package/es/link/index.d.ts +1 -6
  140. package/es/link/index.js +1 -19
  141. package/es/link/index.js.map +1 -1
  142. package/es/link/link.d.ts +7 -0
  143. package/es/link/link.js +21 -0
  144. package/es/link/link.js.map +1 -0
  145. package/es/list/list.js +2 -4
  146. package/es/list/list.js.map +1 -1
  147. package/es/list/style/_index.scss +0 -31
  148. package/es/list/types.d.ts +2 -1
  149. package/es/loader/index.d.ts +1 -3
  150. package/es/loader/index.js +1 -23
  151. package/es/loader/index.js.map +1 -1
  152. package/es/loader/loader.d.ts +4 -0
  153. package/es/loader/loader.js +25 -0
  154. package/es/loader/loader.js.map +1 -0
  155. package/es/message/index.d.ts +2 -9
  156. package/es/message/index.js +1 -61
  157. package/es/message/index.js.map +1 -1
  158. package/es/message/message-container.d.ts +10 -0
  159. package/es/message/message-container.js +63 -0
  160. package/es/message/message-container.js.map +1 -0
  161. package/es/modal/index.d.ts +1 -3
  162. package/es/modal/index.js +1 -80
  163. package/es/modal/index.js.map +1 -1
  164. package/es/modal/modal.d.ts +4 -0
  165. package/es/modal/modal.js +82 -0
  166. package/es/modal/modal.js.map +1 -0
  167. package/es/modal/style/_index.scss +2 -1
  168. package/es/notification/index.d.ts +1 -1
  169. package/es/notification/index.js +1 -72
  170. package/es/notification/index.js.map +1 -1
  171. package/es/notification/notification-container.d.ts +2 -0
  172. package/es/notification/notification-container.js +74 -0
  173. package/es/notification/notification-container.js.map +1 -0
  174. package/es/overlay/index.d.ts +1 -5
  175. package/es/overlay/index.js +1 -24
  176. package/es/overlay/index.js.map +1 -1
  177. package/es/overlay/overlay.d.ts +6 -0
  178. package/es/overlay/overlay.js +26 -0
  179. package/es/overlay/overlay.js.map +1 -0
  180. package/es/pagination/index.d.ts +1 -2
  181. package/es/pagination/index.js +1 -114
  182. package/es/pagination/index.js.map +1 -1
  183. package/es/pagination/pagination.d.ts +3 -0
  184. package/es/pagination/pagination.js +116 -0
  185. package/es/pagination/pagination.js.map +1 -0
  186. package/es/pop-confirm/index.d.ts +1 -5
  187. package/es/pop-confirm/index.js +1 -33
  188. package/es/pop-confirm/index.js.map +1 -1
  189. package/es/pop-confirm/pop-confirm.d.ts +6 -0
  190. package/es/pop-confirm/pop-confirm.js +35 -0
  191. package/es/pop-confirm/pop-confirm.js.map +1 -0
  192. package/es/popover/index.d.ts +1 -3
  193. package/es/popover/index.js +1 -15
  194. package/es/popover/index.js.map +1 -1
  195. package/es/popover/popover.d.ts +4 -0
  196. package/es/popover/popover.js +17 -0
  197. package/es/popover/popover.js.map +1 -0
  198. package/es/popup/index.d.ts +1 -2
  199. package/es/popup/index.js +1 -194
  200. package/es/popup/index.js.map +1 -1
  201. package/es/popup/popup.d.ts +3 -0
  202. package/es/popup/popup.js +196 -0
  203. package/es/popup/popup.js.map +1 -0
  204. package/es/portal/index.d.ts +1 -6
  205. package/es/portal/index.js +1 -5
  206. package/es/portal/index.js.map +1 -1
  207. package/es/portal/portal.d.ts +7 -0
  208. package/es/portal/portal.js +7 -0
  209. package/es/portal/portal.js.map +1 -0
  210. package/es/rate/index.d.ts +1 -3
  211. package/es/rate/index.js +1 -67
  212. package/es/rate/index.js.map +1 -1
  213. package/es/rate/rate.d.ts +4 -0
  214. package/es/rate/rate.js +69 -0
  215. package/es/rate/rate.js.map +1 -0
  216. package/es/result/index.d.ts +1 -3
  217. package/es/result/index.js +1 -35
  218. package/es/result/index.js.map +1 -1
  219. package/es/result/result.d.ts +4 -0
  220. package/es/result/result.js +37 -0
  221. package/es/result/result.js.map +1 -0
  222. package/es/scroll-indicator/index.d.ts +1 -6
  223. package/es/scroll-indicator/index.js +1 -36
  224. package/es/scroll-indicator/index.js.map +1 -1
  225. package/es/scroll-indicator/scroll-indicator.d.ts +7 -0
  226. package/es/scroll-indicator/scroll-indicator.js +38 -0
  227. package/es/scroll-indicator/scroll-indicator.js.map +1 -0
  228. package/es/skeleton/index.d.ts +1 -3
  229. package/es/skeleton/index.js +1 -16
  230. package/es/skeleton/index.js.map +1 -1
  231. package/es/skeleton/skeleton.d.ts +4 -0
  232. package/es/skeleton/skeleton.js +18 -0
  233. package/es/skeleton/skeleton.js.map +1 -0
  234. package/es/slider/index.d.ts +1 -3
  235. package/es/slider/index.js +1 -245
  236. package/es/slider/index.js.map +1 -1
  237. package/es/slider/slider.d.ts +4 -0
  238. package/es/slider/slider.js +247 -0
  239. package/es/slider/slider.js.map +1 -0
  240. package/es/space/index.d.ts +1 -3
  241. package/es/space/index.js +1 -27
  242. package/es/space/index.js.map +1 -1
  243. package/es/space/space.d.ts +4 -0
  244. package/es/space/space.js +29 -0
  245. package/es/space/space.js.map +1 -0
  246. package/es/split-button/index.d.ts +1 -6
  247. package/es/split-button/index.js +1 -17
  248. package/es/split-button/index.js.map +1 -1
  249. package/es/split-button/split-button.d.ts +7 -0
  250. package/es/split-button/split-button.js +19 -0
  251. package/es/split-button/split-button.js.map +1 -0
  252. package/es/sticky/index.d.ts +1 -5
  253. package/es/sticky/index.js +1 -125
  254. package/es/sticky/index.js.map +1 -1
  255. package/es/sticky/sticky.d.ts +6 -0
  256. package/es/sticky/sticky.js +127 -0
  257. package/es/sticky/sticky.js.map +1 -0
  258. package/es/strength-indicator/index.d.ts +1 -3
  259. package/es/strength-indicator/index.js +1 -22
  260. package/es/strength-indicator/index.js.map +1 -1
  261. package/es/strength-indicator/strength-indicator.d.ts +4 -0
  262. package/es/strength-indicator/strength-indicator.js +24 -0
  263. package/es/strength-indicator/strength-indicator.js.map +1 -0
  264. package/es/style/_theme.scss +3 -3
  265. package/es/style/index.css +8 -64
  266. package/es/switch/index.d.ts +1 -3
  267. package/es/switch/index.js +1 -35
  268. package/es/switch/index.js.map +1 -1
  269. package/es/switch/switch.d.ts +4 -0
  270. package/es/switch/switch.js +37 -0
  271. package/es/switch/switch.js.map +1 -0
  272. package/es/table/style/_index.scss +0 -38
  273. package/es/table/table.js +2 -4
  274. package/es/table/table.js.map +1 -1
  275. package/es/table/types.d.ts +2 -1
  276. package/es/textarea/index.d.ts +1 -3
  277. package/es/textarea/index.js +1 -25
  278. package/es/textarea/index.js.map +1 -1
  279. package/es/textarea/textarea.d.ts +4 -0
  280. package/es/textarea/textarea.js +27 -0
  281. package/es/textarea/textarea.js.map +1 -0
  282. package/es/tooltip/index.d.ts +1 -3
  283. package/es/tooltip/index.js +1 -15
  284. package/es/tooltip/index.js.map +1 -1
  285. package/es/tooltip/tooltip.d.ts +4 -0
  286. package/es/tooltip/tooltip.js +17 -0
  287. package/es/tooltip/tooltip.js.map +1 -0
  288. package/es/transition/index.d.ts +2 -16
  289. package/es/transition/index.js +1 -7
  290. package/es/transition/index.js.map +1 -1
  291. package/es/transition/transition.d.ts +17 -0
  292. package/es/transition/transition.js +9 -0
  293. package/es/transition/transition.js.map +1 -0
  294. package/lib/_utils/use-theme.js +1 -1
  295. package/lib/_utils/use-theme.js.map +1 -1
  296. package/lib/alert/alert.d.ts +4 -0
  297. package/lib/alert/alert.js +59 -0
  298. package/lib/alert/alert.js.map +1 -0
  299. package/lib/alert/index.d.ts +1 -3
  300. package/lib/alert/index.js +2 -55
  301. package/lib/alert/index.js.map +1 -1
  302. package/lib/anchor/anchor.js +9 -0
  303. package/lib/anchor/anchor.js.map +1 -1
  304. package/lib/aspect-ratio/aspect-ratio.d.ts +4 -0
  305. package/lib/aspect-ratio/aspect-ratio.js +18 -0
  306. package/lib/aspect-ratio/aspect-ratio.js.map +1 -0
  307. package/lib/aspect-ratio/index.d.ts +1 -3
  308. package/lib/aspect-ratio/index.js +2 -14
  309. package/lib/aspect-ratio/index.js.map +1 -1
  310. package/lib/back-top/back-top.d.ts +3 -0
  311. package/lib/back-top/back-top.js +83 -0
  312. package/lib/back-top/back-top.js.map +1 -0
  313. package/lib/back-top/index.d.ts +1 -2
  314. package/lib/back-top/index.js +2 -79
  315. package/lib/back-top/index.js.map +1 -1
  316. package/lib/badge/badge.d.ts +4 -0
  317. package/lib/badge/badge.js +32 -0
  318. package/lib/badge/badge.js.map +1 -0
  319. package/lib/badge/index.d.ts +1 -3
  320. package/lib/badge/index.js +2 -28
  321. package/lib/badge/index.js.map +1 -1
  322. package/lib/calendar/calendar.d.ts +4 -0
  323. package/lib/calendar/calendar.js +120 -0
  324. package/lib/calendar/calendar.js.map +1 -0
  325. package/lib/calendar/index.d.ts +1 -3
  326. package/lib/calendar/index.js +2 -116
  327. package/lib/calendar/index.js.map +1 -1
  328. package/lib/collapse-transition/collapse-transition.d.ts +10 -0
  329. package/lib/collapse-transition/collapse-transition.js +91 -0
  330. package/lib/collapse-transition/collapse-transition.js.map +1 -0
  331. package/lib/collapse-transition/index.d.ts +1 -9
  332. package/lib/collapse-transition/index.js +3 -88
  333. package/lib/collapse-transition/index.js.map +1 -1
  334. package/lib/config-provider/config-provider.d.ts +6 -0
  335. package/lib/config-provider/config-provider.js +26 -0
  336. package/lib/config-provider/config-provider.js.map +1 -0
  337. package/lib/config-provider/index.d.ts +1 -5
  338. package/lib/config-provider/index.js +2 -22
  339. package/lib/config-provider/index.js.map +1 -1
  340. package/lib/copy-to-clipboard/copy-to-clipboard.d.ts +7 -0
  341. package/lib/copy-to-clipboard/copy-to-clipboard.js +50 -0
  342. package/lib/copy-to-clipboard/copy-to-clipboard.js.map +1 -0
  343. package/lib/copy-to-clipboard/index.d.ts +1 -6
  344. package/lib/copy-to-clipboard/index.js +2 -46
  345. package/lib/copy-to-clipboard/index.js.map +1 -1
  346. package/lib/countdown/countdown.d.ts +4 -0
  347. package/lib/countdown/countdown.js +45 -0
  348. package/lib/countdown/countdown.js.map +1 -0
  349. package/lib/countdown/index.d.ts +1 -3
  350. package/lib/countdown/index.js +2 -41
  351. package/lib/countdown/index.js.map +1 -1
  352. package/lib/date-picker/date-picker.d.ts +6 -0
  353. package/lib/date-picker/date-picker.js +145 -0
  354. package/lib/date-picker/date-picker.js.map +1 -0
  355. package/lib/date-picker/index.d.ts +1 -5
  356. package/lib/date-picker/index.js +2 -141
  357. package/lib/date-picker/index.js.map +1 -1
  358. package/lib/divider/divider.d.ts +4 -0
  359. package/lib/divider/divider.js +21 -0
  360. package/lib/divider/divider.js.map +1 -0
  361. package/lib/divider/index.d.ts +1 -3
  362. package/lib/divider/index.js +2 -17
  363. package/lib/divider/index.js.map +1 -1
  364. package/lib/drawer/drawer.d.ts +4 -0
  365. package/lib/drawer/drawer.js +70 -0
  366. package/lib/drawer/drawer.js.map +1 -0
  367. package/lib/drawer/index.d.ts +1 -3
  368. package/lib/drawer/index.js +2 -66
  369. package/lib/drawer/index.js.map +1 -1
  370. package/lib/drawer/style/_index.scss +4 -0
  371. package/lib/dropdown/dropdown.d.ts +6 -0
  372. package/lib/dropdown/dropdown.js +104 -0
  373. package/lib/dropdown/dropdown.js.map +1 -0
  374. package/lib/dropdown/index.d.ts +1 -5
  375. package/lib/dropdown/index.js +2 -100
  376. package/lib/dropdown/index.js.map +1 -1
  377. package/lib/empty/empty.d.ts +4 -0
  378. package/lib/empty/empty.js +31 -0
  379. package/lib/empty/empty.js.map +1 -0
  380. package/lib/empty/index.d.ts +1 -3
  381. package/lib/empty/index.js +2 -27
  382. package/lib/empty/index.js.map +1 -1
  383. package/lib/flex/flex.d.ts +4 -0
  384. package/lib/flex/flex.js +32 -0
  385. package/lib/flex/flex.js.map +1 -0
  386. package/lib/flex/index.d.ts +1 -3
  387. package/lib/flex/index.js +2 -28
  388. package/lib/flex/index.js.map +1 -1
  389. package/lib/grid/types.d.ts +1 -1
  390. package/lib/icon/icon.d.ts +4 -0
  391. package/lib/icon/icon.js +20 -0
  392. package/lib/icon/icon.js.map +1 -0
  393. package/lib/icon/index.d.ts +1 -3
  394. package/lib/icon/index.js +2 -16
  395. package/lib/icon/index.js.map +1 -1
  396. package/lib/image/image.d.ts +6 -0
  397. package/lib/image/image.js +37 -0
  398. package/lib/image/image.js.map +1 -0
  399. package/lib/image/index.d.ts +1 -5
  400. package/lib/image/index.js +2 -33
  401. package/lib/image/index.js.map +1 -1
  402. package/lib/input-number/index.d.ts +1 -3
  403. package/lib/input-number/index.js +2 -61
  404. package/lib/input-number/index.js.map +1 -1
  405. package/lib/input-number/input-number.d.ts +4 -0
  406. package/lib/input-number/input-number.js +65 -0
  407. package/lib/input-number/input-number.js.map +1 -0
  408. package/lib/input-password/index.d.ts +1 -2
  409. package/lib/input-password/index.js +2 -20
  410. package/lib/input-password/index.js.map +1 -1
  411. package/lib/input-password/input-password.d.ts +3 -0
  412. package/lib/input-password/input-password.js +24 -0
  413. package/lib/input-password/input-password.js.map +1 -0
  414. package/lib/intl-provider/index.d.ts +1 -7
  415. package/lib/intl-provider/index.js +2 -7
  416. package/lib/intl-provider/index.js.map +1 -1
  417. package/lib/intl-provider/intl-provider.d.ts +8 -0
  418. package/lib/intl-provider/intl-provider.js +11 -0
  419. package/lib/intl-provider/intl-provider.js.map +1 -0
  420. package/lib/keyboard/index.d.ts +1 -3
  421. package/lib/keyboard/index.js +2 -14
  422. package/lib/keyboard/index.js.map +1 -1
  423. package/lib/keyboard/keyboard.d.ts +4 -0
  424. package/lib/keyboard/keyboard.js +18 -0
  425. package/lib/keyboard/keyboard.js.map +1 -0
  426. package/lib/link/index.d.ts +1 -6
  427. package/lib/link/index.js +2 -20
  428. package/lib/link/index.js.map +1 -1
  429. package/lib/link/link.d.ts +7 -0
  430. package/lib/link/link.js +24 -0
  431. package/lib/link/link.js.map +1 -0
  432. package/lib/list/list.js +2 -4
  433. package/lib/list/list.js.map +1 -1
  434. package/lib/list/style/_index.scss +0 -31
  435. package/lib/list/types.d.ts +2 -1
  436. package/lib/loader/index.d.ts +1 -3
  437. package/lib/loader/index.js +2 -24
  438. package/lib/loader/index.js.map +1 -1
  439. package/lib/loader/loader.d.ts +4 -0
  440. package/lib/loader/loader.js +28 -0
  441. package/lib/loader/loader.js.map +1 -0
  442. package/lib/message/index.d.ts +2 -9
  443. package/lib/message/index.js +2 -62
  444. package/lib/message/index.js.map +1 -1
  445. package/lib/message/message-container.d.ts +10 -0
  446. package/lib/message/message-container.js +66 -0
  447. package/lib/message/message-container.js.map +1 -0
  448. package/lib/modal/index.d.ts +1 -3
  449. package/lib/modal/index.js +2 -81
  450. package/lib/modal/index.js.map +1 -1
  451. package/lib/modal/modal.d.ts +4 -0
  452. package/lib/modal/modal.js +85 -0
  453. package/lib/modal/modal.js.map +1 -0
  454. package/lib/modal/style/_index.scss +2 -1
  455. package/lib/notification/index.d.ts +1 -1
  456. package/lib/notification/index.js +2 -73
  457. package/lib/notification/index.js.map +1 -1
  458. package/lib/notification/notification-container.d.ts +2 -0
  459. package/lib/notification/notification-container.js +77 -0
  460. package/lib/notification/notification-container.js.map +1 -0
  461. package/lib/overlay/index.d.ts +1 -5
  462. package/lib/overlay/index.js +2 -25
  463. package/lib/overlay/index.js.map +1 -1
  464. package/lib/overlay/overlay.d.ts +6 -0
  465. package/lib/overlay/overlay.js +29 -0
  466. package/lib/overlay/overlay.js.map +1 -0
  467. package/lib/pagination/index.d.ts +1 -2
  468. package/lib/pagination/index.js +2 -115
  469. package/lib/pagination/index.js.map +1 -1
  470. package/lib/pagination/pagination.d.ts +3 -0
  471. package/lib/pagination/pagination.js +119 -0
  472. package/lib/pagination/pagination.js.map +1 -0
  473. package/lib/pop-confirm/index.d.ts +1 -5
  474. package/lib/pop-confirm/index.js +2 -34
  475. package/lib/pop-confirm/index.js.map +1 -1
  476. package/lib/pop-confirm/pop-confirm.d.ts +6 -0
  477. package/lib/pop-confirm/pop-confirm.js +38 -0
  478. package/lib/pop-confirm/pop-confirm.js.map +1 -0
  479. package/lib/popover/index.d.ts +1 -3
  480. package/lib/popover/index.js +2 -16
  481. package/lib/popover/index.js.map +1 -1
  482. package/lib/popover/popover.d.ts +4 -0
  483. package/lib/popover/popover.js +20 -0
  484. package/lib/popover/popover.js.map +1 -0
  485. package/lib/popup/index.d.ts +1 -2
  486. package/lib/popup/index.js +2 -195
  487. package/lib/popup/index.js.map +1 -1
  488. package/lib/popup/popup.d.ts +3 -0
  489. package/lib/popup/popup.js +199 -0
  490. package/lib/popup/popup.js.map +1 -0
  491. package/lib/portal/index.d.ts +1 -6
  492. package/lib/portal/index.js +2 -6
  493. package/lib/portal/index.js.map +1 -1
  494. package/lib/portal/portal.d.ts +7 -0
  495. package/lib/portal/portal.js +10 -0
  496. package/lib/portal/portal.js.map +1 -0
  497. package/lib/rate/index.d.ts +1 -3
  498. package/lib/rate/index.js +2 -68
  499. package/lib/rate/index.js.map +1 -1
  500. package/lib/rate/rate.d.ts +4 -0
  501. package/lib/rate/rate.js +72 -0
  502. package/lib/rate/rate.js.map +1 -0
  503. package/lib/result/index.d.ts +1 -3
  504. package/lib/result/index.js +2 -36
  505. package/lib/result/index.js.map +1 -1
  506. package/lib/result/result.d.ts +4 -0
  507. package/lib/result/result.js +40 -0
  508. package/lib/result/result.js.map +1 -0
  509. package/lib/scroll-indicator/index.d.ts +1 -6
  510. package/lib/scroll-indicator/index.js +2 -37
  511. package/lib/scroll-indicator/index.js.map +1 -1
  512. package/lib/scroll-indicator/scroll-indicator.d.ts +7 -0
  513. package/lib/scroll-indicator/scroll-indicator.js +41 -0
  514. package/lib/scroll-indicator/scroll-indicator.js.map +1 -0
  515. package/lib/skeleton/index.d.ts +1 -3
  516. package/lib/skeleton/index.js +2 -17
  517. package/lib/skeleton/index.js.map +1 -1
  518. package/lib/skeleton/skeleton.d.ts +4 -0
  519. package/lib/skeleton/skeleton.js +21 -0
  520. package/lib/skeleton/skeleton.js.map +1 -0
  521. package/lib/slider/index.d.ts +1 -3
  522. package/lib/slider/index.js +2 -246
  523. package/lib/slider/index.js.map +1 -1
  524. package/lib/slider/slider.d.ts +4 -0
  525. package/lib/slider/slider.js +250 -0
  526. package/lib/slider/slider.js.map +1 -0
  527. package/lib/space/index.d.ts +1 -3
  528. package/lib/space/index.js +2 -28
  529. package/lib/space/index.js.map +1 -1
  530. package/lib/space/space.d.ts +4 -0
  531. package/lib/space/space.js +32 -0
  532. package/lib/space/space.js.map +1 -0
  533. package/lib/split-button/index.d.ts +1 -6
  534. package/lib/split-button/index.js +2 -18
  535. package/lib/split-button/index.js.map +1 -1
  536. package/lib/split-button/split-button.d.ts +7 -0
  537. package/lib/split-button/split-button.js +22 -0
  538. package/lib/split-button/split-button.js.map +1 -0
  539. package/lib/sticky/index.d.ts +1 -5
  540. package/lib/sticky/index.js +2 -126
  541. package/lib/sticky/index.js.map +1 -1
  542. package/lib/sticky/sticky.d.ts +6 -0
  543. package/lib/sticky/sticky.js +130 -0
  544. package/lib/sticky/sticky.js.map +1 -0
  545. package/lib/strength-indicator/index.d.ts +1 -3
  546. package/lib/strength-indicator/index.js +2 -23
  547. package/lib/strength-indicator/index.js.map +1 -1
  548. package/lib/strength-indicator/strength-indicator.d.ts +4 -0
  549. package/lib/strength-indicator/strength-indicator.js +27 -0
  550. package/lib/strength-indicator/strength-indicator.js.map +1 -0
  551. package/lib/style/_theme.scss +3 -3
  552. package/lib/style/index.css +8 -64
  553. package/lib/switch/index.d.ts +1 -3
  554. package/lib/switch/index.js +2 -36
  555. package/lib/switch/index.js.map +1 -1
  556. package/lib/switch/switch.d.ts +4 -0
  557. package/lib/switch/switch.js +40 -0
  558. package/lib/switch/switch.js.map +1 -0
  559. package/lib/table/style/_index.scss +0 -38
  560. package/lib/table/table.js +2 -4
  561. package/lib/table/table.js.map +1 -1
  562. package/lib/table/types.d.ts +2 -1
  563. package/lib/textarea/index.d.ts +1 -3
  564. package/lib/textarea/index.js +2 -26
  565. package/lib/textarea/index.js.map +1 -1
  566. package/lib/textarea/textarea.d.ts +4 -0
  567. package/lib/textarea/textarea.js +30 -0
  568. package/lib/textarea/textarea.js.map +1 -0
  569. package/lib/tooltip/index.d.ts +1 -3
  570. package/lib/tooltip/index.js +2 -16
  571. package/lib/tooltip/index.js.map +1 -1
  572. package/lib/tooltip/tooltip.d.ts +4 -0
  573. package/lib/tooltip/tooltip.js +20 -0
  574. package/lib/tooltip/tooltip.js.map +1 -0
  575. package/lib/transition/index.d.ts +2 -16
  576. package/lib/transition/index.js +3 -8
  577. package/lib/transition/index.js.map +1 -1
  578. package/lib/transition/transition.d.ts +17 -0
  579. package/lib/transition/transition.js +11 -0
  580. package/lib/transition/transition.js.map +1 -0
  581. package/package.json +3 -2
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("react");
5
+ const COLLAPSE_DURATION = 250;
6
+ const CollapseTransition = (props) => {
7
+ const { isShow, children } = props;
8
+ const leaveTimerRef = (0, react_1.useRef)(null);
9
+ const enterTimerRef = (0, react_1.useRef)(null);
10
+ const ref = (0, react_1.useRef)(null);
11
+ const beforeEnter = (0, react_1.useCallback)(() => {
12
+ const el = ref.current;
13
+ if (el) {
14
+ el.style.display = 'block';
15
+ el.style.height = '0px';
16
+ }
17
+ }, []);
18
+ const afterEnter = (0, react_1.useCallback)(() => {
19
+ const el = ref.current;
20
+ if (el) {
21
+ el.style.display = 'block';
22
+ el.style.height = '';
23
+ }
24
+ }, []);
25
+ const enter = (0, react_1.useCallback)(() => {
26
+ const el = ref.current;
27
+ if (el) {
28
+ if (el.scrollHeight !== 0) {
29
+ el.style.height = el.scrollHeight + 'px';
30
+ }
31
+ else {
32
+ el.style.height = '';
33
+ }
34
+ enterTimerRef.current = window.setTimeout(() => afterEnter(), COLLAPSE_DURATION);
35
+ }
36
+ }, [afterEnter]);
37
+ const beforeLeave = (0, react_1.useCallback)(() => {
38
+ const el = ref.current;
39
+ if (el) {
40
+ el.style.display = 'block';
41
+ if (el.scrollHeight !== 0) {
42
+ el.style.height = el.scrollHeight + 'px';
43
+ }
44
+ }
45
+ }, []);
46
+ const afterLeave = (0, react_1.useCallback)(() => {
47
+ const el = ref.current;
48
+ if (el) {
49
+ el.style.display = 'none';
50
+ el.style.height = '';
51
+ }
52
+ }, []);
53
+ const leave = (0, react_1.useCallback)(() => {
54
+ const el = ref.current;
55
+ if (el) {
56
+ if (el.scrollHeight !== 0) {
57
+ el.style.height = '0px';
58
+ }
59
+ leaveTimerRef.current = window.setTimeout(() => afterLeave(), COLLAPSE_DURATION);
60
+ }
61
+ }, [afterLeave]);
62
+ const triggerChange = (0, react_1.useCallback)((isCollapsed) => {
63
+ const enterTimer = enterTimerRef.current;
64
+ const leaveTimer = leaveTimerRef.current;
65
+ enterTimer && window.clearTimeout(enterTimer);
66
+ leaveTimer && window.clearTimeout(leaveTimer);
67
+ if (isCollapsed) {
68
+ beforeEnter();
69
+ enter();
70
+ }
71
+ else {
72
+ beforeLeave();
73
+ leave();
74
+ }
75
+ }, [enter, leave, beforeEnter, beforeLeave]);
76
+ (0, react_1.useEffect)(() => {
77
+ beforeEnter();
78
+ enter();
79
+ return () => {
80
+ beforeLeave();
81
+ leave();
82
+ };
83
+ }, [enter, leave, beforeEnter, beforeLeave]);
84
+ (0, react_1.useEffect)(() => {
85
+ triggerChange(isShow);
86
+ }, [isShow, triggerChange]);
87
+ return ((0, jsx_runtime_1.jsx)("div", { className: "ty-collapse-transition", ref: ref, children: children }));
88
+ };
89
+ CollapseTransition.displayName = 'CollapseTransition';
90
+ exports.default = CollapseTransition;
91
+ //# sourceMappingURL=collapse-transition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapse-transition.js","sourceRoot":"","sources":["../../components/collapse-transition/collapse-transition.tsx"],"names":[],"mappings":";;;AAAA,iCAA8D;AAO9D,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAe,EAAE;IACzE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,K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,EAAE;QAC7B,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,CAAC;QACzC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,CAAC;QACzC,UAAU,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC9C,UAAU,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,WAAW,EAAE,CAAC;YAChB,WAAW,EAAE,CAAC;YACd,KAAK,EAAE,CAAC;QACV,CAAC;aAAM,CAAC;YACN,WAAW,EAAE,CAAC;YACd,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC,EACD,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CACzC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,CAAC;QAER,OAAO,GAAG,EAAE;YACV,WAAW,EAAE,CAAC;YACd,KAAK,EAAE,CAAC;QACV,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;IAE7C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,aAAa,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAE5B,OAAO,CACL,gCAAK,SAAS,EAAC,wBAAwB,EAAC,GAAG,EAAE,GAAG,YAC7C,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,kBAAe,kBAAkB,CAAC"}
@@ -1,10 +1,2 @@
1
- import React from 'react';
2
- type CollapseTransitionProps = {
3
- isShow: boolean;
4
- children: React.ReactNode;
5
- };
6
- declare const CollapseTransition: {
7
- (props: CollapseTransitionProps): JSX.Element;
8
- displayName: string;
9
- };
1
+ import CollapseTransition from './collapse-transition';
10
2
  export default CollapseTransition;
@@ -1,91 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const COLLAPSE_DURATION = 250;
6
- const CollapseTransition = (props) => {
7
- const { isShow, children } = props;
8
- const leaveTimerRef = (0, react_1.useRef)(null);
9
- const enterTimerRef = (0, react_1.useRef)(null);
10
- const ref = (0, react_1.useRef)(null);
11
- const beforeEnter = (0, react_1.useCallback)(() => {
12
- const el = ref.current;
13
- if (el) {
14
- el.style.display = 'block';
15
- el.style.height = '0px';
16
- }
17
- }, []);
18
- const afterEnter = (0, react_1.useCallback)(() => {
19
- const el = ref.current;
20
- if (el) {
21
- el.style.display = 'block';
22
- el.style.height = '';
23
- }
24
- }, []);
25
- const enter = (0, react_1.useCallback)(() => {
26
- const el = ref.current;
27
- if (el) {
28
- if (el.scrollHeight !== 0) {
29
- el.style.height = el.scrollHeight + 'px';
30
- }
31
- else {
32
- el.style.height = '';
33
- }
34
- enterTimerRef.current = window.setTimeout(() => afterEnter(), COLLAPSE_DURATION);
35
- }
36
- }, [afterEnter]);
37
- const beforeLeave = (0, react_1.useCallback)(() => {
38
- const el = ref.current;
39
- if (el) {
40
- el.style.display = 'block';
41
- if (el.scrollHeight !== 0) {
42
- el.style.height = el.scrollHeight + 'px';
43
- }
44
- }
45
- }, []);
46
- const afterLeave = (0, react_1.useCallback)(() => {
47
- const el = ref.current;
48
- if (el) {
49
- el.style.display = 'none';
50
- el.style.height = '';
51
- }
52
- }, []);
53
- const leave = (0, react_1.useCallback)(() => {
54
- const el = ref.current;
55
- if (el) {
56
- if (el.scrollHeight !== 0) {
57
- el.style.height = '0px';
58
- }
59
- leaveTimerRef.current = window.setTimeout(() => afterLeave(), COLLAPSE_DURATION);
60
- }
61
- }, [afterLeave]);
62
- const triggerChange = (0, react_1.useCallback)((isCollapsed) => {
63
- const enterTimer = enterTimerRef.current;
64
- const leaveTimer = leaveTimerRef.current;
65
- enterTimer && window.clearTimeout(enterTimer);
66
- leaveTimer && window.clearTimeout(leaveTimer);
67
- if (isCollapsed) {
68
- beforeEnter();
69
- enter();
70
- }
71
- else {
72
- beforeLeave();
73
- leave();
74
- }
75
- }, [enter, leave, beforeEnter, beforeLeave]);
76
- (0, react_1.useEffect)(() => {
77
- beforeEnter();
78
- enter();
79
- return () => {
80
- beforeLeave();
81
- leave();
82
- };
83
- }, [enter, leave, beforeEnter, beforeLeave]);
84
- (0, react_1.useEffect)(() => {
85
- triggerChange(isShow);
86
- }, [isShow, triggerChange]);
87
- return ((0, jsx_runtime_1.jsx)("div", { className: "ty-collapse-transition", ref: ref, children: children }));
88
- };
89
- CollapseTransition.displayName = 'CollapseTransition';
90
- exports.default = CollapseTransition;
3
+ const tslib_1 = require("tslib");
4
+ const collapse_transition_1 = tslib_1.__importDefault(require("./collapse-transition"));
5
+ exports.default = collapse_transition_1.default;
91
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/collapse-transition/index.tsx"],"names":[],"mappings":";;;AAAA,iCAA8D;AAO9D,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAe,EAAE;IACzE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,aAAa,GAAG,IAAA,cAAM,EAAgB,IAAI,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,IAAA,cAAM,EAAgB,IAAI,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAS,EAAE;QACzC,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,EAAE,EAAE,CAAC;YACP,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO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V,CAAC;IACH,CAAC,EACD,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CACzC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,CAAC;QAER,OAAO,GAAG,EAAE;YACV,WAAW,EAAE,CAAC;YACd,KAAK,EAAE,CAAC;QACV,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;IAE7C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,aAAa,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAE5B,OAAO,CACL,gCAAK,SAAS,EAAC,wBAAwB,EAAC,GAAG,EAAE,GAAG,YAC7C,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,kBAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/collapse-transition/index.tsx"],"names":[],"mappings":";;;AAAA,wFAAuD;AAEvD,kBAAe,6BAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ConfigProviderProps } from './types';
2
+ declare const ConfigProvider: {
3
+ (props: ConfigProviderProps): JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default ConfigProvider;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const config_context_1 = require("./config-context");
7
+ const intl_provider_1 = tslib_1.__importDefault(require("../intl-provider"));
8
+ const ConfigProvider = (props) => {
9
+ const { children, theme, locale, ...otherProps } = props;
10
+ (0, react_1.useEffect)(() => {
11
+ if (!theme)
12
+ return;
13
+ const html = document.documentElement;
14
+ if (theme === 'system') {
15
+ html.removeAttribute('data-theme');
16
+ }
17
+ else {
18
+ html.setAttribute('data-theme', theme);
19
+ }
20
+ }, [theme]);
21
+ const content = locale ? ((0, jsx_runtime_1.jsx)(intl_provider_1.default, { locale: locale, children: children })) : (children);
22
+ return ((0, jsx_runtime_1.jsx)(config_context_1.ConfigContext.Provider, { value: { theme, locale, ...otherProps }, children: content }));
23
+ };
24
+ ConfigProvider.displayName = 'ConfigProvider';
25
+ exports.default = ConfigProvider;
26
+ //# sourceMappingURL=config-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-provider.js","sourceRoot":"","sources":["../../components/config-provider/config-provider.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAClC,qDAAiD;AAEjD,6EAA4C;AAE5C,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAe,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAEzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;YACvB,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,uBAAY,IAAC,MAAM,EAAE,MAAM,YAAG,QAAQ,GAAgB,CACxD,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CAAC;IAEF,OAAO,CACL,uBAAC,8BAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,YAC5D,OAAO,GACe,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,kBAAe,cAAc,CAAC"}
@@ -1,6 +1,2 @@
1
- import { ConfigProviderProps } from './types';
2
- declare const ConfigProvider: {
3
- (props: ConfigProviderProps): JSX.Element;
4
- displayName: string;
5
- };
1
+ import ConfigProvider from './config-provider';
6
2
  export default ConfigProvider;
@@ -1,26 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const config_context_1 = require("./config-context");
7
- const intl_provider_1 = tslib_1.__importDefault(require("../intl-provider"));
8
- const ConfigProvider = (props) => {
9
- const { children, theme, locale, ...otherProps } = props;
10
- (0, react_1.useEffect)(() => {
11
- if (!theme)
12
- return;
13
- const html = document.documentElement;
14
- if (theme === 'system') {
15
- html.removeAttribute('data-theme');
16
- }
17
- else {
18
- html.setAttribute('data-theme', theme);
19
- }
20
- }, [theme]);
21
- const content = locale ? ((0, jsx_runtime_1.jsx)(intl_provider_1.default, { locale: locale, children: children })) : (children);
22
- return ((0, jsx_runtime_1.jsx)(config_context_1.ConfigContext.Provider, { value: { theme, locale, ...otherProps }, children: content }));
23
- };
24
- ConfigProvider.displayName = 'ConfigProvider';
25
- exports.default = ConfigProvider;
4
+ const config_provider_1 = tslib_1.__importDefault(require("./config-provider"));
5
+ exports.default = config_provider_1.default;
26
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/config-provider/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAClC,qDAAiD;AAEjD,6EAA4C;AAE5C,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAe,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAEzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;YACvB,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,uBAAY,IAAC,MAAM,EAAE,MAAM,YAAG,QAAQ,GAAgB,CACxD,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CAAC;IAEF,OAAO,CACL,uBAAC,8BAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,YAC5D,OAAO,GACe,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/config-provider/index.tsx"],"names":[],"mappings":";;;AAAA,gFAA+C;AAE/C,kBAAe,yBAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CopyToClipboardProps } from './types';
3
+ declare const CopyToClipboard: {
4
+ (props: CopyToClipboardProps): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default CopyToClipboard;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
+ const config_context_1 = require("../config-provider/config-context");
8
+ const general_1 = require("../_utils/general");
9
+ const copy = async (value) => {
10
+ if (navigator.clipboard) {
11
+ try {
12
+ await navigator.clipboard.writeText(value);
13
+ }
14
+ catch {
15
+ fallbackCopy(value);
16
+ }
17
+ }
18
+ else {
19
+ fallbackCopy(value);
20
+ }
21
+ };
22
+ const fallbackCopy = (value) => {
23
+ const textArea = document.createElement('textarea');
24
+ textArea.style.position = 'fixed';
25
+ textArea.style.opacity = '0';
26
+ textArea.value = value;
27
+ document.body.appendChild(textArea);
28
+ textArea.select();
29
+ try {
30
+ document.execCommand('copy');
31
+ }
32
+ catch {
33
+ // copy failed silently
34
+ }
35
+ document.body.removeChild(textArea);
36
+ };
37
+ const CopyToClipboard = (props) => {
38
+ const { prefixCls: customisedCls, text, className, children, onClick, ...otherProps } = props;
39
+ const configContext = (0, react_1.useContext)(config_context_1.ConfigContext);
40
+ const prefixCls = (0, general_1.getPrefixCls)('copy', configContext.prefixCls, customisedCls);
41
+ const cls = (0, classnames_1.default)(prefixCls, className);
42
+ const btnOnClick = (e) => {
43
+ copy(text);
44
+ onClick && onClick(e);
45
+ };
46
+ return ((0, jsx_runtime_1.jsx)("span", { ...otherProps, className: cls, onClick: btnOnClick, children: children }));
47
+ };
48
+ CopyToClipboard.displayName = 'CopyToClipboard';
49
+ exports.default = CopyToClipboard;
50
+ //# sourceMappingURL=copy-to-clipboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-to-clipboard.js","sourceRoot":"","sources":["../../components/copy-to-clipboard/copy-to-clipboard.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0C;AAC1C,oEAAoC;AACpC,sEAAkE;AAClE,+CAAiD;AAGjD,MAAM,IAAI,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;IACnC,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACxB,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,S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C,EAAQ,EAAE;QAChE,IAAI,CAAC,IAAI,CAAC,CAAC;QACX,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACL,oCAAU,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,YACtD,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,eAAe,CAAC"}
@@ -1,7 +1,2 @@
1
- import React from 'react';
2
- import { CopyToClipboardProps } from './types';
3
- declare const CopyToClipboard: {
4
- (props: CopyToClipboardProps): React.ReactElement;
5
- displayName: string;
6
- };
1
+ import CopyToClipboard from './copy-to-clipboard';
7
2
  export default CopyToClipboard;
@@ -1,50 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
- const config_context_1 = require("../config-provider/config-context");
8
- const general_1 = require("../_utils/general");
9
- const copy = async (value) => {
10
- if (navigator.clipboard) {
11
- try {
12
- await navigator.clipboard.writeText(value);
13
- }
14
- catch {
15
- fallbackCopy(value);
16
- }
17
- }
18
- else {
19
- fallbackCopy(value);
20
- }
21
- };
22
- const fallbackCopy = (value) => {
23
- const textArea = document.createElement('textarea');
24
- textArea.style.position = 'fixed';
25
- textArea.style.opacity = '0';
26
- textArea.value = value;
27
- document.body.appendChild(textArea);
28
- textArea.select();
29
- try {
30
- document.execCommand('copy');
31
- }
32
- catch {
33
- // copy failed silently
34
- }
35
- document.body.removeChild(textArea);
36
- };
37
- const CopyToClipboard = (props) => {
38
- const { prefixCls: customisedCls, text, className, children, onClick, ...otherProps } = props;
39
- const configContext = (0, react_1.useContext)(config_context_1.ConfigContext);
40
- const prefixCls = (0, general_1.getPrefixCls)('copy', configContext.prefixCls, customisedCls);
41
- const cls = (0, classnames_1.default)(prefixCls, className);
42
- const btnOnClick = (e) => {
43
- copy(text);
44
- onClick && onClick(e);
45
- };
46
- return ((0, jsx_runtime_1.jsx)("span", { ...otherProps, className: cls, onClick: btnOnClick, children: children }));
47
- };
48
- CopyToClipboard.displayName = 'CopyToClipboard';
49
- exports.default = CopyToClipboard;
4
+ const copy_to_clipboard_1 = tslib_1.__importDefault(require("./copy-to-clipboard"));
5
+ exports.default = copy_to_clipboard_1.default;
50
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/copy-to-clipboard/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0C;AAC1C,oEAAoC;AACpC,sEAAkE;AAClE,+CAAiD;AAGjD,MAAM,IAAI,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;IACnC,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACxB,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;SAAM,CAAC;QACN,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE;IACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACpD,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;IAC7B,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC;QACH,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,uBAAuB;IACzB,CAAC;IACD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAsB,EAAE;IAC1E,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9F,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAa,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC/E,MAAM,GAAG,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAE7C,MAAM,UAAU,GAAG,CAAC,CAAoC,EAAQ,EAAE;QAChE,IAAI,CAAC,IAAI,CAAC,CAAC;QACX,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACL,oCAAU,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,YACtD,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/copy-to-clipboard/index.tsx"],"names":[],"mappings":";;;AAAA,oFAAkD;AAElD,kBAAe,2BAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CountdownProps } from './types';
3
+ declare const Countdown: React.ForwardRefExoticComponent<CountdownProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default Countdown;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = tslib_1.__importStar(require("react"));
6
+ const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
+ const config_context_1 = require("../config-provider/config-context");
8
+ const general_1 = require("../_utils/general");
9
+ const Countdown = react_1.default.forwardRef((props, ref) => {
10
+ const { millisec = false, prefixCls: customisedCls, value, onFinish, className, style, children, } = props;
11
+ const configContext = (0, react_1.useContext)(config_context_1.ConfigContext);
12
+ const prefixCls = (0, general_1.getPrefixCls)('countdown', configContext.prefixCls, customisedCls);
13
+ const cls = (0, classnames_1.default)(prefixCls, className);
14
+ const [date, setDate] = (0, react_1.useState)({ day: 0, hour: 0, min: 0, sec: 0, millisec: 0 });
15
+ const timerRef = (0, react_1.useRef)();
16
+ const startInterval = (0, react_1.useCallback)(() => {
17
+ timerRef.current = window.setInterval(() => {
18
+ const distance = value.getTime() - Date.now();
19
+ // when the count down finished
20
+ if (distance < 0) {
21
+ window.clearInterval(timerRef.current);
22
+ setDate({ day: 0, hour: 0, min: 0, sec: 0, millisec: 0 });
23
+ onFinish && onFinish();
24
+ return;
25
+ }
26
+ // calculate the specific time
27
+ const day = Math.floor(distance / 86400000);
28
+ const hour = Math.floor((distance % 86400000) / 3600000);
29
+ const min = Math.floor((distance % 3600000) / 60000);
30
+ const sec = Math.floor((distance % 60000) / 1000);
31
+ const millisecond = Math.floor((distance % 60000) % 1000);
32
+ setDate({ day, hour, min, sec, millisec: millisecond });
33
+ }, millisec ? 1 : 1000);
34
+ }, [millisec, onFinish, value]);
35
+ (0, react_1.useEffect)(() => {
36
+ value && startInterval();
37
+ return () => {
38
+ window.clearInterval(timerRef.current);
39
+ };
40
+ }, [value, startInterval]);
41
+ return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: cls, style: style, role: "timer", "aria-live": "polite", children: typeof children === 'function' && children(date) }));
42
+ });
43
+ Countdown.displayName = 'Countdown';
44
+ exports.default = Countdown;
45
+ //# sourceMappingURL=countdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countdown.js","sourceRoot":"","sources":["../../components/countdown/countdown.tsx"],"names":[],"mappings":";;;;AAAA,uDAAoF;AACpF,oEAAoC;AACpC,sEAAkE;AAClE,+CAAiD;AAGjD,MAAM,SAAS,GAAG,eAAK,CAAC,UAAU,CAAiC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAChF,MAAM,EACJ,QAAQ,GAAG,KAAK,EAChB,SAAS,EAAE,aAAa,EACxB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAa,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,WAAW,EAAE,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACpF,MAAM,GAAG,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAW,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7F,MAAM,QAAQ,GAAG,IAAA,cAAM,GAAU,CAAC;IAElC,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,GAAS,EAAE;QAC3C,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,WAAW,CACnC,GAAG,EAAE;YACH,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAE9C,+BAA+B;YAC/B,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;gBACjB,MAAM,CAAC,aAAa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C,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,gCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,eAAW,QAAQ,YACzE,OAAO,QAAQ,KAAK,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,GAC7C,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
@@ -1,4 +1,2 @@
1
- import React from 'react';
2
- import { CountdownProps } from './types';
3
- declare const Countdown: React.ForwardRefExoticComponent<CountdownProps & React.RefAttributes<HTMLDivElement>>;
1
+ import Countdown from './countdown';
4
2
  export default Countdown;
@@ -1,45 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = tslib_1.__importStar(require("react"));
6
- const classnames_1 = tslib_1.__importDefault(require("classnames"));
7
- const config_context_1 = require("../config-provider/config-context");
8
- const general_1 = require("../_utils/general");
9
- const Countdown = react_1.default.forwardRef((props, ref) => {
10
- const { millisec = false, prefixCls: customisedCls, value, onFinish, className, style, children, } = props;
11
- const configContext = (0, react_1.useContext)(config_context_1.ConfigContext);
12
- const prefixCls = (0, general_1.getPrefixCls)('countdown', configContext.prefixCls, customisedCls);
13
- const cls = (0, classnames_1.default)(prefixCls, className);
14
- const [date, setDate] = (0, react_1.useState)({ day: 0, hour: 0, min: 0, sec: 0, millisec: 0 });
15
- const timerRef = (0, react_1.useRef)();
16
- const startInterval = (0, react_1.useCallback)(() => {
17
- timerRef.current = window.setInterval(() => {
18
- const distance = value.getTime() - Date.now();
19
- // when the count down finished
20
- if (distance < 0) {
21
- window.clearInterval(timerRef.current);
22
- setDate({ day: 0, hour: 0, min: 0, sec: 0, millisec: 0 });
23
- onFinish && onFinish();
24
- return;
25
- }
26
- // calculate the specific time
27
- const day = Math.floor(distance / 86400000);
28
- const hour = Math.floor((distance % 86400000) / 3600000);
29
- const min = Math.floor((distance % 3600000) / 60000);
30
- const sec = Math.floor((distance % 60000) / 1000);
31
- const millisecond = Math.floor((distance % 60000) % 1000);
32
- setDate({ day, hour, min, sec, millisec: millisecond });
33
- }, millisec ? 1 : 1000);
34
- }, [millisec, onFinish, value]);
35
- (0, react_1.useEffect)(() => {
36
- value && startInterval();
37
- return () => {
38
- window.clearInterval(timerRef.current);
39
- };
40
- }, [value, startInterval]);
41
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: cls, style: style, role: "timer", "aria-live": "polite", children: typeof children === 'function' && children(date) }));
42
- });
43
- Countdown.displayName = 'Countdown';
44
- exports.default = Countdown;
4
+ const countdown_1 = tslib_1.__importDefault(require("./countdown"));
5
+ exports.default = countdown_1.default;
45
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/countdown/index.tsx"],"names":[],"mappings":";;;;AAAA,uDAAoF;AACpF,oEAAoC;AACpC,sEAAkE;AAClE,+CAAiD;AAGjD,MAAM,SAAS,GAAG,eAAK,CAAC,UAAU,CAAiC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAChF,MAAM,EACJ,QAAQ,GAAG,KAAK,EAChB,SAAS,EAAE,aAAa,EACxB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAa,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,WAAW,EAAE,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACpF,MAAM,GAAG,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,CAAC,I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CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAC1D,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;QAC1D,CAAC,EACD,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACpB,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAEhC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,KAAK,IAAI,aAAa,EAAE,CAAC;QAEzB,OAAO,GAAS,EAAE;YAChB,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,gCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,eAAW,QAAQ,YACzE,OAAO,QAAQ,KAAK,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,GAC7C,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/countdown/index.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AAEpC,kBAAe,mBAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DatePickerProps } from './types';
2
+ declare const DatePicker: {
3
+ (props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default DatePicker;