rappel-ui 1.0.8 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js +1 -0
  2. package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.js +1 -0
  3. package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +1 -0
  4. package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.js +1 -0
  5. package/cjs/_virtual/_plugin-vue_export-helper.js +1 -1
  6. package/cjs/_virtual/_rolldown/runtime.js +1 -0
  7. package/cjs/components/button/index.d.ts +38 -12
  8. package/cjs/components/button/index.js +1 -1
  9. package/cjs/components/button/src/button-group.js +1 -0
  10. package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -0
  11. package/cjs/components/button/src/button.js +1 -0
  12. package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -0
  13. package/cjs/components/button/src/constants.d.ts +4 -4
  14. package/cjs/components/button/src/constants.js +1 -1
  15. package/cjs/components/button/src/types.d.ts +20 -4
  16. package/cjs/components/button/style/index.js +1 -0
  17. package/cjs/components/button-group/style/css.d.ts +0 -0
  18. package/cjs/components/button-group/style/index.d.ts +0 -0
  19. package/cjs/components/button-group/style/index.js +1 -0
  20. package/cjs/components/colors/index.js +1 -1
  21. package/cjs/components/colors/src/colors.js +1 -0
  22. package/cjs/components/colors/src/colors.vue_vue_type_script_setup_true_lang.js +1 -0
  23. package/cjs/components/colors/src/neutral-color.js +1 -0
  24. package/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -0
  25. package/cjs/components/colors/src/primary-color.js +1 -0
  26. package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -0
  27. package/cjs/components/colors/src/secondary-color.js +1 -0
  28. package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -0
  29. package/cjs/components/colors/style/index.js +1 -0
  30. package/cjs/components/filter-panel/index.d.ts +25 -29
  31. package/cjs/components/filter-panel/index.js +1 -1
  32. package/cjs/components/filter-panel/src/filter-panel.js +1 -0
  33. package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -0
  34. package/cjs/components/filter-panel/src/types.d.ts +1 -2
  35. package/cjs/components/filter-panel/style/index.js +1 -0
  36. package/cjs/components/index.d.ts +2 -0
  37. package/cjs/components/index.js +1 -1
  38. package/cjs/components/input/index.d.ts +1 -1
  39. package/cjs/components/input/index.js +1 -1
  40. package/cjs/components/input/src/input.js +1 -0
  41. package/cjs/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -0
  42. package/cjs/components/package.js +1 -0
  43. package/cjs/components/popover/index.d.ts +21 -0
  44. package/cjs/components/popover/index.js +1 -0
  45. package/cjs/components/popover/src/popover.js +1 -0
  46. package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -0
  47. package/cjs/components/popover/src/types.d.ts +4 -0
  48. package/cjs/components/popover/style/css.d.ts +0 -0
  49. package/cjs/components/popover/style/index.d.ts +0 -0
  50. package/cjs/components/svg-icon/index.d.ts +1 -1
  51. package/cjs/components/svg-icon/index.js +1 -1
  52. package/cjs/components/svg-icon/src/svg-icon.js +1 -0
  53. package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
  54. package/cjs/components/svg-icon/src/types.d.ts +3 -2
  55. package/cjs/components/svg-icon/style/index.js +1 -0
  56. package/cjs/components/tabs/index.d.ts +2 -2
  57. package/cjs/components/tabs/index.js +1 -1
  58. package/cjs/components/tabs/src/tabs.js +1 -0
  59. package/cjs/components/tooltip/index.d.ts +106 -0
  60. package/cjs/components/tooltip/index.js +1 -0
  61. package/cjs/components/tooltip/src/constants.d.ts +7 -0
  62. package/cjs/components/tooltip/src/constants.js +1 -0
  63. package/cjs/components/tooltip/src/content.js +1 -0
  64. package/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +1 -0
  65. package/cjs/components/tooltip/src/tooltip.js +1 -0
  66. package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -0
  67. package/cjs/components/tooltip/src/types.d.ts +98 -0
  68. package/cjs/components/tooltip/src/use-emit.d.ts +14 -0
  69. package/cjs/components/tooltip/src/use-emit.js +1 -0
  70. package/cjs/components/tooltip/src/use-tooltip.d.ts +9 -0
  71. package/cjs/components/tooltip/src/use-tooltip.js +1 -0
  72. package/cjs/components/tooltip/style/css.d.ts +0 -0
  73. package/cjs/components/tooltip/style/index.d.ts +0 -0
  74. package/cjs/composables/index.d.ts +7 -5
  75. package/cjs/composables/index.js +1 -0
  76. package/cjs/composables/use-date-format/index.js +1 -0
  77. package/cjs/composables/use-draggable/index.js +1 -0
  78. package/cjs/composables/use-namespace/index.d.ts +8 -7
  79. package/cjs/composables/use-namespace/index.js +1 -1
  80. package/cjs/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
  81. package/cjs/composables/use-once-fn/index.js +1 -0
  82. package/cjs/composables/use-theme/index.d.ts +7 -0
  83. package/cjs/composables/use-theme/index.js +1 -0
  84. package/cjs/composables/use-time-nodes/index.js +1 -0
  85. package/cjs/composables/use-waterfall-layout/index.js +1 -0
  86. package/cjs/composables/use-z-index/index.d.ts +11 -0
  87. package/cjs/composables/use-z-index/index.js +1 -0
  88. package/cjs/constants/svgLoading.js +2 -2
  89. package/cjs/directives/index.js +1 -0
  90. package/cjs/directives/vDraggable.js +1 -1
  91. package/cjs/directives/vResizable.js +7 -7
  92. package/cjs/directives/vSvgLoading.js +1 -1
  93. package/cjs/index.d.ts +1207 -47
  94. package/cjs/index.js +1 -1
  95. package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  96. package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
  97. package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
  98. package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
  99. package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +1 -0
  100. package/cjs/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -1
  101. package/cjs/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -1
  102. package/cjs/rappel-ui/resolver.d.ts +3 -1
  103. package/cjs/rappel-ui/resolver.js +1 -1
  104. package/cjs/svg-icons/constants.d.ts +3 -0
  105. package/cjs/svg-icons/constants.js +1 -0
  106. package/cjs/svg-icons/index.d.ts +1010 -0
  107. package/cjs/svg-icons/index.js +1 -0
  108. package/cjs/svg-icons/types.d.ts +5 -0
  109. package/cjs/theme-chalk/src/base.css +1 -1
  110. package/cjs/theme-chalk/src/button-group.css +1 -0
  111. package/cjs/theme-chalk/src/button.css +1 -1
  112. package/cjs/theme-chalk/src/colors.css +1 -1
  113. package/cjs/theme-chalk/src/filter-panel.css +1 -1
  114. package/cjs/theme-chalk/src/svg-icon.css +1 -1
  115. package/cjs/types/common.d.ts +1 -0
  116. package/cjs/types/component.d.ts +1 -0
  117. package/cjs/types/event.d.ts +1 -0
  118. package/cjs/types/index.d.ts +4 -0
  119. package/cjs/types/theme.d.ts +1 -0
  120. package/cjs/utils/index.js +1 -0
  121. package/cjs/utils/util.d.ts +33 -6
  122. package/cjs/utils/util.js +3 -3
  123. package/cjs/utils/vue/index.d.ts +4 -0
  124. package/cjs/utils/vue/index.js +1 -1
  125. package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +12 -0
  126. package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +14 -0
  127. package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +9 -0
  128. package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +11 -0
  129. package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
  130. package/es/_virtual/_rolldown/runtime.mjs +11 -0
  131. package/es/components/button/index.d.ts +38 -12
  132. package/es/components/button/index.mjs +9 -7
  133. package/es/components/button/src/button-group.mjs +5 -0
  134. package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +25 -0
  135. package/es/components/button/src/button.mjs +5 -0
  136. package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +140 -0
  137. package/es/components/button/src/constants.d.ts +4 -4
  138. package/es/components/button/src/constants.mjs +20 -5
  139. package/es/components/button/src/types.d.ts +20 -4
  140. package/es/components/button/style/index.mjs +2 -0
  141. package/es/components/button-group/style/css.d.ts +0 -0
  142. package/es/components/button-group/style/index.d.ts +0 -0
  143. package/es/components/button-group/style/index.mjs +2 -0
  144. package/es/components/colors/index.mjs +13 -16
  145. package/es/components/colors/src/colors.mjs +5 -0
  146. package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +21 -0
  147. package/es/components/colors/src/neutral-color.mjs +5 -0
  148. package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +103 -0
  149. package/es/components/colors/src/primary-color.mjs +5 -0
  150. package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +38 -0
  151. package/es/components/colors/src/secondary-color.mjs +5 -0
  152. package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +56 -0
  153. package/es/components/colors/style/index.mjs +2 -0
  154. package/es/components/filter-panel/index.d.ts +25 -29
  155. package/es/components/filter-panel/index.mjs +7 -7
  156. package/es/components/filter-panel/src/filter-panel.mjs +5 -0
  157. package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +130 -0
  158. package/es/components/filter-panel/src/types.d.ts +1 -2
  159. package/es/components/filter-panel/style/index.mjs +2 -0
  160. package/es/components/index.d.ts +2 -0
  161. package/es/components/index.mjs +32 -18
  162. package/es/components/input/index.d.ts +1 -1
  163. package/es/components/input/index.mjs +7 -7
  164. package/es/components/input/src/input.mjs +5 -0
  165. package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +21 -0
  166. package/es/components/package.mjs +4 -0
  167. package/es/components/popover/index.d.ts +21 -0
  168. package/es/components/popover/index.mjs +7 -0
  169. package/es/components/popover/src/popover.mjs +5 -0
  170. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +164 -0
  171. package/es/components/popover/src/types.d.ts +4 -0
  172. package/es/components/popover/style/css.d.ts +0 -0
  173. package/es/components/popover/style/index.d.ts +0 -0
  174. package/es/components/svg-icon/index.d.ts +1 -1
  175. package/es/components/svg-icon/index.mjs +7 -7
  176. package/es/components/svg-icon/src/svg-icon.mjs +5 -0
  177. package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +52 -0
  178. package/es/components/svg-icon/src/types.d.ts +3 -2
  179. package/es/components/svg-icon/style/index.mjs +2 -0
  180. package/es/components/tabs/index.d.ts +2 -2
  181. package/es/components/tabs/index.mjs +7 -7
  182. package/es/components/tabs/src/tabs.mjs +11 -0
  183. package/es/components/tooltip/index.d.ts +106 -0
  184. package/es/components/tooltip/index.mjs +7 -0
  185. package/es/components/tooltip/src/constants.d.ts +7 -0
  186. package/es/components/tooltip/src/constants.mjs +13 -0
  187. package/es/components/tooltip/src/content.mjs +5 -0
  188. package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +158 -0
  189. package/es/components/tooltip/src/tooltip.mjs +5 -0
  190. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +258 -0
  191. package/es/components/tooltip/src/types.d.ts +98 -0
  192. package/es/components/tooltip/src/use-emit.d.ts +14 -0
  193. package/es/components/tooltip/src/use-emit.mjs +17 -0
  194. package/es/components/tooltip/src/use-tooltip.d.ts +9 -0
  195. package/es/components/tooltip/src/use-tooltip.mjs +103 -0
  196. package/es/components/tooltip/style/css.d.ts +0 -0
  197. package/es/components/tooltip/style/index.d.ts +0 -0
  198. package/es/composables/index.d.ts +7 -5
  199. package/es/composables/index.mjs +9 -0
  200. package/es/composables/use-date-format/index.mjs +20 -0
  201. package/es/composables/use-draggable/index.mjs +61 -0
  202. package/es/composables/use-namespace/index.d.ts +8 -7
  203. package/es/composables/use-namespace/index.mjs +21 -20
  204. package/es/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
  205. package/es/composables/use-once-fn/index.mjs +30 -0
  206. package/es/composables/use-theme/index.d.ts +7 -0
  207. package/es/composables/use-theme/index.mjs +23 -0
  208. package/es/composables/use-time-nodes/index.mjs +25 -0
  209. package/es/composables/use-waterfall-layout/index.mjs +46 -0
  210. package/es/composables/use-z-index/index.d.ts +11 -0
  211. package/es/composables/use-z-index/index.mjs +17 -0
  212. package/es/constants/svgLoading.mjs +4 -39
  213. package/es/directives/index.mjs +4 -0
  214. package/es/directives/vDraggable.mjs +13 -12
  215. package/es/directives/vResizable.mjs +115 -115
  216. package/es/directives/vSvgLoading.mjs +46 -47
  217. package/es/index.d.ts +1207 -47
  218. package/es/index.mjs +44 -78
  219. package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +276 -0
  220. package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +322 -0
  221. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +99 -0
  222. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +101 -0
  223. package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +111 -0
  224. package/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +450 -119
  225. package/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +119 -22
  226. package/es/rappel-ui/resolver.d.ts +3 -1
  227. package/es/rappel-ui/resolver.mjs +16 -17
  228. package/es/svg-icons/constants.d.ts +3 -0
  229. package/es/svg-icons/constants.mjs +114 -0
  230. package/es/svg-icons/index.d.ts +1010 -0
  231. package/es/svg-icons/index.mjs +72 -0
  232. package/es/svg-icons/types.d.ts +5 -0
  233. package/es/theme-chalk/src/base.css +1 -1
  234. package/es/theme-chalk/src/button-group.css +1 -0
  235. package/es/theme-chalk/src/button.css +1 -1
  236. package/es/theme-chalk/src/colors.css +1 -1
  237. package/es/theme-chalk/src/filter-panel.css +1 -1
  238. package/es/theme-chalk/src/svg-icon.css +1 -1
  239. package/es/types/common.d.ts +1 -0
  240. package/es/types/component.d.ts +1 -0
  241. package/es/types/event.d.ts +1 -0
  242. package/es/types/index.d.ts +4 -0
  243. package/es/types/theme.d.ts +1 -0
  244. package/es/utils/index.mjs +3 -0
  245. package/es/utils/util.d.ts +33 -6
  246. package/es/utils/util.mjs +198 -151
  247. package/es/utils/vue/index.d.ts +4 -0
  248. package/es/utils/vue/index.mjs +33 -32
  249. package/package.json +2 -2
  250. package/theme-chalk/base.css +131 -54
  251. package/theme-chalk/css-vars/_button-group.css +15 -0
  252. package/theme-chalk/css-vars/_button.css +6 -26
  253. package/theme-chalk/css-vars/_colors.css +9 -27
  254. package/theme-chalk/css-vars/_tooltip.css +15 -0
  255. package/theme-chalk/function/_button.css +6 -26
  256. package/theme-chalk/function/index.css +6 -26
  257. package/theme-chalk/index.css +795 -222
  258. package/theme-chalk/mixins/_base.css +15 -0
  259. package/theme-chalk/mixins/_button.css +7 -24
  260. package/theme-chalk/mixins/_tooltip.css +18 -0
  261. package/theme-chalk/mixins/index.css +7 -24
  262. package/theme-chalk/re-button-group.css +68 -0
  263. package/theme-chalk/re-button.css +556 -192
  264. package/theme-chalk/re-colors.css +10 -23
  265. package/theme-chalk/re-filter-panel.css +7 -24
  266. package/theme-chalk/re-popover.css +30 -0
  267. package/theme-chalk/re-svg-icon.css +7 -24
  268. package/theme-chalk/re-tooltip.css +62 -0
  269. package/theme-chalk/root-vars.css +121 -52
  270. package/theme-chalk/src/base.scss +16 -14
  271. package/theme-chalk/src/button-group.scss +63 -0
  272. package/theme-chalk/src/button.scss +50 -21
  273. package/theme-chalk/src/colors.scss +9 -1
  274. package/theme-chalk/src/css-vars/_button-group.scss +12 -0
  275. package/theme-chalk/src/css-vars/_button.scss +44 -3
  276. package/theme-chalk/src/css-vars/_colors.scss +55 -12
  277. package/theme-chalk/src/css-vars/_namespace.scss +3 -1
  278. package/theme-chalk/src/css-vars/_tooltip.scss +23 -0
  279. package/theme-chalk/src/filter-panel.scss +1 -1
  280. package/theme-chalk/src/function/index.scss +55 -47
  281. package/theme-chalk/src/index.scss +8 -5
  282. package/theme-chalk/src/mixins/_base.scss +14 -0
  283. package/theme-chalk/src/mixins/_button.scss +135 -55
  284. package/theme-chalk/src/mixins/_tooltip.scss +37 -0
  285. package/theme-chalk/src/mixins/index.scss +27 -3
  286. package/theme-chalk/src/popover.scss +17 -0
  287. package/theme-chalk/src/root-vars.scss +7 -0
  288. package/theme-chalk/src/svg-icon.scss +1 -1
  289. package/theme-chalk/src/tooltip.scss +61 -0
  290. package/umd/index.js +10 -11
  291. package/cjs/components/button/src/button.d.ts +0 -3
  292. package/cjs/components/button/src/button.vue.js +0 -1
  293. package/cjs/components/button/src/button.vue2.js +0 -1
  294. package/cjs/components/colors/src/colors.vue.js +0 -1
  295. package/cjs/components/colors/src/colors.vue2.js +0 -1
  296. package/cjs/components/colors/src/neutral-color.vue.js +0 -1
  297. package/cjs/components/colors/src/neutral-color.vue2.js +0 -1
  298. package/cjs/components/colors/src/primary-color.vue.js +0 -1
  299. package/cjs/components/colors/src/primary-color.vue2.js +0 -1
  300. package/cjs/components/colors/src/secondary-color.vue.js +0 -1
  301. package/cjs/components/colors/src/secondary-color.vue2.js +0 -1
  302. package/cjs/components/filter-panel/src/filter-panel.vue.js +0 -1
  303. package/cjs/components/filter-panel/src/filter-panel.vue2.js +0 -1
  304. package/cjs/components/input/src/input.vue.js +0 -1
  305. package/cjs/components/input/src/input.vue2.js +0 -1
  306. package/cjs/components/svg-icon/src/svg-icon.vue.js +0 -1
  307. package/cjs/components/svg-icon/src/svg-icon.vue2.js +0 -1
  308. package/cjs/components/tabs/src/tabs.vue.js +0 -1
  309. package/cjs/composables/useDateFormat.js +0 -1
  310. package/cjs/composables/useDraggable.js +0 -1
  311. package/cjs/composables/useOnceFn.js +0 -1
  312. package/cjs/composables/useTimeNodes.js +0 -1
  313. package/cjs/composables/useWaterFallLayout.js +0 -1
  314. package/cjs/package.json.js +0 -1
  315. package/es/components/button/src/button.d.ts +0 -3
  316. package/es/components/button/src/button.vue.mjs +0 -74
  317. package/es/components/button/src/button.vue2.mjs +0 -4
  318. package/es/components/colors/src/colors.vue.mjs +0 -21
  319. package/es/components/colors/src/colors.vue2.mjs +0 -4
  320. package/es/components/colors/src/neutral-color.vue.mjs +0 -199
  321. package/es/components/colors/src/neutral-color.vue2.mjs +0 -4
  322. package/es/components/colors/src/primary-color.vue.mjs +0 -38
  323. package/es/components/colors/src/primary-color.vue2.mjs +0 -4
  324. package/es/components/colors/src/secondary-color.vue.mjs +0 -61
  325. package/es/components/colors/src/secondary-color.vue2.mjs +0 -4
  326. package/es/components/filter-panel/src/filter-panel.vue.mjs +0 -158
  327. package/es/components/filter-panel/src/filter-panel.vue2.mjs +0 -4
  328. package/es/components/input/src/input.vue.mjs +0 -15
  329. package/es/components/input/src/input.vue2.mjs +0 -4
  330. package/es/components/svg-icon/src/svg-icon.vue.mjs +0 -33
  331. package/es/components/svg-icon/src/svg-icon.vue2.mjs +0 -4
  332. package/es/components/tabs/src/tabs.vue.mjs +0 -17
  333. package/es/composables/useDateFormat.mjs +0 -20
  334. package/es/composables/useDraggable.mjs +0 -55
  335. package/es/composables/useOnceFn.mjs +0 -32
  336. package/es/composables/useTimeNodes.mjs +0 -24
  337. package/es/composables/useWaterFallLayout.mjs +0 -51
  338. package/es/package.json.mjs +0 -4
  339. package/global.d.ts +0 -7
  340. package/theme-chalk/pu-button.css +0 -446
  341. package/theme-chalk/src/common/_function.scss +0 -46
  342. /package/cjs/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
  343. /package/cjs/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
  344. /package/cjs/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
  345. /package/cjs/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
  346. /package/es/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
  347. /package/es/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
  348. /package/es/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
  349. /package/es/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
