Skip to content

Commit 58add58

Browse files
committed
lint and format
1 parent c97e84e commit 58add58

File tree

8 files changed

+73
-50
lines changed

8 files changed

+73
-50
lines changed

packages/daisyui/functions/copyFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export const copyFile = async (from, to, newName = null) => {
1313

1414
await fs.copyFile(from, destPath)
1515
} catch (error) {
16-
throw new Error(`Error copying file from ${from} to ${to}: ${error.message}`)
16+
throw new Error(`Error copying file from ${from} to ${to}: ${error.message}`)
1717
}
1818
}

packages/daisyui/src/base/rootscrollgutter.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
:where(
22
:root:has(
3-
.modal-open,
4-
.modal[open],
5-
.modal:target,
6-
.modal-toggle:checked,
7-
.drawer:not(.drawer-open) > .drawer-toggle:checked
8-
)
3+
.modal-open,
4+
.modal[open],
5+
.modal:target,
6+
.modal-toggle:checked,
7+
.drawer:not(.drawer-open) > .drawer-toggle:checked
8+
)
99
) {
1010
scrollbar-gutter: stable;
1111
background-image: linear-gradient(var(--color-base-100), var(--color-base-100));
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
:root:has(
2-
.modal-open,
3-
.modal[open],
4-
.modal:target,
5-
.modal-toggle:checked,
6-
.drawer:not([class*="drawer-open"]) > .drawer-toggle:checked
7-
) {
2+
.modal-open,
3+
.modal[open],
4+
.modal:target,
5+
.modal-toggle:checked,
6+
.drawer:not([class*="drawer-open"]) > .drawer-toggle:checked
7+
) {
88
@apply overflow-hidden;
99
}

packages/daisyui/src/components/button.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@
190190

191191
.btn-outline {
192192
&:not(
193-
.btn-active,
194-
:hover,
195-
:active:focus,
196-
:focus-visible,
197-
:disabled,
198-
[disabled],
199-
.btn-disabled,
200-
:checked
201-
) {
193+
.btn-active,
194+
:hover,
195+
:active:focus,
196+
:focus-visible,
197+
:disabled,
198+
[disabled],
199+
.btn-disabled,
200+
:checked
201+
) {
202202
--btn-shadow: "";
203203
--btn-bg: #0000;
204204
--btn-fg: var(--btn-color);
@@ -227,15 +227,15 @@
227227

228228
.btn-dash {
229229
&:not(
230-
.btn-active,
231-
:hover,
232-
:active:focus,
233-
:focus-visible,
234-
:disabled,
235-
[disabled],
236-
.btn-disabled,
237-
:checked
238-
) {
230+
.btn-active,
231+
:hover,
232+
:active:focus,
233+
:focus-visible,
234+
:disabled,
235+
[disabled],
236+
.btn-disabled,
237+
:checked
238+
) {
239239
--btn-shadow: "";
240240
border-style: dashed;
241241
--btn-bg: #0000;

packages/daisyui/src/components/input.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
position: absolute;
7474
inset-inline-end: 0.75em;
7575
}
76-
76+
7777
&:has(> input[type="date"]) {
7878
:where(input[type="date"]) {
7979
@apply inline-flex;
8080
-webkit-appearance: none;
8181
appearance: none;
8282
}
83-
83+
8484
input[type="date"]::-webkit-calendar-picker-indicator {
8585
position: absolute;
8686
inset-inline-end: 0.75em;

packages/daisyui/src/components/menu.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
}
6363

6464
:where(
65-
li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title),
66-
li:not(.menu-title, .disabled) > details > summary:not(.menu-title)
67-
):not(.menu-active, :active, .btn) {
65+
li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title),
66+
li:not(.menu-title, .disabled) > details > summary:not(.menu-title)
67+
):not(.menu-active, :active, .btn) {
6868
&.menu-focus,
6969
&:focus-visible {
7070
@apply bg-base-content/10 text-base-content cursor-pointer outline-hidden;

packages/daisyui/src/components/tab.css

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,21 @@
4141

4242
&:checked,
4343
&:is(label:has(:checked)),
44-
&:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
44+
&:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
4545
& + .tab-content {
4646
@apply block;
4747
height: calc(100% - var(--tab-height) + var(--border));
4848
}
4949
}
50-
&:not(:checked, label:has(:checked), :hover, .tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
50+
&:not(
51+
:checked,
52+
label:has(:checked),
53+
:hover,
54+
.tab-active,
55+
[aria-selected="true"],
56+
[aria-current="true"],
57+
[aria-current="page"]
58+
) {
5159
@apply text-base-content/50;
5260
}
5361

@@ -97,7 +105,10 @@
97105
left: 10%;
98106
position: absolute;
99107
}
100-
&:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]):not(.tab-disabled, [disabled]),
108+
&:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]):not(
109+
.tab-disabled,
110+
[disabled]
111+
),
101112
&:is(input:checked),
102113
&:is(label:has(:checked)) {
103114
&:before {
@@ -133,7 +144,10 @@
133144
padding: var(--tab-paddings);
134145
border-color: var(--tab-border-colors);
135146

136-
&:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]):not(.tab-disabled, [disabled]),
147+
&:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]):not(
148+
.tab-disabled,
149+
[disabled]
150+
),
137151
&:is(input:checked, label:has(:checked)) {
138152
--tab-border: var(--border) var(--border) 0 var(--border);
139153
--tab-border-colors: var(--tab-border-color) var(--tab-border-color) #0000
@@ -195,7 +209,7 @@
195209

196210
&:has(.tab-content) {
197211
> .tab:first-child {
198-
&:not(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
212+
&:not(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
199213
--tab-border-colors: var(--tab-border-color) var(--tab-border-color) #0000
200214
var(--tab-border-color);
201215
}
@@ -212,7 +226,7 @@
212226

213227
:checked,
214228
label:has(:checked),
215-
:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
229+
:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
216230
& + .tab-content {
217231
&:nth-child(1),
218232
&:nth-child(n + 3) {
@@ -240,7 +254,10 @@
240254
--tab-corner-position: top left, top right;
241255
/* --last-tab-margin: 0 var(--tab-p) 0 0; */
242256

243-
&:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]):not(.tab-disabled, [disabled]),
257+
&:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]):not(
258+
.tab-disabled,
259+
[disabled]
260+
),
244261
&:is(input:checked),
245262
&:is(label:has(:checked)) {
246263
--tab-border: var(--border) var(--border) 0 var(--border);
@@ -268,7 +285,7 @@
268285

269286
&:has(.tab-content) {
270287
> .tab:first-child {
271-
&:not(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
288+
&:not(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
272289
--tab-border-colors: var(--tab-border-color) var(--tab-border-color) #0000
273290
var(--tab-border-color);
274291
}
@@ -286,7 +303,7 @@
286303

287304
:checked,
288305
label:has(:checked),
289-
:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
306+
:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
290307
& + .tab-content {
291308
&:nth-child(1),
292309
&:nth-child(n + 3) {
@@ -314,7 +331,10 @@
314331
--tab-corner-position: top left, top right;
315332
/* --last-tab-margin: 0 var(--tab-p) 0 0; */
316333

317-
&:is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]):not(.tab-disabled, [disabled]),
334+
&:is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]):not(
335+
.tab-disabled,
336+
[disabled]
337+
),
318338
&:is(input:checked),
319339
&:is(label:has(:checked)) {
320340
--tab-border: 0 var(--border) var(--border) var(--border);
@@ -342,7 +362,7 @@
342362

343363
&:has(.tab-content) {
344364
> .tab:first-child {
345-
&:not(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
365+
&:not(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
346366
--tab-border-colors: #0000 var(--tab-border-color) var(--tab-border-color)
347367
var(--tab-border-color);
348368
}
@@ -360,7 +380,7 @@
360380

361381
> :checked,
362382
> :is(label:has(:checked)),
363-
> :is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]) {
383+
> :is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]) {
364384
& + .tab-content:not(:nth-child(2)) {
365385
--tabcontent-radius-es: var(--radius-box);
366386
}
@@ -453,7 +473,10 @@
453473
}
454474
}
455475

456-
> :is(.tab-active, [aria-selected=true], [aria-current=true], [aria-current=page]):not(.tab-disabled, [disabled]),
476+
> :is(.tab-active, [aria-selected="true"], [aria-current="true"], [aria-current="page"]):not(
477+
.tab-disabled,
478+
[disabled]
479+
),
457480
> :is(input:checked),
458481
> :is(label:has(:checked)) {
459482
background-color: var(--tab-bg, var(--color-base-100));

packages/docs/src/routes/(routes)/store/[productId]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
href={value}
590590
class="flex w-full cursor-pointer flex-col items-center gap-2 p-4 text-center capitalize transition-colors *:opacity-50 *:transition-opacity hover:*:opacity-100 focus-visible:outline focus-visible:-outline-offset-2 md:p-6"
591591
onclick={(e) => {
592-
e.preventDefault(), screenshotDialog.showModal()
592+
;(e.preventDefault(), screenshotDialog.showModal())
593593
screenshotUrl = value
594594
}}
595595
>

0 commit comments

Comments
 (0)