daisyui 4.3.0-alpha.8 → 4.3.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/dist/full.css +38 -12
- package/package.json +1 -1
- package/src/theming/functions.js +5 -5
package/dist/full.css
CHANGED
|
@@ -2173,7 +2173,8 @@ hr {
|
|
|
2173
2173
|
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
2174
2174
|
*/
|
|
2175
2175
|
abbr:where([title]) {
|
|
2176
|
-
text-decoration: underline dotted;
|
|
2176
|
+
-webkit-text-decoration: underline dotted;
|
|
2177
|
+
text-decoration: underline dotted;
|
|
2177
2178
|
}
|
|
2178
2179
|
/*
|
|
2179
2180
|
Remove the default font size and weight for headings.
|
|
@@ -2552,7 +2553,9 @@ html {
|
|
|
2552
2553
|
display: inline-flex;
|
|
2553
2554
|
align-items: center;
|
|
2554
2555
|
justify-content: center;
|
|
2556
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2555
2557
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2558
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2556
2559
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2557
2560
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2558
2561
|
transition-duration: 200ms;
|
|
@@ -2707,7 +2710,8 @@ html {
|
|
|
2707
2710
|
min-height: 3rem;
|
|
2708
2711
|
flex-shrink: 0;
|
|
2709
2712
|
cursor: pointer;
|
|
2710
|
-
user-select: none;
|
|
2713
|
+
-webkit-user-select: none;
|
|
2714
|
+
user-select: none;
|
|
2711
2715
|
flex-wrap: wrap;
|
|
2712
2716
|
align-items: center;
|
|
2713
2717
|
justify-content: center;
|
|
@@ -3030,7 +3034,8 @@ html {
|
|
|
3030
3034
|
outline-offset: -3px;
|
|
3031
3035
|
outline-color: var(--fallback-bc,oklch(var(--bc)/0.05));
|
|
3032
3036
|
--tw-backdrop-blur: blur(8px);
|
|
3033
|
-
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)
|
|
3037
|
+
-webkit-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);
|
|
3038
|
+
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)}
|
|
3034
3039
|
.diff-item-2 {
|
|
3035
3040
|
overflow: hidden;
|
|
3036
3041
|
border-right-width: 2px;
|
|
@@ -3158,7 +3163,9 @@ html {
|
|
|
3158
3163
|
--tw-scale-x: .95;
|
|
3159
3164
|
--tw-scale-y: .95;
|
|
3160
3165
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
3166
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
3161
3167
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
3168
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
3162
3169
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3163
3170
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
3164
3171
|
transition-duration: 200ms}
|
|
@@ -3329,7 +3336,8 @@ html {
|
|
|
3329
3336
|
height: 100%;
|
|
3330
3337
|
flex-shrink: 0;
|
|
3331
3338
|
cursor: pointer;
|
|
3332
|
-
user-select: none;
|
|
3339
|
+
-webkit-user-select: none;
|
|
3340
|
+
user-select: none;
|
|
3333
3341
|
flex-wrap: wrap;
|
|
3334
3342
|
align-items: center;
|
|
3335
3343
|
justify-content: center;
|
|
@@ -3339,7 +3347,9 @@ html {
|
|
|
3339
3347
|
font-size: 0.875rem;
|
|
3340
3348
|
line-height: 1.25rem;
|
|
3341
3349
|
line-height: 1em;
|
|
3350
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
3342
3351
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
3352
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
3343
3353
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3344
3354
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
3345
3355
|
transition-duration: 200ms;
|
|
@@ -3383,7 +3393,8 @@ html {
|
|
|
3383
3393
|
flex-direction: column}
|
|
3384
3394
|
.label {
|
|
3385
3395
|
display: flex;
|
|
3386
|
-
user-select: none;
|
|
3396
|
+
-webkit-user-select: none;
|
|
3397
|
+
user-select: none;
|
|
3387
3398
|
align-items: center;
|
|
3388
3399
|
justify-content: space-between;
|
|
3389
3400
|
padding-left: 0.25rem;
|
|
@@ -3540,10 +3551,12 @@ html {
|
|
|
3540
3551
|
align-items: center;
|
|
3541
3552
|
gap: 0.5rem;
|
|
3542
3553
|
grid-auto-columns: minmax(auto, max-content) auto max-content;
|
|
3543
|
-
user-select: none
|
|
3554
|
+
-webkit-user-select: none;
|
|
3555
|
+
user-select: none}
|
|
3544
3556
|
.menu li.disabled {
|
|
3545
3557
|
cursor: not-allowed;
|
|
3546
|
-
user-select: none;
|
|
3558
|
+
-webkit-user-select: none;
|
|
3559
|
+
user-select: none;
|
|
3547
3560
|
color: var(--fallback-bc,oklch(var(--bc)/0.3))}
|
|
3548
3561
|
.menu :where(li > .menu-dropdown:not(.menu-dropdown-show)) {
|
|
3549
3562
|
display: none}
|
|
@@ -3637,7 +3650,9 @@ html {
|
|
|
3637
3650
|
--tw-bg-opacity: 1;
|
|
3638
3651
|
background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));
|
|
3639
3652
|
padding: 1.5rem;
|
|
3653
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
3640
3654
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
3655
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
3641
3656
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3642
3657
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
3643
3658
|
transition-duration: 200ms;
|
|
@@ -3771,7 +3786,8 @@ html {
|
|
|
3771
3786
|
.select {
|
|
3772
3787
|
display: inline-flex;
|
|
3773
3788
|
cursor: pointer;
|
|
3774
|
-
user-select: none;
|
|
3789
|
+
-webkit-user-select: none;
|
|
3790
|
+
user-select: none;
|
|
3775
3791
|
appearance: none;
|
|
3776
3792
|
height: 3rem;
|
|
3777
3793
|
min-height: 3rem;
|
|
@@ -3879,7 +3895,8 @@ html {
|
|
|
3879
3895
|
.swap {
|
|
3880
3896
|
position: relative;
|
|
3881
3897
|
display: inline-grid;
|
|
3882
|
-
user-select: none;
|
|
3898
|
+
-webkit-user-select: none;
|
|
3899
|
+
user-select: none;
|
|
3883
3900
|
place-content: center;
|
|
3884
3901
|
cursor: pointer}
|
|
3885
3902
|
.swap > * {
|
|
@@ -3914,7 +3931,8 @@ html {
|
|
|
3914
3931
|
display: inline-flex;
|
|
3915
3932
|
height: 2rem;
|
|
3916
3933
|
cursor: pointer;
|
|
3917
|
-
user-select: none;
|
|
3934
|
+
-webkit-user-select: none;
|
|
3935
|
+
user-select: none;
|
|
3918
3936
|
appearance: none;
|
|
3919
3937
|
flex-wrap: wrap;
|
|
3920
3938
|
align-items: center;
|
|
@@ -5202,7 +5220,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
5202
5220
|
padding-top: 0.5rem;
|
|
5203
5221
|
padding-bottom: 0.5rem;
|
|
5204
5222
|
text-align: start;
|
|
5223
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
5205
5224
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
5225
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
5206
5226
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5207
5227
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
5208
5228
|
transition-duration: 200ms;
|
|
@@ -21190,7 +21210,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21190
21210
|
.ring-offset-warning\/95 {
|
|
21191
21211
|
--tw-ring-offset-color: var(--fallback-wa,oklch(var(--wa)/0.95))}
|
|
21192
21212
|
.transition {
|
|
21213
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
21193
21214
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
21215
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
21194
21216
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21195
21217
|
transition-duration: 150ms}
|
|
21196
21218
|
.transition-all {
|
|
@@ -21218,7 +21240,8 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21218
21240
|
.glass,
|
|
21219
21241
|
.glass.btn-active {
|
|
21220
21242
|
border: none;
|
|
21221
|
-
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21243
|
+
-webkit-backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21244
|
+
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21222
21245
|
background-color: transparent;
|
|
21223
21246
|
background-image: linear-gradient(
|
|
21224
21247
|
135deg,
|
|
@@ -21236,7 +21259,8 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21236
21259
|
@media (hover: hover) {
|
|
21237
21260
|
.glass.btn-active {
|
|
21238
21261
|
border: none;
|
|
21239
|
-
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21262
|
+
-webkit-backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21263
|
+
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21240
21264
|
background-color: transparent;
|
|
21241
21265
|
background-image: linear-gradient(
|
|
21242
21266
|
135deg,
|
|
@@ -22395,7 +22419,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
22395
22419
|
.tooltip:before,
|
|
22396
22420
|
.tooltip:after {
|
|
22397
22421
|
opacity: 0;
|
|
22422
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
22398
22423
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
22424
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
22399
22425
|
transition-delay: 100ms;
|
|
22400
22426
|
transition-duration: 200ms;
|
|
22401
22427
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)}
|
package/package.json
CHANGED
package/src/theming/functions.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const colorNames = require("./colorNames")
|
|
2
2
|
const themeDefaults = require("./themeDefaults")
|
|
3
3
|
|
|
4
|
-
const { toGamut, interpolate, wcagContrast } = require("culori")
|
|
4
|
+
const { toGamut, interpolate, wcagContrast } = require("culori/require")
|
|
5
5
|
|
|
6
|
-
const cutNumber = (number) => (number ? +number.toFixed(6) : 0)
|
|
7
|
-
const toGamutOKLCH = toGamut("oklch")
|
|
6
|
+
const cutNumber = (number) => (number ? +number.toFixed(6) : 0)
|
|
7
|
+
const toGamutOKLCH = toGamut("oklch")
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
isDark: (color) => {
|
|
@@ -37,7 +37,7 @@ module.exports = {
|
|
|
37
37
|
const resultObj = {}
|
|
38
38
|
|
|
39
39
|
Object.entries(input).forEach(([rule, value]) => {
|
|
40
|
-
if (Object.hasOwn(colorNames,rule)) {
|
|
40
|
+
if (Object.hasOwn(colorNames, rule)) {
|
|
41
41
|
const colorObj = toGamutOKLCH(value)
|
|
42
42
|
resultObj[colorNames[rule]] = this.colorObjToString(colorObj)
|
|
43
43
|
} else {
|
|
@@ -128,7 +128,7 @@ module.exports = {
|
|
|
128
128
|
})
|
|
129
129
|
|
|
130
130
|
// add other custom styles
|
|
131
|
-
if (!Object.hasOwn(colorNames,rule)) {
|
|
131
|
+
if (!Object.hasOwn(colorNames, rule)) {
|
|
132
132
|
resultObj[rule] = value
|
|
133
133
|
}
|
|
134
134
|
})
|