rappel-ui 1.0.15 → 1.0.16

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 (104) hide show
  1. package/cjs/_virtual/_rolldown/runtime.js +1 -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/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/cjs/components/colors/src/primary-color.vue.d.ts +4 -1
  6. package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/cjs/components/colors/src/secondary-color.vue.d.ts +7 -1
  8. package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/cjs/components/popconfirm/index.d.ts +15 -3
  11. package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +11 -3
  12. package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/cjs/components/svg-icon/src/svg-icon.vue.d.ts +1 -0
  14. package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/cjs/index.d.ts +31 -5
  16. package/cjs/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js +1 -0
  17. package/cjs/utils/util.d.ts +8 -7
  18. package/cjs/utils/util.js +1 -1
  19. package/es/_virtual/_rolldown/runtime.mjs +2 -2
  20. package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +1 -2
  21. package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +1 -2
  22. package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +1 -1
  23. package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +6 -4
  24. package/es/components/colors/src/primary-color.vue.d.ts +4 -1
  25. package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +30 -21
  26. package/es/components/colors/src/secondary-color.vue.d.ts +7 -1
  27. package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +50 -31
  28. package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +3 -5
  29. package/es/components/index.mjs +1 -1
  30. package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -1
  31. package/es/components/popconfirm/index.d.ts +15 -3
  32. package/es/components/popconfirm/src/popconfirm.vue.d.ts +11 -3
  33. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +17 -7
  34. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +3 -3
  35. package/es/components/svg-icon/src/svg-icon.vue.d.ts +1 -0
  36. package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +1 -2
  37. package/es/components/tabs/src/tabs.mjs +1 -1
  38. package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +3 -3
  39. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +4 -4
  40. package/es/composables/use-time-nodes/index.mjs +1 -1
  41. package/es/index.d.ts +31 -5
  42. package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
  43. package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +2 -2
  44. package/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +5 -7
  45. package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +2 -2
  46. package/es/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs +90 -0
  47. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +3 -5
  48. package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +1 -1
  49. package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +1 -1
  50. package/es/svg-icons/index.mjs +1 -1
  51. package/es/utils/util.d.ts +8 -7
  52. package/es/utils/util.mjs +4 -4
  53. package/package.json +1 -1
  54. package/theme-chalk/base.css +1 -231
  55. package/theme-chalk/index.css +1 -1271
  56. package/theme-chalk/re-button-group.css +1 -68
  57. package/theme-chalk/re-button.css +1 -810
  58. package/theme-chalk/re-colors.css +1 -87
  59. package/theme-chalk/re-filter-panel.css +1 -36
  60. package/theme-chalk/re-popconfirm.css +1 -47
  61. package/theme-chalk/re-popover.css +1 -31
  62. package/theme-chalk/re-svg-icon.css +1 -33
  63. package/theme-chalk/re-tooltip.css +1 -62
  64. package/theme-chalk/root-vars.css +1 -201
  65. package/theme-chalk/src/base.scss +3 -4
  66. package/theme-chalk/src/colors.scss +16 -0
  67. package/theme-chalk/src/css-vars/_colors.scss +7 -7
  68. package/theme-chalk/src/function/index.scss +8 -8
  69. package/umd/index.css +1 -0
  70. package/umd/index.js +9 -9
  71. package/cjs/components/button/style/index.js +0 -1
  72. package/cjs/components/button-group/style/index.js +0 -1
  73. package/cjs/components/colors/style/index.js +0 -1
  74. package/cjs/components/filter-panel/style/index.js +0 -1
  75. package/cjs/components/svg-icon/style/index.js +0 -1
  76. package/cjs/theme-chalk/src/base.css +0 -1
  77. package/cjs/theme-chalk/src/button-group.css +0 -1
  78. package/cjs/theme-chalk/src/button.css +0 -1
  79. package/cjs/theme-chalk/src/colors.css +0 -1
  80. package/cjs/theme-chalk/src/filter-panel.css +0 -1
  81. package/cjs/theme-chalk/src/svg-icon.css +0 -1
  82. package/es/components/button/style/index.mjs +0 -2
  83. package/es/components/button-group/style/index.mjs +0 -2
  84. package/es/components/colors/style/index.mjs +0 -2
  85. package/es/components/filter-panel/style/index.mjs +0 -2
  86. package/es/components/svg-icon/style/index.mjs +0 -2
  87. package/es/theme-chalk/src/base.css +0 -1
  88. package/es/theme-chalk/src/button-group.css +0 -1
  89. package/es/theme-chalk/src/button.css +0 -1
  90. package/es/theme-chalk/src/colors.css +0 -1
  91. package/es/theme-chalk/src/filter-panel.css +0 -1
  92. package/es/theme-chalk/src/svg-icon.css +0 -1
  93. package/theme-chalk/css-vars/_button-group.css +0 -15
  94. package/theme-chalk/css-vars/_button.css +0 -15
  95. package/theme-chalk/css-vars/_colors.css +0 -33
  96. package/theme-chalk/css-vars/_popconfirm.css +0 -15
  97. package/theme-chalk/css-vars/_tooltip.css +0 -15
  98. package/theme-chalk/function/_button.css +0 -15
  99. package/theme-chalk/function/index.css +0 -15
  100. package/theme-chalk/mixins/_base.css +0 -15
  101. package/theme-chalk/mixins/_button.css +0 -18
  102. package/theme-chalk/mixins/_popconfirm.css +0 -18
  103. package/theme-chalk/mixins/_tooltip.css +0 -18
  104. package/theme-chalk/mixins/index.css +0 -18
