base6-ui 1.1.15 → 2.0.0

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 (203) hide show
  1. package/dist/components/BaseCascader/cssVar.d.ts +10 -0
  2. package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
  3. package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  4. package/dist/components/BaseConfigProvider/type.d.ts +3 -2
  5. package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
  6. package/dist/components/BaseDialog/index.vue.d.ts +2 -2
  7. package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
  8. package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
  9. package/dist/components/BaseLayout/Default/type.d.ts +1 -1
  10. package/dist/components/BaseLayout/index.vue.d.ts +1 -1
  11. package/dist/components/BaseSelect/index.vue.d.ts +1 -1
  12. package/dist/components/BaseSteps/index.d.ts +1 -0
  13. package/dist/components/BaseSteps/steps.d.ts +25 -0
  14. package/dist/components/BaseTabs/cssVar.d.ts +4 -0
  15. package/dist/components/BaseTabs/index.d.ts +2 -0
  16. package/dist/components/BaseTabs/tabs.d.ts +699 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/config/themes/common.d.ts +1 -0
  19. package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
  20. package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
  21. package/dist/config/themes/components/cascader/common.d.ts +2 -2
  22. package/dist/config/themes/components/cascader/dark.d.ts +2 -2
  23. package/dist/config/themes/components/cascader/light.d.ts +2 -2
  24. package/dist/fonts/MiSans-Medium.ttf +0 -0
  25. package/dist/fonts/MiSans-Regular.ttf +0 -0
  26. package/dist/hooks/useAnimationHook.d.ts +1 -1
  27. package/dist/index.css +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.umd.js +1 -1
  30. package/dist/types/themes/components.d.ts +4 -2
  31. package/dist/types/themes/extendThemes.d.ts +10 -0
  32. package/dist/utils/render.d.ts +3 -0
  33. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  34. package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
  35. package/es/assets/logo/logo-light-full.svg.mjs +2 -2
  36. package/es/components/BaseButton/index.vue.mjs +14 -14
  37. package/es/components/BaseCascader/cssVar.d.ts +10 -0
  38. package/es/components/BaseCascader/cssVar.mjs +13 -0
  39. package/es/components/BaseCascader/index.vue.mjs +2 -2
  40. package/es/components/BaseCascader/index.vue2.mjs +19 -13
  41. package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
  42. package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
  43. package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  44. package/es/components/BaseConfigProvider/type.d.ts +3 -2
  45. package/es/components/BaseDataTable/index.vue.d.ts +1 -1
  46. package/es/components/BaseDataTable/index.vue2.mjs +13 -13
  47. package/es/components/BaseDialog/index.vue.d.ts +2 -2
  48. package/es/components/BaseDialog/index.vue.mjs +43 -43
  49. package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
  50. package/es/components/BaseInputNumber/index.vue.mjs +1 -1
  51. package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
  52. package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
  53. package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
  54. package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
  55. package/es/components/BaseLayout/Default/index.vue2.mjs +56 -56
  56. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
  57. package/es/components/BaseLayout/Default/type.d.ts +1 -1
  58. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
  59. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
  60. package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
  61. package/es/components/BaseLayout/index.vue.d.ts +1 -1
  62. package/es/components/BaseLayout/index.vue2.mjs +36 -36
  63. package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
  64. package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
  65. package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
  66. package/es/components/BaseRadio/index.vue2.mjs +18 -18
  67. package/es/components/BaseSelect/index.vue.d.ts +1 -1
  68. package/es/components/BaseSelect/index.vue.mjs +2 -2
  69. package/es/components/BaseSelect/index.vue2.mjs +32 -30
  70. package/es/components/BaseSlider/index.vue2.mjs +44 -44
  71. package/es/components/BaseSteps/index.d.ts +1 -0
  72. package/es/components/BaseSteps/steps.d.ts +25 -0
  73. package/es/components/BaseSteps/steps.mjs +27 -0
  74. package/es/components/BaseSwitch/index.vue2.mjs +17 -17
  75. package/es/components/BaseSystemActions/index.vue.mjs +2 -2
  76. package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
  77. package/es/components/BaseTabs/cssVar.d.ts +4 -0
  78. package/es/components/BaseTabs/cssVar.mjs +7 -0
  79. package/es/components/BaseTabs/index.d.ts +2 -0
  80. package/es/components/BaseTabs/tabs.d.ts +699 -0
  81. package/es/components/BaseTabs/tabs.mjs +43 -0
  82. package/es/components/index.d.ts +2 -0
  83. package/es/config/themes/common.d.ts +1 -0
  84. package/es/config/themes/common.mjs +2 -1
  85. package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
  86. package/es/config/themes/components/baseComponent/dark.mjs +13 -6
  87. package/es/config/themes/components/baseComponent/light.d.ts +3 -2
  88. package/es/config/themes/components/baseComponent/light.mjs +10 -5
  89. package/es/config/themes/components/button/common.mjs +4 -4
  90. package/es/config/themes/components/cascader/common.d.ts +2 -2
  91. package/es/config/themes/components/cascader/common.mjs +4 -2
  92. package/es/config/themes/components/cascader/dark.d.ts +2 -2
  93. package/es/config/themes/components/cascader/dark.mjs +6 -2
  94. package/es/config/themes/components/cascader/light.d.ts +2 -2
  95. package/es/config/themes/components/cascader/light.mjs +10 -6
  96. package/es/config/themes/components/dataTable/dark.mjs +2 -0
  97. package/es/config/themes/components/dataTable/light.mjs +2 -0
  98. package/es/config/themes/components/input/dark.mjs +1 -1
  99. package/es/config/themes/components/select/dark.mjs +3 -2
  100. package/es/config/themes/components/select/light.mjs +1 -0
  101. package/es/config/themes/components/slider/dark.mjs +2 -1
  102. package/es/config/themes/components/slider/light.mjs +2 -1
  103. package/es/fonts/MiSans-Medium.ttf +0 -0
  104. package/es/fonts/MiSans-Regular.ttf +0 -0
  105. package/es/hooks/useAnimationHook.d.ts +1 -1
  106. package/es/hooks/useAnimationHook.mjs +17 -14
  107. package/es/index.css +1 -1
  108. package/es/index.d.ts +1 -0
  109. package/es/index.mjs +59 -52
  110. package/es/locale/lang/en-us.mjs +2 -2
  111. package/es/locale/lang/zh-cn.mjs +2 -2
  112. package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
  113. package/es/types/themes/components.d.ts +4 -2
  114. package/es/types/themes/extendThemes.d.ts +10 -0
  115. package/es/utils/render.d.ts +3 -0
  116. package/es/utils/render.mjs +9 -0
  117. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  118. package/lib/assets/logo/logo-dark-full.svg.js +1 -1
  119. package/lib/assets/logo/logo-light-full.svg.js +1 -1
  120. package/lib/components/BaseButton/index.vue.js +1 -1
  121. package/lib/components/BaseCascader/cssVar.d.ts +10 -0
  122. package/lib/components/BaseCascader/cssVar.js +1 -0
  123. package/lib/components/BaseCascader/index.vue.js +1 -1
  124. package/lib/components/BaseCascader/index.vue2.js +1 -1
  125. package/lib/components/BaseConfigProvider/index.vue.js +1 -1
  126. package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
  127. package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  128. package/lib/components/BaseConfigProvider/type.d.ts +3 -2
  129. package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
  130. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  131. package/lib/components/BaseDialog/index.vue.d.ts +2 -2
  132. package/lib/components/BaseDialog/index.vue.js +1 -1
  133. package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
  134. package/lib/components/BaseInputNumber/index.vue.js +1 -1
  135. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  136. package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
  137. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  138. package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
  139. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  140. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
  141. package/lib/components/BaseLayout/Default/type.d.ts +1 -1
  142. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
  143. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
  144. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
  145. package/lib/components/BaseLayout/index.vue.d.ts +1 -1
  146. package/lib/components/BaseLayout/index.vue2.js +1 -1
  147. package/lib/components/BaseNavIcon/index.vue2.js +1 -1
  148. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  149. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  150. package/lib/components/BaseRadio/index.vue2.js +1 -1
  151. package/lib/components/BaseSelect/index.vue.d.ts +1 -1
  152. package/lib/components/BaseSelect/index.vue.js +1 -1
  153. package/lib/components/BaseSelect/index.vue2.js +1 -1
  154. package/lib/components/BaseSlider/index.vue2.js +1 -1
  155. package/lib/components/BaseSteps/index.d.ts +1 -0
  156. package/lib/components/BaseSteps/steps.d.ts +25 -0
  157. package/lib/components/BaseSteps/steps.js +1 -0
  158. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  159. package/lib/components/BaseSystemActions/index.vue.js +1 -1
  160. package/lib/components/BaseSystemActions/index.vue2.js +1 -1
  161. package/lib/components/BaseTabs/cssVar.d.ts +4 -0
  162. package/lib/components/BaseTabs/cssVar.js +1 -0
  163. package/lib/components/BaseTabs/index.d.ts +2 -0
  164. package/lib/components/BaseTabs/tabs.d.ts +699 -0
  165. package/lib/components/BaseTabs/tabs.js +1 -0
  166. package/lib/components/index.d.ts +2 -0
  167. package/lib/config/themes/common.d.ts +1 -0
  168. package/lib/config/themes/common.js +1 -1
  169. package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
  170. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  171. package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
  172. package/lib/config/themes/components/baseComponent/light.js +1 -1
  173. package/lib/config/themes/components/button/common.js +1 -1
  174. package/lib/config/themes/components/cascader/common.d.ts +2 -2
  175. package/lib/config/themes/components/cascader/common.js +1 -1
  176. package/lib/config/themes/components/cascader/dark.d.ts +2 -2
  177. package/lib/config/themes/components/cascader/dark.js +1 -1
  178. package/lib/config/themes/components/cascader/light.d.ts +2 -2
  179. package/lib/config/themes/components/cascader/light.js +1 -1
  180. package/lib/config/themes/components/dataTable/dark.js +1 -1
  181. package/lib/config/themes/components/dataTable/light.js +1 -1
  182. package/lib/config/themes/components/input/dark.js +1 -1
  183. package/lib/config/themes/components/select/dark.js +1 -1
  184. package/lib/config/themes/components/select/light.js +1 -1
  185. package/lib/config/themes/components/slider/dark.js +1 -1
  186. package/lib/config/themes/components/slider/light.js +1 -1
  187. package/lib/fonts/MiSans-Medium.ttf +0 -0
  188. package/lib/fonts/MiSans-Regular.ttf +0 -0
  189. package/lib/hooks/useAnimationHook.d.ts +1 -1
  190. package/lib/hooks/useAnimationHook.js +1 -1
  191. package/lib/index.css +1 -1
  192. package/lib/index.d.ts +1 -0
  193. package/lib/index.js +1 -1
  194. package/lib/locale/lang/en-us.js +1 -1
  195. package/lib/locale/lang/zh-cn.js +1 -1
  196. package/lib/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
  197. package/lib/types/themes/components.d.ts +4 -2
  198. package/lib/types/themes/extendThemes.d.ts +10 -0
  199. package/lib/utils/render.d.ts +3 -0
  200. package/lib/utils/render.js +1 -0
  201. package/package.json +3 -1
  202. /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
  203. /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
