daisy-ui-kit 2.1.2 → 2.1.3
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/components/Mask.config.ts +77 -0
- package/package.json +2 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { computed } from 'vue'
|
|
2
|
+
|
|
3
|
+
export const maskProps = {
|
|
4
|
+
shape: { type: String },
|
|
5
|
+
squircle: Boolean,
|
|
6
|
+
heart: Boolean,
|
|
7
|
+
hexagon: Boolean,
|
|
8
|
+
hexagon2: Boolean,
|
|
9
|
+
decagon: Boolean,
|
|
10
|
+
pentagon: Boolean,
|
|
11
|
+
diamond: Boolean,
|
|
12
|
+
square: Boolean,
|
|
13
|
+
circle: Boolean,
|
|
14
|
+
parallelogram: Boolean,
|
|
15
|
+
parallelogram2: Boolean,
|
|
16
|
+
parallelogram3: Boolean,
|
|
17
|
+
parallelogram4: Boolean,
|
|
18
|
+
star: Boolean,
|
|
19
|
+
star2: Boolean,
|
|
20
|
+
triangle: Boolean,
|
|
21
|
+
triangle2: Boolean,
|
|
22
|
+
triangle3: Boolean,
|
|
23
|
+
triangle4: Boolean,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function makeMaskClasses(props: any) {
|
|
27
|
+
const classes = computed(() => {
|
|
28
|
+
return {
|
|
29
|
+
'mask-squircle': props.squircle || props.shape === 'squircle',
|
|
30
|
+
'mask-heart': props.heart || props.shape === 'heart',
|
|
31
|
+
'mask-hexagon': props.hexagon || props.shape === 'hexagon',
|
|
32
|
+
'mask-hexagon-2': props.hexagon2 || props.shape === 'hexagon-2',
|
|
33
|
+
'mask-decagon': props.decagon || props.shape === 'decagon',
|
|
34
|
+
'mask-pentagon': props.pentagon || props.shape === 'pentagon',
|
|
35
|
+
'mask-diamond': props.diamond || props.shape === 'diamond',
|
|
36
|
+
'mask-square': props.square || props.shape === 'square',
|
|
37
|
+
'mask-circle': props.circle || props.shape === 'circle',
|
|
38
|
+
'mask-parallelogram':
|
|
39
|
+
props.parallelogram || props.shape === 'parallelogram',
|
|
40
|
+
'mask-parallelogram-2':
|
|
41
|
+
props.parallelogram2 || props.shape === 'parallelogram-2',
|
|
42
|
+
'mask-parallelogram-3':
|
|
43
|
+
props.parallelogram3 || props.shape === 'parallelogram-3',
|
|
44
|
+
'mask-parallelogram-4':
|
|
45
|
+
props.parallelogram4 || props.shape === 'parallelogram-4',
|
|
46
|
+
'mask-star': props.star || props.shape === 'star',
|
|
47
|
+
'mask-star-2': props.star2 || props.shape === 'star-2',
|
|
48
|
+
'mask-triangle': props.triangle || props.shape === 'triangle',
|
|
49
|
+
'mask-triangle-2': props.triangle2 || props.shape === 'triangle-2',
|
|
50
|
+
'mask-triangle-3': props.triangle3 || props.shape === 'triangle-3',
|
|
51
|
+
'mask-triangle-4': props.triangle4 || props.shape === 'triangle-4',
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
return classes
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const shapes = [
|
|
58
|
+
'squircle',
|
|
59
|
+
'heart',
|
|
60
|
+
'hexagon',
|
|
61
|
+
'hexagon-2',
|
|
62
|
+
'decagon',
|
|
63
|
+
'pentagon',
|
|
64
|
+
'diamond',
|
|
65
|
+
'square',
|
|
66
|
+
'circle',
|
|
67
|
+
'parallelogram',
|
|
68
|
+
'parallelogram-2',
|
|
69
|
+
'parallelogram-3',
|
|
70
|
+
'parallelogram-4',
|
|
71
|
+
'star',
|
|
72
|
+
'star-2',
|
|
73
|
+
'triangle',
|
|
74
|
+
'triangle-2',
|
|
75
|
+
'triangle-3',
|
|
76
|
+
'triangle-4',
|
|
77
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daisy-ui-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxi build",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"main": "index.ts",
|
|
17
17
|
"files": [
|
|
18
18
|
"components/*.vue",
|
|
19
|
+
"components/Mask.config.ts",
|
|
19
20
|
"nuxt.js"
|
|
20
21
|
],
|
|
21
22
|
"peerDependencies": {
|