persagy-vant 0.0.27 → 0.0.28

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 (163) hide show
  1. package/es/cascader/Cascader.d.ts +1 -1
  2. package/es/cascader/index.d.ts +1 -1
  3. package/es/coupon-list/style/index.mjs +1 -1
  4. package/es/coupon-list/style/less.mjs +1 -1
  5. package/es/index.d.ts +2 -2
  6. package/es/index.mjs +4 -4
  7. package/es/label/Label.d.ts +92 -0
  8. package/es/label/Label.mjs +95 -0
  9. package/es/label/index.css +1 -0
  10. package/es/label/index.d.ts +64 -0
  11. package/es/label/index.less +113 -0
  12. package/es/label/index.mjs +8 -0
  13. package/es/label/style/index.mjs +6 -0
  14. package/es/label/style/less.mjs +6 -0
  15. package/es/label/var.less +11 -0
  16. package/es/location-select/style/index.mjs +1 -1
  17. package/es/location-select/style/less.mjs +1 -1
  18. package/es/material-add/MaterialAdd.d.ts +105 -1
  19. package/es/material-add/MaterialAdd.mjs +63 -23
  20. package/es/material-add/index.d.ts +73 -1
  21. package/es/quantity-input/QuantityInput.d.ts +1 -1
  22. package/es/quantity-input/index.d.ts +2 -2
  23. package/es/radio-panel/RadioPanel.d.ts +46 -1
  24. package/es/radio-panel/RadioPanel.mjs +115 -29
  25. package/es/radio-panel/index.css +1 -1
  26. package/es/radio-panel/index.d.ts +35 -1
  27. package/es/radio-panel/index.less +17 -0
  28. package/es/radio-panel/style/index.mjs +4 -0
  29. package/es/radio-panel/style/less.mjs +4 -0
  30. package/es/sticky/Sticky.d.ts +1 -1
  31. package/es/sticky/index.d.ts +1 -1
  32. package/es/tabs/TabsTitle.mjs +1 -0
  33. package/es/tabs/index.css +1 -1
  34. package/es/tabs/index.less +11 -0
  35. package/es/tag/Tag.d.ts +1 -1
  36. package/es/tag/index.css +1 -1
  37. package/es/tag/index.less +7 -0
  38. package/es/tag/var.less +3 -0
  39. package/lib/cascader/Cascader.d.ts +1 -1
  40. package/lib/cascader/index.d.ts +1 -1
  41. package/lib/coupon-list/style/index.js +1 -1
  42. package/lib/coupon-list/style/less.js +1 -1
  43. package/lib/index.css +1 -1
  44. package/lib/index.d.ts +2 -2
  45. package/lib/index.js +4 -4
  46. package/lib/index.less +6 -6
  47. package/lib/label/Label.d.ts +92 -0
  48. package/lib/label/Label.js +114 -0
  49. package/lib/label/index.css +1 -0
  50. package/lib/label/index.d.ts +64 -0
  51. package/lib/{bot-mobile/session-filter.js → label/index.js} +16 -13
  52. package/lib/label/index.less +113 -0
  53. package/lib/label/style/index.js +6 -0
  54. package/lib/label/style/less.js +6 -0
  55. package/lib/label/var.less +11 -0
  56. package/lib/location-select/style/index.js +1 -1
  57. package/lib/location-select/style/less.js +1 -1
  58. package/lib/material-add/MaterialAdd.d.ts +105 -1
  59. package/lib/material-add/MaterialAdd.js +63 -23
  60. package/lib/material-add/index.d.ts +73 -1
  61. package/lib/quantity-input/QuantityInput.d.ts +1 -1
  62. package/lib/quantity-input/index.d.ts +2 -2
  63. package/lib/radio-panel/RadioPanel.d.ts +46 -1
  64. package/lib/radio-panel/RadioPanel.js +114 -28
  65. package/lib/radio-panel/index.css +1 -1
  66. package/lib/radio-panel/index.d.ts +35 -1
  67. package/lib/radio-panel/index.less +17 -0
  68. package/lib/radio-panel/style/index.js +4 -0
  69. package/lib/radio-panel/style/less.js +4 -0
  70. package/lib/sticky/Sticky.d.ts +1 -1
  71. package/lib/sticky/index.d.ts +1 -1
  72. package/lib/tabs/TabsTitle.js +1 -0
  73. package/lib/tabs/index.css +1 -1
  74. package/lib/tabs/index.less +11 -0
  75. package/lib/tag/Tag.d.ts +1 -1
  76. package/lib/tag/index.css +1 -1
  77. package/lib/tag/index.less +7 -0
  78. package/lib/tag/var.less +3 -0
  79. package/lib/vant.cjs.js +1212 -1769
  80. package/lib/vant.es.js +1212 -1769
  81. package/lib/vant.js +13016 -24376
  82. package/lib/vant.min.js +1 -1
  83. package/lib/web-types.json +1 -1
  84. package/package.json +4 -4
  85. package/es/bot-mobile/BotFab.d.ts +0 -72
  86. package/es/bot-mobile/BotFab.mjs +0 -152
  87. package/es/bot-mobile/BotHistoryDrawer.d.ts +0 -72
  88. package/es/bot-mobile/BotHistoryDrawer.mjs +0 -97
  89. package/es/bot-mobile/BotMobile.d.ts +0 -83
  90. package/es/bot-mobile/BotMobile.mjs +0 -47
  91. package/es/bot-mobile/BotMobileContextTags.d.ts +0 -52
  92. package/es/bot-mobile/BotMobileContextTags.mjs +0 -52
  93. package/es/bot-mobile/BotMobilePrompts.d.ts +0 -54
  94. package/es/bot-mobile/BotMobilePrompts.mjs +0 -49
  95. package/es/bot-mobile/BotMobileSheet.d.ts +0 -92
  96. package/es/bot-mobile/BotMobileSheet.mjs +0 -50
  97. package/es/bot-mobile/BotMobileView.d.ts +0 -82
  98. package/es/bot-mobile/BotMobileView.mjs +0 -45
  99. package/es/bot-mobile/BotSessionList.d.ts +0 -71
  100. package/es/bot-mobile/BotSessionList.mjs +0 -99
  101. package/es/bot-mobile/BotVoiceBar.d.ts +0 -80
  102. package/es/bot-mobile/BotVoiceBar.mjs +0 -138
  103. package/es/bot-mobile/fab-position.d.ts +0 -9
  104. package/es/bot-mobile/fab-position.mjs +0 -10
  105. package/es/bot-mobile/fab-position.test.d.ts +0 -1
  106. package/es/bot-mobile/fab-position.test.mjs +0 -29
  107. package/es/bot-mobile/index.css +0 -1
  108. package/es/bot-mobile/index.d.ts +0 -469
  109. package/es/bot-mobile/index.less +0 -464
  110. package/es/bot-mobile/index.mjs +0 -50
  111. package/es/bot-mobile/session-filter.d.ts +0 -6
  112. package/es/bot-mobile/session-filter.mjs +0 -15
  113. package/es/bot-mobile/session-item.d.ts +0 -15
  114. package/es/bot-mobile/session-item.mjs +0 -73
  115. package/es/bot-mobile/style/index.mjs +0 -15
  116. package/es/bot-mobile/style/less.mjs +0 -15
  117. package/es/bot-mobile/types.d.ts +0 -23
  118. package/es/bot-mobile/types.mjs +0 -0
  119. package/es/bot-mobile/var.less +0 -58
  120. package/es/bot-mobile/voice-zone.d.ts +0 -6
  121. package/es/bot-mobile/voice-zone.mjs +0 -6
  122. package/es/bot-mobile/voice-zone.test.d.ts +0 -1
  123. package/es/bot-mobile/voice-zone.test.mjs +0 -19
  124. package/lib/bot-mobile/BotFab.d.ts +0 -72
  125. package/lib/bot-mobile/BotFab.js +0 -171
  126. package/lib/bot-mobile/BotHistoryDrawer.d.ts +0 -72
  127. package/lib/bot-mobile/BotHistoryDrawer.js +0 -116
  128. package/lib/bot-mobile/BotMobile.d.ts +0 -83
  129. package/lib/bot-mobile/BotMobile.js +0 -66
  130. package/lib/bot-mobile/BotMobileContextTags.d.ts +0 -52
  131. package/lib/bot-mobile/BotMobileContextTags.js +0 -71
  132. package/lib/bot-mobile/BotMobilePrompts.d.ts +0 -54
  133. package/lib/bot-mobile/BotMobilePrompts.js +0 -68
  134. package/lib/bot-mobile/BotMobileSheet.d.ts +0 -92
  135. package/lib/bot-mobile/BotMobileSheet.js +0 -79
  136. package/lib/bot-mobile/BotMobileView.d.ts +0 -82
  137. package/lib/bot-mobile/BotMobileView.js +0 -64
  138. package/lib/bot-mobile/BotSessionList.d.ts +0 -71
  139. package/lib/bot-mobile/BotSessionList.js +0 -118
  140. package/lib/bot-mobile/BotVoiceBar.d.ts +0 -80
  141. package/lib/bot-mobile/BotVoiceBar.js +0 -157
  142. package/lib/bot-mobile/fab-position.d.ts +0 -9
  143. package/lib/bot-mobile/fab-position.js +0 -29
  144. package/lib/bot-mobile/fab-position.test.d.ts +0 -1
  145. package/lib/bot-mobile/fab-position.test.js +0 -29
  146. package/lib/bot-mobile/index.css +0 -1
  147. package/lib/bot-mobile/index.d.ts +0 -469
  148. package/lib/bot-mobile/index.js +0 -79
  149. package/lib/bot-mobile/index.less +0 -464
  150. package/lib/bot-mobile/session-filter.d.ts +0 -6
  151. package/lib/bot-mobile/session-item.d.ts +0 -15
  152. package/lib/bot-mobile/session-item.js +0 -92
  153. package/lib/bot-mobile/style/index.js +0 -15
  154. package/lib/bot-mobile/style/less.js +0 -15
  155. package/lib/bot-mobile/types.d.ts +0 -23
  156. package/lib/bot-mobile/types.js +0 -15
  157. package/lib/bot-mobile/var.less +0 -58
  158. package/lib/bot-mobile/voice-zone.d.ts +0 -6
  159. package/lib/bot-mobile/voice-zone.js +0 -25
  160. package/lib/bot-mobile/voice-zone.test.d.ts +0 -1
  161. package/lib/bot-mobile/voice-zone.test.js +0 -19
  162. /package/es/{bot-mobile → label}/var.css +0 -0
  163. /package/lib/{bot-mobile → label}/var.css +0 -0
