base6-ui 2.0.19 → 2.0.21

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 (89) hide show
  1. package/dist/components/input-number/index.vue.d.ts +1 -0
  2. package/dist/components/select/index.d.ts +2 -1
  3. package/dist/components/select/src/cssVar.d.ts +4 -0
  4. package/dist/components/select/src/interface.d.ts +585 -0
  5. package/dist/components/select/src/select.d.ts +1203 -0
  6. package/dist/config/themes/components/dialog/dark.d.ts +1 -0
  7. package/dist/config/themes/components/dropdown/common.d.ts +2 -0
  8. package/dist/index.css +1 -1
  9. package/dist/index.umd.js +1 -1
  10. package/es/components/global-header/index.vue.mjs +1 -1
  11. package/es/components/input-number/index.vue.d.ts +1 -0
  12. package/es/components/input-number/index.vue.mjs +2 -2
  13. package/es/components/input-number/index.vue2.mjs +1 -1
  14. package/es/components/layout/components/{WrapHeader.vue.mjs → WrapHeader.vue2.mjs} +1 -1
  15. package/es/components/layout/index.vue2.mjs +1 -1
  16. package/es/components/select/index.d.ts +2 -1
  17. package/es/components/select/src/cssVar.d.ts +4 -0
  18. package/es/components/select/src/cssVar.mjs +60 -0
  19. package/es/components/select/src/interface.d.ts +585 -0
  20. package/es/components/select/src/interface.mjs +5 -0
  21. package/es/components/select/src/select.d.ts +1203 -0
  22. package/es/components/select/src/select.mjs +66 -0
  23. package/es/config/themes/components/baseComponent/dark.mjs +0 -6
  24. package/es/config/themes/components/baseComponent/light.mjs +0 -6
  25. package/es/config/themes/components/button/common.mjs +13 -10
  26. package/es/config/themes/components/dataTable/common.mjs +4 -3
  27. package/es/config/themes/components/dataTable/dark.mjs +20 -14
  28. package/es/config/themes/components/dialog/common.mjs +1 -1
  29. package/es/config/themes/components/dialog/dark.d.ts +1 -0
  30. package/es/config/themes/components/dialog/dark.mjs +4 -3
  31. package/es/config/themes/components/dropdown/common.d.ts +2 -0
  32. package/es/config/themes/components/dropdown/common.mjs +6 -0
  33. package/es/config/themes/components/dropdown/dark.mjs +6 -3
  34. package/es/config/themes/components/dropdown/light.mjs +4 -2
  35. package/es/config/themes/components/form/common.mjs +3 -0
  36. package/es/config/themes/components/input/dark.mjs +1 -1
  37. package/es/config/themes/components/input/light.mjs +1 -1
  38. package/es/config/themes/components/select/dark.mjs +3 -6
  39. package/es/config/themes/components/select/light.mjs +1 -4
  40. package/es/config/themes/components/transfer/dark.mjs +10 -6
  41. package/es/config/themes/components/transfer/light.mjs +4 -3
  42. package/es/index.css +1 -1
  43. package/es/index.mjs +60 -58
  44. package/lib/components/global-header/index.vue.js +1 -1
  45. package/lib/components/input-number/index.vue.d.ts +1 -0
  46. package/lib/components/input-number/index.vue.js +1 -1
  47. package/lib/components/input-number/index.vue2.js +1 -1
  48. package/lib/components/layout/components/WrapHeader.vue2.js +1 -0
  49. package/lib/components/layout/index.vue2.js +1 -1
  50. package/lib/components/select/index.d.ts +2 -1
  51. package/lib/components/select/src/cssVar.d.ts +4 -0
  52. package/lib/components/select/src/cssVar.js +1 -0
  53. package/lib/components/select/src/interface.d.ts +585 -0
  54. package/lib/components/select/src/interface.js +1 -0
  55. package/lib/components/select/src/select.d.ts +1203 -0
  56. package/lib/components/select/src/select.js +1 -0
  57. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  58. package/lib/config/themes/components/baseComponent/light.js +1 -1
  59. package/lib/config/themes/components/button/common.js +1 -1
  60. package/lib/config/themes/components/dataTable/common.js +1 -1
  61. package/lib/config/themes/components/dataTable/dark.js +1 -1
  62. package/lib/config/themes/components/dialog/common.js +1 -1
  63. package/lib/config/themes/components/dialog/dark.d.ts +1 -0
  64. package/lib/config/themes/components/dialog/dark.js +1 -1
  65. package/lib/config/themes/components/dropdown/common.d.ts +2 -0
  66. package/lib/config/themes/components/dropdown/common.js +1 -0
  67. package/lib/config/themes/components/dropdown/dark.js +1 -1
  68. package/lib/config/themes/components/dropdown/light.js +1 -1
  69. package/lib/config/themes/components/form/common.js +1 -1
  70. package/lib/config/themes/components/input/dark.js +1 -1
  71. package/lib/config/themes/components/input/light.js +1 -1
  72. package/lib/config/themes/components/select/dark.js +1 -1
  73. package/lib/config/themes/components/select/light.js +1 -1
  74. package/lib/config/themes/components/transfer/dark.js +1 -1
  75. package/lib/config/themes/components/transfer/light.js +1 -1
  76. package/lib/index.css +1 -1
  77. package/lib/index.js +1 -1
  78. package/package.json +1 -1
  79. package/dist/components/cascader/index.vue.d.ts +0 -7
  80. package/dist/components/select/index.vue.d.ts +0 -25
  81. package/es/components/cascader/index.vue.d.ts +0 -7
  82. package/es/components/select/index.vue.d.ts +0 -25
  83. package/es/components/select/index.vue.mjs +0 -8
  84. package/es/components/select/index.vue2.mjs +0 -67
  85. package/lib/components/cascader/index.vue.d.ts +0 -7
  86. package/lib/components/layout/components/WrapHeader.vue.js +0 -1
  87. package/lib/components/select/index.vue.d.ts +0 -25
  88. package/lib/components/select/index.vue.js +0 -1
  89. package/lib/components/select/index.vue2.js +0 -1
