Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vant

Package Overview
Dependencies
Maintainers
7
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vant - npm Package Compare versions

Comparing version 4.6.7 to 4.6.8

62

es/config-provider/types.d.ts

@@ -1,1 +0,61 @@

export type ConfigProviderThemeVars = import('../action-bar').ActionBarThemeVars & import('../action-bar-button').ActionBarButtonThemeVars & import('../action-bar-icon').ActionBarIconThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../address-edit').AddressEditThemeVars & import('../address-list').AddressListThemeVars & import('../badge').BadgeThemeVars & import('../barrage').BarrageThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../card').CardThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../cell-group').CellGroupThemeVars & import('../checkbox').CheckboxThemeVars & import('../circle').CircleThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../contact-card').ContactCardThemeVars & import('../contact-edit').ContactEditThemeVars & import('../contact-list').ContactListThemeVars & import('../count-down').CountDownThemeVars & import('../coupon').CouponThemeVars & import('../coupon-cell').CouponCellThemeVars & import('../coupon-list').CouponListThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../floating-bubble').FloatingBubbleThemeVars & import('../floating-panel').FloatingPanelThemeVars & import('../grid-item').GridItemThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../pagination').PaginationThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../picker-group').PickerGroupThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../progress').ProgressThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../rate').RateThemeVars & import('../rolling-text').RollingTextThemeVars & import('../search').SearchThemeVars & import('../share-sheet').ShareSheetThemeVars & import('../sidebar').SidebarThemeVars & import('../sidebar-item').SidebarItemThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../slider').SliderThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../submit-bar').SubmitBarThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../toast').ToastThemeVars & import('../tree-select').TreeSelectThemeVars & import('../uploader').UploaderThemeVars & import('../watermark').WatermarkThemeVars;
type BaseThemeVars = {
black?: string;
white?: string;
gray1?: string;
gray2?: string;
gray3?: string;
gray4?: string;
gray5?: string;
gray6?: string;
gray7?: string;
gray8?: string;
red?: string;
blue?: string;
orange?: string;
orangeDark?: string;
orangeLight?: string;
green?: string;
gradientRed?: string;
gradientOrange?: string;
primaryColor?: string;
successColor?: string;
dangerColor?: string;
warningColor?: string;
textColor?: string;
textColor2?: string;
textColor3?: string;
activeColor?: string;
activeOpacity?: number;
disabledOpacity?: number;
background?: string;
background2?: string;
paddingBase?: string;
paddingXs?: string;
paddingSm?: string;
paddingMd?: string;
paddingLg?: string;
paddingXl?: string;
fontSizeXs?: string;
fontSizeSm?: string;
fontSizeMd?: string;
fontSizeLg?: string;
fontBold?: number;
lineHeightXs?: string;
lineHeightSm?: string;
lineHeightMd?: string;
lineHeightLg?: string;
baseFont?: string;
priceFont?: string;
durationBase?: string;
durationFast?: string;
easeOut?: string;
easeIn?: string;
borderColor?: string;
borderWidth?: string;
radiusSm?: string;
radiusMd?: string;
radiusLg?: string;
radiusMax?: string;
};
export type ConfigProviderThemeVars = BaseThemeVars & import('../action-bar').ActionBarThemeVars & import('../action-bar-button').ActionBarButtonThemeVars & import('../action-bar-icon').ActionBarIconThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../address-edit').AddressEditThemeVars & import('../address-list').AddressListThemeVars & import('../badge').BadgeThemeVars & import('../barrage').BarrageThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../card').CardThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../cell-group').CellGroupThemeVars & import('../checkbox').CheckboxThemeVars & import('../circle').CircleThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../contact-card').ContactCardThemeVars & import('../contact-edit').ContactEditThemeVars & import('../contact-list').ContactListThemeVars & import('../count-down').CountDownThemeVars & import('../coupon').CouponThemeVars & import('../coupon-cell').CouponCellThemeVars & import('../coupon-list').CouponListThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../floating-bubble').FloatingBubbleThemeVars & import('../floating-panel').FloatingPanelThemeVars & import('../grid-item').GridItemThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../pagination').PaginationThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../picker-group').PickerGroupThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../progress').ProgressThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../rate').RateThemeVars & import('../rolling-text').RollingTextThemeVars & import('../search').SearchThemeVars & import('../share-sheet').ShareSheetThemeVars & import('../sidebar').SidebarThemeVars & import('../sidebar-item').SidebarItemThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../slider').SliderThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../submit-bar').SubmitBarThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../toast').ToastThemeVars & import('../tree-select').TreeSelectThemeVars & import('../uploader').UploaderThemeVars & import('../watermark').WatermarkThemeVars;
export {};

