@macroui/macroui 4.0.0 → 4.0.2
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/base.js +1 -0
- package/dist/full.css +62910 -0
- 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 +23 -24
- 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/functions/addPrefix.js +0 -185
- package/functions/plugin.js +0 -11
- package/functions/pluginOptionsHandler.js +0 -97
- package/functions/themeOrder.js +0 -37
- package/functions/variables.js +0 -29
- package/index.js +0 -61
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
.textarea {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
border: var(--border) solid #0000;
|
|
4
|
+
@apply bg-base-100 rounded-field min-h-20 shrink appearance-none py-2 align-middle;
|
|
5
|
+
width: clamp(3rem, 20rem, 100%);
|
|
6
|
+
padding-inline-start: 0.75rem;
|
|
7
|
+
padding-inline-end: 0.75rem;
|
|
8
|
+
font-size: max(var(--font-size, 0.875rem), 0.875rem);
|
|
9
|
+
touch-action: manipulation;
|
|
10
|
+
border-color: var(--input-color);
|
|
11
|
+
box-shadow:
|
|
12
|
+
0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000) inset,
|
|
13
|
+
0 -1px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
14
|
+
--input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
|
|
15
|
+
textarea {
|
|
16
|
+
@apply appearance-none bg-transparent;
|
|
17
|
+
border: none;
|
|
18
|
+
|
|
19
|
+
&:focus,
|
|
20
|
+
&:focus-within {
|
|
21
|
+
@apply outline-hidden;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus,
|
|
26
|
+
&:focus-within {
|
|
27
|
+
--input-color: var(--color-base-content);
|
|
28
|
+
box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000);
|
|
29
|
+
outline: 2px solid var(--input-color);
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
isolation: isolate;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* increase font size in iOS so the page won't zoom */
|
|
35
|
+
@media (pointer: coarse) {
|
|
36
|
+
@supports (-webkit-touch-callout: none) {
|
|
37
|
+
&:focus,
|
|
38
|
+
&:focus-within {
|
|
39
|
+
--font-size: 1rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:has(> textarea[disabled]),
|
|
45
|
+
&:is(:disabled, [disabled]) {
|
|
46
|
+
@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 placeholder-base-content/20 cursor-not-allowed;
|
|
47
|
+
box-shadow: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:has(> textarea[disabled]) > textarea[disabled] {
|
|
51
|
+
@apply cursor-not-allowed;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.textarea-ghost {
|
|
57
|
+
@layer daisyui.l1.l2 {
|
|
58
|
+
@apply bg-transparent;
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
border-color: #0000;
|
|
61
|
+
|
|
62
|
+
&:focus,
|
|
63
|
+
&:focus-within {
|
|
64
|
+
@apply text-base-content bg-base-100;
|
|
65
|
+
border-color: #0000;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.textarea-neutral {
|
|
72
|
+
@layer daisyui.l1.l2 {
|
|
73
|
+
&,
|
|
74
|
+
&:focus,
|
|
75
|
+
&:focus-within {
|
|
76
|
+
--input-color: var(--color-neutral);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.textarea-primary {
|
|
82
|
+
@layer daisyui.l1.l2 {
|
|
83
|
+
&,
|
|
84
|
+
&:focus,
|
|
85
|
+
&:focus-within {
|
|
86
|
+
--input-color: var(--color-primary);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.textarea-secondary {
|
|
92
|
+
@layer daisyui.l1.l2 {
|
|
93
|
+
&,
|
|
94
|
+
&:focus,
|
|
95
|
+
&:focus-within {
|
|
96
|
+
--input-color: var(--color-secondary);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.textarea-accent {
|
|
102
|
+
@layer daisyui.l1.l2 {
|
|
103
|
+
&,
|
|
104
|
+
&:focus,
|
|
105
|
+
&:focus-within {
|
|
106
|
+
--input-color: var(--color-accent);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.textarea-info {
|
|
112
|
+
@layer daisyui.l1.l2 {
|
|
113
|
+
&,
|
|
114
|
+
&:focus,
|
|
115
|
+
&:focus-within {
|
|
116
|
+
--input-color: var(--color-info);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.textarea-success {
|
|
122
|
+
@layer daisyui.l1.l2 {
|
|
123
|
+
&,
|
|
124
|
+
&:focus,
|
|
125
|
+
&:focus-within {
|
|
126
|
+
--input-color: var(--color-success);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.textarea-warning {
|
|
132
|
+
@layer daisyui.l1.l2 {
|
|
133
|
+
&,
|
|
134
|
+
&:focus,
|
|
135
|
+
&:focus-within {
|
|
136
|
+
--input-color: var(--color-warning);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.textarea-error {
|
|
142
|
+
@layer daisyui.l1.l2 {
|
|
143
|
+
&,
|
|
144
|
+
&:focus,
|
|
145
|
+
&:focus-within {
|
|
146
|
+
--input-color: var(--color-error);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.textarea-xs {
|
|
152
|
+
@layer daisyui.l1.l2 {
|
|
153
|
+
font-size: max(var(--font-size, 0.6875rem), 0.6875rem);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.textarea-sm {
|
|
158
|
+
@layer daisyui.l1.l2 {
|
|
159
|
+
font-size: max(var(--font-size, 0.75rem), 0.75rem);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.textarea-md {
|
|
164
|
+
@layer daisyui.l1.l2 {
|
|
165
|
+
font-size: max(var(--font-size, 0.875rem), 0.875rem);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.textarea-lg {
|
|
170
|
+
@layer daisyui.l1.l2 {
|
|
171
|
+
font-size: max(var(--font-size, 1.125rem), 1.125rem);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.textarea-xl {
|
|
176
|
+
@layer daisyui.l1.l2 {
|
|
177
|
+
font-size: max(var(--font-size, 1.375rem), 1.375rem);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.text-rotate {
|
|
2
|
+
height: 1lh;
|
|
3
|
+
@layer daisyui.l1.l2.l3 {
|
|
4
|
+
@apply inline-block overflow-hidden align-bottom whitespace-nowrap;
|
|
5
|
+
transition-property: none;
|
|
6
|
+
/* aliasing Tailwind's variable so it inherits */
|
|
7
|
+
--duration: var(--tw-duration);
|
|
8
|
+
> * {
|
|
9
|
+
@apply grid justify-items-start;
|
|
10
|
+
height: calc(var(--items, 1) * 100%);
|
|
11
|
+
&:has(*:nth-child(2)) {
|
|
12
|
+
--items: 2;
|
|
13
|
+
animation: rotator var(--duration, 10s) linear(0 0% 49%, 0.5 50% 99%, 1 100% 100%) infinite;
|
|
14
|
+
}
|
|
15
|
+
&:has(*:nth-child(3)) {
|
|
16
|
+
--items: 3;
|
|
17
|
+
animation: rotator var(--duration, 10s)
|
|
18
|
+
linear(0 0% 32%, 0.333333 33% 65%, 0.666666 66% 99%, 1 100% 100%) infinite;
|
|
19
|
+
}
|
|
20
|
+
&:has(*:nth-child(4)) {
|
|
21
|
+
--items: 4;
|
|
22
|
+
animation: rotator var(--duration, 10s)
|
|
23
|
+
linear(0 0% 24%, 0.25 25% 49%, 0.5 50% 74%, 0.75 75% 99%, 1 100% 100%) infinite;
|
|
24
|
+
}
|
|
25
|
+
&:has(*:nth-child(5)) {
|
|
26
|
+
--items: 5;
|
|
27
|
+
animation: rotator var(--duration, 10s)
|
|
28
|
+
linear(0 0% 19%, 0.2 20% 39%, 0.4 40% 59%, 0.6 60% 79%, 0.8 80% 99%, 1 100% 100%) infinite;
|
|
29
|
+
}
|
|
30
|
+
&:has(*:nth-child(6)) {
|
|
31
|
+
--items: 6;
|
|
32
|
+
animation: rotator var(--duration, 10s)
|
|
33
|
+
linear(
|
|
34
|
+
0 0% 15%,
|
|
35
|
+
0.16666 16% 32%,
|
|
36
|
+
0.333333 33% 49%,
|
|
37
|
+
0.5 50% 65%,
|
|
38
|
+
0.666666 66% 82%,
|
|
39
|
+
0.833333 83% 99%,
|
|
40
|
+
1 100% 100%
|
|
41
|
+
)
|
|
42
|
+
infinite;
|
|
43
|
+
}
|
|
44
|
+
> * {
|
|
45
|
+
align-content: baseline;
|
|
46
|
+
clip-path: inset(0.5px 0px 0.5px 0px);
|
|
47
|
+
&:nth-child(1) {
|
|
48
|
+
translate: var(--first-item-position);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&:hover {
|
|
53
|
+
> * {
|
|
54
|
+
animation-play-state: paused;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@keyframes rotator {
|
|
60
|
+
89.9999%,
|
|
61
|
+
100% {
|
|
62
|
+
--first-item-position: 0 0%;
|
|
63
|
+
}
|
|
64
|
+
90%,
|
|
65
|
+
99.9999% {
|
|
66
|
+
--first-item-position: 0 calc(var(--items) * 100%);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
translate: 0 -100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
.timeline {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply relative flex;
|
|
4
|
+
|
|
5
|
+
> li {
|
|
6
|
+
@apply relative grid shrink-0 items-center;
|
|
7
|
+
grid-template-rows: var(--timeline-row-start, minmax(0, 1fr)) auto var(
|
|
8
|
+
--timeline-row-end,
|
|
9
|
+
minmax(0, 1fr)
|
|
10
|
+
);
|
|
11
|
+
grid-template-columns: var(--timeline-col-start, minmax(0, 1fr)) auto var(
|
|
12
|
+
--timeline-col-end,
|
|
13
|
+
minmax(0, 1fr)
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
> hr {
|
|
17
|
+
border: none;
|
|
18
|
+
@apply w-full;
|
|
19
|
+
|
|
20
|
+
&:first-child {
|
|
21
|
+
@apply col-start-1 row-start-2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:last-child {
|
|
25
|
+
@apply col-start-3 col-end-[none] row-start-2 row-end-auto;
|
|
26
|
+
}
|
|
27
|
+
@media print {
|
|
28
|
+
border: 0.1px solid var(--color-base-300);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(hr) {
|
|
34
|
+
@apply bg-base-300 h-1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:has(.timeline-middle hr) {
|
|
38
|
+
&:first-child {
|
|
39
|
+
@apply rounded-e-selector rounded-s-none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:last-child {
|
|
43
|
+
@apply rounded-s-selector rounded-e-none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:not(:has(.timeline-middle)) {
|
|
48
|
+
:first-child hr:last-child {
|
|
49
|
+
@apply rounded-s-selector rounded-e-none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:last-child hr:first-child {
|
|
53
|
+
@apply rounded-e-selector rounded-s-none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.timeline-box {
|
|
60
|
+
@layer daisyui.l1.l2.l3 {
|
|
61
|
+
border: var(--border) solid;
|
|
62
|
+
@apply rounded-box bg-base-100 border-base-300 px-4 py-2;
|
|
63
|
+
font-size: 0.75rem;
|
|
64
|
+
box-shadow: 0 1px 2px 0 oklch(0% 0 0/0.05);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.timeline-start {
|
|
69
|
+
@layer daisyui.l1.l2.l3 {
|
|
70
|
+
@apply col-start-1 col-end-4 row-start-1 row-end-2 m-1 self-end justify-self-center;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.timeline-middle {
|
|
75
|
+
@layer daisyui.l1.l2.l3 {
|
|
76
|
+
@apply col-start-2 row-start-2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.timeline-end {
|
|
81
|
+
@layer daisyui.l1.l2.l3 {
|
|
82
|
+
@apply col-start-1 col-end-4 row-start-3 row-end-4 m-1 self-start justify-self-center;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.timeline-compact {
|
|
87
|
+
@layer daisyui.l1.l2 {
|
|
88
|
+
--timeline-row-start: 0;
|
|
89
|
+
|
|
90
|
+
.timeline-start {
|
|
91
|
+
@apply col-start-1 col-end-4 row-start-3 row-end-4 self-start justify-self-center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
li:has(.timeline-start) {
|
|
95
|
+
.timeline-end {
|
|
96
|
+
@apply col-start-[none] row-start-auto;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.timeline-vertical {
|
|
101
|
+
> li {
|
|
102
|
+
--timeline-col-start: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.timeline-start {
|
|
106
|
+
@apply col-start-3 col-end-4 row-start-1 row-end-4 self-center justify-self-start;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
li:has(.timeline-start) {
|
|
110
|
+
.timeline-end {
|
|
111
|
+
@apply col-start-auto row-start-[none];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.timeline-snap-icon {
|
|
119
|
+
@layer daisyui.l1.l2 {
|
|
120
|
+
> li {
|
|
121
|
+
--timeline-col-start: 0.5rem;
|
|
122
|
+
--timeline-row-start: minmax(0, 1fr);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.timeline-vertical {
|
|
128
|
+
@layer daisyui.l1.l2 {
|
|
129
|
+
@apply flex-col;
|
|
130
|
+
|
|
131
|
+
> li {
|
|
132
|
+
@apply justify-items-center;
|
|
133
|
+
--timeline-row-start: minmax(0, 1fr);
|
|
134
|
+
--timeline-row-end: minmax(0, 1fr);
|
|
135
|
+
|
|
136
|
+
> hr {
|
|
137
|
+
@apply h-full w-1;
|
|
138
|
+
|
|
139
|
+
&:first-child {
|
|
140
|
+
@apply col-start-2 row-start-1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:last-child {
|
|
144
|
+
@apply col-start-2 col-end-auto row-start-3 row-end-[none];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.timeline-start {
|
|
150
|
+
@apply col-start-1 col-end-2 row-start-1 row-end-4 self-center justify-self-end;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.timeline-end {
|
|
154
|
+
@apply col-start-3 col-end-4 row-start-1 row-end-4 self-center justify-self-start;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:has(.timeline-middle) {
|
|
158
|
+
> li {
|
|
159
|
+
> hr {
|
|
160
|
+
&:first-child {
|
|
161
|
+
@apply rounded-b-selector rounded-t-none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:last-child {
|
|
165
|
+
@apply rounded-t-selector rounded-b-none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:not(:has(.timeline-middle)) {
|
|
172
|
+
:first-child {
|
|
173
|
+
> hr:last-child {
|
|
174
|
+
@apply rounded-t-selector rounded-b-none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:last-child {
|
|
179
|
+
> hr:first-child {
|
|
180
|
+
@apply rounded-b-selector rounded-t-none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.timeline-snap-icon {
|
|
186
|
+
> li {
|
|
187
|
+
--timeline-col-start: minmax(0, 1fr);
|
|
188
|
+
--timeline-row-start: 0.5rem;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.timeline-horizontal {
|
|
195
|
+
@layer daisyui.l1.l2 {
|
|
196
|
+
@apply flex-row;
|
|
197
|
+
|
|
198
|
+
> li {
|
|
199
|
+
@apply items-center;
|
|
200
|
+
|
|
201
|
+
> hr {
|
|
202
|
+
@apply h-1 w-full;
|
|
203
|
+
|
|
204
|
+
&:first-child {
|
|
205
|
+
@apply col-start-1 row-start-2;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:last-child {
|
|
209
|
+
@apply col-start-3 col-end-[none] row-start-2 row-end-auto;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.timeline-start {
|
|
215
|
+
@apply col-start-1 col-end-4 row-start-1 row-end-2 self-end justify-self-center;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.timeline-end {
|
|
219
|
+
@apply col-start-1 col-end-4 row-start-3 row-end-4 self-start justify-self-center;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&:has(.timeline-middle) {
|
|
223
|
+
> li {
|
|
224
|
+
> hr {
|
|
225
|
+
&:first-child {
|
|
226
|
+
@apply rounded-e-selector rounded-s-none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:last-child {
|
|
230
|
+
@apply rounded-s-selector rounded-e-none;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:not(:has(.timeline-middle)) {
|
|
237
|
+
:first-child {
|
|
238
|
+
> hr:last-child {
|
|
239
|
+
@apply rounded-s-selector rounded-e-none;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:last-child {
|
|
244
|
+
> hr:first-child {
|
|
245
|
+
@apply rounded-e-selector rounded-s-none;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.toast {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply fixed start-auto end-4 top-auto bottom-4 flex flex-col gap-2 bg-transparent;
|
|
4
|
+
translate: var(--toast-x, 0) var(--toast-y, 0);
|
|
5
|
+
width: max-content;
|
|
6
|
+
max-width: calc(100vw - 2rem);
|
|
7
|
+
|
|
8
|
+
& > * {
|
|
9
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
10
|
+
animation: toast 0.25s ease-out;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.toast-start {
|
|
17
|
+
@layer daisyui.l1.l2 {
|
|
18
|
+
@apply start-4 end-auto;
|
|
19
|
+
--toast-x: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.toast-center {
|
|
24
|
+
@layer daisyui.l1.l2 {
|
|
25
|
+
@apply start-1/2 end-1/2;
|
|
26
|
+
--toast-x: -50%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.toast-end {
|
|
31
|
+
@layer daisyui.l1.l2 {
|
|
32
|
+
@apply start-auto end-4;
|
|
33
|
+
--toast-x: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.toast-bottom {
|
|
38
|
+
@layer daisyui.l1.l2 {
|
|
39
|
+
@apply top-auto bottom-4;
|
|
40
|
+
--toast-y: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.toast-middle {
|
|
45
|
+
@layer daisyui.l1.l2 {
|
|
46
|
+
@apply top-1/2 bottom-auto;
|
|
47
|
+
--toast-y: -50%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.toast-top {
|
|
52
|
+
@layer daisyui.l1.l2 {
|
|
53
|
+
@apply top-4 bottom-auto;
|
|
54
|
+
--toast-y: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes toast {
|
|
59
|
+
0% {
|
|
60
|
+
scale: 0.9;
|
|
61
|
+
opacity: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
100% {
|
|
65
|
+
scale: 1;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|