@aplus-frontend/ui 0.5.12 → 0.5.13

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 (55) hide show
  1. package/es/index.mjs +16 -12
  2. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +35 -32
  3. package/es/src/ap-descriptions/formatter/index.mjs +31 -31
  4. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
  5. package/es/src/business/ap-ladder/index.d.ts +6 -6
  6. package/es/src/config-provider/config-provider.d.ts +11 -0
  7. package/es/src/config-provider/css-var.d.ts +11 -0
  8. package/es/src/config-provider/css-var.mjs +35 -13
  9. package/es/src/config-provider/index.d.ts +55 -0
  10. package/es/src/index.d.ts +1 -0
  11. package/es/src/index.mjs +258 -253
  12. package/es/src/text/context.d.ts +10 -0
  13. package/es/src/text/context.mjs +17 -0
  14. package/es/src/text/group.vue.d.ts +28 -0
  15. package/es/src/text/group.vue.mjs +37 -0
  16. package/es/src/text/group.vue2.mjs +4 -0
  17. package/es/src/text/index.d.ts +4 -0
  18. package/es/src/text/index.mjs +3 -0
  19. package/es/src/text/index.vue.d.ts +34 -0
  20. package/es/src/text/index.vue.mjs +118 -0
  21. package/es/src/text/index.vue2.mjs +4 -0
  22. package/es/src/text/interface.d.ts +47 -0
  23. package/es/src/text/interface.mjs +1 -0
  24. package/lib/index.js +1 -1
  25. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  26. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  27. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
  28. package/lib/src/business/ap-ladder/index.d.ts +6 -6
  29. package/lib/src/config-provider/config-provider.d.ts +11 -0
  30. package/lib/src/config-provider/css-var.d.ts +11 -0
  31. package/lib/src/config-provider/css-var.js +1 -1
  32. package/lib/src/config-provider/index.d.ts +55 -0
  33. package/lib/src/index.d.ts +1 -0
  34. package/lib/src/index.js +1 -1
  35. package/lib/src/text/context.d.ts +10 -0
  36. package/lib/src/text/context.js +1 -0
  37. package/lib/src/text/group.vue.d.ts +28 -0
  38. package/lib/src/text/group.vue.js +1 -0
  39. package/lib/src/text/group.vue2.js +1 -0
  40. package/lib/src/text/index.d.ts +4 -0
  41. package/lib/src/text/index.js +1 -0
  42. package/lib/src/text/index.vue.d.ts +34 -0
  43. package/lib/src/text/index.vue.js +1 -0
  44. package/lib/src/text/index.vue2.js +1 -0
  45. package/lib/src/text/interface.d.ts +47 -0
  46. package/lib/src/text/interface.js +1 -0
  47. package/package.json +1 -1
  48. package/theme/ap-descriptions/ap-descriptions.css +3 -0
  49. package/theme/ap-descriptions/ap-descriptions.less +4 -0
  50. package/theme/index.css +61 -0
  51. package/theme/index.less +2 -0
  52. package/theme/text/group.css +14 -0
  53. package/theme/text/group.less +19 -0
  54. package/theme/text/index.css +44 -0
  55. package/theme/text/index.less +49 -0
package/es/index.mjs CHANGED
@@ -117,12 +117,14 @@ import { default as Ut } from "./src/resize-observer/index.vue.mjs";
117
117
  import { default as Vt } from "./src/ap-grid/index.vue.mjs";
118
118
  import { default as _t } from "./src/ap-grid/editable/index.vue.mjs";
119
119
  import { default as $t } from "./src/ap-grid/editable/form-item.vue.mjs";
