rappel-ui 1.0.32 → 1.0.33

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 (179) hide show
  1. package/README.md +7 -1
  2. package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
  3. package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
  4. package/cjs/components/button/src/types.d.ts +1 -0
  5. package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
  6. package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  8. package/cjs/components/svg-icon/src/types.d.ts +1 -1
  9. package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/cjs/composables/use-namespace/index.d.ts +2 -0
  11. package/cjs/composables/use-namespace/index.js +1 -1
  12. package/cjs/index.d.ts +105 -420
  13. package/cjs/svg-icons/create-icon.d.ts +3 -12
  14. package/cjs/svg-icons/create-icon.js +1 -1
  15. package/cjs/svg-icons/src/arrow-backward.d.ts +3 -12
  16. package/cjs/svg-icons/src/arrow-backward.js +1 -1
  17. package/cjs/svg-icons/src/arrow-down.d.ts +3 -12
  18. package/cjs/svg-icons/src/arrow-down.js +1 -1
  19. package/cjs/svg-icons/src/arrow-downward.d.ts +3 -12
  20. package/cjs/svg-icons/src/arrow-downward.js +1 -1
  21. package/cjs/svg-icons/src/arrow-forward.d.ts +3 -12
  22. package/cjs/svg-icons/src/arrow-forward.js +1 -1
  23. package/cjs/svg-icons/src/arrow-left.d.ts +3 -12
  24. package/cjs/svg-icons/src/arrow-left.js +1 -1
  25. package/cjs/svg-icons/src/arrow-right.d.ts +3 -12
  26. package/cjs/svg-icons/src/arrow-right.js +1 -1
  27. package/cjs/svg-icons/src/arrow-up.d.ts +3 -12
  28. package/cjs/svg-icons/src/arrow-up.js +1 -1
  29. package/cjs/svg-icons/src/arrow-upward.d.ts +3 -12
  30. package/cjs/svg-icons/src/arrow-upward.js +1 -1
  31. package/cjs/svg-icons/src/check-circle.d.ts +3 -12
  32. package/cjs/svg-icons/src/check-circle.js +1 -1
  33. package/cjs/svg-icons/src/check-fill.d.ts +3 -12
  34. package/cjs/svg-icons/src/check.d.ts +3 -12
  35. package/cjs/svg-icons/src/check.js +1 -1
  36. package/cjs/svg-icons/src/close-circle.d.ts +3 -12
  37. package/cjs/svg-icons/src/close-circle.js +1 -1
  38. package/cjs/svg-icons/src/close-fill.d.ts +3 -12
  39. package/cjs/svg-icons/src/close-short.d.ts +3 -12
  40. package/cjs/svg-icons/src/close-short.js +1 -1
  41. package/cjs/svg-icons/src/close.d.ts +3 -12
  42. package/cjs/svg-icons/src/close.js +1 -1
  43. package/cjs/svg-icons/src/copy-closure.d.ts +3 -12
  44. package/cjs/svg-icons/src/copy-closure.js +1 -1
  45. package/cjs/svg-icons/src/copy.d.ts +3 -12
  46. package/cjs/svg-icons/src/copy.js +1 -1
  47. package/cjs/svg-icons/src/delete.d.ts +3 -12
  48. package/cjs/svg-icons/src/delete.js +1 -1
  49. package/cjs/svg-icons/src/exclam-fill.d.ts +3 -12
  50. package/cjs/svg-icons/src/exclam.d.ts +3 -12
  51. package/cjs/svg-icons/src/exclam.js +1 -1
  52. package/cjs/svg-icons/src/help.d.ts +3 -12
  53. package/cjs/svg-icons/src/help.js +1 -1
  54. package/cjs/svg-icons/src/info-circle.d.ts +3 -12
  55. package/cjs/svg-icons/src/info-circle.js +1 -1
  56. package/cjs/svg-icons/src/info-fill.d.ts +3 -12
  57. package/cjs/svg-icons/src/loading.d.ts +3 -12
  58. package/cjs/svg-icons/src/loading.js +1 -1
  59. package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
  60. package/cjs/svg-icons/src/more-dot-circle-horizontal.js +1 -1
  61. package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
  62. package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.js +1 -1
  63. package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
  64. package/cjs/svg-icons/src/more-dot-circle-outline-vertical.js +1 -1
  65. package/cjs/svg-icons/src/more-dot-circle.d.ts +3 -12
  66. package/cjs/svg-icons/src/more-dot-circle.js +1 -1
  67. package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
  68. package/cjs/svg-icons/src/more-dot-square-horizontal.js +1 -1
  69. package/cjs/svg-icons/src/more-dot-square.d.ts +3 -12
  70. package/cjs/svg-icons/src/more-dot-square.js +1 -1
  71. package/cjs/svg-icons/src/more-line.d.ts +3 -12
  72. package/cjs/svg-icons/src/more-line.js +1 -1
  73. package/cjs/svg-icons/src/search-bold.d.ts +3 -12
  74. package/cjs/svg-icons/src/search-bold.js +1 -1
  75. package/cjs/svg-icons/src/search.d.ts +3 -12
  76. package/cjs/svg-icons/src/search.js +1 -1
  77. package/cjs/svg-icons/src/star-fill.d.ts +3 -12
  78. package/cjs/svg-icons/src/star.d.ts +3 -12
  79. package/cjs/svg-icons/src/star.js +1 -1
  80. package/cjs/svg-icons/types.d.ts +1 -1
  81. package/cjs/utils/util.d.ts +72 -68
  82. package/cjs/utils/util.js +1 -1
  83. package/dist/index.css +1 -1
  84. package/dist/index.umd.js +9 -9
  85. package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +23 -12
  86. package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +49 -45
  87. package/es/components/button/src/types.d.ts +1 -0
  88. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +3 -3
  89. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +1 -1
  90. package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +2 -2
  91. package/es/components/svg-icon/src/types.d.ts +1 -1
  92. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +3 -2
  93. package/es/composables/use-namespace/index.d.ts +2 -0
  94. package/es/composables/use-namespace/index.mjs +2 -0
  95. package/es/index.d.ts +105 -420
  96. package/es/svg-icons/create-icon.d.ts +3 -12
  97. package/es/svg-icons/create-icon.mjs +3 -7
  98. package/es/svg-icons/src/arrow-backward.d.ts +3 -12
  99. package/es/svg-icons/src/arrow-backward.mjs +3 -1
  100. package/es/svg-icons/src/arrow-down.d.ts +3 -12
  101. package/es/svg-icons/src/arrow-down.mjs +3 -1
  102. package/es/svg-icons/src/arrow-downward.d.ts +3 -12
  103. package/es/svg-icons/src/arrow-downward.mjs +3 -1
  104. package/es/svg-icons/src/arrow-forward.d.ts +3 -12
  105. package/es/svg-icons/src/arrow-forward.mjs +3 -1
  106. package/es/svg-icons/src/arrow-left.d.ts +3 -12
  107. package/es/svg-icons/src/arrow-left.mjs +3 -1
  108. package/es/svg-icons/src/arrow-right.d.ts +3 -12
  109. package/es/svg-icons/src/arrow-right.mjs +3 -1
  110. package/es/svg-icons/src/arrow-up.d.ts +3 -12
  111. package/es/svg-icons/src/arrow-up.mjs +3 -1
  112. package/es/svg-icons/src/arrow-upward.d.ts +3 -12
  113. package/es/svg-icons/src/arrow-upward.mjs +3 -1
  114. package/es/svg-icons/src/check-circle.d.ts +3 -12
  115. package/es/svg-icons/src/check-circle.mjs +3 -1
  116. package/es/svg-icons/src/check-fill.d.ts +3 -12
  117. package/es/svg-icons/src/check.d.ts +3 -12
  118. package/es/svg-icons/src/check.mjs +3 -1
  119. package/es/svg-icons/src/close-circle.d.ts +3 -12
  120. package/es/svg-icons/src/close-circle.mjs +3 -1
  121. package/es/svg-icons/src/close-fill.d.ts +3 -12
  122. package/es/svg-icons/src/close-short.d.ts +3 -12
  123. package/es/svg-icons/src/close-short.mjs +3 -1
  124. package/es/svg-icons/src/close.d.ts +3 -12
  125. package/es/svg-icons/src/close.mjs +3 -1
  126. package/es/svg-icons/src/copy-closure.d.ts +3 -12
  127. package/es/svg-icons/src/copy-closure.mjs +3 -1
  128. package/es/svg-icons/src/copy.d.ts +3 -12
  129. package/es/svg-icons/src/copy.mjs +3 -1
  130. package/es/svg-icons/src/delete.d.ts +3 -12
  131. package/es/svg-icons/src/delete.mjs +3 -1
  132. package/es/svg-icons/src/exclam-fill.d.ts +3 -12
  133. package/es/svg-icons/src/exclam.d.ts +3 -12
  134. package/es/svg-icons/src/exclam.mjs +3 -1
  135. package/es/svg-icons/src/help.d.ts +3 -12
  136. package/es/svg-icons/src/help.mjs +3 -1
  137. package/es/svg-icons/src/info-circle.d.ts +3 -12
  138. package/es/svg-icons/src/info-circle.mjs +3 -1
  139. package/es/svg-icons/src/info-fill.d.ts +3 -12
  140. package/es/svg-icons/src/loading.d.ts +3 -12
  141. package/es/svg-icons/src/loading.mjs +3 -1
  142. package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
  143. package/es/svg-icons/src/more-dot-circle-horizontal.mjs +3 -1
  144. package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
  145. package/es/svg-icons/src/more-dot-circle-outline-horizontal.mjs +3 -1
  146. package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
  147. package/es/svg-icons/src/more-dot-circle-outline-vertical.mjs +3 -1
  148. package/es/svg-icons/src/more-dot-circle.d.ts +3 -12
  149. package/es/svg-icons/src/more-dot-circle.mjs +3 -1
  150. package/es/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
  151. package/es/svg-icons/src/more-dot-square-horizontal.mjs +3 -1
  152. package/es/svg-icons/src/more-dot-square.d.ts +3 -12
  153. package/es/svg-icons/src/more-dot-square.mjs +3 -1
  154. package/es/svg-icons/src/more-line.d.ts +3 -12
  155. package/es/svg-icons/src/more-line.mjs +3 -1
  156. package/es/svg-icons/src/search-bold.d.ts +3 -12
  157. package/es/svg-icons/src/search-bold.mjs +3 -1
  158. package/es/svg-icons/src/search.d.ts +3 -12
  159. package/es/svg-icons/src/search.mjs +3 -1
  160. package/es/svg-icons/src/star-fill.d.ts +3 -12
  161. package/es/svg-icons/src/star.d.ts +3 -12
  162. package/es/svg-icons/src/star.mjs +3 -1
  163. package/es/svg-icons/types.d.ts +1 -1
  164. package/es/utils/util.d.ts +72 -68
  165. package/es/utils/util.mjs +2 -2
  166. package/package.json +2 -2
  167. package/theme-chalk/index.css +1 -1
  168. package/theme-chalk/re-button-group.css +1 -1
  169. package/theme-chalk/re-button.css +1 -1
  170. package/theme-chalk/re-popconfirm.css +1 -1
  171. package/theme-chalk/re-popover.css +1 -1
  172. package/theme-chalk/re-tooltip.css +1 -1
  173. package/theme-chalk/src/button-group.scss +32 -8
  174. package/theme-chalk/src/function/index.scss +1 -1
  175. package/theme-chalk/src/message.scss +0 -1
  176. package/theme-chalk/src/mixins/_button.scss +1 -1
  177. package/theme-chalk/src/popconfirm.scss +16 -0
  178. package/theme-chalk/src/popover.scss +16 -0
  179. package/theme-chalk/src/tooltip.scss +16 -10
