@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,182 @@
|
|
|
1
|
+
.modal {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply pointer-events-none invisible fixed inset-0 m-0 grid h-full max-h-none w-full max-w-none items-center justify-items-center bg-transparent p-0 text-[inherit];
|
|
4
|
+
transition:
|
|
5
|
+
visibility 0.3s allow-discrete,
|
|
6
|
+
background-color 0.3s ease-out,
|
|
7
|
+
opacity 0.1s ease-out;
|
|
8
|
+
overflow: clip;
|
|
9
|
+
overscroll-behavior: contain;
|
|
10
|
+
z-index: 999;
|
|
11
|
+
scrollbar-gutter: auto;
|
|
12
|
+
|
|
13
|
+
&::backdrop {
|
|
14
|
+
@apply hidden;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@layer daisyui.l1.l2 {
|
|
19
|
+
&.modal-open,
|
|
20
|
+
&[open],
|
|
21
|
+
&:target,
|
|
22
|
+
.modal-toggle:checked + & {
|
|
23
|
+
@apply pointer-events-auto visible opacity-100;
|
|
24
|
+
transition:
|
|
25
|
+
visibility 0s allow-discrete,
|
|
26
|
+
background-color 0.3s ease-out,
|
|
27
|
+
opacity 0.1s ease-out;
|
|
28
|
+
background-color: oklch(0% 0 0/ 0.4);
|
|
29
|
+
|
|
30
|
+
.modal-box {
|
|
31
|
+
translate: 0 0;
|
|
32
|
+
scale: 1;
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:root:has(&) {
|
|
37
|
+
--page-has-backdrop: 1;
|
|
38
|
+
--page-overflow: hidden;
|
|
39
|
+
--page-scroll-bg: var(--page-scroll-bg-on);
|
|
40
|
+
--page-scroll-gutter: stable;
|
|
41
|
+
--page-scroll-transition: var(--page-scroll-transition-on);
|
|
42
|
+
animation: set-page-has-scroll forwards;
|
|
43
|
+
animation-timeline: scroll();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@starting-style {
|
|
48
|
+
&.modal-open,
|
|
49
|
+
&[open],
|
|
50
|
+
&:target,
|
|
51
|
+
.modal-toggle:checked + & {
|
|
52
|
+
@apply opacity-0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.modal-action {
|
|
59
|
+
@layer daisyui.l1.l2.l3 {
|
|
60
|
+
@apply mt-6 flex justify-end gap-2;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.modal-toggle {
|
|
65
|
+
@layer daisyui.l1.l2.l3 {
|
|
66
|
+
@apply fixed h-0 w-0 appearance-none opacity-0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.modal-backdrop {
|
|
71
|
+
@layer daisyui.l1.l2.l3 {
|
|
72
|
+
@apply col-start-1 row-start-1 grid self-stretch justify-self-stretch text-transparent;
|
|
73
|
+
z-index: -1;
|
|
74
|
+
|
|
75
|
+
button {
|
|
76
|
+
@apply cursor-pointer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.modal-box {
|
|
82
|
+
@layer daisyui.l1.l2.l3 {
|
|
83
|
+
@apply bg-base-100 col-start-1 row-start-1 max-h-screen w-11/12 max-w-[32rem] p-6;
|
|
84
|
+
transition:
|
|
85
|
+
translate 0.3s ease-out,
|
|
86
|
+
scale 0.3s ease-out,
|
|
87
|
+
opacity 0.2s ease-out 0.05s,
|
|
88
|
+
box-shadow 0.3s ease-out;
|
|
89
|
+
border-top-left-radius: var(--modal-tl, var(--radius-box));
|
|
90
|
+
border-top-right-radius: var(--modal-tr, var(--radius-box));
|
|
91
|
+
border-bottom-left-radius: var(--modal-bl, var(--radius-box));
|
|
92
|
+
border-bottom-right-radius: var(--modal-br, var(--radius-box));
|
|
93
|
+
scale: 95%;
|
|
94
|
+
opacity: 0;
|
|
95
|
+
box-shadow: oklch(0% 0 0/ 0.25) 0px 25px 50px -12px;
|
|
96
|
+
overflow-y: auto;
|
|
97
|
+
overscroll-behavior: contain;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.modal-top {
|
|
102
|
+
@layer daisyui.l1.l2 {
|
|
103
|
+
@apply place-items-start;
|
|
104
|
+
|
|
105
|
+
.modal-box {
|
|
106
|
+
@apply h-auto w-full max-w-none;
|
|
107
|
+
max-height: calc(100vh - 5em);
|
|
108
|
+
translate: 0 -100%;
|
|
109
|
+
scale: 1;
|
|
110
|
+
--modal-tl: 0;
|
|
111
|
+
--modal-tr: 0;
|
|
112
|
+
--modal-bl: var(--radius-box);
|
|
113
|
+
--modal-br: var(--radius-box);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.modal-middle {
|
|
119
|
+
@layer daisyui.l1.l2 {
|
|
120
|
+
@apply place-items-center;
|
|
121
|
+
|
|
122
|
+
.modal-box {
|
|
123
|
+
@apply h-auto w-11/12 max-w-[32rem];
|
|
124
|
+
max-height: calc(100vh - 5em);
|
|
125
|
+
translate: 0 2%;
|
|
126
|
+
scale: 98%;
|
|
127
|
+
--modal-tl: var(--radius-box);
|
|
128
|
+
--modal-tr: var(--radius-box);
|
|
129
|
+
--modal-bl: var(--radius-box);
|
|
130
|
+
--modal-br: var(--radius-box);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.modal-bottom {
|
|
136
|
+
@layer daisyui.l1.l2 {
|
|
137
|
+
@apply place-items-end;
|
|
138
|
+
|
|
139
|
+
.modal-box {
|
|
140
|
+
@apply h-auto w-full max-w-none;
|
|
141
|
+
max-height: calc(100vh - 5em);
|
|
142
|
+
translate: 0 100%;
|
|
143
|
+
scale: 1;
|
|
144
|
+
--modal-tl: var(--radius-box);
|
|
145
|
+
--modal-tr: var(--radius-box);
|
|
146
|
+
--modal-bl: 0;
|
|
147
|
+
--modal-br: 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.modal-start {
|
|
153
|
+
@layer daisyui.l1.l2 {
|
|
154
|
+
@apply place-items-start;
|
|
155
|
+
|
|
156
|
+
.modal-box {
|
|
157
|
+
@apply h-screen max-h-none w-auto max-w-none;
|
|
158
|
+
translate: -100% 0;
|
|
159
|
+
scale: 1;
|
|
160
|
+
--modal-tl: 0;
|
|
161
|
+
--modal-tr: var(--radius-box);
|
|
162
|
+
--modal-bl: 0;
|
|
163
|
+
--modal-br: var(--radius-box);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.modal-end {
|
|
169
|
+
@layer daisyui.l1.l2 {
|
|
170
|
+
@apply place-items-end;
|
|
171
|
+
|
|
172
|
+
.modal-box {
|
|
173
|
+
@apply h-screen max-h-none w-auto max-w-none;
|
|
174
|
+
translate: 100% 0;
|
|
175
|
+
scale: 1;
|
|
176
|
+
--modal-tl: var(--radius-box);
|
|
177
|
+
--modal-tr: 0;
|
|
178
|
+
--modal-bl: var(--radius-box);
|
|
179
|
+
--modal-br: 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.navbar {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply flex w-full items-center;
|
|
4
|
+
padding: 0.5rem;
|
|
5
|
+
min-height: 4rem;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where(.navbar) {
|
|
10
|
+
@layer daisyui.l1.l2 {
|
|
11
|
+
@apply relative;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.navbar-start {
|
|
16
|
+
@layer daisyui.l1.l2.l3 {
|
|
17
|
+
@apply inline-flex items-center;
|
|
18
|
+
width: 50%;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.navbar-center {
|
|
24
|
+
@layer daisyui.l1.l2.l3 {
|
|
25
|
+
@apply inline-flex items-center;
|
|
26
|
+
@apply shrink-0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navbar-end {
|
|
31
|
+
@layer daisyui.l1.l2.l3 {
|
|
32
|
+
@apply inline-flex items-center;
|
|
33
|
+
width: 50%;
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.progress {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply rounded-box text-base-content relative h-2 w-full appearance-none overflow-hidden bg-current/20;
|
|
4
|
+
&:indeterminate {
|
|
5
|
+
background-image: repeating-linear-gradient(
|
|
6
|
+
90deg,
|
|
7
|
+
currentColor -1%,
|
|
8
|
+
currentColor 10%,
|
|
9
|
+
#0000 10%,
|
|
10
|
+
#0000 90%
|
|
11
|
+
);
|
|
12
|
+
background-size: 200%;
|
|
13
|
+
background-position-x: 15%;
|
|
14
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
15
|
+
animation: progress 5s ease-in-out infinite;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@supports (-moz-appearance: none) {
|
|
19
|
+
&::-moz-progress-bar {
|
|
20
|
+
@apply bg-transparent;
|
|
21
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
+
animation: progress 5s ease-in-out infinite;
|
|
23
|
+
background-image: repeating-linear-gradient(
|
|
24
|
+
90deg,
|
|
25
|
+
currentColor -1%,
|
|
26
|
+
currentColor 10%,
|
|
27
|
+
#0000 10%,
|
|
28
|
+
#0000 90%
|
|
29
|
+
);
|
|
30
|
+
background-size: 200%;
|
|
31
|
+
background-position-x: 15%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@supports (-moz-appearance: none) {
|
|
38
|
+
&::-moz-progress-bar {
|
|
39
|
+
@apply rounded-box bg-current;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@supports (-webkit-appearance: none) {
|
|
44
|
+
&::-webkit-progress-bar {
|
|
45
|
+
@apply rounded-box bg-transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::-webkit-progress-value {
|
|
49
|
+
@apply rounded-box;
|
|
50
|
+
background-color: currentColor;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.progress-primary {
|
|
57
|
+
@layer daisyui.l1.l2 {
|
|
58
|
+
@apply text-primary;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.progress-secondary {
|
|
63
|
+
@layer daisyui.l1.l2 {
|
|
64
|
+
@apply text-secondary;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.progress-accent {
|
|
69
|
+
@layer daisyui.l1.l2 {
|
|
70
|
+
@apply text-accent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.progress-neutral {
|
|
75
|
+
@layer daisyui.l1.l2 {
|
|
76
|
+
@apply text-neutral;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.progress-info {
|
|
81
|
+
@layer daisyui.l1.l2 {
|
|
82
|
+
@apply text-info;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.progress-success {
|
|
87
|
+
@layer daisyui.l1.l2 {
|
|
88
|
+
@apply text-success;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.progress-warning {
|
|
93
|
+
@layer daisyui.l1.l2 {
|
|
94
|
+
@apply text-warning;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.progress-error {
|
|
99
|
+
@layer daisyui.l1.l2 {
|
|
100
|
+
@apply text-error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@keyframes progress {
|
|
105
|
+
50% {
|
|
106
|
+
background-position-x: -115%;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.radial-progress {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply relative inline-grid h-[var(--size)] w-[var(--size)] place-content-center rounded-full bg-transparent;
|
|
4
|
+
vertical-align: middle;
|
|
5
|
+
box-sizing: content-box;
|
|
6
|
+
--value: 0;
|
|
7
|
+
--size: 5rem;
|
|
8
|
+
--thickness: calc(var(--size) / 10);
|
|
9
|
+
--radialprogress: calc(var(--value) * 1%);
|
|
10
|
+
transition: --radialprogress 0.3s linear;
|
|
11
|
+
|
|
12
|
+
&:before {
|
|
13
|
+
@apply absolute inset-0 rounded-full;
|
|
14
|
+
content: "";
|
|
15
|
+
background:
|
|
16
|
+
radial-gradient(farthest-side, currentColor 98%, #0000) top/var(--thickness)
|
|
17
|
+
var(--thickness) no-repeat,
|
|
18
|
+
conic-gradient(currentColor var(--radialprogress), #0000 0);
|
|
19
|
+
-webkit-mask: radial-gradient(
|
|
20
|
+
farthest-side,
|
|
21
|
+
#0000 calc(100% - var(--thickness)),
|
|
22
|
+
#000 calc(100% + 0.5px - var(--thickness))
|
|
23
|
+
);
|
|
24
|
+
mask: radial-gradient(
|
|
25
|
+
farthest-side,
|
|
26
|
+
#0000 calc(100% - var(--thickness)),
|
|
27
|
+
#000 calc(100% + 0.5px - var(--thickness))
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:after {
|
|
32
|
+
@apply absolute rounded-full bg-current;
|
|
33
|
+
transition: transform 0.3s linear;
|
|
34
|
+
content: "";
|
|
35
|
+
inset: calc(50% - var(--thickness) / 2);
|
|
36
|
+
transform: rotate(calc(var(--value) * 3.6deg - 90deg)) translate(calc(var(--size) / 2 - 50%));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
.radio {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
@apply relative inline-block shrink-0 cursor-pointer appearance-none rounded-full p-1 align-middle;
|
|
4
|
+
border: var(--border) solid var(--input-color, color-mix(in srgb, currentColor 20%, #0000));
|
|
5
|
+
box-shadow: 0 1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset;
|
|
6
|
+
--size: calc(var(--size-selector, 0.25rem) * 6);
|
|
7
|
+
width: var(--size);
|
|
8
|
+
height: var(--size);
|
|
9
|
+
color: var(--input-color, currentColor);
|
|
10
|
+
&:before {
|
|
11
|
+
@apply block size-full rounded-full;
|
|
12
|
+
--tw-content: "";
|
|
13
|
+
content: var(--tw-content);
|
|
14
|
+
background-size: auto, calc(var(--noise) * 100%);
|
|
15
|
+
background-image: none, var(--fx-noise);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:focus-visible {
|
|
19
|
+
outline: 2px solid currentColor;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:checked,
|
|
23
|
+
&[aria-checked="true"] {
|
|
24
|
+
@apply bg-base-100 border-current;
|
|
25
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
26
|
+
animation: radio 0.2s ease-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:before {
|
|
30
|
+
@apply bg-current;
|
|
31
|
+
box-shadow:
|
|
32
|
+
0 -1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
33
|
+
0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
34
|
+
0 1px oklch(0% 0 0 / calc(var(--depth) * 0.1));
|
|
35
|
+
}
|
|
36
|
+
@media (forced-colors: active) {
|
|
37
|
+
&:before {
|
|
38
|
+
@apply outline -outline-offset-1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@media print {
|
|
42
|
+
&:before {
|
|
43
|
+
outline: 0.25rem solid;
|
|
44
|
+
outline-offset: -1rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.radio-primary {
|
|
52
|
+
@layer daisyui.l1.l2 {
|
|
53
|
+
--input-color: var(--color-primary);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.radio-secondary {
|
|
58
|
+
@layer daisyui.l1.l2 {
|
|
59
|
+
--input-color: var(--color-secondary);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.radio-accent {
|
|
64
|
+
@layer daisyui.l1.l2 {
|
|
65
|
+
--input-color: var(--color-accent);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.radio-neutral {
|
|
70
|
+
@layer daisyui.l1.l2 {
|
|
71
|
+
--input-color: var(--color-neutral);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.radio-info {
|
|
76
|
+
@layer daisyui.l1.l2 {
|
|
77
|
+
--input-color: var(--color-info);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.radio-success {
|
|
82
|
+
@layer daisyui.l1.l2 {
|
|
83
|
+
--input-color: var(--color-success);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.radio-warning {
|
|
88
|
+
@layer daisyui.l1.l2 {
|
|
89
|
+
--input-color: var(--color-warning);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.radio-error {
|
|
94
|
+
@layer daisyui.l1.l2 {
|
|
95
|
+
--input-color: var(--color-error);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.radio:disabled {
|
|
100
|
+
@layer daisyui.l1.l2 {
|
|
101
|
+
@apply cursor-not-allowed opacity-20;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.radio-xs {
|
|
106
|
+
@layer daisyui.l1.l2 {
|
|
107
|
+
padding: 0.125rem;
|
|
108
|
+
&:is([type="radio"]) {
|
|
109
|
+
--size: calc(var(--size-selector, 0.25rem) * 4);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.radio-sm {
|
|
115
|
+
@layer daisyui.l1.l2 {
|
|
116
|
+
padding: 0.1875rem;
|
|
117
|
+
&:is([type="radio"]) {
|
|
118
|
+
--size: calc(var(--size-selector, 0.25rem) * 5);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.radio-md {
|
|
124
|
+
@layer daisyui.l1.l2 {
|
|
125
|
+
padding: 0.25rem;
|
|
126
|
+
&:is([type="radio"]) {
|
|
127
|
+
--size: calc(var(--size-selector, 0.25rem) * 6);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.radio-lg {
|
|
133
|
+
@layer daisyui.l1.l2 {
|
|
134
|
+
padding: 0.3125rem;
|
|
135
|
+
&:is([type="radio"]) {
|
|
136
|
+
--size: calc(var(--size-selector, 0.25rem) * 7);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.radio-xl {
|
|
142
|
+
@layer daisyui.l1.l2 {
|
|
143
|
+
padding: 0.375rem;
|
|
144
|
+
&:is([type="radio"]) {
|
|
145
|
+
--size: calc(var(--size-selector, 0.25rem) * 8);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@keyframes radio {
|
|
151
|
+
0% {
|
|
152
|
+
padding: 5px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
50% {
|
|
156
|
+
padding: 3px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
.range {
|
|
2
|
+
@layer daisyui.l1.l2.l3 {
|
|
3
|
+
appearance: none;
|
|
4
|
+
-webkit-appearance: none;
|
|
5
|
+
--range-thumb: var(--color-base-100);
|
|
6
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 6);
|
|
7
|
+
--range-progress: currentColor;
|
|
8
|
+
--range-fill: 1;
|
|
9
|
+
--range-p: 0.25rem;
|
|
10
|
+
--range-bg: color-mix(in oklab, currentColor 10%, #0000);
|
|
11
|
+
@apply cursor-pointer overflow-hidden bg-transparent align-middle;
|
|
12
|
+
width: clamp(3rem, 20rem, 100%);
|
|
13
|
+
/* --radius-selector-max is a separate variable because ~ calc(min(calc(--var))) ~ gives build error in PostCSS+Nuxt */
|
|
14
|
+
--radius-selector-max: calc(
|
|
15
|
+
var(--radius-selector) + var(--radius-selector) + var(--radius-selector)
|
|
16
|
+
);
|
|
17
|
+
border-radius: calc(var(--radius-selector) + min(var(--range-p), var(--radius-selector-max)));
|
|
18
|
+
border: none;
|
|
19
|
+
height: var(--range-thumb-size);
|
|
20
|
+
|
|
21
|
+
[dir="rtl"] & {
|
|
22
|
+
--range-dir: -1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus {
|
|
26
|
+
outline: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:focus-visible {
|
|
30
|
+
outline: 2px solid;
|
|
31
|
+
outline-offset: 2px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::-webkit-slider-runnable-track {
|
|
35
|
+
@apply w-full;
|
|
36
|
+
background-color: var(--range-bg);
|
|
37
|
+
border-radius: var(--radius-selector);
|
|
38
|
+
height: calc(var(--range-thumb-size) * 0.5);
|
|
39
|
+
}
|
|
40
|
+
@media (forced-colors: active) {
|
|
41
|
+
&::-webkit-slider-runnable-track {
|
|
42
|
+
border: 1px solid;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::-webkit-slider-thumb {
|
|
47
|
+
@apply relative box-border;
|
|
48
|
+
border-radius: calc(var(--radius-selector) + min(var(--range-p), var(--radius-selector-max)));
|
|
49
|
+
background-color: var(--range-thumb);
|
|
50
|
+
height: var(--range-thumb-size);
|
|
51
|
+
width: var(--range-thumb-size);
|
|
52
|
+
border: var(--range-p) solid;
|
|
53
|
+
appearance: none;
|
|
54
|
+
-webkit-appearance: none;
|
|
55
|
+
top: 50%;
|
|
56
|
+
color: var(--range-progress);
|
|
57
|
+
transform: translateY(-50%);
|
|
58
|
+
box-shadow:
|
|
59
|
+
0 -1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
60
|
+
0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
61
|
+
0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000),
|
|
62
|
+
0 0 0 2rem var(--range-thumb) inset,
|
|
63
|
+
calc((var(--range-dir, 1) * -100cqw) - (var(--range-dir, 1) * var(--range-thumb-size) / 2))
|
|
64
|
+
0 0 calc(100cqw * var(--range-fill));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&::-moz-range-track {
|
|
68
|
+
@apply w-full;
|
|
69
|
+
background-color: var(--range-bg);
|
|
70
|
+
border-radius: var(--radius-selector);
|
|
71
|
+
height: calc(var(--range-thumb-size) * 0.5);
|
|
72
|
+
}
|
|
73
|
+
@media (forced-colors: active) {
|
|
74
|
+
&::-moz-range-track {
|
|
75
|
+
border: 1px solid;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::-moz-range-thumb {
|
|
80
|
+
@apply relative box-border;
|
|
81
|
+
border-radius: calc(var(--radius-selector) + min(var(--range-p), var(--radius-selector-max)));
|
|
82
|
+
background-color: currentColor;
|
|
83
|
+
height: var(--range-thumb-size);
|
|
84
|
+
width: var(--range-thumb-size);
|
|
85
|
+
border: var(--range-p) solid;
|
|
86
|
+
top: 50%;
|
|
87
|
+
color: var(--range-progress);
|
|
88
|
+
box-shadow:
|
|
89
|
+
0 -1px oklch(0% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
90
|
+
0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset,
|
|
91
|
+
0 1px color-mix(in oklab, currentColor calc(var(--depth) * 10%), #0000),
|
|
92
|
+
0 0 0 2rem var(--range-thumb) inset,
|
|
93
|
+
calc((var(--range-dir, 1) * -100cqw) - (var(--range-dir, 1) * var(--range-thumb-size) / 2))
|
|
94
|
+
0 0 calc(100cqw * var(--range-fill));
|
|
95
|
+
}
|
|
96
|
+
&:disabled {
|
|
97
|
+
@apply cursor-not-allowed opacity-30;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.range-primary {
|
|
103
|
+
@layer daisyui.l1.l2 {
|
|
104
|
+
@apply text-primary;
|
|
105
|
+
--range-thumb: var(--color-primary-content);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.range-secondary {
|
|
110
|
+
@layer daisyui.l1.l2 {
|
|
111
|
+
@apply text-secondary;
|
|
112
|
+
--range-thumb: var(--color-secondary-content);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.range-accent {
|
|
117
|
+
@layer daisyui.l1.l2 {
|
|
118
|
+
@apply text-accent;
|
|
119
|
+
--range-thumb: var(--color-accent-content);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.range-neutral {
|
|
124
|
+
@layer daisyui.l1.l2 {
|
|
125
|
+
@apply text-neutral;
|
|
126
|
+
--range-thumb: var(--color-neutral-content);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.range-success {
|
|
131
|
+
@layer daisyui.l1.l2 {
|
|
132
|
+
@apply text-success;
|
|
133
|
+
--range-thumb: var(--color-success-content);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.range-warning {
|
|
138
|
+
@layer daisyui.l1.l2 {
|
|
139
|
+
@apply text-warning;
|
|
140
|
+
--range-thumb: var(--color-warning-content);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.range-info {
|
|
145
|
+
@layer daisyui.l1.l2 {
|
|
146
|
+
@apply text-info;
|
|
147
|
+
--range-thumb: var(--color-info-content);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.range-error {
|
|
152
|
+
@layer daisyui.l1.l2 {
|
|
153
|
+
@apply text-error;
|
|
154
|
+
--range-thumb: var(--color-error-content);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.range-xs {
|
|
159
|
+
@layer daisyui.l1.l2 {
|
|
160
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 4);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.range-sm {
|
|
165
|
+
@layer daisyui.l1.l2 {
|
|
166
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 5);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.range-md {
|
|
171
|
+
@layer daisyui.l1.l2 {
|
|
172
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 6);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.range-lg {
|
|
177
|
+
@layer daisyui.l1.l2 {
|
|
178
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 7);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.range-xl {
|
|
183
|
+
@layer daisyui.l1.l2 {
|
|
184
|
+
--range-thumb-size: calc(var(--size-selector, 0.25rem) * 8);
|
|
185
|
+
}
|
|
186
|
+
}
|