zartd 0.0.24 → 0.0.26

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 (39) hide show
  1. package/dist/index.css +96 -27
  2. package/dist/index.js +7 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.min.css.map +1 -1
  5. package/dist/index.min.js +2 -2
  6. package/dist/index.min.js.map +1 -1
  7. package/es/a-input/style/index.less +14 -0
  8. package/es/a-message/style/index.less +0 -1
  9. package/es/a-modal/style/index.less +21 -0
  10. package/es/a-popover/style/index.less +8 -0
  11. package/es/a-select/style/index.less +11 -1
  12. package/es/a-tooltip/style/index.less +7 -1
  13. package/es/a-tree/style/index.less +3 -6
  14. package/es/index.js +6 -0
  15. package/es/style/fonts/iconfont/zartd/iconfont.css +55 -3
  16. package/es/style/fonts/iconfont/zartd/iconfont.ttf +0 -0
  17. package/es/style/fonts/iconfont/zartd/iconfont.woff +0 -0
  18. package/es/style/fonts/iconfont/zartd/iconfont.woff2 +0 -0
  19. package/es/style/fonts/index.less +0 -1
  20. package/es/style/global.less +1 -4
  21. package/lib/a-input/style/index.less +14 -0
  22. package/lib/a-message/style/index.less +0 -1
  23. package/lib/a-modal/style/index.less +21 -0
  24. package/lib/a-popover/style/index.less +8 -0
  25. package/lib/a-select/style/index.less +11 -1
  26. package/lib/a-tooltip/style/index.less +7 -1
  27. package/lib/a-tree/style/index.less +3 -6
  28. package/lib/index.js +6 -0
  29. package/lib/style/fonts/iconfont/zartd/iconfont.css +55 -3
  30. package/lib/style/fonts/iconfont/zartd/iconfont.ttf +0 -0
  31. package/lib/style/fonts/iconfont/zartd/iconfont.woff +0 -0
  32. package/lib/style/fonts/iconfont/zartd/iconfont.woff2 +0 -0
  33. package/lib/style/fonts/index.less +0 -1
  34. package/lib/style/global.less +1 -4
  35. package/package.json +2 -2
  36. package/es/style/fonts/din/din-alternate-bold.ttf +0 -0
  37. package/es/style/fonts/din/index.css +0 -5
  38. package/lib/style/fonts/din/din-alternate-bold.ttf +0 -0
  39. package/lib/style/fonts/din/index.css +0 -5
package/dist/index.css CHANGED
@@ -1,8 +1,3 @@
1
- @font-face {
2
- font-family: 'DIN';
3
- font-display: swap;
4
- src: url('din-alternate-bold.ttf') format('truetype');
5
- }
6
1
  @font-face {
7
2
  font-family: 'HarmonyOS Sans';
8
3
  font-display: swap;
@@ -47,7 +42,7 @@
47
42
  @font-face {
48
43
  font-family: 'zt-iconfont';
49
44
  /* Project id 3622406 */
50
- src: url('iconfont.woff2?t=1689301517739') format('woff2'), url('iconfont.woff?t=1689301517739') format('woff'), url('iconfont.ttf?t=1689301517739') format('truetype');
45
+ src: url('iconfont.woff2?t=1713440834303') format('woff2'), url('iconfont.woff?t=1713440834303') format('woff'), url('iconfont.ttf?t=1713440834303') format('truetype');
51
46
  }
52
47
  .zt-iconfont {
53
48
  font-family: 'zt-iconfont' !important;
@@ -56,8 +51,47 @@
56
51
  -webkit-font-smoothing: antialiased;
57
52
  -moz-osx-font-smoothing: grayscale;
58
53
  }
54
+ .zt-icon-sign-out:before {
55
+ content: '\e697';
56
+ }
57
+ .zt-icon-text-bold:before {
58
+ content: '\e635';
59
+ }
60
+ .zt-icon-text-italic:before {
61
+ content: '\e634';
62
+ }
63
+ .zt-icon-text-align-left:before {
64
+ content: '\e636';
65
+ }
66
+ .zt-icon-text-underline:before {
67
+ content: '\e63c';
68
+ }
69
+ .zt-icon-pencel:before {
70
+ content: '\e631';
71
+ }
72
+ .zt-icon-A:before {
73
+ content: '\e633';
74
+ }
75
+ .zt-icon-text-line-height:before {
76
+ content: '\e62c';
77
+ }
78
+ .zt-icon-text-outdent:before {
79
+ content: '\e62d';
80
+ }
81
+ .zt-icon-text-indent:before {
82
+ content: '\e62e';
83
+ }
84
+ .zt-icon-text-ordered-list:before {
85
+ content: '\e62f';
86
+ }
87
+ .zt-icon-text-unordered-list:before {
88
+ content: '\e630';
89
+ }
59
90
  .zt-icon-role:before {
60
- content: '\e603';
91
+ content: '\e642';
92
+ }
93
+ .zt-icon-all-check:before {
94
+ content: '\e648';
61
95
  }
62
96
  .zt-icon-drag:before {
63
97
  content: '\e75a';
@@ -1439,9 +1473,6 @@
1439
1473
  --zartd-info-color-deprecated-border: #ffab7a;
1440
1474
  }
1441
1475
  :root {
1442
- --zartd-font-family: -apple-system, 'BlinkMacSystemFont', 'Helvetica Neue', 'Roboto', 'Segoe UI', 'Tahoma', 'Arial', 'PingFang SC', 'Hiragino Sans GB',
1443
- 'WenQuanYi Micro Hei', 'Source Han Sans', 'Noto Sans CJK', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Emoji',
1444
- 'Segoe UI Symbol';
1445
1476
  --zartd-font-family-code: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
1446
1477
  --zartd-font-family-number: 'HarmonyOS Sans';
1447
1478
  }
@@ -1458,8 +1489,7 @@
1458
1489
  border-radius: 3px;
1459
1490
  }