@@ -0,0 +1,43 @@
1
+ import { defineComponent as o, computed as n, h as d } from "vue";
2
+ import { tabsProps as m, NTabs as p } from "naive-ui";
3
+ import b from "../../hooks/useNaiveConfigProvideContext.mjs";
4
+ import { getBaseTabsCssVar as v } from "./cssVar.mjs";
5
+ const c = {
6
+ ...m,
7
+ themeOverrides: Object,
8
+ type: {
9
+ type: String,
10
+ default: "bar"
11
+ }
12
+ }, T = o({
13
+ name: "BaseTabs",
14
+ props: c,
15
+ setup(t, { slots: e }) {
16
+ const { mergedThemeOverridesRef: a } = b(), s = () => {
17
+ if (e.prefix) return () => e.prefix();
18
+ }, u = () => {
19
+ if (e.suffix) return () => e.suffix();
20
+ }, r = n(() => t.type === "segment-round"), f = n(() => r.value ? "segment" : t.type), i = n(() => {
21
+ if (r.value)
22
+ return v(a.value?.Tabs);
23
+ });
24
+ return () => d(
25
+ p,
26
+ {
27
+ ...t,
28
+ type: f.value,
29
+ class: `base-tabs ${r.value ? "base-tabs-segment-type-round" : ""}`,
30
+ style: i.value
31
+ },
32
+ {
33
+ default: () => e.default ? e.default() : void 0,
34
+ prefix: s(),
35
+ suffix: u()
36
+ }
37
+ );
38
+ }
39
+ });
40
+ export {
41
+ c as baseTabsProps,
42
+ T as default
43
+ };
@@ -12,5 +12,7 @@ export * from './BaseProductIntroduction';
12
12
  export { default as BaseProgress } from './BaseProgress';
