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.
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/coupon-list/style/index.mjs +1 -1
- package/es/coupon-list/style/less.mjs +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.mjs +4 -4
- package/es/label/Label.d.ts +92 -0
- package/es/label/Label.mjs +95 -0
- package/es/label/index.css +1 -0
- package/es/label/index.d.ts +64 -0
- package/es/label/index.less +113 -0
- package/es/label/index.mjs +8 -0
- package/es/label/style/index.mjs +6 -0
- package/es/label/style/less.mjs +6 -0
- package/es/label/var.less +11 -0
- package/es/location-select/style/index.mjs +1 -1
- package/es/location-select/style/less.mjs +1 -1
- package/es/material-add/MaterialAdd.d.ts +105 -1
- package/es/material-add/MaterialAdd.mjs +63 -23
- package/es/material-add/index.d.ts +73 -1
- package/es/quantity-input/QuantityInput.d.ts +1 -1
- package/es/quantity-input/index.d.ts +2 -2
- package/es/radio-panel/RadioPanel.d.ts +46 -1
- package/es/radio-panel/RadioPanel.mjs +115 -29
- package/es/radio-panel/index.css +1 -1
- package/es/radio-panel/index.d.ts +35 -1
- package/es/radio-panel/index.less +17 -0
- package/es/radio-panel/style/index.mjs +4 -0
- package/es/radio-panel/style/less.mjs +4 -0
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/tabs/TabsTitle.mjs +1 -0
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +11 -0
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +7 -0
- package/es/tag/var.less +3 -0
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/coupon-list/style/index.js +1 -1
- package/lib/coupon-list/style/less.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +4 -4
- package/lib/index.less +6 -6
- package/lib/label/Label.d.ts +92 -0
- package/lib/label/Label.js +114 -0
- package/lib/label/index.css +1 -0
- package/lib/label/index.d.ts +64 -0
- package/lib/{bot-mobile/session-filter.js → label/index.js} +16 -13
- package/lib/label/index.less +113 -0
- package/lib/label/style/index.js +6 -0
- package/lib/label/style/less.js +6 -0
- package/lib/label/var.less +11 -0
- package/lib/location-select/style/index.js +1 -1
- package/lib/location-select/style/less.js +1 -1
- package/lib/material-add/MaterialAdd.d.ts +105 -1
- package/lib/material-add/MaterialAdd.js +63 -23
- package/lib/material-add/index.d.ts +73 -1
- package/lib/quantity-input/QuantityInput.d.ts +1 -1
- package/lib/quantity-input/index.d.ts +2 -2
- package/lib/radio-panel/RadioPanel.d.ts +46 -1
- package/lib/radio-panel/RadioPanel.js +114 -28
- package/lib/radio-panel/index.css +1 -1
- package/lib/radio-panel/index.d.ts +35 -1
- package/lib/radio-panel/index.less +17 -0
- package/lib/radio-panel/style/index.js +4 -0
- package/lib/radio-panel/style/less.js +4 -0
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/tabs/TabsTitle.js +1 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +11 -0
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +7 -0
- package/lib/tag/var.less +3 -0
- package/lib/vant.cjs.js +1212 -1769
- package/lib/vant.es.js +1212 -1769
- package/lib/vant.js +13016 -24376
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +4 -4
- package/es/bot-mobile/BotFab.d.ts +0 -72
- package/es/bot-mobile/BotFab.mjs +0 -152
- package/es/bot-mobile/BotHistoryDrawer.d.ts +0 -72
- package/es/bot-mobile/BotHistoryDrawer.mjs +0 -97
- package/es/bot-mobile/BotMobile.d.ts +0 -83
- package/es/bot-mobile/BotMobile.mjs +0 -47
- package/es/bot-mobile/BotMobileContextTags.d.ts +0 -52
- package/es/bot-mobile/BotMobileContextTags.mjs +0 -52
- package/es/bot-mobile/BotMobilePrompts.d.ts +0 -54
- package/es/bot-mobile/BotMobilePrompts.mjs +0 -49
- package/es/bot-mobile/BotMobileSheet.d.ts +0 -92
- package/es/bot-mobile/BotMobileSheet.mjs +0 -50
- package/es/bot-mobile/BotMobileView.d.ts +0 -82
- package/es/bot-mobile/BotMobileView.mjs +0 -45
- package/es/bot-mobile/BotSessionList.d.ts +0 -71
- package/es/bot-mobile/BotSessionList.mjs +0 -99
- package/es/bot-mobile/BotVoiceBar.d.ts +0 -80
- package/es/bot-mobile/BotVoiceBar.mjs +0 -138
- package/es/bot-mobile/fab-position.d.ts +0 -9
- package/es/bot-mobile/fab-position.mjs +0 -10
- package/es/bot-mobile/fab-position.test.d.ts +0 -1
- package/es/bot-mobile/fab-position.test.mjs +0 -29
- package/es/bot-mobile/index.css +0 -1
- package/es/bot-mobile/index.d.ts +0 -469
- package/es/bot-mobile/index.less +0 -464
- package/es/bot-mobile/index.mjs +0 -50
- package/es/bot-mobile/session-filter.d.ts +0 -6
- package/es/bot-mobile/session-filter.mjs +0 -15
- package/es/bot-mobile/session-item.d.ts +0 -15
- package/es/bot-mobile/session-item.mjs +0 -73
- package/es/bot-mobile/style/index.mjs +0 -15
- package/es/bot-mobile/style/less.mjs +0 -15
- package/es/bot-mobile/types.d.ts +0 -23
- package/es/bot-mobile/types.mjs +0 -0
- package/es/bot-mobile/var.less +0 -58
- package/es/bot-mobile/voice-zone.d.ts +0 -6
- package/es/bot-mobile/voice-zone.mjs +0 -6
- package/es/bot-mobile/voice-zone.test.d.ts +0 -1
- package/es/bot-mobile/voice-zone.test.mjs +0 -19
- package/lib/bot-mobile/BotFab.d.ts +0 -72
- package/lib/bot-mobile/BotFab.js +0 -171
- package/lib/bot-mobile/BotHistoryDrawer.d.ts +0 -72
- package/lib/bot-mobile/BotHistoryDrawer.js +0 -116
- package/lib/bot-mobile/BotMobile.d.ts +0 -83
- package/lib/bot-mobile/BotMobile.js +0 -66
- package/lib/bot-mobile/BotMobileContextTags.d.ts +0 -52
- package/lib/bot-mobile/BotMobileContextTags.js +0 -71
- package/lib/bot-mobile/BotMobilePrompts.d.ts +0 -54
- package/lib/bot-mobile/BotMobilePrompts.js +0 -68
- package/lib/bot-mobile/BotMobileSheet.d.ts +0 -92
- package/lib/bot-mobile/BotMobileSheet.js +0 -79
- package/lib/bot-mobile/BotMobileView.d.ts +0 -82
- package/lib/bot-mobile/BotMobileView.js +0 -64
- package/lib/bot-mobile/BotSessionList.d.ts +0 -71
- package/lib/bot-mobile/BotSessionList.js +0 -118
- package/lib/bot-mobile/BotVoiceBar.d.ts +0 -80
- package/lib/bot-mobile/BotVoiceBar.js +0 -157
- package/lib/bot-mobile/fab-position.d.ts +0 -9
- package/lib/bot-mobile/fab-position.js +0 -29
- package/lib/bot-mobile/fab-position.test.d.ts +0 -1
- package/lib/bot-mobile/fab-position.test.js +0 -29
- package/lib/bot-mobile/index.css +0 -1
- package/lib/bot-mobile/index.d.ts +0 -469
- package/lib/bot-mobile/index.js +0 -79
- package/lib/bot-mobile/index.less +0 -464
- package/lib/bot-mobile/session-filter.d.ts +0 -6
- package/lib/bot-mobile/session-item.d.ts +0 -15
- package/lib/bot-mobile/session-item.js +0 -92
- package/lib/bot-mobile/style/index.js +0 -15
- package/lib/bot-mobile/style/less.js +0 -15
- package/lib/bot-mobile/types.d.ts +0 -23
- package/lib/bot-mobile/types.js +0 -15
- package/lib/bot-mobile/var.less +0 -58
- package/lib/bot-mobile/voice-zone.d.ts +0 -6
- package/lib/bot-mobile/voice-zone.js +0 -25
- package/lib/bot-mobile/voice-zone.test.d.ts +0 -1
- package/lib/bot-mobile/voice-zone.test.js +0 -19
- /package/es/{bot-mobile → label}/var.css +0 -0
- /package/lib/{bot-mobile → label}/var.css +0 -0
package/lib/bot-mobile/var.less
DELETED
|
@@ -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,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
|