@luminescent/ui 0.3.1 → 0.3.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/README.md +2 -2
- package/lib-types/tailwind.config.d.ts +122 -0
- package/package.json +3 -3
- package/src/tailwind.config.js +72 -0
package/README.md
CHANGED
|
@@ -23,11 +23,11 @@ export default {
|
|
|
23
23
|
extend: {
|
|
24
24
|
animation: {
|
|
25
25
|
// ...
|
|
26
|
-
...tailwindConfig.animation,
|
|
26
|
+
...tailwindConfig.theme.extend.animation,
|
|
27
27
|
},
|
|
28
28
|
keyframes: {
|
|
29
29
|
// ...
|
|
30
|
-
...tailwindConfig.keyframes,
|
|
30
|
+
...tailwindConfig.theme.extend.keyframes,
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
},
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export let content: string[];
|
|
2
|
+
export namespace theme {
|
|
3
|
+
namespace extend {
|
|
4
|
+
namespace animation {
|
|
5
|
+
let blob: string;
|
|
6
|
+
let blob1: string;
|
|
7
|
+
let blob2: string;
|
|
8
|
+
let blob3: string;
|
|
9
|
+
let blob4: string;
|
|
10
|
+
let blob5: string;
|
|
11
|
+
let blob6: string;
|
|
12
|
+
let float: string;
|
|
13
|
+
}
|
|
14
|
+
namespace keyframes {
|
|
15
|
+
let blob_1: {
|
|
16
|
+
'0%, 100%': {
|
|
17
|
+
transform: string;
|
|
18
|
+
};
|
|
19
|
+
'25%': {
|
|
20
|
+
transform: string;
|
|
21
|
+
};
|
|
22
|
+
'50%': {
|
|
23
|
+
transform: string;
|
|
24
|
+
};
|
|
25
|
+
'75%': {
|
|
26
|
+
transform: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export { blob_1 as blob };
|
|
30
|
+
let blob1_1: {
|
|
31
|
+
'0%, 100%': {
|
|
32
|
+
transform: string;
|
|
33
|
+
};
|
|
34
|
+
'25%': {
|
|
35
|
+
transform: string;
|
|
36
|
+
};
|
|
37
|
+
'50%': {
|
|
38
|
+
transform: string;
|
|
39
|
+
};
|
|
40
|
+
'75%': {
|
|
41
|
+
transform: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export { blob1_1 as blob1 };
|
|
45
|
+
let blob2_1: {
|
|
46
|
+
'0%, 100%': {
|
|
47
|
+
transform: string;
|
|
48
|
+
};
|
|
49
|
+
'25%': {
|
|
50
|
+
transform: string;
|
|
51
|
+
};
|
|
52
|
+
'50%': {
|
|
53
|
+
transform: string;
|
|
54
|
+
};
|
|
55
|
+
'75%': {
|
|
56
|
+
transform: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export { blob2_1 as blob2 };
|
|
60
|
+
let blob3_1: {
|
|
61
|
+
'0%, 100%': {
|
|
62
|
+
transform: string;
|
|
63
|
+
};
|
|
64
|
+
'25%': {
|
|
65
|
+
transform: string;
|
|
66
|
+
};
|
|
67
|
+
'50%': {
|
|
68
|
+
transform: string;
|
|
69
|
+
};
|
|
70
|
+
'75%': {
|
|
71
|
+
transform: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export { blob3_1 as blob3 };
|
|
75
|
+
let blob4_1: {
|
|
76
|
+
'0%, 100%': {
|
|
77
|
+
transform: string;
|
|
78
|
+
};
|
|
79
|
+
'25%': {
|
|
80
|
+
transform: string;
|
|
81
|
+
};
|
|
82
|
+
'50%': {
|
|
83
|
+
transform: string;
|
|
84
|
+
};
|
|
85
|
+
'75%': {
|
|
86
|
+
transform: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export { blob4_1 as blob4 };
|
|
90
|
+
let blob5_1: {
|
|
91
|
+
'0%, 100%': {
|
|
92
|
+
transform: string;
|
|
93
|
+
};
|
|
94
|
+
'25%': {
|
|
95
|
+
transform: string;
|
|
96
|
+
};
|
|
97
|
+
'50%': {
|
|
98
|
+
transform: string;
|
|
99
|
+
};
|
|
100
|
+
'75%': {
|
|
101
|
+
transform: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export { blob5_1 as blob5 };
|
|
105
|
+
let blob6_1: {
|
|
106
|
+
'0%, 100%': {
|
|
107
|
+
transform: string;
|
|
108
|
+
};
|
|
109
|
+
'25%': {
|
|
110
|
+
transform: string;
|
|
111
|
+
};
|
|
112
|
+
'50%': {
|
|
113
|
+
transform: string;
|
|
114
|
+
};
|
|
115
|
+
'75%': {
|
|
116
|
+
transform: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export { blob6_1 as blob6 };
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"types": "./lib-types/index.d.ts"
|
|
13
13
|
},
|
|
14
14
|
"./config": {
|
|
15
|
-
"import": "./src/tailwind.config.
|
|
15
|
+
"import": "./src/tailwind.config.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"lib",
|
|
20
20
|
"lib-types",
|
|
21
|
-
"src/tailwind.config.
|
|
21
|
+
"src/tailwind.config.js"
|
|
22
22
|
],
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=15.0.0"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function getBlobKeyFrame() {
|
|
2
|
+
const translateXPercentages = [0, 19, 38, 57, 76];
|
|
3
|
+
const translateYPercentages = [0, 12, 25, 38, 50];
|
|
4
|
+
const scaleValues = [0.8, 1, 1.2, 1.4];
|
|
5
|
+
|
|
6
|
+
const translateX0Key = Math.floor(Math.random() * 70);
|
|
7
|
+
const translateX0 = Math.floor(Math.random() * 70);
|
|
8
|
+
translateXPercentages.splice(translateX0Key, 1);
|
|
9
|
+
const translateX1Key = Math.floor(Math.random() * translateXPercentages.length);
|
|
10
|
+
const translateX1 = translateXPercentages[translateX1Key];
|
|
11
|
+
translateXPercentages.splice(translateX1Key, 1);
|
|
12
|
+
const translateX2Key = Math.floor(Math.random() * translateXPercentages.length);
|
|
13
|
+
const translateX2 = translateXPercentages[translateX2Key];
|
|
14
|
+
translateXPercentages.splice(translateX2Key, 1);
|
|
15
|
+
const translateX3Key = Math.floor(Math.random() * translateXPercentages.length);
|
|
16
|
+
const translateX3 = translateXPercentages[translateX3Key];
|
|
17
|
+
translateXPercentages.splice(translateX3Key, 1);
|
|
18
|
+
|
|
19
|
+
const translateY0Key = Math.floor(Math.random() * translateYPercentages.length);
|
|
20
|
+
const translateY0 = translateYPercentages[translateY0Key];
|
|
21
|
+
translateYPercentages.splice(translateY0Key, 1);
|
|
22
|
+
const translateY1Key = Math.floor(Math.random() * translateYPercentages.length);
|
|
23
|
+
const translateY1 = translateYPercentages[translateY1Key];
|
|
24
|
+
translateYPercentages.splice(translateY1Key, 1);
|
|
25
|
+
const translateY2Key = Math.floor(Math.random() * translateYPercentages.length);
|
|
26
|
+
const translateY2 = translateYPercentages[translateY2Key];
|
|
27
|
+
translateYPercentages.splice(translateY2Key, 1);
|
|
28
|
+
const translateY3Key = Math.floor(Math.random() * translateYPercentages.length);
|
|
29
|
+
const translateY3 = translateYPercentages[translateY3Key];
|
|
30
|
+
translateYPercentages.splice(translateY3Key, 1);
|
|
31
|
+
|
|
32
|
+
const scale0 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
|
|
33
|
+
const scale1 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
|
|
34
|
+
const scale2 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
|
|
35
|
+
const scale3 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
|
|
36
|
+
|
|
37
|
+
const keyframe = {
|
|
38
|
+
'0%, 100%': { transform: `translate(${translateX0}cqw, ${translateY0}cqh) scale(${scale0})` },
|
|
39
|
+
'25%': { transform: `translate(${translateX1}cqw, ${translateY1}cqh) scale(${scale1})` },
|
|
40
|
+
'50%': { transform: `translate(${translateX2}cqw, ${translateY2}cqh) scale(${scale2})` },
|
|
41
|
+
'75%': { transform: `translate(${translateX3}cqw, ${translateY3}cqh) scale(${scale3})` },
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return keyframe;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = {
|
|
48
|
+
content: ['./node_modules/@luminescent/ui/**/*.{mjs,cjs}'],
|
|
49
|
+
theme: {
|
|
50
|
+
extend: {
|
|
51
|
+
animation: {
|
|
52
|
+
blob: 'blob 15s infinite',
|
|
53
|
+
blob1: 'blob1 15s infinite',
|
|
54
|
+
blob2: 'blob2 15s infinite',
|
|
55
|
+
blob3: 'blob3 15s infinite',
|
|
56
|
+
blob4: 'blob4 15s infinite',
|
|
57
|
+
blob5: 'blob5 15s infinite',
|
|
58
|
+
blob6: 'blob6 15s infinite',
|
|
59
|
+
float: 'float 6s infinite',
|
|
60
|
+
},
|
|
61
|
+
keyframes: {
|
|
62
|
+
blob: getBlobKeyFrame(),
|
|
63
|
+
blob1: getBlobKeyFrame(),
|
|
64
|
+
blob2: getBlobKeyFrame(),
|
|
65
|
+
blob3: getBlobKeyFrame(),
|
|
66
|
+
blob4: getBlobKeyFrame(),
|
|
67
|
+
blob5: getBlobKeyFrame(),
|
|
68
|
+
blob6: getBlobKeyFrame(),
|
|
69
|
+
},
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|