2

es/index.d.ts

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.7";
export const version: "4.6.8";

@@ -11,2 +11,4 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").DefineComponent<{

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -29,2 +31,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -46,2 +50,4 @@ placeholder: BooleanConstructor;

safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;

@@ -48,0 +54,0 @@ }, {}>>;

@@ -12,2 +12,4 @@ import { type ExtractPropTypes } from 'vue';

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -32,2 +34,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -50,2 +54,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -67,4 +73,6 @@ placeholder: BooleanConstructor;

safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;
}, {}>;
export default _default;

@@ -41,6 +41,10 @@ var __defProp = Object.defineProperty;

};
function insertDash(str) {
return str.replace(/([a-zA-Z])(\d)/g, "$1-$2");
}
function mapThemeVarsToCSSVars(themeVars) {
const cssVars = {};
Object.keys(themeVars).forEach((key) => {
cssVars[`--van-${(0, import_utils.kebabCase)(key)}`] = themeVars[key];
const formattedKey = insertDash((0, import_utils.kebabCase)(key));
cssVars[`--van-${formattedKey}`] = themeVars[key];
});

@@ -47,0 +51,0 @@ return cssVars;

@@ -1,1 +0,61 @@

export type ConfigProviderThemeVars = import('../action-bar').ActionBarThemeVars & import('../action-bar-button').ActionBarButtonThemeVars & import('../action-bar-icon').ActionBarIconThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../address-edit').AddressEditThemeVars & import('../address-list').AddressListThemeVars & import('../badge').BadgeThemeVars & import('../barrage').BarrageThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../card').CardThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../cell-group').CellGroupThemeVars & import('../checkbox').CheckboxThemeVars & import('../circle').CircleThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../contact-card').ContactCardThemeVars & import('../contact-edit').ContactEditThemeVars & import('../contact-list').ContactListThemeVars & import('../count-down').CountDownThemeVars & import('../coupon').CouponThemeVars & import('../coupon-cell').CouponCellThemeVars & import('../coupon-list').CouponListThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../floating-bubble').FloatingBubbleThemeVars & import('../floating-panel').FloatingPanelThemeVars & import('../grid-item').GridItemThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../pagination').PaginationThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../picker-group').PickerGroupThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../progress').ProgressThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../rate').RateThemeVars & import('../rolling-text').RollingTextThemeVars & import('../search').SearchThemeVars & import('../share-sheet').ShareSheetThemeVars & import('../sidebar').SidebarThemeVars & import('../sidebar-item').SidebarItemThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../slider').SliderThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../submit-bar').SubmitBarThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../toast').ToastThemeVars & import('../tree-select').TreeSelectThemeVars & import('../uploader').UploaderThemeVars & import('../watermark').WatermarkThemeVars;
type BaseThemeVars = {
black?: string;
white?: string;
gray1?: string;
gray2?: string;
gray3?: string;
gray4?: string;
gray5?: string;
gray6?: string;
gray7?: string;
gray8?: string;
red?: string;
blue?: string;
orange?: string;
orangeDark?: string;
orangeLight?: string;
green?: string;
gradientRed?: string;
gradientOrange?: string;
primaryColor?: string;
successColor?: string;
dangerColor?: string;
warningColor?: string;
textColor?: string;
textColor2?: string;
textColor3?: string;
activeColor?: string;
activeOpacity?: number;
disabledOpacity?: number;
background?: string;
background2?: string;
paddingBase?: string;
paddingXs?: string;
paddingSm?: string;
paddingMd?: string;
paddingLg?: string;
paddingXl?: string;
fontSizeXs?: string;
fontSizeSm?: string;
fontSizeMd?: string;
fontSizeLg?: string;
fontBold?: number;
lineHeightXs?: string;
lineHeightSm?: string;
lineHeightMd?: string;
lineHeightLg?: string;
baseFont?: string;
priceFont?: string;
durationBase?: string;
durationFast?: string;
easeOut?: string;
easeIn?: string;
borderColor?: string;
borderWidth?: string;
radiusSm?: string;
radiusMd?: string;
radiusLg?: string;
radiusMax?: string;
};
export type ConfigProviderThemeVars = BaseThemeVars & import('../action-bar').ActionBarThemeVars & import('../action-bar-button').ActionBarButtonThemeVars & import('../action-bar-icon').ActionBarIconThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../address-edit').AddressEditThemeVars & import('../address-list').AddressListThemeVars & import('../badge').BadgeThemeVars & import('../barrage').BarrageThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../card').CardThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../cell-group').CellGroupThemeVars & import('../checkbox').CheckboxThemeVars & import('../circle').CircleThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../contact-card').ContactCardThemeVars & import('../contact-edit').ContactEditThemeVars & import('../contact-list').ContactListThemeVars & import('../count-down').CountDownThemeVars & import('../coupon').CouponThemeVars & import('../coupon-cell').CouponCellThemeVars & import('../coupon-list').CouponListThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../floating-bubble').FloatingBubbleThemeVars & import('../floating-panel').FloatingPanelThemeVars & import('../grid-item').GridItemThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../pagination').PaginationThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../picker-group').PickerGroupThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../progress').ProgressThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../rate').RateThemeVars & import('../rolling-text').RollingTextThemeVars & import('../search').SearchThemeVars & import('../share-sheet').ShareSheetThemeVars & import('../sidebar').SidebarThemeVars & import('../sidebar-item').SidebarItemThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../slider').SliderThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../submit-bar').SubmitBarThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../toast').ToastThemeVars & import('../tree-select').TreeSelectThemeVars & import('../uploader').UploaderThemeVars & import('../watermark').WatermarkThemeVars;
export {};

