@varlet/ui 3.19.2 → 3.20.0
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/style/index.mjs +1 -1
- package/es/button/Button.mjs +5 -5
- package/es/button/button.css +1 -1
- package/es/data-table/DataTable.mjs +3 -1
- package/es/data-table/usePagination.mjs +5 -0
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/pagination/pagination.css +1 -1
- package/es/shimmer-text/ShimmerText.mjs +33 -0
- package/es/shimmer-text/ShimmerTextSfc.css +0 -0
- package/es/shimmer-text/index.mjs +12 -0
- package/es/shimmer-text/props.mjs +9 -0
- package/es/shimmer-text/shimmerText.css +1 -0
- package/es/shimmer-text/style/index.mjs +3 -0
- package/es/style.mjs +1 -0
- package/es/switch/switch.css +1 -1
- package/es/themes/dark/index.mjs +3 -2
- package/es/themes/dark/shimmerText.mjs +9 -0
- package/es/themes/md3-dark/index.mjs +3 -2
- package/es/themes/md3-dark/shimmerText.mjs +9 -0
- package/es/themes/md3-light/index.mjs +3 -2
- package/es/themes/md3-light/shimmerText.mjs +9 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +5099 -5047
- package/highlight/web-types.en-US.json +22 -1
- package/highlight/web-types.zh-CN.json +22 -1
- package/lib/varlet.cjs.js +1690 -1587
- package/lib/varlet.css +1 -1
- package/package.json +9 -9
- package/types/dataTable.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/shimmerText.d.ts +22 -0
- package/types/styleVars.d.ts +4 -0
- package/umd/varlet.js +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.
|
|
48
|
-
"@varlet/shared": "3.
|
|
49
|
-
"@varlet/use": "3.
|
|
47
|
+
"@varlet/icons": "3.20.0",
|
|
48
|
+
"@varlet/shared": "3.20.0",
|
|
49
|
+
"@varlet/use": "3.20.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^20.19.0",
|
|
53
|
-
"@vitest/coverage-istanbul": "4.1.
|
|
53
|
+
"@vitest/coverage-istanbul": "4.1.10",
|
|
54
54
|
"@vue/runtime-core": "3.5.21",
|
|
55
55
|
"@vue/test-utils": "2.4.6",
|
|
56
56
|
"clipboard": "^2.0.6",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"live-server": "^1.2.1",
|
|
59
59
|
"shiki": "^1.21.0",
|
|
60
60
|
"typescript": "5.6.3",
|
|
61
|
-
"vitest": "
|
|
61
|
+
"vitest": "4.1.10",
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/ui": "3.
|
|
66
|
-
"@varlet/cli": "3.
|
|
67
|
-
"@varlet/touch-emulator": "3.
|
|
65
|
+
"@varlet/ui": "3.20.0",
|
|
66
|
+
"@varlet/cli": "3.20.0",
|
|
67
|
+
"@varlet/touch-emulator": "3.20.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/dataTable.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export * from './row'
|
|
|
81
81
|
export * from './segmentedButton'
|
|
82
82
|
export * from './segmentedButtons'
|
|
83
83
|
export * from './select'
|
|
84
|
+
export * from './shimmerText'
|
|
84
85
|
export * from './signature'
|
|
85
86
|
export * from './skeleton'
|
|
86
87
|
export * from './slider'
|
|
@@ -185,6 +186,7 @@ declare module 'vue' {
|
|
|
185
186
|
VarSegmentedButton: typeof import('@varlet/ui')['_SegmentedButtonComponent']
|
|
186
187
|
VarSegmentedButtons: typeof import('@varlet/ui')['_SegmentedButtonsComponent']
|
|
187
188
|
VarSelect: typeof import('@varlet/ui')['_SelectComponent']
|
|
189
|
+
VarShimmerText: typeof import('@varlet/ui')['_ShimmerTextComponent']
|
|
188
190
|
VarSignature: typeof import('@varlet/ui')['_SignatureComponent']
|
|
189
191
|
VarSkeleton: typeof import('@varlet/ui')['_SkeletonComponent']
|
|
190
192
|
VarSlider: typeof import('@varlet/ui')['_SliderComponent']
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VNode } from 'vue'
|
|
2
|
+
import { BasicAttributes, Type as ShimmerTextType, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
|
+
|
|
4
|
+
export { ShimmerTextType }
|
|
5
|
+
|
|
6
|
+
export declare const shimmerTextProps: Record<keyof ShimmerTextProps, any>
|
|
7
|
+
|
|
8
|
+
export interface ShimmerTextProps extends BasicAttributes {
|
|
9
|
+
type?: ShimmerTextType
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class ShimmerText extends VarComponent {
|
|
13
|
+
static setPropsDefaults: SetPropsDefaults<ShimmerTextProps>
|
|
14
|
+
|
|
15
|
+
$props: ShimmerTextProps
|
|
16
|
+
|
|
17
|
+
$slots: {
|
|
18
|
+
default(): VNode[]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class _ShimmerTextComponent extends ShimmerText {}
|
package/types/styleVars.d.ts
CHANGED
|
@@ -708,6 +708,10 @@ interface BaseStyleVars {
|
|
|
708
708
|
'--option-font-size'?: string
|
|
709
709
|
'--option-selected-background'?: string
|
|
710
710
|
'--option-text-color'?: string
|
|
711
|
+
'--shimmer-text-color'?: string
|
|
712
|
+
'--shimmer-text-highlight-color'?: string
|
|
713
|
+
'--shimmer-text-duration'?: string
|
|
714
|
+
'--shimmer-text-angle'?: string
|
|
711
715
|
'--signature-height'?: string
|
|
712
716
|
'--signature-background-color'?: string
|
|
713
717
|
'--signature-stroke-color'?: string
|