@@ -4,15 +4,20 @@
4
4
  @use 'css-vars/_button' as *;
5
5
  @use 'sass:map';
6
6
 
7
- @include buildCls('button') {
7
+ @include buildRootCls('button') {
8
8
  display: inline-flex;
9
9
  align-items: center;
10
10
  justify-content: center;
11
+ font-size: getCssVar('base', 'font', 'size');
11
12
  text-align: center;
12
13
  cursor: pointer;
13
14
  white-space: nowrap;
14
15
  box-sizing: border-box;
15
- transition: all 0.3s ease;
16
+ transition:
17
+ width 0.05s ease,
18
+ height 0.05s ease,
19
+ background-color 0.03s ease,
20
+ transform 0.03s ease;
16
21
  -webkit-user-select: none;
17
22
  user-select: none;
18
23
  outline: none;
@@ -22,8 +27,8 @@
22
27
  -webkit-appearance: none;
23
28
  appearance: none;
24
29
  position: relative;
25
- padding: map.get($button-padding, '');
26
- border-radius: 4px;
30
+ padding: deepGet($sizes, '', 'padding');
31
+ border-radius: deepGet($sizes, '', 'radius');
27
32
  border-width: 1px;
28
33
  border-style: solid;
29
34
  background-color: getCssVar('button', 'bgcolor');
@@ -49,23 +54,46 @@
49
54
  }
50
55
  }
