daisyui 5.0.0-alpha.2 → 5.0.0-alpha.4
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/colors.css +8640 -0
- package/components/badge/class.json +18 -0
- package/components/button/class.json +24 -0
- package/components/button/index.js +12 -10
- package/components/button.css +10 -8
- package/components/checkbox/class.json +17 -0
- package/components/input/class.json +16 -0
- package/components/kbd/class.json +7 -0
- package/components/loading/class.json +21 -0
- package/components/loading/config.js +12 -0
- package/components/loading/index.css +1 -0
- package/components/loading/index.js +39 -0
- package/components/loading.css +42 -0
- package/components/mask/class.json +24 -0
- package/components/menu/class.json +15 -0
- package/components/menu/config.js +12 -0
- package/components/menu/index.css +1 -0
- package/components/menu/index.js +129 -0
- package/components/menu.css +237 -0
- package/components/radio/class.json +14 -0
- package/components/range/class.json +14 -0
- package/components/rating/class.json +5 -0
- package/components/select/class.json +16 -0
- package/components/tab/class.json +13 -0
- package/components/tab/config.js +12 -0
- package/components/tab/index.css +1 -0
- package/components/tab/index.js +165 -0
- package/components/tab.css +229 -0
- package/components/toggle/class.json +16 -0
- package/components/tooltip/class.json +15 -0
- package/components/tooltip/config.js +12 -0
- package/components/tooltip/index.css +1 -0
- package/components/tooltip/index.js +135 -0
- package/components/tooltip.css +173 -0
- package/full.css +20 -0
- package/functions/plugin.js +8 -8
- package/index.css +4 -0
- package/package.json +3 -1
- package/themes/dark/index.css +1 -0
- package/themes/default/index.css +1 -0
- package/themes/index.css +1 -0
- package/themes/light/index.css +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
"badge",
|
|
3
|
+
"badge-outline",
|
|
4
|
+
"badge-faded",
|
|
5
|
+
"badge-primary",
|
|
6
|
+
"badge-secondary",
|
|
7
|
+
"badge-accent",
|
|
8
|
+
"badge-neutral",
|
|
9
|
+
"badge-info",
|
|
10
|
+
"badge-success",
|
|
11
|
+
"badge-warning",
|
|
12
|
+
"badge-error",
|
|
13
|
+
"badge-ghost",
|
|
14
|
+
"badge-xs",
|
|
15
|
+
"badge-sm",
|
|
16
|
+
"badge-md",
|
|
17
|
+
"badge-lg"
|
|
18
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
"btn",
|
|
3
|
+
"btn-active",
|
|
4
|
+
"btn-primary",
|
|
5
|
+
"btn-secondary",
|
|
6
|
+
"btn-accent",
|
|
7
|
+
"btn-neutral",
|
|
8
|
+
"btn-info",
|
|
9
|
+
"btn-success",
|
|
10
|
+
"btn-warning",
|
|
11
|
+
"btn-error",
|
|
12
|
+
"glass",
|
|
13
|
+
"btn-ghost",
|
|
14
|
+
"btn-link",
|
|
15
|
+
"btn-outline",
|
|
16
|
+
"btn-xs",
|
|
17
|
+
"btn-sm",
|
|
18
|
+
"btn-md",
|
|
19
|
+
"btn-lg",
|
|
20
|
+
"btn-square",
|
|
21
|
+
"btn-circle",
|
|
22
|
+
"btn-wide",
|
|
23
|
+
"btn-block"
|
|
24
|
+
]
|
|
@@ -6,16 +6,17 @@ export default {
|
|
|
6
6
|
"borderWidth": "var(--spacing-button-border)",
|
|
7
7
|
"borderColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 2%)",
|
|
8
8
|
"borderBottomColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 4%)",
|
|
9
|
-
"boxShadow": "0 1px
|
|
9
|
+
"boxShadow": "0 1px 1px 0 oklch(0% 0 0/0.07)",
|
|
10
10
|
"&:hover": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"backgroundColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%)",
|
|
12
|
+
"borderColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%)",
|
|
13
|
+
"borderBottomColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%)"
|
|
14
14
|
},
|
|
15
15
|
"&.btn-active": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"backgroundColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%)",
|
|
17
|
+
"borderColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%)",
|
|
18
|
+
"borderBottomColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%)",
|
|
19
|
+
"boxShadow": "0 0 0 0 oklch(0% 0 0/0.07)"
|
|
19
20
|
},
|
|
20
21
|
"&:focus-visible": {
|
|
21
22
|
"@apply outline outline-2": {}
|
|
@@ -24,9 +25,10 @@ export default {
|
|
|
24
25
|
"&:focus": {
|
|
25
26
|
"transform": "scale(var(--btn-focus-scale, 0.98))",
|
|
26
27
|
"@apply animate-[button-pop_0s_ease-out]": {},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"backgroundColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%)",
|
|
29
|
+
"borderColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%)",
|
|
30
|
+
"borderBottomColor": "color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%)",
|
|
31
|
+
"boxShadow": "0 0 0 0 oklch(0% 0 0/0.07)"
|
|
30
32
|
},
|
|
31
33
|
"&:hover": {
|
|
32
34
|
"transform": "scale(var(--btn-focus-scale, 0.97))",
|
package/components/button.css
CHANGED
|
@@ -31,16 +31,17 @@
|
|
|
31
31
|
border-width: var(--spacing-button-border);
|
|
32
32
|
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 2%);
|
|
33
33
|
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 4%);
|
|
34
|
-
box-shadow: 0 1px
|
|
34
|
+
box-shadow: 0 1px 1px 0 oklch(0% 0 0/0.07);
|
|
35
35
|
&:hover {
|
|
36
|
-
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%);
|
|
37
|
-
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%);
|
|
38
36
|
background-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%);
|
|
37
|
+
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%);
|
|
38
|
+
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%);
|
|
39
39
|
}
|
|
40
40
|
&.btn-active {
|
|
41
|
-
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%);
|
|
42
|
-
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%);
|
|
43
41
|
background-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%);
|
|
42
|
+
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%);
|
|
43
|
+
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%);
|
|
44
|
+
box-shadow: 0 0 0 0 oklch(0% 0 0/0.07);
|
|
44
45
|
}
|
|
45
46
|
&:focus-visible {
|
|
46
47
|
outline-style: var(--tw-outline-style);
|
|
@@ -52,9 +53,10 @@
|
|
|
52
53
|
&:focus {
|
|
53
54
|
transform: scale(var(--btn-focus-scale, 0.98));
|
|
54
55
|
animation: button-pop 0s ease-out;
|
|
55
|
-
|
|
56
|
-
border-
|
|
57
|
-
|
|
56
|
+
background-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 5%);
|
|
57
|
+
border-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 7%);
|
|
58
|
+
border-bottom-color: color-mix(in oklab, var(--btn-bg, var(--color-base-200)), black 9%);
|
|
59
|
+
box-shadow: 0 0 0 0 oklch(0% 0 0/0.07);
|
|
58
60
|
}
|
|
59
61
|
&:hover {
|
|
60
62
|
transform: scale(var(--btn-focus-scale, 0.97));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
"checkbox",
|
|
3
|
+
"2s",
|
|
4
|
+
"3s",
|
|
5
|
+
"1s",
|
|
6
|
+
"checkbox-primary",
|
|
7
|
+
"checkbox-secondary",
|
|
8
|
+
"checkbox-accent",
|
|
9
|
+
"checkbox-success",
|
|
10
|
+
"checkbox-warning",
|
|
11
|
+
"checkbox-info",
|
|
12
|
+
"checkbox-error",
|
|
13
|
+
"checkbox-xs",
|
|
14
|
+
"checkbox-sm",
|
|
15
|
+
"checkbox-md",
|
|
16
|
+
"checkbox-lg"
|
|
17
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
"loading",
|
|
3
|
+
"loading-spinner",
|
|
4
|
+
"loading-dots",
|
|
5
|
+
"33",
|
|
6
|
+
"66",
|
|
7
|
+
"loading-ring",
|
|
8
|
+
"165",
|
|
9
|
+
"84",
|
|
10
|
+
"44",
|
|
11
|
+
"3",
|
|
12
|
+
"61",
|
|
13
|
+
"355",
|
|
14
|
+
"loading-ball",
|
|
15
|
+
"loading-bars",
|
|
16
|
+
"loading-infinity",
|
|
17
|
+
"loading-xs",
|
|
18
|
+
"loading-sm",
|
|
19
|
+
"loading-md",
|
|
20
|
+
"loading-lg"
|
|
21
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@config "./config.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
".loading": {
|
|
3
|
+
"@apply pointer-events-none inline-block aspect-square w-6 bg-current align-middle": {},
|
|
4
|
+
"maskSize": "100%",
|
|
5
|
+
"maskRepeat": "no-repeat",
|
|
6
|
+
"maskPosition": "center",
|
|
7
|
+
"maskImage": "url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E\")"
|
|
8
|
+
},
|
|
9
|
+
".loading-spinner": {
|
|
10
|
+
"maskImage": "url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E\")"
|
|
11
|
+
},
|
|
12
|
+
".loading-dots": {
|
|
13
|
+
"maskImage": "url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E\")"
|
|
14
|
+
},
|
|
15
|
+
".loading-ring": {
|
|
16
|
+
"maskImage": "url(\"data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")"
|
|
17
|
+
},
|
|
18
|
+
".loading-ball": {
|
|
19
|
+
"maskImage": "url(\"data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E\")"
|
|
20
|
+
},
|
|
21
|
+
".loading-bars": {
|
|
22
|
+
"maskImage": "url(\"data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_hzlK%7Banimation:spinner_vc4H .8s linear infinite;animation-delay:-.8s%7D.spinner_koGT%7Banimation-delay:-.65s%7D.spinner_YF1u%7Banimation-delay:-.5s%7D@keyframes spinner_vc4H%7B0%25%7By:1px;height:22px%7D93.75%25%7By:5px;height:14px;opacity:.2%7D%7D%3C/style%3E%3Crect class='spinner_hzlK' x='1' y='1' width='6' height='22'/%3E%3Crect class='spinner_hzlK spinner_koGT' x='9' y='1' width='6' height='22'/%3E%3Crect class='spinner_hzlK spinner_YF1u' x='17' y='1' width='6' height='22'/%3E%3C/svg%3E\")"
|
|
23
|
+
},
|
|
24
|
+
".loading-infinity": {
|
|
25
|
+
"maskImage": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering: auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='10' stroke-dasharray='205.271142578125 51.317785644531256' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.58892822265625'%3E%3C/animate%3E%3C/path%3E%3C/svg%3E\")"
|
|
26
|
+
},
|
|
27
|
+
".loading-xs": {
|
|
28
|
+
"@apply w-4": {}
|
|
29
|
+
},
|
|
30
|
+
".loading-sm": {
|
|
31
|
+
"@apply w-5": {}
|
|
32
|
+
},
|
|
33
|
+
".loading-md": {
|
|
34
|
+
"@apply w-6": {}
|
|
35
|
+
},
|
|
36
|
+
".loading-lg": {
|
|
37
|
+
"@apply w-10": {}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.loading {
|
|
2
|
+
pointer-events: none;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
aspect-ratio: 1 / 1;
|
|
5
|
+
width: var(--spacing-6, 1.5rem);
|
|
6
|
+
background-color: currentColor;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
mask-size: 100%;
|
|
9
|
+
mask-repeat: no-repeat;
|
|
10
|
+
mask-position: center;
|
|
11
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
|
12
|
+
}
|
|
13
|
+
.loading-spinner {
|
|
14
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
|
15
|
+
}
|
|
16
|
+
.loading-dots {
|
|
17
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_qM83%7Banimation:spinner_8HQG 1.05s infinite%7D.spinner_oXPr%7Banimation-delay:.1s%7D.spinner_ZTLf%7Banimation-delay:.2s%7D@keyframes spinner_8HQG%7B0%25,57.14%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);transform:translate(0)%7D28.57%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);transform:translateY(-6px)%7D100%25%7Btransform:translate(0)%7D%7D%3C/style%3E%3Ccircle class='spinner_qM83' cx='4' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_oXPr' cx='12' cy='12' r='3'/%3E%3Ccircle class='spinner_qM83 spinner_ZTLf' cx='20' cy='12' r='3'/%3E%3C/svg%3E");
|
|
18
|
+
}
|
|
19
|
+
.loading-ring {
|
|
20
|
+
mask-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
|
|
21
|
+
}
|
|
22
|
+
.loading-ball {
|
|
23
|
+
mask-image: url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_rXNP%7Banimation:spinner_YeBj .8s infinite%7D@keyframes spinner_YeBj%7B0%25%7Banimation-timing-function:cubic-bezier(0.33,0,.66,.33);cy:5px%7D46.875%25%7Bcy:20px;rx:4px;ry:4px%7D50%25%7Banimation-timing-function:cubic-bezier(0.33,.66,.66,1);cy:20.5px;rx:4.8px;ry:3px%7D53.125%25%7Brx:4px;ry:4px%7D100%25%7Bcy:5px%7D%7D%3C/style%3E%3Cellipse class='spinner_rXNP' cx='12' cy='5' rx='4' ry='4'/%3E%3C/svg%3E");
|
|
24
|
+
}
|
|
25
|
+
.loading-bars {
|
|
26
|
+
mask-image: url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_hzlK%7Banimation:spinner_vc4H .8s linear infinite;animation-delay:-.8s%7D.spinner_koGT%7Banimation-delay:-.65s%7D.spinner_YF1u%7Banimation-delay:-.5s%7D@keyframes spinner_vc4H%7B0%25%7By:1px;height:22px%7D93.75%25%7By:5px;height:14px;opacity:.2%7D%7D%3C/style%3E%3Crect class='spinner_hzlK' x='1' y='1' width='6' height='22'/%3E%3Crect class='spinner_hzlK spinner_koGT' x='9' y='1' width='6' height='22'/%3E%3Crect class='spinner_hzlK spinner_YF1u' x='17' y='1' width='6' height='22'/%3E%3C/svg%3E");
|
|
27
|
+
}
|
|
28
|
+
.loading-infinity {
|
|
29
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering: auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='10' stroke-dasharray='205.271142578125 51.317785644531256' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.58892822265625'%3E%3C/animate%3E%3C/path%3E%3C/svg%3E");
|
|
30
|
+
}
|
|
31
|
+
.loading-xs {
|
|
32
|
+
width: var(--spacing-4, 1rem);
|
|
33
|
+
}
|
|
34
|
+
.loading-sm {
|
|
35
|
+
width: var(--spacing-5, 1.25rem);
|
|
36
|
+
}
|
|
37
|
+
.loading-md {
|
|
38
|
+
width: var(--spacing-6, 1.5rem);
|
|
39
|
+
}
|
|
40
|
+
.loading-lg {
|
|
41
|
+
width: var(--spacing-10, 2.5rem);
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
"mask",
|
|
3
|
+
"mask-half-1",
|
|
4
|
+
"mask-half-2",
|
|
5
|
+
"mask-squircle",
|
|
6
|
+
"mask-decagon",
|
|
7
|
+
"mask-diamond",
|
|
8
|
+
"mask-heart",
|
|
9
|
+
"mask-hexagon",
|
|
10
|
+
"mask-hexagon-2",
|
|
11
|
+
"mask-circle",
|
|
12
|
+
"mask-parallelogram",
|
|
13
|
+
"mask-parallelogram-2",
|
|
14
|
+
"mask-parallelogram-3",
|
|
15
|
+
"mask-parallelogram-4",
|
|
16
|
+
"mask-pentagon",
|
|
17
|
+
"mask-square",
|
|
18
|
+
"mask-star",
|
|
19
|
+
"mask-star-2",
|
|
20
|
+
"mask-triangle",
|
|
21
|
+
"mask-triangle-2",
|
|
22
|
+
"mask-triangle-3",
|
|
23
|
+
"mask-triangle-4"
|
|
24
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@config "./config.js";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
".menu": {
|
|
3
|
+
"@apply inline-flex flex-col flex-wrap text-sm p-2": {},
|
|
4
|
+
":where(li ul)": {
|
|
5
|
+
"@apply relative whitespace-nowrap ms-4 ps-2": {},
|
|
6
|
+
"&:before": {
|
|
7
|
+
"@apply bg-base-content absolute bottom-3 start-0 top-3 w-px opacity-10": {},
|
|
8
|
+
"content": "\"\""
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
":where(li > .menu-dropdown:not(.menu-dropdown-show))": {
|
|
12
|
+
"@apply hidden": {}
|
|
13
|
+
},
|
|
14
|
+
":where(li:not(.menu-title) > *:not(ul, details, .menu-title, .btn)),\n :where(li:not(.menu-title) > details > summary:not(.menu-title))": {
|
|
15
|
+
"@apply rounded-btn px-4 py-2 text-start transition duration-200 ease-out grid grid-flow-col content-start items-center gap-2": {},
|
|
16
|
+
"gridAutoColumns": "minmax(auto, max-content) auto max-content",
|
|
17
|
+
"textWrap": "balance",
|
|
18
|
+
"userSelect": "none"
|
|
19
|
+
},
|
|
20
|
+
":where(li > details > summary)": {
|
|
21
|
+
"@apply outline-none": {},
|
|
22
|
+
"&::-webkit-details-marker": {
|
|
23
|
+
"@apply hidden": {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
":where(li > details > summary),\n :where(li > .menu-dropdown-toggle)": {
|
|
27
|
+
"&:after": {
|
|
28
|
+
"@apply justify-self-end": {},
|
|
29
|
+
"display": "block",
|
|
30
|
+
"height": "0.375rem",
|
|
31
|
+
"width": "0.375rem",
|
|
32
|
+
"rotate": "-135deg",
|
|
33
|
+
"translate": "0 -1px",
|
|
34
|
+
"transitionProperty": "rotate, translate",
|
|
35
|
+
"transitionDuration": "0.2s",
|
|
36
|
+
"content": "\"\"",
|
|
37
|
+
"transformOrigin": "50% 50%",
|
|
38
|
+
"boxShadow": "2px 2px inset",
|
|
39
|
+
"pointerEvents": "none"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
":where(li > details[open] > summary):after,\n :where(li > .menu-dropdown-toggle.menu-dropdown-show):after": {
|
|
43
|
+
"rotate": "45deg",
|
|
44
|
+
"translate": "0 1px"
|
|
45
|
+
},
|
|
46
|
+
":where(li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title)),\n :where(li:not(.menu-title, .disabled) > details > summary:not(.menu-title))": {
|
|
47
|
+
"&:not(.menu-active, :active, .btn)": {
|
|
48
|
+
"&.menu-focus,\n &:focus-visible": {
|
|
49
|
+
"@apply bg-base-content/10 text-base-content cursor-pointer outline-none": {}
|
|
50
|
+
},
|
|
51
|
+
"&:hover": {
|
|
52
|
+
"@apply cursor-pointer outline-none bg-base-content/10": {}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
":where(li:empty)": {
|
|
57
|
+
"@apply bg-base-content opacity-10": {},
|
|
58
|
+
"margin": "0.5rem 1rem",
|
|
59
|
+
"height": "1px"
|
|
60
|
+
},
|
|
61
|
+
":where(li)": {
|
|
62
|
+
"@apply relative flex shrink-0 flex-col flex-wrap items-stretch": {},
|
|
63
|
+
".badge": {
|
|
64
|
+
"@apply justify-self-end": {}
|
|
65
|
+
},
|
|
66
|
+
"&>*:not(ul, .menu-title, details, .btn):active,\n &>*:not(ul, .menu-title, details, .btn).menu-active,\n &>details>summary:active": {
|
|
67
|
+
"@apply bg-neutral text-neutral-content bg-neutral text-neutral-content outline-none": {}
|
|
68
|
+
},
|
|
69
|
+
"&.menu-disabled": {
|
|
70
|
+
"@apply text-base-content/30 cursor-not-allowed select-none": {}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
".menu-title": {
|
|
75
|
+
"@apply text-base-content/40 px-4 py-2 text-sm font-bold": {}
|
|
76
|
+
},
|
|
77
|
+
".menu-horizontal": {
|
|
78
|
+
"@apply inline-flex flex-row": {},
|
|
79
|
+
"&>li:not(.menu-title)>details>ul": {
|
|
80
|
+
"@apply absolute ms-0 mt-4 py-2 pe-2": {}
|
|
81
|
+
},
|
|
82
|
+
"&>li>details>ul": {
|
|
83
|
+
"&:before": {
|
|
84
|
+
"content": "none"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
":where(&>li:not(.menu-title)>details>ul)": {
|
|
88
|
+
"@apply bg-base-100 rounded-box shadow": {}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
".menu-vertical": {
|
|
92
|
+
"@apply inline-flex flex-col": {},
|
|
93
|
+
"&>li:not(.menu-title)>details>ul": {
|
|
94
|
+
"@apply relative ms-4 mt-0 py-0 pe-0": {}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
".menu-xs": {
|
|
98
|
+
":where(li:not(.menu-title) > *:not(ul, details, .menu-title)),\n :where(li:not(.menu-title) > details > summary:not(.menu-title))": {
|
|
99
|
+
"@apply rounded px-2 py-1 text-xs": {}
|
|
100
|
+
},
|
|
101
|
+
".menu-title": {
|
|
102
|
+
"@apply px-2 py-1": {}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
".menu-sm": {
|
|
106
|
+
":where(li:not(.menu-title) > *:not(ul, details, .menu-title)),\n :where(li:not(.menu-title) > details > summary:not(.menu-title))": {
|
|
107
|
+
"@apply rounded-btn px-3 py-1 text-sm": {}
|
|
108
|
+
},
|
|
109
|
+
".menu-title": {
|
|
110
|
+
"@apply px-3 py-2": {}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
".menu-md": {
|
|
114
|
+
":where(li:not(.menu-title) > *:not(ul, details, .menu-title)),\n :where(li:not(.menu-title) > details > summary:not(.menu-title))": {
|
|
115
|
+
"@apply rounded-btn px-4 py-2 text-sm": {}
|
|
116
|
+
},
|
|
117
|
+
".menu-title": {
|
|
118
|
+
"@apply px-4 py-2": {}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
".menu-lg": {
|
|
122
|
+
":where(li:not(.menu-title) > *:not(ul, details, .menu-title)),\n :where(li:not(.menu-title) > details > summary:not(.menu-title))": {
|
|
123
|
+
"@apply rounded-btn px-6 py-3 text-lg": {}
|
|
124
|
+
},
|
|
125
|
+
".menu-title": {
|
|
126
|
+
"@apply px-6 py-3": {}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|