@@ -6,11 +6,7 @@ export declare const MoreDotSquareHorizontal: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const MoreDotSquareHorizontal: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const MoreDotSquareHorizontal: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/more-dot-square-horizontal.ts
2
3
  var t = e({
3
4
  name: "more-dot-square-horizontal",
4
- path: "M4 11h2v2h-2v-2m0 1h2m0 1h-2M11 11h2v2h-2v-2m0 1h2m0 1h-2M18 11h2v2h-2v-2m0 1h2m0 1h-2"
5
+ path: "M4 11h2v2h-2v-2m0 1h2m0 1h-2M11 11h2v2h-2v-2m0 1h2m0 1h-2M18 11h2v2h-2v-2m0 1h2m0 1h-2",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as MoreDotSquareHorizontal };
@@ -6,11 +6,7 @@ export declare const MoreDotSquare: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const MoreDotSquare: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const MoreDotSquare: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/more-dot-square.ts
2
3
  var t = e({
3
4
  name: "more-dot-square",
4
- path: "M10 4h2v2h-2v-2m0 1h2m0 1h-2M10 11 h2v2h-2v-2m0 1h2m0 1h-2M10 18 h2v2h-2v-2m0 1h2m0 1h-2"
5
+ path: "M10 4h2v2h-2v-2m0 1h2m0 1h-2M10 11 h2v2h-2v-2m0 1h2m0 1h-2M10 18 h2v2h-2v-2m0 1h2m0 1h-2",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as MoreDotSquare };
@@ -6,11 +6,7 @@ export declare const MoreLine: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const MoreLine: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const MoreLine: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/more-line.ts
2
3
  var t = e({
3
4
  name: "more-line",
4
- path: "M5 5h14l0 1h-14zM5 11h14l0 1h-14zM5 17h14l0 1h-14z"
5
+ path: "M5 5h14l0 1h-14zM5 11h14l0 1h-14zM5 17h14l0 1h-14z",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as MoreLine };
@@ -6,11 +6,7 @@ export declare const SearchBold: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const SearchBold: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const SearchBold: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/search-bold.ts
2
3
  var t = e({
3
4
  name: "search-bold",
4
- path: "M4 11 A7 7 0 1 0 18 11A7 7 0 1 0 4 11M16 16 L20 20"
5
+ path: "M4 11 A7 7 0 1 0 18 11A7 7 0 1 0 4 11M16 16 L20 20",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as SearchBold };
@@ -6,11 +6,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/search.ts
2
3
  var t = e({
3
4
  name: "search",
4
- path: "M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5"
5
+ path: "M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as Search };
@@ -6,11 +6,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -6,11 +6,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
6
6
  };
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: string | undefined;
10
- };
11
- fill: {
12
- type: StringConstructor;
13
- default: string | undefined;
9
+ default: string;
14
10
  };
15
11
  spin: {
16
12
  type: BooleanConstructor;
@@ -25,11 +21,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
25
21
  };
26
22
  color: {
27
23
  type: StringConstructor;
28
- default: string | undefined;
29
- };
30
- fill: {
31
- type: StringConstructor;
32
- default: string | undefined;
24
+ default: string;
33
25
  };
34
26
  spin: {
35
27
  type: BooleanConstructor;
@@ -37,7 +29,6 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
37
29
  };
38
30
  }>> & Readonly<{}>, {
39
31
  size: string | number;
40
- fill: string;
41
- color: string;
42
32
  spin: boolean;
33
+ color: string;
43
34
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
@@ -1,7 +1,9 @@
1
1
  import { createIcon as e } from "../create-icon.mjs";
2
+ //#region packages/svg-icons/src/star.ts
2
3
  var t = e({
3
4
  name: "star",
4
- path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2"
5
+ path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2",
6
+ stroke: "currentColor"
5
7
  });
6
8
  //#endregion
7
9
  export { t as Star };
@@ -1,7 +1,7 @@
1
1
  export interface SvgIconMeta {
2
2
  name: string;
3
3
  path: string;
4
+ stroke?: string;
4
5
  fill?: string;
5
6
  fillRule?: 'inherit' | 'nonzero' | 'evenodd';
6
- color?: string;
7
7
  }
@@ -1,45 +1,45 @@
1
1
  /**
2
- * 将对象转换为 FormData 对象
3
- * @param { Object } params 要转换的对象
4
- * @returns 转换后的 FormData 对象
2
+ * Convert objects to FormData objects
3
+ * @param { Object } params - objects to convert
4
+ * @returns - converted FormData object
5
5
  */
6
6
  export declare function paramsToFormData(params: Record<string, any>): FormData;
7
7
  /**
8
- * 设置URLSearchParams对象并返回新的URL字符串
9
- * @param { string } urlString - URL字符串
10
- * @param { Object } params - 要设置的参数对象
11
- * @returns { string }设置参数后的新的URL字符串
8
+ * Set URLSearchParams object and return a new URL string
9
+ * @param { string } urlString - URL string
10
+ * @param { Object } params - parameters to set in the URLSearchParams object
11
+ * @returns { string } - new URL string with updated search parameters
12
12
  */
13
13
  export declare function setURLSearchParams(urlString: string, params: Record<string, any>): string;
14
14
  /**
15
- * 合并URL字符串
16
- * @param { string[] } ...urls 可变参数: URL字符串参数
17
- * @returns { string } 合并后的URL字符串
15
+ * Merge URL strings
16
+ * @param { string[] } ...urls -Variable parameters: URL string parameters
17
+ * @returns { string } -merged URL string
18
18
  */
19
19
  export declare function joinURLs(...urls: string[]): string;
20
20
  /**
21
- * 深度拷贝
21
+ * deep clone
22
22
  * @param arr
23
23
  * @returns
24
24
  */
25
25
  export declare function deepClone(arr: any[]): any[] | null;
26
26
  /**
27
- * 自动将文件大小转换成合适的带单位大小
28
- * @param byte {number} - 文件大小(B)
27
+ * Automatically convert file size to a suitable unit size
28
+ * @param byte {number} - file size(B)
29
29
  * @returns
30
30
  */
31
31
  export declare function autoCalcFileSize(byte: number): string;
32
32
  /**
33
- * 根据编码读取txt文件
34
- * @param file {File} - 文件对象
35
- * @param encode {string} - 编码格式
33
+ * Read txt files based on encoding
34
+ * @param file {File} - File Object
35
+ * @param encode {string} - Encoding type
36
36
  * @returns
37
37
  */
38
38
  export declare function readTxtFile(file: File, encode: string): Promise<string>;
39
39
  /**
40
- * 用不同编码读取txt文件
41
- * @param file {File} - 文件对象
42
- * @param encodes {string[]} - 编码格式数组
40
+ * Read txt file with different encodings
41
+ * @param file {File} - File Object
42
+ * @param encodes {string[]} - Encodings array
43
43
  * @returns
44
44
  */
45
45
  export declare function readTxtByEncodes(file: File, encodes?: string[]): Promise<string>;
@@ -49,27 +49,27 @@ export declare function readTxtByEncodes(file: File, encodes?: string[]): Promis
49
49
  */
50
50
  export declare function lineBreakToComma(str: string): string;
51
51
  /**
52
- * 单例模式函数
53
- * @param {Function} fn - 要执行的函数 / class类
52
+ * singleton mode
53
+ * @param {Function} fn - function to run / class to construct
54
54
  */
55
55
  export declare function singleton(fn: (...args: unknown[]) => unknown): unknown;
56
56
  /**
57
- * 函数重载
57
+ * function overload
58
58
  * @example
59
59
  * const overload = createOverload()
60
60
  * overload.add('string', (arg: string) => { console.log('string', arg) })
61
61
  * overload.add('number','string', (arg1: number, arg2: string) => { console.log('number,string', arg1, arg2) })
62
- * @returns {Function} 重载函数
62
+ * @returns {Function} overload function
63
63
  */
64
64
  export declare function createOverload(): {
65
65
  (...args: any[]): any;
66
66
  add(...args: any[]): void;
67
67
  };
68
68
  /**
69
- * 平铺数据构建树结构
70
- * @param data {Array} - 数据源
71
- * @param props {Object} - 属性映射
72
- * @returns {Array} - 树结构
69
+ * flat to tree
70
+ * @param data {Array} - original data
71
+ * @param props {Object} - props map
72
+ * @returns {Array} - tree data
73
73
  */
74
74
  export declare function buildTree(data: any[], props?: {
75
75
  label: string;
@@ -83,80 +83,81 @@ export declare function hexToRGB(hexColor: string): {
83
83
  b: number;
84
84
  };
85
85
  /**
86
- * r,g,b 输入可以浮点数,最终输出 #rrggbb
86
+ * Input can be float number, and the final output: #rrggbb
87
87
  * @param r 0‑255
88
88
  * @param g 0‑255
89
89
  * @param b 0‑255
90
90
  */
91
91
  export declare function rgbToHex(r: number, g: number, b: number): string;
92
92
  /**
93
- * 计算半透明颜色与白色背景混合后的等效不透明颜色值
94
- * @param hexColor 原始十六进制颜色值 (例如 '#a895ff')
95
- * @param opacity 透明度值 (0-1之间,默认为0.9)
96
- * @returns 等效的不透明颜色值 (十六进制格式)
93
+ * Calculate the equivalent color value of transparency
94
+ * @param hexColor - (e.g., '#a895ff')
95
+ * @param opacity - (between 0-1, default is 1)
96
+ * @returns the equivalent opaque color value (hexadecimal format)
97
97
  */
98
98
  export declare function getEqualOpacityColor(hexColor: string, bgcolor?: string, opacity?: number): string;
99
99
  /**
100
100
  * Mixed color(Hexadecimal)
101
- * @param baseColor 原始颜色(十六进制, 例如 '#a895ff')
102
- * @param mixColor 混入颜色(十六进制,例如 '#000000')
103
- * @param ratio 混合比率 (0-1, 0表示完全不改变,1表示完全变为混入色)
104
- * @returns 调整后的颜色值
101
+ * @param originColor -original color(Hexadecimal, eg: '#a895ff')
102
+ * @param mixColor -mixed color(Hexadecimal, eg: '#000000')
103
+ * @param ratio -Mixing ratio (0-1, 0 means no change at all, 1 means completely mixed color)
104
+ * @returns -mixed color value
105
105
  */
106
- export declare function mixedColor(baseColor: string, mixColor: string, ratio?: number): string;
106
+ export declare function mixedColor(originColor: string, mixColor: string, ratio?: number): string;
107
107
  /**
108
108
  * @description 创建层次颜色数组,包含一个变暗的颜色(hover/active)和多个透明度的等值颜色值
109
109
  * @param baseColor - 基础颜色的十六进制字符串 (例如 '#a895ff')
110
- * @param isDark - 是否为暗色模式,默认为false
111
- * @param darkDegree - 变暗程度,默认为0.12,取值范围为0-1,0表示不变,1表示完全变为黑色
110
+ * @param bgcolor - 背景颜色的十六进制字符串,默认为 '#ffffff'
111
+ * @param mixColor - 混入颜色的十六进制字符串
112
+ * @param mixRatio - 混入颜色比率,取值范围为0-1,0表示不变,1表示完全变为混入颜色
112
113
  * @param opacityLevels - 透明度数组,默认为 [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]
113
114
  * @returns 层次颜色数组
114
115
  */
115
116
  export declare function createColors(baseColor: string, bgcolor: string | undefined, mixColor: string, mixRatio?: number, opacityLevels?: number[]): string[];
116
117
  /**
117
- * @description 判断对象是否具有指定的键.
118
+ * @description Whether the object has the specified key
118
119
  *
119
- * @param { Record<string, unknown> } obj - 待判断的对象.
120
- * @param { string } key - 待判断的键.
121
- * @returns { boolean } - 是否具有指定的键
120
+ * @param { Record<string, unknown> } obj - the object to be judged.
121
+ * @param { string } key - the key to check.
122
+ * @returns { boolean } - true or false
122
123
  */
123
124
  export declare function hasOwnProperty(obj: Record<string, unknown>, key: string): boolean;
124
125
  /**
125
- * @description 判断对象是否为普通对象.
126
+ * @description whether the object is a plain object.
126
127
  *
127
- * @param { unknown } obj - 待判断的对象.
128
- * @returns { boolean } - 是否为普通对象
128
+ * @param { unknown } obj - the object to be judged.
129
+ * @returns { boolean } - true or false
129
130
  */
130
131
  export declare function isPlainObject(obj: unknown): boolean;
131
132
  /**
132
- * @description 删除对象中的指定键.
133
+ * @description delete object keys.
133
134
  *
134
- * @param { Record<string, unknown> } obj - 目标对象.
135
- * @param { string[] } keys - 要删除的键/键数组.
136
- * @returns { Record<string, unknown> } - 删除键后的新对象
135
+ * @param { Record<string, unknown> } obj - target object.
136
+ * @param { string[] } keys - keys to delete.
137
+ * @returns { Record<string, unknown> } - new object after deleting keys
137
138
  */
138
139
  export declare function deleteKeys<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[] | K): Omit<T, K>;
139
140
  /**
140
- * @description 数组深度扁平化,支持数组子元素为基本类型、对象、数组.
141
+ * @description Recursive array flattening, supporting array sub-elements as basic types, objects, and arrays.
141
142
  *
142
- * @param { Record<string, unknown>[] } arr - 目标数组.
143
- * @param { string } key - 拍平的键.
144
- * @returns { Record<string, unknown>[] } - 拍平后的数组
143
+ * @param { Record<string, unknown>[] } arr - original array.
144
+ * @param { string } key - flattened key.
145
+ * @returns { Record<string, unknown>[] } - flattened array
145
146
  */
146
147
  export declare function flatArr<T extends Record<string, unknown>, K extends keyof T>(arr: T[], key?: K): T[];
147
148
  /**
148
- * @description 删除对象中的空值.
149
+ * @description remove object empty keys.
149
150
  *
150
- * @param { Record<string, unknown> } obj - 目标对象.
151
- * @param { unknown[] } emptyValues - 空值数组 (默认为 ['', undefined, null],支持数组和对象的空值判断['', undefined,
152
- * null, {}, [], false, 0])
153
- * @returns { Partial<T> | T } - 删除空值后的新对象
151
+ * @param { Record<string, unknown> } obj - target object.
152
+ * @param { unknown[] } emptyValues - empty value array (default is ['', undefined, null], supports empty value judgment for arrays and objects ['',
153
+ * null, {}, [], false, 0])
154
+ * @returns { Partial<T> | T } - new object after removing empty values
154
155
  */
155
156
  export declare function omitEmptyKeys<T extends Record<string, unknown> & {
156
157
  length?: never;
157
158
  }>(obj: T, emptyValues?: unknown[]): Partial<T> | T;
158
159
  /**
159
- * 元素宽高过渡效果
160
+ * element sizes transition
160
161
  * @param dom
161
162
  * @param property
162
163
  * @param show
@@ -164,26 +165,29 @@ export declare function omitEmptyKeys<T extends Record<string, unknown> & {
164
165
  */
165
166
  export declare function transitionSize(dom: HTMLElement | undefined, property: "height" | "width" | undefined, show: boolean, transition?: string): void;
166
167
  /**
167
- * 复制文本到剪贴板
168
- * @param {string} text - 需要复制的文本
168
+ * copy text to clipboard
169
+ * @param {string} text - text to copy
169
170
  * @returns {Promise<any>}
170
171
  */
171
172
  export declare function copyText(text: string): Promise<any>;
172
173
  /**
173
- * 转为带 px 的尺寸值
174
- * @param value 数字 / 纯数字字符串 / 带单位字符串
175
- * @returns 带单位 CSS 值
174
+ * Convert to a size value with px unit
175
+ * @param value number / pure number string / string with unit
176
+ * @returns CSS value with unit
176
177
  */
177
178
  export declare function toPx(val?: string | number): string | undefined;
178
179
  /**
179
- *
180
+ * Get CSS variables by prefix
180
181
  * @param prefix
181
182
  * @param element
182
183
  * @returns
183
184
  */
184
185
  export declare function getCssVarsByPrefix(prefix: string, element?: HTMLElement): {};
185
186
  /**
186
- * 将大驼峰命名转换为短横线命名 (kebab-case)
187
- * 例如: ReFilterPanel -> re-filter-panel
187
+ * Convert PascalCase to kebab-case
188
+ * @param str {string} - PascalCase string
189
+ * @returns {string} - kebab-case string
190
+ * @example
191
+ * ReFilterPanel -> re-filter-panel
188
192
  */
189
193
  export declare function toKebabCase(str: string): string;
package/es/utils/util.mjs CHANGED
@@ -113,9 +113,9 @@ function p(e, t = "#ffffff", n = 1) {
113
113
  let { r, g: i, b: a } = d(e), { r: o, g: s, b: c } = d(t);
114
114
  return f(Math.round(r * n + o * (1 - n)), Math.round(i * n + s * (1 - n)), Math.round(a * n + c * (1 - n)));
115
115
  }
116
- function m(e, t, n = .16) {
116
+ function m(e, t, n = .12) {
117
117
  let { r, g: i, b: a } = d(e), { r: o, g: s, b: c } = d(t);
118
- return f(Math.round(r * (1 - n) + o * n), Math.round(i * (1 - n) + s * n), Math.round(a * (1 - n) + c * n));
118
+ return n = Math.max(0, Math.min(1, n)), f(Math.round(r * (1 - n) + o * n), Math.round(i * (1 - n) + s * n), Math.round(a * (1 - n) + c * n));
119
119
  }
120
120
  function h(e, t = "#ffffff", n, r = .12, i = [
121
121
  .9,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rappel-ui",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "A Vue3 Component Library",
5
5
  "keywords": [
6
6
  "vue",
@@ -73,7 +73,7 @@
73
73
  "vue": "^3.2.0"
74
74
  },
75
75
  "dependencies": {
76
- "@rappel-ui/svg-icons": "^1.0.23",
76
+ "@rappel-ui/svg-icons": "^1.0.24",
77
77
  "@vueuse/core": "^14.4.0",
78
78
  "dayjs": "^1.11.18",
79
79
  "@floating-ui/vue": "^2.0.1"