ep-craft 0.1.2 → 0.1.3

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 (154) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
8
8
  };
9
9
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
10
  readonly size: {
11
- readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
12
- readonly values: readonly ["", "large", "default", "small"];
11
+ readonly type: import("vue").PropType<"" | "large" | "default" | "small" | "mini">;
12
+ readonly values: readonly ["", "large", "default", "small", "mini"];
13
13
  };
14
14
  readonly disabled: {
15
15
  readonly type: BooleanConstructor;
@@ -73,8 +73,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
73
73
  click: (evt: MouseEvent) => void;
74
74
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
75
75
  readonly size: {
76
- readonly type: import("vue").PropType<"" | "large" | "default" | "small">;
77
- readonly values: readonly ["", "large", "default", "small"];
76
+ readonly type: import("vue").PropType<"" | "large" | "default" | "small" | "mini">;
77
+ readonly values: readonly ["", "large", "default", "small", "mini"];
78
78
  };
79
79
  readonly disabled: {
80
80
  readonly type: BooleanConstructor;
@@ -4,40 +4,40 @@ import { useFormSize as no, useFormDisabled as ao } from "element-plus/es/compon
4
4
  import { useFormItem as so } from "element-plus/es/components/form/src/hooks/use-form-item.mjs";
5
5
  import { useGlobalConfig as io } from "element-plus/es/components/config-provider/src/hooks/use-global-config.mjs";
6
6
  import { buttonGroupContextKey as co } from "element-plus/es/components/button/src/constants.mjs";
7
- import { buttonEmits as uo, buttonProps as po } from "./button.js";
8
- import { TinyColor as vo } from "../../node_modules/@ctrl/tinycolor/dist/module/index.js";
9
- const b = "ep", k = "button", So = /* @__PURE__ */ Z({
7
+ import { buttonEmits as uo, buttonProps as vo } from "./button.js";
8
+ import { TinyColor as po } from "../../node_modules/@ctrl/tinycolor/dist/module/index.js";
9
+ const b = "el", k = "button", So = /* @__PURE__ */ Z({
10
10
  name: "EpButton",
11
11
  __name: "EpButton",
12
- props: po,
12
+ props: vo,
13
13
  emits: uo,
14
14
  setup(U, { expose: q, emit: H }) {
15
15
  const w = lo, e = U, J = H, h = j(), L = (o = "") => o ? `${b}-${k}-${o}` : `${b}-${k}`, B = (o) => o ? `${b}-${k}--${o}` : "", i = (o, r = !0) => o && r ? `is-${o}` : "", l = (o) => `--${b}-${k}-${o}`, g = (o) => `--${b}-${o}`, y = (o) => {
16
16
  const r = {};
17
17
  for (const n in o) o[n] && (r[`--${b}-${k}-${n}`] = o[n]);
18
18
  return r;
19
- }, u = G(co, void 0), p = io("button"), { form: S } = so(), I = no(a(() => u == null ? void 0 : u.size)), c = ao(), E = oo(), z = a(
19
+ }, u = G(co, void 0), v = io("button"), { form: S } = so(), I = no(a(() => u == null ? void 0 : u.size)), c = ao(), E = oo(), z = a(
20
20
  () => {
21
21
  var o;
22
- return e.type || (u == null ? void 0 : u.type) || ((o = p.value) == null ? void 0 : o.type) || "";
22
+ return e.type || (u == null ? void 0 : u.type) || ((o = v.value) == null ? void 0 : o.type) || "";
23
23
  }
24
24
  ), M = a(
25
25
  () => {
26
26
  var o;
27
- return e.autoInsertSpace ?? ((o = p.value) == null ? void 0 : o.autoInsertSpace) ?? !1;
27
+ return e.autoInsertSpace ?? ((o = v.value) == null ? void 0 : o.autoInsertSpace) ?? !1;
28
28
  }
29
29
  ), F = a(() => {
30
30
  var o;
31
- return e.plain ?? ((o = p.value) == null ? void 0 : o.plain) ?? !1;
31
+ return e.plain ?? ((o = v.value) == null ? void 0 : o.plain) ?? !1;
32
32
  }), O = a(() => {
33
33
  var o;
34
- return e.round ?? ((o = p.value) == null ? void 0 : o.round) ?? !1;
34
+ return e.round ?? ((o = v.value) == null ? void 0 : o.round) ?? !1;
35
35
  }), V = a(() => {
36
36
  var o;
37
- return e.text ?? ((o = p.value) == null ? void 0 : o.text) ?? !1;
37
+ return e.text ?? ((o = v.value) == null ? void 0 : o.text) ?? !1;
38
38
  }), Q = a(() => {
39
39
  var o;
40
- return e.dashed ?? ((o = p.value) == null ? void 0 : o.dashed) ?? !1;
40
+ return e.dashed ?? ((o = v.value) == null ? void 0 : o.dashed) ?? !1;
41
41
  }), R = a(() => e.tag === "button" ? {
42
42
  ariaDisabled: c.value || e.loading,
43
43
  disabled: c.value || e.loading,
@@ -69,7 +69,7 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
69
69
  if (r) {
70
70
  const n = r.match(/var\((.*?)\)/);
71
71
  n && (r = window.getComputedStyle(window.document.documentElement).getPropertyValue(n[1]));
72
- const t = new vo(r), v = e.dark ? t.tint(20).toString() : s(t, 20);
72
+ const t = new po(r), p = e.dark ? t.tint(20).toString() : s(t, 20);
73
73
  if (F.value)
74
74
  o = y({
75
75
  "bg-color": e.dark ? s(t, 90) : t.tint(90).toString(),
@@ -78,17 +78,17 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
78
78
  "hover-text-color": `var(${g("color-white")})`,
79
79
  "hover-bg-color": r,
80
80
  "hover-border-color": r,
81
- "active-bg-color": v,
81
+ "active-bg-color": p,
82
82
  "active-text-color": `var(${g("color-white")})`,
83
- "active-border-color": v
83
+ "active-border-color": p
84
84
  }), c.value && (o[l("disabled-bg-color")] = e.dark ? s(t, 90) : t.tint(90).toString(), o[l("disabled-text-color")] = e.dark ? s(t, 50) : t.tint(50).toString(), o[l("disabled-border-color")] = e.dark ? s(t, 80) : t.tint(80).toString());
85
85
  else if (e.link || V.value) {
86
86
  const f = e.dark ? s(t, 30) : t.tint(30).toString();
87
87
  if (o = y({
88
88
  "text-color": r,
89
89
  "hover-text-color": f,
90
- "active-text-color": v
91
- }), e.link && (o[l("hover-link-text-color")] = f, o[l("active-color")] = v), c.value) {
90
+ "active-text-color": p
91
+ }), e.link && (o[l("hover-link-text-color")] = f, o[l("active-color")] = p), c.value) {
92
92
  const $ = e.dark ? s(t, 50) : t.tint(50).toString();
93
93
  o[l("disabled-bg-color")] = "transparent", o[l("disabled-text-color")] = $, o[l("disabled-border-color")] = "transparent";
94
94
  }
@@ -101,8 +101,8 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
101
101
  "hover-bg-color": f,
102
102
  "hover-text-color": $,
103
103
  "hover-border-color": f,
104
- "active-bg-color": v,
105
- "active-border-color": v
104
+ "active-bg-color": p,
105
+ "active-border-color": p
106
106
  }), c.value) {
107
107
  const P = e.dark ? s(t, 50) : t.tint(50).toString();
108
108
  o[l("disabled-bg-color")] = P, o[l("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${g("color-white")})`, o[l("disabled-border-color")] = P;
@@ -157,7 +157,7 @@ const b = "ep", k = "button", So = /* @__PURE__ */ Z({
157
157
  })) : A("", !0),
158
158
  o.$slots.default ? (d(), T("span", {
159
159
  key: 2,
160
- class: K({ "ep-button__text--expand": D.value })
160
+ class: K({ "el-button__text--expand": D.value })
161
161
  }, [
162
162
  _(o.$slots, "default")
163
163
  ], 2)) : A("", !0)
@@ -8,8 +8,8 @@ export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
8
8
  export declare const buttonProps: {
9
9
  /** 按钮尺寸 */
10
10
  readonly size: {
11
- readonly type: PropType<"" | "large" | "default" | "small">;
12
- readonly values: readonly ["", "large", "default", "small"];
11
+ readonly type: PropType<"" | "large" | "default" | "small" | "mini">;
12
+ readonly values: readonly ["", "large", "default", "small", "mini"];
13
13
  };
14
14
  /** 是否禁用 */
15
15
  readonly disabled: {
@@ -12,7 +12,7 @@ const o = [
12
12
  /** 按钮尺寸 */
13
13
  size: {
14
14
  type: String,
15
- values: ["", "large", "default", "small"]
15
+ values: ["", "large", "default", "small", "mini"]
16
16
  },
17
17
  /** 是否禁用 */
18
18
  disabled: {
@@ -1,6 +1,7 @@
1
1
  import type { Plugin } from 'vue';
2
2
  import EpButtonComponent from './EpButton.vue';
3
- import './theme/index.scss';
3
+ import '../../../theme-chalk/src/base.scss';
4
+ import '../../../theme-chalk/src/button.scss';
4
5
  export declare const EpButton: typeof EpButtonComponent & Plugin;
5
6
  export default EpButton;
6
7
  export * from './button';
@@ -1,8 +1,9 @@
1
1
  import { withInstall as t } from "../../utils/with-install.js";
2
2
  import o from "./EpButton.vue.js";
3
- /* empty css */
3
+ /* empty css */
4
+ /* empty css */
4
5
  import "@element-plus/icons-vue";
5
- const n = t(o, "ep-button");
6
+ const f = t(o, "ep-button");
6
7
  export {
7
- n as EpButton
8
+ f as EpButton
8
9
  };