daisyui 3.5.1 → 3.6.0
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 +40 -11
- package/package.json +1 -1
- package/src/index.d.ts +106 -2
package/dist/full.css
CHANGED
|
@@ -1206,7 +1206,8 @@ hr {
|
|
|
1206
1206
|
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
1207
1207
|
*/
|
|
1208
1208
|
abbr:where([title]) {
|
|
1209
|
-
text-decoration: underline dotted;
|
|
1209
|
+
-webkit-text-decoration: underline dotted;
|
|
1210
|
+
text-decoration: underline dotted;
|
|
1210
1211
|
}
|
|
1211
1212
|
/*
|
|
1212
1213
|
Remove the default font size and weight for headings.
|
|
@@ -1539,7 +1540,9 @@ html {
|
|
|
1539
1540
|
display: inline-flex;
|
|
1540
1541
|
align-items: center;
|
|
1541
1542
|
justify-content: center;
|
|
1543
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1542
1544
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1545
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1543
1546
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1544
1547
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
1545
1548
|
transition-duration: 200ms;
|
|
@@ -1699,14 +1702,17 @@ html {
|
|
|
1699
1702
|
display: inline-flex;
|
|
1700
1703
|
flex-shrink: 0;
|
|
1701
1704
|
cursor: pointer;
|
|
1702
|
-
user-select: none;
|
|
1705
|
+
-webkit-user-select: none;
|
|
1706
|
+
user-select: none;
|
|
1703
1707
|
flex-wrap: wrap;
|
|
1704
1708
|
align-items: center;
|
|
1705
1709
|
justify-content: center;
|
|
1706
1710
|
border-color: transparent;
|
|
1707
1711
|
border-color: hsl(var(--b2) / var(--tw-border-opacity));
|
|
1708
1712
|
text-align: center;
|
|
1713
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1709
1714
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1715
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1710
1716
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1711
1717
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
1712
1718
|
transition-duration: 200ms;
|
|
@@ -2036,7 +2042,9 @@ html {
|
|
|
2036
2042
|
grid-column-start: 1;
|
|
2037
2043
|
grid-row-start: 1}
|
|
2038
2044
|
.drawer-side > *:not(.drawer-overlay) {
|
|
2045
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2039
2046
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2047
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2040
2048
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2041
2049
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2042
2050
|
transition-duration: 300ms;
|
|
@@ -2081,7 +2089,9 @@ html {
|
|
|
2081
2089
|
--tw-scale-x: .95;
|
|
2082
2090
|
--tw-scale-y: .95;
|
|
2083
2091
|
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));
|
|
2092
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2084
2093
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2094
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2085
2095
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2086
2096
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2087
2097
|
transition-duration: 200ms}
|
|
@@ -2292,7 +2302,8 @@ html {
|
|
|
2292
2302
|
min-height: 2.875rem;
|
|
2293
2303
|
flex-shrink: 0;
|
|
2294
2304
|
cursor: pointer;
|
|
2295
|
-
user-select: none;
|
|
2305
|
+
-webkit-user-select: none;
|
|
2306
|
+
user-select: none;
|
|
2296
2307
|
flex-wrap: wrap;
|
|
2297
2308
|
align-items: center;
|
|
2298
2309
|
justify-content: center;
|
|
@@ -2302,7 +2313,9 @@ html {
|
|
|
2302
2313
|
font-size: 0.875rem;
|
|
2303
2314
|
line-height: 1.25rem;
|
|
2304
2315
|
line-height: 1em;
|
|
2316
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2305
2317
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2318
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2306
2319
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2307
2320
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2308
2321
|
transition-duration: 200ms;
|
|
@@ -2347,7 +2360,8 @@ html {
|
|
|
2347
2360
|
flex-direction: column}
|
|
2348
2361
|
.label {
|
|
2349
2362
|
display: flex;
|
|
2350
|
-
user-select: none;
|
|
2363
|
+
-webkit-user-select: none;
|
|
2364
|
+
user-select: none;
|
|
2351
2365
|
align-items: center;
|
|
2352
2366
|
justify-content: space-between;
|
|
2353
2367
|
padding-left: 0.25rem;
|
|
@@ -2546,10 +2560,12 @@ html {
|
|
|
2546
2560
|
align-items: center;
|
|
2547
2561
|
gap: 0.5rem;
|
|
2548
2562
|
grid-auto-columns: minmax(auto, max-content) auto max-content;
|
|
2549
|
-
user-select: none
|
|
2563
|
+
-webkit-user-select: none;
|
|
2564
|
+
user-select: none}
|
|
2550
2565
|
.menu li.disabled {
|
|
2551
2566
|
cursor: not-allowed;
|
|
2552
|
-
user-select: none;
|
|
2567
|
+
-webkit-user-select: none;
|
|
2568
|
+
user-select: none;
|
|
2553
2569
|
color: hsl(var(--bc) / 0.3)}
|
|
2554
2570
|
.menu :where(li > .menu-dropdown:not(.menu-dropdown-show)) {
|
|
2555
2571
|
display: none}
|
|
@@ -2636,7 +2652,9 @@ html {
|
|
|
2636
2652
|
--tw-bg-opacity: 1;
|
|
2637
2653
|
background-color: hsl(var(--b1) / var(--tw-bg-opacity));
|
|
2638
2654
|
padding: 1.5rem;
|
|
2655
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2639
2656
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2657
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2640
2658
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2641
2659
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
2642
2660
|
transition-duration: 200ms;
|
|
@@ -2774,7 +2792,8 @@ html {
|
|
|
2774
2792
|
.select {
|
|
2775
2793
|
display: inline-flex;
|
|
2776
2794
|
cursor: pointer;
|
|
2777
|
-
user-select: none;
|
|
2795
|
+
-webkit-user-select: none;
|
|
2796
|
+
user-select: none;
|
|
2778
2797
|
appearance: none;
|
|
2779
2798
|
height: 3rem;
|
|
2780
2799
|
padding-left: 1rem;
|
|
@@ -2882,7 +2901,8 @@ html {
|
|
|
2882
2901
|
.swap {
|
|
2883
2902
|
position: relative;
|
|
2884
2903
|
display: inline-grid;
|
|
2885
|
-
user-select: none;
|
|
2904
|
+
-webkit-user-select: none;
|
|
2905
|
+
user-select: none;
|
|
2886
2906
|
place-content: center;
|
|
2887
2907
|
cursor: pointer}
|
|
2888
2908
|
.swap > * {
|
|
@@ -2913,7 +2933,8 @@ html {
|
|
|
2913
2933
|
position: relative;
|
|
2914
2934
|
display: inline-flex;
|
|
2915
2935
|
cursor: pointer;
|
|
2916
|
-
user-select: none;
|
|
2936
|
+
-webkit-user-select: none;
|
|
2937
|
+
user-select: none;
|
|
2917
2938
|
flex-wrap: wrap;
|
|
2918
2939
|
align-items: center;
|
|
2919
2940
|
justify-content: center;
|
|
@@ -4163,7 +4184,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
4163
4184
|
padding-top: 0.5rem;
|
|
4164
4185
|
padding-bottom: 0.5rem;
|
|
4165
4186
|
text-align: left;
|
|
4187
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
4166
4188
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
4189
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
4167
4190
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
4168
4191
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
4169
4192
|
transition-duration: 200ms;
|
|
@@ -21862,7 +21885,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21862
21885
|
.ring-offset-warning\/95 {
|
|
21863
21886
|
--tw-ring-offset-color: hsl(var(--wa) / 0.95)}
|
|
21864
21887
|
.transition {
|
|
21888
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
21865
21889
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
21890
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
21866
21891
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21867
21892
|
transition-duration: 150ms}
|
|
21868
21893
|
.transition-all {
|
|
@@ -21916,7 +21941,8 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21916
21941
|
.glass,
|
|
21917
21942
|
.glass.btn-active {
|
|
21918
21943
|
border: none;
|
|
21919
|
-
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21944
|
+
-webkit-backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21945
|
+
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21920
21946
|
background-color: transparent;
|
|
21921
21947
|
background-image: linear-gradient(
|
|
21922
21948
|
135deg,
|
|
@@ -21934,7 +21960,8 @@ details.collapse summary::-webkit-details-marker {
|
|
|
21934
21960
|
@media (hover: hover) {
|
|
21935
21961
|
.glass.btn-active {
|
|
21936
21962
|
border: none;
|
|
21937
|
-
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21963
|
+
-webkit-backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21964
|
+
backdrop-filter: blur(var(--glass-blur, 40px));
|
|
21938
21965
|
background-color: transparent;
|
|
21939
21966
|
background-image: linear-gradient(
|
|
21940
21967
|
135deg,
|
|
@@ -23002,7 +23029,9 @@ details.collapse summary::-webkit-details-marker {
|
|
|
23002
23029
|
.tooltip:before,
|
|
23003
23030
|
.tooltip:after {
|
|
23004
23031
|
opacity: 0;
|
|
23032
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
23005
23033
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
23034
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
23006
23035
|
transition-delay: 100ms;
|
|
23007
23036
|
transition-duration: 200ms;
|
|
23008
23037
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)}
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
import type plugin from "tailwindcss/plugin"
|
|
2
2
|
|
|
3
|
-
// Export types
|
|
4
3
|
declare const daisyui: ReturnType<typeof plugin>
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
export default daisyui
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @link https://daisyui.com/docs/themes/#-4
|
|
9
|
+
*/
|
|
10
|
+
type CustomTheme = Record<string, Record<string, string>>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* https://daisyui.com/docs/themes/#
|
|
14
|
+
*/
|
|
15
|
+
type Theme = 'light' |
|
|
16
|
+
'dark' |
|
|
17
|
+
'cupcake' |
|
|
18
|
+
'bumblebee' |
|
|
19
|
+
'emerald' |
|
|
20
|
+
'corporate' |
|
|
21
|
+
'synthwave' |
|
|
22
|
+
'retro' |
|
|
23
|
+
'cyberpunk' |
|
|
24
|
+
'valentine' |
|
|
25
|
+
'halloween' |
|
|
26
|
+
'garden' |
|
|
27
|
+
'forest' |
|
|
28
|
+
'aqua' |
|
|
29
|
+
'lofi' |
|
|
30
|
+
'pastel' |
|
|
31
|
+
'fantasy' |
|
|
32
|
+
'wireframe' |
|
|
33
|
+
'black' |
|
|
34
|
+
'luxury' |
|
|
35
|
+
'dracula' |
|
|
36
|
+
'cmyk' |
|
|
37
|
+
'autumn' |
|
|
38
|
+
'business' |
|
|
39
|
+
'acid' |
|
|
40
|
+
'lemonade' |
|
|
41
|
+
'night' |
|
|
42
|
+
'coffee' |
|
|
43
|
+
'winter';
|
|
44
|
+
|
|
45
|
+
interface DaisyUIConfig {
|
|
46
|
+
/**
|
|
47
|
+
* If it's true, all themes will be included. If it's false, only light and dark themes will be available.
|
|
48
|
+
* If it's an array, only themes in the array will be included and the first theme will be the default theme.
|
|
49
|
+
* Read more about [themes](https://daisyui.com/docs/themes/).
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
themes?: boolean | (Theme | CustomTheme)[],
|
|
54
|
+
/**
|
|
55
|
+
* Allows us to pick another theme for the system's auto dark mode. By default, dark theme
|
|
56
|
+
* (or a custom theme named dark) will be the default theme if no theme is specified and
|
|
57
|
+
* the user is using dark mode on their system.
|
|
58
|
+
* With this config, you can set another theme to be the default dark mode theme.
|
|
59
|
+
*
|
|
60
|
+
* @default 'dark'
|
|
61
|
+
*/
|
|
62
|
+
darkTheme?: string,
|
|
63
|
+
/**
|
|
64
|
+
* If it's true, a [few base styles](https://github.com/saadeghi/daisyui/blob/master/src/base) will be added.
|
|
65
|
+
*
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
base?: boolean,
|
|
69
|
+
/**
|
|
70
|
+
* If it's true, components will have colors and style, so you won't need to design anything.
|
|
71
|
+
* If it's false, components will have no color and no visual style, so you can design your own style
|
|
72
|
+
* on a basic skeleton.
|
|
73
|
+
*
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
styled?: boolean,
|
|
77
|
+
/**
|
|
78
|
+
* If it's true, [responsive and utility classes](https://github.com/saadeghi/daisyui/tree/master/src/utilities) will be added.
|
|
79
|
+
*
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
utils?: boolean,
|
|
83
|
+
/**
|
|
84
|
+
* If it's true, your theme will be right-to-left. You need to add `dir='rtl'` to your body tag.
|
|
85
|
+
* If you're using daisyUI with RTL option, I suggest using [tailwindcss-flip](https://github.com/cvrajeesh/tailwindcss-flip)
|
|
86
|
+
* plugin to flip all your Tailwind utilities automatically.
|
|
87
|
+
*
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
rtl?: boolean,
|
|
91
|
+
/**
|
|
92
|
+
* Adds a prefix to class name for all daisyUI classes (including component classes, modifier classes and responsive
|
|
93
|
+
* classes). For example, `btn` will become `prefix-btn`. If you're using a second CSS library that has similar
|
|
94
|
+
* class names, you can use this config to avoid conflicts. Utility classes like color names (e.g. `bg-primary`)
|
|
95
|
+
* or border-radius (e.g. `rounded-box`) will not be affected by this config because they're being added
|
|
96
|
+
* as extensions to Tailwind CSS classes. If you use daisyUI `prefix` option (like `daisy-`) and
|
|
97
|
+
* Tailwind CSS `prefix` option (like `tw-`) together, classnames will be prefixed like
|
|
98
|
+
* this: `tw-daisy-btn`.
|
|
99
|
+
*/
|
|
100
|
+
prefix?: string,
|
|
101
|
+
/**
|
|
102
|
+
* If it's true, daisyUI shows logs in the terminal while CSS is building.
|
|
103
|
+
*
|
|
104
|
+
* @default true
|
|
105
|
+
*/
|
|
106
|
+
logs?: boolean
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type { DaisyUIConfig as Config, Theme }
|