@type-dom/ui 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/README.md +134 -44
  2. package/package.json +12 -2
  3. package/src/components/base/style/css.d.ts +1 -1
  4. package/src/components/base/style/css.js +1 -1
  5. package/src/components/basic/index.d.ts +0 -1
  6. package/src/components/basic/index.js +1 -3
  7. package/src/components/basic/td-button/style/index.d.ts +1 -1
  8. package/src/components/basic/td-button/style/index.js +1 -1
  9. package/src/components/basic/td-button/td-button.abstract.js +8 -9
  10. package/src/components/basic/td-button/td-button.interface.d.ts +2 -1
  11. package/src/components/basic/td-button/td-button.stories.d.ts +4 -0
  12. package/src/components/basic/td-button/td-button.stories.js +15 -0
  13. package/src/components/basic/td-button/use-button.d.ts +2 -2
  14. package/src/components/basic/td-button/use-button.js +2 -2
  15. package/src/components/basic/td-button-group/td-button-group.class.d.ts +3 -3
  16. package/src/components/basic/td-button-group/td-button-group.class.js +2 -2
  17. package/src/components/basic/td-button-group/td-button-group.interface.d.ts +2 -2
  18. package/src/components/basic/td-container/style/css.d.ts +1 -1
  19. package/src/components/basic/td-container/style/css.js +1 -1
  20. package/src/components/basic/td-container/td-aside/style/css.d.ts +1 -1
  21. package/src/components/basic/td-container/td-aside/style/css.js +1 -1
  22. package/src/components/basic/td-container/td-aside/style/index.d.ts +1 -1
  23. package/src/components/basic/td-container/td-aside/style/index.js +1 -1
  24. package/src/components/basic/td-container/td-aside/td-aside.class.js +7 -6
  25. package/src/components/basic/td-container/td-container.class.d.ts +1 -5
  26. package/src/components/basic/td-container/td-container.class.js +5 -7
  27. package/src/components/basic/td-container/td-container.js +2 -2
  28. package/src/components/basic/td-container/td-footer/style/css.d.ts +1 -1
  29. package/src/components/basic/td-container/td-footer/style/css.js +1 -1
  30. package/src/components/basic/td-container/td-footer/style/index.d.ts +1 -1
  31. package/src/components/basic/td-container/td-footer/style/index.js +1 -1
  32. package/src/components/basic/td-container/td-header/style/css.d.ts +1 -1
  33. package/src/components/basic/td-container/td-header/style/css.js +1 -1
  34. package/src/components/basic/td-container/td-header/style/index.d.ts +1 -1
  35. package/src/components/basic/td-container/td-header/style/index.js +1 -1
  36. package/src/components/basic/td-container/td-header/td-header.class.js +1 -1
  37. package/src/components/basic/td-container/td-main/style/css.d.ts +1 -1
  38. package/src/components/basic/td-container/td-main/style/css.js +1 -1
  39. package/src/components/basic/td-container/td-main/style/index.d.ts +1 -1
  40. package/src/components/basic/td-container/td-main/style/index.js +1 -1
  41. package/src/components/basic/td-icon/td-icon.class.js +1 -1
  42. package/src/components/basic/td-layout/td-col/style/css.d.ts +1 -1
  43. package/src/components/basic/td-layout/td-col/style/css.js +1 -1
  44. package/src/components/basic/td-layout/td-col/td-col.class.js +1 -1
  45. package/src/components/basic/td-layout/td-row/style/css.d.ts +1 -1
  46. package/src/components/basic/td-layout/td-row/style/css.js +1 -1
  47. package/src/components/basic/td-scrollbar/bar/bar.class.d.ts +9 -16
  48. package/src/components/basic/td-scrollbar/bar/bar.class.js +51 -48
  49. package/src/components/basic/td-scrollbar/bar/bar.const.d.ts +2 -2
  50. package/src/components/basic/td-scrollbar/bar/bar.const.js +1 -1
  51. package/src/components/basic/td-scrollbar/bar/bar.interface.d.ts +3 -3
  52. package/src/components/basic/td-scrollbar/style/css.d.ts +1 -1
  53. package/src/components/basic/td-scrollbar/style/css.js +1 -1
  54. package/src/components/basic/td-scrollbar/td-scrollbar.class.d.ts +8 -10
  55. package/src/components/basic/td-scrollbar/td-scrollbar.class.js +145 -110
  56. package/src/components/basic/td-scrollbar/td-scrollbar.const.d.ts +2 -2
  57. package/src/components/basic/td-scrollbar/td-scrollbar.interface.d.ts +14 -6
  58. package/src/components/basic/td-scrollbar/thumb/thumb.class.d.ts +5 -7
  59. package/src/components/basic/td-scrollbar/thumb/thumb.class.js +85 -95
  60. package/src/components/basic/td-scrollbar/thumb/thumb.interface.d.ts +7 -6
  61. package/src/components/basic/td-scrollbar/util.d.ts +2 -2
  62. package/src/components/basic/td-scrollbar/util.js +11 -4
  63. package/src/components/basic/td-space/style/css.d.ts +1 -1
  64. package/src/components/basic/td-space/style/css.js +1 -1
  65. package/src/components/basic/td-space/td-space.class.js +6 -5
  66. package/src/components/basic/td-space/td-space.interface.d.ts +1 -2
  67. package/src/components/basic/td-space/use-space.d.ts +2 -2
  68. package/src/components/basic/td-space/use-space.js +7 -3
  69. package/src/components/basic/td-text/td-text.class.js +1 -1
  70. package/src/components/configuration/td-config-provider/hooks/use-global-config.d.ts +1 -1
  71. package/src/components/configuration/td-config-provider/hooks/use-global-config.js +8 -5
  72. package/src/components/configuration/td-config-provider/style/css.d.ts +1 -1
  73. package/src/components/configuration/td-config-provider/style/css.js +1 -1
  74. package/src/components/data/index.d.ts +4 -0
  75. package/src/components/data/index.js +5 -1
  76. package/src/components/data/td-avatar/td-avatar.class.js +3 -2
  77. package/src/components/data/td-badge/td-badge.class.js +1 -1
  78. package/src/components/data/td-card/style/css.d.ts +1 -1
  79. package/src/components/data/td-card/style/css.js +1 -1
  80. package/src/components/data/td-carousel/style/css.d.ts +1 -1
  81. package/src/components/data/td-carousel/style/css.js +1 -1
  82. package/src/components/data/td-carousel/td-carousel-item.class.js +1 -1
  83. package/src/components/data/td-carousel/use-carousel-item.d.ts +1 -1
  84. package/src/components/data/td-carousel/use-carousel.d.ts +2 -2
  85. package/src/components/data/td-check-tag/style/css.d.ts +1 -1
  86. package/src/components/data/td-check-tag/style/css.js +1 -1
  87. package/src/components/data/td-collapse/style/css.d.ts +1 -1
  88. package/src/components/data/td-collapse/style/css.js +1 -1
  89. package/src/components/data/td-collapse/td-collapse.class.js +1 -1
  90. package/src/components/data/td-collapse/td-collapse.interface.d.ts +2 -0
  91. package/src/components/data/td-collapse/use-collapse-item.js +2 -2
  92. package/src/components/data/td-collapse/use-collapse.d.ts +2 -2
  93. package/src/components/data/td-collapse/use-collapse.js +1 -1
  94. package/src/components/data/td-collapse-item/style/css.d.ts +1 -1
  95. package/src/components/data/td-collapse-item/style/css.js +1 -1
  96. package/src/components/data/td-collapse-item/td-collapse-item.class.js +2 -2
  97. package/src/components/data/td-collapse-transition/style/css.d.ts +1 -1
  98. package/src/components/data/td-collapse-transition/style/css.js +1 -1
  99. package/src/components/data/td-count-down/style/css.d.ts +1 -1
  100. package/src/components/data/td-count-down/style/css.js +1 -1
  101. package/src/components/data/td-count-down/td-count-down.class.d.ts +1 -1
  102. package/src/components/data/td-count-down/td-count-down.class.js +5 -4
  103. package/src/components/data/td-descriptions/style/css.d.ts +2 -2
  104. package/src/components/data/td-descriptions/style/css.js +2 -2
  105. package/src/components/data/td-descriptions-item/style/css.d.ts +1 -1
  106. package/src/components/data/td-descriptions-item/style/css.js +1 -1
  107. package/src/components/data/td-empty/img-empty.class.js +0 -15
  108. package/src/components/data/td-empty/style/css.d.ts +1 -1
  109. package/src/components/data/td-empty/style/css.js +1 -1
  110. package/src/components/data/td-empty/td-empty.class.js +5 -5
  111. package/src/components/data/td-image/style/css.d.ts +2 -2
  112. package/src/components/data/td-image/style/css.js +2 -2
  113. package/src/components/data/td-image/td-image.class.js +93 -143
  114. package/src/components/data/td-image/td-image.const.js +4 -2
  115. package/src/components/data/td-image/td-image.interface.d.ts +5 -0
  116. package/src/components/data/td-image-viewer/style/css.d.ts +1 -1
  117. package/src/components/data/td-image-viewer/style/css.js +1 -1
  118. package/src/components/data/td-image-viewer/td-image-viewer.class.js +80 -28
  119. package/src/components/data/td-image-viewer/td-image-viewer.const.js +2 -0
  120. package/src/components/data/td-image-viewer/td-image-viewer.interface.d.ts +10 -1
  121. package/src/components/data/td-pagination/style/css.d.ts +1 -1
  122. package/src/components/data/td-pagination/style/css.js +1 -1
  123. package/src/components/data/td-pagination/td-pagination.class.js +29 -35
  124. package/src/components/data/td-progress/style/css.d.ts +1 -1
  125. package/src/components/data/td-progress/style/css.js +1 -1
  126. package/src/components/data/td-progress/td-progress.class.d.ts +1 -0
  127. package/src/components/data/td-progress/td-progress.class.js +38 -31
  128. package/src/components/data/td-progress/td-progress.interface.d.ts +1 -1
  129. package/src/components/data/td-result/style/css.d.ts +1 -1
  130. package/src/components/data/td-result/style/css.js +1 -1
  131. package/src/components/data/td-segmented/style/css.d.ts +1 -1
  132. package/src/components/data/td-segmented/style/css.js +1 -1
  133. package/src/components/data/td-segmented/td-segmented.class.js +51 -54
  134. package/src/components/data/td-segmented/td-segmented.const.d.ts +2 -1
  135. package/src/components/data/td-segmented/td-segmented.const.js +6 -1
  136. package/src/components/data/td-segmented/td-segmented.interface.d.ts +17 -3
  137. package/src/components/data/td-statistic/style/css.d.ts +1 -1
  138. package/src/components/data/td-statistic/style/css.js +1 -1
  139. package/src/components/data/td-statistic/td-statistic.class.d.ts +2 -1
  140. package/src/components/data/td-statistic/td-statistic.class.js +2 -2
  141. package/src/components/data/td-statistic/td-statistic.interface.d.ts +1 -1
  142. package/src/components/data/td-tag/style/css.d.ts +1 -1
  143. package/src/components/data/td-tag/style/css.js +1 -1
  144. package/src/components/data/td-tag/td-tag.style.js +3 -3
  145. package/src/components/feedback/index.d.ts +2 -0
  146. package/src/components/feedback/index.js +3 -1
  147. package/src/components/feedback/td-alert/td-alert.class.js +3 -3
  148. package/src/components/feedback/td-alert/td-alert.style.js +0 -2
  149. package/src/components/feedback/td-dialog/style/css.d.ts +1 -1
  150. package/src/components/feedback/td-dialog/style/css.js +1 -1
  151. package/src/components/feedback/td-dialog/td-dialog.class.js +3 -3
  152. package/src/components/feedback/td-dialog/use-dialog.js +1 -1
  153. package/src/components/feedback/td-dialog-content/td-dialog-content.class.js +4 -4
  154. package/src/components/feedback/td-dialog-content/td-dialog-content.interface.d.ts +2 -1
  155. package/src/components/feedback/td-focus-trap/td-focus-trap.class.js +5 -3
  156. package/src/components/feedback/td-focus-trap/td-focus-trap.interface.d.ts +1 -2
  157. package/src/components/feedback/td-focus-trap/utils.d.ts +1 -1
  158. package/src/components/feedback/td-loading/style/css.d.ts +1 -1
  159. package/src/components/feedback/td-loading/style/css.js +1 -1
  160. package/src/components/feedback/td-message/instance.js +3 -3
  161. package/src/components/feedback/td-message/method.js +4 -4
  162. package/src/components/feedback/td-message/style/css.d.ts +1 -1
  163. package/src/components/feedback/td-message/style/css.js +1 -1
  164. package/src/components/feedback/td-message/td-message.class.js +1 -1
  165. package/src/components/feedback/td-message-box/message-box.js +30 -5
  166. package/src/components/feedback/td-message-box/style/css.d.ts +1 -1
  167. package/src/components/feedback/td-message-box/style/css.js +1 -1
  168. package/src/components/feedback/td-message-box/td-message-box.class.js +3 -3
  169. package/src/components/feedback/td-message-box/td-message-box.interface.d.ts +2 -0
  170. package/src/components/feedback/td-notification/style/css.d.ts +1 -1
  171. package/src/components/feedback/td-notification/style/css.js +1 -1
  172. package/src/components/feedback/td-notification/td-notification.class.js +3 -3
  173. package/src/components/feedback/td-only-child/td-only-child.class.js +2 -2
  174. package/src/components/feedback/td-overlay/style/css.d.ts +1 -1
  175. package/src/components/feedback/td-overlay/style/css.js +1 -1
  176. package/src/components/feedback/td-overlay/td-overlay.interface.d.ts +2 -2
  177. package/src/components/feedback/td-popconfirm/style/css.d.ts +4 -0
  178. package/src/components/feedback/td-popconfirm/style/css.js +6 -0
  179. package/src/components/feedback/td-popconfirm/style/index.d.ts +4 -0
  180. package/src/components/feedback/td-popconfirm/style/index.js +6 -0
  181. package/src/components/feedback/td-popconfirm/td-popconfirm.class.d.ts +9 -0
  182. package/src/components/feedback/td-popconfirm/td-popconfirm.class.js +109 -0
  183. package/src/components/feedback/td-popconfirm/td-popconfirm.const.d.ts +12 -0
  184. package/src/components/feedback/td-popconfirm/td-popconfirm.const.js +24 -0
  185. package/src/components/feedback/td-popconfirm/td-popconfirm.interface.d.ts +68 -0
  186. package/src/components/feedback/td-popconfirm/td-popconfirm.interface.js +1 -0
  187. package/src/components/feedback/td-popover/style/css.d.ts +1 -1
  188. package/src/components/feedback/td-popover/style/css.js +1 -1
  189. package/src/components/feedback/td-popover/td-popover.class.d.ts +1 -2
  190. package/src/components/feedback/td-popover/td-popover.class.js +7 -5
  191. package/src/components/feedback/td-popover/td-popover.interface.d.ts +4 -0
  192. package/src/components/feedback/td-popper/arrow/arrow.class.js +2 -2
  193. package/src/components/feedback/td-popper/composable/use-content-dom.d.ts +14 -13
  194. package/src/components/feedback/td-popper/composable/use-content-dom.js +8 -1
  195. package/src/components/feedback/td-popper/composable/use-content.d.ts +8 -3
  196. package/src/components/feedback/td-popper/composable/use-content.js +21 -13
  197. package/src/components/feedback/td-popper/composable/use-focus-trap.d.ts +1 -1
  198. package/src/components/feedback/td-popper/composable/use-focus-trap.js +1 -1
  199. package/src/components/feedback/td-popper/content/content.class.d.ts +2 -2
  200. package/src/components/feedback/td-popper/content/content.class.js +13 -46
  201. package/src/components/feedback/td-popper/content/content.interface.d.ts +5 -6
  202. package/src/components/feedback/td-popper/style/css.d.ts +1 -1
  203. package/src/components/feedback/td-popper/style/css.js +1 -1
  204. package/src/components/feedback/td-popper/td-popper.interface.d.ts +2 -1
  205. package/src/components/feedback/td-popper/trigger/trigger.class.js +11 -6
  206. package/src/components/feedback/td-popper/utils.d.ts +2 -10
  207. package/src/components/feedback/td-popper/utils.js +6 -5
  208. package/src/components/feedback/td-tooltip/content/content.class.js +15 -9
  209. package/src/components/feedback/td-tooltip/content/content.interface.d.ts +2 -2
  210. package/src/components/feedback/td-tooltip/style/css.d.ts +1 -1
  211. package/src/components/feedback/td-tooltip/style/css.js +1 -1
  212. package/src/components/feedback/td-tooltip/td-tooltip.class.js +28 -31
  213. package/src/components/feedback/td-tooltip/td-tooltip.const.d.ts +26 -27
  214. package/src/components/feedback/td-tooltip/td-tooltip.const.js +1 -1
  215. package/src/components/feedback/td-tooltip/trigger/trigger.class.js +11 -8
  216. package/src/components/feedback/td-tooltip/trigger/trigger.interface.d.ts +1 -1
  217. package/src/components/feedback/td-tooltip/utils.d.ts +2 -1
  218. package/src/components/feedback/td-tooltip/utils.js +6 -5
  219. package/src/components/form/checkbox-group/checkbox-option/checkbox-option.class.js +7 -7
  220. package/src/components/form/index.d.ts +5 -2
  221. package/src/components/form/index.js +6 -3
  222. package/src/components/form/td-autocomplete/style/css.d.ts +1 -1
  223. package/src/components/form/td-autocomplete/style/css.js +1 -1
  224. package/src/components/form/td-checkbox/composables/use-checkbox-event.js +8 -7
  225. package/src/components/form/td-checkbox/composables/use-checkbox-model.d.ts +1 -1
  226. package/src/components/form/td-checkbox/composables/use-checkbox-model.js +24 -27
  227. package/src/components/form/td-checkbox/composables/use-checkbox-status.js +3 -2
  228. package/src/components/form/td-checkbox/composables/use-checkbox.d.ts +1 -1
  229. package/src/components/form/td-checkbox/composables/use-checkbox.js +6 -1
  230. package/src/components/form/td-checkbox/td-checkbox.class.js +23 -8
  231. package/src/components/form/td-checkbox-button/td-checkbox-button.class.js +10 -3
  232. package/src/components/form/td-checkbox-group/td-checkbox-group.class.js +10 -13
  233. package/src/components/form/td-date-picker/composables/use-range-picker.d.ts +2 -2
  234. package/src/components/form/td-date-picker/style/css.d.ts +1 -1
  235. package/src/components/form/td-date-picker/style/css.js +1 -1
  236. package/src/components/form/td-form/form-label-wrap/form-label-wrap.class.js +1 -1
  237. package/src/components/form/td-form/hooks/use-form-common-props.d.ts +2 -2
  238. package/src/components/form/td-form/hooks/use-form-common-props.js +2 -1
  239. package/src/components/form/td-form/hooks/use-form-item.d.ts +3 -3
  240. package/src/components/form/td-form/hooks/use-form-item.js +1 -1
  241. package/src/components/form/td-form/style/css.d.ts +1 -1
  242. package/src/components/form/td-form/style/css.js +1 -1
  243. package/src/components/form/td-form/td-form.interface.d.ts +1 -1
  244. package/src/components/form/td-form-item/style/css.d.ts +1 -1
  245. package/src/components/form/td-form-item/style/css.js +1 -1
  246. package/src/components/form/td-form-item/td-form-item.class.js +2 -2
  247. package/src/components/form/td-input/style/css.d.ts +1 -1
  248. package/src/components/form/td-input/style/css.js +1 -1
  249. package/src/components/form/td-input/td-input-field.class.js +1 -1
  250. package/src/components/form/td-input/td-input.class.js +60 -51
  251. package/src/components/form/td-input/td-input.interface.d.ts +3 -3
  252. package/src/components/form/td-input/{widget/utils.js → utils.js} +16 -11
  253. package/src/components/form/td-input-number/style/css.d.ts +1 -1
  254. package/src/components/form/td-input-number/style/css.js +1 -1
  255. package/src/components/form/td-input-number/td-input-number.class.d.ts +12 -0
  256. package/src/components/form/td-input-number/td-input-number.class.js +390 -0
  257. package/src/components/form/td-input-number/td-input-number.const.d.ts +9 -0
  258. package/src/components/form/td-input-number/td-input-number.const.js +22 -0
  259. package/src/components/form/td-input-number/td-input-number.interface.d.ts +73 -0
  260. package/src/components/form/td-input-number/td-input-number.interface.js +1 -0
  261. package/src/components/form/td-option/style/css.d.ts +1 -1
  262. package/src/components/form/td-option/style/css.js +1 -1
  263. package/src/components/form/td-option/td-option.class.d.ts +12 -3
  264. package/src/components/form/td-option/td-option.class.js +35 -31
  265. package/src/components/form/td-option/td-option.const.d.ts +1 -0
  266. package/src/components/form/td-option/td-option.const.js +3 -0
  267. package/src/components/form/td-option/td-option.interface.d.ts +13 -0
  268. package/src/components/form/td-option/useOption.d.ts +6 -5
  269. package/src/components/form/td-option/useOption.js +25 -20
  270. package/src/components/form/td-option-group/style/css.d.ts +1 -1
  271. package/src/components/form/td-option-group/style/css.js +1 -1
  272. package/src/components/form/td-option-group/td-option-group.class.js +2 -2
  273. package/src/components/form/td-radio/style/css.d.ts +1 -1
  274. package/src/components/form/td-radio/style/css.js +1 -1
  275. package/src/components/form/td-radio/td-radio.class.js +4 -3
  276. package/src/components/form/td-radio/use-radio.d.ts +3 -3
  277. package/src/components/form/td-radio/use-radio.js +13 -16
  278. package/src/components/form/td-radio-button/style/css.d.ts +1 -1
  279. package/src/components/form/td-radio-button/style/css.js +1 -1
  280. package/src/components/form/td-radio-button/td-radio-button.class.js +1 -1
  281. package/src/components/form/td-radio-group/style/css.d.ts +1 -1
  282. package/src/components/form/td-radio-group/style/css.js +1 -1
  283. package/src/components/form/td-radio-group/td-radio-group.class.js +5 -5
  284. package/src/components/form/td-rate/style/css.d.ts +1 -1
  285. package/src/components/form/td-rate/style/css.js +1 -1
  286. package/src/components/form/td-rate/td-rate.class.js +9 -10
  287. package/src/components/form/td-rate/td-rate.interface.d.ts +2 -1
  288. package/src/components/form/td-select/style/css.d.ts +7 -7
  289. package/src/components/form/td-select/style/css.js +7 -7
  290. package/src/components/form/td-select/td-options/td-options.class.d.ts +6 -0
  291. package/src/components/form/td-select/td-options/td-options.class.js +49 -0
  292. package/src/components/form/td-select/td-select-dropdown/td-select-dropdown.class.js +4 -4
  293. package/src/components/form/td-select/td-select.class.d.ts +1 -0
  294. package/src/components/form/td-select/td-select.class.js +178 -144
  295. package/src/components/form/td-select/td-select.const.d.ts +13 -0
  296. package/src/components/form/td-select/td-select.const.js +18 -1
  297. package/src/components/form/td-select/td-select.interface.d.ts +33 -12
  298. package/src/components/form/td-select/token.js +1 -1
  299. package/src/components/form/td-select/useSelect.d.ts +111 -64
  300. package/src/components/form/td-select/useSelect.js +225 -196
  301. package/src/components/form/td-slider/button/button.class.d.ts +10 -2
  302. package/src/components/form/td-slider/button/button.class.js +56 -14
  303. package/src/components/form/td-slider/button/button.interface.d.ts +7 -3
  304. package/src/components/form/td-slider/composables/index.d.ts +6 -0
  305. package/src/components/form/td-slider/composables/index.js +9 -0
  306. package/src/components/form/td-slider/composables/use-lifecycle.d.ts +4 -0
  307. package/src/components/form/td-slider/composables/use-lifecycle.js +43 -0
  308. package/src/components/form/td-slider/composables/use-marks.d.ts +7 -0
  309. package/src/components/form/td-slider/composables/use-marks.js +27 -0
  310. package/src/components/form/td-slider/composables/use-slide.d.ts +24 -3
  311. package/src/components/form/td-slider/composables/use-slide.js +163 -200
  312. package/src/components/form/td-slider/composables/use-slider-button.d.ts +20 -0
  313. package/src/components/form/td-slider/composables/use-slider-button.js +266 -0
  314. package/src/components/form/td-slider/composables/use-stops.d.ts +9 -0
  315. package/src/components/form/td-slider/composables/use-stops.js +45 -0
  316. package/src/components/form/td-slider/composables/use-watch.d.ts +4 -0
  317. package/src/components/form/td-slider/composables/use-watch.js +97 -0
  318. package/src/components/form/td-slider/constants.d.ts +11 -0
  319. package/src/components/form/td-slider/constants.js +4 -0
  320. package/src/components/form/td-slider/mark/mark.class.d.ts +8 -0
  321. package/src/components/form/td-slider/mark/mark.class.js +27 -0
  322. package/src/components/form/td-slider/mark/mark.interface.d.ts +8 -0
  323. package/src/components/form/td-slider/style/css.d.ts +1 -1
  324. package/src/components/form/td-slider/style/css.js +1 -1
  325. package/src/components/form/td-slider/td-slider.class.d.ts +4 -2
  326. package/src/components/form/td-slider/td-slider.class.js +242 -33
  327. package/src/components/form/td-slider/td-slider.interface.d.ts +20 -11
  328. package/src/components/form/td-switch/style/css.d.ts +1 -1
  329. package/src/components/form/td-switch/style/css.js +1 -1
  330. package/src/components/form/td-switch/td-switch.class.js +14 -5
  331. package/src/components/form/td-switch/td-switch.const.js +1 -1
  332. package/src/components/form/td-switch/widget/td-switch-core.js +4 -4
  333. package/src/components/form/td-time-picker/common/props.d.ts +2 -1
  334. package/src/components/form/td-time-picker/style/css.d.ts +1 -1
  335. package/src/components/form/td-time-picker/style/css.js +1 -1
  336. package/src/components/form/td-time-picker/time-picker-com/basic-time-spinner.class.js +6 -5
  337. package/src/components/form/td-upload/ajax.d.ts +9 -0
  338. package/src/components/form/td-upload/ajax.js +100 -0
  339. package/src/components/form/td-upload/constants.d.ts +6 -0
  340. package/src/components/form/td-upload/constants.js +5 -0
  341. package/src/components/form/td-upload/style/css.d.ts +1 -1
  342. package/src/components/form/td-upload/style/css.js +1 -1
  343. package/src/components/form/td-upload/style/index.d.ts +1 -1
  344. package/src/components/form/td-upload/style/index.js +1 -1
  345. package/src/components/form/td-upload/td-upload.class.d.ts +15 -0
  346. package/src/components/form/td-upload/td-upload.class.js +107 -0
  347. package/src/components/form/td-upload/td-upload.const.d.ts +5 -0
  348. package/src/components/form/td-upload/td-upload.const.js +22 -0
  349. package/src/components/form/td-upload/td-upload.interface.d.ts +160 -0
  350. package/src/components/form/td-upload/td-upload.interface.js +1 -0
  351. package/src/components/form/td-upload/upload-content/upload-content.class.d.ts +11 -0
  352. package/src/components/form/td-upload/upload-content/upload-content.class.js +218 -0
  353. package/src/components/form/td-upload/upload-content/upload-content.const.d.ts +2 -0
  354. package/src/components/form/td-upload/upload-content/upload-content.const.js +6 -0
  355. package/src/components/form/td-upload/upload-content/upload-content.interface.d.ts +15 -0
  356. package/src/components/form/td-upload/upload-content/upload-content.interface.js +2 -0
  357. package/src/components/form/td-upload/upload-dragger/upload-dragger.class.d.ts +8 -0
  358. package/src/components/form/td-upload/upload-dragger/upload-dragger.class.js +73 -0
  359. package/src/components/form/td-upload/upload-dragger/upload-dragger.const.d.ts +5 -0
  360. package/src/components/form/td-upload/upload-dragger/upload-dragger.const.js +10 -0
  361. package/src/components/form/td-upload/upload-dragger/upload-dragger.interface.d.ts +7 -0
  362. package/src/components/form/td-upload/upload-dragger/upload-dragger.interface.js +2 -0
  363. package/src/components/form/td-upload/upload-list/upload-list.class.d.ts +8 -0
  364. package/src/components/form/td-upload/upload-list/upload-list.class.js +196 -0
  365. package/src/components/form/td-upload/upload-list/upload-list.const.d.ts +3 -0
  366. package/src/components/form/td-upload/upload-list/upload-list.const.js +13 -0
  367. package/src/components/form/td-upload/upload-list/upload-list.interface.d.ts +19 -0
  368. package/src/components/form/td-upload/upload-list/upload-list.interface.js +2 -0
  369. package/src/components/form/td-upload/use-handlers.d.ts +16 -0
  370. package/src/components/form/td-upload/use-handlers.js +175 -0
  371. package/src/components/navigation/index.d.ts +1 -0
  372. package/src/components/navigation/index.js +3 -0
  373. package/src/components/navigation/td-affix/style/css.d.ts +1 -1
  374. package/src/components/navigation/td-affix/style/css.js +1 -1
  375. package/src/components/navigation/td-affix/td-affix.class.d.ts +1 -0
  376. package/src/components/navigation/td-affix/td-affix.class.js +78 -36
  377. package/src/components/navigation/td-anchor/style/css.d.ts +1 -1
  378. package/src/components/navigation/td-anchor/style/css.js +1 -1
  379. package/src/components/navigation/td-anchor-link/style/css.d.ts +1 -1
  380. package/src/components/navigation/td-anchor-link/style/css.js +1 -1
  381. package/src/components/navigation/td-backtop/style/css.d.ts +1 -1
  382. package/src/components/navigation/td-backtop/style/css.js +1 -1
  383. package/src/components/navigation/td-backtop/td-backtop.class.d.ts +1 -0
  384. package/src/components/navigation/td-backtop/td-backtop.class.js +3 -2
  385. package/src/components/navigation/td-backtop/td-backtop.const.js +1 -0
  386. package/src/components/navigation/td-backtop/use-backtop.js +2 -1
  387. package/src/components/navigation/td-breadcrumb/style/css.d.ts +1 -1
  388. package/src/components/navigation/td-breadcrumb/style/css.js +1 -1
  389. package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.js +1 -1
  390. package/src/components/navigation/td-breadcrumb-item/style/css.d.ts +1 -1
  391. package/src/components/navigation/td-breadcrumb-item/style/css.js +1 -1
  392. package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.interface.d.ts +2 -1
  393. package/src/components/navigation/td-dropdown/style/css.d.ts +1 -1
  394. package/src/components/navigation/td-dropdown/style/css.js +1 -1
  395. package/src/components/navigation/td-dropdown-item/style/css.d.ts +1 -1
  396. package/src/components/navigation/td-dropdown-item/style/css.js +1 -1
  397. package/src/components/navigation/td-menu/index.d.ts +9 -0
  398. package/src/components/navigation/td-menu/index.js +13 -0
  399. package/src/components/navigation/td-menu/style/css.d.ts +2 -2
  400. package/src/components/navigation/td-menu/style/css.js +2 -2
  401. package/src/components/navigation/td-menu/td-menu-collapse-transition/td-menu-collapse-transition.class.d.ts +6 -0
  402. package/src/components/navigation/td-menu/td-menu-collapse-transition/td-menu-collapse-transition.class.js +56 -0
  403. package/src/components/navigation/td-menu/td-menu-item/style/css.d.ts +2 -0
  404. package/src/components/navigation/td-menu/td-menu-item/style/css.js +4 -0
  405. package/src/components/navigation/td-menu/td-menu-item/style/index.d.ts +2 -0
  406. package/src/components/navigation/td-menu/td-menu-item/style/index.js +4 -0
  407. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.class.d.ts +11 -0
  408. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.class.js +107 -0
  409. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.const.d.ts +4 -0
  410. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.const.js +10 -0
  411. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.interface.d.ts +20 -0
  412. package/src/components/navigation/td-menu/td-menu-item/td-menu-item.interface.js +2 -0
  413. package/src/components/navigation/td-menu/td-menu-item-group/style/css.d.ts +2 -0
  414. package/src/components/navigation/td-menu/td-menu-item-group/style/css.js +4 -0
  415. package/src/components/navigation/td-menu/td-menu-item-group/style/index.d.ts +2 -0
  416. package/src/components/navigation/td-menu/td-menu-item-group/style/index.js +4 -0
  417. package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.class.d.ts +9 -0
  418. package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.class.js +28 -0
  419. package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.interface.d.ts +10 -0
  420. package/src/components/navigation/td-menu/td-menu-item-group/td-menu-item-group.interface.js +2 -0
  421. package/src/components/navigation/td-menu/td-menu.class.d.ts +3 -2
  422. package/src/components/navigation/td-menu/td-menu.class.js +297 -27
  423. package/src/components/navigation/td-menu/td-menu.const.d.ts +8 -0
  424. package/src/components/navigation/td-menu/td-menu.const.js +29 -0
  425. package/src/components/navigation/td-menu/td-menu.interface.d.ts +86 -7
  426. package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.class.d.ts +10 -0
  427. package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.class.js +301 -0
  428. package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.interface.d.ts +53 -0
  429. package/src/components/navigation/td-menu/td-sub-menu/td-sub-menu.interface.js +2 -0
  430. package/src/components/navigation/td-menu/types.d.ts +36 -0
  431. package/src/components/navigation/td-menu/types.js +2 -0
  432. package/src/components/navigation/td-menu/use-menu-color.d.ts +2 -0
  433. package/src/components/navigation/td-menu/use-menu-color.js +14 -0
  434. package/src/components/navigation/td-menu/use-menu-css-var.d.ts +2 -0
  435. package/src/components/navigation/td-menu/use-menu-css-var.js +20 -0
  436. package/src/components/navigation/td-menu/use-menu.d.ts +8 -0
  437. package/src/components/navigation/td-menu/use-menu.js +31 -0
  438. package/src/components/navigation/td-menu/utils/menu-bar.d.ts +7 -0
  439. package/src/components/navigation/td-menu/utils/menu-bar.js +21 -0
  440. package/src/components/navigation/td-menu/utils/menu-item.d.ts +9 -0
  441. package/src/components/navigation/td-menu/utils/menu-item.js +58 -0
  442. package/src/components/navigation/td-menu/utils/submenu.d.ts +12 -0
  443. package/src/components/navigation/td-menu/utils/submenu.js +66 -0
  444. package/src/components/navigation/td-menu-item/style/css.d.ts +1 -1
  445. package/src/components/navigation/td-menu-item/style/css.js +1 -1
  446. package/src/components/navigation/td-menu-item-group/style/css.d.ts +1 -1
  447. package/src/components/navigation/td-menu-item-group/style/css.js +1 -1
  448. package/src/components/navigation/td-page-header/style/css.d.ts +2 -2
  449. package/src/components/navigation/td-page-header/style/css.js +2 -2
  450. package/src/components/navigation/td-step/style/css.d.ts +1 -1
  451. package/src/components/navigation/td-step/style/css.js +1 -1
  452. package/src/components/navigation/td-steps/style/css.d.ts +1 -1
  453. package/src/components/navigation/td-steps/style/css.js +1 -1
  454. package/src/components/navigation/td-tab-pane/style/css.d.ts +1 -1
  455. package/src/components/navigation/td-tab-pane/style/css.js +1 -1
  456. package/src/components/navigation/td-tabs/style/css.d.ts +1 -1
  457. package/src/components/navigation/td-tabs/style/css.js +1 -1
  458. package/src/components/others/collapsible-box/heading/expand-heading.js +1 -1
  459. package/src/components/others/example/op-btns.js +1 -1
  460. package/src/components/others/menus/menu.d.ts +6 -5
  461. package/src/components/others/menus/menu.js +24 -10
  462. package/src/components/others/menus/menus.d.ts +5 -5
  463. package/src/components/others/menus/menus.js +15 -23
  464. package/src/components/others/td-divider/style/css.d.ts +1 -1
  465. package/src/components/others/td-divider/style/css.js +1 -1
  466. package/src/hooks/use-attrs/index.d.ts +1 -1
  467. package/src/hooks/use-calc-input-width/index.d.ts +1 -1
  468. package/src/hooks/use-delayed-toggle/index.js +1 -1
  469. package/src/hooks/use-deprecated/index.d.ts +1 -1
  470. package/src/hooks/use-deprecated/index.js +2 -2
  471. package/src/hooks/use-empty-values/index.d.ts +4 -2
  472. package/src/hooks/use-empty-values/index.js +8 -8
  473. package/src/hooks/use-focus-controller/index.d.ts +1 -1
  474. package/src/hooks/use-focus-controller/index.js +1 -1
  475. package/src/hooks/use-id/index.js +4 -4
  476. package/src/hooks/use-lockscreen/index.js +1 -1
  477. package/src/hooks/use-model-toggle/index.js +11 -6
  478. package/src/hooks/use-namespace/index.d.ts +1 -1
  479. package/src/hooks/use-popper/index.d.ts +9 -4
  480. package/src/hooks/use-popper/index.js +42 -34
  481. package/src/hooks/use-popper-container/index.js +2 -2
  482. package/src/hooks/use-z-index/index.js +1 -1
  483. package/src/index.d.ts +1 -1
  484. package/src/index.js +1 -1
  485. package/src/locale/index.d.ts +11 -0
  486. package/src/locale/index.js +24 -2
  487. package/src/locale/lang/hi.d.ts +180 -0
  488. package/src/locale/lang/hi.js +181 -0
  489. package/src/locale/lang/ku.js +1 -1
  490. package/src/locale/lang/lo.d.ts +180 -0
  491. package/src/locale/lang/lo.js +181 -0
  492. package/src/locale/lang/ms.d.ts +1 -1
  493. package/src/locale/lang/ms.js +11 -11
  494. package/src/locale/lang/no.d.ts +179 -0
  495. package/src/locale/lang/no.js +180 -0
  496. package/src/locale/lang/ru.js +4 -4
  497. package/src/locale/lang/te.d.ts +180 -0
  498. package/src/locale/lang/te.js +181 -0
  499. package/src/locale/lang/zh-hk.d.ts +179 -0
  500. package/src/locale/lang/zh-hk.js +181 -0
  501. package/src/locale/lang/zh-mo.d.ts +179 -0
  502. package/src/locale/lang/zh-mo.js +181 -0
  503. package/src/styles/var.js +5 -5
  504. package/src/theme-chalk/affix.scss +7 -0
  505. package/src/theme-chalk/alert.scss +115 -0
  506. package/src/theme-chalk/anchor-link.scss +41 -0
  507. package/src/theme-chalk/anchor.scss +88 -0
  508. package/src/theme-chalk/aside.scss +8 -0
  509. package/src/theme-chalk/autocomplete.scss +89 -0
  510. package/src/theme-chalk/avatar.scss +55 -0
  511. package/src/theme-chalk/backtop.scss +29 -0
  512. package/src/theme-chalk/badge.scss +58 -0
  513. package/src/theme-chalk/base.scss +3 -0
  514. package/src/theme-chalk/breadcrumb-item.scss +0 -0
  515. package/src/theme-chalk/breadcrumb.scss +62 -0
  516. package/src/theme-chalk/button-group.scss +80 -0
  517. package/src/theme-chalk/button.scss +304 -0
  518. package/src/theme-chalk/calendar.scss +80 -0
  519. package/src/theme-chalk/card.scss +45 -0
  520. package/src/theme-chalk/carousel-item.scss +58 -0
  521. package/src/theme-chalk/carousel.scss +188 -0
  522. package/src/theme-chalk/cascader-panel.scss +138 -0
  523. package/src/theme-chalk/cascader.scss +247 -0
  524. package/src/theme-chalk/check-tag.scss +60 -0
  525. package/src/theme-chalk/checkbox-button.scss +140 -0
  526. package/src/theme-chalk/checkbox-group.scss +7 -0
  527. package/src/theme-chalk/checkbox.scss +298 -0
  528. package/src/theme-chalk/col.scss +48 -0
  529. package/src/theme-chalk/collapse-item.scss +0 -0
  530. package/src/theme-chalk/collapse-transition.scss +0 -0
  531. package/src/theme-chalk/collapse.scss +70 -0
  532. package/src/theme-chalk/color/index.scss +20 -0
  533. package/src/theme-chalk/color-picker.scss +393 -0
  534. package/src/theme-chalk/common/popup.scss +47 -0
  535. package/src/theme-chalk/common/transition.scss +122 -0
  536. package/src/theme-chalk/common/var.scss +1655 -0
  537. package/src/theme-chalk/config-provider.scss +0 -0
  538. package/src/theme-chalk/container.scss +14 -0
  539. package/src/theme-chalk/dark/css-vars.scss +39 -0
  540. package/src/theme-chalk/dark/var.scss +222 -0
  541. package/src/theme-chalk/date-picker/date-picker.scss +110 -0
  542. package/src/theme-chalk/date-picker/date-range-picker.scss +113 -0
  543. package/src/theme-chalk/date-picker/date-table.scss +158 -0
  544. package/src/theme-chalk/date-picker/month-table.scss +112 -0
  545. package/src/theme-chalk/date-picker/picker-panel.scss +131 -0
  546. package/src/theme-chalk/date-picker/picker.scss +212 -0
  547. package/src/theme-chalk/date-picker/time-picker.scss +90 -0
  548. package/src/theme-chalk/date-picker/time-range-picker.scss +33 -0
  549. package/src/theme-chalk/date-picker/time-spinner.scss +111 -0
  550. package/src/theme-chalk/date-picker/year-table.scss +108 -0
  551. package/src/theme-chalk/date-picker.scss +9 -0
  552. package/src/theme-chalk/descriptions-item.scss +73 -0
  553. package/src/theme-chalk/descriptions.scss +152 -0
  554. package/src/theme-chalk/dialog.scss +192 -0
  555. package/src/theme-chalk/display.scss +12 -0
  556. package/src/theme-chalk/divider.scss +48 -0
  557. package/src/theme-chalk/drawer.scss +155 -0
  558. package/src/theme-chalk/dropdown-item.scss +0 -0
  559. package/src/theme-chalk/dropdown-menu.scss +0 -0
  560. package/src/theme-chalk/dropdown.scss +208 -0
  561. package/src/theme-chalk/empty.scss +49 -0
  562. package/src/theme-chalk/footer.scss +12 -0
  563. package/src/theme-chalk/form-item.scss +0 -0
  564. package/src/theme-chalk/form.scss +244 -0
  565. package/src/theme-chalk/header.scss +12 -0
  566. package/src/theme-chalk/icon.scss +45 -0
  567. package/src/theme-chalk/image-viewer.scss +155 -0
  568. package/src/theme-chalk/image.scss +49 -0
  569. package/src/theme-chalk/index.scss +111 -0
  570. package/src/theme-chalk/infinite-scroll.scss +0 -0
  571. package/src/theme-chalk/input-number.scss +186 -0
  572. package/src/theme-chalk/input-tag.scss +220 -0
  573. package/src/theme-chalk/input.scss +474 -0
  574. package/src/theme-chalk/link.scss +90 -0
  575. package/src/theme-chalk/loading.scss +104 -0
  576. package/src/theme-chalk/main.scss +14 -0
  577. package/src/theme-chalk/mention.scss +92 -0
  578. package/src/theme-chalk/menu-item-group.scss +0 -0
  579. package/src/theme-chalk/menu-item.scss +0 -0
  580. package/src/theme-chalk/menu.scss +339 -0
  581. package/src/theme-chalk/message-box.scss +213 -0
  582. package/src/theme-chalk/message.scss +98 -0
  583. package/src/theme-chalk/mixins/_button.scss +165 -0
  584. package/src/theme-chalk/mixins/_col.scss +33 -0
  585. package/src/theme-chalk/mixins/_var.scss +67 -0
  586. package/src/theme-chalk/mixins/config.scss +5 -0
  587. package/src/theme-chalk/mixins/function.scss +88 -0
  588. package/src/theme-chalk/mixins/mixins.scss +240 -0
  589. package/src/theme-chalk/mixins/utils.scss +39 -0
  590. package/src/theme-chalk/notification.scss +107 -0
  591. package/src/theme-chalk/option-group.scss +33 -0
  592. package/src/theme-chalk/option.scss +71 -0
  593. package/src/theme-chalk/overlay.scss +17 -0
  594. package/src/theme-chalk/page-header.scss +60 -0
  595. package/src/theme-chalk/pagination.scss +238 -0
  596. package/src/theme-chalk/popconfirm.scss +16 -0
  597. package/src/theme-chalk/popover.scss +61 -0
  598. package/src/theme-chalk/popper.scss +106 -0
  599. package/src/theme-chalk/progress.scss +179 -0
  600. package/src/theme-chalk/radio-button.scss +169 -0
  601. package/src/theme-chalk/radio-group.scss +9 -0
  602. package/src/theme-chalk/radio.scss +215 -0
  603. package/src/theme-chalk/rate.scss +108 -0
  604. package/src/theme-chalk/reset.scss +98 -0
  605. package/src/theme-chalk/result.scss +57 -0
  606. package/src/theme-chalk/row.scss +35 -0
  607. package/src/theme-chalk/scrollbar.scss +97 -0
  608. package/src/theme-chalk/segmented.scss +183 -0
  609. package/src/theme-chalk/select-dropdown-v2.scss +1 -0
  610. package/src/theme-chalk/select-dropdown.scss +57 -0
  611. package/src/theme-chalk/select-v2.scss +4 -0
  612. package/src/theme-chalk/select.scss +264 -0
  613. package/src/theme-chalk/skeleton-item.scss +83 -0
  614. package/src/theme-chalk/skeleton.scss +44 -0
  615. package/src/theme-chalk/slider.scss +212 -0
  616. package/src/theme-chalk/space.scss +20 -0
  617. package/src/theme-chalk/spinner.scss +43 -0
  618. package/src/theme-chalk/statistic.scss +35 -0
  619. package/src/theme-chalk/step.scss +316 -0
  620. package/src/theme-chalk/steps.scss +21 -0
  621. package/src/theme-chalk/sub-menu.scss +0 -0
  622. package/src/theme-chalk/switch.scss +300 -0
  623. package/src/theme-chalk/tab-pane.scss +0 -0
  624. package/src/theme-chalk/table-column.scss +98 -0
  625. package/src/theme-chalk/table-v2.scss +236 -0
  626. package/src/theme-chalk/table.scss +694 -0
  627. package/src/theme-chalk/tabs.scss +660 -0
  628. package/src/theme-chalk/tag.scss +181 -0
  629. package/src/theme-chalk/text.scss +51 -0
  630. package/src/theme-chalk/time-picker.scss +5 -0
  631. package/src/theme-chalk/time-select.scss +37 -0
  632. package/src/theme-chalk/timeline-item.scss +84 -0
  633. package/src/theme-chalk/timeline.scss +46 -0
  634. package/src/theme-chalk/tooltip-v2.scss +95 -0
  635. package/src/theme-chalk/tooltip.scss +0 -0
  636. package/src/theme-chalk/tour.scss +187 -0
  637. package/src/theme-chalk/transfer.scss +203 -0
  638. package/src/theme-chalk/tree-select.scss +41 -0
  639. package/src/theme-chalk/tree.scss +134 -0
  640. package/src/theme-chalk/upload.scss +654 -0
  641. package/src/theme-chalk/var.scss +87 -0
  642. package/src/theme-chalk/virtual-list.scss +40 -0
  643. package/src/components/basic/td-container/td-container.old.d.ts +0 -11
  644. package/src/components/basic/td-container/td-container.old.js +0 -31
  645. package/src/components/form/td-input/widget/prefix.d.ts +0 -10
  646. package/src/components/form/td-input/widget/prefix.js +0 -63
  647. package/src/components/form/td-input/widget/suffix.d.ts +0 -14
  648. package/src/components/form/td-input/widget/suffix.js +0 -125
  649. package/src/components/form/td-input/widget/td-input-wrapper.class.d.ts +0 -33
  650. package/src/components/form/td-input/widget/td-input-wrapper.class.js +0 -287
  651. package/src/components/form/td-input/widget/td-input-wrapper.interface.d.ts +0 -4
  652. package/src/components/form/td-input/widget/td-textarea-wrapper.d.ts +0 -13
  653. package/src/components/form/td-input/widget/td-textarea-wrapper.js +0 -120
  654. package/src/components/form/td-option/td-option.old.d.ts +0 -8
  655. package/src/components/form/td-option/td-option.old.js +0 -24
  656. package/src/components/form/td-slider/td-slider-marker.d.ts +0 -13
  657. package/src/components/form/td-slider/td-slider-marker.js +0 -19
  658. /package/src/components/form/td-input/{widget/utils.d.ts → utils.d.ts} +0 -0
  659. /package/src/components/form/{td-input/widget/td-input-wrapper.interface.js → td-slider/mark/mark.interface.js} +0 -0