13
13
  export * from './BaseSelect';
14
14
  export * from './BaseSlider';
15
+ export * from './BaseSteps';
15
16
  export * from './BaseSwitch';
16
17
  export * from './BaseSystemActions';
18
+ export * from './BaseTabs';
@@ -39,4 +39,5 @@ export declare const commonBase: {
39
39
  fontWeightNormal: string;
40
40
  fontWeightActive: string;
41
41
  tabBorderRadius: string;
42
+ tabRoundBorderRadius: string;
42
43
  };
@@ -33,7 +33,8 @@ const a = {
33
33
  tabPaddingLarge: "0 0 4px 0",
34
34
  fontWeightNormal: "400",
35
35
  fontWeightActive: "500",
36
- tabBorderRadius: "19px"
36
+ tabBorderRadius: "10px",
37
+ tabRoundBorderRadius: "19px"
37
38
  };
38
39
  export {
39
40
  a as commonBase
@@ -1,8 +1,9 @@
1
- import { TooltipProps, StepsProps, TabsProps, PopconfirmProps, TreeProps, PaginationProps, BreadcrumbProps } from 'naive-ui';
1
+ import { TooltipProps, StepsProps, PopconfirmProps, TreeProps, PaginationProps, BreadcrumbProps } from 'naive-ui';
2
+ import { BaseTabsThemeOverrides } from '../../../../types/themes/components';
2
3
  export declare const TooltipThemeDark: TooltipProps['themeOverrides'];
3
4
  export declare const PopconfirmThemeDark: PopconfirmProps['themeOverrides'];
4
5
  export declare const TreeThemeDark: TreeProps['themeOverrides'];
5
6
  export declare const PaginationThemeDark: PaginationProps['themeOverrides'];
6
7
  export declare const BreadcrumbThemeDark: BreadcrumbProps['themeOverrides'];
7
- export declare const TabsThemeDark: TabsProps['themeOverrides'];
8
+ export declare const TabsThemeDark: BaseTabsThemeOverrides;
8
9
  export declare const StepsThemeDark: StepsProps['themeOverrides'];
@@ -6,11 +6,16 @@ const l = {
6
6
  color: r["color-gray-3"],
7
7
  textColor: o["color-text-6"],
8
8
  padding: e.paddingBase
9
- }, n = {
9
+ }, d = {
10
+ peers: {
11
+ Popover: {
12
+ borderRadius: "10px"
13
+ }
14
+ },
10
15
  fontSize: e.fontSizeMedium,
11
16
  iconColor: r["color-primary-6"],
12
17
  iconSize: e.iconSizeBase
13
- }, d = {
18
+ }, n = {
14
19
  nodeTextColor: o["color-text-6"],
15
20
  arrowColor: o["color-text-3"],
16
21
  lineColor: r["color-gray-11"]
@@ -67,7 +72,8 @@ const l = {
67
72
  jumperTextColor: o["color-text-6"]
68
73
  // 修改跳转文字颜色
69
74
  }, m = {
70
- // fontSize: string; /* 面包屑整体字体大小 */
75
+ fontSize: "20px",
76
+ /* 面包屑整体字体大小 */
71
77
  // itemLineHeight: string; /* 面包屑项的行高 */
72
78
  // fontWeightActive: string; /* 当前项的字重(如:bold)*/
73
79
  itemTextColor: o["color-text-2"],
@@ -177,8 +183,9 @@ const l = {
177
183
  // /* 垂直方向变量(带Vertical后缀)*/
178
184
  // tabGapSmallLineVertical: string; /* 垂直方向间隙 */
179
185
  // tabPaddingVerticalSmallLine: string; /* 垂直方向内边距 */
180
- tabBorderRadius: e.tabBorderRadius
186
+ tabBorderRadius: e.tabBorderRadius,
181
187
  /* 标签页圆角 */
188
+ tabRoundBorderRadius: e.tabRoundBorderRadius
182
189
  // closeBorderRadius: string; /* 关闭按钮圆角 */
183
190
  }, p = {
184
191
  indicatorColorWait: "transparent",
@@ -246,9 +253,9 @@ const l = {
246
253
  export {
247
254
  m as BreadcrumbThemeDark,
248
255
  c as PaginationThemeDark,
249
- n as PopconfirmThemeDark,
256
+ d as PopconfirmThemeDark,
250
257
  p as StepsThemeDark,
251
258
  x as TabsThemeDark,
252
259
  l as TooltipThemeDark,
253
- d as TreeThemeDark
260
+ n as TreeThemeDark
254
261
  };
@@ -1,8 +1,9 @@
1
- import { TooltipProps, PopconfirmProps, TreeProps, PaginationProps, BreadcrumbProps, TabsProps, StepsProps } from 'naive-ui';
1
+ import { TooltipProps, PopconfirmProps, TreeProps, PaginationProps, BreadcrumbProps, StepsProps } from 'naive-ui';
2
+ import { BaseTabsThemeOverrides } from '../../../../types/themes/components';
2
3
  export declare const TooltipThemeLight: TooltipProps['themeOverrides'];
3
4
  export declare const PopconfirmThemeLight: PopconfirmProps['themeOverrides'];
4
5
  export declare const TreeThemeLight: TreeProps['themeOverrides'];
5
6
  export declare const PaginationThemeLight: PaginationProps['themeOverrides'];
6
7
  export declare const BreadcrumbThemeLight: BreadcrumbProps['themeOverrides'];
7
- export declare const TabsThemeLight: TabsProps['themeOverrides'];
8
+ export declare const TabsThemeLight: BaseTabsThemeOverrides;
8
9
  export declare const StepsThemeLight: StepsProps['themeOverrides'];
@@ -7,6 +7,11 @@ const l = {
7
7
  textColor: e["color-text-1"],
8
8
  padding: r.paddingBase
9
9
  }, c = {
10
+ peers: {
11
+ Popover: {
12
+ borderRadius: "10px"
13
+ }
14
+ },
10
15
  fontSize: r.fontSizeMedium,
11
16
  iconColor: o["color-primary-6"],
12
17
  iconSize: r.iconSizeBase
@@ -164,7 +169,8 @@ const l = {
164
169
  // prefixMarginLarge: string;
165
170
  // suffixMarginLarge: string;
166
171
  }, m = {
167
- // fontSize: string; /* 面包屑整体字体大小 */
172
+ fontSize: "20px",
173
+ /* 面包屑整体字体大小 */
168
174
  // itemLineHeight: string; /* 面包屑项的行高 */
169
175
  // fontWeightActive: string; /* 当前项的字重(如:bold)*/
170
176
  itemTextColor: o["color-gray-8"],
@@ -277,9 +283,8 @@ const l = {
277
283
  // tabPaddingVerticalSmallLine: string; /* 垂直方向内边距 */
278
284
  tabBorderRadius: r.tabBorderRadius,
279
285
  /* 标签页圆角 */
280
- closeBorderRadius: r.tabBorderRadius
281
- /* 关闭按钮圆角 */
282
- // closeBorderRadius: string; /* 关闭按钮圆角 */
286
+ tabRoundBorderRadius: r.tabRoundBorderRadius
287
+ // closeBorderRadius: commonBase.tabBorderRadius /* 关闭按钮圆角 */
283
288
  }, p = {
284
289
  indicatorColorWait: e["color-text-1"],
285
290
  /* 等待状态指示器背景色 */
@@ -336,7 +341,7 @@ const l = {
336
341
  // stepHeaderFontWeight: string; /* 标题字体粗细 */
337
342
  indicatorSizeSmall: "24px",
338
343
  /* 小尺寸指示器大小 */
339
- indicatorSizeMedium: "24px",
344
+ indicatorSizeMedium: "22px",
340
345
  /* 中尺寸指示器大小 */
341
346
  indicatorIconSizeSmall: "16px",
342
347
  /* 小尺寸指示器图标大小 */
@@ -1,10 +1,10 @@
1
1
  import { commonBase as e } from "../../common.mjs";
2
- const d = {
2
+ const i = {
3
3
  borderRadiusLarge: e.borderRadiusLarge,
4
4
  borderRadiusMedium: e.borderRadiusMedium,
5
5
  borderRadiusSmall: e.borderRadiusSmall,
6
- // heightMedium: commonBase.heightMedium,
7
- // heightSmall: commonBase.heightSmall,
6
+ heightMedium: e.heightMedium,
7
+ heightSmall: "24px",
8
8
  fontSizeLarge: e.fontSizeLarge,
9
9
  fontSizeSmall: e.fontSizeSmall,
10
10
  opacityDisabled: "1",
@@ -13,5 +13,5 @@ const d = {
13
13
  paddingSmall: "0 12px"
14
14
  };
15
15
  export {
16
- d as ButtonThemeCommon
16
+ i as ButtonThemeCommon
17
17
  };
@@ -1,2 +1,2 @@
1
- import { CascaderProps } from 'naive-ui';
2
- export declare const CascaderThemeCommon: CascaderProps['themeOverrides'];
1
+ import { BaseCascaderThemeOverrides } from '../../../../types/themes/components';
2
+ export declare const CascaderThemeCommon: BaseCascaderThemeOverrides;
@@ -1,8 +1,10 @@
1
1
  import { commonBase as o } from "../../common.mjs";
2
- const m = {
2
+ const e = {
3
+ columnWidth: "188px",
4
+ columPadding: "4px",
3
5
  menuBorderRadius: "10px",
4
6
  optionHeight: o.heightMedium
5
7
  };
6
8
  export {
7
- m as CascaderThemeCommon
9
+ e as CascaderThemeCommon
8
10
  };
@@ -1,2 +1,2 @@
1
- import { CascaderProps } from 'naive-ui';
2
- export declare const CascaderThemeDark: CascaderProps['themeOverrides'];
1
+ import { BaseCascaderThemeOverrides } from '../../../../types/themes/components';
2
+ export declare const CascaderThemeDark: BaseCascaderThemeOverrides;
@@ -2,12 +2,16 @@ import o from "../../color/dark.mjs";
2
2
  import r from "../../token/dark.mjs";
3
3
  import { SelectThemeDark as e } from "../select/dark.mjs";
4
4
  import { CascaderThemeCommon as t } from "./common.mjs";
5
- const n = {
5
+ const i = {
6
6
  ...t,
7
+ border: `1px soild ${o["color-gray-4"]}`,
7
8
  optionColorHover: o["color-primary-1"],
8
9
  optionTextColorActive: o["color-primary-6"],
9
10
  optionTextColorDisabled: r["color-text-4"],
10
11
  menuColor: r["bg-color-3"],
12
+ arrowColorActive: o["color-primary-6"],
13
+ tagColor: o["color-gray-3"],
14
+ tagTextColor: o["color-gray-10"],
11
15
  peers: {
12
16
  InternalSelection: {
13
17
  ...e?.peers?.InternalSelection
@@ -15,5 +19,5 @@ const n = {
15
19
  }
16
20
  };
17
21
  export {
18
- n as CascaderThemeDark
22
+ i as CascaderThemeDark
19
23
  };
@@ -1,2 +1,2 @@
1
- import { CascaderProps } from 'naive-ui';
2
- export declare const CascaderThemeLight: CascaderProps['themeOverrides'];
1
+ import { BaseCascaderThemeOverrides } from '../../../../types/themes/components';
2
+ export declare const CascaderThemeLight: BaseCascaderThemeOverrides;
@@ -1,17 +1,21 @@
1
1
  import o from "../../color/light.mjs";
2
- import { SelectThemeLight as e } from "../select/light.mjs";
3
- import { CascaderThemeCommon as r } from "./common.mjs";
4
- const m = {
5
- ...r,
2
+ import { SelectThemeLight as r } from "../select/light.mjs";
3
+ import { CascaderThemeCommon as e } from "./common.mjs";
4
+ const i = {
5
+ ...e,
6
+ border: `1px soild ${o["color-gray-4"]}`,
6
7
  optionColorHover: o["color-primary-1"],
7
8
  optionTextColorActive: o["color-primary-6"],
8
9
  optionTextColorDisabled: o["color-gray-4"],
10
+ arrowColorActive: o["color-primary-6"],
11
+ tagColor: o["color-gray-3"],
12
+ tagTextColor: o["color-gray-10"],
9
13
  peers: {
10
14
  InternalSelection: {
11
- ...e?.peers?.InternalSelection
15
+ ...r?.peers?.InternalSelection
12
16
  }
13
17
  }
14
18
  };
15
19
  export {
16
- m as CascaderThemeLight
20
+ i as CascaderThemeLight
17
21
  };
@@ -5,6 +5,8 @@ const e = {
5
5
  tdColorStriped: o["fill-color-5"],
6
6
  tdTextColor: r["color-gray-10"],
7
7
  thColor: o["bg-color-2"],
8
+ thFontWeight: "400",
9
+ thPaddingMedium: "6px 12px",
8
10
  thTextColor: o["color-text-2"],
9
11
  borderColor: r["color-gray-3"]
10
12
  // borderColor: darkBase['color-gray-4'],
@@ -5,6 +5,8 @@ const e = {
5
5
  tdColorStriped: o["color-gray-1"],
6
6
  tdTextColor: o["color-gray-10"],
7
7
  thColor: r["bg-color-2"],
8
+ thFontWeight: "400",
9
+ thPaddingMedium: "6px 12px",
8
10
  thTextColor: o["color-gray-8"],
9
11
  borderColor: o["color-gray-3"]
10
12
  // borderColor: lightBase['color-gray-4'],
@@ -12,7 +12,7 @@ const d = {
12
12
  colorDisabled: o["fill-color-1"],
13
13
  colorFocus: o["bg-color-2"],
14
14
  groupLabelBorder: `1px solid ${r["color-gray-4"]}`,
15
- groupLabelColor: o["bg-color-3"],
15
+ groupLabelColor: o["fill-color-1"],
16
16
  groupLabelTextColor: o["color-text-1"],
17
17
  suffixTextColor: r["color-gray-6"],
18
18
  iconColor: r["color-gray-6"],
@@ -1,7 +1,7 @@
1
1
  import r from "../../color/dark.mjs";
2
2
  import o from "../../token/dark.mjs";
3
3
  import { commonBase as e } from "../../common.mjs";
4
- const i = {
4
+ const c = {
5
5
  peers: {
6
6
  InternalSelection: {
7
7
  arrowColor: o["color-text-1"],
@@ -23,6 +23,7 @@ const i = {
23
23
  textColorDisabled: o["color-text-4"]
24
24
  },
25
25
  InternalSelectMenu: {
26
+ borderRadius: "10px",
26
27
  color: o["bg-color-9"],
27
28
  optionColorPending: "#0000",
28
29
  optionColorActive: o["fill-color-5"],
@@ -36,5 +37,5 @@ const i = {
36
37
  }
37
38
  };
38
39
  export {
39
- i as SelectThemeDark
40
+ c as SelectThemeDark
40
41
  };
@@ -20,6 +20,7 @@ const i = {
20
20
  textColorDisabled: o["color-gray-4"]
21
21
  },
22
22
  InternalSelectMenu: {
23
+ borderRadius: "10px",
23
24
  optionColorPending: "#0000",
24
25
  optionColorActive: o["color-primary-2"],
25
26
  optionColorActivePending: o["color-primary-2"],
@@ -8,7 +8,8 @@ const l = {
8
8
  handleBorderStyle: `2px solid ${r["color-primary-6"]}`,
9
9
  inputWidth: "60px",
10
10
  rangeInputLineColor: r["color-gray-10"],
11
- extremeValueTextColor: r["color-gray-10"]
11
+ extremeValueTextColor: r["color-gray-10"],
12
+ indicatorBorderRadius: "10px"
12
13
  };
13
14
  export {
14
15
  l as SliderThemeDark
@@ -8,7 +8,8 @@ const l = {
8
8
  handleBorderStyle: `2px solid ${r["color-primary-6"]}`,
9
9
  inputWidth: "60px",
10
10
  rangeInputLineColor: r["color-gray-10"],
11
- extremeValueTextColor: r["color-gray-10"]
11
+ extremeValueTextColor: r["color-gray-10"],
12
+ indicatorBorderRadius: "10px"
12
13
  };
13
14
  export {
14
15
  l as SliderThemeLight
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  export declare const useAnimationHook: () => {
2
- toggleAnimationByClipCircle: (dom: MouseEvent, isDark: boolean, callback: () => void) => Promise<unknown>;
2
+ toggleAnimationByClipCircle: (dom: MouseEvent, isDark: boolean, callback: (e: MouseEvent) => void) => Promise<unknown>;
3
3
  };
@@ -1,34 +1,37 @@
1
- const u = () => ({
2
- toggleAnimationByClipCircle: (a, i, e) => new Promise((o) => {
1
+ import { nextTick as u } from "vue";
2
+ const w = () => ({
3
+ toggleAnimationByClipCircle: (t, e, o) => new Promise((r) => {
3
4
  if (!document.startViewTransition) {
4
- e(), o(!0);
5
+ o(t), r(!0);
5
6
  return;
6
7
  }
7
- document.startViewTransition(() => {
8
- e(), o(!0);
8
+ const { clientX: n, clientY: i } = t, h = Math.hypot(
9
+ Math.max(n, innerWidth - n),
10
+ Math.max(i, innerHeight - i)
11
+ ), a = 100 * n / innerWidth, c = 100 * i / innerHeight, l = Math.hypot(innerWidth, innerHeight) / Math.SQRT2, m = 100 * h / l;
12
+ document.startViewTransition(async () => {
13
+ o(t), r(!0), await u();
9
14
  }).ready.then(() => {
10
- const { clientX: t, clientY: n } = a, s = Math.hypot(
11
- Math.max(t, innerWidth - t),
12
- Math.max(n, innerHeight - n)
13
- ), r = [
14
- `circle(0% at ${t}px ${n}px)`,
15
- `circle(${s}px at ${t}px ${n}px)`
15
+ const s = [
16
+ `circle(0% at ${a}% ${c}%)`,
17
+ `circle(${m}% at ${a}% ${c}%)`
16
18
  ];
17
19
  document.documentElement.animate(
18
20
  {
19
21
  // 如果要切换到暗色主题,我们在过渡的时候从半径 100% 的圆开始,到 0% 的圆结束
20
- clipPath: i ? [...r].reverse() : r
22
+ clipPath: e ? [...s].reverse() : s
21
23
  },
22
24
  {
23
25
  duration: 400,
24
26
  easing: "ease-in",
27
+ fill: "both",
25
28
  // 如果要切换到暗色主题,我们应该裁剪 view-transition-old(root) 的内容
26
- pseudoElement: i ? "::view-transition-old(root)" : "::view-transition-new(root)"
29
+ pseudoElement: e ? "::view-transition-old(root)" : "::view-transition-new(root)"
27
30
  }
28
31
  );
29
32
  });
30
33
  })
31
34
  });
32
35
  export {
33
- u as useAnimationHook
36
+ w as useAnimationHook
34
37
  };