@varlet/ui 2.16.1 → 2.16.3-alpha.1694267513697
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/action-sheet/ActionSheet.mjs +20 -16
- package/es/app-bar/AppBar.mjs +10 -9
- package/es/avatar/Avatar.mjs +16 -15
- package/es/avatar-group/AvatarGroup.mjs +4 -3
- package/es/back-top/BackTop.mjs +20 -19
- package/es/badge/Badge.mjs +4 -3
- package/es/bottom-navigation/BottomNavigation.mjs +70 -63
- package/es/bottom-navigation-item/BottomNavigationItem.mjs +13 -10
- package/es/breadcrumb/Breadcrumb.mjs +5 -4
- package/es/breadcrumbs/Breadcrumbs.mjs +2 -1
- package/es/button/Button.mjs +10 -9
- package/es/button-group/ButtonGroup.mjs +2 -1
- package/es/card/Card.mjs +28 -26
- package/es/cell/Cell.mjs +5 -4
- package/es/checkbox/Checkbox.mjs +32 -29
- package/es/checkbox-group/CheckboxGroup.mjs +45 -40
- package/es/chip/Chip.mjs +6 -5
- package/es/col/Col.mjs +21 -16
- package/es/collapse/Collapse.mjs +30 -29
- package/es/collapse-item/CollapseItem.mjs +52 -47
- package/es/countdown/Countdown.mjs +36 -35
- package/es/counter/Counter.mjs +63 -60
- package/es/date-picker/DatePicker.mjs +67 -63
- package/es/dialog/Dialog.mjs +39 -29
- package/es/divider/Divider.mjs +6 -9
- package/es/drag/Drag.mjs +47 -45
- package/es/ellipsis/Ellipsis.mjs +6 -5
- package/es/fab/Fab.mjs +21 -20
- package/es/field-decorator/FieldDecorator.mjs +14 -13
- package/es/form/Form.mjs +41 -36
- package/es/form-details/FormDetails.mjs +2 -1
- package/es/hover-overlay/HoverOverlay.mjs +6 -7
- package/es/icon/Icon.mjs +14 -12
- package/es/image/Image.mjs +14 -12
- package/es/image-preview/ImagePreview.mjs +51 -50
- package/es/index-anchor/IndexAnchor.mjs +15 -12
- package/es/index-bar/IndexBar.mjs +68 -65
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +63 -56
- package/es/link/Link.mjs +6 -5
- package/es/list/List.mjs +55 -46
- package/es/loading/Loading.mjs +11 -8
- package/es/loading-bar/LoadingBar.mjs +2 -1
- package/es/menu/Menu.mjs +2 -1
- package/es/option/Option.mjs +14 -11
- package/es/overlay/Overlay.mjs +18 -18
- package/es/pagination/Pagination.mjs +67 -64
- package/es/paper/Paper.mjs +4 -3
- package/es/picker/Picker.mjs +95 -85
- package/es/popup/Popup.mjs +26 -23
- package/es/progress/Progress.mjs +9 -8
- package/es/pull-refresh/PullRefresh.mjs +54 -51
- package/es/radio/Radio.mjs +25 -22
- package/es/radio-group/RadioGroup.mjs +30 -25
- package/es/rate/Rate.mjs +35 -28
- package/es/result/Result.mjs +6 -5
- package/es/row/Row.mjs +20 -18
- package/es/row/props.mjs +1 -1
- package/es/select/Select.mjs +57 -54
- package/es/skeleton/Skeleton.mjs +8 -9
- package/es/slider/Slider.mjs +86 -79
- package/es/snackbar/Snackbar.mjs +4 -3
- package/es/snackbar/style/index.mjs +1 -1
- package/es/space/Space.mjs +5 -2
- package/es/step/Step.mjs +7 -4
- package/es/steps/Steps.mjs +5 -4
- package/es/sticky/Sticky.mjs +30 -27
- package/es/style-provider/StyleProvider.mjs +2 -1
- package/es/swipe/Swipe.mjs +99 -90
- package/es/swipe-item/SwipeItem.mjs +5 -4
- package/es/switch/Switch.mjs +22 -17
- package/es/tab/Tab.mjs +16 -12
- package/es/tab-item/TabItem.mjs +7 -6
- package/es/table/Table.mjs +8 -9
- package/es/tabs/Tabs.mjs +57 -52
- package/es/tabs-items/TabsItems.mjs +38 -29
- package/es/time-picker/TimePicker.mjs +63 -60
- package/es/tooltip/Tooltip.mjs +3 -2
- package/es/uploader/Uploader.mjs +100 -85
- package/es/utils/components.mjs +2 -1
- package/es/utils/shared.mjs +0 -1
- package/es/varlet.esm.js +9605 -8923
- package/es/watermark/Watermark.mjs +29 -26
- package/highlight/web-types.en-US.json +3 -3
- package/highlight/web-types.zh-CN.json +3 -3
- package/lib/varlet.cjs.js +2388 -2118
- package/package.json +12 -14
- package/types/row.d.ts +1 -1
- package/types/swipe.d.ts +12 -3
- package/umd/varlet.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.3-alpha.1694267513697",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
"jsdelivr": "umd/varlet.js",
|
|
11
11
|
"web-types": "highlight/web-types.en-US.json",
|
|
12
12
|
"keywords": [
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"Vue3",
|
|
14
|
+
"Mobile",
|
|
15
|
+
"Material Design",
|
|
16
|
+
"UI",
|
|
17
|
+
"Components"
|
|
16
18
|
],
|
|
17
19
|
"files": [
|
|
18
20
|
"json",
|
|
@@ -46,9 +48,9 @@
|
|
|
46
48
|
"@popperjs/core": "^2.11.6",
|
|
47
49
|
"dayjs": "^1.10.4",
|
|
48
50
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/use": "2.16.
|
|
51
|
+
"@varlet/shared": "2.16.3-alpha.1694267513697",
|
|
52
|
+
"@varlet/icons": "2.16.3-alpha.1694267513697",
|
|
53
|
+
"@varlet/use": "2.16.3-alpha.1694267513697"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
54
56
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -64,14 +66,10 @@
|
|
|
64
66
|
"typescript": "^5.1.5",
|
|
65
67
|
"vue": "3.3.4",
|
|
66
68
|
"vue-router": "4.2.0",
|
|
67
|
-
"@varlet/
|
|
68
|
-
"@varlet/
|
|
69
|
-
"@varlet/
|
|
69
|
+
"@varlet/touch-emulator": "2.16.3-alpha.1694267513697",
|
|
70
|
+
"@varlet/ui": "2.16.3-alpha.1694267513697",
|
|
71
|
+
"@varlet/cli": "2.16.3-alpha.1694267513697"
|
|
70
72
|
},
|
|
71
|
-
"browserslist": [
|
|
72
|
-
"Chrome >= 54",
|
|
73
|
-
"iOS >= 10"
|
|
74
|
-
],
|
|
75
73
|
"scripts": {
|
|
76
74
|
"dev": "varlet-cli dev",
|
|
77
75
|
"build": "varlet-cli build",
|
package/types/row.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type RowJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between'
|
|
|
8
8
|
export type RowAlign = 'flex-start' | 'center' | 'flex-end' | 'start' | 'end'
|
|
9
9
|
|
|
10
10
|
export interface RowProps extends BasicAttributes {
|
|
11
|
-
gutter?: string | number
|
|
11
|
+
gutter?: string | number | [number | string, number | string]
|
|
12
12
|
justify?: RowJustify
|
|
13
13
|
align?: RowAlign
|
|
14
14
|
onClick?: ListenerProp<(e: Event) => void>
|
package/types/swipe.d.ts
CHANGED
|
@@ -19,9 +19,18 @@ export interface SwipeProps extends BasicAttributes {
|
|
|
19
19
|
onChange?: ListenerProp<(index: number) => void>
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export type SwipePrev = (options?: SwipeToOptions) => void
|
|
23
|
+
|
|
24
|
+
export type SwipeNext = (options?: SwipeToOptions) => void
|
|
25
|
+
|
|
26
|
+
export type SwipeTo = (index: number, options?: SwipeToOptions) => void
|
|
27
|
+
|
|
22
28
|
export interface SwipeIndicatorData {
|
|
23
29
|
index: number
|
|
24
30
|
length: number
|
|
31
|
+
prev: SwipePrev
|
|
32
|
+
next: SwipeNext
|
|
33
|
+
to: SwipeTo
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
export class Swipe extends VarComponent {
|
|
@@ -34,11 +43,11 @@ export class Swipe extends VarComponent {
|
|
|
34
43
|
|
|
35
44
|
resize(): void
|
|
36
45
|
|
|
37
|
-
prev
|
|
46
|
+
prev: SwipePrev
|
|
38
47
|
|
|
39
|
-
next
|
|
48
|
+
next: SwipeNext
|
|
40
49
|
|
|
41
|
-
to
|
|
50
|
+
to: SwipeTo
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
export class _SwipeComponent extends Swipe {}
|