@@ -3,54 +3,73 @@ import "../../../utils/index.mjs";
3
3
  import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
4
4
  import { useTheme as r } from "../../../composables/use-theme/index.mjs";
5
5
  import "../../../composables/index.mjs";
6
- import "../style/index.mjs";
7
- import { Fragment as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g } from "vue";
6
+ import { require_browser as i } from "../../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs";
7
+ import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, watch as v } from "vue";
8
8
  //#region packages/components/colors/src/secondary-color.vue?vue&type=script&setup=true&lang.ts
9
- var _ = /*@__PURE__*/ s({
9
+ var y = i(), b = ["innerHTML"], x = l({
10
10
  name: "ReSecondaryColor",
11
11
  __name: "secondary-color",
12
- setup(s) {
13
- let { nm: _, ns: v } = n("colors"), { isDark: y } = r(), b = f([]), x = (n) => {
14
- let r = Object.values(t("re-color-success-base"))[0], i = Object.values(t("re-color-warning-base"))[0], a = Object.values(t("re-color-danger-base"))[0], o = Object.values(t("re-color-info-base"))[0];
15
- b.value = [
12
+ props: {
13
+ successCodeHtml: { default: "" },
14
+ warningCodeHtml: { default: "" },
15
+ dangerCodeHtml: { default: "" },
16
+ infoCodeHtml: { default: "" }
17
+ },
18
+ setup(i) {
19
+ let { nm: l, ns: x } = n("colors"), { isDark: S } = r(), C = m([]), w = (n) => {
20
+ let r = Object.values(t("re-color-success-base"))[0], a = Object.values(t("re-color-warning-base"))[0], s = Object.values(t("re-color-danger-base"))[0], c = Object.values(t("re-color-info-base"))[0];
21
+ C.value = [
16
22
  {
17
23
  base: r,
18
24
  text: "Success",
19
- shades: e(r, n)
25
+ shades: e(r, n),
26
+ codeHtml: o(() => i.successCodeHtml)
20
27
  },
21
28
  {
22
- base: i,
23
- text: "Danger/Error ",
24
- shades: e(i, n)
29
+ base: a,
30
+ text: "Warning ",
31
+ shades: e(a, n),
32
+ codeHtml: o(() => i.warningCodeHtml)
25
33
  },
26
34
  {
27
- base: a,
28
- text: "Warning",
29
- shades: e(a, n)
35
+ base: s,
36
+ text: "Danger/Error",
37
+ shades: e(s, n),
38
+ codeHtml: o(() => i.dangerCodeHtml)
30
39
  },
31
40
  {
32
- base: o,
41
+ base: c,
33
42
  text: "Info",
34
- shades: e(o, n)
43
+ shades: e(c, n),
44
+ codeHtml: o(() => i.infoCodeHtml)
35
45
  }
36
46
  ];
37
47
  };
38
- return g(y, (e) => {
39
- x(e);
40
- }), u(() => {
41
- x(y.value);
42
- }), (e, t) => (d(), a("div", { class: c([h(_)("secondary")]) }, [(d(!0), a(i, null, p(b.value, (e) => (d(), a("div", {
48
+ return v(S, (e) => {
49
+ (0, y.nextTick)(() => {
50
+ w(e);
51
+ });
52
+ }), f(() => {
53
+ w(S.value);
54
+ }), (e, t) => (p(), s("div", { class: u([_(l)("secondary")]) }, [(p(!0), s(a, null, h(C.value, (e) => (p(), s("div", {
43
55
  key: e.base,
44
- class: c([h(v)("panel")])
45
- }, [o("div", {
46
- class: c([h(v)("base")]),
47
- style: l({ "background-color": e.base })
48
- }, [o("div", null, m(e.text), 1), o("div", null, m(e.base.toUpperCase()), 1)], 6), o("div", { class: c([h(v)("shades")]) }, [(d(!0), a(i, null, p(e.shades, (e) => (d(), a("div", {
49
- key: e,
50
- class: c([h(v)("shade")]),
51
- style: l({ "background-color": e })
52
- }, null, 6))), 128))], 2)], 2))), 128))], 2));
56
+ class: u([_(x)("panel")])
57
+ }, [
58
+ c("div", {
59
+ class: u([_(x)("base")]),
60
+ style: d({ "background-color": e.base })
61
+ }, [c("div", null, g(e.text), 1), c("div", null, g(e.base.toUpperCase()), 1)], 6),
62
+ c("div", { class: u([_(x)("shades")]) }, [(p(!0), s(a, null, h(e.shades, (e) => (p(), s("div", {
63
+ key: e,
64
+ class: u([_(x)("shade")]),
65
+ style: d({ "background-color": e })
66
+ }, null, 6))), 128))], 2),
67
+ c("div", {
68
+ class: u([_(x)("code")]),
69
+ innerHTML: e.codeHtml
70
+ }, null, 10, b)
71
+ ], 2))), 128))], 2));
53
72
  }
54
73
  });
55
74
  //#endregion
56
- export { _ as default };
75
+ export { x as default };
@@ -3,14 +3,12 @@ import { useNamespace as n } from "../../../composables/use-namespace/index.mjs"
3
3
  import { useElementSize as r, useMutationObserver as i } from "../../../node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
4
4
  import "../../../composables/index.mjs";
5
5
  import { ReButton as a } from "../../button/index.mjs";
6
- import "../style/index.mjs";
7
- import "../../index.mjs";
8
6
  import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, effectScope as m, mergeModels as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, renderSlot as x, unref as S, useModel as C, useTemplateRef as w, watch as T, watchEffect as E, withCtx as D, withModifiers as O } from "vue";
9
7
  //#region packages/components/filter-panel/src/filter-panel.vue?vue&type=script&setup=true&lang.ts
10
- var k = /*@__PURE__*/ p({
8
+ var k = p({
11
9
  name: "ReFilterPanel",
12
10
  __name: "filter-panel",
13
- props: /*@__PURE__*/ h({
11
+ props: h({
14
12
  selector: { default: "> *" },
15
13
  maxHeight: { default: 0 },
16
14
  itemMinw: { default: 240 },
@@ -31,7 +29,7 @@ var k = /*@__PURE__*/ p({
31
29
  },
32
30
  isExpandModifiers: {}
33
31
  }),
34
- emits: /*@__PURE__*/ h(["reset", "search"], ["update:isExpand"]),
32
+ emits: h(["reset", "search"], ["update:isExpand"]),
35
33
  setup(p, { expose: h, emit: k }) {
36
34
  let { n: A, ns: j } = n("filter-panel"), M = w("main"), { height: N } = r(M), P = o(() => p.maxHeight || N.value), F = k, I = w("wrapper"), L = w("inner"), R = C(p, "isExpand"), z = o(() => V.value > P.value), B = () => {
37
35
  R.value = !R.value;
@@ -13,7 +13,7 @@ import { ReTooltip as h } from "./tooltip/index.mjs";
13
13
  import { RePopover as g } from "./popover/index.mjs";
14
14
  import { RePopconfirm as _ } from "./popconfirm/index.mjs";
15
15
  //#region packages/components/index.ts
16
- var v = /* @__PURE__ */ e({
16
+ var v = e({
17
17
  ReButton: () => a,
18
18
  ReButtonGroup: () => o,
19
19
  ReColors: () => f,
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as e, defineComponent as t, mergeProps as n, openBlock as r } from "vue";
2
2
  //#region packages/components/input/src/input.vue?vue&type=script&setup=true&lang.ts
3
- var i = /*@__PURE__*/ t({
3
+ var i = t({
4
4
  name: "ReInput",
5
5
  __name: "input",
6
6
  props: {
@@ -8,6 +8,8 @@ export declare const RePopconfirm: {
8
8
  onConfirm?: ((e: MouseEvent) => any) | undefined;
9
9
  }>, {
10
10
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
11
+ cancel: (e: MouseEvent) => void;
12
+ confirm: (e: MouseEvent) => void;
11
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
14
  cancel: (e: MouseEvent) => any;
13
15
  "update:visible": (value: boolean) => any;
@@ -27,6 +29,8 @@ export declare const RePopconfirm: {
27
29
  onConfirm?: ((e: MouseEvent) => any) | undefined;
28
30
  }>, {
29
31
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
32
+ cancel: (e: MouseEvent) => void;
33
+ confirm: (e: MouseEvent) => void;
30
34
  }, {}, {}, {}, {}>;
31
35
  __isFragment?: never;
32
36
  __isTeleport?: never;
@@ -39,16 +43,21 @@ export declare const RePopconfirm: {
39
43
  onConfirm?: ((e: MouseEvent) => any) | undefined;
40
44
  }>, {
41
45
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
46
+ cancel: (e: MouseEvent) => void;
47
+ confirm: (e: MouseEvent) => void;
42
48
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
49
  cancel: (e: MouseEvent) => any;
44
50
  "update:visible": (value: boolean) => any;
45
51
  confirm: (e: MouseEvent) => any;
46
52
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
47
53
  $slots: {
48
- header?: (props: {}) => any;
54
+ header?: (props: {
55
+ icon: string | import('vue').Component | undefined;
56
+ title: string;
57
+ }) => any;
49
58
  } & {
50
59
  icon?: (props: {
51
- icon: any;
60
+ icon: string | import('vue').Component | undefined;
52
61
  }) => any;
53
62
  } & {
54
63
  title?: (props: {
@@ -77,7 +86,10 @@ export declare const RePopconfirm: {
77
86
  cancelText: string;
78
87
  }) => any;
79
88
  } & {
80
- extra?: (props: {}) => any;
89
+ extra?: (props: {
90
+ cancel: (e: MouseEvent) => void;
91
+ confirm: (e: MouseEvent) => void;
92
+ }) => any;
81
93
  } & {
82
94
  confirm?: (props: {
83
95
  confirm: (e: MouseEvent) => void;
@@ -4,8 +4,11 @@ type __VLS_ModelProps = {
4
4
  'visible'?: boolean;
5
5
  };
6
6
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare var __VLS_15: {}, __VLS_17: {
8
- icon: any;
7
+ declare var __VLS_15: {
8
+ icon: string | import('vue').Component | undefined;
9
+ title: string;
10
+ }, __VLS_17: {
11
+ icon: string | import('vue').Component | undefined;
9
12
  }, __VLS_24: {
10
13
  title: string;
11
14
  }, __VLS_26: {
@@ -24,7 +27,10 @@ declare var __VLS_15: {}, __VLS_17: {
24
27
  cancelSize: "" | "small" | "mini" | "large";
25
28
  cancelType: "" | "primary" | "success" | "warning" | "danger" | "info";
26
29
  cancelText: string;
27
- }, __VLS_40: {}, __VLS_42: {
30
+ }, __VLS_40: {
31
+ cancel: (e: MouseEvent) => void;
32
+ confirm: (e: MouseEvent) => void;
33
+ }, __VLS_42: {
28
34
  confirm: (e: MouseEvent) => void;
29
35
  confirmSize: "" | "small" | "mini" | "large";
30
36
  confirmType: "" | "primary" | "success" | "warning" | "danger" | "info";
@@ -49,6 +55,8 @@ type __VLS_Slots = {} & {
49
55
  };
50
56
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
51
57
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
58
+ cancel: (e: MouseEvent) => void;
59
+ confirm: (e: MouseEvent) => void;
52
60
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
61
  cancel: (e: MouseEvent) => any;
54
62
  "update:visible": (value: boolean) => any;
@@ -4,10 +4,10 @@ import "../../../composables/index.mjs";
4
4
  import { filterNodeTypes as n } from "../../tooltip/src/constants.mjs";
5
5
  import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, mergeModels as p, normalizeClass as m, openBlock as h, renderSlot as g, resolveComponent as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useModel as x, useSlots as S, useTemplateRef as C, withCtx as w } from "vue";
6
6
  //#region packages/components/popconfirm/src/popconfirm.vue?vue&type=script&setup=true&lang.ts
7
- var T = ["innerHTML"], E = /*@__PURE__*/ d({
7
+ var T = ["innerHTML"], E = d({
8
8
  name: "RePopconfirm",
9
9
  __name: "popconfirm",
10
- props: /*@__PURE__*/ p({
10
+ props: p({
11
11
  icon: { default: "help" },
12
12
  showIcon: {
13
13
  type: Boolean,
@@ -115,7 +115,7 @@ var T = ["innerHTML"], E = /*@__PURE__*/ d({
115
115
  },
116
116
  visibleModifiers: {}
117
117
  }),
118
- emits: /*@__PURE__*/ p(["confirm", "cancel"], ["update:visible"]),
118
+ emits: p(["confirm", "cancel"], ["update:visible"]),
119
119
  setup(d, { expose: p, emit: E }) {
120
120
  let { n: D, ns: O } = t("popconfirm"), k = x(d, "visible"), A = E, j = i(() => [D(), d.floatingClass]), M = S(), N = i(() => {
121
121
  var e, t;
@@ -128,7 +128,11 @@ var T = ["innerHTML"], E = /*@__PURE__*/ d({
128
128
  var t;
129
129
  A("confirm", e), (t = F.value) == null || t.delayHide();
130
130
  };
131
- return p({ tooltipRef: F }), (e, t) => {
131
+ return p({
132
+ tooltipRef: F,
133
+ cancel: I,
134
+ confirm: L
135
+ }), (e, t) => {
132
136
  let n = _("re-button"), i = _("re-tooltip");
133
137
  return h(), a(i, {
134
138
  ref_key: "tooltipRef",
@@ -172,7 +176,10 @@ var T = ["innerHTML"], E = /*@__PURE__*/ d({
172
176
  "virtual-ref": d.virtualRef
173
177
  }, {
174
178
  content: w(() => [
175
- g(e.$slots, "header", {}, () => [c("div", { class: m([b(O)("header")]) }, [g(e.$slots, "icon", { icon: P.value }, () => [d.showIcon ? (h(), s(r, { key: 0 }, [typeof P.value == "string" ? (h(), s("i", {
179
+ g(e.$slots, "header", {
180
+ icon: P.value,
181
+ title: d.title
182
+ }, () => [c("div", { class: m([b(O)("header")]) }, [g(e.$slots, "icon", { icon: P.value }, () => [d.showIcon ? (h(), s(r, { key: 0 }, [typeof P.value == "string" ? (h(), s("i", {
176
183
  key: 0,
177
184
  class: m([b(O)("icon"), P.value]),
178
185
  "aria-hidden": "true"
@@ -212,7 +219,10 @@ var T = ["innerHTML"], E = /*@__PURE__*/ d({
212
219
  default: w(() => [l(y(d.cancelText), 1)]),
213
220
  _: 1
214
221
  }, 8, ["size", "type"])]),
215
- g(e.$slots, "extra"),
222
+ g(e.$slots, "extra", {
223
+ cancel: I,
224
+ confirm: L
225
+ }),
216
226
  g(e.$slots, "confirm", {
217
227
  confirm: L,
218
228
  confirmSize: d.confirmSize,
@@ -230,7 +240,7 @@ var T = ["innerHTML"], E = /*@__PURE__*/ d({
230
240
  ]),
231
241
  default: w(() => [(h(), a(v(N.value)))]),
232
242
  _: 3
233
- }, 8, /* @__PURE__ */ "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
243
+ }, 8, "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
234
244
  };
235
245
  }
236
246
  });
@@ -3,10 +3,10 @@ import "../../../composables/index.mjs";
3
3
  import { filterNodeTypes as t } from "../../tooltip/src/constants.mjs";
4
4
  import { computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, defineComponent as o, h as s, mergeModels as c, normalizeClass as l, openBlock as u, renderSlot as d, resolveComponent as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useModel as g, useSlots as _, withCtx as v } from "vue";
5
5
  //#region packages/components/popover/src/popover.vue?vue&type=script&setup=true&lang.ts
6
- var y = ["innerHTML"], b = /*@__PURE__*/ o({
6
+ var y = ["innerHTML"], b = o({
7
7
  name: "RePopover",
8
8
  __name: "popover",
9
- props: /*@__PURE__*/ c({
9
+ props: c({
10
10
  title: { default: "" },
11
11
  visible: { type: Boolean },
12
12
  content: { default: "" },
@@ -161,7 +161,7 @@ var y = ["innerHTML"], b = /*@__PURE__*/ o({
161
161
  }, m(o.content), 3))])]),
162
162
  default: v(() => [(u(), r(p(w.value)))]),
163
163
  _: 3
164
- }, 8, /* @__PURE__ */ "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
164
+ }, 8, "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref".split("."));
165
165
  };
166
166
  }
167
167
  });
@@ -1,4 +1,5 @@
1
1
  import { SvgIconProps } from './types.ts';
2
+ export type { SvgIconProps };
2
3
  declare const __VLS_export: import('vue').DefineComponent<SvgIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SvgIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
4
  declare const _default: typeof __VLS_export;
4
5
  export default _default;
@@ -2,7 +2,6 @@ import { toPx as e } from "../../../utils/util.mjs";
2
2
  import "../../../utils/index.mjs";
3
3
  import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
4
4
  import "../../../composables/index.mjs";
5
- import "../style/index.mjs";
6
5
  import { computed as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, unref as c } from "vue";
7
6
  //#region packages/components/svg-icon/src/svg-icon.vue?vue&type=script&setup=true&lang.ts
8
7
  var l = [
@@ -13,7 +12,7 @@ var l = [
13
12
  "d",
14
13
  "name",
15
14
  "fill"
16
- ], d = /*@__PURE__*/ a({
15
+ ], d = a({
17
16
  name: "ReSvgIcon",
18
17
  __name: "svg-icon",
19
18
  props: {
@@ -6,6 +6,6 @@ function u(e, s) {
6
6
  let u = o("re-button");
7
7
  return i(), t("div", c, [n("div", l, [a(e.$slots, "prev-button", {}, () => [r(u)])])]);
8
8
  }
9
- var d = /*#__PURE__*/ e(s, [["render", u]]);
9
+ var d = e(s, [["render", u]]);
10
10
  //#endregion
11
11
  export { d as default };
@@ -7,9 +7,9 @@ import "../../../composables/index.mjs";
7
7
  import { useEmits as i } from "./use-emit.mjs";
8
8
  import { Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, onUnmounted as _, openBlock as v, ref as y, renderSlot as b, toHandlerKey as x, unref as S, useModel as C, useTemplateRef as w, watch as T, withCtx as E } from "vue";
9
9
  //#region packages/components/tooltip/src/content.vue?vue&type=script&setup=true&lang.ts
10
- var D = ["data-placement"], O = /*@__PURE__*/ f({
10
+ var D = ["data-placement"], O = f({
11
11
  __name: "content",
12
- props: /*@__PURE__*/ p({
12
+ props: p({
13
13
  modelValue: { type: Boolean },
14
14
  style: {
15
15
  type: [
@@ -66,7 +66,7 @@ var D = ["data-placement"], O = /*@__PURE__*/ f({
66
66
  },
67
67
  modelModifiers: {}
68
68
  }),
69
- emits: /*@__PURE__*/ p([
69
+ emits: p([
70
70
  "beforeShow",
71
71
  "show",
72
72
  "beforeHide",
@@ -10,10 +10,10 @@ import { useTooltip as u } from "./use-tooltip.mjs";
10
10
  import { filterNodeTypes as d, staticSideMap as f } from "./constants.mjs";
11
11
  import { Fragment as p, computed as m, createBlock as h, createElementBlock as g, createVNode as _, defineComponent as v, h as y, mergeModels as b, normalizeClass as x, normalizeStyle as ee, onUnmounted as te, openBlock as S, ref as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, unref as D, useModel as O, useSlots as k, useTemplateRef as A, withCtx as j } from "vue";
12
12
  //#region packages/components/tooltip/src/tooltip.vue?vue&type=script&setup=true&lang.ts
13
- var M = ["innerHTML"], N = /*@__PURE__*/ v({
13
+ var M = ["innerHTML"], N = v({
14
14
  name: "ReTooltip",
15
15
  __name: "tooltip",
16
- props: /*@__PURE__*/ b({
16
+ props: b({
17
17
  visible: { type: Boolean },
18
18
  content: { default: "" },
19
19
  isHtml: {
@@ -109,7 +109,7 @@ var M = ["innerHTML"], N = /*@__PURE__*/ v({
109
109
  },
110
110
  visibleModifiers: {}
111
111
  }),
112
- emits: /*@__PURE__*/ b([
112
+ emits: b([
113
113
  "beforeShow",
114
114
  "show",
115
115
  "beforeHide",
@@ -253,7 +253,7 @@ var M = ["innerHTML"], N = /*@__PURE__*/ v({
253
253
  class: x([D(U)("content")])
254
254
  }, E(v.content), 3))])]),
255
255
  _: 3
256
- }, 8, /* @__PURE__ */ "modelValue.placement.show-arrow.width.height.max-width.max-height.floating-class.style.theme.reverse-theme.arrow-style.teleported.append-to.transition.css-duration.css-transition.onBeforeShow.onShow.onBeforeHide.onHide.onBeforeEnter.onEnter.onAfterEnter.onBeforeLeave.onLeave.onAfterLeave".split("."))], 64));
256
+ }, 8, "modelValue.placement.show-arrow.width.height.max-width.max-height.floating-class.style.theme.reverse-theme.arrow-style.teleported.append-to.transition.css-duration.css-transition.onBeforeShow.onShow.onBeforeHide.onHide.onBeforeEnter.onEnter.onAfterEnter.onBeforeLeave.onLeave.onAfterLeave".split("."))], 64));
257
257
  }
258
258
  });
259
259
  //#endregion
@@ -10,7 +10,7 @@ function t(t = "00:00", n = "23:00", r = "02:00", i = "HH:mm") {
10
10
  r || 0
11
11
  ];
12
12
  }, o = (e) => {
13
- let [t, n, r] = a(e), i = /* @__PURE__ */ new Date();
13
+ let [t, n, r] = a(e), i = new Date();
14
14
  return new Date(i.getFullYear(), i.getMonth() + 1, i.getDate(), t, n, r);
15
15
  }, s = (t) => e(t, i), c = (e) => {
16
16
  let [t, n, i] = a(r);
package/es/index.d.ts CHANGED
@@ -1286,8 +1286,22 @@ declare const _default: {
1286
1286
  };
1287
1287
  });
1288
1288
  ReColors: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1289
- RePrimaryColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1290
- ReSecondaryColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1289
+ RePrimaryColor: import('vue').DefineComponent<{
1290
+ codeHtml?: string;
1291
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
1292
+ codeHtml?: string;
1293
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1294
+ ReSecondaryColor: import('vue').DefineComponent<{
1295
+ successCodeHtml?: string;
1296
+ warningCodeHtml?: string;
1297
+ dangerCodeHtml?: string;
1298
+ infoCodeHtml?: string;
1299
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
1300
+ successCodeHtml?: string;
1301
+ warningCodeHtml?: string;
1302
+ dangerCodeHtml?: string;
1303
+ infoCodeHtml?: string;
1304
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1291
1305
  ReNeutralColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1292
1306
  ReFilterPanel: {
1293
1307
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<components.FilterPanelProps & {
@@ -1516,6 +1530,8 @@ declare const _default: {
1516
1530
  onConfirm?: ((e: MouseEvent) => any) | undefined;
1517
1531
  }>, {
1518
1532
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
1533
+ cancel: (e: MouseEvent) => void;
1534
+ confirm: (e: MouseEvent) => void;
1519
1535
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1520
1536
  cancel: (e: MouseEvent) => any;
1521
1537
  "update:visible": (value: boolean) => any;
@@ -1535,6 +1551,8 @@ declare const _default: {
1535
1551
  onConfirm?: ((e: MouseEvent) => any) | undefined;
1536
1552
  }>, {
1537
1553
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
1554
+ cancel: (e: MouseEvent) => void;
1555
+ confirm: (e: MouseEvent) => void;
1538
1556
  }, {}, {}, {}, {}>;
1539
1557
  __isFragment?: never;
1540
1558
  __isTeleport?: never;
@@ -1547,16 +1565,21 @@ declare const _default: {
1547
1565
  onConfirm?: ((e: MouseEvent) => any) | undefined;
1548
1566
  }>, {
1549
1567
  tooltipRef: Readonly<import('vue').ShallowRef<any, any>>;
1568
+ cancel: (e: MouseEvent) => void;
1569
+ confirm: (e: MouseEvent) => void;
1550
1570
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1551
1571
  cancel: (e: MouseEvent) => any;
1552
1572
  "update:visible": (value: boolean) => any;
1553
1573
  confirm: (e: MouseEvent) => any;
1554
1574
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1555
1575
  $slots: {
1556
- header?: (props: {}) => any;
1576
+ header?: (props: {
1577
+ icon: string | import('vue').Component | undefined;
1578
+ title: string;
1579
+ }) => any;
1557
1580
  } & {
1558
1581
  icon?: (props: {
1559
- icon: any;
1582
+ icon: string | import('vue').Component | undefined;
1560
1583
  }) => any;
1561
1584
  } & {
1562
1585
  title?: (props: {
@@ -1585,7 +1608,10 @@ declare const _default: {
1585
1608
  cancelText: string;
1586
1609
  }) => any;
1587
1610
  } & {
1588
- extra?: (props: {}) => any;
1611
+ extra?: (props: {
1612
+ cancel: (e: MouseEvent) => void;
1613
+ confirm: (e: MouseEvent) => void;
1614
+ }) => any;
1589
1615
  } & {
1590
1616
  confirm?: (props: {
1591
1617
  confirm: (e: MouseEvent) => void;
@@ -235,7 +235,7 @@ var C = function(e) {
235
235
  return a.reference.x !== w.reference.x || a.reference.y !== w.reference.y || a.reference.width !== w.reference.width || a.reference.height !== w.reference.height ? { reset: { rects: w } } : {};
236
236
  }
237
237
  };
238
- }, w = /*#__PURE__*/ new Set(["left", "top"]);
238
+ }, w = new Set(["left", "top"]);
239
239
  async function T(e, r) {
240
240
  let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = u(i), l = n(i), f = d(i) === "y", p = w.has(c) ? -1 : 1, m = s && f ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
241
241
  mainAxis: h,
@@ -22,7 +22,7 @@ function A(t) {
22
22
  y: l
23
23
  };
24
24
  }
25
- var j = /*#__PURE__*/ e(0);
25
+ var j = e(0);
26
26
  function M(e) {
27
27
  let t = y(e);
28
28
  return !D() || !t.visualViewport ? j : {
@@ -308,7 +308,7 @@ function ne(e, t, n, r) {
308
308
  };
309
309
  }
310
310
  var re = u, ie = c, ae = o, oe = l, se = (e, t, n) => {
311
- let r = /* @__PURE__ */ new Map(), i = n == null ? {} : n, a = {
311
+ let r = new Map(), i = n == null ? {} : n, a = {
312
312
  ...Q,
313
313
  ...i.platform,
314
314
  _c: r
@@ -103,13 +103,12 @@ function L() {
103
103
  e.value = !0;
104
104
  }, t), e;
105
105
  }
106
- /* @__NO_SIDE_EFFECTS__ */
107
106
  function R(e) {
108
107
  let t = L();
109
108
  return x(() => (t.value, !!e()));
110
109
  }
111
110
  function z(e, t, n = {}) {
112
- let { window: r = M, ...i } = n, a, o = /* @__PURE__ */ R(() => r && "MutationObserver" in r), s = () => {
111
+ let { window: r = M, ...i } = n, a, o = R(() => r && "MutationObserver" in r), s = () => {
113
112
  a && (a.disconnect(), a = void 0);
114
113
  }, c = A(x(() => {
115
114
  let t = f(O(e)).map(N).filter(l);
@@ -151,13 +150,12 @@ function B(e, t, n = {}) {
151
150
  return h(u), u;
152
151
  }
153
152
  var ee = Symbol("vueuse-ssr-width");
154
- /* @__NO_SIDE_EFFECTS__ */
155
153
  function V() {
156
154
  let e = C() ? i(ee, null) : null;
157
155
  return typeof e == "number" ? e : void 0;
158
156
  }
159
157
  function H(e, t = {}) {
160
- let { window: n = M, ssrWidth: r = /* @__PURE__ */ V() } = t, i = /* @__PURE__ */ R(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = D(typeof r == "number"), o = D(), s = D(!1);
158
+ let { window: n = M, ssrWidth: r = V() } = t, i = R(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = D(typeof r == "number"), o = D(), s = D(!1);
161
159
  return j(() => {
162
160
  if (a.value) {
163
161
  a.value = !i.value;
@@ -173,7 +171,7 @@ function H(e, t = {}) {
173
171
  s.value = e.matches;
174
172
  }, { passive: !0 }), x(() => s.value);
175
173
  }
176
- var U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = "__vueuse_ssr_handlers__", G = /* #__PURE__ */ K();
174
+ var U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = "__vueuse_ssr_handlers__", G = K();
177
175
  function K() {
178
176
  return W in U || (U[W] = U[W] || {}), U[W];
179
177
  }
@@ -317,7 +315,7 @@ function Q(e = {}) {
317
315
  })), _ = x(() => g.value === "auto" ? h.value : g.value), v = q("updateHTMLAttrs", (e, t, n) => {
318
316
  let r = typeof e == "string" ? i == null ? void 0 : i.document.querySelector(e) : N(e);
319
317
  if (!r) return;
320
- let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = null;
318
+ let a = new Set(), o = new Set(), s = null;
321
319
  if (t === "class") {
322
320
  let e = n.split(/\s/g);
323
321
  Object.values(d).flatMap((e) => (e || "").split(/\s/g)).filter(Boolean).forEach((t) => {
@@ -382,7 +380,7 @@ function re(e = {}) {
382
380
  });
383
381
  }
384
382
  function $(e, t, n = {}) {
385
- let { window: r = M, ...i } = n, a, o = /* @__PURE__ */ R(() => r && "ResizeObserver" in r), s = () => {
383
+ let { window: r = M, ...i } = n, a, o = R(() => r && "ResizeObserver" in r), s = () => {
386
384
  a && (a.disconnect(), a = void 0);
387
385
  }, c = A(x(() => {
388
386
  let t = O(e);
@@ -3,14 +3,14 @@ import { customRef as e, getCurrentInstance as t, getCurrentScope as n, hasInjec
3
3
  function g(e, t) {
4
4
  return n() ? (c(e, t), !0) : !1;
5
5
  }
6
- var _ = /* @__PURE__ */ new WeakMap(), v = (...e) => {
6
+ var _ = new WeakMap(), v = (...e) => {
7
7
  var a;
8
8
  let o = e[0], s = (a = t()) == null ? void 0 : a.proxy, c = s == null ? n() : s;
9
9
  if (c == null && !r()) throw Error("injectLocal must be called in setup");
10
10
  return c && _.has(c) && o in _.get(c) ? _.get(c)[o] : i(...e);
11
11
  }, y = typeof window < "u" && typeof document < "u";
12
12
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
13
- var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = /* #__PURE__ */ T();
13
+ var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = T();
14
14
  function T() {
15
15
  var e, t, n;
16
16
  return y && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test((n = window) == null ? void 0 : n.navigator.userAgent));