@@ -1,58 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @bot-mobile-primary-color: var(--van-primary-color);
4
- @bot-mobile-text-color: var(--van-text-color);
5
- @bot-mobile-border-color: var(--van-border-color);
6
- @bot-mobile-background-color: var(--van-background-color-light);
7
-
8
- @bot-mobile-prompts-title-color: var(--van-text-color-2);
9
- @bot-mobile-prompts-title-font-size: var(--van-font-size-sm);
10
- @bot-mobile-prompts-item-background: var(--van-background-color-light);
11
- @bot-mobile-prompts-item-border-color: var(--van-border-color);
12
- @bot-mobile-prompts-item-active-background: var(--van-active-color);
13
- @bot-mobile-prompts-item-selected-background: var(--van-blue-100);
14
- @bot-mobile-prompts-item-selected-border-color: var(--van-primary-color);
15
- @bot-mobile-prompts-item-selected-color: var(--van-primary-color);
16
- @bot-mobile-prompts-item-title-color: var(--van-text-color);
17
- @bot-mobile-prompts-item-desc-color: var(--van-text-color-2);
18
-
19
- @bot-mobile-context-tags-gap: 8px;
20
- @bot-mobile-context-tags-padding: 4px 12px;
21
- @bot-mobile-context-tags-font-size: var(--van-font-size-md);
22
- @bot-mobile-context-tags-line-height: var(--van-line-height-lg);
23
- @bot-mobile-context-tags-border-radius: var(--van-border-radius-lg);
24
- @bot-mobile-context-tags-color: var(--van-gray-8);
25
- @bot-mobile-context-tags-background-color: var(--van-gray-2);
26
- @bot-mobile-context-tags-selected-color: var(--van-bot-mobile-primary-color);
27
- @bot-mobile-context-tags-selected-background-color: var(--van-blue-100);
28
- @bot-mobile-context-tags-active-opacity: var(--van-active-opacity);
29
-
30
- @bot-mobile-sheet-height: 90%;
31
-
32
- @bot-mobile-fab-size: 56px;
33
- @bot-mobile-fab-z-index: 999;
34
- @bot-mobile-fab-color: var(--van-white);
35
- @bot-mobile-fab-background: var(--van-bot-mobile-primary-color);
36
- @bot-mobile-fab-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
37
-
38
- // 会话行公共 token:BotHistoryDrawer 与 BotSessionList 共用
39
- @bot-mobile-session-item-active-background: var(--van-active-color);
40
- @bot-mobile-session-item-name-color: var(--van-text-color);
41
- @bot-mobile-session-item-meta-color: var(--van-text-color-2);
42
- @bot-mobile-session-item-action-color: var(--van-text-color-3);
43
- @bot-mobile-session-item-danger-color: var(--van-danger-color);
44
-
45
- @bot-mobile-history-drawer-header-height: 52px;
46
- @bot-mobile-history-drawer-title-color: var(--van-text-color);
47
-
48
- @bot-mobile-voice-bar-height: 64px;
49
- @bot-mobile-voice-bar-background: var(--van-background-color-light);
50
- @bot-mobile-voice-bar-border-color: var(--van-border-color);
51
- @bot-mobile-voice-bar-recording-background: var(--van-blue-50);
52
- @bot-mobile-voice-bar-cancel-zone-background: var(--van-red);
53
- @bot-mobile-voice-bar-elapsed-color: var(--van-text-color);
54
- @bot-mobile-voice-bar-hint-color: var(--van-text-color-2);
55
- @bot-mobile-voice-bar-wave-color: var(--van-bot-mobile-primary-color);
56
-
57
- @bot-mobile-session-list-toolbar-padding: 8px 16px;
58
- @bot-mobile-session-list-create-color: var(--van-bot-mobile-primary-color);
@@ -1,6 +0,0 @@
1
- /**
2
- * BotVoiceBar 纯几何逻辑:上滑取消区判定。
3
- * 拆成纯函数便于单测,组件内 pointer 事件处理只负责采集坐标、调用这里。
4
- */
5
- /** 从按下点上滑超过 cancelDistance(px)即进入取消区;恰好达到阈值视为进入(>=) */
6
- export declare function isInCancelZone(startY: number, currentY: number, cancelDistance: number): boolean;
@@ -1,25 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- isInCancelZone: () => isInCancelZone
21
- });
22
- module.exports = __toCommonJS(stdin_exports);
23
- function isInCancelZone(startY, currentY, cancelDistance) {
24
- return startY - currentY >= cancelDistance;
25
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- var import_voice_zone = require("./voice-zone");
2
- describe("isInCancelZone", () => {
3
- test("should not be in the cancel zone when the upward displacement is below the threshold", () => {
4
- expect((0, import_voice_zone.isInCancelZone)(200, 150, 60)).toBe(false);
5
- });
6
- test("should be in the cancel zone once the upward displacement reaches the threshold", () => {
7
- expect((0, import_voice_zone.isInCancelZone)(200, 140, 60)).toBe(true);
8
- });
9
- test("should be in the cancel zone when the upward displacement exceeds the threshold", () => {
10
- expect((0, import_voice_zone.isInCancelZone)(200, 100, 60)).toBe(true);
11
- });
12
- test("should not be in the cancel zone for a downward movement", () => {
13
- expect((0, import_voice_zone.isInCancelZone)(200, 260, 60)).toBe(false);
14
- });
15
- test("should respect a custom cancel distance", () => {
16
- expect((0, import_voice_zone.isInCancelZone)(200, 170, 20)).toBe(true);
17
- expect((0, import_voice_zone.isInCancelZone)(200, 190, 20)).toBe(false);
18
- });
19
- });
File without changes
File without changes