daisyui 5.0.0-alpha.4 → 5.0.0-alpha.5

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.
Files changed (60) hide show
  1. package/base/root-color/config.js +12 -0
  2. package/base/root-color/index.css +1 -0
  3. package/base/root-color/index.js +6 -0
  4. package/base/root-color.css +1 -0
  5. package/base/scrollbar/config.js +12 -0
  6. package/base/scrollbar/index.css +1 -0
  7. package/base/scrollbar/index.js +5 -0
  8. package/base/scrollbar.css +1 -0
  9. package/base/tap-color/config.js +12 -0
  10. package/base/tap-color/index.css +1 -0
  11. package/base/tap-color/index.js +5 -0
  12. package/base/tap-color.css +1 -0
  13. package/colors/properties.css +1 -0
  14. package/colors/responsive.css +1 -0
  15. package/colors/states.css +1 -0
  16. package/components/avatar/class.json +7 -0
  17. package/components/avatar/config.js +12 -0
  18. package/components/avatar/index.css +1 -0
  19. package/components/avatar/index.js +42 -0
  20. package/components/avatar.css +1 -0
  21. package/components/badge/config.js +1 -1
  22. package/components/badge.css +1 -109
  23. package/components/button/config.js +1 -1
  24. package/components/button.css +1 -295
  25. package/components/checkbox/config.js +1 -1
  26. package/components/checkbox.css +1 -144
  27. package/components/dropdown/class.json +13 -0
  28. package/components/dropdown/config.js +12 -0
  29. package/components/dropdown/index.css +1 -0
  30. package/components/dropdown/index.js +146 -0
  31. package/components/dropdown.css +1 -0
  32. package/components/input/config.js +1 -1
  33. package/components/input.css +1 -204
  34. package/components/kbd/config.js +1 -1
  35. package/components/kbd.css +1 -49
  36. package/components/loading/config.js +1 -1
  37. package/components/loading.css +1 -42
  38. package/components/mask/config.js +1 -1
  39. package/components/mask.css +1 -78
  40. package/components/menu/config.js +1 -1
  41. package/components/menu/index.js +1 -1
  42. package/components/menu.css +1 -237
  43. package/components/radio/config.js +1 -1
  44. package/components/radio.css +1 -102
  45. package/components/range/config.js +1 -1
  46. package/components/range.css +1 -164
  47. package/components/rating/config.js +1 -1
  48. package/components/rating.css +1 -104
  49. package/components/select/config.js +1 -1
  50. package/components/select.css +1 -166
  51. package/components/tab/config.js +1 -1
  52. package/components/tab.css +1 -229
  53. package/components/toggle/config.js +1 -1
  54. package/components/toggle.css +1 -143
  55. package/components/tooltip/config.js +1 -1
  56. package/components/tooltip.css +1 -173
  57. package/full.css +8 -1
  58. package/index.css +5 -0
  59. package/package.json +5 -2
  60. package/colors.css +0 -8640