1460
1491
  body {
1461
- -webkit-user-select: none;
1462
- user-select: none;
1492
+ overflow: hidden;
1463
1493
  -webkit-font-smoothing: antialiased;
1464
1494
  -moz-osx-font-smoothing: grayscale;
1465
1495
  }
@@ -2164,6 +2194,16 @@ body {
2164
2194
  .ant-input-affix-wrapper .ant-input-suffix .anticon {
2165
2195
  color: inherit;
2166
2196
  }
2197
+ .ant-input-affix-wrapper-input-with-clear-btn .ant-input-clear-icon,
2198
+ .ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {
2199
+ display: none;
2200
+ }
2201
+ .ant-input-affix-wrapper-input-with-clear-btn:hover .ant-input-clear-icon,
2202
+ .ant-input-affix-wrapper-textarea-with-clear-btn:hover .ant-input-clear-icon,
2203
+ .ant-input-affix-wrapper-input-with-clear-btn:focus-within .ant-input-clear-icon,
2204
+ .ant-input-affix-wrapper-textarea-with-clear-btn:focus-within .ant-input-clear-icon {
2205
+ display: inline-block;
2206
+ }
2167
2207
  .ant-input-group-wrapper .ant-input-group {
2168
2208
  border-radius: 4px;
2169
2209
  }
@@ -2326,13 +2366,26 @@ body {
2326
2366
  line-height: 20px;
2327
2367
  text-align: left;
2328
2368
  box-shadow: var(--zartd-box-shadow);
2329
- -webkit-user-select: text;
2330
- user-select: text;
2331
2369
  }
2332
2370
  .ant-message .ant-message-notice .ant-message-notice-content .anticon {
2333
2371
  top: 0;
2334
2372
  font-size: 14px;
2335
2373
  }
2374
+ .zt-modal-error .ant-modal-footer {
2375
+ display: flex;
2376
+ justify-content: flex-end;
2377
+ }
2378
+ .zt-modal-error .ant-modal-footer .ant-btn-primary {
2379
+ order: -1;
2380
+ margin-right: 10px;
2381
+ }
2382
+ .zt-modal-error .zt-icon-close {
2383
+ padding: 8px;
2384
+ border-radius: 4px;
2385
+ }
2386
+ .zt-modal-error .zt-icon-close:hover {
2387
+ background: var(--zartd-text-color-2);
2388
+ }
2336
2389
  .ant-modal .ant-modal-content {
2337
2390
  max-width: calc(100vw - 100px);
2338
2391
  max-height: calc(100vh - 100px);
@@ -2545,8 +2598,16 @@ body {
2545
2598
  }
2546
2599
  /* stylelint-disable no-descending-specificity */
2547
2600
  /* stylelint-disable number-max-precision */
2601
+ .ant-popover {
2602
+ max-height: 100vh;
2603
+ }
2604
+ .ant-popover-content {
2605
+ max-height: 100vh;
2606
+ }
2548
2607
  .ant-popover-inner {
2608
+ max-height: 100vh;
2549
2609
  padding: 16px;
2610
+ overflow-y: auto;
2550
2611
  box-shadow: var(--zartd-box-shadow);
2551
2612
  }
2552
2613
  .ant-popover-title {
@@ -2702,15 +2763,23 @@ span.ant-radio + * {
2702
2763
  }
2703
2764
  .ant-select-dropdown .ant-select-item {
2704
2765
  margin: 8px 8px 0;
2705
- padding: 6px 14px;
2766
+ padding: 6px 8px;
2706
2767
  border-radius: 4px;
2707
2768
  }
2708
2769
  .ant-select-dropdown .ant-select-item:first-child {
2709
2770
  margin-top: 0;
2710
2771
  }
2772
+ .ant-select-dropdown .ant-select-item-group {
2773
+ padding: 6px 0;
2774
+ font-size: 14px;
2775
+ }
2711
2776
  .ant-select-dropdown .rc-virtual-list-holder > div[style*='overflow'] .ant-select-item {
2712
2777
  margin-top: 0;
2713
2778
  }
2779
+ .ant-select-dropdown .ant-select-tree-list-scrollbar,
2780
+ .ant-select-dropdown .ant-select-tree-list-scrollbar-show {
2781
+ display: initial !important;
2782
+ }
2714
2783
  .ant-select-multiple .ant-select-selection-item {
2715
2784
  min-height: 20px;
2716
2785
  padding: 0 6px;
@@ -2784,14 +2853,12 @@ span.ant-radio + * {
2784
2853
  align-items: stretch;
2785
2854
  }
2786
2855
  .ant-select-tree-list-scrollbar {
2787
- right: -8px !important;
2788
- }
2789
- .ant-select-tree-list-scrollbar,
2790
- .ant-select-tree-list-scrollbar-show {
2791
- display: initial !important;
2856
+ width: 6px !important;
2857
+ right: -6px !important;
2792
2858
  }
2793
2859
  .ant-select-tree-list-scrollbar-thumb {
2794
2860
  max-height: 100%;
2861
+ background: var(--zartd-shadow-color) !important;
2795
2862
  }
2796
2863
  .ant-select-tree-indent {
2797
2864
  line-height: 20px;
@@ -3177,11 +3244,15 @@ span.ant-radio + * {
3177
3244
  color: var(--zartd-text-color-8);
3178
3245
  }
3179
3246
  .ant-tooltip {
3180
- -webkit-user-select: text;
3181
- user-select: text;
3247
+ max-height: 100vh;
3248
+ }
3249
+ .ant-tooltip-content {
3250
+ max-height: 100vh;
3182
3251
  }
3183
3252
  .ant-tooltip-inner {
3253
+ max-height: 100vh;
3184
3254
  padding: 10px 12px;
3255
+ overflow-y: auto;
3185
3256
  }
3186
3257
  .ant-transfer-list-header {
3187
3258
  position: relative;
@@ -3254,14 +3325,12 @@ span.ant-radio + * {
3254
3325
  align-items: stretch;
3255
3326
  }
3256
3327
  .ant-tree-list-scrollbar {
3257
- right: -8px !important;
3258
- }
3259
- .ant-tree-list-scrollbar,
3260
- .ant-tree-list-scrollbar-show {
3261
- display: initial !important;
3328
+ width: 6px !important;
3329
+ right: -6px !important;
3262
3330
  }
3263
3331
  .ant-tree-list-scrollbar-thumb {
3264
3332
  max-height: 100%;
3333
+ background: var(--zartd-shadow-color) !important;
3265
3334
  }
3266
3335
  .ant-tree-indent {
3267
3336
  line-height: 20px;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! zartd v0.0.24 */
1
+ /*! zartd v0.0.26 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -8,11 +8,17 @@
8
8
 
9
9
  const components = [];
10
10
  const install = (app) => {
11
+ var _a;
11
12
  for (const component of components) {
12
13
  if (component.install) {
13
14
  app.use(component);
14
15
  }
15
16
  }
17
+ let fontFamily = `-apple-system, 'BlinkMacSystemFont', 'Helvetica Neue', 'Roboto', 'Segoe UI', 'Tahoma', 'Arial', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Source Han Sans', 'Noto Sans CJK', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`;
18
+ if (((_a = window.commonSetting) == null ? void 0 : _a.APP_LOW_PERFORMANCE_MODE) === "1" || window.location.href.includes("lowPerformanceMode=on")) {
19
+ fontFamily = fontFamily.replace(`'Source Han Sans', `, "");
20
+ }
21
+ document.documentElement.style.setProperty("--zartd-font-family", fontFamily);
16
22
  return app;
17
23
  };
18
24
  var index = { install };