@aplus-frontend/ui 0.5.11 → 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 (81) 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/ap-modal/index.d.ts +9 -2
  5. package/es/src/ap-modal/index.mjs +23 -8
  6. package/es/src/ap-modal/interface.d.ts +2 -1
  7. package/es/src/ap-modal/utils/createModal.mjs +43 -40
  8. package/es/src/ap-modal/utils/index.d.ts +1 -0
  9. package/es/src/ap-modal/utils/index.mjs +6 -4
  10. package/es/src/ap-modal/utils/methods.d.ts +3 -0
  11. package/es/src/ap-modal/utils/methods.mjs +34 -0
  12. package/es/src/ap-modal/utils/util.d.ts +1 -0
  13. package/es/src/ap-modal/utils/util.mjs +4 -0
  14. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
  15. package/es/src/business/ap-ladder/index.d.ts +6 -6
  16. package/es/src/config-provider/config-provider.d.ts +11 -0
  17. package/es/src/config-provider/css-var.d.ts +11 -0
  18. package/es/src/config-provider/css-var.mjs +35 -13
  19. package/es/src/config-provider/index.d.ts +55 -0
  20. package/es/src/index.d.ts +1 -0
  21. package/es/src/index.mjs +258 -253
  22. package/es/src/text/context.d.ts +10 -0
  23. package/es/src/text/context.mjs +17 -0
  24. package/es/src/text/group.vue.d.ts +28 -0
  25. package/es/src/text/group.vue.mjs +37 -0
  26. package/es/src/text/group.vue2.mjs +4 -0
  27. package/es/src/text/index.d.ts +4 -0
  28. package/es/src/text/index.mjs +3 -0
  29. package/es/src/text/index.vue.d.ts +34 -0
  30. package/es/src/text/index.vue.mjs +118 -0
  31. package/es/src/text/index.vue2.mjs +4 -0
  32. package/es/src/text/interface.d.ts +47 -0
  33. package/es/src/text/interface.mjs +1 -0
  34. package/es/src/utils/config-provider-preset.mjs +21 -17
  35. package/es/src/utils/index.d.ts +1 -0
  36. package/es/src/utils/index.mjs +25 -21
  37. package/lib/index.js +1 -1
  38. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  39. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  40. package/lib/src/ap-modal/index.d.ts +9 -2
  41. package/lib/src/ap-modal/index.js +1 -1
  42. package/lib/src/ap-modal/interface.d.ts +2 -1
  43. package/lib/src/ap-modal/utils/createModal.js +1 -1
  44. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  45. package/lib/src/ap-modal/utils/index.js +1 -1
  46. package/lib/src/ap-modal/utils/methods.d.ts +3 -0
  47. package/lib/src/ap-modal/utils/methods.js +1 -0
  48. package/lib/src/ap-modal/utils/util.d.ts +1 -0
  49. package/lib/src/ap-modal/utils/util.js +1 -0
  50. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
  51. package/lib/src/business/ap-ladder/index.d.ts +6 -6
  52. package/lib/src/config-provider/config-provider.d.ts +11 -0
  53. package/lib/src/config-provider/css-var.d.ts +11 -0
  54. package/lib/src/config-provider/css-var.js +1 -1
  55. package/lib/src/config-provider/index.d.ts +55 -0
  56. package/lib/src/index.d.ts +1 -0
  57. package/lib/src/index.js +1 -1
  58. package/lib/src/text/context.d.ts +10 -0
  59. package/lib/src/text/context.js +1 -0
  60. package/lib/src/text/group.vue.d.ts +28 -0
  61. package/lib/src/text/group.vue.js +1 -0
  62. package/lib/src/text/group.vue2.js +1 -0
  63. package/lib/src/text/index.d.ts +4 -0
  64. package/lib/src/text/index.js +1 -0
  65. package/lib/src/text/index.vue.d.ts +34 -0
  66. package/lib/src/text/index.vue.js +1 -0
  67. package/lib/src/text/index.vue2.js +1 -0
  68. package/lib/src/text/interface.d.ts +47 -0
  69. package/lib/src/text/interface.js +1 -0
  70. package/lib/src/utils/config-provider-preset.js +1 -1
  71. package/lib/src/utils/index.d.ts +1 -0
  72. package/lib/src/utils/index.js +1 -1
  73. package/package.json +1 -1
  74. package/theme/ap-descriptions/ap-descriptions.css +3 -0
  75. package/theme/ap-descriptions/ap-descriptions.less +4 -0
  76. package/theme/index.css +61 -0
  77. package/theme/index.less +2 -0
  78. package/theme/text/group.css +14 -0
  79. package/theme/text/group.less +19 -0
  80. package/theme/text/index.css +44 -0
  81. package/theme/text/index.less +49 -0
@@ -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';