@tendaui/react 1.2.4 → 1.3.1

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 (759) hide show
  1. package/es/_chunks/dep--nQ-cjme.js +45 -0
  2. package/es/_chunks/dep--nQ-cjme.js.map +1 -0
  3. package/es/_chunks/{dep-DTlQ2dCA.js → dep--qagmRQa.js} +2 -2
  4. package/es/_chunks/{dep-DTlQ2dCA.js.map → dep--qagmRQa.js.map} +1 -1
  5. package/es/_chunks/{dep-Dr5wkz0z.js → dep--svkhMCP.js} +12 -12
  6. package/es/_chunks/{dep-Dr5wkz0z.js.map → dep--svkhMCP.js.map} +1 -1
  7. package/es/_chunks/{dep-Bjfn7Zv_.js → dep-2HsCYcmp.js} +5 -5
  8. package/es/_chunks/{dep-Bjfn7Zv_.js.map → dep-2HsCYcmp.js.map} +1 -1
  9. package/es/_chunks/{dep-CkmtEv0Y.js → dep-B2D1svZy.js} +4 -2
  10. package/es/_chunks/dep-B2D1svZy.js.map +1 -0
  11. package/es/_chunks/{dep-BuIAffJt.js → dep-BI5F2D3y.js} +23 -13
  12. package/es/_chunks/dep-BI5F2D3y.js.map +1 -0
  13. package/es/_chunks/dep-BK4_iOSv.js +68 -0
  14. package/es/_chunks/dep-BK4_iOSv.js.map +1 -0
  15. package/es/_chunks/{dep-BYlJzn45.js → dep-BOj-ayw6.js} +26 -26
  16. package/es/_chunks/{dep-BYlJzn45.js.map → dep-BOj-ayw6.js.map} +1 -1
  17. package/es/_chunks/{dep-D68MD94M.js → dep-BZdpKjaa.js} +18 -18
  18. package/es/_chunks/{dep-D68MD94M.js.map → dep-BZdpKjaa.js.map} +1 -1
  19. package/es/_chunks/{dep-aX8qrQpB.js → dep-BbOvNxhg.js} +4 -4
  20. package/es/_chunks/{dep-aX8qrQpB.js.map → dep-BbOvNxhg.js.map} +1 -1
  21. package/es/_chunks/{dep-oUgTcXgm.js → dep-Blkje0_M.js} +2 -2
  22. package/es/_chunks/{dep-oUgTcXgm.js.map → dep-Blkje0_M.js.map} +1 -1
  23. package/es/_chunks/{dep-DJmE940f.js → dep-CHpQ3xhh.js} +2 -2
  24. package/es/_chunks/dep-CHpQ3xhh.js.map +1 -0
  25. package/es/_chunks/{dep-DX65P8M9.js → dep-CPjkUfQu.js} +2 -2
  26. package/es/_chunks/{dep-DX65P8M9.js.map → dep-CPjkUfQu.js.map} +1 -1
  27. package/es/_chunks/dep-CSzOEACo.js +165 -0
  28. package/es/_chunks/dep-CSzOEACo.js.map +1 -0
  29. package/es/_chunks/{dep-CJCt0IS0.js → dep-Cd1UOXnJ.js} +14 -14
  30. package/es/_chunks/{dep-CJCt0IS0.js.map → dep-Cd1UOXnJ.js.map} +1 -1
  31. package/es/_chunks/{dep-DQ6kXoi8.js → dep-DHWwZ2Nj.js} +2 -2
  32. package/es/_chunks/{dep-DQ6kXoi8.js.map → dep-DHWwZ2Nj.js.map} +1 -1
  33. package/es/_chunks/{dep-Tshfumgl.js → dep-DYFbjXzW.js} +2 -2
  34. package/es/_chunks/{dep-Tshfumgl.js.map → dep-DYFbjXzW.js.map} +1 -1
  35. package/es/_chunks/{dep-C_wPqvpm.js → dep-D_qcGLah.js} +2 -2
  36. package/es/_chunks/{dep-C_wPqvpm.js.map → dep-D_qcGLah.js.map} +1 -1
  37. package/es/_chunks/{dep-CsSvR9wN.js → dep-DfsP8eqT.js} +21 -21
  38. package/es/_chunks/{dep-CsSvR9wN.js.map → dep-DfsP8eqT.js.map} +1 -1
  39. package/es/_chunks/dep-Dl5DFuGU.js +2001 -0
  40. package/es/_chunks/dep-Dl5DFuGU.js.map +1 -0
  41. package/es/_chunks/{dep-DURB9x8g.js → dep-Dnwq3YvL.js} +36 -21
  42. package/es/_chunks/dep-Dnwq3YvL.js.map +1 -0
  43. package/es/_chunks/{dep-B4_O1Vgv.js → dep-Dr3i7zFt.js} +12 -12
  44. package/es/_chunks/{dep-B4_O1Vgv.js.map → dep-Dr3i7zFt.js.map} +1 -1
  45. package/es/_chunks/{dep-CD_4-1Xb.js → dep-UHQn9biR.js} +5 -5
  46. package/es/_chunks/dep-UHQn9biR.js.map +1 -0
  47. package/es/_chunks/{dep-ByzdZjUR.js → dep-bWaVq_y3.js} +2 -2
  48. package/es/_chunks/{dep-ByzdZjUR.js.map → dep-bWaVq_y3.js.map} +1 -1
  49. package/es/_chunks/{dep-DwWrhxkd.js → dep-grkSd2UB.js} +3 -3
  50. package/es/_chunks/{dep-DwWrhxkd.js.map → dep-grkSd2UB.js.map} +1 -1
  51. package/es/_chunks/{dep-CMPsNAXF.js → dep-hCWFQAqL.js} +15 -9
  52. package/es/_chunks/dep-hCWFQAqL.js.map +1 -0
  53. package/es/_chunks/{dep-D6YxJv-F.js → dep-spxR0DG0.js} +3 -3
  54. package/es/_chunks/{dep-D6YxJv-F.js.map → dep-spxR0DG0.js.map} +1 -1
  55. package/es/_chunks/{dep-gy8uvBaS.js → dep-u1x3x6MJ.js} +2 -2
  56. package/es/_chunks/{dep-gy8uvBaS.js.map → dep-u1x3x6MJ.js.map} +1 -1
  57. package/es/alert/Alert.js +25 -24
  58. package/es/alert/Alert.js.map +1 -1
  59. package/es/alert/_example/base.js +27 -0
  60. package/es/alert/_example/base.js.map +1 -0
  61. package/es/alert/_example/collapse.js +14 -0
  62. package/es/alert/_example/collapse.js.map +1 -0
  63. package/es/alert/index.js +6 -5
  64. package/es/alert/index.js.map +1 -1
  65. package/es/badge/Badge.js +6 -5
  66. package/es/badge/Badge.js.map +1 -1
  67. package/es/badge/_example/base.js +11 -0
  68. package/es/badge/_example/base.js.map +1 -0
  69. package/es/badge/_example/count.js +38 -0
  70. package/es/badge/_example/count.js.map +1 -0
  71. package/es/badge/_example/custom-color.js +48 -0
  72. package/es/badge/_example/custom-color.js.map +1 -0
  73. package/es/badge/_example/dot.js +36 -0
  74. package/es/badge/_example/dot.js.map +1 -0
  75. package/es/badge/_example/max-count.js +37 -0
  76. package/es/badge/_example/max-count.js.map +1 -0
  77. package/es/badge/_example/offset.js +41 -0
  78. package/es/badge/_example/offset.js.map +1 -0
  79. package/es/badge/_example/shape.js +47 -0
  80. package/es/badge/_example/shape.js.map +1 -0
  81. package/es/badge/_example/show-zero.js +31 -0
  82. package/es/badge/_example/show-zero.js.map +1 -0
  83. package/es/badge/_example/size.js +54 -0
  84. package/es/badge/_example/size.js.map +1 -0
  85. package/es/badge/_example/standalone.js +27 -0
  86. package/es/badge/_example/standalone.js.map +1 -0
  87. package/es/badge/_example/text-count.js +32 -0
  88. package/es/badge/_example/text-count.js.map +1 -0
  89. package/es/badge/_example/with-button.js +33 -0
  90. package/es/badge/_example/with-button.js.map +1 -0
  91. package/es/badge/index.js +3 -2
  92. package/es/badge/index.js.map +1 -1
  93. package/es/button/Button.js +10 -9
  94. package/es/button/Button.js.map +1 -1
  95. package/es/button/__tests__/Button.test.js +54700 -0
  96. package/es/button/__tests__/Button.test.js.map +1 -0
  97. package/es/button/_example/base.js +3 -3
  98. package/es/button/_example/base.js.map +1 -1
  99. package/es/button/_example/block.js +26 -0
  100. package/es/button/_example/block.js.map +1 -0
  101. package/es/button/_example/disabled.js +32 -0
  102. package/es/button/_example/disabled.js.map +1 -0
  103. package/es/button/_example/ghost.js +28 -0
  104. package/es/button/_example/ghost.js.map +1 -0
  105. package/es/button/_example/icon.js +10 -10
  106. package/es/button/_example/icon.js.map +1 -1
  107. package/es/button/_example/link.js +24 -0
  108. package/es/button/_example/link.js.map +1 -0
  109. package/es/button/_example/loading.js +28 -0
  110. package/es/button/_example/loading.js.map +1 -0
  111. package/es/button/_example/shape.js +31 -0
  112. package/es/button/_example/shape.js.map +1 -0
  113. package/es/button/_example/size.js +25 -0
  114. package/es/button/_example/size.js.map +1 -0
  115. package/es/button/_example/suffix.js +23 -0
  116. package/es/button/_example/suffix.js.map +1 -0
  117. package/es/button/_example/theme.js +25 -0
  118. package/es/button/_example/theme.js.map +1 -0
  119. package/es/button/_example/variant-base.js +30 -0
  120. package/es/button/_example/variant-base.js.map +1 -0
  121. package/es/button/_example/variant-dashed.js +30 -0
  122. package/es/button/_example/variant-dashed.js.map +1 -0
  123. package/es/button/_example/variant-outline.js +30 -0
  124. package/es/button/_example/variant-outline.js.map +1 -0
  125. package/es/button/_example/variant-text.js +30 -0
  126. package/es/button/_example/variant-text.js.map +1 -0
  127. package/es/button/index.js +5 -4
  128. package/es/button/index.js.map +1 -1
  129. package/es/button/style/index.css +3 -3
  130. package/es/checkbox/Checkbox.js +6 -5
  131. package/es/checkbox/Checkbox.js.map +1 -1
  132. package/es/checkbox/CheckboxGroup.js +6 -5
  133. package/es/checkbox/CheckboxGroup.js.map +1 -1
  134. package/es/checkbox/_example/base.js +9 -0
  135. package/es/checkbox/_example/base.js.map +1 -0
  136. package/es/checkbox/_example/controlled.js +19 -0
  137. package/es/checkbox/_example/controlled.js.map +1 -0
  138. package/es/checkbox/_example/group-disabled.js +20 -0
  139. package/es/checkbox/_example/group-disabled.js.map +1 -0
  140. package/es/checkbox/_example/group-with-check-all.js +41 -0
  141. package/es/checkbox/_example/group-with-check-all.js.map +1 -0
  142. package/es/checkbox/_example/group-with-max.js +34 -0
  143. package/es/checkbox/_example/group-with-max.js.map +1 -0
  144. package/es/checkbox/_example/group-with-options.js +40 -0
  145. package/es/checkbox/_example/group-with-options.js.map +1 -0
  146. package/es/checkbox/_example/group.js +33 -0
  147. package/es/checkbox/_example/group.js.map +1 -0
  148. package/es/checkbox/_example/states.js +27 -0
  149. package/es/checkbox/_example/states.js.map +1 -0
  150. package/es/checkbox/index.js +6 -5
  151. package/es/checkbox/index.js.map +1 -1
  152. package/es/color-picker/ColorPickPanel.js +76 -12
  153. package/es/color-picker/ColorPickPanel.js.map +1 -1
  154. package/es/color-picker/ColorPicker.js +67 -18
  155. package/es/color-picker/ColorPicker.js.map +1 -1
  156. package/es/color-picker/_example/base.js +26 -0
  157. package/es/color-picker/_example/base.js.map +1 -0
  158. package/es/color-picker/_example/borderless.js +29 -0
  159. package/es/color-picker/_example/borderless.js.map +1 -0
  160. package/es/color-picker/_example/clearable.js +29 -0
  161. package/es/color-picker/_example/clearable.js.map +1 -0
  162. package/es/color-picker/_example/disabled.js +29 -0
  163. package/es/color-picker/_example/disabled.js.map +1 -0
  164. package/es/color-picker/_example/formats.js +79 -0
  165. package/es/color-picker/_example/formats.js.map +1 -0
  166. package/es/color-picker/_example/manual-input.js +91 -0
  167. package/es/color-picker/_example/manual-input.js.map +1 -0
  168. package/es/color-picker/_example/recent-colors.js +31 -0
  169. package/es/color-picker/_example/recent-colors.js.map +1 -0
  170. package/es/color-picker/_example/swatch-colors.js +27 -0
  171. package/es/color-picker/_example/swatch-colors.js.map +1 -0
  172. package/es/color-picker/_example/with-alpha.js +35 -0
  173. package/es/color-picker/_example/with-alpha.js.map +1 -0
  174. package/es/color-picker/components/panel/alpha.js +5 -4
  175. package/es/color-picker/components/panel/alpha.js.map +1 -1
  176. package/es/color-picker/components/panel/format/index.js +25 -23
  177. package/es/color-picker/components/panel/format/index.js.map +1 -1
  178. package/es/color-picker/components/panel/format/inputs.js +20 -18
  179. package/es/color-picker/components/panel/format/inputs.js.map +1 -1
  180. package/es/color-picker/components/panel/header.js +16 -14
  181. package/es/color-picker/components/panel/header.js.map +1 -1
  182. package/es/color-picker/components/panel/hue.js +5 -4
  183. package/es/color-picker/components/panel/hue.js.map +1 -1
  184. package/es/color-picker/components/panel/index.js +73 -9
  185. package/es/color-picker/components/panel/index.js.map +1 -1
  186. package/es/color-picker/components/panel/saturation.js +6 -5
  187. package/es/color-picker/components/panel/saturation.js.map +1 -1
  188. package/es/color-picker/components/panel/slider.js +9 -8
  189. package/es/color-picker/components/panel/slider.js.map +1 -1
  190. package/es/color-picker/components/panel/swatches.js +17 -16
  191. package/es/color-picker/components/panel/swatches.js.map +1 -1
  192. package/es/color-picker/components/trigger.js +58 -25
  193. package/es/color-picker/components/trigger.js.map +1 -1
  194. package/es/color-picker/index.js +63 -20
  195. package/es/color-picker/index.js.map +1 -1
  196. package/es/color-picker/utils/color-picker/index.js +4 -67
  197. package/es/color-picker/utils/color-picker/index.js.map +1 -1
  198. package/es/common/Check.js +11 -10
  199. package/es/common/Check.js.map +1 -1
  200. package/es/common/FakeArrow.js +6 -5
  201. package/es/common/FakeArrow.js.map +1 -1
  202. package/es/common/PluginContainer.js +4 -3
  203. package/es/common/PluginContainer.js.map +1 -1
  204. package/es/common/Portal.js +3 -2
  205. package/es/common/Portal.js.map +1 -1
  206. package/es/config-provider/ConfigContext.js +303 -4
  207. package/es/config-provider/ConfigContext.js.map +1 -1
  208. package/es/config-provider/ConfigProvider.js +17 -4
  209. package/es/config-provider/ConfigProvider.js.map +1 -1
  210. package/es/config-provider/index.js +2 -1
  211. package/es/config-provider/index.js.map +1 -1
  212. package/es/dialog/Dialog.js +19 -18
  213. package/es/dialog/Dialog.js.map +1 -1
  214. package/es/dialog/DialogCard.js +8 -7
  215. package/es/dialog/DialogCard.js.map +1 -1
  216. package/es/dialog/_example/base.js +32 -0
  217. package/es/dialog/_example/base.js.map +1 -0
  218. package/es/dialog/_example/confirm-loading.js +38 -0
  219. package/es/dialog/_example/confirm-loading.js.map +1 -0
  220. package/es/dialog/_example/custom-buttons.js +36 -0
  221. package/es/dialog/_example/custom-buttons.js.map +1 -0
  222. package/es/dialog/_example/full-screen.js +33 -0
  223. package/es/dialog/_example/full-screen.js.map +1 -0
  224. package/es/dialog/_example/hide-buttons.js +50 -0
  225. package/es/dialog/_example/hide-buttons.js.map +1 -0
  226. package/es/dialog/_example/modeless.js +30 -0
  227. package/es/dialog/_example/modeless.js.map +1 -0
  228. package/es/dialog/_example/placement.js +53 -0
  229. package/es/dialog/_example/placement.js.map +1 -0
  230. package/es/dialog/_example/plugin-example.js +81 -0
  231. package/es/dialog/_example/plugin-example.js.map +1 -0
  232. package/es/dialog/_example/themes.js +62 -0
  233. package/es/dialog/_example/themes.js.map +1 -0
  234. package/es/dialog/index.js +10 -9
  235. package/es/dialog/index.js.map +1 -1
  236. package/es/dialog/plugin.js +15 -14
  237. package/es/dialog/plugin.js.map +1 -1
  238. package/es/dialog/style/index.css +3 -3
  239. package/es/drawer/Drawer.js +46 -37
  240. package/es/drawer/Drawer.js.map +1 -1
  241. package/es/drawer/_example/custom-header-footer.js +78 -0
  242. package/es/drawer/_example/custom-header-footer.js.map +1 -0
  243. package/es/drawer/_example/default.js +61 -0
  244. package/es/drawer/_example/default.js.map +1 -0
  245. package/es/drawer/_example/events.js +81 -0
  246. package/es/drawer/_example/events.js.map +1 -0
  247. package/es/drawer/_example/no-footer.js +62 -0
  248. package/es/drawer/_example/no-footer.js.map +1 -0
  249. package/es/drawer/_example/no-overlay.js +62 -0
  250. package/es/drawer/_example/no-overlay.js.map +1 -0
  251. package/es/drawer/_example/placement.js +91 -0
  252. package/es/drawer/_example/placement.js.map +1 -0
  253. package/es/drawer/_example/size-draggable.js +65 -0
  254. package/es/drawer/_example/size-draggable.js.map +1 -0
  255. package/es/drawer/_example/size.js +96 -0
  256. package/es/drawer/_example/size.js.map +1 -0
  257. package/es/drawer/index.js +9 -8
  258. package/es/drawer/index.js.map +1 -1
  259. package/es/drawer/style/index.css +4 -4
  260. package/es/fireworks/Fireworks.js +7 -6
  261. package/es/fireworks/Fireworks.js.map +1 -1
  262. package/es/fireworks/index.js +3 -2
  263. package/es/fireworks/index.js.map +1 -1
  264. package/es/form/Form.js +26 -173
  265. package/es/form/Form.js.map +1 -1
  266. package/es/form/FormContext.js +5 -5
  267. package/es/form/FormContext.js.map +1 -1
  268. package/es/form/FormItem.js +12 -11
  269. package/es/form/FormItem.js.map +1 -1
  270. package/es/form/FormList.js +2 -2
  271. package/es/form/FormList.js.map +1 -1
  272. package/es/form/_example/complex.js +105 -0
  273. package/es/form/_example/complex.js.map +1 -0
  274. package/es/form/_example/default.js +87 -0
  275. package/es/form/_example/default.js.map +1 -0
  276. package/es/form/_example/disabled.js +40 -0
  277. package/es/form/_example/disabled.js.map +1 -0
  278. package/es/form/_example/form-list.js +122 -0
  279. package/es/form/_example/form-list.js.map +1 -0
  280. package/es/form/_example/inline-layout.js +32 -0
  281. package/es/form/_example/inline-layout.js.map +1 -0
  282. package/es/form/_example/label-align.js +73 -0
  283. package/es/form/_example/label-align.js.map +1 -0
  284. package/es/form/_example/methods.js +118 -0
  285. package/es/form/_example/methods.js.map +1 -0
  286. package/es/form/_example/validation.js +97 -0
  287. package/es/form/_example/validation.js.map +1 -0
  288. package/es/form/hooks/useFormItemStyle.js +5 -4
  289. package/es/form/hooks/useFormItemStyle.js.map +1 -1
  290. package/es/form/hooks/useInstance.js +5 -4
  291. package/es/form/hooks/useInstance.js.map +1 -1
  292. package/es/form/index.js +22 -17
  293. package/es/form/index.js.map +1 -1
  294. package/es/form/style/index.css +6 -6
  295. package/es/hooks/useDragSorter.js +4 -4
  296. package/es/hooks/useDragSorter.js.map +1 -1
  297. package/es/index.js +37 -30
  298. package/es/index.js.map +1 -1
  299. package/es/input/Input.js +165 -26
  300. package/es/input/Input.js.map +1 -1
  301. package/es/input/InputGroup.js +2 -2
  302. package/es/input/InputGroup.js.map +1 -1
  303. package/es/input/_example/auto-width.js +53 -0
  304. package/es/input/_example/auto-width.js.map +1 -0
  305. package/es/input/_example/borderless.js +52 -0
  306. package/es/input/_example/borderless.js.map +1 -0
  307. package/es/input/_example/clearable.js +54 -0
  308. package/es/input/_example/clearable.js.map +1 -0
  309. package/es/input/_example/default.js +37 -0
  310. package/es/input/_example/default.js.map +1 -0
  311. package/es/input/_example/disabled-readonly.js +48 -0
  312. package/es/input/_example/disabled-readonly.js.map +1 -0
  313. package/es/input/_example/events.js +87 -0
  314. package/es/input/_example/events.js.map +1 -0
  315. package/es/input/_example/group.js +47 -0
  316. package/es/input/_example/group.js.map +1 -0
  317. package/es/input/_example/label-suffix.js +48 -0
  318. package/es/input/_example/label-suffix.js.map +1 -0
  319. package/es/input/_example/max-length.js +44 -0
  320. package/es/input/_example/max-length.js.map +1 -0
  321. package/es/input/_example/password.js +43 -0
  322. package/es/input/_example/password.js.map +1 -0
  323. package/es/input/_example/sizes.js +47 -0
  324. package/es/input/_example/sizes.js.map +1 -0
  325. package/es/input/_example/status.js +55 -0
  326. package/es/input/_example/status.js.map +1 -0
  327. package/es/input/_example/text-align.js +50 -0
  328. package/es/input/_example/text-align.js.map +1 -0
  329. package/es/input/_example/with-icon.js +48 -0
  330. package/es/input/_example/with-icon.js.map +1 -0
  331. package/es/input/index.js +6 -5
  332. package/es/input/index.js.map +1 -1
  333. package/es/input/style/index.css +18 -9
  334. package/es/input-number/InputNumber.js +19 -18
  335. package/es/input-number/InputNumber.js.map +1 -1
  336. package/es/input-number/_example/align.js +88 -0
  337. package/es/input-number/_example/align.js.map +1 -0
  338. package/es/input-number/_example/auto-width.js +54 -0
  339. package/es/input-number/_example/auto-width.js.map +1 -0
  340. package/es/input-number/_example/default.js +55 -0
  341. package/es/input-number/_example/default.js.map +1 -0
  342. package/es/input-number/_example/events.js +103 -0
  343. package/es/input-number/_example/events.js.map +1 -0
  344. package/es/input-number/_example/format.js +94 -0
  345. package/es/input-number/_example/format.js.map +1 -0
  346. package/es/input-number/_example/large-number.js +81 -0
  347. package/es/input-number/_example/large-number.js.map +1 -0
  348. package/es/input-number/_example/min-max.js +70 -0
  349. package/es/input-number/_example/min-max.js.map +1 -0
  350. package/es/input-number/_example/sizes.js +128 -0
  351. package/es/input-number/_example/sizes.js.map +1 -0
  352. package/es/input-number/_example/status.js +175 -0
  353. package/es/input-number/_example/status.js.map +1 -0
  354. package/es/input-number/_example/step-and-decimal.js +70 -0
  355. package/es/input-number/_example/step-and-decimal.js.map +1 -0
  356. package/es/input-number/_example/themes.js +80 -0
  357. package/es/input-number/_example/themes.js.map +1 -0
  358. package/es/input-number/_example/with-suffix.js +74 -0
  359. package/es/input-number/_example/with-suffix.js.map +1 -0
  360. package/es/input-number/index.js +9 -8
  361. package/es/input-number/index.js.map +1 -1
  362. package/es/input-number/style/index.css +12 -12
  363. package/es/input-number/useInputNumber.js +5 -4
  364. package/es/input-number/useInputNumber.js.map +1 -1
  365. package/es/ip-input/IPInput.js +5 -4
  366. package/es/ip-input/IPInput.js.map +1 -1
  367. package/es/ip-input/_example/controlled.js +65 -0
  368. package/es/ip-input/_example/controlled.js.map +1 -0
  369. package/es/ip-input/_example/default.js +27 -0
  370. package/es/ip-input/_example/default.js.map +1 -0
  371. package/es/ip-input/_example/full-featured.js +48 -0
  372. package/es/ip-input/_example/full-featured.js.map +1 -0
  373. package/es/ip-input/_example/ipv6.js +47 -0
  374. package/es/ip-input/_example/ipv6.js.map +1 -0
  375. package/es/ip-input/_example/keyboard-navigation.js +46 -0
  376. package/es/ip-input/_example/keyboard-navigation.js.map +1 -0
  377. package/es/ip-input/_example/paste-demo.js +54 -0
  378. package/es/ip-input/_example/paste-demo.js.map +1 -0
  379. package/es/ip-input/_example/states.js +52 -0
  380. package/es/ip-input/_example/states.js.map +1 -0
  381. package/es/ip-input/_example/with-cidr.js +47 -0
  382. package/es/ip-input/_example/with-cidr.js.map +1 -0
  383. package/es/ip-input/index.js +5 -4
  384. package/es/ip-input/index.js.map +1 -1
  385. package/es/layout/Aside.js +5 -4
  386. package/es/layout/Aside.js.map +1 -1
  387. package/es/layout/Layout.js +10 -9
  388. package/es/layout/Layout.js.map +1 -1
  389. package/es/layout/_example/combine-left.js +68 -0
  390. package/es/layout/_example/combine-left.js.map +1 -0
  391. package/es/layout/_example/combine-right.js +68 -0
  392. package/es/layout/_example/combine-right.js.map +1 -0
  393. package/es/layout/_example/custom-aside-width.js +69 -0
  394. package/es/layout/_example/custom-aside-width.js.map +1 -0
  395. package/es/layout/_example/custom-height.js +59 -0
  396. package/es/layout/_example/custom-height.js.map +1 -0
  397. package/es/layout/_example/double-sidebar.js +72 -0
  398. package/es/layout/_example/double-sidebar.js.map +1 -0
  399. package/es/layout/_example/side-navigation-right.js +66 -0
  400. package/es/layout/_example/side-navigation-right.js.map +1 -0
  401. package/es/layout/_example/side-navigation.js +66 -0
  402. package/es/layout/_example/side-navigation.js.map +1 -0
  403. package/es/layout/_example/top-navigation.js +57 -0
  404. package/es/layout/_example/top-navigation.js.map +1 -0
  405. package/es/layout/index.js +4 -3
  406. package/es/layout/index.js.map +1 -1
  407. package/es/list/List.js +18 -17
  408. package/es/list/List.js.map +1 -1
  409. package/es/list/ListItem.js +7 -6
  410. package/es/list/ListItem.js.map +1 -1
  411. package/es/list/ListItemMeta.js +12 -11
  412. package/es/list/ListItemMeta.js.map +1 -1
  413. package/es/list/_example/async-loading.js +114 -0
  414. package/es/list/_example/async-loading.js.map +1 -0
  415. package/es/list/_example/default.js +62 -0
  416. package/es/list/_example/default.js.map +1 -0
  417. package/es/list/_example/header-footer.js +98 -0
  418. package/es/list/_example/header-footer.js.map +1 -0
  419. package/es/list/_example/multiline.js +66 -0
  420. package/es/list/_example/multiline.js.map +1 -0
  421. package/es/list/_example/scroll-loading.js +133 -0
  422. package/es/list/_example/scroll-loading.js.map +1 -0
  423. package/es/list/_example/sizes.js +94 -0
  424. package/es/list/_example/sizes.js.map +1 -0
  425. package/es/list/_example/split.js +93 -0
  426. package/es/list/_example/split.js.map +1 -0
  427. package/es/list/_example/stripe.js +68 -0
  428. package/es/list/_example/stripe.js.map +1 -0
  429. package/es/list/_example/virtual-scroll.js +97 -0
  430. package/es/list/_example/virtual-scroll.js.map +1 -0
  431. package/es/list/_example/with-image.js +72 -0
  432. package/es/list/_example/with-image.js.map +1 -0
  433. package/es/list/index.js +6 -5
  434. package/es/list/index.js.map +1 -1
  435. package/es/list/style/index.css +5 -5
  436. package/es/loading/Gradient.js +8 -7
  437. package/es/loading/Gradient.js.map +1 -1
  438. package/es/loading/Loading.js +14 -13
  439. package/es/loading/Loading.js.map +1 -1
  440. package/es/loading/_example/default.js +30 -0
  441. package/es/loading/_example/default.js.map +1 -0
  442. package/es/loading/_example/delay.js +70 -0
  443. package/es/loading/_example/delay.js.map +1 -0
  444. package/es/loading/_example/fullscreen.js +38 -0
  445. package/es/loading/_example/fullscreen.js.map +1 -0
  446. package/es/loading/_example/inherit-color.js +58 -0
  447. package/es/loading/_example/inherit-color.js.map +1 -0
  448. package/es/loading/_example/no-overlay.js +28 -0
  449. package/es/loading/_example/no-overlay.js.map +1 -0
  450. package/es/loading/_example/sizes.js +84 -0
  451. package/es/loading/_example/sizes.js.map +1 -0
  452. package/es/loading/_example/with-text.js +41 -0
  453. package/es/loading/_example/with-text.js.map +1 -0
  454. package/es/loading/_example/wrapper.js +41 -0
  455. package/es/loading/_example/wrapper.js.map +1 -0
  456. package/es/loading/index.js +4 -3
  457. package/es/loading/index.js.map +1 -1
  458. package/es/notification/NotifyContainer.js +7 -6
  459. package/es/notification/NotifyContainer.js.map +1 -1
  460. package/es/notification/NotifyContext.js +7 -6
  461. package/es/notification/NotifyContext.js.map +1 -1
  462. package/es/notification/NotifyItem.js +20 -19
  463. package/es/notification/NotifyItem.js.map +1 -1
  464. package/es/notification/_example/default.js +55 -0
  465. package/es/notification/_example/default.js.map +1 -0
  466. package/es/notification/_example/long-content.js +36 -0
  467. package/es/notification/_example/long-content.js.map +1 -0
  468. package/es/notification/_example/stacking.js +56 -0
  469. package/es/notification/_example/stacking.js.map +1 -0
  470. package/es/notification/_example/types.js +75 -0
  471. package/es/notification/_example/types.js.map +1 -0
  472. package/es/notification/_example/usage-example.js +68 -0
  473. package/es/notification/_example/usage-example.js.map +1 -0
  474. package/es/notification/index.js +3 -2
  475. package/es/notification/index.js.map +1 -1
  476. package/es/notification/style/index.css +4 -4
  477. package/es/popup/Popup.js +30 -17
  478. package/es/popup/Popup.js.map +1 -1
  479. package/es/popup/_example/controlled.js +55 -0
  480. package/es/popup/_example/controlled.js.map +1 -0
  481. package/es/popup/_example/custom-content.js +81 -0
  482. package/es/popup/_example/custom-content.js.map +1 -0
  483. package/es/popup/_example/default.js +24 -0
  484. package/es/popup/_example/default.js.map +1 -0
  485. package/es/popup/_example/delay.js +43 -0
  486. package/es/popup/_example/delay.js.map +1 -0
  487. package/es/popup/_example/disabled.js +35 -0
  488. package/es/popup/_example/disabled.js.map +1 -0
  489. package/es/popup/_example/no-arrow.js +32 -0
  490. package/es/popup/_example/no-arrow.js.map +1 -0
  491. package/es/popup/_example/placements.js +138 -0
  492. package/es/popup/_example/placements.js.map +1 -0
  493. package/es/popup/_example/triggers.js +49 -0
  494. package/es/popup/_example/triggers.js.map +1 -0
  495. package/es/popup/index.js +5 -4
  496. package/es/popup/index.js.map +1 -1
  497. package/es/radio/Radio.js +8 -7
  498. package/es/radio/Radio.js.map +1 -1
  499. package/es/radio/RadioGroup.js +8 -7
  500. package/es/radio/RadioGroup.js.map +1 -1
  501. package/es/radio/_example/allow-uncheck.js +37 -0
  502. package/es/radio/_example/allow-uncheck.js.map +1 -0
  503. package/es/radio/_example/button-style.js +79 -0
  504. package/es/radio/_example/button-style.js.map +1 -0
  505. package/es/radio/_example/controlled.js +19 -0
  506. package/es/radio/_example/controlled.js.map +1 -0
  507. package/es/radio/_example/default.js +16 -0
  508. package/es/radio/_example/default.js.map +1 -0
  509. package/es/radio/_example/group-disabled.js +34 -0
  510. package/es/radio/_example/group-disabled.js.map +1 -0
  511. package/es/radio/_example/group-with-options.js +40 -0
  512. package/es/radio/_example/group-with-options.js.map +1 -0
  513. package/es/radio/_example/group.js +33 -0
  514. package/es/radio/_example/group.js.map +1 -0
  515. package/es/radio/_example/sizes.js +57 -0
  516. package/es/radio/_example/sizes.js.map +1 -0
  517. package/es/radio/_example/states.js +25 -0
  518. package/es/radio/_example/states.js.map +1 -0
  519. package/es/radio/index.js +8 -7
  520. package/es/radio/index.js.map +1 -1
  521. package/es/select/Option.js +10 -9
  522. package/es/select/Option.js.map +1 -1
  523. package/es/select/OptionGroup.js +4 -3
  524. package/es/select/OptionGroup.js.map +1 -1
  525. package/es/select/PopupContent.js +5 -4
  526. package/es/select/PopupContent.js.map +1 -1
  527. package/es/select/Select.js +21 -20
  528. package/es/select/Select.js.map +1 -1
  529. package/es/select/_example/collapsed.js +55 -0
  530. package/es/select/_example/collapsed.js.map +1 -0
  531. package/es/select/_example/creatable.js +61 -0
  532. package/es/select/_example/creatable.js.map +1 -0
  533. package/es/select/_example/custom-content.js +41 -0
  534. package/es/select/_example/custom-content.js.map +1 -0
  535. package/es/select/_example/default.js +54 -0
  536. package/es/select/_example/default.js.map +1 -0
  537. package/es/select/_example/disabled.js +54 -0
  538. package/es/select/_example/disabled.js.map +1 -0
  539. package/es/select/_example/filterable.js +44 -0
  540. package/es/select/_example/filterable.js.map +1 -0
  541. package/es/select/_example/group-options.js +57 -0
  542. package/es/select/_example/group-options.js.map +1 -0
  543. package/es/select/_example/label-suffix.js +51 -0
  544. package/es/select/_example/label-suffix.js.map +1 -0
  545. package/es/select/_example/loading.js +45 -0
  546. package/es/select/_example/loading.js.map +1 -0
  547. package/es/select/_example/multiple.js +58 -0
  548. package/es/select/_example/multiple.js.map +1 -0
  549. package/es/select/_example/sizes.js +54 -0
  550. package/es/select/_example/sizes.js.map +1 -0
  551. package/es/select/_example/status.js +66 -0
  552. package/es/select/_example/status.js.map +1 -0
  553. package/es/select/index.js +12 -11
  554. package/es/select/index.js.map +1 -1
  555. package/es/select-input/SelectInput.js +14 -13
  556. package/es/select-input/SelectInput.js.map +1 -1
  557. package/es/select-input/hook/useMultiple.js +9 -8
  558. package/es/select-input/hook/useMultiple.js.map +1 -1
  559. package/es/select-input/hook/useSingle.js +9 -8
  560. package/es/select-input/hook/useSingle.js.map +1 -1
  561. package/es/select-input/index.js +8 -7
  562. package/es/select-input/index.js.map +1 -1
  563. package/es/slider/Slider.js +37 -27
  564. package/es/slider/Slider.js.map +1 -1
  565. package/es/slider/SliderHandleButton.js +3 -3
  566. package/es/slider/SliderHandleButton.js.map +1 -1
  567. package/es/slider/_example/custom-label.js +33 -0
  568. package/es/slider/_example/custom-label.js.map +1 -0
  569. package/es/slider/_example/default.js +33 -0
  570. package/es/slider/_example/default.js.map +1 -0
  571. package/es/slider/_example/disabled.js +38 -0
  572. package/es/slider/_example/disabled.js.map +1 -0
  573. package/es/slider/_example/marks.js +61 -0
  574. package/es/slider/_example/marks.js.map +1 -0
  575. package/es/slider/_example/range.js +30 -0
  576. package/es/slider/_example/range.js.map +1 -0
  577. package/es/slider/_example/step.js +31 -0
  578. package/es/slider/_example/step.js.map +1 -0
  579. package/es/slider/_example/vertical.js +67 -0
  580. package/es/slider/_example/vertical.js.map +1 -0
  581. package/es/slider/_example/with-input-number.js +55 -0
  582. package/es/slider/_example/with-input-number.js.map +1 -0
  583. package/es/slider/index.js +9 -8
  584. package/es/slider/index.js.map +1 -1
  585. package/es/slider/style/index.css +8 -8
  586. package/es/switch/Switch.js +13 -12
  587. package/es/switch/Switch.js.map +1 -1
  588. package/es/switch/_example/async-change.js +36 -0
  589. package/es/switch/_example/async-change.js.map +1 -0
  590. package/es/switch/_example/before-change.js +31 -0
  591. package/es/switch/_example/before-change.js.map +1 -0
  592. package/es/switch/_example/controlled.js +23 -0
  593. package/es/switch/_example/controlled.js.map +1 -0
  594. package/es/switch/_example/custom-value.js +50 -0
  595. package/es/switch/_example/custom-value.js.map +1 -0
  596. package/es/switch/_example/default.js +11 -0
  597. package/es/switch/_example/default.js.map +1 -0
  598. package/es/switch/_example/disabled.js +72 -0
  599. package/es/switch/_example/disabled.js.map +1 -0
  600. package/es/switch/_example/loading.js +44 -0
  601. package/es/switch/_example/loading.js.map +1 -0
  602. package/es/switch/_example/sizes.js +60 -0
  603. package/es/switch/_example/sizes.js.map +1 -0
  604. package/es/switch/_example/with-label.js +54 -0
  605. package/es/switch/_example/with-label.js.map +1 -0
  606. package/es/switch/index.js +6 -5
  607. package/es/switch/index.js.map +1 -1
  608. package/es/switch/style/index.css +56 -0
  609. package/es/tab/TabBar.js +8 -7
  610. package/es/tab/TabBar.js.map +1 -1
  611. package/es/tab/TabNav.js +12 -11
  612. package/es/tab/TabNav.js.map +1 -1
  613. package/es/tab/TabNavItem.js +11 -10
  614. package/es/tab/TabNavItem.js.map +1 -1
  615. package/es/tab/TabPanel.js +6 -4
  616. package/es/tab/TabPanel.js.map +1 -1
  617. package/es/tab/Tabs.js +20 -19
  618. package/es/tab/Tabs.js.map +1 -1
  619. package/es/tab/_example/addable.js +92 -0
  620. package/es/tab/_example/addable.js.map +1 -0
  621. package/es/tab/_example/card-theme.js +66 -0
  622. package/es/tab/_example/card-theme.js.map +1 -0
  623. package/es/tab/_example/default.js +65 -0
  624. package/es/tab/_example/default.js.map +1 -0
  625. package/es/tab/_example/disabled.js +99 -0
  626. package/es/tab/_example/disabled.js.map +1 -0
  627. package/es/tab/_example/lazy.js +73 -0
  628. package/es/tab/_example/lazy.js.map +1 -0
  629. package/es/tab/_example/placement.js +96 -0
  630. package/es/tab/_example/placement.js.map +1 -0
  631. package/es/tab/_example/removable.js +78 -0
  632. package/es/tab/_example/removable.js.map +1 -0
  633. package/es/tab/_example/sizes.js +85 -0
  634. package/es/tab/_example/sizes.js.map +1 -0
  635. package/es/tab/_example/with-action.js +71 -0
  636. package/es/tab/_example/with-action.js.map +1 -0
  637. package/es/tab/index.js +8 -7
  638. package/es/tab/index.js.map +1 -1
  639. package/es/tab/style/index.css +8 -8
  640. package/es/table/Cell.js +10 -11
  641. package/es/table/Cell.js.map +1 -1
  642. package/es/table/Ellipsis.js +77 -0
  643. package/es/table/Ellipsis.js.map +1 -0
  644. package/es/table/TBody.js +16 -13
  645. package/es/table/TBody.js.map +1 -1
  646. package/es/table/THead.js +7 -6
  647. package/es/table/THead.js.map +1 -1
  648. package/es/table/TR.js +9 -5
  649. package/es/table/TR.js.map +1 -1
  650. package/es/table/Table.js +14 -11
  651. package/es/table/Table.js.map +1 -1
  652. package/es/table/_example/alignment.js +96 -0
  653. package/es/table/_example/alignment.js.map +1 -0
  654. package/es/table/_example/auto-width.js +90 -0
  655. package/es/table/_example/auto-width.js.map +1 -0
  656. package/es/table/_example/bordered-stripe-hover.js +96 -0
  657. package/es/table/_example/bordered-stripe-hover.js.map +1 -0
  658. package/es/table/_example/bordered.js +94 -0
  659. package/es/table/_example/bordered.js.map +1 -0
  660. package/es/table/_example/cell-click.js +107 -0
  661. package/es/table/_example/cell-click.js.map +1 -0
  662. package/es/table/_example/complex.js +131 -0
  663. package/es/table/_example/complex.js.map +1 -0
  664. package/es/table/_example/custom-cell.js +115 -0
  665. package/es/table/_example/custom-cell.js.map +1 -0
  666. package/es/table/_example/custom-empty.js +64 -0
  667. package/es/table/_example/custom-empty.js.map +1 -0
  668. package/es/table/_example/custom-row-class-name.js +105 -0
  669. package/es/table/_example/custom-row-class-name.js.map +1 -0
  670. package/es/table/_example/default.js +93 -0
  671. package/es/table/_example/default.js.map +1 -0
  672. package/es/table/_example/ellipsis.js +96 -0
  673. package/es/table/_example/ellipsis.js.map +1 -0
  674. package/es/table/_example/empty.js +58 -0
  675. package/es/table/_example/empty.js.map +1 -0
  676. package/es/table/_example/fixed-width.js +98 -0
  677. package/es/table/_example/fixed-width.js.map +1 -0
  678. package/es/table/_example/hover.js +94 -0
  679. package/es/table/_example/hover.js.map +1 -0
  680. package/es/table/_example/row-click.js +100 -0
  681. package/es/table/_example/row-click.js.map +1 -0
  682. package/es/table/_example/sizes.js +111 -0
  683. package/es/table/_example/sizes.js.map +1 -0
  684. package/es/table/_example/stripe.js +94 -0
  685. package/es/table/_example/stripe.js.map +1 -0
  686. package/es/table/_example/vertical-align.js +110 -0
  687. package/es/table/_example/vertical-align.js.map +1 -0
  688. package/es/table/hooks/index.js +6 -5
  689. package/es/table/hooks/index.js.map +1 -1
  690. package/es/table/index.js +6 -3
  691. package/es/table/index.js.map +1 -1
  692. package/es/table/style/index.css +11 -10
  693. package/es/tag/Tag.js +8 -7
  694. package/es/tag/Tag.js.map +1 -1
  695. package/es/tag/_example/closable.js +43 -0
  696. package/es/tag/_example/closable.js.map +1 -0
  697. package/es/tag/_example/default.js +24 -0
  698. package/es/tag/_example/default.js.map +1 -0
  699. package/es/tag/_example/disabled.js +26 -0
  700. package/es/tag/_example/disabled.js.map +1 -0
  701. package/es/tag/_example/sizes.js +24 -0
  702. package/es/tag/_example/sizes.js.map +1 -0
  703. package/es/tag/_example/variants.js +49 -0
  704. package/es/tag/_example/variants.js.map +1 -0
  705. package/es/tag/index.js +4 -3
  706. package/es/tag/index.js.map +1 -1
  707. package/es/tag-input/TagInput.js +10 -9
  708. package/es/tag-input/TagInput.js.map +1 -1
  709. package/es/tag-input/_example/collapsed.js +39 -0
  710. package/es/tag-input/_example/collapsed.js.map +1 -0
  711. package/es/tag-input/_example/controlled-uncontrolled.js +47 -0
  712. package/es/tag-input/_example/controlled-uncontrolled.js.map +1 -0
  713. package/es/tag-input/_example/default.js +31 -0
  714. package/es/tag-input/_example/default.js.map +1 -0
  715. package/es/tag-input/_example/disabled-readonly.js +50 -0
  716. package/es/tag-input/_example/disabled-readonly.js.map +1 -0
  717. package/es/tag-input/_example/events.js +84 -0
  718. package/es/tag-input/_example/events.js.map +1 -0
  719. package/es/tag-input/_example/excess-display.js +40 -0
  720. package/es/tag-input/_example/excess-display.js.map +1 -0
  721. package/es/tag-input/_example/max-tags.js +36 -0
  722. package/es/tag-input/_example/max-tags.js.map +1 -0
  723. package/es/tag-input/_example/sizes.js +51 -0
  724. package/es/tag-input/_example/sizes.js.map +1 -0
  725. package/es/tag-input/_example/status.js +49 -0
  726. package/es/tag-input/_example/status.js.map +1 -0
  727. package/es/tag-input/_example/with-label.js +31 -0
  728. package/es/tag-input/_example/with-label.js.map +1 -0
  729. package/es/tag-input/hooks/useTagList.js +11 -10
  730. package/es/tag-input/hooks/useTagList.js.map +1 -1
  731. package/es/tag-input/index.js +7 -6
  732. package/es/tag-input/index.js.map +1 -1
  733. package/es/tag-input/useTagList.js +11 -10
  734. package/es/tag-input/useTagList.js.map +1 -1
  735. package/es/tooltip/Tooltip.js +100 -0
  736. package/es/tooltip/Tooltip.js.map +1 -0
  737. package/es/tooltip/_example/base.js +32 -0
  738. package/es/tooltip/_example/base.js.map +1 -0
  739. package/es/tooltip/_example/custom-content.js +62 -0
  740. package/es/tooltip/_example/custom-content.js.map +1 -0
  741. package/es/tooltip/_example/placement.js +31 -0
  742. package/es/tooltip/_example/placement.js.map +1 -0
  743. package/es/tooltip/_example/theme.js +47 -0
  744. package/es/tooltip/_example/theme.js.map +1 -0
  745. package/es/tooltip/index.js +36 -0
  746. package/es/tooltip/index.js.map +1 -0
  747. package/es/tooltip/style/index.css +59 -0
  748. package/es/tooltip/style/index.js +2 -0
  749. package/es/tooltip/style/index.js.map +1 -0
  750. package/es/utils/log/index.js.map +1 -1
  751. package/package.json +3 -3
  752. package/es/_chunks/dep-5U9UjDaf.js +0 -345
  753. package/es/_chunks/dep-5U9UjDaf.js.map +0 -1
  754. package/es/_chunks/dep-BuIAffJt.js.map +0 -1
  755. package/es/_chunks/dep-CD_4-1Xb.js.map +0 -1
  756. package/es/_chunks/dep-CMPsNAXF.js.map +0 -1
  757. package/es/_chunks/dep-CkmtEv0Y.js.map +0 -1
  758. package/es/_chunks/dep-DJmE940f.js.map +0 -1
  759. package/es/_chunks/dep-DURB9x8g.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
