@luminescent/ui-qwik 1.0.5 → 1.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui-qwik",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "description": "Luminescent UI library",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",
@@ -16,7 +16,7 @@
16
16
  "files": [
17
17
  "lib",
18
18
  "lib-types",
19
- "src/tailwind"
19
+ "src/tailwind.config.js"
20
20
  ],
21
21
  "engines": {
22
22
  "node": ">=15.0.0"
@@ -34,7 +34,6 @@
34
34
  "dev": "vite --mode ssr",
35
35
  "dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
36
36
  "lint": "eslint \"src/**/*.ts*\"",
37
- "release": "np",
38
37
  "start": "vite --open --mode ssr",
39
38
  "test": "echo \"No test specified\" && exit 0",
40
39
  "qwik": "qwik"
@@ -51,7 +50,6 @@
51
50
  "chart.js": "^4.4.3",
52
51
  "eslint": "^8.57.0",
53
52
  "eslint-plugin-qwik": "latest",
54
- "np": "^10.0.6",
55
53
  "postcss": "^8.4.38",
56
54
  "tailwindcss": "3.4.4",
57
55
  "typescript": "5.5.2",
@@ -0,0 +1,86 @@
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() * translateXPercentages.length);
7
+ const translateX0 = translateXPercentages[translateX0Key];
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
+ const luminescent = {
48
+ 50 : "hsl(286deg, 65%, 97%)",
49
+ 100: "hsl(286deg, 60%, 95%)",
50
+ 200: "hsl(286deg, 55%, 90%)",
51
+ 300: "hsl(286deg, 50%, 82%)",
52
+ 400: "hsl(286deg, 45%, 75%)",
53
+ 500: "hsl(286deg, 40%, 60%)",
54
+ 600: "hsl(286deg, 35%, 51%)",
55
+ 700: "hsl(286deg, 30%, 42%)",
56
+ 800: "hsl(286deg, 25%, 35%)",
57
+ 900: "hsl(286deg, 20%, 30%)",
58
+ 950: "hsl(286deg, 15%, 17%)"
59
+ };
60
+
61
+ module.exports = {
62
+ content: ['./node_modules/@luminescent/ui/**/*.{mjs,cjs}'],
63
+ theme: {
64
+ extend: {
65
+ colors: { luminescent },
66
+ animation: {
67
+ blob: 'blob 15s infinite',
68
+ blob1: 'blob1 15s infinite',
69
+ blob2: 'blob2 15s infinite',
70
+ blob3: 'blob3 15s infinite',
71
+ blob4: 'blob4 15s infinite',
72
+ blob5: 'blob5 15s infinite',
73
+ blob6: 'blob6 15s infinite',
74
+ },
75
+ keyframes: {
76
+ blob: getBlobKeyFrame(),
77
+ blob1: getBlobKeyFrame(),
78
+ blob2: getBlobKeyFrame(),
79
+ blob3: getBlobKeyFrame(),
80
+ blob4: getBlobKeyFrame(),
81
+ blob5: getBlobKeyFrame(),
82
+ blob6: getBlobKeyFrame(),
83
+ },
84
+ },
85
+ },
86
+ };