daisyui 5.0.0-alpha.2 → 5.0.0-alpha.21
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/base/properties/index.js +4 -0
- package/base/properties/object.js +1 -0
- package/base/properties.css +1 -0
- package/base/rootcolor/index.js +4 -0
- package/base/rootcolor/object.js +1 -0
- package/base/rootcolor.css +1 -0
- package/base/scrollbar/index.js +4 -0
- package/base/scrollbar/object.js +1 -0
- package/base/scrollbar.css +1 -0
- package/chunks.css +46 -0
- package/colors/properties.css +1 -0
- package/colors/responsive.css +1 -0
- package/colors/states.css +1 -0
- package/components/alert/class.json +12 -0
- package/components/alert/index.js +4 -0
- package/components/alert/object.js +1 -0
- package/components/alert.css +1 -0
- package/components/avatar/class.json +7 -0
- package/components/avatar/index.js +4 -0
- package/components/avatar/object.js +1 -0
- package/components/avatar.css +1 -0
- package/components/badge/class.json +19 -0
- package/components/badge/index.js +4 -74
- package/components/badge/object.js +1 -0
- package/components/badge.css +1 -109
- package/components/button/class.json +27 -0
- package/components/button/index.js +4 -170
- package/components/button/object.js +1 -0
- package/components/button.css +1 -293
- package/components/card/class.json +13 -0
- package/components/card/index.js +4 -0
- package/components/card/object.js +1 -0
- package/components/card.css +1 -0
- package/components/chat/class.json +17 -0
- package/components/chat/index.js +4 -0
- package/components/chat/object.js +1 -0
- package/components/chat.css +1 -0
- package/components/checkbox/class.json +17 -0
- package/components/checkbox/index.js +4 -108
- package/components/checkbox/object.js +1 -0
- package/components/checkbox.css +1 -144
- package/components/collapse/class.json +10 -0
- package/components/collapse/index.js +4 -0
- package/components/collapse/object.js +1 -0
- package/components/collapse.css +1 -0
- package/components/countdown/class.json +3 -0
- package/components/countdown/index.js +4 -0
- package/components/countdown/object.js +1 -0
- package/components/countdown.css +1 -0
- package/components/divider/class.json +15 -0
- package/components/divider/index.js +4 -0
- package/components/divider/object.js +1 -0
- package/components/divider.css +1 -0
- package/components/dropdown/class.json +15 -0
- package/components/dropdown/index.js +4 -0
- package/components/dropdown/object.js +1 -0
- package/components/dropdown.css +1 -0
- package/components/footer/class.json +7 -0
- package/components/footer/index.js +4 -0
- package/components/footer/object.js +1 -0
- package/components/footer.css +1 -0
- package/components/hero/class.json +5 -0
- package/components/hero/index.js +4 -0
- package/components/hero/object.js +1 -0
- package/components/hero.css +1 -0
- package/components/input/class.json +16 -0
- package/components/input/index.js +4 -128
- package/components/input/object.js +1 -0
- package/components/input.css +1 -204
- package/components/kbd/class.json +7 -0
- package/components/kbd/index.js +4 -27
- package/components/kbd/object.js +1 -0
- package/components/kbd.css +1 -49
- package/components/link/class.json +12 -0
- package/components/link/index.js +4 -0
- package/components/link/object.js +1 -0
- package/components/link.css +1 -0
- package/components/loading/class.json +21 -0
- package/components/loading/index.js +4 -0
- package/components/loading/object.js +1 -0
- package/components/loading.css +1 -0
- package/components/mask/class.json +24 -0
- package/components/mask/index.js +4 -74
- package/components/mask/object.js +1 -0
- package/components/mask.css +1 -78
- package/components/menu/class.json +16 -0
- package/components/menu/index.js +4 -0
- package/components/menu/object.js +1 -0
- package/components/menu.css +1 -0
- package/components/navbar/class.json +6 -0
- package/components/navbar/index.js +4 -0
- package/components/navbar/object.js +1 -0
- package/components/navbar.css +1 -0
- package/components/progress/class.json +10 -0
- package/components/progress/index.js +4 -0
- package/components/progress/object.js +1 -0
- package/components/progress.css +1 -0
- package/components/radialprogress/class.json +3 -0
- package/components/radialprogress/index.js +4 -0
- package/components/radialprogress/object.js +1 -0
- package/components/radialprogress.css +1 -0
- package/components/radio/class.json +14 -0
- package/components/radio/index.js +4 -73
- package/components/radio/object.js +1 -0
- package/components/radio.css +1 -102
- package/components/range/class.json +14 -0
- package/components/range/index.js +4 -132
- package/components/range/object.js +1 -0
- package/components/range.css +1 -164
- package/components/rating/class.json +6 -0
- package/components/rating/index.js +4 -82
- package/components/rating/object.js +1 -0
- package/components/rating.css +1 -104
- package/components/select/class.json +16 -0
- package/components/select/index.js +4 -99
- package/components/select/object.js +1 -0
- package/components/select.css +1 -166
- package/components/skeleton/class.json +3 -0
- package/components/skeleton/index.js +4 -0
- package/components/skeleton/object.js +1 -0
- package/components/skeleton.css +1 -0
- package/components/stack/class.json +3 -0
- package/components/stack/index.js +4 -0
- package/components/stack/object.js +1 -0
- package/components/stack.css +1 -0
- package/components/status/class.json +15 -0
- package/components/status/index.js +4 -0
- package/components/status/object.js +1 -0
- package/components/status.css +1 -0
- package/components/steps/class.json +14 -0
- package/components/steps/index.js +4 -0
- package/components/steps/object.js +1 -0
- package/components/steps.css +1 -0
- package/components/swap/class.json +10 -0
- package/components/swap/index.js +4 -0
- package/components/swap/object.js +1 -0
- package/components/swap.css +1 -0
- package/components/tab/class.json +13 -0
- package/components/tab/index.js +4 -0
- package/components/tab/object.js +1 -0
- package/components/tab.css +1 -0
- package/components/table/class.json +9 -0
- package/components/table/index.js +4 -0
- package/components/table/object.js +1 -0
- package/components/table.css +1 -0
- package/components/timeline/class.json +11 -0
- package/components/timeline/index.js +4 -0
- package/components/timeline/object.js +1 -0
- package/components/timeline.css +1 -0
- package/components/toggle/class.json +16 -0
- package/components/toggle/index.js +4 -102
- package/components/toggle/object.js +1 -0
- package/components/toggle.css +1 -143
- package/components/tooltip/class.json +17 -0
- package/components/tooltip/index.js +4 -0
- package/components/tooltip/object.js +1 -0
- package/components/tooltip.css +1 -0
- package/full.css +1 -0
- package/functions/plugin.js +10 -10
- package/functions/pluginOptionsHandler.js +44 -0
- package/functions/variables.js +33 -0
- package/index.js +132 -0
- package/package.json +18 -8
- package/theme/acid/index.css +28 -0
- package/theme/acid/index.js +4 -0
- package/theme/acid/object.js +1 -0
- package/theme/aqua/index.css +28 -0
- package/theme/aqua/index.js +4 -0
- package/theme/aqua/object.js +1 -0
- package/theme/autumn/index.css +28 -0
- package/theme/autumn/index.js +4 -0
- package/theme/autumn/object.js +1 -0
- package/theme/black/index.css +28 -0
- package/theme/black/index.js +4 -0
- package/theme/black/object.js +1 -0
- package/theme/bumblebee/index.css +28 -0
- package/theme/bumblebee/index.js +4 -0
- package/theme/bumblebee/object.js +1 -0
- package/theme/business/index.css +28 -0
- package/theme/business/index.js +4 -0
- package/theme/business/object.js +1 -0
- package/theme/cmyk/index.css +28 -0
- package/theme/cmyk/index.js +4 -0
- package/theme/cmyk/object.js +1 -0
- package/theme/coffee/index.css +28 -0
- package/theme/coffee/index.js +4 -0
- package/theme/coffee/object.js +1 -0
- package/theme/corporate/index.css +28 -0
- package/theme/corporate/index.js +4 -0
- package/theme/corporate/object.js +1 -0
- package/theme/cupcake/index.css +28 -0
- package/theme/cupcake/index.js +4 -0
- package/theme/cupcake/object.js +1 -0
- package/theme/cyberpunk/index.css +28 -0
- package/theme/cyberpunk/index.js +4 -0
- package/theme/cyberpunk/object.js +1 -0
- package/theme/dark/index.css +28 -0
- package/theme/dark/index.js +4 -0
- package/theme/dark/object.js +1 -0
- package/theme/dim/index.css +28 -0
- package/theme/dim/index.js +4 -0
- package/theme/dim/object.js +1 -0
- package/theme/dracula/index.css +28 -0
- package/theme/dracula/index.js +4 -0
- package/theme/dracula/object.js +1 -0
- package/theme/emerald/index.css +28 -0
- package/theme/emerald/index.js +4 -0
- package/theme/emerald/object.js +1 -0
- package/theme/fantasy/index.css +28 -0
- package/theme/fantasy/index.js +4 -0
- package/theme/fantasy/object.js +1 -0
- package/theme/forest/index.css +28 -0
- package/theme/forest/index.js +4 -0
- package/theme/forest/object.js +1 -0
- package/theme/garden/index.css +28 -0
- package/theme/garden/index.js +4 -0
- package/theme/garden/object.js +1 -0
- package/theme/halloween/index.css +28 -0
- package/theme/halloween/index.js +4 -0
- package/theme/halloween/object.js +1 -0
- package/theme/index.js +49 -0
- package/theme/lemonade/index.css +28 -0
- package/theme/lemonade/index.js +4 -0
- package/theme/lemonade/object.js +1 -0
- package/theme/light/index.css +28 -0
- package/theme/light/index.js +4 -0
- package/theme/light/object.js +1 -0
- package/theme/lofi/index.css +28 -0
- package/theme/lofi/index.js +4 -0
- package/theme/lofi/object.js +1 -0
- package/theme/luxury/index.css +28 -0
- package/theme/luxury/index.js +4 -0
- package/theme/luxury/object.js +1 -0
- package/theme/night/index.css +28 -0
- package/theme/night/index.js +4 -0
- package/theme/night/object.js +1 -0
- package/theme/nord/index.css +28 -0
- package/theme/nord/index.js +4 -0
- package/theme/nord/object.js +1 -0
- package/theme/object.js +1 -0
- package/theme/pastel/index.css +28 -0
- package/theme/pastel/index.js +4 -0
- package/theme/pastel/object.js +1 -0
- package/theme/retro/index.css +28 -0
- package/theme/retro/index.js +4 -0
- package/theme/retro/object.js +1 -0
- package/theme/sunset/index.css +28 -0
- package/theme/sunset/index.js +4 -0
- package/theme/sunset/object.js +1 -0
- package/theme/synthwave/index.css +28 -0
- package/theme/synthwave/index.js +4 -0
- package/theme/synthwave/object.js +1 -0
- package/theme/valentine/index.css +28 -0
- package/theme/valentine/index.js +4 -0
- package/theme/valentine/object.js +1 -0
- package/theme/winter/index.css +28 -0
- package/theme/winter/index.js +4 -0
- package/theme/winter/object.js +1 -0
- package/theme/wireframe/index.css +28 -0
- package/theme/wireframe/index.js +4 -0
- package/theme/wireframe/object.js +1 -0
- package/themes.css +1 -0
- package/utilities/join/index.js +4 -0
- package/utilities/join/object.js +1 -0
- package/utilities/join.css +1 -0
- package/components/badge/config.js +0 -12
- package/components/badge/index.css +0 -1
- package/components/button/config.js +0 -12
- package/components/button/index.css +0 -1
- package/components/checkbox/config.js +0 -12
- package/components/checkbox/index.css +0 -1
- package/components/input/config.js +0 -12
- package/components/input/index.css +0 -1
- package/components/kbd/config.js +0 -12
- package/components/kbd/index.css +0 -1
- package/components/mask/config.js +0 -12
- package/components/mask/index.css +0 -1
- package/components/radio/config.js +0 -12
- package/components/radio/index.css +0 -1
- package/components/range/config.js +0 -12
- package/components/range/index.css +0 -1
- package/components/rating/config.js +0 -12
- package/components/rating/index.css +0 -1
- package/components/select/config.js +0 -12
- package/components/select/index.css +0 -1
- package/components/toggle/config.js +0 -12
- package/components/toggle/index.css +0 -1
- package/index.css +0 -14
- package/themes/dark/index.css +0 -26
- package/themes/default/index.css +0 -26
- package/themes/index.css +0 -26
- package/themes/light/index.css +0 -26
package/components/toggle.css
CHANGED
|
@@ -1,143 +1 @@
|
|
|
1
|
-
.toggle {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
height: var(--spacing-6, 1.5rem);
|
|
4
|
-
width: var(--spacing-12, 3rem);
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
appearance: none;
|
|
8
|
-
border-radius: var(--radius-badge);
|
|
9
|
-
border-radius: var(--radius-badge, 1.9rem);
|
|
10
|
-
border-style: var(--tw-border-style);
|
|
11
|
-
border-width: 1px;
|
|
12
|
-
border-color: currentColor;
|
|
13
|
-
padding: .1875rem;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 50%, transparent);
|
|
16
|
-
box-shadow: 0 1px color-mix(in oklab, currentColor, transparent 90%) inset;
|
|
17
|
-
transition: color .3s;
|
|
18
|
-
&:before {
|
|
19
|
-
display: block;
|
|
20
|
-
height: 100%;
|
|
21
|
-
flex-grow: 0;
|
|
22
|
-
content: "";
|
|
23
|
-
transition: flex-grow 0.2s;
|
|
24
|
-
}
|
|
25
|
-
&:after {
|
|
26
|
-
position: relative;
|
|
27
|
-
inset-inline-start: var(--spacing-0, 0px);
|
|
28
|
-
display: block;
|
|
29
|
-
aspect-ratio: 1 / 1;
|
|
30
|
-
height: 100%;
|
|
31
|
-
--tw-translate-x: var(--spacing-0, 0px);
|
|
32
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
33
|
-
border-radius: calc(var(--radius-badge) - 3px);
|
|
34
|
-
background-color: currentColor;
|
|
35
|
-
content: "";
|
|
36
|
-
transition: background-color 0.1s, translate 0.2s, inset-inline-start 0.2s;
|
|
37
|
-
box-shadow: 0 -1px oklch(0% 0 0 / 0.1) inset, 0 8px 0 -4px oklch(100% 0 0 / 0.1) inset, 0 1px color-mix(in oklab, currentColor, transparent 90%);
|
|
38
|
-
}
|
|
39
|
-
&:focus-visible {
|
|
40
|
-
outline-style: var(--tw-outline-style);
|
|
41
|
-
outline-width: 1px;
|
|
42
|
-
outline-style: var(--tw-outline-style);
|
|
43
|
-
outline-width: 2px;
|
|
44
|
-
outline-offset: 2px;
|
|
45
|
-
outline-color: currentColor;
|
|
46
|
-
}
|
|
47
|
-
&:checked, &[aria-checked="true"] {
|
|
48
|
-
background-color: var(--color-base-100, oklch(100% 0 0));
|
|
49
|
-
color: var(--color-base-content, oklch(27.8078% 0.029596 256.84795));
|
|
50
|
-
&:before {
|
|
51
|
-
flex-grow: 1;
|
|
52
|
-
}
|
|
53
|
-
&:after {
|
|
54
|
-
background-color: currentColor;
|
|
55
|
-
@starting-style {
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
&:indeterminate {
|
|
61
|
-
&:before {
|
|
62
|
-
flex-grow: 0;
|
|
63
|
-
}
|
|
64
|
-
&:after {
|
|
65
|
-
inset-inline-start: calc(1/2 * 100%);
|
|
66
|
-
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
67
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
&:disabled {
|
|
71
|
-
cursor: not-allowed;
|
|
72
|
-
opacity: 30%;
|
|
73
|
-
&:after {
|
|
74
|
-
border-style: var(--tw-border-style);
|
|
75
|
-
border-width: 1px;
|
|
76
|
-
border-color: currentColor;
|
|
77
|
-
background-color: transparent;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.toggle-primary {
|
|
82
|
-
&:checked, &[aria-checked="true"] {
|
|
83
|
-
color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.toggle-secondary {
|
|
87
|
-
&:checked, &[aria-checked="true"] {
|
|
88
|
-
color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.toggle-accent {
|
|
92
|
-
&:checked, &[aria-checked="true"] {
|
|
93
|
-
color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.toggle-success {
|
|
97
|
-
&:checked, &[aria-checked="true"] {
|
|
98
|
-
color: var(--color-success, oklch(64.8% 0.15 160));
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
.toggle-warning {
|
|
102
|
-
&:checked, &[aria-checked="true"] {
|
|
103
|
-
color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
.toggle-info {
|
|
107
|
-
&:checked, &[aria-checked="true"] {
|
|
108
|
-
color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
.toggle-error {
|
|
112
|
-
&:checked, &[aria-checked="true"] {
|
|
113
|
-
color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.toggle-xs {
|
|
117
|
-
&:is([type="checkbox"]) {
|
|
118
|
-
height: var(--spacing-4, 1rem);
|
|
119
|
-
width: var(--spacing-6, 1.5rem);
|
|
120
|
-
padding: .0625rem;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
.toggle-sm {
|
|
124
|
-
&:is([type="checkbox"]) {
|
|
125
|
-
height: var(--spacing-5, 1.25rem);
|
|
126
|
-
width: var(--spacing-8, 2rem);
|
|
127
|
-
padding: .125rem;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
.toggle-md {
|
|
131
|
-
&:is([type="checkbox"]) {
|
|
132
|
-
height: var(--spacing-6, 1.5rem);
|
|
133
|
-
width: var(--spacing-12, 3rem);
|
|
134
|
-
padding: .1875rem;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.toggle-lg {
|
|
138
|
-
&:is([type="checkbox"]) {
|
|
139
|
-
height: var(--spacing-8, 2rem);
|
|
140
|
-
width: var(--spacing-16, 4rem);
|
|
141
|
-
padding: .25rem;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
1
|
+
/*! 🌼 daisyUI 5.0.0-alpha.21 – MIT License */ .toggle{height:var(--spacing-6,1.5rem);width:var(--spacing-12,3rem);cursor:pointer;appearance:none;border-radius:var(--radius-badge);border-radius:var(--radius-badge,var(--radius-badge));border-style:var(--tw-border-style);vertical-align:middle;color:color-mix(in srgb,var(--color-base-content,var(--color-base-content))50%,transparent);box-shadow:0 1px color-mix(in oklab,currentColor,transparent 90%)inset;border-width:1px;border-color:currentColor;flex-shrink:0;padding:.1875rem;transition:color .3s;display:inline-flex;&:before{content:"";flex-grow:0;height:100%;transition:flex-grow .2s;display:block}&:after{aspect-ratio:1;--tw-translate-x:var(--spacing-0,0px);translate:var(--tw-translate-x)var(--tw-translate-y);border-radius:calc(var(--radius-badge) - 3px);content:"";box-shadow:0 -1px oklch(0% 0 0/.1) inset,0 8px 0 -4px oklch(100% 0 0/.1) inset,0 1px color-mix(in oklab,currentColor,transparent 90%);background-color:currentColor;height:100%;transition:background-color .1s,translate .2s,inset-inline-start .2s;display:block;position:relative;inset-inline-start:var(--spacing-0,0px)}&:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px;outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:currentColor}&:checked,&[aria-checked=true]{background-color:var(--color-base-100,var(--color-base-100));color:var(--color-base-content,var(--color-base-content));&:before{flex-grow:1}&:after{background-color:currentColor;@starting-style{&{opacity:0}}}}&:indeterminate{&:before{flex-grow:0}&:after{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y);inset-inline-start:50%}}&:disabled{cursor:not-allowed;opacity:.3;&:after{border-style:var(--tw-border-style);background-color:#0000;border-width:1px;border-color:currentColor}}}.toggle-primary{&:checked,&[aria-checked=true]{color:var(--color-primary,var(--color-primary))}}.toggle-secondary{&:checked,&[aria-checked=true]{color:var(--color-secondary,var(--color-secondary))}}.toggle-accent{&:checked,&[aria-checked=true]{color:var(--color-accent,var(--color-accent))}}.toggle-success{&:checked,&[aria-checked=true]{color:var(--color-success,var(--color-success))}}.toggle-warning{&:checked,&[aria-checked=true]{color:var(--color-warning,var(--color-warning))}}.toggle-info{&:checked,&[aria-checked=true]{color:var(--color-info,var(--color-info))}}.toggle-error{&:checked,&[aria-checked=true]{color:var(--color-error,var(--color-error))}}.toggle-xs{&[type=checkbox]{height:var(--spacing-4,1rem);width:var(--spacing-6,1.5rem);padding:.0625rem}}.toggle-sm{&[type=checkbox]{height:var(--spacing-5,1.25rem);width:var(--spacing-8,2rem);padding:.125rem}}.toggle-md{&[type=checkbox]{height:var(--spacing-6,1.5rem);width:var(--spacing-12,3rem);padding:.1875rem}}.toggle-lg{&[type=checkbox]{height:var(--spacing-8,2rem);width:var(--spacing-16,4rem);padding:.25rem}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
"tooltip",
|
|
3
|
+
"4",
|
|
4
|
+
"2",
|
|
5
|
+
"tooltip-top",
|
|
6
|
+
"tooltip-bottom",
|
|
7
|
+
"tooltip-left",
|
|
8
|
+
"tooltip-right",
|
|
9
|
+
"tooltip-open",
|
|
10
|
+
"tooltip-primary",
|
|
11
|
+
"tooltip-secondary",
|
|
12
|
+
"tooltip-accent",
|
|
13
|
+
"tooltip-info",
|
|
14
|
+
"tooltip-success",
|
|
15
|
+
"tooltip-warning",
|
|
16
|
+
"tooltip-error"
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {".tooltip":{"@apply relative inline-block":{},"--tooltip-color":"var(--color-neutral)","--tooltip-tail":"0.1875rem","--tooltip-text-color":"var(--color-neutral-content)","--tooltip-offset":"calc(100% + 1px + var(--tooltip-tail, 0px))","--tooltip-tail-offset":"calc(100% + 0.0625rem - var(--tooltip-tail))","&:before":{"@apply absolute max-w-xs rounded px-2 py-1 text-sm whitespace-normal opacity-0 text-center":{},"transition":"opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 75ms","backgroundColor":"var(--tooltip-color)","color":"var(--tooltip-text-color)","width":"max-content","pointerEvents":"none","zIndex":1,"content":"var(--tw-content)","--tw-content":"attr(data-tip)"},"&:after":{"@apply absolute opacity-0":{},"transition":"opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 75ms","content":"\"\"","borderStyle":"solid","borderWidth":"var(--tooltip-tail, 0)","width":"0","height":"0","display":"block","position":"absolute"},"&.tooltip-open,\n &:hover,\n &:has(:focus-visible)":{"&:before,\n &:after":{"@apply opacity-100":{},"transition":"opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s"}}},".tooltip,\n.tooltip-top":{"&:before":{"transform":"translateX(-50%)","top":"auto","left":"50%","right":"auto","bottom":"var(--tooltip-offset)"},"&:after":{"transform":"translateX(-50%)","borderColor":"var(--tooltip-color) transparent transparent transparent","top":"auto","left":"50%","right":"auto","bottom":"var(--tooltip-tail-offset)"}},".tooltip-bottom":{"&:before":{"transform":"translateX(-50%)","top":"var(--tooltip-offset)","left":"50%","right":"auto","bottom":"auto"},"&:after":{"transform":"translateX(-50%)","borderColor":"transparent transparent var(--tooltip-color) transparent","top":"var(--tooltip-tail-offset)","left":"50%","right":"auto","bottom":"auto"}},".tooltip-left":{"&:before":{"transform":"translateY(-50%)","top":"50%","left":"auto","right":"var(--tooltip-offset)","bottom":"auto"},"&:after":{"transform":"translateY(-50%)","borderColor":"transparent transparent transparent var(--tooltip-color)","top":"50%","left":"auto","right":"calc(var(--tooltip-tail-offset) + 0.0625rem)","bottom":"auto"}},".tooltip-right":{"&:before":{"transform":"translateY(-50%)","top":"50%","left":"var(--tooltip-offset)","right":"auto","bottom":"auto"},"&:after":{"transform":"translateY(-50%)","borderColor":"transparent var(--tooltip-color) transparent transparent","top":"50%","left":"calc(var(--tooltip-tail-offset) + 0.0625rem)","right":"auto","bottom":"auto"}},".tooltip:not([data-tip]):hover:before,\n.tooltip:not([data-tip]):hover:after":{"visibility":"hidden","opacity":0},".tooltip-primary":{"--tooltip-color":"var(--color-primary)","--tooltip-text-color":"var(--color-primary-content)"},".tooltip-secondary":{"--tooltip-color":"var(--color-secondary)","--tooltip-text-color":"var(--color-secondary-content)"},".tooltip-accent":{"--tooltip-color":"var(--color-accent)","--tooltip-text-color":"var(--color-accent-content)"},".tooltip-info":{"--tooltip-color":"var(--color-info)","--tooltip-text-color":"var(--color-info-content)"},".tooltip-success":{"--tooltip-color":"var(--color-success)","--tooltip-text-color":"var(--color-success-content)"},".tooltip-warning":{"--tooltip-color":"var(--color-warning)","--tooltip-text-color":"var(--color-warning-content)"},".tooltip-error":{"--tooltip-color":"var(--color-error)","--tooltip-text-color":"var(--color-error-content)"}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! 🌼 daisyUI 5.0.0-alpha.21 – MIT License */ .tooltip{--tooltip-color:var(--color-neutral);--tooltip-tail:.1875rem;--tooltip-text-color:var(--color-neutral-content);--tooltip-offset:calc(100% + 1px + var(--tooltip-tail,0px));--tooltip-tail-offset:calc(100% + .0625rem - var(--tooltip-tail));display:inline-block;position:relative;&:before{max-width:var(--width-xs,20rem);white-space:normal;border-radius:var(--radius,.25rem);padding-top:var(--spacing-1,.25rem);padding-bottom:var(--spacing-1,.25rem);padding-left:var(--spacing-2,.5rem);padding-right:var(--spacing-2,.5rem);text-align:center;font-size:var(--font-size-sm,.875rem);line-height:var(--tw-leading,var(--font-size-sm--line-height,1.25rem));opacity:0;background-color:var(--tooltip-color);color:var(--tooltip-text-color);pointer-events:none;z-index:1;content:var(--tw-content);--tw-content:attr(data-tip);width:max-content;transition:opacity .2s cubic-bezier(.4,0,.2,1) 75ms;position:absolute}&:after{opacity:0;content:"";border-style:solid;border-width:var(--tooltip-tail,0);width:0;height:0;transition:opacity .2s cubic-bezier(.4,0,.2,1) 75ms;display:block;position:absolute}}.tooltip,.tooltip-top{&:before{top:auto;left:50%;right:auto;bottom:var(--tooltip-offset);transform:translate(-50%)}}.tooltip-bottom{&:before{top:var(--tooltip-offset);bottom:auto;left:50%;right:auto;transform:translate(-50%)}}.tooltip-left{&:before{top:50%;left:auto;right:var(--tooltip-offset);bottom:auto;transform:translateY(-50%)}}.tooltip-right{&:before{top:50%;left:var(--tooltip-offset);bottom:auto;right:auto;transform:translateY(-50%)}}.tooltip{&.tooltip-open,&:hover,&:has(:focus-visible){&:before,&:after{opacity:1;transition:opacity .2s cubic-bezier(.4,0,.2,1)}}}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip,.tooltip-top{&:after{border-color:var(--tooltip-color)transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset);transform:translate(-50%)}}.tooltip-bottom{&:after{border-color:transparent transparent var(--tooltip-color)transparent;top:var(--tooltip-tail-offset);bottom:auto;left:50%;right:auto;transform:translate(-50%)}}.tooltip-left{&:after{border-color:transparent transparent transparent var(--tooltip-color);top:50%;left:auto;right:calc(var(--tooltip-tail-offset) + .0625rem);bottom:auto;transform:translateY(-50%)}}.tooltip-right{&:after{border-color:transparent var(--tooltip-color)transparent transparent;top:50%;left:calc(var(--tooltip-tail-offset) + .0625rem);bottom:auto;right:auto;transform:translateY(-50%)}}.tooltip-primary{--tooltip-color:var(--color-primary);--tooltip-text-color:var(--color-primary-content)}.tooltip-secondary{--tooltip-color:var(--color-secondary);--tooltip-text-color:var(--color-secondary-content)}.tooltip-accent{--tooltip-color:var(--color-accent);--tooltip-text-color:var(--color-accent-content)}.tooltip-info{--tooltip-color:var(--color-info);--tooltip-text-color:var(--color-info-content)}.tooltip-success{--tooltip-color:var(--color-success);--tooltip-text-color:var(--color-success-content)}.tooltip-warning{--tooltip-color:var(--color-warning);--tooltip-text-color:var(--color-warning-content)}.tooltip-error{--tooltip-color:var(--color-error);--tooltip-text-color:var(--color-error-content)}
|