evelearn-theme 2.0.32 → 2.0.34
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/dist/index.js +13 -34
- package/dist/index.mjs +13 -34
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -455,23 +455,23 @@ var Button = /* @__PURE__ */ __name(function(param) {
|
|
|
455
455
|
var styled = /* @__PURE__ */ __name(function() {
|
|
456
456
|
switch(kind){
|
|
457
457
|
case "primary":
|
|
458
|
-
return clsx__default.default("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
458
|
+
return clsx__default.default("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
459
459
|
case "indigo":
|
|
460
|
-
return clsx__default.default("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
460
|
+
return clsx__default.default("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
461
461
|
case "green":
|
|
462
|
-
return clsx__default.default("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
462
|
+
return clsx__default.default("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
463
463
|
case "teal":
|
|
464
|
-
return clsx__default.default("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
464
|
+
return clsx__default.default("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
465
465
|
case "secondary":
|
|
466
|
-
return clsx__default.default("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50
|
|
466
|
+
return clsx__default.default("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
467
467
|
case "base":
|
|
468
|
-
return clsx__default.default("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50
|
|
468
|
+
return clsx__default.default("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50 dark:hover:bg-slate-400 hover:bg-slate-100");
|
|
469
469
|
case "gray":
|
|
470
|
-
return clsx__default.default("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50
|
|
470
|
+
return clsx__default.default("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
471
471
|
case "alert":
|
|
472
|
-
return clsx__default.default("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50
|
|
472
|
+
return clsx__default.default("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
473
473
|
case "warning":
|
|
474
|
-
return clsx__default.default("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50
|
|
474
|
+
return clsx__default.default("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
475
475
|
}
|
|
476
476
|
}, "styled");
|
|
477
477
|
var sized = /* @__PURE__ */ __name(function() {
|
|
@@ -489,36 +489,15 @@ var Button = /* @__PURE__ */ __name(function(param) {
|
|
|
489
489
|
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
490
490
|
type: type || "button",
|
|
491
491
|
disabled: disabled,
|
|
492
|
-
className: clsx__default.default("
|
|
492
|
+
className: clsx__default.default("squircle cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
|
|
493
493
|
onClick: onClick,
|
|
494
494
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
495
495
|
className: "w-full max-h-11",
|
|
496
496
|
children: loading ? /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
497
497
|
className: "flex w-full justify-center items-center",
|
|
498
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
stroke: "currentColor",
|
|
502
|
-
strokeLinecap: "round",
|
|
503
|
-
strokeLinejoin: "round",
|
|
504
|
-
strokeWidth: "2.5",
|
|
505
|
-
className: "size-10",
|
|
506
|
-
viewBox: "0 0 24 24",
|
|
507
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
508
|
-
d: "M2 16s9-15 20-4C11 23 2 8 2 8",
|
|
509
|
-
strokeDasharray: "70",
|
|
510
|
-
strokeDashoffset: "70",
|
|
511
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("animate", {
|
|
512
|
-
attributeName: "stroke-dashoffset",
|
|
513
|
-
calcMode: "spline",
|
|
514
|
-
dur: "2",
|
|
515
|
-
keySplines: "0 0 1 1",
|
|
516
|
-
repeatCount: "indefinite",
|
|
517
|
-
from: "70",
|
|
518
|
-
to: "-70",
|
|
519
|
-
fill: "freeze"
|
|
520
|
-
})
|
|
521
|
-
})
|
|
498
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Spinner_default, {
|
|
499
|
+
white: true,
|
|
500
|
+
size: 32
|
|
522
501
|
})
|
|
523
502
|
}) : children
|
|
524
503
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -447,23 +447,23 @@ var Button = /* @__PURE__ */ __name(function(param) {
|
|
|
447
447
|
var styled = /* @__PURE__ */ __name(function() {
|
|
448
448
|
switch(kind){
|
|
449
449
|
case "primary":
|
|
450
|
-
return clsx("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
450
|
+
return clsx("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
451
451
|
case "indigo":
|
|
452
|
-
return clsx("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
452
|
+
return clsx("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
453
453
|
case "green":
|
|
454
|
-
return clsx("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
454
|
+
return clsx("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
455
455
|
case "teal":
|
|
456
|
-
return clsx("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50
|
|
456
|
+
return clsx("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
457
457
|
case "secondary":
|
|
458
|
-
return clsx("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50
|
|
458
|
+
return clsx("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
459
459
|
case "base":
|
|
460
|
-
return clsx("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50
|
|
460
|
+
return clsx("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50 dark:hover:bg-slate-400 hover:bg-slate-100");
|
|
461
461
|
case "gray":
|
|
462
|
-
return clsx("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50
|
|
462
|
+
return clsx("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
463
463
|
case "alert":
|
|
464
|
-
return clsx("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50
|
|
464
|
+
return clsx("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
465
465
|
case "warning":
|
|
466
|
-
return clsx("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50
|
|
466
|
+
return clsx("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50 hover:bg-black/10");
|
|
467
467
|
}
|
|
468
468
|
}, "styled");
|
|
469
469
|
var sized = /* @__PURE__ */ __name(function() {
|
|
@@ -481,36 +481,15 @@ var Button = /* @__PURE__ */ __name(function(param) {
|
|
|
481
481
|
return /* @__PURE__ */ jsx("button", {
|
|
482
482
|
type: type || "button",
|
|
483
483
|
disabled: disabled,
|
|
484
|
-
className: clsx("
|
|
484
|
+
className: clsx("squircle cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
|
|
485
485
|
onClick: onClick,
|
|
486
486
|
children: /* @__PURE__ */ jsx("div", {
|
|
487
487
|
className: "w-full max-h-11",
|
|
488
488
|
children: loading ? /* @__PURE__ */ jsx("div", {
|
|
489
489
|
className: "flex w-full justify-center items-center",
|
|
490
|
-
children: /* @__PURE__ */ jsx(
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
stroke: "currentColor",
|
|
494
|
-
strokeLinecap: "round",
|
|
495
|
-
strokeLinejoin: "round",
|
|
496
|
-
strokeWidth: "2.5",
|
|
497
|
-
className: "size-10",
|
|
498
|
-
viewBox: "0 0 24 24",
|
|
499
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
500
|
-
d: "M2 16s9-15 20-4C11 23 2 8 2 8",
|
|
501
|
-
strokeDasharray: "70",
|
|
502
|
-
strokeDashoffset: "70",
|
|
503
|
-
children: /* @__PURE__ */ jsx("animate", {
|
|
504
|
-
attributeName: "stroke-dashoffset",
|
|
505
|
-
calcMode: "spline",
|
|
506
|
-
dur: "2",
|
|
507
|
-
keySplines: "0 0 1 1",
|
|
508
|
-
repeatCount: "indefinite",
|
|
509
|
-
from: "70",
|
|
510
|
-
to: "-70",
|
|
511
|
-
fill: "freeze"
|
|
512
|
-
})
|
|
513
|
-
})
|
|
490
|
+
children: /* @__PURE__ */ jsx(Spinner_default, {
|
|
491
|
+
white: true,
|
|
492
|
+
size: 32
|
|
514
493
|
})
|
|
515
494
|
}) : children
|
|
516
495
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evelearn-theme",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.34",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"use-debounce": "^10.0.4"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"clsx": "^2.1.1"
|
|
46
|
+
"clsx": "^2.1.1",
|
|
47
|
+
"tailwindcss-corner-shape": "^1.4.5"
|
|
47
48
|
}
|
|
48
49
|
}
|