51
56
  &__icon {
52
- margin-right: 4px;
53
57
  width: 1em;
54
58
  height: 1em;
59
+ & + span {
60
+ margin-left: 4px;
61
+ }
62
+ }
63
+
64
+ @include is('dashed') {
65
+ border-style: dashed;
66
+ @include hover {
67
+ @include set-bgcolor-custom(getCssVar('color', 'fill', 'blank'));
68
+ }
69
+ }
70
+
71
+ @include is('link', 'text') {
72
+ @include set-bordercolor-custom(getCssVar('color', 'fill', 'transparent'));
73
+ @include set-bgcolor-custom(getCssVar('color', 'fill', 'transparent'));
55
74
  }
56
75
 
57
76
  @include is('link') {
58
77
  padding: 2px;
59
78
  height: auto;
60
- border-color: getCssVar('color', 'fill', 'transparent');
61
- background-color: getCssVar('color', 'fill', 'transparent');
62
79
  text-decoration: underline;
63
80
  }
64
81
 
82
+ @include is('text') {
83
+ padding: 0;
84
+ height: auto;
85
+
86
+ @include is('text-padding', 'text-bg') {
87
+ padding: map.get($button-padding, '');
88
+ height: 32px;
89
+ border: 0 solid transparent;
90
+ }
91
+ }
92
+
65
93
  @include is('plain') {
66
94
  @include hover {
67
- border-color: getCssVar('color', 'primary', 'base');
68
- background-color: getCssVar('color', 'fill', 'blank');
95
+ @include set-bordercolor-custom(getCssVar('color', 'primary', 'base'));
96
+ @include set-bgcolor-custom(getCssVar('color', 'fill', 'blank'));
69
97
  }
70
98
  }
