vueless 0.0.221 → 0.0.222

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": "vueless",
3
- "version": "0.0.221",
3
+ "version": "0.0.222",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -1,6 +1,6 @@
1
1
  export default /*tw*/ {
2
2
  progress: {
3
- base: "top-0 left-0 right-0 fixed h-[3px] transition ease-linear bg-{color}-500",
3
+ base: "top-0 left-0 right-0 fixed h-[3px] transition-all ease-linear bg-{color}-500",
4
4
  variants: {
5
5
  error: {
6
6
  true: "bg-red-500",
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export const ULoaderTop = "ULoaderTop";
6
6
 
7
- export const MAXIMUM = 97.5;
7
+ export const MAXIMUM = 99;
8
8
  export const SPEED = 150;
@@ -201,15 +201,17 @@ function increase(amount) {
201
201
 
202
202
  if (currentProgress < 100 && typeof amount !== "number") {
203
203
  if (currentProgress >= 0 && currentProgress < 25) {
204
- amount = Math.random() * 3 + 3;
204
+ amount = 4;
205
205
  } else if (currentProgress >= 25 && currentProgress < 50) {
206
- amount = Math.random() * 3;
207
- } else if (currentProgress >= 50 && currentProgress < 85) {
208
- amount = Math.random() * 2;
209
- } else if (currentProgress >= 85 && currentProgress < 99) {
206
+ amount = 3;
207
+ } else if (currentProgress >= 50 && currentProgress < 75) {
208
+ amount = 2;
209
+ } else if (currentProgress >= 75 && currentProgress < 90) {
210
+ amount = 1;
211
+ } else if (currentProgress >= 90 && currentProgress < 95) {
210
212
  amount = 0.5;
211
213
  } else {
212
- amount = 0;
214
+ amount = 0.05;
213
215
  }
214
216
  }
215
217
 
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.221",
4
+ "version": "0.0.222",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",