@macroui/macroui 1.0.31 → 4.0.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/LICENSE +21 -0
- package/README.md +27 -193
- package/dist/base.js +1 -0
- package/dist/{macroui.css → full.css} +0 -9014
- package/dist/index.d.ts +122 -0
- package/dist/index.js +149 -0
- package/dist/styled.css +5192 -0
- package/dist/styled.js +1 -0
- package/dist/themes.css +2118 -0
- package/dist/unstyled.css +1330 -0
- package/dist/unstyled.js +1 -0
- package/dist/utilities-styled.js +1 -0
- package/dist/utilities-unstyled.js +1 -0
- package/dist/utilities.js +1 -0
- package/package.json +30 -66
- package/src/base/properties.css +5 -0
- package/src/base/reset.css +130 -0
- package/src/base/rootcolor.css +9 -0
- package/src/base/rootscrollgutter.css +21 -0
- package/src/base/rootscrolllock.css +4 -0
- package/src/base/scrollbar.css +3 -0
- package/src/base/svg.css +3 -0
- package/src/components/alert.css +126 -0
- package/src/components/avatar.css +60 -0
- package/src/components/badge.css +151 -0
- package/src/components/breadcrumbs.css +40 -0
- package/src/components/button.css +362 -0
- package/src/components/calendar.css +549 -0
- package/src/components/card.css +203 -0
- package/src/components/carousel.css +59 -0
- package/src/components/chat.css +157 -0
- package/src/components/checkbox.css +174 -0
- package/src/components/collapse.css +302 -0
- package/src/components/countdown.css +56 -0
- package/src/components/diff.css +93 -0
- package/src/components/divider.css +148 -0
- package/src/components/dock.css +123 -0
- package/src/components/drawer.css +166 -0
- package/src/components/dropdown.css +247 -0
- package/src/components/fab.css +139 -0
- package/src/components/fieldset.css +23 -0
- package/src/components/fileinput.css +265 -0
- package/src/components/filter.css +42 -0
- package/src/components/footer.css +45 -0
- package/src/components/hero.css +21 -0
- package/src/components/hover3d.css +128 -0
- package/src/components/hovergallery.css +87 -0
- package/src/components/indicator.css +76 -0
- package/src/components/input.css +263 -0
- package/src/components/kbd.css +49 -0
- package/src/components/label.css +101 -0
- package/src/components/link.css +116 -0
- package/src/components/list.css +58 -0
- package/src/components/loading.css +76 -0
- package/src/components/mask.css +108 -0
- package/src/components/menu.css +298 -0
- package/src/components/mockup.css +150 -0
- package/src/components/modal.css +182 -0
- package/src/components/navbar.css +36 -0
- package/src/components/progress.css +108 -0
- package/src/components/radialprogress.css +39 -0
- package/src/components/radio.css +158 -0
- package/src/components/range.css +186 -0
- package/src/components/rating.css +114 -0
- package/src/components/select.css +284 -0
- package/src/components/skeleton.css +41 -0
- package/src/components/stack.css +80 -0
- package/src/components/stat.css +73 -0
- package/src/components/status.css +92 -0
- package/src/components/steps.css +168 -0
- package/src/components/swap.css +94 -0
- package/src/components/tab.css +557 -0
- package/src/components/table.css +126 -0
- package/src/components/textarea.css +179 -0
- package/src/components/textrotate.css +71 -0
- package/src/components/timeline.css +250 -0
- package/src/components/toast.css +68 -0
- package/src/components/toggle.css +239 -0
- package/src/components/tooltip.css +203 -0
- package/src/components/validator.css +47 -0
- package/src/themes/abyss.css +29 -0
- package/src/themes/acid.css +29 -0
- package/src/themes/aqua.css +29 -0
- package/src/themes/autumn.css +29 -0
- package/src/themes/black.css +29 -0
- package/src/themes/bumblebee.css +29 -0
- package/src/themes/business.css +29 -0
- package/src/themes/caramellatte.css +29 -0
- package/src/themes/cmyk.css +29 -0
- package/src/themes/coffee.css +29 -0
- package/src/themes/corporate.css +29 -0
- package/src/themes/cupcake.css +29 -0
- package/src/themes/cyberpunk.css +29 -0
- package/src/themes/dark.css +29 -0
- package/src/themes/dim.css +29 -0
- package/src/themes/dracula.css +29 -0
- package/src/themes/emerald.css +29 -0
- package/src/themes/fantasy.css +29 -0
- package/src/themes/forest.css +29 -0
- package/src/themes/garden.css +29 -0
- package/src/themes/halloween.css +29 -0
- package/src/themes/lemonade.css +29 -0
- package/src/themes/light.css +29 -0
- package/src/themes/lofi.css +29 -0
- package/src/themes/luxury.css +29 -0
- package/src/themes/night.css +29 -0
- package/src/themes/nord.css +29 -0
- package/src/themes/pastel.css +29 -0
- package/src/themes/retro.css +29 -0
- package/src/themes/silk.css +29 -0
- package/src/themes/sunset.css +29 -0
- package/src/themes/synthwave.css +29 -0
- package/src/themes/valentine.css +29 -0
- package/src/themes/winter.css +29 -0
- package/src/themes/wireframe.css +29 -0
- package/src/utilities/glass.css +20 -0
- package/src/utilities/join.css +207 -0
- package/src/utilities/radius.css +119 -0
- package/src/utilities/typography.css +31 -0
- package/dist/index.cjs.js +0 -19742
- package/dist/index.es.js +0 -19564
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.rating {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply relative inline-flex align-middle;
|
|
4
|
+
|
|
5
|
+
& input {
|
|
6
|
+
border: none;
|
|
7
|
+
@apply appearance-none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(*) {
|
|
11
|
+
@apply bg-base-content h-6 w-6 rounded-none opacity-20;
|
|
12
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
13
|
+
animation: rating 0.25s ease-out;
|
|
14
|
+
}
|
|
15
|
+
&:is(input) {
|
|
16
|
+
@apply cursor-pointer;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& .rating-hidden {
|
|
21
|
+
@apply w-2 bg-transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input[type="radio"]:checked {
|
|
25
|
+
background-image: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
&:checked,
|
|
30
|
+
&[aria-checked="true"],
|
|
31
|
+
&[aria-current="true"],
|
|
32
|
+
&:has(~ *:checked, ~ *[aria-checked="true"], ~ *[aria-current="true"]) {
|
|
33
|
+
@apply opacity-100;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
scale: 1.1;
|
|
38
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
39
|
+
transition: scale 0.2s ease-out;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& *:active:focus {
|
|
45
|
+
animation: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& *:active:focus {
|
|
49
|
+
scale: 1.1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@layer daisyui.l1.l2 {
|
|
54
|
+
&.rating-xs :where(*:not(.rating-hidden)) {
|
|
55
|
+
@apply size-4;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.rating-sm :where(*:not(.rating-hidden)) {
|
|
59
|
+
@apply size-5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.rating-md :where(*:not(.rating-hidden)) {
|
|
63
|
+
@apply size-6;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.rating-lg :where(*:not(.rating-hidden)) {
|
|
67
|
+
@apply size-7;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.rating-xl :where(*:not(.rating-hidden)) {
|
|
71
|
+
@apply size-8;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rating-half {
|
|
77
|
+
@layer daisyui.l1.l2 {
|
|
78
|
+
:where(*:not(.rating-hidden)) {
|
|
79
|
+
@apply w-3;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.rating-half {
|
|
85
|
+
@layer daisyui.l1.l2 {
|
|
86
|
+
&.rating-xs *:not(.rating-hidden) {
|
|
87
|
+
@apply w-2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.rating-sm *:not(.rating-hidden) {
|
|
91
|
+
@apply w-2.5;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.rating-md *:not(.rating-hidden) {
|
|
95
|
+
@apply w-3;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.rating-lg *:not(.rating-hidden) {
|
|
99
|
+
@apply w-[.875rem];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.rating-xl *:not(.rating-hidden) {
|
|
103
|
+
@apply w-4;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes rating {
|
|
109
|
+
0%,
|
|
110
|
+
40% {
|
|
111
|
+
scale: 1.1;
|
|
112
|
+
filter: brightness(1.05) contrast(1.05);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
.select {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
border: var(--border) solid #0000;
|
|
4
|
+
@apply bg-base-100 relative inline-flex shrink appearance-none items-center gap-1.5 ps-3 pe-7 align-middle;
|
|
5
|
+
width: clamp(3rem, 20rem, 100%);
|
|
6
|
+
height: var(--size);
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
touch-action: manipulation;
|
|
9
|
+
border-start-start-radius: var(--join-ss, var(--radius-field));
|
|
10
|
+
border-start-end-radius: var(--join-se, var(--radius-field));
|
|
11
|
+
border-end-start-radius: var(--join-es, var(--radius-field));
|
|
12
|
+
border-end-end-radius: var(--join-ee, var(--radius-field));
|
|
13
|
+
background-image:
|
|
14
|
+
linear-gradient(45deg, #0000 50%, currentColor 50%),
|
|
15
|
+
linear-gradient(135deg, currentColor 50%, #0000 50%);
|
|
16
|
+
background-position:
|
|
17
|
+
calc(100% - 20px) calc(1px + 50%),
|
|
18
|
+
calc(100% - 16.1px) calc(1px + 50%);
|
|
19
|
+
background-size:
|
|
20
|
+
4px 4px,
|
|
21
|
+
4px 4px;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
box-shadow:
|
|
27
|
+
0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000) inset,
|
|
28
|
+
0 -1px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
29
|
+
border-color: var(--input-color);
|
|
30
|
+
--input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
|
|
31
|
+
--size: calc(var(--size-field, 0.25rem) * 10);
|
|
32
|
+
[dir="rtl"] & {
|
|
33
|
+
background-position:
|
|
34
|
+
calc(0% + 12px) calc(1px + 50%),
|
|
35
|
+
calc(0% + 16px) calc(1px + 50%);
|
|
36
|
+
}
|
|
37
|
+
&[multiple] {
|
|
38
|
+
@apply h-auto overflow-auto py-3 pe-3;
|
|
39
|
+
background-image: none;
|
|
40
|
+
}
|
|
41
|
+
select {
|
|
42
|
+
@apply -ms-3 -me-7 w-[calc(100%+2.75rem)] appearance-none ps-3 pe-7;
|
|
43
|
+
height: calc(100% - calc(var(--border) * 2));
|
|
44
|
+
align-items: center;
|
|
45
|
+
background: inherit;
|
|
46
|
+
border-radius: inherit;
|
|
47
|
+
border-style: none;
|
|
48
|
+
&:focus,
|
|
49
|
+
&:focus-within {
|
|
50
|
+
@apply outline-hidden;
|
|
51
|
+
}
|
|
52
|
+
&:not(:last-child) {
|
|
53
|
+
@apply -me-5.5;
|
|
54
|
+
background-image: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus,
|
|
59
|
+
&:focus-within {
|
|
60
|
+
--input-color: var(--color-base-content);
|
|
61
|
+
box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000);
|
|
62
|
+
outline: 2px solid var(--input-color);
|
|
63
|
+
outline-offset: 2px;
|
|
64
|
+
isolation: isolate;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:has(> select[disabled]),
|
|
68
|
+
&:is(:disabled, [disabled]),
|
|
69
|
+
fieldset:disabled & {
|
|
70
|
+
@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 placeholder-base-content/20 cursor-not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:has(> select[disabled]) > select[disabled] {
|
|
74
|
+
@apply cursor-not-allowed;
|
|
75
|
+
}
|
|
76
|
+
&,
|
|
77
|
+
& select {
|
|
78
|
+
@supports (appearance: base-select) {
|
|
79
|
+
appearance: base-select;
|
|
80
|
+
}
|
|
81
|
+
&::picker(select) {
|
|
82
|
+
color: inherit;
|
|
83
|
+
max-height: min(24rem, 70dvh);
|
|
84
|
+
margin-inline: 0.5rem;
|
|
85
|
+
translate: -0.5rem 0;
|
|
86
|
+
border: var(--border) solid var(--color-base-200);
|
|
87
|
+
@apply rounded-box my-2 p-2;
|
|
88
|
+
background-color: inherit;
|
|
89
|
+
box-shadow: 0 2px calc(var(--depth) * 3px) -2px oklch(0% 0 0/0.2);
|
|
90
|
+
box-shadow:
|
|
91
|
+
0 20px 25px -5px rgb(0 0 0 / calc(var(--depth) * 0.1)),
|
|
92
|
+
0 8px 10px -6px rgb(0 0 0 / calc(var(--depth) * 0.1));
|
|
93
|
+
}
|
|
94
|
+
@supports (appearance: base-select) {
|
|
95
|
+
&::picker(select) {
|
|
96
|
+
appearance: base-select;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&::picker-icon {
|
|
100
|
+
@apply hidden;
|
|
101
|
+
}
|
|
102
|
+
/* option::checkmark {
|
|
103
|
+
@apply hidden;
|
|
104
|
+
} */
|
|
105
|
+
optgroup {
|
|
106
|
+
@apply pt-[0.5em];
|
|
107
|
+
option {
|
|
108
|
+
&:nth-child(1) {
|
|
109
|
+
@apply mt-[0.5em];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
option {
|
|
114
|
+
@apply rounded-field px-3 py-1.5;
|
|
115
|
+
transition-property: color, background-color;
|
|
116
|
+
transition-duration: 0.2s;
|
|
117
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
118
|
+
white-space: normal;
|
|
119
|
+
&:not(:disabled) {
|
|
120
|
+
&:hover,
|
|
121
|
+
&:focus-visible {
|
|
122
|
+
@apply bg-base-content/10 cursor-pointer outline-hidden;
|
|
123
|
+
}
|
|
124
|
+
&:active {
|
|
125
|
+
@apply bg-neutral text-neutral-content;
|
|
126
|
+
box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--color-neutral);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
[dir="rtl"] & {
|
|
132
|
+
&::picker(select),
|
|
133
|
+
select::picker(select) {
|
|
134
|
+
translate: 0.5rem 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.select-ghost {
|
|
141
|
+
@layer daisyui.l1.l2 {
|
|
142
|
+
@apply bg-transparent;
|
|
143
|
+
transition: background-color 0.2s;
|
|
144
|
+
box-shadow: none;
|
|
145
|
+
border-color: #0000;
|
|
146
|
+
|
|
147
|
+
&:focus,
|
|
148
|
+
&:focus-within {
|
|
149
|
+
@apply text-base-content bg-base-100;
|
|
150
|
+
border-color: #0000;
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.select-neutral {
|
|
157
|
+
@layer daisyui.l1.l2 {
|
|
158
|
+
&,
|
|
159
|
+
&:focus,
|
|
160
|
+
&:focus-within {
|
|
161
|
+
--input-color: var(--color-neutral);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.select-primary {
|
|
167
|
+
@layer daisyui.l1.l2 {
|
|
168
|
+
&,
|
|
169
|
+
&:focus,
|
|
170
|
+
&:focus-within {
|
|
171
|
+
--input-color: var(--color-primary);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.select-secondary {
|
|
177
|
+
@layer daisyui.l1.l2 {
|
|
178
|
+
&,
|
|
179
|
+
&:focus,
|
|
180
|
+
&:focus-within {
|
|
181
|
+
--input-color: var(--color-secondary);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.select-accent {
|
|
187
|
+
@layer daisyui.l1.l2 {
|
|
188
|
+
&,
|
|
189
|
+
&:focus,
|
|
190
|
+
&:focus-within {
|
|
191
|
+
--input-color: var(--color-accent);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.select-info {
|
|
197
|
+
@layer daisyui.l1.l2 {
|
|
198
|
+
&,
|
|
199
|
+
&:focus,
|
|
200
|
+
&:focus-within {
|
|
201
|
+
--input-color: var(--color-info);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.select-success {
|
|
207
|
+
@layer daisyui.l1.l2 {
|
|
208
|
+
&,
|
|
209
|
+
&:focus,
|
|
210
|
+
&:focus-within {
|
|
211
|
+
--input-color: var(--color-success);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.select-warning {
|
|
217
|
+
@layer daisyui.l1.l2 {
|
|
218
|
+
&,
|
|
219
|
+
&:focus,
|
|
220
|
+
&:focus-within {
|
|
221
|
+
--input-color: var(--color-warning);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.select-error {
|
|
227
|
+
@layer daisyui.l1.l2 {
|
|
228
|
+
&,
|
|
229
|
+
&:focus,
|
|
230
|
+
&:focus-within {
|
|
231
|
+
--input-color: var(--color-error);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.select-xs {
|
|
237
|
+
@layer daisyui.l1.l2 {
|
|
238
|
+
--size: calc(var(--size-field, 0.25rem) * 6);
|
|
239
|
+
font-size: 0.6875rem;
|
|
240
|
+
option {
|
|
241
|
+
@apply px-2 py-1;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.select-sm {
|
|
247
|
+
@layer daisyui.l1.l2 {
|
|
248
|
+
--size: calc(var(--size-field, 0.25rem) * 8);
|
|
249
|
+
font-size: 0.75rem;
|
|
250
|
+
option {
|
|
251
|
+
@apply px-2.5 py-1;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.select-md {
|
|
257
|
+
@layer daisyui.l1.l2 {
|
|
258
|
+
--size: calc(var(--size-field, 0.25rem) * 10);
|
|
259
|
+
font-size: 0.875rem;
|
|
260
|
+
option {
|
|
261
|
+
@apply px-3 py-1.5;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.select-lg {
|
|
267
|
+
@layer daisyui.l1.l2 {
|
|
268
|
+
--size: calc(var(--size-field, 0.25rem) * 12);
|
|
269
|
+
font-size: 1.125rem;
|
|
270
|
+
option {
|
|
271
|
+
@apply px-4 py-1.5;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.select-xl {
|
|
277
|
+
@layer daisyui.l1.l2 {
|
|
278
|
+
--size: calc(var(--size-field, 0.25rem) * 14);
|
|
279
|
+
font-size: 1.375rem;
|
|
280
|
+
option {
|
|
281
|
+
@apply px-5 py-1.5;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.skeleton {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply bg-base-300 rounded-box motion-reduce:[transition-duration:15s];
|
|
4
|
+
will-change: background-position;
|
|
5
|
+
background-image: linear-gradient(
|
|
6
|
+
105deg,
|
|
7
|
+
#0000 0% 40%,
|
|
8
|
+
var(--color-base-100) 50%,
|
|
9
|
+
#0000 60% 100%
|
|
10
|
+
);
|
|
11
|
+
background-size: 200% auto;
|
|
12
|
+
background-position-x: -50%;
|
|
13
|
+
|
|
14
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
15
|
+
animation: skeleton 1.8s ease-in-out infinite;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.skeleton-text {
|
|
20
|
+
@layer daisyui.l1.l2 {
|
|
21
|
+
background-clip: text;
|
|
22
|
+
-webkit-background-clip: text;
|
|
23
|
+
color: transparent;
|
|
24
|
+
background-image: linear-gradient(
|
|
25
|
+
105deg,
|
|
26
|
+
color-mix(in oklab, var(--color-base-content) 20%, transparent) 0% 40%,
|
|
27
|
+
var(--color-base-content) 50%,
|
|
28
|
+
color-mix(in oklab, var(--color-base-content) 20%, transparent) 60% 100%
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes skeleton {
|
|
34
|
+
0% {
|
|
35
|
+
background-position: 150%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
100% {
|
|
39
|
+
background-position: -50%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.stack {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply inline-grid;
|
|
4
|
+
grid-template-columns: 3px 4px 1fr 4px 3px;
|
|
5
|
+
grid-template-rows: 3px 4px 1fr 4px 3px;
|
|
6
|
+
|
|
7
|
+
& > * {
|
|
8
|
+
@apply h-full w-full;
|
|
9
|
+
&:nth-child(n + 2) {
|
|
10
|
+
@apply w-full opacity-70;
|
|
11
|
+
}
|
|
12
|
+
&:nth-child(2) {
|
|
13
|
+
@apply z-2 opacity-90;
|
|
14
|
+
}
|
|
15
|
+
&:nth-child(1) {
|
|
16
|
+
@apply z-3 w-full;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@layer daisyui.l1.l2 {
|
|
22
|
+
&,
|
|
23
|
+
&.stack-bottom {
|
|
24
|
+
> * {
|
|
25
|
+
grid-column: 3 / 4;
|
|
26
|
+
grid-row: 3 / 6;
|
|
27
|
+
&:nth-child(2) {
|
|
28
|
+
grid-column: 2 / 5;
|
|
29
|
+
grid-row: 2 / 5;
|
|
30
|
+
}
|
|
31
|
+
&:nth-child(1) {
|
|
32
|
+
grid-column: 1 / 6;
|
|
33
|
+
grid-row: 1 / 4;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.stack-top {
|
|
38
|
+
> * {
|
|
39
|
+
grid-column: 3 / 4;
|
|
40
|
+
grid-row: 1 / 4;
|
|
41
|
+
&:nth-child(2) {
|
|
42
|
+
grid-column: 2 / 5;
|
|
43
|
+
grid-row: 2 / 5;
|
|
44
|
+
}
|
|
45
|
+
&:nth-child(1) {
|
|
46
|
+
grid-column: 1 / 6;
|
|
47
|
+
grid-row: 3 / 6;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&.stack-start {
|
|
52
|
+
> * {
|
|
53
|
+
grid-column: 1 / 4;
|
|
54
|
+
grid-row: 3 / 4;
|
|
55
|
+
&:nth-child(2) {
|
|
56
|
+
grid-column: 2 / 5;
|
|
57
|
+
grid-row: 2 / 5;
|
|
58
|
+
}
|
|
59
|
+
&:nth-child(1) {
|
|
60
|
+
grid-column: 3 / 6;
|
|
61
|
+
grid-row: 1 / 6;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&.stack-end {
|
|
66
|
+
> * {
|
|
67
|
+
grid-column: 3 / 6;
|
|
68
|
+
grid-row: 3 / 4;
|
|
69
|
+
&:nth-child(2) {
|
|
70
|
+
grid-column: 2 / 5;
|
|
71
|
+
grid-row: 2 / 5;
|
|
72
|
+
}
|
|
73
|
+
&:nth-child(1) {
|
|
74
|
+
grid-column: 1 / 4;
|
|
75
|
+
grid-row: 1 / 6;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.stats {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply rounded-box relative inline-grid grid-flow-col overflow-x-auto;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.stat {
|
|
8
|
+
@layer daisyui.l1.l2.l3 {
|
|
9
|
+
@apply inline-grid w-full gap-x-4 px-6 py-4;
|
|
10
|
+
grid-template-columns: repeat(1, 1fr);
|
|
11
|
+
|
|
12
|
+
&:not(:last-child) {
|
|
13
|
+
border-inline-end: var(--border) dashed color-mix(in oklab, currentColor 10%, #0000);
|
|
14
|
+
border-block-end: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.stat-figure {
|
|
20
|
+
@layer daisyui.l1.l2.l3 {
|
|
21
|
+
@apply col-start-2 row-span-3 row-start-1 place-self-center justify-self-end;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.stat-title {
|
|
26
|
+
@layer daisyui.l1.l2.l3 {
|
|
27
|
+
@apply text-base-content/60 col-start-1 whitespace-nowrap;
|
|
28
|
+
font-size: 0.75rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.stat-value {
|
|
33
|
+
@layer daisyui.l1.l2.l3 {
|
|
34
|
+
@apply col-start-1 whitespace-nowrap;
|
|
35
|
+
font-size: 2rem;
|
|
36
|
+
font-weight: 800;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.stat-desc {
|
|
41
|
+
@layer daisyui.l1.l2.l3 {
|
|
42
|
+
@apply text-base-content/60 col-start-1 whitespace-nowrap;
|
|
43
|
+
font-size: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.stat-actions {
|
|
48
|
+
@layer daisyui.l1.l2.l3 {
|
|
49
|
+
@apply col-start-1 whitespace-nowrap;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.stats-horizontal {
|
|
54
|
+
@layer daisyui.l1.l2 {
|
|
55
|
+
@apply grid-flow-col overflow-x-auto;
|
|
56
|
+
|
|
57
|
+
.stat:not(:last-child) {
|
|
58
|
+
border-inline-end: var(--border) dashed color-mix(in oklab, currentColor 10%, #0000);
|
|
59
|
+
border-block-end: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stats-vertical {
|
|
65
|
+
@layer daisyui.l1.l2 {
|
|
66
|
+
@apply grid-flow-row overflow-y-auto;
|
|
67
|
+
|
|
68
|
+
.stat:not(:last-child) {
|
|
69
|
+
border-inline-end: none;
|
|
70
|
+
border-block-end: var(--border) dashed color-mix(in oklab, currentColor 10%, #0000);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.status {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply bg-base-content/20 rounded-selector inline-block aspect-square size-2 bg-center bg-no-repeat align-middle text-black/30;
|
|
4
|
+
background-image: radial-gradient(
|
|
5
|
+
circle at 35% 30%,
|
|
6
|
+
oklch(1 0 0 / calc(var(--depth) * 0.5)),
|
|
7
|
+
#0000
|
|
8
|
+
);
|
|
9
|
+
box-shadow: 0 2px 3px -1px color-mix(in oklab, currentColor calc(var(--depth) * 100%), #0000);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.status-primary {
|
|
14
|
+
@layer daisyui.l1.l2 {
|
|
15
|
+
@apply bg-primary text-primary;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.status-secondary {
|
|
20
|
+
@layer daisyui.l1.l2 {
|
|
21
|
+
@apply bg-secondary text-secondary;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.status-accent {
|
|
26
|
+
@layer daisyui.l1.l2 {
|
|
27
|
+
@apply bg-accent text-accent;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.status-neutral {
|
|
32
|
+
@layer daisyui.l1.l2 {
|
|
33
|
+
@apply bg-neutral text-neutral;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.status-info {
|
|
38
|
+
@layer daisyui.l1.l2 {
|
|
39
|
+
@apply bg-info text-info;
|
|
40
|
+
/* background-image: url("data:image/svg+xml,%3Csvg width='1' height='5' fill='white' viewBox='0 0 1 5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='white'/%3E%3Crect y='2' width='1' height='3'/%3E%3C/svg%3E%0A"); */
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.status-success {
|
|
45
|
+
@layer daisyui.l1.l2 {
|
|
46
|
+
@apply bg-success text-success;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.status-warning {
|
|
51
|
+
@layer daisyui.l1.l2 {
|
|
52
|
+
@apply bg-warning text-warning;
|
|
53
|
+
/* background-image: url("data:image/svg+xml,%3Csvg width='1' height='5' fill='white' viewBox='0 0 1 5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='4' width='1' height='1' /%3E%3Crect width='1' height='3'/%3E%3C/svg%3E%0A"); */
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.status-error {
|
|
58
|
+
@layer daisyui.l1.l2 {
|
|
59
|
+
@apply bg-error text-error;
|
|
60
|
+
/* background-image: url("data:image/svg+xml,%3Csvg width='4' height='1' fill='white' viewBox='0 0 4 1' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='4' height='1'/%3E%3C/svg%3E%0A"); */
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.status-xs {
|
|
65
|
+
@layer daisyui.l1.l2 {
|
|
66
|
+
@apply size-0.5;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.status-sm {
|
|
71
|
+
@layer daisyui.l1.l2 {
|
|
72
|
+
@apply size-1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.status-md {
|
|
77
|
+
@layer daisyui.l1.l2 {
|
|
78
|
+
@apply size-2;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.status-lg {
|
|
83
|
+
@layer daisyui.l1.l2 {
|
|
84
|
+
@apply size-3;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.status-xl {
|
|
89
|
+
@layer daisyui.l1.l2 {
|
|
90
|
+
@apply size-4;
|
|
91
|
+
}
|
|
92
|
+
}
|