71
99
 
@@ -79,15 +107,6 @@
79
107
  padding: 8px;
80
108
  }
81
109
 
82
- &:active:not(.is-disabled) {
83
- transform: scale(0.97);
84
- transition: transform 0s ease;
85
- }
86
-
87
- &:focus-visible {
88
- outline: none;
89
- }
90
-
91
110
  & + & {
92
111
  margin-left: 10px;
93
112
  }
@@ -96,9 +115,19 @@
96
115
  @include button-modifier-style($button, $type);
97
116
  }
98
117
 
99
- @each $size in map.keys($button-padding) {
100
- &--#{$size} {
101
- padding: map.get($button-padding, $size);
118
+ @each $size in map.keys($sizes) {
119
+ @if $size != '' {
120
+ &--#{$size} {
121
+ padding: deepGet($sizes, $size, 'padding');
122
+ height: deepGet($sizes, $size, 'height');
123
+ font-size: deepGet($sizes, $size, 'size');
124
+ border-radius: deepGet($sizes, $size, 'radius');
125
+
126
+ @include is('circle') {
127
+ width: deepGet($sizes, $size, 'height');
128
+ padding: deepGet($sizes, $size, 'circlepadding');
129
+ }
130
+ }
102
131
  }
103
132
  }
104
133
  }