@@ -1,173 +1 @@
1
- .tooltip {
2
- position: relative;
3
- display: inline-block;
4
- --tooltip-color: oklch(32.1785% 0.02476 255.701624);
5
- --tooltip-tail: 0.1875rem;
6
- --tooltip-text-color: oklch(89.4994% 0.011585 252.096176);
7
- --tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px));
8
- --tooltip-tail-offset: calc(100% + 0.0625rem - var(--tooltip-tail));
9
- &:before {
10
- position: absolute;
11
- max-width: var(--width-xs, 20rem);
12
- white-space: normal;
13
- border-radius: var(--radius, 0.25rem);
14
- padding-top: var(--spacing-1, 0.25rem);
15
- padding-bottom: var(--spacing-1, 0.25rem);
16
- padding-left: var(--spacing-2, 0.5rem);
17
- padding-right: var(--spacing-2, 0.5rem);
18
- text-align: center;
19
- font-size: var(--font-size-sm, 0.875rem);
20
- line-height: var(--tw-leading, var(--font-size-sm--line-height, 1.25rem));
21
- opacity: 0%;
22
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
23
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
24
- transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
25
- transition-delay: 100ms;
26
- --tw-duration: 200ms;
27
- transition-duration: 200ms;
28
- --tw-ease: var(--transition-timing-function-in-out, cubic-bezier(0.4, 0, 0.2, 1));
29
- transition-timing-function: var(--transition-timing-function-in-out, cubic-bezier(0.4, 0, 0.2, 1));
30
- background-color: var(--tooltip-color);
31
- color: var(--tooltip-text-color);
32
- width: max-content;
33
- pointer-events: none;
34
- z-index: 1;
35
- content: var(--tw-content);
36
- --tw-content: attr(data-tip);
37
- }
38
- &:after {
39
- position: absolute;
40
- opacity: 0%;
41
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
42
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
43
- transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
44
- transition-delay: 100ms;
45
- --tw-duration: 200ms;
46
- transition-duration: 200ms;
47
- --tw-ease: var(--transition-timing-function-in-out, cubic-bezier(0.4, 0, 0.2, 1));
48
- transition-timing-function: var(--transition-timing-function-in-out, cubic-bezier(0.4, 0, 0.2, 1));
49
- content: "";
50
- border-style: solid;
51
- border-width: var(--tooltip-tail, 0);
52
- width: 0;
53
- height: 0;
54
- display: block;
55
- position: absolute;
56
- }
57
- }
58
- .tooltip, .tooltip-top {
59
- &:before {
60
- transform: translateX(-50%);
61
- top: auto;
62
- left: 50%;
63
- right: auto;
64
- bottom: var(--tooltip-offset);
65
- }
66
- }
67
- .tooltip-bottom {
68
- &:before {
69
- transform: translateX(-50%);
70
- top: var(--tooltip-offset);
71
- left: 50%;
72
- right: auto;
73
- bottom: auto;
74
- }
75
- }
76
- .tooltip-left {
77
- &:before {
78
- transform: translateY(-50%);
79
- top: 50%;
80
- left: auto;
81
- right: var(--tooltip-offset);
82
- bottom: auto;
83
- }
84
- }
85
- .tooltip-right {
86
- &:before {
87
- transform: translateY(-50%);
88
- top: 50%;
89
- left: var(--tooltip-offset);
90
- right: auto;
91
- bottom: auto;
92
- }
93
- }
94
- .tooltip {
95
- &.tooltip-open, &:hover, &:has(:focus-visible) {
96
- &:before, &:after {
97
- opacity: 100%;
98
- transition-delay: 75ms;
99
- }
100
- }
101
- }
102
- .tooltip:not([data-tip]):hover:before, .tooltip:not([data-tip]):hover:after {
103
- visibility: hidden;
104
- opacity: 0;
105
- }
106
- .tooltip, .tooltip-top {
107
- &:after {
108
- transform: translateX(-50%);
109
- border-color: var(--tooltip-color) transparent transparent transparent;
110
- top: auto;
111
- left: 50%;
112
- right: auto;
113
- bottom: var(--tooltip-tail-offset);
114
- }
115
- }
116
- .tooltip-bottom {
117
- &:after {
118
- transform: translateX(-50%);
119
- border-color: transparent transparent var(--tooltip-color) transparent;
120
- top: var(--tooltip-tail-offset);
121
- left: 50%;
122
- right: auto;
123
- bottom: auto;
124
- }
125
- }
126
- .tooltip-left {
127
- &:after {
128
- transform: translateY(-50%);
129
- border-color: transparent transparent transparent var(--tooltip-color);
130
- top: 50%;
131
- left: auto;
132
- right: calc(var(--tooltip-tail-offset) + 0.0625rem);
133
- bottom: auto;
134
- }
135
- }
136
- .tooltip-right {
137
- &:after {
138
- transform: translateY(-50%);
139
- border-color: transparent var(--tooltip-color) transparent transparent;
140
- top: 50%;
141
- left: calc(var(--tooltip-tail-offset) + 0.0625rem);
142
- right: auto;
143
- bottom: auto;
144
- }
145
- }
146
- .tooltip-primary {
147
- --tooltip-color: oklch(49.12% 0.3096 275.75);
148
- --tooltip-text-color: oklch(89.824% 0.06192 275.75);
149
- }
150
- .tooltip-secondary {
151
- --tooltip-color: oklch(69.71% 0.329 342.55);
152
- --tooltip-text-color: oklch(98.71% 0.0106 342.55);
153
- }
154
- .tooltip-accent {
155
- --tooltip-color: oklch(76.76% 0.184 183.61);
156
- --tooltip-text-color: oklch(15.352% 0.0368 183.61);
157
- }
158
- .tooltip-info {
159
- --tooltip-color: oklch(72.06% 0.191 231.6);
160
- --tooltip-text-color: oklch(0% 0 0);
161
- }
162
- .tooltip-success {
163
- --tooltip-color: oklch(64.8% 0.15 160);
164
- --tooltip-text-color: oklch(0% 0 0);
165
- }
166
- .tooltip-warning {
167
- --tooltip-color: oklch(84.71% 0.199 83.87);
168
- --tooltip-text-color: oklch(0% 0 0);
169
- }
170
- .tooltip-error {
171
- --tooltip-color: oklch(71.76% 0.221 22.18);
172
- --tooltip-text-color: oklch(0% 0 0);
173
- }
1
+ .tooltip{--tooltip-color:oklch(32.1785% .02476 255.702);--tooltip-tail:.1875rem;--tooltip-text-color:oklch(89.4994% .011585 252.096);--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;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;--tw-ease:var(--transition-timing-function-in-out,cubic-bezier(.4,0,.2,1));transition-duration:.2s;transition-delay:.1s;transition-timing-function:var(--transition-timing-function-in-out,cubic-bezier(.4,0,.2,1));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;position:absolute}&:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;--tw-ease:var(--transition-timing-function-in-out,cubic-bezier(.4,0,.2,1));transition-duration:.2s;transition-delay:.1s;transition-timing-function:var(--transition-timing-function-in-out,cubic-bezier(.4,0,.2,1));content:"";border-style:solid;border-width:var(--tooltip-tail,0);width:0;height:0;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-delay:75ms}}}.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:oklch(49.12% .3096 275.75);--tooltip-text-color:oklch(89.824% .06192 275.75)}.tooltip-secondary{--tooltip-color:oklch(69.71% .329 342.55);--tooltip-text-color:oklch(98.71% .0106 342.55)}.tooltip-accent{--tooltip-color:oklch(76.76% .184 183.61);--tooltip-text-color:oklch(15.352% .0368 183.61)}.tooltip-info{--tooltip-color:oklch(72.06% .191 231.6);--tooltip-text-color:oklch(0% 0 0)}.tooltip-success{--tooltip-color:oklch(64.8% .15 160);--tooltip-text-color:oklch(0% 0 0)}.tooltip-warning{--tooltip-color:oklch(84.71% .199 83.87);--tooltip-text-color:oklch(0% 0 0)}.tooltip-error{--tooltip-color:oklch(71.76% .221 22.18);--tooltip-text-color:oklch(0% 0 0)}
package/full.css CHANGED
@@ -1,8 +1,10 @@
1
1
  @import url(https://cdn.jsdelivr.net/npm/tailwindcss@4.0.0-alpha.25/preflight.min.css) layer(base);
2
- @import url(colors.css) layer(base);
3
2
  @import url(themes/default/index.css) layer(themes);
4
3
  @import url(themes/light/index.css) layer(themes);
5
4
  @import url(themes/dark/index.css) layer(themes);
5
+ @import url(base/tap-color.css) layer(base);
6
+ @import url(base/root-color.css) layer(base);
7
+ @import url(base/scrollbar.css) layer(base);
6
8
  @import url(components/tooltip.css) layer(components);
7
9
  @import url(components/tab.css) layer(components);
8
10
  @import url(components/radio.css) layer(components);
@@ -16,5 +18,10 @@
16
18
  @import url(components/mask.css) layer(components);
17
19
  @import url(components/button.css) layer(components);
18
20
  @import url(components/toggle.css) layer(components);
21
+ @import url(components/avatar.css) layer(components);
19
22
  @import url(components/kbd.css) layer(components);
20
23
  @import url(components/menu.css) layer(components);
24
+ @import url(components/dropdown.css) layer(components);
25
+ @import url(colors/properties.css) layer(utilities);
26
+ @import url(colors/states.css) layer(utilities);
27
+ @import url(colors/responsive.css) layer(utilities);
package/index.css CHANGED
@@ -1,7 +1,11 @@
1
1
  @import "./themes";
2
2
  @import "./themes/light";
3
3
  @import "./themes/dark";
4
+ @config "./base/tap-color/config.js";
5
+ @config "./base/root-color/config.js";
6
+ @config "./base/scrollbar/config.js";
4
7
  @config "./components/kbd/config.js";
8
+ @config "./components/dropdown/config.js";
5
9
  @config "./components/tooltip/config.js";
6
10
  @config "./components/rating/config.js";
7
11
  @config "./components/radio/config.js";
@@ -13,6 +17,7 @@
13
17
  @config "./components/mask/config.js";
14
18
  @config "./components/button/config.js";
15
19
  @config "./components/menu/config.js";
20
+ @config "./components/avatar/config.js";
16
21
  @config "./components/select/config.js";
17
22
  @config "./components/range/config.js";
18
23
  @config "./components/badge/config.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "daisyui",
4
- "version": "5.0.0-alpha.4",
4
+ "version": "5.0.0-alpha.5",
5
5
  "description": "daisyUI - Tailwind CSS Components",
6
6
  "author": "Pouya Saadeghi",
7
7
  "license": "MIT",
@@ -35,10 +35,12 @@
35
35
  "main": "index.css",
36
36
  "files": [
37
37
  "themes",
38
+ "colors",
39
+ "base",
38
40
  "components",
41
+ "utilities",
39
42
  "index.css",
40
43
  "full.css",
41
- "colors.css",
42
44
  "functions/plugin.js"
43
45
  ],
44
46
  "engines": {
@@ -68,6 +70,7 @@
68
70
  "@biomejs/biome": "^1.9.2",
69
71
  "@tailwindcss/cli": "^4.0.0-alpha.25",
70
72
  "commit-and-tag-version": "12.4.1",
73
+ "lightningcss": "^1.27.0",
71
74
  "postcss": "^8.4.45",
72
75
  "postcss-js": "^4.0.1",
73
76
  "postcss-prefixer": "^3.0.0",