@@ -0,0 +1,66 @@
1
+ import { defineComponent as f, createVNode as b, mergeProps as g, computed as t, h as i } from "vue";
2
+ import { NSelect as p, NCheckbox as h, NTag as T } from "naive-ui";
3
+ import { bodenSelectProps as C } from "./interface.mjs";
4
+ import { getSelectCssVar as v } from "./cssVar.mjs";
5
+ import L from "../../../hooks/useNaiveConfigProvideContext.mjs";
6
+ /* empty css */
7
+ const N = "BodenSelect", x = /* @__PURE__ */ f({
8
+ name: N,
9
+ props: C,
10
+ setup(e) {
11
+ const n = L(), l = t(() => {
12
+ const {
13
+ name: r = "light"
14
+ } = n?.mergedThemeRef.value || {};
15
+ return r !== "light";
16
+ }), o = t(() => v(l.value)), d = (r, s) => [i(h, {
17
+ checked: s,
18
+ disabled: r.disabled
19
+ }, {
20
+ default: () => r.label
21
+ })], u = ({
22
+ option: r,
23
+ handleClose: s
24
+ }) => i(T, {
25
+ type: "default",
26
+ closable: !0,
27
+ bordered: !1,
28
+ disabled: e.disabled,
29
+ size: e.size,
30
+ onMousedown: (a) => {
31
+ a.preventDefault();
32
+ },
33
+ onClose: (a) => {
34
+ a.stopPropagation(), s();
35
+ }
36
+ }, {
37
+ default: () => r.label
38
+ }), c = t(() => e.renderLabel ? e.renderLabel : e.multiple ? d : void 0), m = t(() => e.renderTag ? e.renderTag : e.multiple ? u : void 0);
39
+ return {
40
+ cssVarStyle: o,
41
+ renderLabel: c,
42
+ renderTag: m
43
+ };
44
+ },
45
+ render() {
46
+ const {
47
+ $attrs: e,
48
+ $props: n,
49
+ $slots: l,
50
+ renderLabel: o,
51
+ renderTag: d
52
+ } = this;
53
+ return b(p, g(e, n, {
54
+ renderLabel: o,
55
+ renderTag: d,
56
+ class: "boden-select",
57
+ style: this.cssVarStyle,
58
+ "menu-props": {
59
+ class: "boden-select-menu"
60
+ }
61
+ }), l);
62
+ }
63
+ });
64
+ export {
65
+ x as default
66
+ };
@@ -192,14 +192,8 @@ const l = {
192
192
  tabRoundBorderRadius: e.tabRoundBorderRadius
193
193
  // closeBorderRadius: string; /* 关闭按钮圆角 */
194
194
  }, p = {
195
- indicatorColorWait: "transparent",
196
- /* 等待状态指示器背景色 */
197
195
  indicatorColorProcess: r["color-primary-6"],
198
196
  /* 进行状态指示器背景色 */
199
- indicatorColorFinish: "transparent",
200
- /* 完成状态指示器背景色 */
201
- indicatorColorError: "transparent",
202
- /* 错误状态指示器背景色 */
203
197
  indicatorTextColorWait: r["color-gray-6"],
204
198
  /* 等待状态指示器文字颜色 */
205
199
  indicatorTextColorProcess: o["color-text-5"],
@@ -290,14 +290,8 @@ const l = {
290
290
  tabRoundBorderRadius: r.tabRoundBorderRadius
291
291
  // closeBorderRadius: commonBase.tabBorderRadius /* 关闭按钮圆角 */
292
292
  }, p = {
293
- indicatorColorWait: e["color-text-1"],
294
- /* 等待状态指示器背景色 */
295
293
  indicatorColorProcess: o["color-primary-6"],
296
294
  /* 进行状态指示器背景色 */
297
- indicatorColorFinish: e["color-text-1"],
298
- /* 完成状态指示器背景色 */
299
- indicatorColorError: e["color-text-1"],
300
- /* 错误状态指示器背景色 */
301
295
  indicatorTextColorWait: o["color-gray-6"],
302
296
  /* 等待状态指示器文字颜色 */
303
297
  indicatorTextColorProcess: e["color-text-1"],
@@ -1,17 +1,20 @@
1
- import { commonBase as e } from "../../common.mjs";
2
- const i = {
3
- borderRadiusLarge: e.borderRadiusLarge,
4
- borderRadiusMedium: e.borderRadiusMedium,
5
- borderRadiusSmall: e.borderRadiusSmall,
6
- heightMedium: e.heightMedium,
1
+ import { commonBase as d } from "../../common.mjs";
2
+ const a = {
3
+ borderRadiusLarge: d.borderRadiusLarge,
4
+ borderRadiusMedium: d.borderRadiusMedium,
5
+ borderRadiusSmall: d.borderRadiusSmall,
6
+ heightMedium: d.heightMedium,
7
7
  heightSmall: "24px",
8
- fontSizeLarge: e.fontSizeLarge,
9
- fontSizeSmall: e.fontSizeSmall,
8
+ fontSizeLarge: d.fontSizeLarge,
9
+ fontSizeSmall: d.fontSizeSmall,
10
10
  opacityDisabled: "1",
11
11
  paddingLarge: "0 24px",
12
12
  paddingMedium: "0 16px",
13
- paddingSmall: "0 12px"
13
+ paddingSmall: "0 12px",
14
+ paddingRoundLarge: "0 24px",
15
+ paddingRoundMedium: "0 16px",
16
+ paddingRoundSmall: "0 12px"
14
17
  };
15
18
  export {
16
- i as ButtonThemeCommon
19
+ a as ButtonThemeCommon
17
20
  };
@@ -1,5 +1,6 @@
1
- const o = {
2
- tdColorSorting: "#ffff",
1
+ const t = {
2
+ tdColorSorting: "transparent",
3
+ thColorSorting: "transparent",
3
4
  peers: {
4
5
  Scrollbar: {
5
6
  railInsetHorizontalBottom: "auto 2px 0px 2px",
@@ -8,5 +9,5 @@ const o = {
8
9
  }
9
10
  };
10
11
  export {
11
- o as DataTableThemeCommon
12
+ t as DataTableThemeCommon
12
13
  };
@@ -1,19 +1,25 @@
1
1
  import r from "../../color/dark.mjs";
2
2
  import o from "../../token/dark.mjs";
3
3
  import { DataTableThemeCommon as t } from "./common.mjs";
4
- const m = {
5
- ...t,
6
- tdColor: o["bg-color-2"],
7
- tdColorStriped: o["fill-color-5"],
8
- tdTextColor: r["color-gray-10"],
9
- thColor: o["bg-color-2"],
10
- thFontWeight: "400",
11
- thPaddingMedium: "6px 12px",
12
- thTextColor: o["color-text-2"],
13
- borderColor: r["color-gray-3"]
14
- // borderColor: darkBase['color-gray-4'],
15
- // borderRadius: commonBase['borderRadiusMedium']
16
- };
4
+ import { merge as e } from "../../../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
5
+ const p = e(
6
+ {
7
+ tdColor: o["bg-color-2"],
8
+ tdColorStriped: o["fill-color-5"],
9
+ tdTextColor: r["color-gray-10"],
10
+ thColor: o["bg-color-2"],
11
+ thFontWeight: "400",
12
+ thPaddingMedium: "6px 12px",
13
+ thTextColor: o["color-text-2"],
14
+ borderColor: r["color-gray-3"],
15
+ peers: {
16
+ Popover: {
17
+ color: o["bg-color-9"]
18
+ }
19
+ }
20
+ },
21
+ { ...t }
22
+ );
17
23
  export {
18
- m as DataTableThemeDark
24
+ p as DataTableThemeDark
19
25
  };
@@ -2,7 +2,7 @@ const p = {
2
2
  closeMargin: "29px 24px 0 0",
3
3
  contentMargin: "24px 0",
4
4
  padding: "24px 24px 16px",
5
- titleFontSize: "24px",
5
+ titleFontSize: "20px",
6
6
  iconMargin: "0 6px 0 0",
7
7
  iconSize: "24px",
8
8
  borderRadius: "10px"
@@ -6,6 +6,7 @@ export declare const DialogThemeDark: {
6
6
  iconColorInfo: string;
7
7
  iconColorSuccess: string;
8
8
  iconColorWarning: string;
9
+ color: string;
9
10
  closeMargin: string;
10
11
  contentMargin: string;
11
12
  padding: string;
@@ -1,15 +1,16 @@
1
1
  import o from "../../color/dark.mjs";
2
2
  import r from "../../token/dark.mjs";
3
- import { DialogThemeCommon as e } from "./common.mjs";
3
+ import { DialogThemeCommon as l } from "./common.mjs";
4
4
  const i = {
5
- ...e,
5
+ ...l,
6
6
  closeIconColor: r["color-text-1"],
7
7
  titleTextColor: r["color-text-1"],
8
8
  textColor: r["color-text-1"],
9
9
  iconColorError: o["color-red-6"],
10
10
  iconColorInfo: o["color-primary-6"],
11
11
  iconColorSuccess: o["color-green-6"],
12
- iconColorWarning: o["color-origin-6"]
12
+ iconColorWarning: o["color-origin-6"],
13
+ color: r["bg-color-3"]
13
14
  };
14
15
  export {
15
16
  i as DialogThemeDark
@@ -0,0 +1,2 @@
1
+ import { DropdownProps } from 'naive-ui';
2
+ export declare const DropdownThemeCommon: DropdownProps['themeOverrides'];
@@ -0,0 +1,6 @@
1
+ const o = {
2
+ borderRadius: "10px"
3
+ };
4
+ export {
5
+ o as DropdownThemeCommon
6
+ };
@@ -1,8 +1,11 @@
1
1
  import o from "../../token/dark.mjs";
2
- const t = {
2
+ import { DropdownThemeCommon as r } from "./common.mjs";
3
+ const l = {
4
+ ...r,
3
5
  optionColorHover: o["fill-color-5"],
4
- optionTextColor: o["color-text-1"]
6
+ optionTextColor: o["color-text-1"],
7
+ color: o["bg-color-9"]
5
8
  };
6
9
  export {
7
- t as DropdownThemeDark
10
+ l as DropdownThemeDark
8
11
  };
@@ -1,8 +1,10 @@
1
1
  import o from "../../color/light.mjs";
2
- const t = {
2
+ import { DropdownThemeCommon as r } from "./common.mjs";
3
+ const e = {
4
+ ...r,
3
5
  optionColorHover: o["color-primary-2"],
4
6
  optionTextColor: o["color-gray-10"]
5
7
  };
6
8
  export {
7
- t as DropdownThemeLight
9
+ e as DropdownThemeLight
8
10
  };
@@ -1,4 +1,7 @@
1
1
  const e = {
2
+ feedbackHeightSmall: "28px",
3
+ feedbackHeightMedium: "28px",
4
+ feedbackHeightLarge: "28px",
2
5
  feedbackPadding: "2px 0 0 2px",
3
6
  feedbackFontSizeLarge: "12px",
4
7
  feedbackFontSizeMedium: "12px",
@@ -6,7 +6,7 @@ const d = {
6
6
  border: `1px solid ${r["color-gray-4"]}`,
7
7
  borderDisabled: "1px solid #0000",
8
8
  borderError: `1px solid ${r["color-red-6"]}`,
9
- borderFocus: `1.5px solid ${r["color-primary-6"]}`,
9
+ borderFocus: `1px solid ${r["color-primary-6"]}`,
10
10
  borderHover: `1px solid ${r["color-primary-5"]}`,
11
11
  color: o["bg-color-3"],
12
12
  colorDisabled: o["fill-color-1"],
@@ -5,7 +5,7 @@ const a = {
5
5
  border: `1px solid ${o["color-gray-4"]}`,
6
6
  borderDisabled: "1px solid #0000",
7
7
  borderError: `1px solid ${o["color-red-6"]}`,
8
- borderFocus: `1.5px solid ${o["color-primary-6"]}`,
8
+ borderFocus: `1px solid ${o["color-primary-6"]}`,
9
9
  borderHover: `1px solid ${o["color-primary-5"]}`,
10
10
  colorDisabled: o["color-gray-2"],
11
11
  groupLabelBorder: `1px solid ${o["color-gray-4"]}`,
@@ -1,19 +1,16 @@
1
1
  import r from "../../color/dark.mjs";
2
2
  import o from "../../token/dark.mjs";
3
- import { commonBase as e } from "../../common.mjs";
3
+ import { commonBase as l } from "../../common.mjs";
4
4
  const c = {
5
5
  peers: {
6
6
  InternalSelection: {
7
7
  arrowColor: o["color-text-1"],
8
8
  arrowColorDisabled: o["color-text-4"],
9
9
  border: `1px solid ${r["color-gray-4"]}`,
10
- borderActive: `1.5px solid ${r["color-primary-6"]}`,
10
+ borderActive: `1px solid ${r["color-primary-6"]}`,
11
11
  borderHover: `1px solid ${r["color-primary-5"]}`,
12
12
  borderFocus: `1px solid ${r["color-primary-5"]}`,
13
- borderRadius: e.borderRadiusMedium,
14
- boxShadowActive: "none",
15
- boxShadowFocus: "none",
16
- boxShadowHover: "none",
13
+ borderRadius: l.borderRadiusMedium,
17
14
  color: o["bg-color-3"],
18
15
  colorActive: o["bg-color-2"],
19
16
  colorDisabled: o["fill-color-1"],
@@ -6,13 +6,10 @@ const i = {
6
6
  arrowColor: o["color-gray-10"],
7
7
  arrowColorDisabled: o["color-gray-4"],
8
8
  border: `1px solid ${o["color-gray-4"]}`,
9
- borderActive: `1.5px solid ${o["color-primary-6"]}`,
9
+ borderActive: `1px solid ${o["color-primary-6"]}`,
10
10
  borderHover: `1px solid ${o["color-primary-5"]}`,
11
11
  borderFocus: `1px solid ${o["color-primary-5"]}`,
12
12
  borderRadius: r.borderRadiusMedium,
13
- boxShadowActive: "none",
14
- boxShadowFocus: "none",
15
- boxShadowHover: "none",
16
13
  colorDisabled: o["color-gray-2"],
17
14
  placeholderColor: o["color-gray-6"],
18
15
  placeholderColorDisabled: o["color-gray-4"],
@@ -1,9 +1,13 @@
1
- import r from "../../color/dark.mjs";
2
- import { commonBase as o } from "../../common.mjs";
3
- const m = {
4
- borderColor: r["color-gray-4"],
5
- borderRadius: o.borderRadiusMedium
1
+ import o from "../../color/dark.mjs";
2
+ import r from "../../token/dark.mjs";
3
+ import { commonBase as e } from "../../common.mjs";
4
+ const a = {
5
+ borderColor: o["color-gray-3"],
6
+ borderRadius: e.borderRadiusMedium,
7
+ itemColorPending: o["color-primary-1"],
8
+ itemTextColor: r["color-text-1"],
9
+ listColor: r["bg-color-2"]
6
10
  };
7
11
  export {
8
- m as TransferThemeDark
12
+ a as TransferThemeDark
9
13
  };
@@ -1,9 +1,10 @@
1
1
  import r from "../../color/light.mjs";
2
2
  import { commonBase as o } from "../../common.mjs";
3
- const i = {
3
+ const m = {
4
4
  borderColor: r["color-gray-4"],
5
- borderRadius: o.borderRadiusMedium
5
+ borderRadius: o.borderRadiusMedium,
6
+ itemColorPending: r["color-primary-1"]
6
7
  };
7
8
  export {
8
- i as TransferThemeLight
9
+ m as TransferThemeLight
9
10
  };