2
+ import React__default, { useState } from 'react';
3
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
4
+ import '../../_chunks/dep-Cwish4GD.js';
5
+ import '../../_chunks/dep-D-UKOauR.js';
6
+ import '../../_chunks/dep-CgyDw_YI.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var FullFeaturedExample = function FullFeaturedExample() {
19
+ var _useState = useState(""),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ value = _useState2[0],
22
+ setValue = _useState2[1];
23
+ return /* @__PURE__ */React__default.createElement("div", {
24
+ style: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: "16px"
28
+ }
29
+ }, /* @__PURE__ */React__default.createElement(IPInput, {
30
+ value: value,
31
+ onChange: setValue,
32
+ allowIPv6: true,
33
+ allowCIDR: true,
34
+ showClear: true,
35
+ placeholder: "\u8F93\u5165 IPv4 \u6216 IPv6 \u5730\u5740",
36
+ tips: "\u652F\u6301 IPv4\u3001IPv6 \u548C CIDR \u683C\u5F0F"
37
+ }), /* @__PURE__ */React__default.createElement("div", {
38
+ style: {
39
+ padding: "12px",
40
+ background: "#f5f5f5",
41
+ borderRadius: "4px",
42
+ fontSize: "12px"
43
+ }
44
+ }, /* @__PURE__ */React__default.createElement("strong", null, "\u5F53\u524D\u503C\uFF1A"), value || "(\u7A7A)"));
45
+ };
46
+
47
+ export { FullFeaturedExample as default };
48
+ //# sourceMappingURL=full-featured.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"full-featured.js","sources":["../../../../components/ip-input/_example/full-featured.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst FullFeaturedExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={setValue}\n allowIPv6={true}\n allowCIDR={true}\n showClear={true}\n placeholder=\"输入 IPv4 或 IPv6 地址\"\n tips=\"支持 IPv4、IPv6 和 CIDR 格式\"\n />\n <div\n style={{\n padding: \"12px\",\n background: \"#f5f5f5\",\n borderRadius: \"4px\",\n fontSize: \"12px\"\n }}\n >\n <strong>当前值:</strong>\n {value || \"(空)\"}\n </div>\n </div>\n );\n};\n\nexport default FullFeaturedExample;"],"names":["FullFeaturedExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","allowIPv6","allowCIDR","showClear","placeholder","tips","padding","background","borderRadius","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,sBAAsB,SAAtBA,sBAA4B;AAChC,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAUR,QAAA;AACVS,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY,4CAAA;AACZC,IAAAA,IAAA,EAAK;GACP,CAAA,iBACAZ,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AACCC,IAAAA,KAAA,EAAO;AACLW,MAAAA,OAAA,EAAS,MAAA;AACTC,MAAAA,UAAA,EAAY,SAAA;AACZC,MAAAA,YAAA,EAAc,KAAA;AACdC,MAAAA,QAAA,EAAU;AACZ;AAAA,GAAA,iBAEAhB,cAAA,CAAAC,aAAA,CAAC,gBAAO,0BAAI,CAAA,EACXH,KAAA,IAAS,UACZ,CACF,CAAA;AAEJ;;;;"}
@@ -0,0 +1,47 @@
1
+ import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
2
+ import React__default, { useState } from 'react';
3
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
4
+ import '../../_chunks/dep-Cwish4GD.js';
5
+ import '../../_chunks/dep-D-UKOauR.js';
6
+ import '../../_chunks/dep-CgyDw_YI.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var IPv6Example = function IPv6Example() {
19
+ var _useState = useState(""),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ value = _useState2[0],
22
+ setValue = _useState2[1];
23
+ return /* @__PURE__ */React__default.createElement("div", {
24
+ style: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: "16px"
28
+ }
29
+ }, /* @__PURE__ */React__default.createElement(IPInput, {
30
+ value: value,
31
+ onChange: function onChange(val) {
32
+ setValue(val);
33
+ console.log("\u503C:", val);
34
+ },
35
+ allowIPv6: true,
36
+ allowCIDR: true,
37
+ placeholder: "2001:db8::1"
38
+ }), /* @__PURE__ */React__default.createElement("div", {
39
+ style: {
40
+ color: "#666",
41
+ fontSize: "12px"
42
+ }
43
+ }, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
44
+ };
45
+
46
+ export { IPv6Example as default };
47
+ //# sourceMappingURL=ipv6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ipv6.js","sources":["../../../../components/ip-input/_example/ipv6.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst IPv6Example = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={(val) => {\n setValue(val);\n console.log(\"值:\", val);\n }}\n allowIPv6={true}\n allowCIDR={true}\n placeholder=\"2001:db8::1\"\n />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default IPv6Example;"],"names":["IPv6Example","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","val","console","log","allowIPv6","allowCIDR","placeholder","color","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,SAAdA,cAAoB;AACxB,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,GAAA,EAAQ;MACjBT,QAAA,CAASS,GAAG,CAAA;AACZC,MAAAA,OAAA,CAAQC,GAAA,CAAI,WAAMF,GAAG,CAAA;IACvB,CAAA;AACAG,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY;GACd,CAAA,iBACAb,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEY,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMjB,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
@@ -0,0 +1,46 @@
1
+ import React__default from 'react';
2
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
3
+ import '../../_chunks/dep-Cwish4GD.js';
4
+ import '../../_chunks/dep-D-UKOauR.js';
5
+ import '../../_chunks/dep-CgyDw_YI.js';
6
+ import '../../_chunks/dep-CzLhKWCf.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var KeyboardNavigationExample = function KeyboardNavigationExample() {
19
+ return /* @__PURE__ */React__default.createElement("div", {
20
+ style: {
21
+ display: "flex",
22
+ flexDirection: "column",
23
+ gap: "16px"
24
+ }
25
+ }, /* @__PURE__ */React__default.createElement("div", {
26
+ style: {
27
+ color: "#666",
28
+ fontSize: "12px"
29
+ }
30
+ }, /* @__PURE__ */React__default.createElement("p", {
31
+ style: {
32
+ fontWeight: "bold"
33
+ }
34
+ }, "\u952E\u76D8\u64CD\u4F5C\u8BF4\u660E\uFF1A"), /* @__PURE__ */React__default.createElement("ul", {
35
+ style: {
36
+ margin: "8px 0",
37
+ paddingLeft: "20px"
38
+ }
39
+ }, /* @__PURE__ */React__default.createElement("li", null, "\u8F93\u5165 3 \u4F4D\u6570\u5B57\u81EA\u52A8\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6BB5"), /* @__PURE__ */React__default.createElement("li", null, "\u8F93\u5165 . \u6216\u7A7A\u683C\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6BB5"), /* @__PURE__ */React__default.createElement("li", null, "\u5DE6/\u53F3\u7BAD\u5934\u952E\u5728\u6BB5\u4E4B\u95F4\u79FB\u52A8"), /* @__PURE__ */React__default.createElement("li", null, "\u5728\u6BB5\u5F00\u5934\u6309 Backspace \u8DF3\u8F6C\u5230\u4E0A\u4E00\u6BB5"))), /* @__PURE__ */React__default.createElement(IPInput, {
40
+ placeholder: "192.168.0.1",
41
+ autoFocus: true
42
+ }));
43
+ };
44
+
45
+ export { KeyboardNavigationExample as default };
46
+ //# sourceMappingURL=keyboard-navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard-navigation.js","sources":["../../../../components/ip-input/_example/keyboard-navigation.tsx"],"sourcesContent":["import React from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst KeyboardNavigationExample = () => (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>\n <p style={{ fontWeight: \"bold\" }}>键盘操作说明:</p>\n <ul style={{ margin: \"8px 0\", paddingLeft: \"20px\" }}>\n <li>输入 3 位数字自动跳转到下一段</li>\n <li>输入 . 或空格跳转到下一段</li>\n <li>左/右箭头键在段之间移动</li>\n <li>在段开头按 Backspace 跳转到上一段</li>\n </ul>\n </div>\n <IPInput placeholder=\"192.168.0.1\" autoFocus />\n </div>\n);\n\nexport default KeyboardNavigationExample;"],"names":["KeyboardNavigationExample","React","createElement","style","display","flexDirection","gap","color","fontSize","fontWeight","margin","paddingLeft","IPInput","placeholder","autoFocus"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,yBAAA,GAA4B,SAA5BA,yBAAAA,GAAA;AAAA,EAAA,sBACJC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS,MAAA;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;oBAClEL,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,iBAC5CP,cAAA,CAAAC,aAAA,CAAC,GAAA,EAAA;AAAEC,IAAAA,KAAA,EAAO;AAAEM,MAAAA,UAAA,EAAY;AAAO;GAAA,EAAG,4CAAO,CAAA,iBACzCR,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA;AAAGC,IAAAA,KAAA,EAAO;AAAEO,MAAAA,MAAA,EAAQ,OAAA;AAASC,MAAAA,WAAA,EAAa;AAAO;GAAA,iBAChDV,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,mFAAgB,CAAA,iBACpBD,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,uEAAc,CAAA,iBAClBD,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,qEAAY,CAAA,iBAChBD,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,+EAAsB,CAC5B,CACF,CAAA,iBACAD,cAAA,CAAAC,aAAA,CAACU,OAAA,EAAA;AAAQC,IAAAA,WAAA,EAAY,aAAA;AAAcC,IAAAA,SAAA,EAAS;GAAC,CAC/C,CAAA;AAAA;;;;"}
@@ -0,0 +1,54 @@
1
+ import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
2
+ import React__default, { useState } from 'react';
3
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
4
+ import '../../_chunks/dep-Cwish4GD.js';
5
+ import '../../_chunks/dep-D-UKOauR.js';
6
+ import '../../_chunks/dep-CgyDw_YI.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var PasteDemoExample = function PasteDemoExample() {
19
+ var _useState = useState(""),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ value = _useState2[0],
22
+ setValue = _useState2[1];
23
+ return /* @__PURE__ */React__default.createElement("div", {
24
+ style: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: "16px"
28
+ }
29
+ }, /* @__PURE__ */React__default.createElement("div", {
30
+ style: {
31
+ color: "#666",
32
+ fontSize: "12px"
33
+ }
34
+ }, "\u5C1D\u8BD5\u7C98\u8D34\u4EE5\u4E0B\u5185\u5BB9\uFF1A", /* @__PURE__ */React__default.createElement("ul", {
35
+ style: {
36
+ margin: "8px 0",
37
+ paddingLeft: "20px"
38
+ }
39
+ }, /* @__PURE__ */React__default.createElement("li", null, "192.168.0.1"), /* @__PURE__ */React__default.createElement("li", null, "192.168.0.1/24"), /* @__PURE__ */React__default.createElement("li", null, "abc 10.0.0.1 xyz\uFF08\u4F1A\u81EA\u52A8\u63D0\u53D6 IP\uFF09"), /* @__PURE__ */React__default.createElement("li", null, "2001:db8::1\uFF08\u9700\u8981\u5F00\u542F IPv6\uFF09"))), /* @__PURE__ */React__default.createElement(IPInput, {
40
+ value: value,
41
+ onChange: setValue,
42
+ allowCIDR: true,
43
+ allowIPv6: true,
44
+ showClear: true
45
+ }), /* @__PURE__ */React__default.createElement("div", {
46
+ style: {
47
+ color: "#666",
48
+ fontSize: "12px"
49
+ }
50
+ }, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
51
+ };
52
+
53
+ export { PasteDemoExample as default };
54
+ //# sourceMappingURL=paste-demo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paste-demo.js","sources":["../../../../components/ip-input/_example/paste-demo.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst PasteDemoExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>\n 尝试粘贴以下内容:\n <ul style={{ margin: \"8px 0\", paddingLeft: \"20px\" }}>\n <li>192.168.0.1</li>\n <li>192.168.0.1/24</li>\n <li>abc 10.0.0.1 xyz(会自动提取 IP)</li>\n <li>2001:db8::1(需要开启 IPv6)</li>\n </ul>\n </div>\n <IPInput value={value} onChange={setValue} allowCIDR={true} allowIPv6={true} showClear={true} />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default PasteDemoExample;\n"],"names":["PasteDemoExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","color","fontSize","margin","paddingLeft","IPInput","onChange","allowCIDR","allowIPv6","showClear"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,mBAAmB,SAAnBA,mBAAyB;AAC7B,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;GAAA,EAAG,wDAAA,iBAE/CP,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA;AAAGC,IAAAA,OAAO;AAAEM,MAAAA,MAAA,EAAQ,OAAA;AAASC,MAAAA,WAAA,EAAa;AAAO;GAAA,iBAChDT,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,aAAW,kBACfD,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,gBAAc,CAAA,iBAClBD,cAAA,CAAAC,aAAA,CAAC,IAAA,EAAA,IAAA,EAAG,+DAA0B,CAAA,8CAC7B,IAAA,EAAA,IAAA,EAAG,sDAAsB,CAC5B,CACF,kBACAD,cAAA,CAAAC,aAAA,CAACS,OAAA,EAAA;AAAQZ,IAAAA,KAAA,EAAAA,KAAA;AAAca,IAAAA,QAAA,EAAUZ;AAAUa,IAAAA,SAAA,EAAW,IAAA;AAAMC,IAAAA,SAAA,EAAW,IAAA;AAAMC,IAAAA,SAAA,EAAW;GAAM,CAAA,iBAC9Fd,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,UAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMT,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
@@ -0,0 +1,52 @@
1
+ import React__default from 'react';
2
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
3
+ import '../../_chunks/dep-Cwish4GD.js';
4
+ import '../../_chunks/dep-D-UKOauR.js';
5
+ import '../../_chunks/dep-CgyDw_YI.js';
6
+ import '../../_chunks/dep-CzLhKWCf.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var StatesExample = function StatesExample() {
19
+ return /* @__PURE__ */React__default.createElement("div", {
20
+ style: {
21
+ display: "flex",
22
+ flexDirection: "column",
23
+ gap: "16px"
24
+ }
25
+ }, /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
26
+ style: {
27
+ marginBottom: "8px",
28
+ color: "#666"
29
+ }
30
+ }, "\u6B63\u5E38\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
31
+ defaultValue: "192.168.0.1"
32
+ })), /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
33
+ style: {
34
+ marginBottom: "8px",
35
+ color: "#666"
36
+ }
37
+ }, "\u7981\u7528\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
38
+ defaultValue: "192.168.0.1",
39
+ disabled: true
40
+ })), /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
41
+ style: {
42
+ marginBottom: "8px",
43
+ color: "#666"
44
+ }
45
+ }, "\u53EA\u8BFB\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
46
+ defaultValue: "192.168.0.1",
47
+ readOnly: true
48
+ })));
49
+ };
50
+
51
+ export { StatesExample as default };
52
+ //# sourceMappingURL=states.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"states.js","sources":["../../../../components/ip-input/_example/states.tsx"],"sourcesContent":["import React from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst StatesExample = () => (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>正常状态</div>\n <IPInput defaultValue=\"192.168.0.1\" />\n </div>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>禁用状态</div>\n <IPInput defaultValue=\"192.168.0.1\" disabled />\n </div>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>只读状态</div>\n <IPInput defaultValue=\"192.168.0.1\" readOnly />\n </div>\n </div>\n);\n\nexport default StatesExample;"],"names":["StatesExample","React","createElement","style","display","flexDirection","gap","marginBottom","color","IPInput","defaultValue","disabled","readOnly"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,aAAA,GAAgB,SAAhBA,aAAAA,GAAA;AAAA,EAAA,sBACJC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,OAAO;AAAEC,MAAAA,OAAA,EAAS,MAAA;AAAQC,MAAAA,aAAA,EAAe;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAAC,4BACCD,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,YAAA,EAAc,KAAA;AAAOC,MAAAA,KAAA,EAAO;AAAO;KAAG,0BAAI,CAAA,iBACxDP,cAAA,CAAAC,aAAA,CAACO,OAAA,EAAA;AAAQC,IAAAA,cAAa;AAAA,GAAc,CACtC,CAAA,iBACAT,cAAA,CAAAC,aAAA,CAAC,4BACCD,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,YAAA,EAAc,KAAA;AAAOC,MAAAA,KAAA,EAAO;AAAO;KAAG,0BAAI,CAAA,iBACxDP,cAAA,CAAAC,aAAA,CAACO,OAAA,EAAA;AAAQC,IAAAA,cAAa,aAAA;AAAcC,IAAAA,QAAA,EAAQ;AAAA,GAAC,CAC/C,kBACAV,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA,IAAA,iBACCD,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,OAAO;AAAEI,MAAAA,YAAA,EAAc,KAAA;AAAOC,MAAAA,KAAA,EAAO;AAAO;GAAA,EAAG,0BAAI,CAAA,iBACxDP,cAAA,CAAAC,aAAA,CAACO;AAAQC,IAAAA,YAAA,EAAa,aAAA;AAAcE,IAAAA,QAAA,EAAQ;GAAC,CAC/C,CACF,CAAA;AAAA;;;;"}
@@ -0,0 +1,47 @@
1
+ import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
2
+ import React__default, { useState } from 'react';
3
+ import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
4
+ import '../../_chunks/dep-Cwish4GD.js';
5
+ import '../../_chunks/dep-D-UKOauR.js';
6
+ import '../../_chunks/dep-CgyDw_YI.js';
7
+ import 'classnames';
8
+ import '@tendaui/icons';
9
+ import '../../_chunks/dep-DGvfel3I.js';
10
+ import '../../_chunks/dep-grkSd2UB.js';
11
+ import 'lodash-es';
12
+ import '../../_chunks/dep-u1x3x6MJ.js';
13
+ import '../../config-provider/ConfigContext.js';
14
+ import '../../_chunks/dep--nQ-cjme.js';
15
+ import 'dayjs';
16
+ import '../style/css.js';
17
+
18
+ var WithCIDRExample = function WithCIDRExample() {
19
+ var _useState = useState(""),
20
+ _useState2 = _slicedToArray(_useState, 2),
21
+ value = _useState2[0],
22
+ setValue = _useState2[1];
23
+ return /* @__PURE__ */React__default.createElement("div", {
24
+ style: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: "16px"
28
+ }
29
+ }, /* @__PURE__ */React__default.createElement(IPInput, {
30
+ value: value,
31
+ onChange: function onChange(val) {
32
+ setValue(val);
33
+ console.log("\u503C:", val);
34
+ },
35
+ allowCIDR: true,
36
+ showClear: true,
37
+ placeholder: "192.168.0.1/24"
38
+ }), /* @__PURE__ */React__default.createElement("div", {
39
+ style: {
40
+ color: "#666",
41
+ fontSize: "12px"
42
+ }
43
+ }, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
44
+ };
45
+
46
+ export { WithCIDRExample as default };
47
+ //# sourceMappingURL=with-cidr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-cidr.js","sources":["../../../../components/ip-input/_example/with-cidr.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst WithCIDRExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={(val) => {\n setValue(val);\n console.log(\"值:\", val);\n }}\n allowCIDR={true}\n showClear={true}\n placeholder=\"192.168.0.1/24\"\n />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default WithCIDRExample;"],"names":["WithCIDRExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","val","console","log","allowCIDR","showClear","placeholder","color","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,kBAAkB,SAAlBA,kBAAwB;AAC5B,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,GAAA,EAAQ;MACjBT,QAAA,CAASS,GAAG,CAAA;AACZC,MAAAA,OAAA,CAAQC,GAAA,CAAI,WAAMF,GAAG,CAAA;IACvB,CAAA;AACAG,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY;GACd,CAAA,iBACAb,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEY,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMjB,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
@@ -1,4 +1,4 @@
1
- export { I as IPInput, e as extractIPFromText, b as isValidCIDRMask, a as isValidIPv4, i as isValidIPv4Segment, c as isValidIPv6, p as parseIPv4ToSegments, s as segmentsToIPv4 } from '../_chunks/dep-D68MD94M.js';
1
+ export { I as IPInput, e as extractIPFromText, b as isValidCIDRMask, a as isValidIPv4, i as isValidIPv4Segment, c as isValidIPv6, p as parseIPv4ToSegments, s as segmentsToIPv4 } from '../_chunks/dep-BZdpKjaa.js';
2
2
  import '../_chunks/dep-Cwish4GD.js';
3
3
  import '../_chunks/dep-D-UKOauR.js';
4
4
  import '../_chunks/dep-CgyDw_YI.js';
@@ -7,10 +7,11 @@ import 'react';
7
7
  import 'classnames';
8
8
  import '@tendaui/icons';
9
9
  import '../_chunks/dep-DGvfel3I.js';
10
- import '../_chunks/dep-DwWrhxkd.js';
10
+ import '../_chunks/dep-grkSd2UB.js';
11
11
  import 'lodash-es';
12
- import '../_chunks/dep-gy8uvBaS.js';
13
- import '../_chunks/dep-5U9UjDaf.js';
12
+ import '../_chunks/dep-u1x3x6MJ.js';
13
+ import '../config-provider/ConfigContext.js';
14
+ import '../_chunks/dep--nQ-cjme.js';
14
15
  import 'dayjs';
15
16
  import './style/css.js';
16
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1,11 +1,12 @@
1
1
  import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
2
2
  import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
3
- import React from 'react';
3
+ import React__default from 'react';
4
4
  import classNames from 'classnames';
5
- import { u as useConfig } from '../_chunks/dep-gy8uvBaS.js';
5
+ import { u as useConfig } from '../_chunks/dep-u1x3x6MJ.js';
6
6
  import { u as useDefaultProps } from '../_chunks/dep-DGvfel3I.js';
7
7
  import '../_chunks/dep-D-UKOauR.js';
8
- import '../_chunks/dep-5U9UjDaf.js';
8
+ import '../config-provider/ConfigContext.js';
9
+ import '../_chunks/dep--nQ-cjme.js';
9
10
  import 'dayjs';
10
11
 
11
12
  var _excluded = ["width", "className", "style", "children"];
@@ -30,7 +31,7 @@ var Aside = function Aside(props) {
30
31
  minWidth: asideWidth,
31
32
  flex: "0 0 ".concat(asideWidth)
32
33
  }, style);