@@ -108,2 +108,2 @@ export * from "./action-bar";

export function install(app: any): void;
export const version: "4.6.7";
export const version: "4.6.8";

@@ -227,3 +227,3 @@ var __defProp = Object.defineProperty;

__reExport(stdin_exports, require("./watermark"), module.exports);
const version = "4.6.7";
const version = "4.6.8";
function install(app) {

@@ -230,0 +230,0 @@ const components = [

@@ -11,2 +11,4 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").DefineComponent<{

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -29,2 +31,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -46,2 +50,4 @@ placeholder: BooleanConstructor;

safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;

@@ -48,0 +54,0 @@ }, {}>>;

@@ -12,2 +12,4 @@ import { type ExtractPropTypes } from 'vue';

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -32,2 +34,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -50,2 +54,4 @@ placeholder: BooleanConstructor;

rightText: StringConstructor;
leftDisabled: BooleanConstructor;
rightDisabled: BooleanConstructor;
leftArrow: BooleanConstructor;

@@ -67,4 +73,6 @@ placeholder: BooleanConstructor;

safeAreaInsetTop: boolean;
leftDisabled: boolean;
rightDisabled: boolean;
leftArrow: boolean;
}, {}>;
export default _default;

@@ -37,2 +37,4 @@ var __defProp = Object.defineProperty;

rightText: String,
leftDisabled: Boolean,
rightDisabled: Boolean,
leftArrow: Boolean,

@@ -53,4 +55,12 @@ placeholder: Boolean,

const renderPlaceholder = (0, import_use_placeholder.usePlaceholder)(navBarRef, bem);
const onClickLeft = (event) => emit("clickLeft", event);
const onClickRight = (event) => emit("clickRight", event);
const onClickLeft = (event) => {
if (!props.leftDisabled) {
emit("clickLeft", event);
}
};
const onClickRight = (event) => {
if (!props.rightDisabled) {
emit("clickRight", event);
}
};
const renderLeft = () => {

@@ -97,3 +107,5 @@ if (slots.left) {

}, [hasLeft && (0, import_vue.createVNode)("div", {
"class": [bem("left"), props.clickable ? import_utils.HAPTICS_FEEDBACK : ""],
"class": [bem("left", {
disabled: props.leftDisabled
}), props.clickable && !props.leftDisabled ? import_utils.HAPTICS_FEEDBACK : ""],
"onClick": onClickLeft

@@ -103,3 +115,5 @@ }, [renderLeft()]), (0, import_vue.createVNode)("div", {

}, [slots.title ? slots.title() : title]), hasRight && (0, import_vue.createVNode)("div", {
"class": [bem("right"), props.clickable ? import_utils.HAPTICS_FEEDBACK : ""],
"class": [bem("right", {
disabled: props.rightDisabled
}), props.clickable && !props.rightDisabled ? import_utils.HAPTICS_FEEDBACK : ""],
"onClick": onClickRight

@@ -106,0 +120,0 @@ }, [renderRight()])])]);

{
"name": "vant",
"version": "4.6.7",
"version": "4.6.8",
"description": "Mobile UI Components built on Vue",

@@ -59,5 +59,5 @@ "main": "lib/vant.cjs.js",

"@vant/area-data": "1.5.0",
"@vant/icons": "2.0.1",
"@vant/cli": "6.2.0",
"@vant/eslint-config": "4.0.0",
"@vant/icons": "2.0.1"
"@vant/eslint-config": "4.0.0"
},

@@ -64,0 +64,0 @@ "sideEffects": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc