@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,203 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply rounded-box relative flex flex-col;
|
|
4
|
+
outline-width: 2px;
|
|
5
|
+
transition: outline 0.2s ease-in-out;
|
|
6
|
+
outline: 0 solid #0000;
|
|
7
|
+
outline-offset: 2px;
|
|
8
|
+
&:focus {
|
|
9
|
+
@apply outline-hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:focus-visible {
|
|
13
|
+
outline-color: currentColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(figure:first-child) {
|
|
17
|
+
@apply overflow-hidden;
|
|
18
|
+
border-start-start-radius: inherit;
|
|
19
|
+
border-start-end-radius: inherit;
|
|
20
|
+
border-end-start-radius: unset;
|
|
21
|
+
border-end-end-radius: unset;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(figure:last-child) {
|
|
25
|
+
@apply overflow-hidden;
|
|
26
|
+
border-start-start-radius: unset;
|
|
27
|
+
border-start-end-radius: unset;
|
|
28
|
+
border-end-start-radius: inherit;
|
|
29
|
+
border-end-end-radius: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
figure {
|
|
33
|
+
@apply flex items-center justify-center;
|
|
34
|
+
}
|
|
35
|
+
&:has(> input:is(input[type="checkbox"], input[type="radio"])) {
|
|
36
|
+
@apply cursor-pointer;
|
|
37
|
+
user-select: none;
|
|
38
|
+
}
|
|
39
|
+
&:has(> :checked) {
|
|
40
|
+
outline: 2px solid currentColor;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.card-border {
|
|
46
|
+
@layer daisyui.l1.l2 {
|
|
47
|
+
border: var(--border) solid var(--color-base-200);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.card-dash {
|
|
52
|
+
@layer daisyui.l1.l2 {
|
|
53
|
+
border: var(--border) dashed var(--color-base-200);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.image-full {
|
|
58
|
+
@layer daisyui.l1.l2 {
|
|
59
|
+
@apply grid;
|
|
60
|
+
|
|
61
|
+
> * {
|
|
62
|
+
@apply col-start-1 row-start-1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
> .card-body {
|
|
66
|
+
@apply text-neutral-content relative;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where(figure) {
|
|
70
|
+
@apply overflow-hidden;
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
> figure img {
|
|
75
|
+
@apply h-full object-cover;
|
|
76
|
+
filter: brightness(28%);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.card-title {
|
|
82
|
+
@layer daisyui.l1.l2.l3 {
|
|
83
|
+
@apply flex items-center gap-2;
|
|
84
|
+
font-size: var(--cardtitle-fs, 1.125rem);
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.card-body {
|
|
90
|
+
@layer daisyui.l1.l2.l3 {
|
|
91
|
+
@apply flex flex-auto flex-col gap-2;
|
|
92
|
+
padding: var(--card-p, 1.5rem);
|
|
93
|
+
font-size: var(--card-fs, 0.875rem);
|
|
94
|
+
|
|
95
|
+
:where(p) {
|
|
96
|
+
@apply grow;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.card-actions {
|
|
102
|
+
@layer daisyui.l1.l2.l3 {
|
|
103
|
+
@apply flex flex-wrap items-start gap-2;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.card-xs {
|
|
108
|
+
@layer daisyui.l1.l2 {
|
|
109
|
+
.card-body {
|
|
110
|
+
--card-p: 0.5rem;
|
|
111
|
+
--card-fs: 0.6875rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.card-title {
|
|
115
|
+
--cardtitle-fs: 0.875rem;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.card-sm {
|
|
121
|
+
@layer daisyui.l1.l2 {
|
|
122
|
+
.card-body {
|
|
123
|
+
--card-p: 1rem;
|
|
124
|
+
--card-fs: 0.75rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.card-title {
|
|
128
|
+
--cardtitle-fs: 1rem;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.card-md {
|
|
134
|
+
@layer daisyui.l1.l2 {
|
|
135
|
+
.card-body {
|
|
136
|
+
--card-p: 1.5rem;
|
|
137
|
+
--card-fs: 0.875rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.card-title {
|
|
141
|
+
--cardtitle-fs: 1.125rem;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.card-lg {
|
|
147
|
+
@layer daisyui.l1.l2 {
|
|
148
|
+
.card-body {
|
|
149
|
+
--card-p: 2rem;
|
|
150
|
+
--card-fs: 1rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.card-title {
|
|
154
|
+
--cardtitle-fs: 1.25rem;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.card-xl {
|
|
160
|
+
@layer daisyui.l1.l2 {
|
|
161
|
+
.card-body {
|
|
162
|
+
--card-p: 2.5rem;
|
|
163
|
+
--card-fs: 1.125rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.card-title {
|
|
167
|
+
--cardtitle-fs: 1.375rem;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.card-side {
|
|
173
|
+
@layer daisyui.l1.l2 {
|
|
174
|
+
align-items: stretch;
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
|
|
177
|
+
:where(figure:first-child) {
|
|
178
|
+
@apply overflow-hidden;
|
|
179
|
+
border-start-start-radius: inherit;
|
|
180
|
+
border-start-end-radius: unset;
|
|
181
|
+
border-end-start-radius: inherit;
|
|
182
|
+
border-end-end-radius: unset;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:where(figure:last-child) {
|
|
186
|
+
@apply overflow-hidden;
|
|
187
|
+
border-start-start-radius: unset;
|
|
188
|
+
border-start-end-radius: inherit;
|
|
189
|
+
border-end-start-radius: unset;
|
|
190
|
+
border-end-end-radius: inherit;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
figure > * {
|
|
194
|
+
max-width: unset;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:where(figure > *) {
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 100%;
|
|
200
|
+
object-fit: cover;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.carousel {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply inline-flex overflow-x-scroll;
|
|
4
|
+
scroll-snap-type: x mandatory;
|
|
5
|
+
scrollbar-width: none;
|
|
6
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
7
|
+
scroll-behavior: smooth;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::-webkit-scrollbar {
|
|
11
|
+
@apply hidden;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.carousel-vertical {
|
|
17
|
+
@layer daisyui.l1.l2 {
|
|
18
|
+
@apply flex-col overflow-y-scroll;
|
|
19
|
+
scroll-snap-type: y mandatory;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.carousel-horizontal {
|
|
24
|
+
@layer daisyui.l1.l2 {
|
|
25
|
+
@apply flex-row overflow-x-scroll;
|
|
26
|
+
scroll-snap-type: x mandatory;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.carousel-item {
|
|
31
|
+
@layer daisyui.l1.l2.l3 {
|
|
32
|
+
@apply box-content flex flex-none;
|
|
33
|
+
scroll-snap-align: start;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.carousel-start {
|
|
38
|
+
@layer daisyui.l1.l2 {
|
|
39
|
+
.carousel-item {
|
|
40
|
+
scroll-snap-align: start;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.carousel-center {
|
|
46
|
+
@layer daisyui.l1.l2 {
|
|
47
|
+
.carousel-item {
|
|
48
|
+
scroll-snap-align: center;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.carousel-end {
|
|
54
|
+
@layer daisyui.l1.l2 {
|
|
55
|
+
.carousel-item {
|
|
56
|
+
scroll-snap-align: end;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.chat {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply grid auto-rows-min gap-x-3 py-1;
|
|
4
|
+
--mask-chat: url("data:image/svg+xml,%3csvg width='13' height='13' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M0 11.5004C0 13.0004 2 13.0004 2 13.0004H12H13V0.00036329L12.5 0C12.5 0 11.977 2.09572 11.8581 2.50033C11.6075 3.35237 10.9149 4.22374 9 5.50036C6 7.50036 0 10.0004 0 11.5004Z'/%3e%3c/svg%3e");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.chat-bubble {
|
|
9
|
+
@layer daisyui.l1.l2.l3 {
|
|
10
|
+
@apply rounded-field bg-base-300 text-base-content relative block w-fit px-4 py-2;
|
|
11
|
+
grid-row-end: 3;
|
|
12
|
+
min-height: 2rem;
|
|
13
|
+
min-width: 2.5rem;
|
|
14
|
+
max-width: 90%;
|
|
15
|
+
|
|
16
|
+
&:before {
|
|
17
|
+
@apply absolute bottom-0 h-3 w-3;
|
|
18
|
+
background-color: inherit;
|
|
19
|
+
content: "";
|
|
20
|
+
mask-repeat: no-repeat;
|
|
21
|
+
mask-image: var(--mask-chat);
|
|
22
|
+
mask-position: 0px -1px;
|
|
23
|
+
mask-size: 0.8125rem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.chat-bubble-primary {
|
|
29
|
+
@layer daisyui.l1.l2 {
|
|
30
|
+
@apply bg-primary text-primary-content;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.chat-bubble-secondary {
|
|
35
|
+
@layer daisyui.l1.l2 {
|
|
36
|
+
@apply bg-secondary text-secondary-content;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.chat-bubble-accent {
|
|
41
|
+
@layer daisyui.l1.l2 {
|
|
42
|
+
@apply bg-accent text-accent-content;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.chat-bubble-neutral {
|
|
47
|
+
@layer daisyui.l1.l2 {
|
|
48
|
+
@apply bg-neutral text-neutral-content;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* state colors */
|
|
53
|
+
.chat-bubble-info {
|
|
54
|
+
@layer daisyui.l1.l2 {
|
|
55
|
+
@apply bg-info text-info-content;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.chat-bubble-success {
|
|
60
|
+
@layer daisyui.l1.l2 {
|
|
61
|
+
@apply bg-success text-success-content;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.chat-bubble-warning {
|
|
66
|
+
@layer daisyui.l1.l2 {
|
|
67
|
+
@apply bg-warning text-warning-content;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.chat-bubble-error {
|
|
72
|
+
@layer daisyui.l1.l2 {
|
|
73
|
+
@apply bg-error text-error-content;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.chat-image {
|
|
78
|
+
@layer daisyui.l1.l2.l3 {
|
|
79
|
+
@apply row-span-2 self-end;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.chat-header {
|
|
84
|
+
@layer daisyui.l1.l2.l3 {
|
|
85
|
+
@apply row-start-1 flex gap-1;
|
|
86
|
+
font-size: 0.6875rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.chat-footer {
|
|
91
|
+
@layer daisyui.l1.l2.l3 {
|
|
92
|
+
@apply row-start-3 flex gap-1;
|
|
93
|
+
font-size: 0.6875rem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.chat-start {
|
|
98
|
+
@layer daisyui.l1.l2 {
|
|
99
|
+
@apply place-items-start;
|
|
100
|
+
grid-template-columns: auto 1fr;
|
|
101
|
+
|
|
102
|
+
.chat-header {
|
|
103
|
+
@apply col-start-2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.chat-footer {
|
|
107
|
+
@apply col-start-2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.chat-image {
|
|
111
|
+
@apply col-start-1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.chat-bubble {
|
|
115
|
+
@apply col-start-2 rounded-es-none;
|
|
116
|
+
|
|
117
|
+
&:before {
|
|
118
|
+
transform: rotateY(0deg);
|
|
119
|
+
inset-inline-start: -0.75rem;
|
|
120
|
+
}
|
|
121
|
+
[dir="rtl"] &:before {
|
|
122
|
+
transform: rotateY(180deg);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.chat-end {
|
|
129
|
+
@layer daisyui.l1.l2 {
|
|
130
|
+
@apply place-items-end;
|
|
131
|
+
grid-template-columns: 1fr auto;
|
|
132
|
+
|
|
133
|
+
.chat-header {
|
|
134
|
+
@apply col-start-1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.chat-footer {
|
|
138
|
+
@apply col-start-1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.chat-image {
|
|
142
|
+
@apply col-start-2;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.chat-bubble {
|
|
146
|
+
@apply col-start-1 rounded-ee-none;
|
|
147
|
+
|
|
148
|
+
&:before {
|
|
149
|
+
transform: rotateY(180deg);
|
|
150
|
+
inset-inline-start: 100%;
|
|
151
|
+
}
|
|
152
|
+
[dir="rtl"] &:before {
|
|
153
|
+
transform: rotateY(0deg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
.checkbox {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
border: var(--border) solid
|
|
4
|
+
var(--input-color, color-mix(in oklab, var(--color-base-content) 20%, #0000));
|
|
5
|
+
@apply text-base-content rounded-selector relative inline-block shrink-0 cursor-pointer appearance-none p-1 align-middle;
|
|
6
|
+
box-shadow:
|
|
7
|
+
0 1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
8
|
+
0 0 #0000 inset,
|
|
9
|
+
0 0 #0000;
|
|
10
|
+
transition:
|
|
11
|
+
background-color 0.2s,
|
|
12
|
+
box-shadow 0.2s;
|
|
13
|
+
--size: calc(var(--size-selector, 0.25rem) * 6);
|
|
14
|
+
width: var(--size);
|
|
15
|
+
height: var(--size);
|
|
16
|
+
background-size: auto, calc(var(--noise) * 100%);
|
|
17
|
+
background-image: none, var(--fx-noise);
|
|
18
|
+
&:before {
|
|
19
|
+
--tw-content: "";
|
|
20
|
+
content: var(--tw-content);
|
|
21
|
+
@apply block size-full rotate-45 bg-current opacity-0;
|
|
22
|
+
transition:
|
|
23
|
+
clip-path 0.3s,
|
|
24
|
+
opacity 0.1s,
|
|
25
|
+
rotate 0.3s,
|
|
26
|
+
translate 0.3s;
|
|
27
|
+
transition-delay: 0.1s;
|
|
28
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 70% 80%, 70% 100%);
|
|
29
|
+
box-shadow: 0px 3px 0 0px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
line-height: 0.75;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: 2px solid var(--input-color, currentColor);
|
|
36
|
+
outline-offset: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:checked,
|
|
40
|
+
&[aria-checked="true"] {
|
|
41
|
+
background-color: var(--input-color, #0000);
|
|
42
|
+
box-shadow:
|
|
43
|
+
0 0 #0000 inset,
|
|
44
|
+
0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
45
|
+
0 1px oklch(0% 0 0 / calc(var(--depth) * 0.1));
|
|
46
|
+
|
|
47
|
+
&:before {
|
|
48
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 0%, 70% 0%, 70% 100%);
|
|
49
|
+
@apply opacity-100;
|
|
50
|
+
}
|
|
51
|
+
@media (forced-colors: active) {
|
|
52
|
+
&:before {
|
|
53
|
+
@apply rotate-0 bg-transparent [--tw-content:"✔︎"] [clip-path:none];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@media print {
|
|
57
|
+
&:before {
|
|
58
|
+
@apply rotate-0 bg-transparent;
|
|
59
|
+
--tw-content: "✔︎";
|
|
60
|
+
clip-path: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:indeterminate {
|
|
66
|
+
background-color: var(
|
|
67
|
+
--input-color,
|
|
68
|
+
color-mix(in oklab, var(--color-base-content) 20%, #0000)
|
|
69
|
+
);
|
|
70
|
+
&:before {
|
|
71
|
+
@apply rotate-0 opacity-100;
|
|
72
|
+
translate: 0 -35%;
|
|
73
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 80% 80%, 80% 100%);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.checkbox-primary {
|
|
80
|
+
@layer daisyui.l1.l2 {
|
|
81
|
+
@apply text-primary-content;
|
|
82
|
+
--input-color: var(--color-primary);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.checkbox-secondary {
|
|
87
|
+
@layer daisyui.l1.l2 {
|
|
88
|
+
@apply text-secondary-content;
|
|
89
|
+
--input-color: var(--color-secondary);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.checkbox-accent {
|
|
94
|
+
@layer daisyui.l1.l2 {
|
|
95
|
+
@apply text-accent-content;
|
|
96
|
+
--input-color: var(--color-accent);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.checkbox-neutral {
|
|
101
|
+
@layer daisyui.l1.l2 {
|
|
102
|
+
@apply text-neutral-content;
|
|
103
|
+
--input-color: var(--color-neutral);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.checkbox-info {
|
|
108
|
+
@layer daisyui.l1.l2 {
|
|
109
|
+
@apply text-info-content;
|
|
110
|
+
--input-color: var(--color-info);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.checkbox-success {
|
|
115
|
+
@layer daisyui.l1.l2 {
|
|
116
|
+
@apply text-success-content;
|
|
117
|
+
--input-color: var(--color-success);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.checkbox-warning {
|
|
122
|
+
@layer daisyui.l1.l2 {
|
|
123
|
+
@apply text-warning-content;
|
|
124
|
+
--input-color: var(--color-warning);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.checkbox-error {
|
|
129
|
+
@layer daisyui.l1.l2 {
|
|
130
|
+
@apply text-error-content;
|
|
131
|
+
--input-color: var(--color-error);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.checkbox:disabled {
|
|
136
|
+
@layer daisyui.l1.l2 {
|
|
137
|
+
@apply cursor-not-allowed opacity-20;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.checkbox-xs {
|
|
142
|
+
@layer daisyui.l1.l2 {
|
|
143
|
+
@apply p-[0.125rem];
|
|
144
|
+
--size: calc(var(--size-selector, 0.25rem) * 4);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.checkbox-sm {
|
|
149
|
+
@layer daisyui.l1.l2 {
|
|
150
|
+
@apply p-[0.1875rem];
|
|
151
|
+
--size: calc(var(--size-selector, 0.25rem) * 5);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.checkbox-md {
|
|
156
|
+
@layer daisyui.l1.l2 {
|
|
157
|
+
@apply p-[0.25rem];
|
|
158
|
+
--size: calc(var(--size-selector, 0.25rem) * 6);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.checkbox-lg {
|
|
163
|
+
@layer daisyui.l1.l2 {
|
|
164
|
+
@apply p-[0.3125rem];
|
|
165
|
+
--size: calc(var(--size-selector, 0.25rem) * 7);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.checkbox-xl {
|
|
170
|
+
@layer daisyui.l1.l2 {
|
|
171
|
+
@apply p-[0.375rem];
|
|
172
|
+
--size: calc(var(--size-selector, 0.25rem) * 8);
|
|
173
|
+
}
|
|
174
|
+
}
|