@@ -0,0 +1,1655 @@
1
+ /* Element Chalk Variables */
2
+ @use 'sass:math';
3
+ @use 'sass:map';
4
+ @use 'sass:color';
5
+
6
+ @use '../mixins/function' as *;
7
+
8
+ // Special comment for theme configurator
9
+ // type|skipAutoTranslation|Category|Order
10
+ // skipAutoTranslation 1
11
+
12
+ // types
13
+ $types: primary, success, warning, danger, error, info;
14
+
15
+ // Color
16
+ $colors: () !default;
17
+ $colors: map.deep-merge(
18
+ (
19
+ 'white': #ffffff,
20
+ 'black': #000000,
21
+ 'primary': (
22
+ 'base': #409eff,
23
+ ),
24
+ 'success': (
25
+ 'base': #67c23a,
26
+ ),
27
+ 'warning': (
28
+ 'base': #e6a23c,
29
+ ),
30
+ 'danger': (
31
+ 'base': #f56c6c,
32
+ ),
33
+ 'error': (
34
+ 'base': #f56c6c,
35
+ ),
36
+ 'info': (
37
+ 'base': #909399,
38
+ ),
39
+ ),
40
+ $colors
41
+ );
42
+
43
+ $color-white: map.get($colors, 'white') !default;
44
+ $color-black: map.get($colors, 'black') !default;
45
+ $color-primary: map.get($colors, 'primary', 'base') !default;
46
+ $color-success: map.get($colors, 'success', 'base') !default;
47
+ $color-warning: map.get($colors, 'warning', 'base') !default;
48
+ $color-danger: map.get($colors, 'danger', 'base') !default;
49
+ $color-error: map.get($colors, 'error', 'base') !default;
50
+ $color-info: map.get($colors, 'info', 'base') !default;
51
+
52
+ // https://sass-lang.com/documentation/values/maps#immutability
53
+ // mix colors with white/black to generate light/dark level
54
+ @mixin set-color-mix-level(
55
+ $type,
56
+ $number,
57
+ $mode: 'light',
58
+ $mix-color: $color-white
59
+ ) {
60
+ $colors: map.deep-merge(
61
+ (
62
+ $type: (
63
+ '#{$mode}-#{$number}':
64
+ color.mix(
65
+ $mix-color,
66
+ map.get($colors, $type, 'base'),
67
+ math.percentage(math.div($number, 10))
68
+ ),
69
+ ),
70
+ ),
71
+ $colors
72
+ ) !global;
73
+ }
74
+
75
+ // $colors.primary.light-i
76
+ // --el-color-primary-light-i
77
+ // 10% 53a8ff
78
+ // 20% 66b1ff
79
+ // 30% 79bbff
80
+ // 40% 8cc5ff
81
+ // 50% a0cfff
82
+ // 60% b3d8ff
83
+ // 70% c6e2ff
84
+ // 80% d9ecff
85
+ // 90% ecf5ff
86
+ @each $type in $types {
87
+ @for $i from 1 through 9 {
88
+ @include set-color-mix-level($type, $i, 'light', $color-white);
89
+ }
90
+ }
91
+
92
+ // --el-color-primary-dark-2
93
+ @each $type in $types {
94
+ @include set-color-mix-level($type, 2, 'dark', $color-black);
95
+ }
96
+
97
+ $text-color: () !default;
98
+ $text-color: map.merge(
99
+ (
100
+ 'primary': #303133,
101
+ 'regular': #606266,
102
+ 'secondary': #909399,
103
+ 'placeholder': #a8abb2,
104
+ 'disabled': #c0c4cc,
105
+ ),
106
+ $text-color
107
+ );
108
+
109
+ $border-color: () !default;
110
+ $border-color: map.merge(
111
+ (
112
+ '': #dcdfe6,
113
+ 'light': #e4e7ed,
114
+ 'lighter': #ebeef5,
115
+ 'extra-light': #f2f6fc,
116
+ 'dark': #d4d7de,
117
+ 'darker': #cdd0d6,
118
+ ),
119
+ $border-color
120
+ );
121
+
122
+ $fill-color: () !default;
123
+ $fill-color: map.merge(
124
+ (
125
+ '': #f0f2f5,
126
+ 'light': #f5f7fa,
127
+ 'lighter': #fafafa,
128
+ 'extra-light': #fafcff,
129
+ 'dark': #ebedf0,
130
+ 'darker': #e6e8eb,
131
+ 'blank': #ffffff,
132
+ ),
133
+ $fill-color
134
+ );
135
+
136
+ // Background
137
+ $bg-color: () !default;
138
+ $bg-color: map.merge(
139
+ (
140
+ '': #ffffff,
141
+ 'page': #f2f3f5,
142
+ 'overlay': #ffffff,
143
+ ),
144
+ $bg-color
145
+ );
146
+
147
+ // Border
148
+ $border-width: 1px !default;
149
+ $border-style: solid !default;
150
+ $border-color-hover: getCssVar('text-color', 'disabled') !default;
151
+
152
+ $border-radius: () !default;
153
+ $border-radius: map.merge(
154
+ (
155
+ 'base': 4px,
156
+ 'small': 2px,
157
+ 'round': 20px,
158
+ 'circle': 100%,
159
+ ),
160
+ $border-radius
161
+ );
162
+
163
+ // Box-shadow
164
+ $box-shadow: () !default;
165
+ $box-shadow: map.merge(
166
+ (
167
+ '': (
168
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
169
+ 0px 8px 20px rgba(0, 0, 0, 0.08),
170
+ ),
171
+ 'light': (
172
+ 0px 0px 12px rgba(0, 0, 0, 0.12),
173
+ ),
174
+ 'lighter': (
175
+ 0px 0px 6px rgba(0, 0, 0, 0.12),
176
+ ),
177
+ 'dark': (
178
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
179
+ 0px 12px 32px rgba(0, 0, 0, 0.12),
180
+ 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
181
+ ),
182
+ ),
183
+ $box-shadow
184
+ );
185
+
186
+ // Typography
187
+ $font-family: () !default;
188
+ $font-family: map.merge(
189
+ (
190
+ // default family
191
+ '':
192
+ "'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
193
+ ),
194
+ $font-family
195
+ );
196
+
197
+ $font-size: () !default;
198
+ $font-size: map.merge(
199
+ (
200
+ 'extra-large': 20px,
201
+ 'large': 18px,
202
+ 'medium': 16px,
203
+ 'base': 14px,
204
+ 'small': 13px,
205
+ 'extra-small': 12px,
206
+ ),
207
+ $font-size
208
+ );
209
+
210
+ // zIndex
211
+ $z-index: () !default;
212
+ $z-index: map.merge(
213
+ (
214
+ 'normal': 1,
215
+ 'top': 1000,
216
+ 'popper': 2000,
217
+ ),
218
+ $z-index
219
+ );
220
+
221
+ // Disable default
222
+ $disabled: () !default;
223
+ $disabled: map.merge(
224
+ (
225
+ 'bg-color': getCssVar('fill-color', 'light'),
226
+ 'text-color': getCssVar('text-color', 'placeholder'),
227
+ 'border-color': getCssVar('border-color', 'light'),
228
+ ),
229
+ $disabled
230
+ );
231
+
232
+ $common-component-size: () !default;
233
+ $common-component-size: map.merge(
234
+ (
235
+ 'large': 40px,
236
+ 'default': 32px,
237
+ 'small': 24px,
238
+ ),
239
+ $common-component-size
240
+ );
241
+
242
+ // overlay
243
+ $overlay-color: () !default;
244
+ $overlay-color: map.merge(
245
+ (
246
+ '': rgba(0, 0, 0, 0.8),
247
+ 'light': rgba(0, 0, 0, 0.7),
248
+ 'lighter': rgba(0, 0, 0, 0.5),
249
+ ),
250
+ $overlay-color
251
+ );
252
+
253
+ // mask
254
+ $mask-color: () !default;
255
+ $mask-color: map.merge(
256
+ (
257
+ '': rgba(255, 255, 255, 0.9),
258
+ 'extra-light': rgba(255, 255, 255, 0.3),
259
+ ),
260
+ $mask-color
261
+ );
262
+
263
+ // Components
264
+ // ---
265
+ // Checkbox
266
+ // css3 var in packages/theme-chalk/src/checkbox.scss
267
+ $checkbox: () !default;
268
+ $checkbox: map.merge(
269
+ (
270
+ 'font-size': 14px,
271
+ 'font-weight': getCssVar('font-weight-primary'),
272
+ 'text-color': getCssVar('text-color-regular'),
273
+ 'input-height': 14px,
274
+ 'input-width': 14px,
275
+ 'border-radius': getCssVar('border-radius-small'),
276
+ 'bg-color': getCssVar('fill-color', 'blank'),
277
+ 'input-border': getCssVar('border'),
278
+ 'disabled-border-color': getCssVar('border-color'),
279
+ 'disabled-input-fill': getCssVar('fill-color', 'light'),
280
+ 'disabled-icon-color': getCssVar('text-color-placeholder'),
281
+ 'disabled-checked-input-fill': getCssVar('border-color-extra-light'),
282
+ 'disabled-checked-input-border-color': getCssVar('border-color'),
283
+ 'disabled-checked-icon-color': getCssVar('text-color-placeholder'),
284
+ 'checked-text-color': getCssVar('color-primary'),
285
+ 'checked-input-border-color': getCssVar('color-primary'),
286
+ 'checked-bg-color': getCssVar('color-primary'),
287
+ 'checked-icon-color': getCssVar('color', 'white'),
288
+ 'input-border-color-hover': getCssVar('color-primary'),
289
+ ),
290
+ $checkbox
291
+ );
292
+
293
+ $checkbox-button: () !default;
294
+ $checkbox-button: map.merge(
295
+ (
296
+ 'checked-bg-color': getCssVar('color-primary'),
297
+ 'checked-text-color': getCssVar('color-white'),
298
+ 'checked-border-color': getCssVar('color-primary'),
299
+ ),
300
+ $checkbox-button
301
+ );
302
+
303
+ $checkbox-bordered-padding-left: () !default;
304
+ $checkbox-bordered-padding-left: map.merge(
305
+ (
306
+ 'large': 12px,
307
+ 'default': 10px,
308
+ 'small': 8px,
309
+ ),
310
+ $checkbox-bordered-padding-left
311
+ );
312
+
313
+ $checkbox-bordered-padding-right: () !default;
314
+ $checkbox-bordered-padding-right: map.merge(
315
+ (
316
+ 'large': 20px,
317
+ 'default': 16px,
318
+ 'small': 12px,
319
+ ),
320
+ $checkbox-bordered-padding-right
321
+ );
322
+
323
+ // Radio
324
+ /// fontSize||Font|1
325
+ $radio: () !default;
326
+ $radio: map.merge(
327
+ (
328
+ 'font-size': getCssVar('font-size-base'),
329
+ 'text-color': getCssVar('text-color-regular'),
330
+ 'font-weight': getCssVar('font-weight-primary'),
331
+ 'input-height': 14px,
332
+ 'input-width': 14px,
333
+ 'input-border-radius': getCssVar('border-radius-circle'),
334
+ 'input-bg-color': getCssVar('fill-color', 'blank'),
335
+ 'input-border': getCssVar('border'),
336
+ 'input-border-color': getCssVar('border-color'),
337
+ 'input-border-color-hover': getCssVar('color-primary'),
338
+ ),
339
+ $radio
340
+ );
341
+
342
+ $radio-height: () !default;
343
+ $radio-height: map.merge($common-component-size, $radio-height);
344
+
345
+ $radio-button: () !default;
346
+ $radio-button: map.merge(
347
+ (
348
+ 'checked-bg-color': getCssVar('color-primary'),
349
+ 'checked-text-color': getCssVar('color-white'),
350
+ 'checked-border-color': getCssVar('color-primary'),
351
+ 'disabled-checked-fill': getCssVar('border-color-extra-light'),
352
+ ),
353
+ $radio-button
354
+ );
355
+
356
+ $radio-disabled: () !default;
357
+ $radio-disabled: map.merge(
358
+ (
359
+ 'input-border-color': getCssVar('disabled-border-color'),
360
+ 'input-fill': getCssVar('disabled-bg-color'),
361
+ 'icon-color': getCssVar('disabled-bg-color'),
362
+ 'checked-input-border-color': getCssVar('disabled-border-color'),
363
+ 'checked-input-fill': getCssVar('disabled-bg-color'),
364
+ 'checked-icon-color': getCssVar('text-color-placeholder'),
365
+ ),
366
+ $radio-disabled
367
+ );
368
+
369
+ $radio-checked: () !default;
370
+ $radio-checked: map.merge(
371
+ (
372
+ 'text-color': getCssVar('color-primary'),
373
+ 'input-border-color': getCssVar('color-primary'),
374
+ 'icon-color': getCssVar('color-primary'),
375
+ ),
376
+ $radio-checked
377
+ );
378
+
379
+ $radio-bordered-input-height: () !default;
380
+ $radio-bordered-input-height: map.merge(
381
+ (
382
+ 'large': 14px,
383
+ 'default': 12px,
384
+ 'small': 12px,
385
+ ),
386
+ $radio-bordered-input-height
387
+ );
388
+
389
+ $radio-bordered-input-width: () !default;
390
+ $radio-bordered-input-width: map.merge(
391
+ (
392
+ 'large': 14px,
393
+ 'default': 12px,
394
+ 'small': 12px,
395
+ ),
396
+ $radio-bordered-input-width
397
+ );
398
+
399
+ // Select
400
+ $select: () !default;
401
+ $select: map.merge(
402
+ (
403
+ 'border-color-hover': getCssVar('border-color-hover'),
404
+ 'disabled-color': getCssVar('disabled-text-color'),
405
+ 'disabled-border': getCssVar('disabled-border-color'),
406
+ 'font-size': getCssVar('font-size-base'),
407
+ 'close-hover-color': getCssVar('text-color-secondary'),
408
+ 'input-color': getCssVar('text-color-placeholder'),
409
+ 'multiple-input-color': getCssVar('text-color-regular'),
410
+ 'input-focus-border-color': getCssVar('color-primary'),
411
+ 'input-font-size': 14px,
412
+ 'width': 100%,
413
+ ),
414
+ $select
415
+ );
416
+
417
+ $select-option: () !default;
418
+ $select-option: map.merge(
419
+ (
420
+ 'text-color': getCssVar('text-color-regular'),
421
+ 'disabled-color': getCssVar('text-color-placeholder'),
422
+ 'height': 34px,
423
+ 'hover-background': getCssVar('fill-color', 'light'),
424
+ 'selected-text-color': getCssVar('color-primary'),
425
+ ),
426
+ $select-option
427
+ );
428
+
429
+ $select-group: () !default;
430
+ $select-group: map.merge(
431
+ (
432
+ 'text-color': getCssVar('color-info'),
433
+ 'height': 34px,
434
+ 'font-size': 12px,
435
+ ),
436
+ $select-group
437
+ );
438
+
439
+ $select-dropdown: () !default;
440
+ $select-dropdown: map.merge(
441
+ (
442
+ 'bg-color': getCssVar('bg-color', 'overlay'),
443
+ 'shadow': getCssVar('box-shadow-light'),
444
+ 'empty-color': getCssVar('text-color-secondary'),
445
+ 'max-height': 274px,
446
+ 'padding': 6px 0,
447
+ 'empty-padding': 10px 0,
448
+ 'header-padding': 10px,
449
+ 'footer-padding': 10px,
450
+ 'border': 1px solid getCssVar('border-color-light'),
451
+ ),
452
+ $select-dropdown
453
+ );
454
+
455
+ $select-wrapper-padding: () !default;
456
+ $select-wrapper-padding: map.merge(
457
+ (
458
+ 'large': 8px 16px,
459
+ 'default': 4px 12px,
460
+ 'small': 2px 8px,
461
+ ),
462
+ $select-wrapper-padding
463
+ );
464
+
465
+ $select-near-margin-left: () !default;
466
+ $select-near-margin-left: map.merge(
467
+ (
468
+ 'large': -8px,
469
+ 'default': -8px,
470
+ 'small': -6px,
471
+ ),
472
+ $select-near-margin-left
473
+ );
474
+
475
+ $select-item-gap: () !default;
476
+ $select-item-gap: map.merge(
477
+ (
478
+ 'large': 6px,
479
+ 'default': 6px,
480
+ 'small': 4px,
481
+ ),
482
+ $select-item-gap
483
+ );
484
+
485
+ // the same height of el-tag
486
+ $select-item-height: () !default;
487
+ $select-item-height: map.merge(
488
+ (
489
+ 'large': 24px,
490
+ 'default': 24px,
491
+ 'small': 20px,
492
+ ),
493
+ $select-item-height
494
+ );
495
+
496
+ // Alert
497
+ // css3 var in packages/theme-chalk/src/alert.scss
498
+ $alert: () !default;
499
+ $alert: map.merge(
500
+ (
501
+ 'padding': 8px 16px,
502
+ 'border-radius-base': getCssVar('border-radius-base'),
503
+ 'title-font-size': 14px,
504
+ 'title-with-description-font-size': 16px,
505
+ 'description-font-size': 14px,
506
+ 'close-font-size': 16px,
507
+ 'close-customed-font-size': 14px,
508
+ 'icon-size': 16px,
509
+ 'icon-large-size': 28px,
510
+ ),
511
+ $alert
512
+ );
513
+
514
+ // MessageBox
515
+ // css3 var in packages/theme-chalk/src/message-box.scss
516
+ $messagebox: () !default;
517
+ $messagebox: map.merge(
518
+ (
519
+ 'title-color': getCssVar('text-color-primary'),
520
+ 'width': 420px,
521
+ 'border-radius': 4px,
522
+ 'box-shadow': getCssVar('box-shadow'),
523
+ 'font-size': getCssVar('font-size-large'),
524
+ 'content-font-size': getCssVar('font-size-base'),
525
+ 'content-color': getCssVar('text-color-regular'),
526
+ 'error-font-size': 12px,
527
+ 'padding-primary': 12px,
528
+ 'font-line-height': getCssVar('font-line-height-primary'),
529
+ ),
530
+ $messagebox
531
+ );
532
+
533
+ // Message
534
+ // css3 var in packages/theme-chalk/src/message.scss
535
+ $message: () !default;
536
+ $message: map.merge(
537
+ (
538
+ 'bg-color': getCssVar('color', 'info', 'light-9'),
539
+ 'border-color': getCssVar('border-color-lighter'),
540
+ 'padding': 11px 15px,
541
+ 'close-size': 16px,
542
+ 'close-icon-color': getCssVar('text-color-placeholder'),
543
+ 'close-hover-color': getCssVar('text-color-secondary'),
544
+ ),
545
+ $message
546
+ );
547
+
548
+ // Notification
549
+ // css3 var in packages/theme-chalk/src/notification.scss
550
+ $notification: () !default;
551
+ $notification: map.merge(
552
+ (
553
+ 'width': 330px,
554
+ 'padding': 14px 26px 14px 13px,
555
+ 'radius': 8px,
556
+ 'shadow': getCssVar('box-shadow-light'),
557
+ 'border-color': getCssVar('border-color-lighter'),
558
+ 'icon-size': 24px,
559
+ 'close-font-size':
560
+ var(
561
+ #{getCssVarName('message-close-size')},
562
+ map.get($message, 'close-size')
563
+ ),
564
+ 'group-margin-left': 13px,
565
+ 'group-margin-right': 8px,
566
+ 'content-font-size': getCssVar('font-size-base'),
567
+ 'content-color': getCssVar('text-color-regular'),
568
+ 'title-font-size': 16px,
569
+ 'title-color': getCssVar('text-color-primary'),
570
+ 'close-color': getCssVar('text-color-secondary'),
571
+ 'close-hover-color': getCssVar('text-color-regular'),
572
+ ),
573
+ $notification
574
+ );
575
+
576
+ // Input
577
+ // css3 var in packages/theme-chalk/src/input.scss
578
+ $input: () !default;
579
+ $input: map.merge(
580
+ (
581
+ 'text-color': getCssVar('text-color-regular'),
582
+ 'border': getCssVar('border'),
583
+ 'hover-border': getCssVar('border-color-hover'),
584
+ 'focus-border': getCssVar('color-primary'),
585
+ 'transparent-border': 0 0 0 1px transparent inset,
586
+ 'border-color': getCssVar('border-color'),
587
+ 'border-radius': getCssVar('border-radius-base'),
588
+ 'bg-color': getCssVar('fill-color', 'blank'),
589
+ 'icon-color': getCssVar('text-color-placeholder'),
590
+ 'placeholder-color': getCssVar('text-color-placeholder'),
591
+ 'hover-border-color': getCssVar('border-color-hover'),
592
+ 'clear-hover-color': getCssVar('text-color-secondary'),
593
+ 'focus-border-color': getCssVar('color-primary'),
594
+ 'width': 100%,
595
+ ),
596
+ $input
597
+ );
598
+
599
+ $input-disabled: () !default;
600
+ $input-disabled: map.merge(
601
+ (
602
+ 'fill': getCssVar('disabled-bg-color'),
603
+ 'border': getCssVar('disabled-border-color'),
604
+ 'text-color': getCssVar('disabled-text-color'),
605
+ 'placeholder-color': getCssVar('text-color-placeholder'),
606
+ ),
607
+ $input-disabled
608
+ );
609
+
610
+ $input-font-size: () !default;
611
+ $input-font-size: map.merge(
612
+ (
613
+ 'large': 14px,
614
+ 'default': 14px,
615
+ 'small': 12px,
616
+ ),
617
+ $input-font-size
618
+ );
619
+
620
+ $input-height: () !default;
621
+ $input-height: map.merge($common-component-size, $input-height);
622
+
623
+ $input-line-height: () !default;
624
+ $input-line-height: map.merge($common-component-size, $input-line-height);
625
+
626
+ $input-number-width: () !default;
627
+ $input-number-width: map.merge(
628
+ (
629
+ 'large': 180px,
630
+ 'default': 150px,
631
+ 'small': 120px,
632
+ ),
633
+ $input-number-width
634
+ );
635
+
636
+ $input-padding-horizontal: () !default;
637
+ $input-padding-horizontal: map.merge(
638
+ (
639
+ 'large': 16px,
640
+ 'default': 12px,
641
+ 'small': 8px,
642
+ ),
643
+ $input-padding-horizontal
644
+ );
645
+
646
+ // Cascader
647
+ // css3 var in packages/theme-chalk/src/cascader.scss
648
+ $cascader: () !default;
649
+ $cascader: map.merge(
650
+ (
651
+ 'menu-text-color': getCssVar('text-color-regular'),
652
+ 'menu-selected-text-color': getCssVar('color-primary'),
653
+ 'menu-fill': getCssVar('bg-color', 'overlay'),
654
+ 'menu-font-size': getCssVar('font-size-base'),
655
+ 'menu-radius': getCssVar('border-radius-base'),
656
+ 'menu-border': solid 1px getCssVar('border-color-light'),
657
+ 'menu-shadow': getCssVar('box-shadow-light'),
658
+ 'node-background-hover': getCssVar('fill-color', 'light'),
659
+ 'node-color-disabled': getCssVar('text-color-placeholder'),
660
+ 'color-empty': getCssVar('text-color-placeholder'),
661
+ 'tag-background': getCssVar('fill-color'),
662
+ ),
663
+ $cascader
664
+ );
665
+
666
+ $cascader-item-gap: () !default;
667
+ $cascader-item-gap: map.merge(
668
+ (
669
+ 'large': 6px,
670
+ 'default': 6px,
671
+ 'small': 4px,
672
+ ),
673
+ $cascader-item-gap
674
+ );
675
+
676
+ $cascader-wrapper-padding: () !default;
677
+ $cascader-wrapper-padding: map.merge(
678
+ (
679
+ 'large': 8px,
680
+ 'default': 4px,
681
+ 'small': 2px,
682
+ ),
683
+ $cascader-wrapper-padding
684
+ );
685
+
686
+ $cascader-item-height: () !default;
687
+ $cascader-item-height: map.merge(
688
+ (
689
+ 'large': 24px,
690
+ 'default': 24px,
691
+ 'small': 20px,
692
+ ),
693
+ $cascader-item-height
694
+ );
695
+
696
+ $cascader-search-input-margin-left: () !default;
697
+ $cascader-search-input-margin-left: map.merge(
698
+ (
699
+ 'large': 7px,
700
+ 'default': 7px,
701
+ 'small': 5px,
702
+ ),
703
+ $cascader-search-input-margin-left
704
+ );
705
+
706
+ //statistic
707
+ // css3 var in packages/theme-chalk/src/statistic.scss
708
+ $statistic: () !default;
709
+ $statistic: map.merge(
710
+ (
711
+ 'title-font-weight': 400,
712
+ 'title-font-size': getCssVar('font-size', 'extra-small'),
713
+ 'title-color': getCssVar('text-color', 'regular'),
714
+ 'content-font-weight': 400,
715
+ 'content-font-size': getCssVar('font-size', 'extra-large'),
716
+ 'content-color': getCssVar('text-color', 'primary'),
717
+ ),
718
+ $statistic
719
+ );
720
+ // Button
721
+ // css3 var in packages/theme-chalk/src/button.scss
722
+ $button: () !default;
723
+ $button: map.merge(
724
+ (
725
+ 'font-weight': getCssVar('font-weight-primary'),
726
+ 'border-color': getCssVar('border-color'),
727
+ 'bg-color': getCssVar('fill-color', 'blank'),
728
+ 'text-color': getCssVar('text-color', 'regular'),
729
+ 'disabled-text-color': getCssVar('disabled-text-color'),
730
+ 'disabled-bg-color': getCssVar('fill-color', 'blank'),
731
+ 'disabled-border-color': getCssVar('border-color-light'),
732
+ 'divide-border-color': rgba($color-white, 0.5),
733
+ 'hover-text-color': getCssVar('color-primary'),
734
+ 'hover-bg-color': getCssVar('color-primary', 'light-9'),
735
+ 'hover-border-color': getCssVar('color-primary-light-7'),
736
+ 'active-text-color': getCssVar('button-hover-text-color'),
737
+ 'active-border-color': getCssVar('color-primary'),
738
+ 'active-bg-color': getCssVar('button', 'hover-bg-color'),
739
+ 'outline-color': getCssVar('color-primary', 'light-5'),
740
+ 'hover-link-text-color': getCssVar('text-color', 'secondary'),
741
+ 'active-color': getCssVar('text-color', 'primary'),
742
+ ),
743
+ $button
744
+ );
745
+
746
+ $button-border-width: $border-width !default;
747
+
748
+ // need mix, so do not use css var
749
+ $button-hover-tint-percent: 20%;
750
+ $button-active-shade-percent: 10%;
751
+
752
+ $button-border-color: () !default;
753
+ $button-bg-color: () !default;
754
+ $button-text-color: () !default;
755
+
756
+ @each $type in $types {
757
+ $button-border-color: map.merge(
758
+ (
759
+ $type: map.get($colors, $type, 'base'),
760
+ ),
761
+ $button-border-color
762
+ ) !global;
763
+
764
+ $button-bg-color: map.merge(
765
+ (
766
+ $type: map.get($colors, $type, 'base'),
767
+ ),
768
+ $button-bg-color
769
+ ) !global;
770
+ }
771
+
772
+ $button-font-size: () !default;
773
+ $button-font-size: map.merge(
774
+ (
775
+ 'large': getCssVar('font-size', 'base'),
776
+ 'default': getCssVar('font-size', 'base'),
777
+ 'small': 12px,
778
+ ),
779
+ $button-font-size
780
+ );
781
+
782
+ $button-border-radius: () !default;
783
+ $button-border-radius: map.merge(
784
+ (
785
+ 'large': getCssVar('border-radius', 'base'),
786
+ 'default': getCssVar('border-radius', 'base'),
787
+ 'small': calc(#{getCssVar('border-radius', 'base')} - 1px),
788
+ ),
789
+ $button-border-radius
790
+ );
791
+
792
+ $button-padding-vertical: () !default;
793
+ $button-padding-vertical: map.merge(
794
+ (
795
+ 'large': 13px,
796
+ 'default': 9px,
797
+ 'small': 6px,
798
+ ),
799
+ $button-padding-vertical
800
+ );
801
+
802
+ $button-padding-horizontal: () !default;
803
+ $button-padding-horizontal: map.merge(
804
+ (
805
+ 'large': 20px,
806
+ 'default': 16px,
807
+ 'small': 12px,
808
+ ),
809
+ $button-padding-horizontal
810
+ );
811
+
812
+ // Switch
813
+ // css3 var in packages/theme-chalk/src/switch.scss
814
+ $switch: () !default;
815
+ $switch: map.merge(
816
+ (
817
+ 'on-color': getCssVar('color-primary'),
818
+ 'off-color': getCssVar('border-color'),
819
+ ),
820
+ $switch
821
+ );
822
+
823
+ // Dialog
824
+ // css3 var in packages/theme-chalk/src/dialog.scss
825
+ $dialog: () !default;
826
+ $dialog: map.merge(
827
+ (
828
+ 'width': 50%,
829
+ 'margin-top': 15vh,
830
+ 'bg-color': getCssVar('bg-color'),
831
+ 'box-shadow': getCssVar('box-shadow'),
832
+ 'title-font-size': getCssVar('font-size-large'),
833
+ 'content-font-size': 14px,
834
+ 'font-line-height': getCssVar('font-line-height-primary'),
835
+ 'padding-primary': 16px,
836
+ 'border-radius': getCssVar('border-radius-base'),
837
+ ),
838
+ $dialog
839
+ );
840
+
841
+ // Tour
842
+ // css3 var in packages/theme-chalk/src/tour.scss
843
+ $tour: () !default;
844
+ $tour: map.merge(
845
+ (
846
+ 'width': 520px,
847
+ 'padding-primary': 12px,
848
+ 'font-line-height': getCssVar('font-line-height-primary'),
849
+ 'title-font-size': 16px,
850
+ 'title-text-color': getCssVar('text-color-primary'),
851
+ 'title-font-weight': 400,
852
+ 'close-color': getCssVar('color-info'),
853
+ 'font-size': 14px,
854
+ 'color': getCssVar('text-color-primary'),
855
+ 'bg-color': getCssVar('bg-color'),
856
+ 'border-radius': 4px,
857
+ ),
858
+ $tour
859
+ );
860
+
861
+ // Anchor
862
+ // css3 var in packages/theme-chalk/src/anchor.scss
863
+ $anchor: () !default;
864
+ $anchor: map.merge(
865
+ (
866
+ 'bg-color': getCssVar('bg-color'),
867
+ 'padding-indent': 14px,
868
+ 'line-height': 22px,
869
+ 'font-size': 12px,
870
+ 'color': getCssVar('text-color-secondary'),
871
+ 'active-color': getCssVar('color-primary'),
872
+ 'marker-bg-color': getCssVar('color-primary'),
873
+ ),
874
+ $anchor
875
+ );
876
+
877
+ // Segmented
878
+ // css3 var in packages/theme-chalk/src/segmented.scss
879
+ $segmented: () !default;
880
+ $segmented: map.merge(
881
+ (
882
+ 'color': getCssVar('text-color', 'regular'),
883
+ 'bg-color': getCssVar('fill-color', 'light'),
884
+ 'padding': 2px,
885
+ 'item-selected-color': getCssVar('color-white'),
886
+ 'item-selected-bg-color': getCssVar('color-primary'),
887
+ 'item-selected-disabled-bg-color': getCssVar('color-primary', 'light-5'),
888
+ 'item-hover-color': getCssVar('text-color', 'primary'),
889
+ 'item-hover-bg-color': getCssVar('fill-color', 'dark'),
890
+ 'item-active-bg-color': getCssVar('fill-color', 'darker'),
891
+ 'item-disabled-color': getCssVar('text-color', 'placeholder'),
892
+ ),
893
+ $segmented
894
+ );
895
+
896
+ // Mention
897
+ // css3 var in packages/theme-chalk/src/mention.scss
898
+ $mention: () !default;
899
+ $mention: map.merge(
900
+ (
901
+ 'font-size': getCssVar('font-size-base'),
902
+ 'bg-color': getCssVar('bg-color', 'overlay'),
903
+ 'shadow': getCssVar('box-shadow-light'),
904
+ 'border': 1px solid getCssVar('border-color-light'),
905
+ 'option-color': getCssVar('text-color-regular'),
906
+ 'option-height': 34px,
907
+ 'option-min-width': 100px,
908
+ 'option-hover-background': getCssVar('fill-color', 'light'),
909
+ 'option-selected-color': getCssVar('color-primary'),
910
+ 'option-disabled-color': getCssVar('text-color-placeholder'),
911
+ 'option-loading-color': getCssVar('text-color-secondary'),
912
+ 'option-loading-padding': 10px 0,
913
+ 'max-height': 174px,
914
+ 'padding': 6px 0,
915
+ 'header-padding': 10px,
916
+ 'footer-padding': 10px,
917
+ ),
918
+ $mention
919
+ );
920
+
921
+ // InputTag
922
+ // css3 var in packages/theme-chalk/src/input-tag.scss
923
+ $input-tag: () !default;
924
+ $input-tag: map.merge(
925
+ (
926
+ 'border-color-hover': getCssVar('border-color-hover'),
927
+ 'placeholder-color': getCssVar('text-color-placeholder'),
928
+ 'disabled-color': getCssVar('disabled-text-color'),
929
+ 'disabled-border': getCssVar('disabled-border-color'),
930
+ 'font-size': getCssVar('font-size-base'),
931
+ 'close-hover-color': getCssVar('text-color-secondary'),
932
+ 'text-color': getCssVar('text-color-regular'),
933
+ 'input-focus-border-color': getCssVar('color-primary'),
934
+ 'width': 100%,
935
+ ),
936
+ $input-tag
937
+ );
938
+
939
+ $input-tag-padding: () !default;
940
+ $input-tag-padding: map.merge(
941
+ (
942
+ 'large': 8px,
943
+ 'default': 4px,
944
+ 'small': 2px,
945
+ ),
946
+ $input-tag-padding
947
+ );
948
+
949
+ $input-tag-inner-padding: () !default;
950
+ $input-tag-inner-padding: map.merge(
951
+ (
952
+ 'large': 8px,
953
+ 'default': 8px,
954
+ 'small': 6px,
955
+ ),
956
+ $input-tag-inner-padding
957
+ );
958
+
959
+ $input-tag-gap: () !default;
960
+ $input-tag-gap: map.merge(
961
+ (
962
+ 'large': 6px,
963
+ 'default': 6px,
964
+ 'small': 4px,
965
+ ),
966
+ $input-tag-gap
967
+ );
968
+
969
+ // Table
970
+ // css3 var in packages/theme-chalk/src/table.scss
971
+ $table: () !default;
972
+ $table: map.merge(
973
+ (
974
+ 'border-color': getCssVar('border-color-lighter'),
975
+ 'border': 1px solid getCssVar('table-border-color'),
976
+ 'text-color': getCssVar('text-color-regular'),
977
+ 'header-text-color': getCssVar('text-color-secondary'),
978
+ 'row-hover-bg-color': getCssVar('fill-color', 'light'),
979
+ 'current-row-bg-color': getCssVar('color-primary-light-9'),
980
+ 'header-bg-color': getCssVar('bg-color'),
981
+ 'fixed-box-shadow': getCssVar('box-shadow', 'light'),
982
+ 'bg-color': getCssVar('fill-color', 'blank'),
983
+ 'tr-bg-color': getCssVar('bg-color'),
984
+ 'expanded-cell-bg-color': getCssVar('fill-color', 'blank'),
985
+ 'fixed-left-column': inset 10px 0 10px -10px rgb(0 0 0 / 15%),
986
+ 'fixed-right-column': inset -10px 0 10px -10px rgb(0 0 0 / 15%),
987
+ 'index': getCssVar('index-normal'),
988
+ ),
989
+ $table
990
+ );
991
+
992
+ $table-font-size: () !default;
993
+ $table-font-size: map.merge(
994
+ (
995
+ 'large': getCssVar('font-size', 'base'),
996
+ 'default': getCssVar('font-size', 'base'),
997
+ 'small': getCssVar('font-size', 'extra-small'),
998
+ ),
999
+ $table-font-size
1000
+ );
1001
+
1002
+ $table-padding: () !default;
1003
+ $table-padding: map.merge(
1004
+ (
1005
+ 'large': 12px 0,
1006
+ 'default': 8px 0,
1007
+ 'small': 4px 0,
1008
+ ),
1009
+ $table-padding
1010
+ );
1011
+
1012
+ $table-cell-padding: () !default;
1013
+ $table-cell-padding: map.merge(
1014
+ (
1015
+ 'large': 0 16px,
1016
+ 'default': 0 12px,
1017
+ 'small': 0 8px,
1018
+ ),
1019
+ $table-cell-padding
1020
+ );
1021
+
1022
+ // Pagination
1023
+ // css3 var in packages/theme-chalk/src/pagination.scss
1024
+ $pagination: () !default;
1025
+ $pagination: map.merge(
1026
+ (
1027
+ 'font-size': 14px,
1028
+ 'bg-color': getCssVar('fill-color', 'blank'),
1029
+ 'text-color': getCssVar('text-color-primary'),
1030
+ 'border-radius': 2px,
1031
+ 'button-color': getCssVar('text-color-primary'),
1032
+ 'button-width': 32px,
1033
+ 'button-height': 32px,
1034
+ 'button-disabled-color': getCssVar('text-color-placeholder'),
1035
+ 'button-disabled-bg-color': getCssVar('fill-color', 'blank'),
1036
+ 'button-bg-color': getCssVar('fill-color'),
1037
+ 'hover-color': getCssVar('color-primary'),
1038
+ 'font-size-small': 12px,
1039
+ 'button-width-small': 24px,
1040
+ 'button-height-small': 24px,
1041
+ 'button-width-large': 40px,
1042
+ 'button-height-large': 40px,
1043
+ 'item-gap': 16px,
1044
+ ),
1045
+ $pagination
1046
+ );
1047
+
1048
+ // Popup
1049
+ // css3 var in packages/theme-chalk/src/popup.scss
1050
+ $popup: () !default;
1051
+ $popup: map.merge(
1052
+ (
1053
+ 'modal-bg-color': getCssVar('color-black'),
1054
+ 'modal-opacity': 0.5,
1055
+ ),
1056
+ $popup
1057
+ );
1058
+
1059
+ // Popover
1060
+ // css3 var in packages/theme-chalk/src/popover.scss
1061
+ $popover: () !default;
1062
+ $popover: map.merge(
1063
+ (
1064
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1065
+ 'font-size': getCssVar('font-size-base'),
1066
+ 'border-color': getCssVar('border-color-lighter'),
1067
+ 'padding': 12px,
1068
+ 'padding-large': 18px 20px,
1069
+ 'title-font-size': 16px,
1070
+ 'title-text-color': getCssVar('text-color-primary'),
1071
+ 'border-radius': 4px,
1072
+ ),
1073
+ $popover
1074
+ );
1075
+
1076
+ // popper
1077
+ // Pay attention to the difference between 'popper' and 'popover'
1078
+ $popper: () !default;
1079
+ $popper: map.merge(
1080
+ (
1081
+ 'border-radius': var(#{getCssVarName('popover-border-radius')}, 4px),
1082
+ ),
1083
+ $popper
1084
+ );
1085
+
1086
+ // skeleton
1087
+ $skeleton: () !default;
1088
+ $skeleton: map.merge(
1089
+ (
1090
+ 'color': getCssVar('fill-color'),
1091
+ 'to-color': getCssVar('fill-color', 'darker'),
1092
+ ),
1093
+ $skeleton
1094
+ );
1095
+
1096
+ // Tag
1097
+ // css3 var in packages/theme-chalk/src/tag.scss
1098
+ $tag: () !default;
1099
+ $tag: map.merge(
1100
+ (
1101
+ 'font-size': 12px,
1102
+ 'border-radius': 4px,
1103
+ 'border-radius-rounded': 9999px,
1104
+ ),
1105
+ $tag
1106
+ );
1107
+
1108
+ $tag-height: () !default;
1109
+ $tag-height: map.merge(
1110
+ (
1111
+ 'large': 32px,
1112
+ 'default': 24px,
1113
+ 'small': 20px,
1114
+ ),
1115
+ $tag-height
1116
+ );
1117
+
1118
+ $tag-padding: () !default;
1119
+ $tag-padding: map.merge(
1120
+ (
1121
+ 'large': 12px,
1122
+ 'default': 10px,
1123
+ 'small': 8px,
1124
+ ),
1125
+ $tag-padding
1126
+ );
1127
+
1128
+ $tag-icon-size: () !default;
1129
+ $tag-icon-size: map.merge(
1130
+ (
1131
+ 'large': 16px,
1132
+ 'default': 14px,
1133
+ 'small': 12px,
1134
+ ),
1135
+ $tag-icon-size
1136
+ );
1137
+
1138
+ // Text
1139
+ // css3 var in packages/theme-chalk/src/text.scss
1140
+ $text: () !default;
1141
+ $text: map.merge(
1142
+ (
1143
+ 'font-size': getCssVar('font-size', 'base'),
1144
+ 'color': getCssVar('text-color', 'regular'),
1145
+ ),
1146
+ $text
1147
+ );
1148
+
1149
+ $text-font-size: () !default;
1150
+ $text-font-size: map.merge(
1151
+ (
1152
+ 'large': getCssVar('font-size', 'medium'),
1153
+ 'default': getCssVar('font-size', 'base'),
1154
+ 'small': getCssVar('font-size', 'extra-small'),
1155
+ ),
1156
+ $text-font-size
1157
+ );
1158
+
1159
+ // Tree
1160
+ // css3 var in packages/theme-chalk/src/tree.scss
1161
+ $tree: () !default;
1162
+ $tree: map.merge(
1163
+ (
1164
+ 'node-content-height': 26px,
1165
+ 'node-hover-bg-color': getCssVar('fill-color', 'light'),
1166
+ 'text-color': getCssVar('text-color-regular'),
1167
+ 'expand-icon-color': getCssVar('text-color-placeholder'),
1168
+ ),
1169
+ $tree
1170
+ );
1171
+
1172
+ // Dropdown
1173
+ $dropdown: () !default;
1174
+ $dropdown: map.merge(
1175
+ (
1176
+ 'menu-box-shadow': getCssVar('box-shadow-light'),
1177
+ 'menuItem-hover-fill': getCssVar('color-primary-light-9'),
1178
+ 'menuItem-hover-color': getCssVar('color-primary'),
1179
+ 'menu-index': 10,
1180
+ ),
1181
+ $dropdown
1182
+ );
1183
+
1184
+ // drawer
1185
+ $drawer: () !default;
1186
+ $drawer: map.merge(
1187
+ (
1188
+ 'bg-color':
1189
+ var(#{getCssVarName('dialog', 'bg-color')}, #{getCssVar('bg-color')}),
1190
+ 'padding-primary': var(#{getCssVarName('dialog', 'padding-primary')}, 20px),
1191
+ ),
1192
+ $drawer
1193
+ );
1194
+
1195
+ // Badge
1196
+ // css3 var in packages/theme-chalk/src/badge.scss
1197
+ $badge: () !default;
1198
+ $badge: map.merge(
1199
+ (
1200
+ 'bg-color': getCssVar('color-danger'),
1201
+ 'radius': 10px,
1202
+ 'font-size': 12px,
1203
+ 'padding': 6px,
1204
+ 'size': 18px,
1205
+ ),
1206
+ $badge
1207
+ );
1208
+
1209
+ // Card
1210
+ $card: () !default;
1211
+ $card: map.merge(
1212
+ (
1213
+ 'border-color': getCssVar('border-color', 'light'),
1214
+ 'border-radius': 4px,
1215
+ 'padding': 20px,
1216
+ 'bg-color': getCssVar('fill-color', 'blank'),
1217
+ ),
1218
+ $card
1219
+ );
1220
+
1221
+ // Slider
1222
+ // css3 var in packages/theme-chalk/src/slider.scss
1223
+ $slider: () !default;
1224
+ $slider: map.merge(
1225
+ (
1226
+ 'main-bg-color': getCssVar('color-primary'),
1227
+ 'runway-bg-color': getCssVar('border-color-light'),
1228
+ 'stop-bg-color': getCssVar('color-white'),
1229
+ 'disabled-color': getCssVar('text-color-placeholder'),
1230
+ 'border-radius': 3px,
1231
+ 'height': 6px,
1232
+ 'button-size': 20px,
1233
+ 'button-wrapper-size': 36px,
1234
+ 'button-wrapper-offset': -15px,
1235
+ ),
1236
+ $slider
1237
+ );
1238
+
1239
+ // Menu
1240
+ // css3 var in packages/theme-chalk/src/menu.scss
1241
+ $menu: () !default;
1242
+ $menu: map.merge(
1243
+ (
1244
+ 'active-color': getCssVar('color-primary'),
1245
+ 'text-color': getCssVar('text-color-primary'),
1246
+ 'hover-text-color': getCssVar('color-primary'),
1247
+ 'bg-color': getCssVar('fill-color', 'blank'),
1248
+ 'hover-bg-color': getCssVar('color-primary-light-9'),
1249
+ 'item-height': 56px,
1250
+ 'sub-item-height': calc(#{getCssVar('menu-item-height')} - 6px),
1251
+ 'horizontal-height': 60px,
1252
+ 'horizontal-sub-item-height': 36px,
1253
+ 'item-font-size': getCssVar('font-size-base'),
1254
+ 'item-hover-fill': getCssVar('color-primary-light-9'),
1255
+ 'border-color': getCssVar('border-color'),
1256
+ 'base-level-padding': 20px,
1257
+ 'level-padding': 20px,
1258
+ 'icon-width': 24px,
1259
+ ),
1260
+ $menu
1261
+ );
1262
+
1263
+ // Rate
1264
+ $rate: () !default;
1265
+ $rate: map.merge(
1266
+ (
1267
+ 'height': 20px,
1268
+ 'font-size': getCssVar('font-size-base'),
1269
+ 'icon-size': 18px,
1270
+ 'icon-margin': 6px,
1271
+ // seems not be used, to be removed
1272
+ // 'icon-color': getCssVar('text-color-placeholder),
1273
+ 'void-color': getCssVar('border-color', 'darker'),
1274
+ 'fill-color': #f7ba2a,
1275
+ 'disabled-void-color': getCssVar('fill-color'),
1276
+ 'text-color': getCssVar('text-color', 'primary'),
1277
+ ),
1278
+ $rate
1279
+ );
1280
+
1281
+ // DatePicker
1282
+ // css3 var packages/theme-chalk/src/date-picker/var.scss
1283
+ $datepicker: () !default;
1284
+ $datepicker: map.merge(
1285
+ (
1286
+ 'text-color': getCssVar('text-color-regular'),
1287
+ 'off-text-color': getCssVar('text-color-placeholder'),
1288
+ 'header-text-color': getCssVar('text-color-regular'),
1289
+ 'icon-color': getCssVar('text-color-primary'),
1290
+ 'border-color': getCssVar('disabled-border-color'),
1291
+ 'inner-border-color': getCssVar('border-color-light'),
1292
+ 'inrange-bg-color': getCssVar('border-color-extra-light'),
1293
+ 'inrange-hover-bg-color': getCssVar('border-color-extra-light'),
1294
+ 'active-color': getCssVar('color-primary'),
1295
+ 'hover-text-color': getCssVar('color-primary'),
1296
+ ),
1297
+ $datepicker
1298
+ );
1299
+
1300
+ $date-editor: () !default;
1301
+ $date-editor: map.merge(
1302
+ (
1303
+ 'width': 220px,
1304
+ 'monthrange-width': 300px,
1305
+ 'daterange-width': 350px,
1306
+ 'datetimerange-width': 400px,
1307
+ ),
1308
+ $date-editor
1309
+ );
1310
+
1311
+ // Loading
1312
+ // css3 var in packages/theme-chalk/src/loading.scss
1313
+ $loading: () !default;
1314
+ $loading: map.merge(
1315
+ (
1316
+ 'spinner-size': 42px,
1317
+ 'fullscreen-spinner-size': 50px,
1318
+ ),
1319
+ $loading
1320
+ );
1321
+
1322
+ // Scrollbar
1323
+ // css3 var in packages/theme-chalk/src/scrollbar.scss
1324
+ $scrollbar: () !default;
1325
+ $scrollbar: map.merge(
1326
+ (
1327
+ 'opacity': 0.3,
1328
+ 'bg-color': getCssVar('text-color-secondary'),
1329
+ 'hover-opacity': 0.5,
1330
+ 'hover-bg-color': getCssVar('text-color-secondary'),
1331
+ ),
1332
+ $scrollbar
1333
+ );
1334
+
1335
+ // Carousel
1336
+ // css3 var in packages/theme-chalk/src/carousel.scss
1337
+ $carousel: () !default;
1338
+ $carousel: map.merge(
1339
+ (
1340
+ 'arrow-font-size': 12px,
1341
+ 'arrow-size': 36px,
1342
+ 'arrow-background': rgba(31, 45, 61, 0.11),
1343
+ 'arrow-hover-background': rgba(31, 45, 61, 0.23),
1344
+ 'indicator-width': 30px,
1345
+ 'indicator-height': 2px,
1346
+ 'indicator-padding-horizontal': 4px,
1347
+ 'indicator-padding-vertical': 12px,
1348
+ 'indicator-out-color': getCssVar('border-color-hover'),
1349
+ ),
1350
+ $carousel
1351
+ );
1352
+
1353
+ // Collapse
1354
+ // css3 var in packages/theme-chalk/src/collapse.scss
1355
+ $collapse: () !default;
1356
+ $collapse: map.merge(
1357
+ (
1358
+ 'border-color': getCssVar('border-color-lighter'),
1359
+ 'header-height': 48px,
1360
+ 'header-bg-color': getCssVar('fill-color', 'blank'),
1361
+ 'header-text-color': getCssVar('text-color-primary'),
1362
+ 'header-font-size': 13px,
1363
+ 'content-bg-color': getCssVar('fill-color', 'blank'),
1364
+ 'content-font-size': 13px,
1365
+ 'content-text-color': getCssVar('text-color-primary'),
1366
+ ),
1367
+ $collapse
1368
+ );
1369
+
1370
+ // Transfer
1371
+ // css3 var in packages/theme-chalk/src/transfer.scss
1372
+ $transfer: () !default;
1373
+ $transfer: map.merge(
1374
+ (
1375
+ 'border-color': getCssVar('border-color-lighter'),
1376
+ 'border-radius': getCssVar('border-radius-base'),
1377
+ 'panel-width': 200px,
1378
+ 'panel-header-height': 40px,
1379
+ 'panel-header-bg-color': getCssVar('fill-color', 'light'),
1380
+ 'panel-footer-height': 40px,
1381
+ 'panel-body-height': 278px,
1382
+ 'item-height': 30px,
1383
+ 'filter-height': 32px,
1384
+ ),
1385
+ $transfer
1386
+ );
1387
+
1388
+ // Timeline
1389
+ // css3 var in packages/theme-chalk/src/timeline-item.scss
1390
+ $timeline: () !default;
1391
+ $timeline: map.merge(
1392
+ (
1393
+ 'node-size-normal': 12px,
1394
+ 'node-size-large': 14px,
1395
+ 'node-color': getCssVar('border-color-light'),
1396
+ ),
1397
+ $timeline
1398
+ );
1399
+
1400
+ // Tabs
1401
+ // css3 var in packages/theme-chalk/src/tabs.scss
1402
+ $tabs: () !default;
1403
+ $tabs: map.merge(
1404
+ (
1405
+ 'header-height': 40px,
1406
+ ),
1407
+ $tabs
1408
+ );
1409
+
1410
+ // Backtop
1411
+ // css3 var in packages/theme-chalk/src/backtop.scss
1412
+ $backtop: () !default;
1413
+ $backtop: map.merge(
1414
+ (
1415
+ 'bg-color': getCssVar('bg-color', 'overlay'),
1416
+ 'text-color': getCssVar('color-primary'),
1417
+ 'hover-bg-color': getCssVar('border-color-extra-light'),
1418
+ ),
1419
+ $backtop
1420
+ );
1421
+
1422
+ // Link
1423
+ // css3 var in packages/theme-chalk/src/link.scss
1424
+ $link: () !default;
1425
+ $link: map.merge(
1426
+ (
1427
+ 'font-size': getCssVar('font-size-base'),
1428
+ 'font-weight': getCssVar('font-weight-primary'),
1429
+ 'text-color': getCssVar('text-color-regular'),
1430
+ 'hover-text-color': getCssVar('color-primary'),
1431
+ 'disabled-text-color': getCssVar('text-color-placeholder'),
1432
+ ),
1433
+ $link
1434
+ );
1435
+
1436
+ $link-text-color: () !default;
1437
+
1438
+ @each $type in $types {
1439
+ $link-text-color: map.merge(
1440
+ $link-text-color,
1441
+ (
1442
+ $type: map.get($colors, $type, 'base'),
1443
+ )
1444
+ ) !global;
1445
+ }
1446
+
1447
+ // Calendar
1448
+ // css3 var in packages/theme-chalk/src/calendar.scss
1449
+ $calendar: () !default;
1450
+ $calendar: map.merge(
1451
+ (
1452
+ 'border':
1453
+ var(
1454
+ #{getCssVarName('table-border')},
1455
+ 1px solid #{getCssVar('border-color-lighter')}
1456
+ ),
1457
+ 'header-border-bottom': getCssVar('calendar-border'),
1458
+ 'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
1459
+ 'cell-width': 85px,
1460
+ ),
1461
+ $calendar
1462
+ );
1463
+
1464
+ // Form
1465
+ // css3 var in packages/theme-chalk/src/form.scss
1466
+ $form: () !default;
1467
+ $form: map.merge(
1468
+ (
1469
+ 'label-font-size': getCssVar('font-size-base'),
1470
+ 'inline-content-width': 220px,
1471
+ ),
1472
+ $form
1473
+ );
1474
+
1475
+ // Avatar
1476
+ // css3 var in packages/theme-chalk/src/avatar.scss
1477
+ $avatar: () !default;
1478
+ $avatar: map.merge(
1479
+ (
1480
+ 'text-color': getCssVar('color-white'),
1481
+ 'bg-color': getCssVar('text-color', 'disabled'),
1482
+ 'text-size': 14px,
1483
+ 'icon-size': 18px,
1484
+ 'border-radius': getCssVar('border-radius-base'),
1485
+ ),
1486
+ $avatar
1487
+ );
1488
+
1489
+ $avatar-size: () !default;
1490
+ $avatar-size: map.merge(
1491
+ (
1492
+ 'large': 56px,
1493
+ 'default': 40px,
1494
+ 'small': 24px,
1495
+ ),
1496
+ $avatar-size
1497
+ );
1498
+
1499
+ // Empty
1500
+ // css3 var in packages/theme-chalk/src/empty.scss
1501
+ $empty: () !default;
1502
+ $empty: map.merge(
1503
+ (
1504
+ 'padding': 40px 0,
1505
+ 'image-width': 160px,
1506
+ 'description-margin-top': 20px,
1507
+ 'bottom-margin-top': 20px,
1508
+ 'fill-color-0': getCssVar('color-white'),
1509
+ 'fill-color-1': #fcfcfd,
1510
+ 'fill-color-2': #f8f9fb,
1511
+ 'fill-color-3': #f7f8fc,
1512
+ 'fill-color-4': #eeeff3,
1513
+ 'fill-color-5': #edeef2,
1514
+ 'fill-color-6': #e9ebef,
1515
+ 'fill-color-7': #e5e7e9,
1516
+ 'fill-color-8': #e0e3e9,
1517
+ 'fill-color-9': #d5d7de,
1518
+ ),
1519
+ $empty
1520
+ );
1521
+
1522
+ // Descriptions
1523
+ // css3 var in packages/theme-chalk/src/descriptions.scss
1524
+ $descriptions: () !default;
1525
+ $descriptions: map.merge(
1526
+ (
1527
+ 'table-border': 1px solid getCssVar('border-color-lighter'),
1528
+ 'item-bordered-label-background': getCssVar('fill-color', 'light'),
1529
+ ),
1530
+ $descriptions
1531
+ );
1532
+
1533
+ // Result
1534
+ // css3 var in packages/theme-chalk/src/result.scss
1535
+ $result: () !default;
1536
+ $result: map.merge(
1537
+ (
1538
+ 'padding': 40px 30px,
1539
+ 'icon-font-size': 64px,
1540
+ 'title-font-size': 20px,
1541
+ 'title-margin-top': 20px,
1542
+ 'subtitle-margin-top': 10px,
1543
+ 'extra-margin-top': 30px,
1544
+ ),
1545
+ $result
1546
+ );
1547
+
1548
+ // Upload
1549
+ // css3 var in packages/theme-chalk/src/upload.scss
1550
+ $upload: () !default;
1551
+ $upload: map.merge(
1552
+ (
1553
+ 'dragger-padding-horizontal': 40px,
1554
+ 'dragger-padding-vertical': 10px,
1555
+ ),
1556
+ $upload
1557
+ );
1558
+
1559
+ // transition
1560
+ $transition: () !default;
1561
+ $transition: map.merge(
1562
+ (
1563
+ 'all': all getCssVar('transition-duration')
1564
+ getCssVar('transition-function-ease-in-out-bezier'),
1565
+ 'fade': opacity getCssVar('transition-duration')
1566
+ getCssVar('transition-function-fast-bezier'),
1567
+ 'md-fade': (
1568
+ transform getCssVar('transition-duration')
1569
+ getCssVar('transition-function-fast-bezier'),
1570
+ opacity getCssVar('transition-duration')
1571
+ getCssVar('transition-function-fast-bezier'),
1572
+ ),
1573
+ 'fade-linear': opacity getCssVar('transition-duration-fast') linear,
1574
+ 'border': border-color getCssVar('transition-duration-fast')
1575
+ getCssVar('transition-function-ease-in-out-bezier'),
1576
+ 'box-shadow': box-shadow getCssVar('transition-duration-fast')
1577
+ getCssVar('transition-function-ease-in-out-bezier'),
1578
+ 'color': color getCssVar('transition-duration-fast')
1579
+ getCssVar('transition-function-ease-in-out-bezier'),
1580
+ ),
1581
+ $transition
1582
+ );
1583
+
1584
+ $transition-duration: () !default;
1585
+ $transition-duration: map.merge(
1586
+ (
1587
+ '': 0.3s,
1588
+ 'fast': 0.2s,
1589
+ ),
1590
+ $transition-duration
1591
+ );
1592
+
1593
+ $transition-function: () !default;
1594
+ $transition-function: map.merge(
1595
+ (
1596
+ 'ease-in-out-bezier': cubic-bezier(0.645, 0.045, 0.355, 1),
1597
+ 'fast-bezier': cubic-bezier(0.23, 1, 0.32, 1),
1598
+ ),
1599
+ $transition-function
1600
+ );
1601
+
1602
+ // header
1603
+ $header: () !default;
1604
+ $header: map.merge(
1605
+ (
1606
+ 'padding': 0 20px,
1607
+ 'height': 60px,
1608
+ ),
1609
+ $header
1610
+ );
1611
+ // main
1612
+ $main: () !default;
1613
+ $main: map.merge(
1614
+ (
1615
+ 'padding': 20px,
1616
+ ),
1617
+ $main
1618
+ );
1619
+ // footer
1620
+ $footer: () !default;
1621
+ $footer: map.merge(
1622
+ (
1623
+ 'padding': 0 20px,
1624
+ 'height': 60px,
1625
+ ),
1626
+ $footer
1627
+ );
1628
+
1629
+ // Break-point
1630
+ $sm: 768px !default;
1631
+ $md: 992px !default;
1632
+ $lg: 1200px !default;
1633
+ $xl: 1920px !default;
1634
+
1635
+ $breakpoints: (
1636
+ 'xs': '(max-width: #{$sm - 1})',
1637
+ 'sm': '(min-width: #{$sm})',
1638
+ 'md': '(min-width: #{$md})',
1639
+ 'lg': '(min-width: #{$lg})',
1640
+ 'xl': '(min-width: #{$xl})',
1641
+ ) !default;
1642
+
1643
+ $breakpoints-spec: (
1644
+ 'xs-only': '(max-width: #{$sm - 1})',
1645
+ 'sm-and-up': '(min-width: #{$sm})',
1646
+ 'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
1647
+ 'sm-and-down': '(max-width: #{$md - 1})',
1648
+ 'md-and-up': '(min-width: #{$md})',
1649
+ 'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
1650
+ 'md-and-down': '(max-width: #{$lg - 1})',
1651
+ 'lg-and-up': '(min-width: #{$lg})',
1652
+ 'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
1653
+ 'lg-and-down': '(max-width: #{$xl - 1})',
1654
+ 'xl-only': '(min-width: #{$xl})',
1655
+ ) !default;