daisyui 4.0.0-alpha.5 → 4.0.0-alpha.7
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/README.md +1 -85
- package/dist/full.css +133 -733
- package/dist/styled.css +103 -11
- package/dist/styled.js +1 -1
- package/dist/unstyled.css +74 -11
- package/dist/unstyled.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/package.json +1 -1
package/dist/styled.css
CHANGED
|
@@ -378,6 +378,65 @@
|
|
|
378
378
|
white-space: pre;
|
|
379
379
|
top: calc(var(--value) * -1em);
|
|
380
380
|
}
|
|
381
|
+
.diff {
|
|
382
|
+
position: relative;
|
|
383
|
+
display: grid;
|
|
384
|
+
overflow: hidden;
|
|
385
|
+
container-type: inline-size;
|
|
386
|
+
grid-template-columns: auto 1fr
|
|
387
|
+
}
|
|
388
|
+
.diff-resizer {
|
|
389
|
+
position: relative;
|
|
390
|
+
top: 50%;
|
|
391
|
+
z-index: 1;
|
|
392
|
+
height: 3rem;
|
|
393
|
+
width: 25rem;
|
|
394
|
+
min-width: 1rem;
|
|
395
|
+
max-width: calc(100cqi - 1rem);
|
|
396
|
+
resize: horizontal;
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
opacity: 0;
|
|
399
|
+
transform-origin: 100% 100%;
|
|
400
|
+
scale: 4;
|
|
401
|
+
translate: 1.5rem -1.5rem;
|
|
402
|
+
clip-path: inset(calc(100% - 0.75rem) 0 0 calc(100% - 0.75rem))
|
|
403
|
+
}
|
|
404
|
+
.diff-resizer,
|
|
405
|
+
.diff-item-1,
|
|
406
|
+
.diff-item-2 {
|
|
407
|
+
position: relative;
|
|
408
|
+
grid-column-start: 1;
|
|
409
|
+
grid-row-start: 1
|
|
410
|
+
}
|
|
411
|
+
.diff-item-1:after {
|
|
412
|
+
pointer-events: none;
|
|
413
|
+
position: absolute;
|
|
414
|
+
bottom: 0px;
|
|
415
|
+
right: 1px;
|
|
416
|
+
top: 50%;
|
|
417
|
+
z-index: 1;
|
|
418
|
+
height: 2rem;
|
|
419
|
+
width: 2rem;
|
|
420
|
+
--tw-content: '';
|
|
421
|
+
content: var(--tw-content);
|
|
422
|
+
translate: 50% -50%
|
|
423
|
+
}
|
|
424
|
+
.diff-item-2 {
|
|
425
|
+
overflow: hidden
|
|
426
|
+
}
|
|
427
|
+
.diff-item-1 > *,
|
|
428
|
+
.diff-item-2 > * {
|
|
429
|
+
pointer-events: none;
|
|
430
|
+
position: absolute;
|
|
431
|
+
bottom: 0px;
|
|
432
|
+
left: 0px;
|
|
433
|
+
top: 0px;
|
|
434
|
+
height: 100%;
|
|
435
|
+
width: 100cqi;
|
|
436
|
+
max-width: none;
|
|
437
|
+
object-fit: cover;
|
|
438
|
+
object-position: center
|
|
439
|
+
}
|
|
381
440
|
.divider {
|
|
382
441
|
display: flex;
|
|
383
442
|
flex-direction: row;
|
|
@@ -1169,31 +1228,35 @@ input.tab:checked + .tab-content,
|
|
|
1169
1228
|
position: relative;
|
|
1170
1229
|
display: flex;
|
|
1171
1230
|
}
|
|
1172
|
-
:where(.timeline li) {
|
|
1231
|
+
:where(.timeline > li) {
|
|
1173
1232
|
position: relative;
|
|
1174
1233
|
display: grid;
|
|
1175
1234
|
align-items: center;
|
|
1176
|
-
grid-template-rows: 1fr auto 1fr;
|
|
1177
|
-
grid-template-columns: 1fr auto 1fr;
|
|
1235
|
+
grid-template-rows: var(--timeline-row-start, 1fr) auto var(--timeline-row-end, 1fr);
|
|
1236
|
+
grid-template-columns: var(--timeline-col-start, 1fr) auto var(--timeline-col-end, 1fr);
|
|
1178
1237
|
}
|
|
1179
|
-
:where(.timeline:not(:has(.timeline-start)) li) {
|
|
1180
|
-
|
|
1238
|
+
:where(.timeline:not(:has(.timeline-start)) > li) {
|
|
1239
|
+
--timeline-row-start: min-content;
|
|
1181
1240
|
}
|
|
1182
|
-
:where(.timeline:not(:has(.timeline-end)) li) {
|
|
1183
|
-
|
|
1241
|
+
:where(.timeline:not(:has(.timeline-end)) > li) {
|
|
1242
|
+
--timeline-row-end: min-content;
|
|
1184
1243
|
}
|
|
1185
1244
|
:where(.timeline:not(:has(.timeline-start)):not(:has(.timeline-end)) li) {
|
|
1186
|
-
|
|
1245
|
+
--timeline-row-start: min-content;
|
|
1246
|
+
--timeline-row-end: min-content;
|
|
1187
1247
|
}
|
|
1188
|
-
.timeline hr {
|
|
1248
|
+
.timeline > li > hr {
|
|
1189
1249
|
width: 100%;
|
|
1190
1250
|
border-width: 0px;
|
|
1191
1251
|
}
|
|
1192
|
-
|
|
1252
|
+
.timeline-snap-icon > li {
|
|
1253
|
+
--timeline-col-start: 0.5rem;
|
|
1254
|
+
}
|
|
1255
|
+
:where(.timeline > li > hr):first-child {
|
|
1193
1256
|
grid-column-start: 1;
|
|
1194
1257
|
grid-row-start: 2;
|
|
1195
1258
|
}
|
|
1196
|
-
:where(.timeline hr):last-child {
|
|
1259
|
+
:where(.timeline > li > hr):last-child {
|
|
1197
1260
|
grid-column-start: 3;
|
|
1198
1261
|
grid-row-start: 2;
|
|
1199
1262
|
}
|
|
@@ -2527,6 +2590,27 @@ details.collapse summary {
|
|
|
2527
2590
|
text-align: center;
|
|
2528
2591
|
transition: all 1s cubic-bezier(1, 0, 0, 1);
|
|
2529
2592
|
}
|
|
2593
|
+
.diff-item-1:after {
|
|
2594
|
+
border-radius: 9999px;
|
|
2595
|
+
border-width: 2px;
|
|
2596
|
+
--tw-border-opacity: 1;
|
|
2597
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity));
|
|
2598
|
+
background-color: oklch(var(--b1) / 0.5);
|
|
2599
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2600
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2601
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2602
|
+
outline-style: solid;
|
|
2603
|
+
outline-offset: -3px;
|
|
2604
|
+
outline-color: oklch(var(--bc) / 0.05);
|
|
2605
|
+
--tw-backdrop-blur: blur(8px);
|
|
2606
|
+
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2607
|
+
translate: 50% -50%
|
|
2608
|
+
}
|
|
2609
|
+
.diff-item-2 {
|
|
2610
|
+
border-right-width: 2px;
|
|
2611
|
+
--tw-border-opacity: 1;
|
|
2612
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity))
|
|
2613
|
+
}
|
|
2530
2614
|
.divider {
|
|
2531
2615
|
margin-top: 1rem;
|
|
2532
2616
|
margin-bottom: 1rem;
|
|
@@ -4508,10 +4592,18 @@ details.collapse summary {
|
|
|
4508
4592
|
background-image: var(--radius-end);
|
|
4509
4593
|
background-position: top right;
|
|
4510
4594
|
}
|
|
4595
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):first-child:before, [dir="rtl"] .tab-lifted:is(input:checked):first-child:before {
|
|
4596
|
+
background-image: var(--radius-start);
|
|
4597
|
+
background-position: top left;
|
|
4598
|
+
}
|
|
4511
4599
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, .tab-lifted:is(input:checked):last-child:before {
|
|
4512
4600
|
background-image: var(--radius-start);
|
|
4513
4601
|
background-position: top left;
|
|
4514
4602
|
}
|
|
4603
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, [dir="rtl"] .tab-lifted:is(input:checked):last-child:before {
|
|
4604
|
+
background-image: var(--radius-end);
|
|
4605
|
+
background-position: top right;
|
|
4606
|
+
}
|
|
4515
4607
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled])
|
|
4516
4608
|
+ .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):before, .tab-lifted:is(input:checked) + .tab-lifted:is(input:checked):before {
|
|
4517
4609
|
background-image: var(--radius-end);
|