@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.
Files changed (91) hide show
  1. package/es/action-sheet/ActionSheet.mjs +20 -16
  2. package/es/app-bar/AppBar.mjs +10 -9
  3. package/es/avatar/Avatar.mjs +16 -15
  4. package/es/avatar-group/AvatarGroup.mjs +4 -3
  5. package/es/back-top/BackTop.mjs +20 -19
  6. package/es/badge/Badge.mjs +4 -3
  7. package/es/bottom-navigation/BottomNavigation.mjs +70 -63
  8. package/es/bottom-navigation-item/BottomNavigationItem.mjs +13 -10
  9. package/es/breadcrumb/Breadcrumb.mjs +5 -4
  10. package/es/breadcrumbs/Breadcrumbs.mjs +2 -1
  11. package/es/button/Button.mjs +10 -9
  12. package/es/button-group/ButtonGroup.mjs +2 -1
  13. package/es/card/Card.mjs +28 -26
  14. package/es/cell/Cell.mjs +5 -4
  15. package/es/checkbox/Checkbox.mjs +32 -29
  16. package/es/checkbox-group/CheckboxGroup.mjs +45 -40
  17. package/es/chip/Chip.mjs +6 -5
  18. package/es/col/Col.mjs +21 -16
  19. package/es/collapse/Collapse.mjs +30 -29
  20. package/es/collapse-item/CollapseItem.mjs +52 -47
  21. package/es/countdown/Countdown.mjs +36 -35
  22. package/es/counter/Counter.mjs +63 -60
  23. package/es/date-picker/DatePicker.mjs +67 -63
  24. package/es/dialog/Dialog.mjs +39 -29
  25. package/es/divider/Divider.mjs +6 -9
  26. package/es/drag/Drag.mjs +47 -45
  27. package/es/ellipsis/Ellipsis.mjs +6 -5
  28. package/es/fab/Fab.mjs +21 -20
  29. package/es/field-decorator/FieldDecorator.mjs +14 -13
  30. package/es/form/Form.mjs +41 -36
  31. package/es/form-details/FormDetails.mjs +2 -1
  32. package/es/hover-overlay/HoverOverlay.mjs +6 -7
  33. package/es/icon/Icon.mjs +14 -12
  34. package/es/image/Image.mjs +14 -12
  35. package/es/image-preview/ImagePreview.mjs +51 -50
  36. package/es/index-anchor/IndexAnchor.mjs +15 -12
  37. package/es/index-bar/IndexBar.mjs +68 -65
  38. package/es/index.bundle.mjs +1 -1
  39. package/es/index.mjs +1 -1
  40. package/es/input/Input.mjs +63 -56
  41. package/es/link/Link.mjs +6 -5
  42. package/es/list/List.mjs +55 -46
  43. package/es/loading/Loading.mjs +11 -8
  44. package/es/loading-bar/LoadingBar.mjs +2 -1
  45. package/es/menu/Menu.mjs +2 -1
  46. package/es/option/Option.mjs +14 -11
  47. package/es/overlay/Overlay.mjs +18 -18
  48. package/es/pagination/Pagination.mjs +67 -64
  49. package/es/paper/Paper.mjs +4 -3
  50. package/es/picker/Picker.mjs +95 -85
  51. package/es/popup/Popup.mjs +26 -23
  52. package/es/progress/Progress.mjs +9 -8
  53. package/es/pull-refresh/PullRefresh.mjs +54 -51
  54. package/es/radio/Radio.mjs +25 -22
  55. package/es/radio-group/RadioGroup.mjs +30 -25
  56. package/es/rate/Rate.mjs +35 -28
  57. package/es/result/Result.mjs +6 -5
  58. package/es/row/Row.mjs +20 -18
  59. package/es/row/props.mjs +1 -1
  60. package/es/select/Select.mjs +57 -54
  61. package/es/skeleton/Skeleton.mjs +8 -9
  62. package/es/slider/Slider.mjs +86 -79
  63. package/es/snackbar/Snackbar.mjs +4 -3
  64. package/es/snackbar/style/index.mjs +1 -1
  65. package/es/space/Space.mjs +5 -2
  66. package/es/step/Step.mjs +7 -4
  67. package/es/steps/Steps.mjs +5 -4
  68. package/es/sticky/Sticky.mjs +30 -27
  69. package/es/style-provider/StyleProvider.mjs +2 -1
  70. package/es/swipe/Swipe.mjs +99 -90
  71. package/es/swipe-item/SwipeItem.mjs +5 -4
  72. package/es/switch/Switch.mjs +22 -17
  73. package/es/tab/Tab.mjs +16 -12
  74. package/es/tab-item/TabItem.mjs +7 -6
  75. package/es/table/Table.mjs +8 -9
  76. package/es/tabs/Tabs.mjs +57 -52
  77. package/es/tabs-items/TabsItems.mjs +38 -29
  78. package/es/time-picker/TimePicker.mjs +63 -60
  79. package/es/tooltip/Tooltip.mjs +3 -2
  80. package/es/uploader/Uploader.mjs +100 -85
  81. package/es/utils/components.mjs +2 -1
  82. package/es/utils/shared.mjs +0 -1
  83. package/es/varlet.esm.js +9605 -8923
  84. package/es/watermark/Watermark.mjs +29 -26
  85. package/highlight/web-types.en-US.json +3 -3
  86. package/highlight/web-types.zh-CN.json +3 -3
  87. package/lib/varlet.cjs.js +2388 -2118
  88. package/package.json +12 -14
  89. package/types/row.d.ts +1 -1
  90. package/types/swipe.d.ts +12 -3
  91. 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.1",
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
- "Vue",
14
- "Material",
15
- "UI"
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/icons": "2.16.1",
50
- "@varlet/shared": "2.16.1",
51
- "@varlet/use": "2.16.1"
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/cli": "2.16.1",
68
- "@varlet/touch-emulator": "2.16.1",
69
- "@varlet/ui": "2.16.1"
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(options?: SwipeToOptions): void
46
+ prev: SwipePrev
38
47
 
39
- next(options?: SwipeToOptions): void
48
+ next: SwipeNext
40
49
 
41
- to(index: number, options?: SwipeToOptions): void
50
+ to: SwipeTo
42
51
  }
43
52
 
44
53
  export class _SwipeComponent extends Swipe {}