@@ -1,6 +1,6 @@
1
1
  @use 'mixins/index' as *;
2
2
 
3
- @include buildCls('colors') {
3
+ @include buildRootCls('colors') {
4
4
  &--primary {
5
5
  width: 60rem;
6
6
  border-radius: 4px;
@@ -73,5 +73,13 @@
73
73
  0 11px,
74
74
  11px -11px,
75
75
  -11px 0px;
76
+
77
+ &.is-dark {
78
+ background-image:
79
+ linear-gradient(45deg, #303131 25%, transparent 25%),
80
+ linear-gradient(-45deg, #303131 25%, transparent 25%),
81
+ linear-gradient(45deg, transparent 75%, #303131 75%),
82
+ linear-gradient(-45deg, transparent 75%, #303131 75%);
83
+ }
76
84
  }
77
85
  }
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @use '../function/index' as *;
3
+
4
+ $button-group: () !default;
5
+ $button-group: map.deep-merge(
6
+ (
7
+ 'color': (
8
+ 'divider': getCssVar('color', 'fill', 'blank')
9
+ )
10
+ ),
11
+ $button-group
12
+ );
@@ -6,11 +6,14 @@ $button: map.deep-merge(
6
6
  (
7
7
  '': (
8
8
  'bgcolor': getCssVar('color', 'fill', 'blank'),
9
- 'color': getCssVar('color', 'text', 'secondary'),
9
+ 'color': getCssVar('color', 'text', 'base'),
10
10
  'border-color': getCssVar('color', 'border', 'base'),
11
11
  'hover-color': getCssVar('color', 'primary', 'base'),
12
12
  'hover-bgcolor': getCssVar('color', 'primary', 'shade-1'),
13
- 'hover-border-color': getCssVar('color', 'primary', 'shade-4')
13
+ 'hover-border-color': getCssVar('color', 'primary', 'shade-4'),
14
+ 'active-color': getCssVar('color', 'primary', 'base'),
15
+ 'active-bgcolor': getCssVar('color', 'primary', 'shade-2'),
16
+ 'active-border-color': getCssVar('color', 'primary', 'shade-5')
14
17
  )
15
18
  ),
16
19
  $button
@@ -27,7 +30,10 @@ $button-types: ('', 'primary', 'success', 'danger', 'warning', 'info');
27
30
  'border-color': getCssVar('color', $type, 'base'),
28
31
  'hover-color': getCssVar('color', 'text', 'lightest'),
29
32
  'hover-bgcolor': getCssVar('color', $type, 'hover'),
30
- 'hover-border-color': getCssVar('color', $type, 'hover')
33
+ 'hover-border-color': getCssVar('color', $type, 'hover'),
34
+ 'active-color': getCssVar('color', 'text', 'lightest'),
35
+ 'active-bgcolor': getCssVar('color', $type, 'active'),
36
+ 'active-border-color': getCssVar('color', $type, 'active')
31
37
  )
32
38
  ),
33
39
  $button
@@ -45,3 +51,38 @@ $button-padding: map.deep-merge(
45
51
  ),
46
52
  $button-padding
47
53
  );
54
+
55
+ $sizes: () !default;
56
+ $sizes: map.deep-merge(
57
+ (
58
+ 'large': (
59
+ padding: 12px 20px,
60
+ circlepadding: 12px,
61
+ size: 16px,
62
+ height: 40px,
63
+ radius: 4px
64
+ ),
65
+ '': (
66
+ padding: 8px 16px,
67
+ circlepadding: 8px,
68
+ size: 14px,
69
+ height: 32px,
70
+ radius: 4px
71
+ ),
72
+ 'small': (
73
+ padding: 6px 12px,
74
+ circlepadding: 6px,
75
+ size: 12px,
76
+ height: 28px,
77
+ radius: 4px
78
+ ),
79
+ 'mini': (
80
+ padding: 4px 8px,
81
+ circlepadding: 4px,
82
+ size: 12px,
83
+ height: 24px,
84
+ radius: 2px
85
+ )
86
+ ),
87
+ $sizes
88
+ );
@@ -7,11 +7,11 @@ $colors: map.deep-merge(
7
7
  (
8
8
  text: (
9
9
  darkest: #000000,
10
- base: #303131,
11
- secondary: #606062,
12
- neutral: #909093,
13
- placeholder: #b2b2b6,
14
- disabled: #cdcdd1,
10
+ darker: #303131,
11
+ base: #606062,
12
+ dark: #909093,
13
+ light: #b2b2b6,
14
+ lighter: #cdcdd1,
15
15
  lightest: #ffffff
16
16
  ),
17
17
  border: (
@@ -20,8 +20,7 @@ $colors: map.deep-merge(
20
20
  base: #dbdbe0,
21
21
  light: #e4e4e8,
22
22
  lighter: #ededef,
23
- extra-light: #efeff3,
24
- theme: #d4caff
23
+ lightest: #efeff3
25
24
  ),
26
25
  fill: (
27
26
  darker: #d7d7dc,
@@ -29,8 +28,7 @@ $colors: map.deep-merge(
29
28
  base: #ededf0,
30
29
  light: #f1f1f4,
31
30
  lighter: #f6f6f7,
32
- extra-light: #f8f8f9,
33
- theme: #f7f7fb,
31
+ lightest: #f8f8f9,
34
32
  blank: #ffffff,
35
33
  transparent: transparent
36
34
  )
@@ -40,7 +38,7 @@ $colors: map.deep-merge(
40
38
 
41
39
  $state-types: (
42
40
  primary: (
43
- #937bff
41
+ #9d87ff
44
42
  ),
45
43
  success: (
46
44
  #06b56d
@@ -59,8 +57,9 @@ $state-types: (
59
57
  /**
60
58
  * 生成不同(0.9-0.1)透明度对应的等值颜色:
61
59
  primary: (
62
- base: #937bff,
63
- hover: #7e69dc,
60
+ base: #9d87ff,
61
+ active:#8d7ae6,
62
+ hover: #8d7ae6,
64
63
  shade-9: #9e88ff,
65
64
  shade-8: #a995ff,
66
65
  shade-7: #b3a3ff,
@@ -80,3 +79,47 @@ $state-types: (
80
79
  )
81
80
  );
82
81
  }
82
+
83
+ $colors-dark: () !default;
84
+
85
+ $colors-dark: map.deep-merge(
86
+ (
87
+ text: (
88
+ darkest: #ffffff,
89
+ darker: #e0e0e2,
90
+ base: #d0d0d4,
91
+ dark: #b2b2b6,
92
+ light: #909093,
93
+ lighter: #606062,
94
+ lightest: #303131
95
+ ),
96
+ border: (
97
+ darker: #8e8e91,
98
+ dark: #6b6b6f,
99
+ base: #5b5b5f,
100
+ light: #4d4d51,
101
+ lighter: #3b3b3d,
102
+ lightest: #2c2c2e
103
+ ),
104
+ fill: (
105
+ darker: #6b6b6f,
106
+ dark: #5b5b5f,
107
+ base: #4d4d51,
108
+ light: #3b3b3d,
109
+ lighter: #323236,
110
+ lightest: #2c2c2e,
111
+ blank: #1b1b1f,
112
+ transparent: transparent
113
+ )
114
+ ),
115
+ $colors-dark
116
+ );
117
+
118
+ @each $type, $color in $state-types {
119
+ $colors-dark: map.merge(
120
+ $colors-dark,
121
+ (
122
+ $type: create-dark-colors($color)
123
+ )
124
+ );
125
+ }
@@ -5,7 +5,9 @@ $namespace: map.deep-merge(
5
5
  (
6
6
  prefix: 're',
7
7
  statePrefix: 'is',
8
- font-size: 16px,
8
+ fontSizeRoot: 16px,
9
+ fontSizeBase: 14px,
10
+ radius: 4px,
9
11
  round: 20px
10
12
  ),
11
13
  $namespace
@@ -0,0 +1,23 @@
1
+ @use 'sass:map';
2
+ @use '../function/index' as *;
3
+
4
+ $tooltip: () !default;
5
+ $tooltip: map.deep-merge(
6
+ (
7
+ 'tooltip': (
8
+ 'font-size': 12px,
9
+ 'border-radius': 4px
10
+ ),
11
+ 'light': (
12
+ 'color': getCssVar('color', 'text', 'base'),
13
+ 'bgcolor': getCssVar('color', 'fill', 'blank'),
14
+ 'border-color': getCssVar('color', 'border', 'light')
15
+ ),
16
+ 'dark': (
17
+ 'color': getCssVar('color', 'fill', 'blank'),
18
+ 'bgcolor': getCssVar('color', 'text', 'darker'),
19
+ 'border-color': getCssVar('color', 'text', 'darker')
20
+ )
21
+ ),
22
+ $tooltip
23
+ );
@@ -1,6 +1,6 @@
1
1
  @use 'mixins/index' as *;
2
2
 
3
- @include buildCls(filter-panel) {
3
+ @include buildRootCls(filter-panel) {
4
4
  display: flex;
5
5
  align-items: start;
6
6
  overflow: hidden;
@@ -3,7 +3,7 @@
3
3
  @use 'sass:color';
4
4
  @use 'sass:math';
5
5
  @use 'sass:string';
6
- @use '../css-vars/_namespace.scss' as *;
6
+ @use '../css-vars/_namespace' as *;
7
7
 
8
8
  //('color','text','base') => $obj.color.text.base
9
9
  @function deepGet($obj, $keys...) {
@@ -48,32 +48,18 @@
48
48
  @return var(#{getCssVarStr($args...)});
49
49
  }
50
50
 
51
- /**
52
- * 将十六进制颜色转换为RGB颜色
53
- * @param $hex 十六进制颜色值
54
- * @returns RGB颜色值
55
- * color.channel($color, "red", $space: rgb)
56
- */
57
51
  @function hex-to-rgb($hex) {
58
52
  @return color.channel($hex, 'red', $space: rgb) color.channel($hex, 'green', $space: rgb)
59
53
  color.channel($hex, 'blue', $space: rgb);
60
54
  }
61
- /**
62
- * 将RGB颜色转换为十六进制颜色
63
- * @param $value RGB颜色值
64
- * @returns 十六进制颜色值
65
- */
55
+
66
56
  @function color-to-hex($value) {
67
57
  $hex-chars: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 'a' 'b' 'c' 'd' 'e' 'f';
68
58
  $first: list.nth($hex-chars, math.floor(math.div($value, 16)) + 1);
69
59
  $second: list.nth($hex-chars, ($value % 16) + 1);
70
60
  @return #{$first}#{$second};
71
61
  }
72
- /**
73
- * 将RGB颜色转换为十六进制颜色
74
- * @param $color RGB颜色值
75
- * @returns 十六进制颜色值
76
- */
62
+
77
63
  @function rgb-to-hex($color) {
78
64
  $r-hex: color-to-hex(color.channel($color, 'red', $space: rgb));
79
65
  $g-hex: color-to-hex(color.channel($color, 'green', $space: rgb));
@@ -83,66 +69,52 @@
83
69
  }
84
70
 
85
71
  /**
86
- * 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
87
- * @param $color 颜色
88
- * @param $opacity 透明度,默认值为1
89
- * @returns 一个等效的透明度颜色
72
+ * craete same white opacity color
90
73
  */
91
- @function get-equal-opacity-color($color, $opacity: 1) {
92
- // 获取颜色的 RGB 值
74
+ @function get-equal-opacity-color($color, $opacity: 1, $is-dark: false) {
93
75
  $r: color.channel($color, 'red', $space: rgb);
94
76
  $g: color.channel($color, 'green', $space: rgb);
95
77
  $b: color.channel($color, 'blue', $space: rgb);
96
78
 
97
- // 白色背景值
98
- $white-r: 255;
99
- $white-g: 255;
100
- $white-b: 255;
79
+ $white-r: if($is-dark, 48, 255);
80
+ $white-g: if($is-dark, 49, 255);
81
+ $white-b: if($is-dark, 49, 255);
101
82
 
102
- // 计算等效颜色值:前景 × alpha + 背景 × (1 - alpha)
103
83
  $equiv-r: math.round($r * $opacity + $white-r * (1 - $opacity));
104
84
  $equiv-g: math.round($g * $opacity + $white-g * (1 - $opacity));
105
85
  $equiv-b: math.round($b * $opacity + $white-b * (1 - $opacity));
106
-
107
- // 返回新的颜色
108
- @return rgb-to-hex(rgb($equiv-r, $equiv-g, $equiv-b));
86
+ @return rgb($equiv-r, $equiv-g, $equiv-b);
109
87
  }
110
88
 
111
89
  /**
112
- * 创建一个变暗的颜色,并返回一个变暗的颜色
113
- * @param $color 颜色
114
- * @param $factor 颜色变暗的度量,默认为0.15
115
- * @returns 一个变暗的颜色
90
+ * create a darken color
116
91
  */
117
- @function darken-color($color, $factor: 0.15) {
92
+ @function darken-color($color, $factor: 0.2) {
118
93
  $r: color.channel($color, 'red', $space: rgb);
119
94
  $g: color.channel($color, 'green', $space: rgb);
120
95
  $b: color.channel($color, 'blue', $space: rgb);
121
96
 
122
- // 向黑色混合:newColor = originalColor * (1 - factor) + blackColor * factor
123
97
  $new-r: math.round($r * (1 - $factor));
124
98
  $new-g: math.round($g * (1 - $factor));
125
99
  $new-b: math.round($b * (1 - $factor));
126
100
 
127
- @return rgb-to-hex(rgb($new-r, $new-g, $new-b));
101
+ @return rgb($new-r, $new-g, $new-b);
128
102
  }
129
103
 
130
104
  /**
131
- * 创建层级颜色
132
- * @param $base-color 基础颜色
133
- * @param $darkness 变暗的度量,默认为0.15
134
- * @returns 主题色映射
105
+ * create shape color
135
106
  */
136
- @function create-colors($base-color, $darkness: 0.15) {
107
+ @function create-colors($base-color, $darkness: 0.2) {
137
108
  $result: (
138
109
  base: $base-color,
139
- hover: darken-color($base-color, $darkness)
110
+ hover: rgb-to-hex(darken-color($base-color, math.div($darkness, 2))),
111
+ active: rgb-to-hex(darken-color($base-color, $darkness))
140
112
  );
141
113
 
142
- // 添加不同透明度的等值颜色,映射为 shade-1 到 shade-9
114
+ // opacity color shade-1 ~ shade-9
143
115
  @for $i from 9 through 1 {
144
- $opacity: $i * 0.1; // 从 0.9 到 0.1
145
- $color-with-opacity: get-equal-opacity-color($base-color, $opacity);
116
+ $opacity: $i * 0.1; // 0.9 to 0.1
117
+ $color-with-opacity: rgb-to-hex(get-equal-opacity-color($base-color, $opacity));
146
118
  $result: map.merge(
147
119
  $result,
148
120
  (
@@ -150,6 +122,42 @@
150
122
  )
151
123
  );
152
124
  }
125
+ @return $result;
126
+ }
127
+
128
+ /**
129
+ * create dark shape color
130
+ */
131
+ @function create-dark-colors($base-color, $darkness: 0.2) {
132
+ $result: (
133
+ base: $base-color,
134
+ hover: rgb-to-hex(darken-color($base-color, math.div($darkness, 2))),
135
+ active: rgb-to-hex(darken-color($base-color, $darkness))
136
+ );
153
137
 
138
+ // opacity color shade-1 ~ shade-9
139
+ @for $i from 9 through 1 {
140
+ $opacity: $i * 0.1; // 0.9 to 0.1
141
+ $color-with-opacity: rgb-to-hex(get-equal-opacity-color($base-color, $opacity, true));
142
+ $result: map.merge(
143
+ $result,
144
+ (
145
+ 'shade-#{$i}': $color-with-opacity
146
+ )
147
+ );
148
+ }
154
149
  @return $result;
155
150
  }
151
+
152
+ /**
153
+ &.re-tooltip-popover, &.re-tooltip-arrow
154
+ */
155
+ @function buildSiblings($prefix, $names...) {
156
+ $classStr: '';
157
+ @each $n in $names {
158
+ $current: '&.#{$prefix}-#{$n}';
159
+ $classStr: if($classStr == '', $current, $classStr + ', ' + $current);
160
+ }
161
+
162
+ @return $classStr;
163
+ }
@@ -1,5 +1,8 @@
1
- @forward './base.scss';
2
- @forward './button.scss';
3
- @forward './colors.scss';
4
- @forward './filter-panel.scss';
5
- @forward './svg-icon.scss';
1
+ @forward './base';
2
+ @forward './button';
3
+ @forward './button-group';
4
+ @forward './colors';
5
+ @forward './filter-panel';
6
+ @forward './svg-icon';
7
+ @forward './popover';
8
+ @forward './tooltip';
@@ -0,0 +1,14 @@
1
+ @use '../function/index' as *;
2
+ @use '../css-vars/_namespace' as *;
3
+
4
+ @mixin set-root-font-size-var() {
5
+ #{getCssVarStr('root','font', 'size')}: #{deepGet($namespace, 'fontSizeRoot')};
6
+ }
7
+
8
+ @mixin set-base-font-size-var() {
9
+ #{getCssVarStr('base','font', 'size')}: #{deepGet($namespace, 'fontSizeBase')};
10
+ }
11
+
12
+ @mixin set-base-radius() {
13
+ #{getCssVarStr('base','border', 'radius')}: #{deepGet($namespace, 'radius')};
14
+ }