@digitalc/dxp-ui 0.0.4 → 0.0.5-alpha-gomo.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 (417) hide show
  1. package/README.md +151 -11
  2. package/es/assets/iconFont/demo.css +539 -0
  3. package/es/assets/iconFont/demo_index.html +4400 -0
  4. package/es/assets/iconFont/iconfont.css +22 -6
  5. package/es/assets/iconFont/iconfont.eot +0 -0
  6. package/es/assets/iconFont/iconfont.json +28 -0
  7. package/es/assets/iconFont/iconfont.svg +8 -0
  8. package/es/assets/iconFont/iconfont.ttf +0 -0
  9. package/es/assets/iconFont/iconfont.woff +0 -0
  10. package/es/assets/iconFont/iconfont.woff2 +0 -0
  11. package/es/assets/react.svg +1 -0
  12. package/es/assets/token.json +902 -238
  13. package/es/components/Accordion/designTokens.d.ts +11 -0
  14. package/es/components/Accordion/designTokens.js +16 -0
  15. package/es/components/Accordion/index.d.ts +21 -0
  16. package/es/components/Accordion/index.js +77 -0
  17. package/es/components/Accordion/style/index.less +14 -0
  18. package/es/components/Accordion/style/variables.less +4 -0
  19. package/es/components/Amount/designTokens.d.ts +6 -0
  20. package/es/components/Amount/designTokens.js +9 -0
  21. package/es/components/Amount/index.d.ts +23 -0
  22. package/es/components/Amount/index.js +144 -0
  23. package/es/components/Amount/style/index.less +10 -0
  24. package/es/components/Amount/style/variables.less +4 -0
  25. package/es/components/Button/designTokens.js +6 -7
  26. package/es/components/Button/index.d.ts +17 -22
  27. package/es/components/Button/index.js +85 -46
  28. package/es/components/Button/style/{button.less → index.less} +6 -2
  29. package/es/components/Chip/designTokens.d.ts +15 -0
  30. package/es/components/Chip/designTokens.js +22 -0
  31. package/es/components/Chip/index.d.ts +13 -0
  32. package/es/components/Chip/index.js +98 -0
  33. package/es/components/Chip/style/index.less +9 -0
  34. package/es/components/Chip/style/variables.less +4 -0
  35. package/es/components/Divider/index.d.ts +16 -0
  36. package/es/components/Divider/index.js +55 -0
  37. package/es/components/Divider/style/index.less +78 -0
  38. package/es/components/Divider/style/variables.less +4 -0
  39. package/es/components/Drawer/designTokens.d.ts +16 -0
  40. package/es/components/Drawer/designTokens.js +27 -0
  41. package/es/components/Drawer/index.d.ts +21 -0
  42. package/es/components/Drawer/index.js +189 -0
  43. package/es/components/Drawer/style/index.less +73 -0
  44. package/es/components/Drawer/style/variables.less +8 -0
  45. package/es/components/Icon/Icon.d.ts +9 -0
  46. package/es/components/Icon/Icon.js +18 -0
  47. package/es/components/Icon/designTokens.d.ts +6 -0
  48. package/es/components/Icon/designTokens.js +7 -0
  49. package/es/components/Icon/index.d.ts +12 -0
  50. package/es/components/Icon/index.js +29 -0
  51. package/es/components/IconButton/designTokens.d.ts +21 -0
  52. package/es/components/IconButton/designTokens.js +39 -0
  53. package/es/components/IconButton/index.d.ts +24 -0
  54. package/es/components/IconButton/index.js +106 -0
  55. package/es/components/IconButton/style/index.less +59 -0
  56. package/es/components/IconButton/style/variables.less +5 -0
  57. package/es/components/IconButtonGroup/index.d.ts +15 -0
  58. package/es/components/IconButtonGroup/index.js +22 -0
  59. package/es/components/Image/index.d.ts +12 -0
  60. package/es/components/Image/index.js +33 -0
  61. package/es/components/ListItem/designTokens.d.ts +30 -0
  62. package/es/components/ListItem/designTokens.js +31 -0
  63. package/es/components/ListItem/index.d.ts +60 -0
  64. package/es/components/ListItem/index.js +227 -0
  65. package/es/components/ListItem/style/index.less +77 -0
  66. package/es/components/ListItem/style/variables.less +1 -0
  67. package/es/components/Modal/designTokens.d.ts +31 -0
  68. package/es/components/Modal/designTokens.js +35 -0
  69. package/es/components/Modal/index.d.ts +14 -0
  70. package/es/components/Modal/index.js +101 -0
  71. package/es/components/Modal/style/index.less +92 -0
  72. package/es/components/Modal/style/variables.less +5 -0
  73. package/es/components/Navigation/designTokens.d.ts +16 -0
  74. package/es/components/Navigation/designTokens.js +19 -0
  75. package/es/components/Navigation/index.d.ts +31 -0
  76. package/es/components/Navigation/index.js +110 -0
  77. package/es/components/Navigation/style/index.less +52 -0
  78. package/es/components/Navigation/style/variables.less +1 -0
  79. package/es/components/Search/designTokens.d.ts +34 -0
  80. package/es/components/Search/designTokens.js +51 -0
  81. package/es/components/Search/index.d.ts +13 -0
  82. package/es/components/Search/index.js +85 -0
  83. package/es/components/Search/style/index.less +32 -0
  84. package/es/components/Search/style/variables.less +5 -0
  85. package/es/components/Stepper/designTokens.d.ts +26 -0
  86. package/es/components/Stepper/designTokens.js +60 -0
  87. package/es/components/Stepper/index.d.ts +22 -0
  88. package/es/components/Stepper/index.js +153 -0
  89. package/es/components/Stepper/style/index.less +140 -0
  90. package/es/components/Stepper/style/variables.less +5 -0
  91. package/es/components/StickyFooter/designTokens.d.ts +10 -0
  92. package/es/components/StickyFooter/designTokens.js +17 -0
  93. package/es/components/StickyFooter/index.d.ts +17 -0
  94. package/es/components/StickyFooter/index.js +83 -0
  95. package/es/components/StickyFooter/style/index.less +18 -0
  96. package/es/components/StickyFooter/style/variables.less +4 -0
  97. package/es/components/Tabs/designTokens.d.ts +44 -0
  98. package/es/components/Tabs/designTokens.js +64 -0
  99. package/es/components/Tabs/index.d.ts +14 -0
  100. package/es/components/Tabs/index.js +102 -0
  101. package/es/components/Tabs/style/index.less +25 -0
  102. package/es/components/Tabs/style/variables.less +4 -0
  103. package/es/components/Tag/designTokens.d.ts +90 -0
  104. package/es/components/Tag/designTokens.js +124 -0
  105. package/es/components/Tag/index.d.ts +15 -0
  106. package/es/components/Tag/index.js +85 -0
  107. package/es/components/Tag/style/index.less +9 -0
  108. package/es/components/Tag/style/variables.less +4 -0
  109. package/es/components/Text/designTokens.d.ts +51 -0
  110. package/es/components/Text/designTokens.js +52 -0
  111. package/es/components/Text/index.d.ts +6 -25
  112. package/es/components/Text/index.js +69 -56
  113. package/es/components/Text/style/index.less +2 -0
  114. package/es/components/TextInputInside/designTokens.d.ts +38 -0
  115. package/es/components/TextInputInside/designTokens.js +59 -0
  116. package/es/components/TextInputInside/index.d.ts +10 -0
  117. package/es/components/TextInputInside/index.js +141 -0
  118. package/es/components/TextInputInside/style/index.less +36 -0
  119. package/es/components/TextInputInside/style/variables.less +5 -0
  120. package/es/components/TextInputOutside/designTokens.d.ts +41 -0
  121. package/es/components/TextInputOutside/designTokens.js +67 -0
  122. package/es/components/TextInputOutside/index.d.ts +18 -0
  123. package/es/components/TextInputOutside/index.js +66 -0
  124. package/es/components/TextInputOutside/style/index.less +4 -0
  125. package/es/components/TextInputOutside/style/variables.less +5 -0
  126. package/es/components/TextLink/designTokens.d.ts +10 -0
  127. package/es/components/TextLink/designTokens.js +11 -0
  128. package/es/components/TextLink/index.d.ts +20 -0
  129. package/es/components/TextLink/index.js +95 -0
  130. package/es/components/Toast/designTokens.d.ts +13 -0
  131. package/es/components/Toast/designTokens.js +20 -0
  132. package/es/components/Toast/index.d.ts +26 -0
  133. package/es/components/Toast/index.js +175 -0
  134. package/es/components/Toast/style/index.less +9 -0
  135. package/es/components/Toast/style/variables.less +12 -0
  136. package/es/components/Toggle/designTokens.d.ts +9 -0
  137. package/es/components/Toggle/designTokens.js +13 -0
  138. package/es/components/Toggle/index.d.ts +27 -0
  139. package/es/components/Toggle/index.js +21 -0
  140. package/es/components/index.d.ts +45 -0
  141. package/es/components/index.js +26 -2
  142. package/es/constants/index.d.ts +1 -0
  143. package/es/constants/index.js +2 -2
  144. package/es/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
  145. package/es/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
  146. package/es/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
  147. package/es/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
  148. package/es/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
  149. package/es/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
  150. package/es/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
  151. package/es/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
  152. package/es/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
  153. package/es/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
  154. package/es/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
  155. package/es/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
  156. package/es/index.d.ts +1 -0
  157. package/es/index.js +1 -2
  158. package/es/style/variables.less +53 -27
  159. package/es/tokens/DXPGlobal.d.ts +255 -193
  160. package/es/tokens/DXPGlobal.js +4 -3
  161. package/es/utils/noop.js +1 -2
  162. package/es/utils/scaleTool.d.ts +12 -0
  163. package/es/utils/scaleTool.js +48 -0
  164. package/es/utils/theme.d.ts +11 -0
  165. package/es/utils/theme.js +15 -0
  166. package/es/utils/themeContext.d.ts +35 -2
  167. package/es/utils/themeContext.js +27 -7
  168. package/es/utils/tokenHelper.js +1 -2
  169. package/es/utils/tokenManager.d.ts +110 -2
  170. package/es/utils/tokenManager.js +778 -724
  171. package/lib/assets/iconFont/demo.css +539 -0
  172. package/lib/assets/iconFont/demo_index.html +4400 -0
  173. package/lib/assets/iconFont/iconfont.css +750 -0
  174. package/lib/assets/iconFont/iconfont.eot +0 -0
  175. package/lib/assets/iconFont/iconfont.json +1290 -0
  176. package/lib/assets/iconFont/iconfont.svg +385 -0
  177. package/lib/assets/iconFont/iconfont.ttf +0 -0
  178. package/lib/assets/iconFont/iconfont.woff +0 -0
  179. package/lib/assets/iconFont/iconfont.woff2 +0 -0
  180. package/lib/assets/react.svg +1 -0
  181. package/lib/assets/token.json +903 -0
  182. package/lib/components/Accordion/designTokens.d.ts +11 -0
  183. package/lib/components/Accordion/designTokens.js +42 -0
  184. package/lib/components/Accordion/index.d.ts +21 -0
  185. package/lib/components/Accordion/index.js +96 -0
  186. package/lib/components/Accordion/style/index.less +14 -0
  187. package/lib/components/Accordion/style/variables.less +4 -0
  188. package/lib/components/Amount/designTokens.d.ts +6 -0
  189. package/lib/components/Amount/designTokens.js +33 -0
  190. package/lib/components/Amount/index.d.ts +23 -0
  191. package/lib/components/Amount/index.js +160 -0
  192. package/lib/components/Amount/style/index.less +10 -0
  193. package/lib/components/Amount/style/variables.less +4 -0
  194. package/lib/components/Button/demo/index.d.ts +3 -0
  195. package/lib/components/Button/demo/index.js +138 -0
  196. package/lib/components/Button/designTokens.d.ts +66 -0
  197. package/lib/components/Button/designTokens.js +139 -0
  198. package/lib/components/Button/index.d.ts +39 -0
  199. package/lib/components/Button/index.js +132 -0
  200. package/lib/components/Button/style/index.less +38 -0
  201. package/lib/components/Button/style/variables.less +5 -0
  202. package/lib/components/Chip/designTokens.d.ts +15 -0
  203. package/lib/components/Chip/designTokens.js +45 -0
  204. package/lib/components/Chip/index.d.ts +13 -0
  205. package/lib/components/Chip/index.js +178 -0
  206. package/lib/components/Chip/style/index.less +9 -0
  207. package/lib/components/Chip/style/variables.less +4 -0
  208. package/lib/components/Divider/index.d.ts +16 -0
  209. package/lib/components/Divider/index.js +111 -0
  210. package/lib/components/Divider/style/index.less +78 -0
  211. package/lib/components/Divider/style/variables.less +4 -0
  212. package/lib/components/Drawer/designTokens.d.ts +16 -0
  213. package/lib/components/Drawer/designTokens.js +62 -0
  214. package/lib/components/Drawer/index.d.ts +21 -0
  215. package/lib/components/Drawer/index.js +229 -0
  216. package/lib/components/Drawer/style/index.less +73 -0
  217. package/lib/components/Drawer/style/variables.less +8 -0
  218. package/lib/components/Icon/Icon.d.ts +9 -0
  219. package/lib/components/Icon/Icon.js +74 -0
  220. package/lib/components/Icon/designTokens.d.ts +6 -0
  221. package/lib/components/Icon/designTokens.js +41 -0
  222. package/lib/components/Icon/index.d.ts +12 -0
  223. package/lib/components/Icon/index.js +73 -0
  224. package/lib/components/IconButton/designTokens.d.ts +21 -0
  225. package/lib/components/IconButton/designTokens.js +61 -0
  226. package/lib/components/IconButton/index.d.ts +24 -0
  227. package/lib/components/IconButton/index.js +202 -0
  228. package/lib/components/IconButton/style/index.less +59 -0
  229. package/lib/components/IconButton/style/variables.less +5 -0
  230. package/lib/components/IconButtonGroup/index.d.ts +15 -0
  231. package/lib/components/IconButtonGroup/index.js +53 -0
  232. package/lib/components/Image/index.d.ts +12 -0
  233. package/lib/components/Image/index.js +102 -0
  234. package/lib/components/ListItem/designTokens.d.ts +30 -0
  235. package/lib/components/ListItem/designTokens.js +65 -0
  236. package/lib/components/ListItem/index.d.ts +60 -0
  237. package/lib/components/ListItem/index.js +348 -0
  238. package/lib/components/ListItem/style/index.less +77 -0
  239. package/lib/components/ListItem/style/variables.less +1 -0
  240. package/lib/components/Modal/designTokens.d.ts +31 -0
  241. package/lib/components/Modal/designTokens.js +88 -0
  242. package/lib/components/Modal/index.d.ts +14 -0
  243. package/lib/components/Modal/index.js +168 -0
  244. package/lib/components/Modal/style/index.less +92 -0
  245. package/lib/components/Modal/style/variables.less +5 -0
  246. package/lib/components/Navigation/designTokens.d.ts +16 -0
  247. package/lib/components/Navigation/designTokens.js +53 -0
  248. package/lib/components/Navigation/index.d.ts +31 -0
  249. package/lib/components/Navigation/index.js +174 -0
  250. package/lib/components/Navigation/style/index.less +52 -0
  251. package/lib/components/Navigation/style/variables.less +1 -0
  252. package/lib/components/Search/designTokens.d.ts +34 -0
  253. package/lib/components/Search/designTokens.js +77 -0
  254. package/lib/components/Search/index.d.ts +13 -0
  255. package/lib/components/Search/index.js +137 -0
  256. package/lib/components/Search/style/index.less +32 -0
  257. package/lib/components/Search/style/variables.less +5 -0
  258. package/lib/components/Stepper/designTokens.d.ts +26 -0
  259. package/lib/components/Stepper/designTokens.js +90 -0
  260. package/lib/components/Stepper/index.d.ts +22 -0
  261. package/lib/components/Stepper/index.js +118 -0
  262. package/lib/components/Stepper/style/index.less +140 -0
  263. package/lib/components/Stepper/style/variables.less +5 -0
  264. package/lib/components/StickyFooter/designTokens.d.ts +10 -0
  265. package/lib/components/StickyFooter/designTokens.js +41 -0
  266. package/lib/components/StickyFooter/index.d.ts +17 -0
  267. package/lib/components/StickyFooter/index.js +150 -0
  268. package/lib/components/StickyFooter/style/index.less +18 -0
  269. package/lib/components/StickyFooter/style/variables.less +4 -0
  270. package/lib/components/Tabs/designTokens.d.ts +44 -0
  271. package/lib/components/Tabs/designTokens.js +90 -0
  272. package/lib/components/Tabs/index.d.ts +14 -0
  273. package/lib/components/Tabs/index.js +145 -0
  274. package/lib/components/Tabs/style/index.less +25 -0
  275. package/lib/components/Tabs/style/variables.less +4 -0
  276. package/lib/components/Tag/designTokens.d.ts +90 -0
  277. package/lib/components/Tag/designTokens.js +181 -0
  278. package/lib/components/Tag/index.d.ts +15 -0
  279. package/lib/components/Tag/index.js +146 -0
  280. package/lib/components/Tag/style/index.less +9 -0
  281. package/lib/components/Tag/style/variables.less +4 -0
  282. package/lib/components/Text/designTokens.d.ts +51 -0
  283. package/lib/components/Text/designTokens.js +75 -0
  284. package/lib/components/Text/index.d.ts +13 -0
  285. package/lib/components/Text/index.js +432 -0
  286. package/lib/components/Text/style/index.less +2 -0
  287. package/lib/components/Text/style/variables.less +4 -0
  288. package/lib/components/TextInputInside/designTokens.d.ts +38 -0
  289. package/lib/components/TextInputInside/designTokens.js +100 -0
  290. package/lib/components/TextInputInside/index.d.ts +10 -0
  291. package/lib/components/TextInputInside/index.js +230 -0
  292. package/lib/components/TextInputInside/style/index.less +36 -0
  293. package/lib/components/TextInputInside/style/variables.less +5 -0
  294. package/lib/components/TextInputOutside/designTokens.d.ts +41 -0
  295. package/lib/components/TextInputOutside/designTokens.js +95 -0
  296. package/lib/components/TextInputOutside/index.d.ts +18 -0
  297. package/lib/components/TextInputOutside/index.js +110 -0
  298. package/lib/components/TextInputOutside/style/index.less +4 -0
  299. package/lib/components/TextInputOutside/style/variables.less +5 -0
  300. package/lib/components/TextLink/designTokens.d.ts +10 -0
  301. package/lib/components/TextLink/designTokens.js +45 -0
  302. package/lib/components/TextLink/index.d.ts +20 -0
  303. package/lib/components/TextLink/index.js +120 -0
  304. package/lib/components/Toast/designTokens.d.ts +13 -0
  305. package/lib/components/Toast/designTokens.js +40 -0
  306. package/lib/components/Toast/index.d.ts +26 -0
  307. package/lib/components/Toast/index.js +213 -0
  308. package/lib/components/Toast/style/index.less +9 -0
  309. package/lib/components/Toast/style/variables.less +12 -0
  310. package/lib/components/Toggle/designTokens.d.ts +9 -0
  311. package/lib/components/Toggle/designTokens.js +47 -0
  312. package/lib/components/Toggle/index.d.ts +27 -0
  313. package/lib/components/Toggle/index.js +67 -0
  314. package/lib/components/index.d.ts +49 -0
  315. package/lib/components/index.js +90 -0
  316. package/lib/constants/index.d.ts +16 -0
  317. package/lib/constants/index.js +42 -0
  318. package/lib/fonts/Poppins/Poppins-Bold.ttf +0 -0
  319. package/lib/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
  320. package/lib/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
  321. package/lib/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
  322. package/lib/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
  323. package/lib/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
  324. package/lib/fonts/Poppins/Poppins-Italic.ttf +0 -0
  325. package/lib/fonts/Poppins/Poppins-Light.ttf +0 -0
  326. package/lib/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
  327. package/lib/fonts/Poppins/Poppins-Medium.ttf +0 -0
  328. package/lib/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
  329. package/lib/fonts/Poppins/Poppins-Regular.ttf +0 -0
  330. package/lib/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
  331. package/lib/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
  332. package/lib/fonts/Poppins/Poppins-Thin.ttf +0 -0
  333. package/lib/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
  334. package/lib/fonts/Roboto/Roboto-Black.ttf +0 -0
  335. package/lib/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
  336. package/lib/fonts/Roboto/Roboto-Bold.ttf +0 -0
  337. package/lib/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
  338. package/lib/fonts/Roboto/Roboto-ExtraBold.ttf +0 -0
  339. package/lib/fonts/Roboto/Roboto-ExtraBoldItalic.ttf +0 -0
  340. package/lib/fonts/Roboto/Roboto-ExtraLight.ttf +0 -0
  341. package/lib/fonts/Roboto/Roboto-ExtraLightItalic.ttf +0 -0
  342. package/lib/fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf +0 -0
  343. package/lib/fonts/Roboto/Roboto-Italic.ttf +0 -0
  344. package/lib/fonts/Roboto/Roboto-Light.ttf +0 -0
  345. package/lib/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
  346. package/lib/fonts/Roboto/Roboto-Medium.ttf +0 -0
  347. package/lib/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  348. package/lib/fonts/Roboto/Roboto-Regular.ttf +0 -0
  349. package/lib/fonts/Roboto/Roboto-SemiBold.ttf +0 -0
  350. package/lib/fonts/Roboto/Roboto-SemiBoldItalic.ttf +0 -0
  351. package/lib/fonts/Roboto/Roboto-Thin.ttf +0 -0
  352. package/lib/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
  353. package/lib/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf +0 -0
  354. package/lib/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
  355. package/lib/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
  356. package/lib/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
  357. package/lib/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
  358. package/lib/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
  359. package/lib/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
  360. package/lib/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
  361. package/lib/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
  362. package/lib/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
  363. package/lib/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
  364. package/lib/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
  365. package/lib/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
  366. package/lib/index.d.ts +3 -0
  367. package/lib/index.js +21 -0
  368. package/lib/style/antdDesignToken.json +503 -0
  369. package/lib/style/themes/base-vars.css +6 -0
  370. package/lib/style/themes/colorful.css +5 -0
  371. package/lib/style/themes/index.css +4 -0
  372. package/lib/style/variables.less +60 -0
  373. package/lib/tokens/DXPGlobal.d.ts +302 -0
  374. package/lib/tokens/DXPGlobal.js +37 -0
  375. package/lib/utils/noop.d.ts +1 -0
  376. package/lib/utils/noop.js +26 -0
  377. package/lib/utils/scaleTool.d.ts +12 -0
  378. package/lib/utils/scaleTool.js +66 -0
  379. package/lib/utils/theme.d.ts +11 -0
  380. package/lib/utils/theme.js +32 -0
  381. package/lib/utils/themeContext.d.ts +44 -0
  382. package/lib/utils/themeContext.js +117 -0
  383. package/lib/utils/tokenHelper.d.ts +1 -0
  384. package/lib/utils/tokenHelper.js +38 -0
  385. package/lib/utils/tokenManager.d.ts +1572 -0
  386. package/lib/utils/tokenManager.js +833 -0
  387. package/package.json +29 -22
  388. package/umd/dxp-ui.min.css +1 -2
  389. package/umd/dxp-ui.min.js +1 -2
  390. package/umd/static/SF-Pro-Text-Bold.89d66db4.otf +0 -0
  391. package/umd/static/SF-Pro-Text-Regular.e042d171.ttf +0 -0
  392. package/umd/static/SF-Pro-Text-Regular.f09e811b.otf +0 -0
  393. package/umd/static/SF-Pro-Text-Semibold.a5a4b4bc.otf +0 -0
  394. package/umd/static/SF-Pro-Text-SemiboldItalic.ed8f4a28.otf +0 -0
  395. package/umd/static/iconfont.176e7470.svg +1 -0
  396. package/umd/static/iconfont.47a0c957.ttf +0 -0
  397. package/umd/static/iconfont.6f470e01.eot +0 -0
  398. package/umd/static/iconfont.796b49bb.woff +0 -0
  399. package/es/assets/iconFont/iconfont.js +0 -44
  400. package/es/assets/iconFont/iconfont.js.map +0 -1
  401. package/es/components/Button/designTokens.js.map +0 -1
  402. package/es/components/Button/index.js.map +0 -1
  403. package/es/components/Button/index_backup.d.ts +0 -72
  404. package/es/components/Button/index_backup.js +0 -111
  405. package/es/components/Button/index_backup.js.map +0 -1
  406. package/es/components/Text/index.js.map +0 -1
  407. package/es/components/Text/style/text.less +0 -116
  408. package/es/components/index.js.map +0 -1
  409. package/es/constants/index.js.map +0 -1
  410. package/es/index.js.map +0 -1
  411. package/es/tokens/DXPGlobal.js.map +0 -1
  412. package/es/utils/noop.js.map +0 -1
  413. package/es/utils/themeContext.js.map +0 -1
  414. package/es/utils/tokenHelper.js.map +0 -1
  415. package/es/utils/tokenManager.js.map +0 -1
  416. package/umd/dxp-ui.min.css.map +0 -1
  417. package/umd/dxp-ui.min.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ declare const designTokens: {
2
+ colorIconButtonNeutral: any;
3
+ colorIconButtonInverse: any;
4
+ sizingButtonIcon: any;
5
+ };
6
+ export default designTokens;
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/Icon/designTokens.ts
30
+ var designTokens_exports = {};
31
+ __export(designTokens_exports, {
32
+ default: () => designTokens_default
33
+ });
34
+ module.exports = __toCommonJS(designTokens_exports);
35
+ var import_tokenManager = __toESM(require("../../utils/tokenManager"));
36
+ var designTokens = {
37
+ colorIconButtonNeutral: import_tokenManager.default.tokenKey("colorIconButtonNeutral"),
38
+ colorIconButtonInverse: import_tokenManager.default.tokenKey("colorIconButtonInverse"),
39
+ sizingButtonIcon: import_tokenManager.default.tokenKey("sizingButtonIcon")
40
+ };
41
+ var designTokens_default = designTokens;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface IIconProps {
3
+ name: string;
4
+ color?: string;
5
+ size?: string | number;
6
+ style?: React.CSSProperties;
7
+ inverse?: boolean;
8
+ className?: string;
9
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
10
+ }
11
+ declare const Icon: (props: IIconProps) => React.JSX.Element;
12
+ export default Icon;
@@ -0,0 +1,73 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
33
+ var __export = (target, all) => {
34
+ for (var name in all)
35
+ __defProp(target, name, { get: all[name], enumerable: true });
36
+ };
37
+ var __copyProps = (to, from, except, desc) => {
38
+ if (from && typeof from === "object" || typeof from === "function") {
39
+ for (let key of __getOwnPropNames(from))
40
+ if (!__hasOwnProp.call(to, key) && key !== except)
41
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
42
+ }
43
+ return to;
44
+ };
45
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
46
+ // If the importer is in node compatibility mode or this is not an ESM
47
+ // file that has been converted to a CommonJS file using a Babel-
48
+ // compatible transform (i.e. "__esModule" has not been set), then set
49
+ // "default" to the CommonJS "module.exports" for node compatibility.
50
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
51
+ mod
52
+ ));
53
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
54
+
55
+ // src/components/Icon/index.tsx
56
+ var Icon_exports = {};
57
+ __export(Icon_exports, {
58
+ default: () => Icon_default
59
+ });
60
+ module.exports = __toCommonJS(Icon_exports);
61
+ var import_react = __toESM(require("react"));
62
+ var import_Icon = __toESM(require("./Icon"));
63
+ var import_designTokens = __toESM(require("./designTokens"));
64
+ var Icon = (props) => {
65
+ const { colorIconButtonInverse, colorIconButtonNeutral, sizingButtonIcon } = import_designTokens.default;
66
+ const _a = props, { name, color, size = sizingButtonIcon, inverse = false, style } = _a, rest = __objRest(_a, ["name", "color", "size", "inverse", "style"]);
67
+ const mergeStyle = __spreadValues({
68
+ color: color || (inverse ? colorIconButtonInverse : colorIconButtonNeutral),
69
+ fontSize: size ? `${size}px` : ""
70
+ }, style);
71
+ return /* @__PURE__ */ import_react.default.createElement(import_Icon.default, __spreadValues({ type: name, style: mergeStyle }, rest));
72
+ };
73
+ var Icon_default = Icon;
@@ -0,0 +1,21 @@
1
+ declare const designTokens: {
2
+ colorIconButtonNeutral: any;
3
+ colorIconButtonInverse: any;
4
+ sizingIconButtonMedium: any;
5
+ sizingIconButtonSmall: any;
6
+ spacingIconButtonPaddingVertical: any;
7
+ spacingIconButtonPaddingVerticalSm: any;
8
+ spacingIconButtonPaddingHorizontal: any;
9
+ spacingIconButtonPaddingHorizontalSm: any;
10
+ spacingIconButtonHorizontalGap: any;
11
+ spacingIconButtonHorizontalGapSm: any;
12
+ colorIconButtonDisabled: any;
13
+ colorIconButtonHover: any;
14
+ colorIconButtonActive: any;
15
+ transitionIconButton: string;
16
+ };
17
+ declare const otherDesignTokens: {
18
+ [x: string]: string;
19
+ };
20
+ export { designTokens, otherDesignTokens, };
21
+ export default designTokens;
@@ -0,0 +1,61 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/IconButton/designTokens.ts
20
+ var designTokens_exports = {};
21
+ __export(designTokens_exports, {
22
+ default: () => designTokens_default,
23
+ designTokens: () => designTokens,
24
+ otherDesignTokens: () => otherDesignTokens
25
+ });
26
+ module.exports = __toCommonJS(designTokens_exports);
27
+ var import_tokenHelper = require("../../utils/tokenHelper");
28
+ var import_constants = require("../../constants");
29
+ var prefixCls = import_constants.cssClasses.PREFIX + "-icon-button";
30
+ var designTokens = {
31
+ // 图标按钮颜色
32
+ colorIconButtonNeutral: (0, import_tokenHelper.getToken)("colorIconButtonNeutral"),
33
+ colorIconButtonInverse: (0, import_tokenHelper.getToken)("colorIconButtonInverse"),
34
+ // 反色
35
+ // 图标按钮尺寸
36
+ sizingIconButtonMedium: (0, import_tokenHelper.getToken)("sizingIconButtonIconMedium"),
37
+ // Medium Icon: 24px x 24px
38
+ sizingIconButtonSmall: (0, import_tokenHelper.getToken)("sizingIconButtonIconSmall"),
39
+ // Small Icon: 16px x 16px
40
+ // padding
41
+ spacingIconButtonPaddingVertical: (0, import_tokenHelper.getToken)("spacingIconButtonPaddingVertical"),
42
+ // Medium
43
+ spacingIconButtonPaddingVerticalSm: (0, import_tokenHelper.getToken)("spacingIconButtonPaddingVerticalSm"),
44
+ // Small
45
+ spacingIconButtonPaddingHorizontal: (0, import_tokenHelper.getToken)("spacingIconButtonPaddingHorizontal"),
46
+ spacingIconButtonPaddingHorizontalSm: (0, import_tokenHelper.getToken)("spacingIconButtonPaddingHorizontalSm"),
47
+ spacingIconButtonHorizontalGap: (0, import_tokenHelper.getToken)("spacingIconButtonHorizontalGap"),
48
+ spacingIconButtonHorizontalGapSm: (0, import_tokenHelper.getToken)("spacingIconButtonHorizontalGapSm"),
49
+ colorIconButtonDisabled: (0, import_tokenHelper.getToken)("colorIconButtonDisabled"),
50
+ colorIconButtonHover: (0, import_tokenHelper.getToken)("colorIconButtonHover"),
51
+ colorIconButtonActive: (0, import_tokenHelper.getToken)("colorIconButtonActive"),
52
+ // 过渡动画
53
+ transitionIconButton: "0.3s"
54
+ };
55
+ var otherDesignTokens = {
56
+ [`--${prefixCls}-color`]: `${(0, import_tokenHelper.getToken)("colorIconButtonNeutral")}`,
57
+ [`--${prefixCls}-color-inverse`]: `${(0, import_tokenHelper.getToken)("colorIconButtonInverse")}`,
58
+ [`--${prefixCls}-color-disabled`]: `${(0, import_tokenHelper.getToken)("colorIconButtonDisabled")}`,
59
+ [`--${prefixCls}-transition`]: `all ${designTokens.transitionIconButton}`
60
+ };
61
+ var designTokens_default = designTokens;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import './style/index.less';
3
+ export type Size = 'medium' | 'small';
4
+ export interface IconButtonProps {
5
+ customeIconSize?: string | number;
6
+ prefixCls?: string;
7
+ name: string;
8
+ color?: string;
9
+ size?: Size | string | number;
10
+ style?: React.CSSProperties;
11
+ className?: string;
12
+ inverse?: boolean;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
16
+ onMouseDown?: (e: React.MouseEvent<HTMLDivElement>) => void;
17
+ onMouseEnter?: (e: React.MouseEvent<HTMLDivElement>) => void;
18
+ onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
19
+ [key: string]: any;
20
+ }
21
+ declare const IconButton: React.FC<IconButtonProps>;
22
+ import IconButtonGroup from '../IconButtonGroup';
23
+ export { IconButtonGroup };
24
+ export default IconButton;
@@ -0,0 +1,202 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ var __export = (target, all) => {
37
+ for (var name in all)
38
+ __defProp(target, name, { get: all[name], enumerable: true });
39
+ };
40
+ var __copyProps = (to, from, except, desc) => {
41
+ if (from && typeof from === "object" || typeof from === "function") {
42
+ for (let key of __getOwnPropNames(from))
43
+ if (!__hasOwnProp.call(to, key) && key !== except)
44
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
45
+ }
46
+ return to;
47
+ };
48
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
49
+ // If the importer is in node compatibility mode or this is not an ESM
50
+ // file that has been converted to a CommonJS file using a Babel-
51
+ // compatible transform (i.e. "__esModule" has not been set), then set
52
+ // "default" to the CommonJS "module.exports" for node compatibility.
53
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
54
+ mod
55
+ ));
56
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
57
+
58
+ // src/components/IconButton/index.tsx
59
+ var IconButton_exports = {};
60
+ __export(IconButton_exports, {
61
+ IconButtonGroup: () => import_IconButtonGroup.default,
62
+ default: () => IconButton_default
63
+ });
64
+ module.exports = __toCommonJS(IconButton_exports);
65
+ var import_react = __toESM(require("react"));
66
+ var import_classnames = __toESM(require("classnames"));
67
+ var import_cssinjs = require("@ant-design/cssinjs");
68
+ var import_Icon = __toESM(require("../Icon"));
69
+ var import_constants = require("../../constants");
70
+ var import_noop = require("../../utils/noop");
71
+ var import_designTokens = require("./designTokens");
72
+ var import_style = require("./style/index.less");
73
+ var import_IconButtonGroup = __toESM(require("../IconButtonGroup"));
74
+ var derivativeFunc = (token) => {
75
+ return {
76
+ buttonColor: token.primaryColor,
77
+ buttonFontSize: token.fontSize * 1.2
78
+ };
79
+ };
80
+ var theme = new import_cssinjs.Theme(derivativeFunc);
81
+ var IconButton = (props) => {
82
+ const _a = props, {
83
+ prefixCls = import_constants.cssClasses.PREFIX + "-icon-button",
84
+ size = "medium",
85
+ customeIconSize,
86
+ disabled = false,
87
+ loading = false,
88
+ style,
89
+ className,
90
+ onMouseDown = import_noop.noop,
91
+ onClick = import_noop.noop,
92
+ onMouseEnter = import_noop.noop,
93
+ onMouseLeave = import_noop.noop
94
+ } = _a, restProps = __objRest(_a, [
95
+ "prefixCls",
96
+ "size",
97
+ "customeIconSize",
98
+ "disabled",
99
+ "loading",
100
+ "style",
101
+ "className",
102
+ "onMouseDown",
103
+ "onClick",
104
+ "onMouseEnter",
105
+ "onMouseLeave"
106
+ ]);
107
+ const getIconSize = () => {
108
+ if (size === "medium") {
109
+ return import_designTokens.designTokens.sizingIconButtonMedium;
110
+ } else if (size === "small") {
111
+ return import_designTokens.designTokens.sizingIconButtonSmall;
112
+ }
113
+ return import_designTokens.designTokens.sizingIconButtonMedium;
114
+ };
115
+ const handleClick = (e) => {
116
+ if (disabled || loading) {
117
+ return;
118
+ }
119
+ onClick == null ? void 0 : onClick(e);
120
+ };
121
+ const useCustomIconButtonStyle = () => {
122
+ const iconSize2 = getIconSize();
123
+ const gap = size === "medium" ? import_designTokens.designTokens.spacingIconButtonHorizontalGap : import_designTokens.designTokens.spacingIconButtonHorizontalGapSm;
124
+ const hashId2 = (0, import_cssinjs.useStyleRegister)(
125
+ {
126
+ theme,
127
+ token: {},
128
+ path: [prefixCls]
129
+ },
130
+ () => `
131
+ .${prefixCls}-container {
132
+ display: inline-flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ // width: ${iconSize2}px;
136
+ // height: ${iconSize2}px;
137
+ cursor: ${disabled ? "not-allowed" : "pointer"};
138
+ opacity: ${disabled ? 0.5 : 1};
139
+ transition: ${import_designTokens.designTokens.transitionIconButton};
140
+ }
141
+
142
+ .${prefixCls}-medium {
143
+ width: ${import_designTokens.designTokens.sizingIconButtonMedium}px;
144
+ height: ${import_designTokens.designTokens.sizingIconButtonMedium}px;
145
+ padding: ${import_designTokens.designTokens.spacingIconButtonPaddingHorizontal}px ${import_designTokens.designTokens.spacingIconButtonPaddingVertical}px;
146
+ }
147
+
148
+ .${prefixCls}-small {
149
+ width: ${import_designTokens.designTokens.sizingIconButtonSmall}px;
150
+ height: ${import_designTokens.designTokens.sizingIconButtonSmall}px;
151
+ padding: ${import_designTokens.designTokens.spacingIconButtonPaddingHorizontalSm}px ${import_designTokens.designTokens.spacingIconButtonPaddingVerticalSm}px;
152
+ }
153
+
154
+ .${prefixCls}-container:hover {
155
+ opacity: 0.8;
156
+ color: ${import_designTokens.designTokens.colorIconButtonHover};
157
+ }
158
+
159
+ .${prefixCls}-container:active {
160
+ opacity: 0.7;
161
+ color: ${import_designTokens.designTokens.colorIconButtonActive};
162
+ }
163
+
164
+ .${prefixCls}-loading i {
165
+ animation: loadingCircle 1s infinite linear;
166
+ }
167
+
168
+ .${prefixCls}-group {
169
+ gap: ${gap}px;
170
+ }
171
+
172
+ .${prefixCls}-group .${prefixCls}-medium + .${prefixCls}-medium {
173
+ padding-left: ${import_designTokens.designTokens.spacingIconButtonHorizontalGap}px;
174
+ }
175
+
176
+ .${prefixCls}-group .${prefixCls}-small + .${prefixCls}-small {
177
+ padding-left: ${import_designTokens.designTokens.spacingIconButtonHorizontalGapSm}px;
178
+ }
179
+ `
180
+ );
181
+ return hashId2;
182
+ };
183
+ const hashId = useCustomIconButtonStyle();
184
+ const iconSize = getIconSize();
185
+ return /* @__PURE__ */ import_react.default.createElement(
186
+ "div",
187
+ {
188
+ className: (0, import_classnames.default)(
189
+ `${prefixCls} ${prefixCls}-container ${prefixCls}-${size} ${loading ? `${prefixCls}-loading` : ""}`,
190
+ hashId,
191
+ className
192
+ ),
193
+ style,
194
+ onClick: handleClick,
195
+ onMouseDown,
196
+ onMouseEnter,
197
+ onMouseLeave
198
+ },
199
+ /* @__PURE__ */ import_react.default.createElement(import_Icon.default, __spreadProps(__spreadValues({}, restProps), { size: customeIconSize || iconSize, style: __spreadValues({}, import_designTokens.otherDesignTokens) }))
200
+ );
201
+ };
202
+ var IconButton_default = IconButton;
@@ -0,0 +1,59 @@
1
+ @import './variables.less';
2
+
3
+ // 基础图标按钮样式
4
+ @components: icon-button;
5
+
6
+ // 使用字符串拼接
7
+ .@{prefix}-@{components} {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ vertical-align: middle; // 垂直居中
12
+ transition: all 0.3s;
13
+ user-select: none;
14
+ position: relative;
15
+
16
+ &:hover {
17
+ opacity: 0.8;
18
+ transform: scale(0.9);
19
+ }
20
+
21
+ &:active {
22
+ opacity: 0.5;
23
+ transform: scale(0.9);
24
+ }
25
+
26
+ // 禁用状态
27
+ &[disabled],
28
+ &.@{prefix}-disabled {
29
+ cursor: not-allowed;
30
+ opacity: 0.5;
31
+ pointer-events: none;
32
+ }
33
+
34
+ // 加载状态
35
+ &.@{prefix}-loading {
36
+ cursor: default;
37
+ pointer-events: none;
38
+
39
+ i {
40
+ animation: loadingCircle 1s infinite linear;
41
+ }
42
+ }
43
+
44
+ @keyframes loadingCircle {
45
+ 100% {
46
+ transform: rotate(360deg);
47
+ }
48
+ }
49
+
50
+ // 分组样式
51
+ &-group {
52
+ display: inline-flex;
53
+ align-items: center;
54
+ flex-direction: row;
55
+ flex-wrap: wrap;
56
+ justify-content: flex-start;
57
+ align-content: center;
58
+ }
59
+ }
@@ -0,0 +1,5 @@
1
+
2
+ @import '../../../style/variables.less';
3
+
4
+ // 图标按钮变量
5
+ @btn-border-radius: var(--base-border-radius-button);
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface IconButtonGroupProps {
3
+ prefixCls?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * IconButtonGroup 组件用于对图标按钮进行分组
10
+ * 分组间距:
11
+ * - 中等图标按钮:8px
12
+ * - 小图标按钮:16px
13
+ */
14
+ declare const IconButtonGroup: React.FC<IconButtonGroupProps>;
15
+ export default IconButtonGroup;
@@ -0,0 +1,53 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/IconButtonGroup/index.tsx
30
+ var IconButtonGroup_exports = {};
31
+ __export(IconButtonGroup_exports, {
32
+ default: () => IconButtonGroup_default
33
+ });
34
+ module.exports = __toCommonJS(IconButtonGroup_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_constants = require("../../constants");
37
+ var IconButtonGroup = (props) => {
38
+ const {
39
+ prefixCls = import_constants.cssClasses.PREFIX + "-icon-button-group",
40
+ className,
41
+ style,
42
+ children
43
+ } = props;
44
+ return /* @__PURE__ */ import_react.default.createElement(
45
+ "div",
46
+ {
47
+ className: `${prefixCls} ${import_constants.cssClasses.PREFIX}-icon-button-group ${className || ""}`,
48
+ style
49
+ },
50
+ children
51
+ );
52
+ };
53
+ var IconButtonGroup_default = IconButtonGroup;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export type backImageRadio = 1 | 2 | 0.68;
3
+ export declare const BackImageEunm: Record<string, backImageRadio>;
4
+ export interface IImageProps {
5
+ src?: string;
6
+ radio?: backImageRadio;
7
+ imageSize?: number | string;
8
+ style?: React.CSSProperties;
9
+ className?: string;
10
+ }
11
+ declare const Image: (props: IImageProps) => React.JSX.Element;
12
+ export default Image;