120
- import { useMessage as qt } from "./src/hooks/useMessage.mjs";
121
- import { useControllableValue as Qt } from "./src/hooks/useControllableValue.mjs";
122
- import { useManualRef as Yt } from "./src/hooks/useManualRef.mjs";
123
- import { useThrottleRef as ep } from "./src/hooks/useThrottleRef.mjs";
124
- import { useFullScreen as rp } from "./src/hooks/useFullScreen.mjs";
125
- import { useResize as pp } from "./src/hooks/useResize.mjs";
120
+ import { default as qt } from "./src/text/index.vue.mjs";
121
+ import { default as Qt } from "./src/text/group.vue.mjs";
122
+ import { useMessage as Yt } from "./src/hooks/useMessage.mjs";
123
+ import { useControllableValue as ep } from "./src/hooks/useControllableValue.mjs";
124
+ import { useManualRef as rp } from "./src/hooks/useManualRef.mjs";
125
+ import { useThrottleRef as pp } from "./src/hooks/useThrottleRef.mjs";
126
+ import { useFullScreen as fp } from "./src/hooks/useFullScreen.mjs";
127
+ import { useResize as lp } from "./src/hooks/useResize.mjs";
126
128
  const a = {
127
129
  install: (r) => {
128
130
  for (const t in o) {
@@ -213,6 +215,8 @@ export {
213
215
  Zo as ApTableModal,
214
216
  So as ApTag,
215
217
  go as ApTagGroup,
218
+ qt as ApText,
219
+ Qt as ApTextGroup,
216
220
  zr as ApTitle,
217
221
  Xo as ApTransformDataHelper,
218
222
  Ro as ApUpload,
@@ -261,20 +265,20 @@ export {
261
265
  l as pathMap,
262
266
  F as provideGlobalConfig,
263
267
  g as translate,
264
- Qt as useControllableValue,
265
- rp as useFullScreen,
268
+ ep as useControllableValue,
269
+ fp as useFullScreen,
266
270
  E as useGetDerivedNamespace,
267
271
  I as useGlobalConfig,
268
272
  D as useLocale,
269
- Yt as useManualRef,
270
- qt as useMessage,
273
+ rp as useManualRef,
274
+ Yt as useMessage,
271
275
  R as useNamespace,
272
276
  jr as usePageListApGrid,
273
277
  Wr as usePageListApTable,
274
- pp as useResize,
278
+ lp as useResize,
275
279
  or as useTableModal,
276
280
  It as useTablePaging,
277
281
  Hr as useTableRefresh,
278
282
  tr as useTableSelectModal,
279
- ep as useThrottleRef
283
+ pp as useThrottleRef
280
284
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as T, createElementBlock as i, openBlock as l, normalizeStyle as _, normalizeClass as d, unref as o, createVNode as w, mergeProps as E, withCtx as b, Fragment as p, renderList as M, createBlock as c, createCommentVNode as j, h as u, renderSlot as x, resolveDynamicComponent as z } from "vue";
2
- import { Descriptions as A, DescriptionsItem as m } from "@aplus-frontend/antdv";
3
- import { mixinsAttachmentExtraProps as F, transformValue as G, isEmptyWithType as L } from "./helper.mjs";
1
+ import { defineComponent as B, createElementBlock as i, openBlock as r, normalizeStyle as E, normalizeClass as d, unref as l, createVNode as _, mergeProps as w, withCtx as b, Fragment as p, renderList as M, createBlock as c, createCommentVNode as j, h as u, renderSlot as z, resolveDynamicComponent as A } from "vue";
2
+ import { Descriptions as F, DescriptionsItem as m } from "@aplus-frontend/antdv";
3
+ import { mixinsAttachmentExtraProps as G, transformValue as L, isEmptyWithType as R } from "./helper.mjs";
4
4
  import { get as S } from "lodash-unified";
5
5
  import "./help-message/index.vue.mjs";
6
6
  import "../config-provider/index.mjs";
7
7
  import { useGlobalConfig as f } from "../config-provider/hooks/use-global-config.mjs";
8
- import { useNamespace as R } from "../config-provider/hooks/use-namespace.mjs";
9
- import $ from "./help-message/index.vue2.mjs";
10
- const I = { key: 0 }, Y = /* @__PURE__ */ T({
8
+ import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
9
+ import I from "./help-message/index.vue2.mjs";
10
+ const O = { key: 0 }, Z = /* @__PURE__ */ B({
11
11
  __name: "ap-descriptions",
12
12
  props: {
13
13
  descriptionsProps: {},
@@ -17,25 +17,28 @@ const I = { key: 0 }, Y = /* @__PURE__ */ T({
17
17
  className: {}
18
18
  },
19
19
  setup(g) {
20
- const n = g, v = f("uiMode", "admin"), C = f("apDescriptions"), k = f("downloadCenterTriggerConfig"), { m: P, b: N, be: D } = R("ap-descriptions"), V = (e = {}) => {
21
- var r;
22
- let s = "";
23
- return ((r = n.descriptionsProps) == null ? void 0 : r.layout) === "vertical" && (s = "start"), {
24
- justifyContent: s,
20
+ const n = g, v = f("uiMode", "admin"), C = f("apDescriptions"), k = f("downloadCenterTriggerConfig"), { m: P, b: N, be: D } = $("ap-descriptions"), T = (e = {}) => {
21
+ var s;
22
+ let o = "";
23
+ return ((s = n.descriptionsProps) == null ? void 0 : s.layout) === "vertical" && (o = "start"), {
24
+ justifyContent: o,
25
25
  ...e
26
26
  };
27
27
  }, y = (e) => {
28
28
  var t, a;
29
- const s = S(n.dataSource, e.field);
29
+ const o = S(n.dataSource, e.field);
30
30
  if (e.customRender)
31
31
  return e.customRender(n.dataSource);
32
- e.valueType === "attachment" && (e.extraProps = F(e.extraProps, {
32
+ e.valueType === "attachment" && (e.extraProps = G(e.extraProps, {
33
33
  fromConfig: (t = C.value) == null ? void 0 : t.downloadFile,
34
34
  fromGlobal: (a = k.value) == null ? void 0 : a.trigger
35
35
  }));
36
- const r = e.format ? e.format(s, n.dataSource || {}) : s;
37
- return G({ value: r, record: n.dataSource }, e);
38
- }, B = (e) => {
36
+ const s = e.format ? e.format(o, n.dataSource || {}) : o;
37
+ return L({ value: s, record: n.dataSource }, e);
38
+ }, V = (e) => {
39
+ var o;
40
+ return e.valueType === "text" && !!((o = e.extraProps) != null && o.ellipsis);
41
+ }, x = (e) => {
39
42
  if (e.visible != null) {
40
43
  if (typeof e.visible == "boolean")
41
44
  return e.visible;
@@ -47,29 +50,29 @@ const I = { key: 0 }, Y = /* @__PURE__ */ T({
47
50
  }
48
51
  return !0;
49
52
  };
50
- return (e, s) => {
51
- var r;
52
- return l(), i("div", {
53
- class: d([e.className, o(N)(), o(P)(o(v))]),
54
- style: _(e.style)
53
+ return (e, o) => {
54
+ var s;
55
+ return r(), i("div", {
56
+ class: d([e.className, l(N)(), l(P)(l(v))]),
57
+ style: E(e.style)
55
58
  }, [
56
- w(o(A), E(e.descriptionsProps, {
57
- "label-style": V({ ...((r = e.descriptionsProps) == null ? void 0 : r.labelStyle) || {} })
59
+ _(l(F), w(e.descriptionsProps, {
60
+ "label-style": T({ ...((s = e.descriptionsProps) == null ? void 0 : s.labelStyle) || {} })
58
61
  }), {
59
62
  default: b(() => [
60
- (l(!0), i(p, null, M(e.schemas, (t, a) => (l(), i(p, {
63
+ (r(!0), i(p, null, M(e.schemas, (t, a) => (r(), i(p, {
61
64
  key: t.field || "empty" + a
62
65
  }, [
63
- t.valueType === "empty" ? (l(), c(o(m), {
66
+ t.valueType === "empty" ? (r(), c(l(m), {
64
67
  key: 0,
65
68
  "content-style": t.contentStyle,
66
69
  "label-style": t.labelStyle,
67
70
  span: t.span
68
- }, null, 8, ["content-style", "label-style", "span"])) : B(t) ? (l(), c(o(m), {
71
+ }, null, 8, ["content-style", "label-style", "span"])) : x(t) ? (r(), c(l(m), {
69
72
  key: 1,
70
- class: d(o(D)("item", "ellipsis")),
73
+ class: d(V(t) ? l(D)("item", "ellipsis") : ""),
71
74
  label: t.label ? u(p, [
72
- u($, {
75
+ u(I, {
73
76
  helpMessage: t.helpMessage,
74
77
  label: t.label
75
78
  })
@@ -79,13 +82,13 @@ const I = { key: 0 }, Y = /* @__PURE__ */ T({
79
82
  "label-style": t.labelStyle
80
83
  }, {
81
84
  default: b(() => [
82
- o(L)(o(S)(e.dataSource, t.field), t) ? (l(), i("span", I, "--")) : (l(), i(p, { key: 1 }, [
83
- t.contentSlotName ? x(e.$slots, t.contentSlotName, {
85
+ l(R)(l(S)(e.dataSource, t.field), t) ? (r(), i("span", O, "--")) : (r(), i(p, { key: 1 }, [
86
+ t.contentSlotName ? z(e.$slots, t.contentSlotName, {
84
87
  key: 0,
85
88
  index: a,
86
89
  item: y(t),
87
90
  record: e.dataSource
88
- }) : (l(), c(z(
91
+ }) : (r(), c(A(
89
92
  u(p, [
90
93
  t.prefix,
91
94
  y(t),
@@ -105,5 +108,5 @@ const I = { key: 0 }, Y = /* @__PURE__ */ T({
105
108
  }
106
109
  });
107
110
  export {
108
- Y as default
111
+ Z as default
109
112
  };
@@ -1,13 +1,13 @@
1
- import { createVNode as p } from "vue";
1
+ import { createVNode as f } from "vue";
2
2
  import { getTimeFormatToZone as g } from "@aplus-frontend/utils";
3
- import { isBoolean as h, merge as f, get as l, debounce as Y } from "lodash-unified";
3
+ import { isBoolean as h, merge as p, get as l, debounce as Y } from "lodash-unified";
4
4
  import { formatString as A } from "./utils.mjs";
5
5
  import { toDecimalMark as b } from "@fruits-chain/utils";
6
6
  import { TypographyParagraph as M } from "@aplus-frontend/antdv";
7
7
  function S({
8
8
  value: t
9
9
  }, n) {
10
- if (!n)
10
+ if (!(n != null && n.ellipsis))
11
11
  return t;
12
12
  const r = {
13
13
  ...n,
@@ -20,7 +20,7 @@ function S({
20
20
  tooltip: t
21
21
  } : !1
22
22
  };
23
- return p(M, r, null);
23
+ return f(M, r, null);
24
24
  }
25
25
  function D({
26
26
  value: t
@@ -28,7 +28,7 @@ function D({
28
28
  var o;
29
29
  const {
30
30
  joinSymbol: r
31
- } = f({
31
+ } = p({
32
32
  joinSymbol: " "
33
33
  }, n);
34
34
  return (o = t == null ? void 0 : t.join) == null ? void 0 : o.call(t, r);
@@ -39,7 +39,7 @@ function u({
39
39
  const {
40
40
  zoneAlias: r,
41
41
  format: o
42
- } = f({
42
+ } = p({
43
43
  zoneAlias: "LA",
44
44
  format: "YYYY-MM-DD HH:mm:ss"
45
45
  }, n);
@@ -51,13 +51,13 @@ function y({
51
51
  }, r) {
52
52
  const {
53
53
  fieldList: o,
54
- templateString: e = "{0}",
55
- formatter: i
56
- } = r, s = (o == null ? void 0 : o.map((m, c) => {
57
- const a = l(n, m);
58
- return i ? i(a, c) : a;
54
+ templateString: i = "{0}",
55
+ formatter: e
56
+ } = r, s = (o == null ? void 0 : o.map((m, a) => {
57
+ const c = l(n, m);
58
+ return e ? e(c, a) : c;
59
59
  })) || [];
60
- return s.length === 0 && s.push(t), A(e, s);
60
+ return s.length === 0 && s.push(t), A(i, s);
61
61
  }
62
62
  function j({
63
63
  value: t,
@@ -65,22 +65,22 @@ function j({
65
65
  }, r) {
66
66
  const {
67
67
  fieldList: o,
68
- format: e = "YYYY-MM-DD HH:mm:ss",
69
- joinSymbol: i = "~",
68
+ format: i = "YYYY-MM-DD HH:mm:ss",
69
+ joinSymbol: e = "~",
70
70
  zoneAlias: s = "LA"
71
- } = r, m = Array.isArray(e) ? e : [e, e];
71
+ } = r, m = Array.isArray(i) ? i : [i, i];
72
72
  return y({
73
73
  value: t,
74
74
  record: n
75
75
  }, {
76
76
  fieldList: o,
77
- templateString: `{0} ${i} {1}`,
78
- formatter(c, a) {
77
+ templateString: `{0} ${e} {1}`,
78
+ formatter(a, c) {
79
79
  return u({
80
- value: c,
80
+ value: a,
81
81
  record: n
82
82
  }, {
83
- format: m[a],
83
+ format: m[c],
84
84
  zoneAlias: s
85
85
  });
86
86
  }
@@ -92,16 +92,16 @@ function k({
92
92
  const {
93
93
  urlPath: r = "url",
94
94
  namePath: o = "name",
95
- style: e,
96
- downloadFile: i,
95
+ style: i,
96
+ downloadFile: e,
97
97
  className: s
98
- } = n, m = l(t, o), c = l(t, r), a = Y(() => {
99
- i == null || i(c, m);
98
+ } = n, m = l(t, o), a = l(t, r), c = Y(() => {
99
+ e == null || e(a, m);
100
100
  }, 500);
101
- return p("span", {
102
- style: e,
101
+ return f("span", {
102
+ style: i,
103
103
  class: [s, "ap-descriptions-item-content__link "],
104
- onClick: a
104
+ onClick: c
105
105
  }, [m]);
106
106
  }
107
107
  function H({
@@ -111,16 +111,16 @@ function H({
111
111
  style: r = {},
112
112
  precision: o
113
113
  } = n;
114
- let e = "";
114
+ let i = "";
115
115
  try {
116
- e = b(t, o);
116
+ i = b(t, o);
117
117
  } catch {
118
- e = t;
118
+ i = t;
119
119
  }
120
- return p("span", {
120
+ return f("span", {
121
121
  style: r,
122
122
  class: "ap-descriptions-item-content__number"
123
- }, [e]);
123
+ }, [i]);
124
124
  }
125
125
  const N = {
126
126
  text: S,
@@ -19,6 +19,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApLadderProps> & Readonly<{}>, {
20
20
  layout: "vertical" | "horizontal";
21
21
  tooltip: boolean;
22
+ major: string;
23
+ minor: string;
22
24
  labelAlign: "left" | "right";
23
25
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
24
26
  title: VueTypeValidableDef<any>;
@@ -95,8 +97,6 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
95
97
  default: boolean;
96
98
  };
97
99
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
98
- major: string;
99
- minor: string;
100
100
  majorColor: string;
101
101
  majorStyles: string | false | CSSProperties | StyleValue[] | null;
102
102
  minorColor: string;
@@ -11,6 +11,8 @@ declare const ApLadder: {
11
11
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
12
12
  layout: "vertical" | "horizontal";
13
13
  tooltip: boolean;
14
+ major: string;
15
+ minor: string;
14
16
  labelAlign: "left" | "right";
15
17
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
16
18
  title: VueTypeValidableDef<any>;
@@ -87,8 +89,6 @@ declare const ApLadder: {
87
89
  default: boolean;
88
90
  };
89
91
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
90
- major: string;
91
- minor: string;
92
92
  majorColor: string;
93
93
  majorStyles: string | false | CSSProperties | StyleValue[] | null;
94
94
  minorColor: string;
@@ -113,6 +113,8 @@ declare const ApLadder: {
113
113
  }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
114
114
  layout: "vertical" | "horizontal";
115
115
  tooltip: boolean;
116
+ major: string;
117
+ minor: string;
116
118
  labelAlign: "left" | "right";
117
119
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
118
120
  title: VueTypeValidableDef<any>;
@@ -189,8 +191,6 @@ declare const ApLadder: {
189
191
  default: boolean;
190
192
  };
191
193
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
192
- major: string;
193
- minor: string;
194
194
  majorColor: string;
195
195
  majorStyles: string | false | CSSProperties | StyleValue[] | null;
196
196
  minorColor: string;
@@ -209,6 +209,8 @@ declare const ApLadder: {
209
209
  } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
210
210
  layout: "vertical" | "horizontal";
211
211
  tooltip: boolean;
212
+ major: string;
213
+ minor: string;
212
214
  labelAlign: "left" | "right";
213
215
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
214
216
  title: VueTypeValidableDef<any>;
@@ -285,8 +287,6 @@ declare const ApLadder: {
285
287
  default: boolean;
286
288
  };
287
289
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
288
- major: string;
289
- minor: string;
290
290
  majorColor: string;
291
291
  majorStyles: string | false | CSSProperties | StyleValue[] | null;
292
292
  minorColor: string;
@@ -458,6 +458,17 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
458
458
  'color-disabled': string;
459
459
  };
460
460
  };
461
+ 'ap-text': {
462
+ label: {
463
+ color: string;
464
+ };
465
+ content: {
466
+ color: {
467
+ major: string;
468
+ minor: string;
469
+ };
470
+ };
471
+ };
461
472
  }>;
462
473
  exportField: ExportField;
463
474
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -101,6 +101,17 @@ declare const aplusCssVarObj: {
101
101
  'color-disabled': string;
102
102
  };
103
103
  };
104
+ 'ap-text': {
105
+ label: {
106
+ color: string;
107
+ };
108
+ content: {
109
+ color: {
110
+ major: string;
111
+ minor: string;
112
+ };
113
+ };
114
+ };
104
115
  };
105
116
  export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
106
117
  export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
@@ -1,4 +1,4 @@
1
- const F = {
1
+ const b = {
2
2
  "ap-form": {
3
3
  bordered: {
4
4
  "border-color": {
@@ -99,8 +99,19 @@ const F = {
99
99
  color: "#526a90",
100
100
  "color-disabled": "rgba(24, 41, 72, 0.25)"
101
101
  }
102
+ },
103
+ "ap-text": {
104
+ label: {
105
+ color: "#8896b0"
106
+ },
107
+ content: {
108
+ color: {
109
+ major: "#182948",
110
+ minor: "#8896B0"
111
+ }
112
+ }
102
113
  }
103
- }, b = {
114
+ }, F = {
104
115
  "ap-form": {
105
116
  bordered: {
106
117
  "border-color": {
@@ -201,28 +212,39 @@ const F = {
201
212
  color: "#999999",
202
213
  "color-disabled": "rgba(0, 0, 0, 0.25)"
203
214
  }
215
+ },
216
+ "ap-text": {
217
+ label: {
218
+ color: "#999999"
219
+ },
220
+ content: {
221
+ color: {
222
+ major: "#333333",
223
+ minor: "#999999"
224
+ }
225
+ }
204
226
  }
205
227
  };
206
- function i(t) {
228
+ function l(e) {
207
229
  const o = {};
208
- function r(a, l) {
230
+ function r(a, i) {
209
231
  const s = Object.keys(a);
210
232
  for (const c of s) {
211
- const e = a[c], n = [...l, c];
212
- e !== null && typeof e == "object" ? r(e, n) : o[`--${n.join("-")}`] = e;
233
+ const t = a[c], n = [...i, c];
234
+ t !== null && typeof t == "object" ? r(t, n) : o[`--${n.join("-")}`] = t;
213
235
  }
214
236
  }
215
- return r(t, []), o;
237
+ return r(e, []), o;
216
238
  }
217
- const d = i(F), p = i(b);
218
- function u(t) {
219
- Object.entries(t).forEach(([o, r]) => {
239
+ const p = l(b), d = l(F);
240
+ function u(e) {
241
+ Object.entries(e).forEach(([o, r]) => {
220
242
  document.documentElement.style.setProperty(o, r);
221
243
  });
222
244
  }
223
245
  export {
224
- p as adminCssVar,
225
- d as aplusCssVar,
226
- i as generateCssVar,
246
+ d as adminCssVar,
247
+ p as aplusCssVar,
248
+ l as generateCssVar,
227
249
  u as setCSSVariables
228
250
  };
@@ -263,6 +263,17 @@ export declare const APConfigProvider: {
263
263
  'color-disabled': string;
264
264
  };
265
265
  };
266
+ 'ap-text': {
267
+ label: {
268
+ color: string;
269
+ };
270
+ content: {
271
+ color: {
272
+ major: string;
273
+ minor: string;
274
+ };
275
+ };
276
+ };
266
277
  }>>;
267
278
  default: () => {};
268
279
  };
@@ -412,6 +423,17 @@ export declare const APConfigProvider: {
412
423
  'color-disabled': string;
413
424
  };
414
425
  };
426
+ 'ap-text': {
427
+ label: {
428
+ color: string;
429
+ };
430
+ content: {
431
+ color: {
432
+ major: string;
433
+ minor: string;
434
+ };
435
+ };
436
+ };
415
437
  }>;
416
438
  exportField: ExportField;
417
439
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -666,6 +688,17 @@ export declare const APConfigProvider: {
666
688
  'color-disabled': string;
667
689
  };
668
690
  };
691
+ 'ap-text': {
692
+ label: {
693
+ color: string;
694
+ };
695
+ content: {
696
+ color: {
697
+ major: string;
698
+ minor: string;
699
+ };
700
+ };
701
+ };
669
702
  }>>;
670
703
  default: () => {};
671
704
  };
@@ -815,6 +848,17 @@ export declare const APConfigProvider: {
815
848
  'color-disabled': string;
816
849
  };
817
850
  };
851
+ 'ap-text': {
852
+ label: {
853
+ color: string;
854
+ };
855
+ content: {
856
+ color: {
857
+ major: string;
858
+ minor: string;
859
+ };
860
+ };
861
+ };
818
862
  }>;
819
863
  exportField: ExportField;
820
864
  }>;
@@ -1113,6 +1157,17 @@ export declare const APConfigProvider: {
1113
1157
  'color-disabled': string;
1114
1158
  };
1115
1159
  };
1160
+ 'ap-text': {
1161
+ label: {
1162
+ color: string;
1163
+ };
1164
+ content: {
1165
+ color: {
1166
+ major: string;
1167
+ minor: string;
1168
+ };
1169
+ };
1170
+ };
1116
1171
  }>;
1117
1172
  exportField: ExportField;
1118
1173
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
package/es/src/index.d.ts CHANGED
@@ -23,3 +23,4 @@ export * from './portal';
23
23
  export * from './full-screen';
24
24
  export * from './resize-observer';
25
25
  export * from './ap-grid';
26
+ export * from './text';