33
- return /* @__PURE__ */React.createElement("aside", _objectSpread({
34
+ return /* @__PURE__ */React__default.createElement("aside", _objectSpread({
34
35
  className: asideClassNames,
35
36
  style: asideStyle
36
37
  }, otherAsideProps), children);
@@ -1 +1 @@
1
- {"version":3,"file":"Aside.js","sources":["../../../components/layout/Aside.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { TdAsideProps } from \"./type\";\nimport { StyledProps } from \"../common\";\nimport useDefaultProps from \"../hooks/useDefaultProps\";\nexport interface AsideProps extends TdAsideProps, StyledProps {\n /**\n * 文本内容\n */\n children?: React.ReactNode;\n}\n\nconst Aside: React.FC<AsideProps> = (props) => {\n const { width, className, style, children, ...otherAsideProps } = useDefaultProps(props, { width: \"232px\" });\n\n const { classPrefix } = useConfig();\n const asideClassNames = classNames(`${classPrefix}-layout__sider`, className);\n const asideWidth: string = typeof width === \"number\" ? `${width}px` : width;\n\n const asideStyle: React.CSSProperties = {\n width: asideWidth,\n maxWidth: asideWidth,\n minWidth: asideWidth,\n flex: `0 0 ${asideWidth}`,\n ...style\n };\n\n return (\n <aside className={asideClassNames} style={asideStyle} {...otherAsideProps}>\n {children}\n </aside>\n );\n};\n\nAside.displayName = \"Aside\";\n\nexport default Aside;\n"],"names":["Aside","props","_useDefaultProps","useDefaultProps","width","className","style","children","otherAsideProps","_objectWithoutProperties","_excluded","_useConfig","useConfig","classPrefix","asideClassNames","classNames","concat","asideWidth","asideStyle","_objectSpread","maxWidth","minWidth","flex","React","createElement","displayName"],"mappings":";;;;;;;;;;;;;AAaA,IAAMA,KAAA,GAA8B,SAA9BA,KAAAA,CAA+BC,KAAA,EAAU;AAC7C,EAAA,IAAAC,gBAAA,GAAkEC,eAAA,CAAgBF,KAAA,EAAO;AAAEG,MAAAA,KAAA,EAAO;AAAQ,KAAC,CAAA;IAAnGA,KAAA,GAAAF,gBAAA,CAAAE,KAAA;IAAOC,SAAA,GAAAH,gBAAA,CAAAG,SAAA;IAAWC,KAAA,GAAAJ,gBAAA,CAAAI,KAAA;IAAOC,QAAA,GAAAL,gBAAA,CAAAK,QAAA;AAAaC,IAAAA,eAAA,GAAAC,wBAAA,CAAAP,gBAAA,EAAAQ,SAAA,CAAA;AAE9C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;EACR,IAAMC,eAAA,GAAkBC,UAAA,CAAA,EAAA,CAAAC,MAAA,CAAcH,WAAW,EAAA,gBAAA,CAAA,EAAkBR,SAAS,CAAA;EAC5E,IAAMY,aAAqB,OAAOb,KAAA,KAAU,QAAA,GAAA,EAAA,CAAAY,MAAA,CAAcZ,KAAK,EAAA,IAAA,CAAA,GAAOA,KAAA;EAEtE,IAAMc,UAAA,GAAAC,aAAA,CAAA;AACJf,IAAAA,KAAA,EAAOa,UAAA;AACPG,IAAAA,QAAA,EAAUH,UAAA;AACVI,IAAAA,QAAA,EAAUJ,UAAA;IACVK,IAAA,EAAA,MAAA,CAAAN,MAAA,CAAaC,UAAU;AAAA,GAAA,EACpBX,KAAA,CACL;AAEA,EAAA,sBACEiB,KAAA,CAAAC,aAAA,CAAC;AAAMnB,IAAAA,SAAA,EAAWS,eAAA;AAAiBR,IAAAA,OAAOY;GAAA,EAAgBV,kBACvDD,QACH,CAAA;AAEJ;AAEAP,KAAA,CAAMyB,WAAA,GAAc,OAAA;;;;"}
1
+ {"version":3,"file":"Aside.js","sources":["../../../components/layout/Aside.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { TdAsideProps } from \"./type\";\nimport { StyledProps } from \"../common\";\nimport useDefaultProps from \"../hooks/useDefaultProps\";\nexport interface AsideProps extends TdAsideProps, StyledProps {\n /**\n * 文本内容\n */\n children?: React.ReactNode;\n}\n\nconst Aside: React.FC<AsideProps> = (props) => {\n const { width, className, style, children, ...otherAsideProps } = useDefaultProps(props, { width: \"232px\" });\n\n const { classPrefix } = useConfig();\n const asideClassNames = classNames(`${classPrefix}-layout__sider`, className);\n const asideWidth: string = typeof width === \"number\" ? `${width}px` : width;\n\n const asideStyle: React.CSSProperties = {\n width: asideWidth,\n maxWidth: asideWidth,\n minWidth: asideWidth,\n flex: `0 0 ${asideWidth}`,\n ...style\n };\n\n return (\n <aside className={asideClassNames} style={asideStyle} {...otherAsideProps}>\n {children}\n </aside>\n );\n};\n\nAside.displayName = \"Aside\";\n\nexport default Aside;\n"],"names":["Aside","props","_useDefaultProps","useDefaultProps","width","className","style","children","otherAsideProps","_objectWithoutProperties","_excluded","_useConfig","useConfig","classPrefix","asideClassNames","classNames","concat","asideWidth","asideStyle","_objectSpread","maxWidth","minWidth","flex","React","createElement","displayName"],"mappings":";;;;;;;;;;;;;;AAaA,IAAMA,KAAA,GAA8B,SAA9BA,KAAAA,CAA+BC,KAAA,EAAU;AAC7C,EAAA,IAAAC,gBAAA,GAAkEC,eAAA,CAAgBF,KAAA,EAAO;AAAEG,MAAAA,KAAA,EAAO;AAAQ,KAAC,CAAA;IAAnGA,KAAA,GAAAF,gBAAA,CAAAE,KAAA;IAAOC,SAAA,GAAAH,gBAAA,CAAAG,SAAA;IAAWC,KAAA,GAAAJ,gBAAA,CAAAI,KAAA;IAAOC,QAAA,GAAAL,gBAAA,CAAAK,QAAA;AAAaC,IAAAA,eAAA,GAAAC,wBAAA,CAAAP,gBAAA,EAAAQ,SAAA,CAAA;AAE9C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;EACR,IAAMC,eAAA,GAAkBC,UAAA,CAAA,EAAA,CAAAC,MAAA,CAAcH,WAAW,EAAA,gBAAA,CAAA,EAAkBR,SAAS,CAAA;EAC5E,IAAMY,aAAqB,OAAOb,KAAA,KAAU,QAAA,GAAA,EAAA,CAAAY,MAAA,CAAcZ,KAAK,EAAA,IAAA,CAAA,GAAOA,KAAA;EAEtE,IAAMc,UAAA,GAAAC,aAAA,CAAA;AACJf,IAAAA,KAAA,EAAOa,UAAA;AACPG,IAAAA,QAAA,EAAUH,UAAA;AACVI,IAAAA,QAAA,EAAUJ,UAAA;IACVK,IAAA,EAAA,MAAA,CAAAN,MAAA,CAAaC,UAAU;AAAA,GAAA,EACpBX,KAAA,CACL;AAEA,EAAA,sBACEiB,cAAA,CAAAC,aAAA,CAAC;AAAMnB,IAAAA,SAAA,EAAWS,eAAA;AAAiBR,IAAAA,OAAOY;GAAA,EAAgBV,kBACvDD,QACH,CAAA;AAEJ;AAEAP,KAAA,CAAMyB,WAAA,GAAc,OAAA;;;;"}
@@ -1,12 +1,13 @@
1
1
  import { _ as _typeof } from '../_chunks/dep-D-UKOauR.js';
2
2
  import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
3
3
  import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
4
- import React, { useMemo } from 'react';
4
+ import React__default, { useMemo } from 'react';
5
5
  import classNames from 'classnames';
6
- import { u as useConfig } from '../_chunks/dep-gy8uvBaS.js';
6
+ import { u as useConfig } from '../_chunks/dep-u1x3x6MJ.js';
7
7
  import Aside from './Aside.js';
8
- import { p as parseTNode } from '../_chunks/dep-D6YxJv-F.js';
9
- import '../_chunks/dep-5U9UjDaf.js';
8
+ import { p as parseTNode } from '../_chunks/dep-spxR0DG0.js';
9
+ import '../config-provider/ConfigContext.js';
10
+ import '../_chunks/dep--nQ-cjme.js';
10
11
  import 'dayjs';
11
12
  import '../_chunks/dep-DGvfel3I.js';
12
13
  import 'lodash-es';
@@ -28,7 +29,7 @@ var Header = function Header(props) {
28
29
  others = _objectWithoutProperties(props, _excluded);
29
30
  var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
30
31
  var headerClassNames = classNames("".concat(classPrefix, "-layout__header"), className);
31
- return /* @__PURE__ */React.createElement("header", _objectSpread({
32
+ return /* @__PURE__ */React__default.createElement("header", _objectSpread({
32
33
  className: headerClassNames,
33
34
  style: _objectSpread({
34
35
  height: renderHeight
@@ -46,7 +47,7 @@ var Footer = function Footer(props) {
46
47
  others = _objectWithoutProperties(props, _excluded2);
47
48
  var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
48
49
  var footerClassNames = classNames("".concat(classPrefix, "-layout__footer"), className);
49
- return /* @__PURE__ */React.createElement("footer", _objectSpread({
50
+ return /* @__PURE__ */React__default.createElement("footer", _objectSpread({
50
51
  className: footerClassNames,
51
52
  style: _objectSpread({
52
53
  height: renderHeight
@@ -62,7 +63,7 @@ var Content = function Content(props) {
62
63
  content = props.content,
63
64
  others = _objectWithoutProperties(props, _excluded3);
64
65
  var contentClassNames = classNames("".concat(classPrefix, "-layout__content"), className);
65
- return /* @__PURE__ */React.createElement("main", _objectSpread({
66
+ return /* @__PURE__ */React__default.createElement("main", _objectSpread({
66
67
  className: contentClassNames,
67
68
  style: style
68
69
  }, others), parseTNode(content) || parseTNode(children));
@@ -75,7 +76,7 @@ var Layout = function Layout(props) {
75
76
  otherLayoutProps = _objectWithoutProperties(props, _excluded4);
76
77
  var shouldAsides = useMemo(function () {
77
78
  var asides = [];
78
- React.Children.forEach(children, function (child) {
79
+ React__default.Children.forEach(children, function (child) {
79
80
  if (!child || _typeof(child) !== "object") {
80
81
  return;
81
82
  }
@@ -88,7 +89,7 @@ var Layout = function Layout(props) {
88
89
  var _useConfig4 = useConfig(),
89
90
  classPrefix = _useConfig4.classPrefix;
90
91
  var layoutClassNames = classNames("".concat(classPrefix, "-layout"), _defineProperty(_defineProperty({}, "".concat(classPrefix, "-layout--with-sider"), shouldAsides), "".concat(classPrefix, "-layout__direction-").concat(direction), direction), className);
91
- return /* @__PURE__ */React.createElement("div", _objectSpread({
92
+ return /* @__PURE__ */React__default.createElement("div", _objectSpread({
92
93
  className: layoutClassNames,
93
94
  style: style
94
95
  }, otherLayoutProps), parseTNode(children));
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.js","sources":["../../../components/layout/Layout.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { StyledProps } from \"../common\";\nimport { TdLayoutProps, TdHeaderProps, TdFooterProps } from \"./type\";\nimport { useMemo } from \"react\";\nimport Aside from \"./Aside\";\nimport parseTNode from \"../utils/parseTNode\";\nexport interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\nexport interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\nconst Header: React.FC<HeaderProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const headerClassNames = classNames(`${classPrefix}-layout__header`, className);\n return (\n <header className={headerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </header>\n );\n};\n\nconst Footer: React.FC<FooterProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const footerClassNames = classNames(`${classPrefix}-layout__footer`, className);\n return (\n <footer className={footerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </footer>\n );\n};\nconst Content: React.FC<ContentProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style, children, content, ...others } = props;\n const contentClassNames = classNames(`${classPrefix}-layout__content`, className);\n return (\n <main className={contentClassNames} style={style} {...others}>\n {parseTNode(content) || parseTNode(children)}\n </main>\n );\n};\n\nconst Layout: React.FC<LayoutProps> & {\n Header: typeof Header;\n Content: typeof Content;\n Footer: typeof Footer;\n Aside: typeof Aside;\n} = (props) => {\n const { direction, className, style, children, ...otherLayoutProps } = props;\n\n const shouldAsides = useMemo(() => {\n const asides: React.ReactElement[] = [];\n React.Children.forEach(children, (child: React.ReactElement) => {\n if (!child || typeof child !== \"object\") {\n return;\n }\n if (child.type === Aside) {\n asides.push(child);\n }\n });\n return !!asides.length;\n }, [children]);\n\n const { classPrefix } = useConfig();\n const layoutClassNames = classNames(\n `${classPrefix}-layout`,\n {\n [`${classPrefix}-layout--with-sider`]: shouldAsides,\n [`${classPrefix}-layout__direction-${direction}`]: direction\n },\n className\n );\n\n return (\n <div className={layoutClassNames} style={style} {...otherLayoutProps}>\n {parseTNode(children)}\n </div>\n );\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Aside = Aside;\n\nHeader.displayName = \"Header\";\nContent.displayName = \"Content\";\nFooter.displayName = \"Footer\";\nLayout.displayName = \"Layout\";\n\nexport default Layout;\n"],"names":["Header","props","_useConfig","useConfig","classPrefix","className","style","_props$style","children","height","others","_objectWithoutProperties","_excluded","renderHeight","isNaN","Number","concat","headerClassNames","classNames","React","createElement","_objectSpread","parseTNode","Footer","_useConfig2","_props$style2","_excluded2","footerClassNames","Content","_useConfig3","content","_excluded3","contentClassNames","Layout","direction","otherLayoutProps","_excluded4","shouldAsides","useMemo","asides","Children","forEach","child","_typeof","type","Aside","push","length","_useConfig4","layoutClassNames","_defineProperty","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,MAAA,GAAgC,SAAhCA,MAAAA,CAAiCC,KAAA,EAAU;AAC/C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1B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SAAS,CAAA,EAAKA,SAAA,CAAA,EAErD7B,SACF,CAAA;AAEA,EAAA,sBACEc,KAAA,CAAAC,aAAA,CAAC;AAAIf,IAAAA,SAAA,EAAW4C,gBAAA;AAAkB3C,IAAAA,OAAAA;KAAkB6B,gBAAA,CAAA,EACjDb,UAAA,CAAWd,QAAQ,CACtB,CAAA;AAEJ;AAEAyB,MAAA,CAAOjC,MAAA,GAASA,MAAA;AAChBiC,MAAA,CAAOL,OAAA,GAAUA,OAAA;AACjBK,MAAA,CAAOV,MAAA,GAASA,MAAA;AAChBU,MAAA,CAAOY,KAAA,GAAQA,KAAA;AAEf7C,MAAA,CAAOmD,WAAA,GAAc,QAAA;AACrBvB,OAAA,CAAQuB,WAAA,GAAc,SAAA;AACtB5B,MAAA,CAAO4B,WAAA,GAAc,QAAA;AACrBlB,MAAA,CAAOkB,WAAA,GAAc,QAAA;;;;"}
1
+ {"version":3,"file":"Layout.js","sources":["../../../components/layout/Layout.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { StyledProps } from \"../common\";\nimport { TdLayoutProps, TdHeaderProps, TdFooterProps } from \"./type\";\nimport { useMemo } from \"react\";\nimport Aside from \"./Aside\";\nimport parseTNode from \"../utils/parseTNode\";\nexport interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\nexport interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\nconst Header: React.FC<HeaderProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const headerClassNames = classNames(`${classPrefix}-layout__header`, className);\n return (\n <header className={headerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </header>\n );\n};\n\nconst Footer: React.FC<FooterProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const footerClassNames = classNames(`${classPrefix}-layout__footer`, className);\n return (\n <footer className={footerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </footer>\n );\n};\nconst Content: React.FC<ContentProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style, children, content, ...others } = props;\n const contentClassNames = classNames(`${classPrefix}-layout__content`, className);\n return (\n <main className={contentClassNames} style={style} {...others}>\n {parseTNode(content) || parseTNode(children)}\n </main>\n );\n};\n\nconst Layout: React.FC<LayoutProps> & {\n Header: typeof Header;\n Content: typeof Content;\n Footer: typeof Footer;\n Aside: typeof Aside;\n} = (props) => {\n const { direction, className, style, children, ...otherLayoutProps } = props;\n\n const shouldAsides = useMemo(() => {\n const asides: React.ReactElement[] = [];\n React.Children.forEach(children, (child: React.ReactElement) => {\n if (!child || typeof child !== \"object\") {\n return;\n }\n if (child.type === Aside) {\n asides.push(child);\n }\n });\n return !!asides.length;\n }, [children]);\n\n const { classPrefix } = useConfig();\n const layoutClassNames = classNames(\n `${classPrefix}-layout`,\n {\n [`${classPrefix}-layout--with-sider`]: shouldAsides,\n [`${classPrefix}-layout__direction-${direction}`]: direction\n },\n className\n );\n\n return (\n <div className={layoutClassNames} style={style} {...otherLayoutProps}>\n {parseTNode(children)}\n </div>\n );\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Aside = Aside;\n\nHeader.displayName = \"Header\";\nContent.displayName = \"Content\";\nFooter.displayName = \"Footer\";\nLayout.displayName = \"Layout\";\n\nexport default Layout;\n"],"names":["Header","props","_useConfig","useConfig","classPrefix","className","style","_props$style","children","height","others","_objectWithoutProperties","_excluded","renderHeight","isNaN","Number","concat","headerClassNames","classNames","React","createElement","_objectSpread","parseTNode","Footer","_useConfig2","_props$style2","_excluded2","footerClassNames","Content","_useConfig3","content","_excluded3","contentClassNames","Layout","direction","otherLayoutProps","_excluded4","shouldAsides","useMemo","asides","Children","forEach","child","_typeof","type","Aside","push","length","_useConfig4","layoutClassNames","_defineProperty","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,MAAA,GAAgC,SAAhCA,MAAAA,CAAiCC,KAAA,EAAU;AAC/C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;AACR,EAAA,IAAQC,YAAuDJ,KAAA,CAAvDI;mBAAuDJ,KAAA,CAA5CK,KAAA;AAAAA,IAAAA,KAAA,GAAAC,YAAA,KAAA,KAAA,CAAA,GAAQ;IAAIC,QAAA,GAAgCP,KAAA,CAAhCO,QAAA;IAAUC,MAAA,GAAsBR,KAAA,CAAtBQ,MAAA;AAAWC,IAAAA,MAAA,GAAAC,wBAAA,CAAWV,KAAA,EAAAW,SAAA,CAAA;AAC/D,EAAA,IAAMC,YAAA,GAAeC,MAAMC,MAAA,CAAON,MAAM,CAAC,CAAA,GAAIA,MAAA,GAAA,EAAA,CAAAO,MAAA,CAAYP,MAAM,EAAA,IAAA,CAAA;EAC/D,IAAMQ,gBAAA,GAAmBC,UAAA,CAAA,EAAA,CAAAF,MAAA,CAAcZ,WAAW,EAAA,iBAAA,CAAA,EAAmBC,SAAS,CAAA;AAC9E,EAAA,sBACEc,cAAA,CAAAC,aAAA,CAAC,QAAA,EAAAC,aAAA,CAAA;AAAOhB,IAAAA,SAAA,EAAWY,gBAAA;AAAkBX,IAAAA;AAASG,MAAAA,MAAA,EAAQI;AAAA,KAAA,EAAiBP;AAAM,GAAA,EAAOI,MAAA,CAAA,EACjFY,UAAA,CAAWd,QAAQ,CACtB,CAAA;AAEJ,CAAA;AAEA,IAAMe,MAA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A,IAAAwC,WAAA,GAAwB7C,SAAA,EAAU;IAA1BC,WAAA,GAAA4C,WAAA,CAAA5C,WAAA;AACR,EAAA,IAAM6C,gBAAA,GAAmB/B,UAAA,CAAA,EAAA,CAAAF,MAAA,CACpBZ,WAAW,EAAA,SAAA,CAAA,EAAA8C,eAAA,CAAAA,eAAA,CAAA,EAAA,EAAA,EAAA,CAAAlC,MAAA,CAERZ,WAAW,EAAA,qBAAA,CAAA,EAAwBiC,YAAA,CAAA,EAAA,EAAA,CAAArB,MAAA,CACnCZ,WAAW,EAAA,qBAAA,CAAA,CAAAY,MAAA,CAAsBkB,SAAS,CAAA,EAAKA,SAAA,CAAA,EAErD7B,SACF,CAAA;AAEA,EAAA,sBACEc,cAAA,CAAAC,aAAA,CAAC;AAAIf,IAAAA,SAAA,EAAW4C,gBAAA;AAAkB3C,IAAAA,OAAAA;KAAkB6B,gBAAA,CAAA,EACjDb,UAAA,CAAWd,QAAQ,CACtB,CAAA;AAEJ;AAEAyB,MAAA,CAAOjC,MAAA,GAASA,MAAA;AAChBiC,MAAA,CAAOL,OAAA,GAAUA,OAAA;AACjBK,MAAA,CAAOV,MAAA,GAASA,MAAA;AAChBU,MAAA,CAAOY,KAAA,GAAQA,KAAA;AAEf7C,MAAA,CAAOmD,WAAA,GAAc,QAAA;AACrBvB,OAAA,CAAQuB,WAAA,GAAc,SAAA;AACtB5B,MAAA,CAAO4B,WAAA,GAAc,QAAA;AACrBlB,MAAA,CAAOkB,WAAA,GAAc,QAAA;;;;"}
@@ -0,0 +1,68 @@
1
+ import React__default from 'react';
2
+ import { Layout } from '../index.js';
3
+ import '../Layout.js';
4
+ import '../../_chunks/dep-D-UKOauR.js';
5
+ import '../../_chunks/dep-Cwish4GD.js';
6
+ import '../../_chunks/dep-DN7d1SzH.js';
7
+ import 'classnames';
8
+ import '../../_chunks/dep-u1x3x6MJ.js';
9
+ import '../../config-provider/ConfigContext.js';
10
+ import '../../_chunks/dep--nQ-cjme.js';
11
+ import 'dayjs';
12
+ import '../Aside.js';
13
+ import '../../_chunks/dep-DGvfel3I.js';
14
+ import '../../_chunks/dep-spxR0DG0.js';
15
+ import 'lodash-es';
16
+ import '../style/css.js';
17
+
18
+ var Header = Layout.Header,
19
+ Content = Layout.Content,
20
+ Footer = Layout.Footer,
21
+ Aside = Layout.Aside;
22
+ var demoStyles = {
23
+ header: {
24
+ background: "var(--td-brand-color-9)",
25
+ color: "var(--td-text-color-anti)",
26
+ fontSize: "14px",
27
+ lineHeight: "64px",
28
+ textAlign: "center"
29
+ },
30
+ aside: {
31
+ background: "var(--td-brand-color-8)",
32
+ color: "var(--td-text-color-anti)",
33
+ fontSize: "14px",
34
+ display: "flex",
35
+ alignItems: "center",
36
+ justifyContent: "center"
37
+ },
38
+ content: {
39
+ background: "var(--td-brand-color-5)",
40
+ color: "var(--td-text-color-anti)",
41
+ fontSize: "14px",
42
+ height: "120px",
43
+ display: "flex",
44
+ alignItems: "center",
45
+ justifyContent: "center"
46
+ },
47
+ footer: {
48
+ background: "var(--td-brand-color-9)",
49
+ color: "var(--td-text-color-anti)",
50
+ fontSize: "12px",
51
+ textAlign: "center",
52
+ lineHeight: "48px"
53
+ }
54
+ };
55
+ var CombineLeftLayout = function CombineLeftLayout() {
56
+ return /* @__PURE__ */React__default.createElement(Layout, null, /* @__PURE__ */React__default.createElement(Header, {
57
+ style: demoStyles.header
58
+ }, "Header"), /* @__PURE__ */React__default.createElement(Layout, null, /* @__PURE__ */React__default.createElement(Aside, {
59
+ style: demoStyles.aside
60
+ }, "Aside"), /* @__PURE__ */React__default.createElement(Layout, null, /* @__PURE__ */React__default.createElement(Content, {
61
+ style: demoStyles.content
62
+ }, "Content"), /* @__PURE__ */React__default.createElement(Footer, {
63
+ style: demoStyles.footer
64
+ }, "Copyright @ 2019-2024 All Rights Reserved"))));
65
+ };
66
+
67
+ export { CombineLeftLayout as default };
68
+ //# sourceMappingURL=combine-left.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combine-left.js","sources":["../../../../components/layout/_example/combine-left.tsx"],"sourcesContent":["import React from \"react\";\nimport { Layout } from \"../index\";\n\nconst { Header, Content, Footer, Aside } = Layout;\n\n// 定义演示用的样式\nconst demoStyles = {\n header: {\n background: \"var(--td-brand-color-9)\",\n color: \"var(--td-text-color-anti)\",\n fontSize: \"14px\",\n lineHeight: \"64px\",\n textAlign: \"center\" as const\n },\n aside: {\n background: \"var(--td-brand-color-8)\",\n color: \"var(--td-text-color-anti)\",\n fontSize: \"14px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n },\n content: {\n background: \"var(--td-brand-color-5)\",\n color: \"var(--td-text-color-anti)\",\n fontSize: \"14px\",\n height: \"120px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n },\n footer: {\n background: \"var(--td-brand-color-9)\",\n color: \"var(--td-text-color-anti)\",\n fontSize: \"12px\",\n textAlign: \"center\" as const,\n lineHeight: \"48px\"\n }\n};\n\nconst CombineLeftLayout = () => (\n <Layout>\n <Header style={demoStyles.header}>Header</Header>\n <Layout>\n <Aside style={demoStyles.aside}>Aside</Aside>\n <Layout>\n <Content style={demoStyles.content}>Content</Content>\n <Footer style={demoStyles.footer}>Copyright @ 2019-2024 All Rights Reserved</Footer>\n </Layout>\n </Layout>\n </Layout>\n);\n\nexport default CombineLeftLayout;\n"],"names":["Header","Layout","Content","Footer","Aside","demoStyles","header","background","color","fontSize","lineHeight","textAlign","aside","display","alignItems","justifyContent","content","height","footer","CombineLeftLayout","React","createElement","style"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAQA,MAAA,GAAmCC,MAAA,CAAnCD,MAAA;EAAQE,OAAA,GAA2BD,MAAA,CAA3BC,OAAA;EAASC,MAAA,GAAkBF,MAAA,CAAlBE,MAAA;EAAQC,QAAUH,MAAA,CAAVG;AAGjC,IAAMC,UAAA,GAAa;AACjBC,EAAAA,MAAA,EAAQ;AACNC,IAAAA,UAAA,EAAY,yBAAA;AACZC,IAAAA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