daisyui 5.0.0-alpha.13 → 5.0.0-alpha.15

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 (214) hide show
  1. package/base/properties/index.js +4 -1
  2. package/base/properties/object.js +1 -0
  3. package/base/properties.css +1 -1
  4. package/base/rootcolor/index.js +4 -0
  5. package/base/rootcolor.css +1 -0
  6. package/base/scrollbar/index.js +4 -1
  7. package/base/scrollbar/object.js +1 -0
  8. package/base/scrollbar.css +1 -1
  9. package/chunks.css +2 -2
  10. package/colors/properties.css +1 -1
  11. package/colors/responsive.css +1 -1
  12. package/colors/states.css +1 -1
  13. package/components/alert/index.js +4 -1
  14. package/components/alert/object.js +1 -0
  15. package/components/alert.css +1 -1
  16. package/components/avatar/index.js +4 -1
  17. package/components/avatar/object.js +1 -0
  18. package/components/avatar.css +1 -1
  19. package/components/badge/index.js +4 -1
  20. package/components/badge/object.js +1 -0
  21. package/components/badge.css +1 -1
  22. package/components/button/index.js +4 -1
  23. package/components/button/object.js +1 -0
  24. package/components/button.css +1 -1
  25. package/components/card/index.js +4 -1
  26. package/components/card/object.js +1 -0
  27. package/components/card.css +1 -1
  28. package/components/chat/index.js +4 -1
  29. package/components/chat/object.js +1 -0
  30. package/components/chat.css +1 -1
  31. package/components/checkbox/index.js +4 -1
  32. package/components/checkbox/object.js +1 -0
  33. package/components/checkbox.css +1 -1
  34. package/components/collapse/index.js +4 -1
  35. package/components/collapse/object.js +1 -0
  36. package/components/collapse.css +1 -1
  37. package/components/countdown/index.js +4 -1
  38. package/components/countdown/object.js +1 -0
  39. package/components/countdown.css +1 -1
  40. package/components/divider/index.js +4 -1
  41. package/components/divider/object.js +1 -0
  42. package/components/divider.css +1 -1
  43. package/components/dropdown/index.js +4 -1
  44. package/components/dropdown/object.js +1 -0
  45. package/components/dropdown.css +1 -1
  46. package/components/footer/index.js +4 -1
  47. package/components/footer/object.js +1 -0
  48. package/components/footer.css +1 -1
  49. package/components/hero/index.js +4 -1
  50. package/components/hero/object.js +1 -0
  51. package/components/hero.css +1 -1
  52. package/components/input/index.js +4 -1
  53. package/components/input/object.js +1 -0
  54. package/components/input.css +1 -1
  55. package/components/kbd/index.js +4 -1
  56. package/components/kbd/object.js +1 -0
  57. package/components/kbd.css +1 -1
  58. package/components/link/index.js +4 -1
  59. package/components/link/object.js +1 -0
  60. package/components/link.css +1 -1
  61. package/components/loading/index.js +4 -1
  62. package/components/loading/object.js +1 -0
  63. package/components/loading.css +1 -1
  64. package/components/mask/index.js +4 -1
  65. package/components/mask/object.js +1 -0
  66. package/components/mask.css +1 -1
  67. package/components/menu/index.js +4 -1
  68. package/components/menu/object.js +1 -0
  69. package/components/menu.css +1 -1
  70. package/components/navbar/index.js +4 -1
  71. package/components/navbar/object.js +1 -0
  72. package/components/navbar.css +1 -1
  73. package/components/progress/index.js +4 -1
  74. package/components/progress/object.js +1 -0
  75. package/components/progress.css +1 -1
  76. package/components/radialprogress/index.js +4 -0
  77. package/components/{radial-progress.css → radialprogress.css} +1 -1
  78. package/components/radio/index.js +4 -1
  79. package/components/radio/object.js +1 -0
  80. package/components/radio.css +1 -1
  81. package/components/range/index.js +4 -1
  82. package/components/range/object.js +1 -0
  83. package/components/range.css +1 -1
  84. package/components/rating/index.js +4 -1
  85. package/components/rating/object.js +1 -0
  86. package/components/rating.css +1 -1
  87. package/components/select/index.js +4 -1
  88. package/components/select/object.js +1 -0
  89. package/components/select.css +1 -1
  90. package/components/skeleton/index.js +4 -1
  91. package/components/skeleton/object.js +1 -0
  92. package/components/skeleton.css +1 -1
  93. package/components/stack/index.js +4 -1
  94. package/components/stack/object.js +1 -0
  95. package/components/stack.css +1 -1
  96. package/components/status/index.js +4 -1
  97. package/components/status/object.js +1 -0
  98. package/components/status.css +1 -1
  99. package/components/steps/index.js +4 -1
  100. package/components/steps/object.js +1 -0
  101. package/components/steps.css +1 -1
  102. package/components/swap/index.js +4 -1
  103. package/components/swap/object.js +1 -0
  104. package/components/swap.css +1 -1
  105. package/components/tab/index.js +4 -1
  106. package/components/tab/object.js +1 -0
  107. package/components/tab.css +1 -1
  108. package/components/table/index.js +4 -1
  109. package/components/table/object.js +1 -0
  110. package/components/table.css +1 -1
  111. package/components/timeline/index.js +4 -1
  112. package/components/timeline/object.js +1 -0
  113. package/components/timeline.css +1 -1
  114. package/components/toggle/index.js +4 -1
  115. package/components/toggle/object.js +1 -0
  116. package/components/toggle.css +1 -1
  117. package/components/tooltip/index.js +4 -1
  118. package/components/tooltip/object.js +1 -0
  119. package/components/tooltip.css +1 -1
  120. package/css/themes/dark.css +25 -0
  121. package/css/themes/light.css +25 -0
  122. package/full.css +1 -1
  123. package/functions/plugin.js +10 -0
  124. package/functions/processThemes.js +106 -0
  125. package/index.js +105 -50
  126. package/package.json +4 -2
  127. package/utilities/join/index.js +4 -1
  128. package/utilities/join/object.js +1 -0
  129. package/utilities/join.css +1 -1
  130. package/base/properties/config.js +0 -4
  131. package/base/properties/index.css +0 -1
  132. package/base/root-color/config.js +0 -4
  133. package/base/root-color/index.css +0 -1
  134. package/base/root-color.css +0 -1
  135. package/base/scrollbar/config.js +0 -4
  136. package/base/scrollbar/index.css +0 -1
  137. package/components/alert/config.js +0 -4
  138. package/components/alert/index.css +0 -1
  139. package/components/avatar/config.js +0 -4
  140. package/components/avatar/index.css +0 -1
  141. package/components/badge/config.js +0 -4
  142. package/components/badge/index.css +0 -1
  143. package/components/button/config.js +0 -4
  144. package/components/button/index.css +0 -1
  145. package/components/card/config.js +0 -4
  146. package/components/card/index.css +0 -1
  147. package/components/chat/config.js +0 -4
  148. package/components/chat/index.css +0 -1
  149. package/components/checkbox/config.js +0 -4
  150. package/components/checkbox/index.css +0 -1
  151. package/components/collapse/config.js +0 -4
  152. package/components/collapse/index.css +0 -1
  153. package/components/countdown/config.js +0 -4
  154. package/components/countdown/index.css +0 -1
  155. package/components/divider/config.js +0 -4
  156. package/components/divider/index.css +0 -1
  157. package/components/dropdown/config.js +0 -4
  158. package/components/dropdown/index.css +0 -1
  159. package/components/footer/config.js +0 -4
  160. package/components/footer/index.css +0 -1
  161. package/components/hero/config.js +0 -4
  162. package/components/hero/index.css +0 -1
  163. package/components/input/config.js +0 -4
  164. package/components/input/index.css +0 -1
  165. package/components/kbd/config.js +0 -4
  166. package/components/kbd/index.css +0 -1
  167. package/components/link/config.js +0 -4
  168. package/components/link/index.css +0 -1
  169. package/components/loading/config.js +0 -4
  170. package/components/loading/index.css +0 -1
  171. package/components/mask/config.js +0 -4
  172. package/components/mask/index.css +0 -1
  173. package/components/menu/config.js +0 -4
  174. package/components/menu/index.css +0 -1
  175. package/components/navbar/config.js +0 -4
  176. package/components/navbar/index.css +0 -1
  177. package/components/progress/config.js +0 -4
  178. package/components/progress/index.css +0 -1
  179. package/components/radial-progress/config.js +0 -4
  180. package/components/radial-progress/index.css +0 -1
  181. package/components/radio/config.js +0 -4
  182. package/components/radio/index.css +0 -1
  183. package/components/range/config.js +0 -4
  184. package/components/range/index.css +0 -1
  185. package/components/rating/config.js +0 -4
  186. package/components/rating/index.css +0 -1
  187. package/components/select/config.js +0 -4
  188. package/components/select/index.css +0 -1
  189. package/components/skeleton/config.js +0 -4
  190. package/components/skeleton/index.css +0 -1
  191. package/components/stack/config.js +0 -4
  192. package/components/stack/index.css +0 -1
  193. package/components/status/config.js +0 -4
  194. package/components/status/index.css +0 -1
  195. package/components/steps/config.js +0 -4
  196. package/components/steps/index.css +0 -1
  197. package/components/swap/config.js +0 -4
  198. package/components/swap/index.css +0 -1
  199. package/components/tab/config.js +0 -4
  200. package/components/tab/index.css +0 -1
  201. package/components/table/config.js +0 -4
  202. package/components/table/index.css +0 -1
  203. package/components/timeline/config.js +0 -4
  204. package/components/timeline/index.css +0 -1
  205. package/components/toggle/config.js +0 -4
  206. package/components/toggle/index.css +0 -1
  207. package/components/tooltip/config.js +0 -4
  208. package/components/tooltip/index.css +0 -1
  209. package/index.css +0 -43
  210. package/utilities/join/config.js +0 -4
  211. package/utilities/join/index.css +0 -1
  212. /package/base/{root-color/index.js → rootcolor/object.js} +0 -0
  213. /package/components/{radial-progress → radialprogress}/class.json +0 -0
  214. /package/components/{radial-progress/index.js → radialprogress/object.js} +0 -0
@@ -0,0 +1,10 @@
1
+ export const plugin = {
2
+ withOptions: (pluginFunction, configFunction = () => ({})) => {
3
+ const optionsFunction = (options) => ({
4
+ handler: pluginFunction(options),
5
+ config: configFunction(options),
6
+ });
7
+ optionsFunction.__isOptionsFunction = true;
8
+ return optionsFunction;
9
+ }
10
+ };
@@ -0,0 +1,106 @@
1
+ import { fileURLToPath } from 'url';
2
+ import fs from 'fs';
3
+ import path from 'path';
4
+
5
+ const getTheme = (filePath) => {
6
+ let resolvedPath;
7
+ if (filePath.endsWith('.css')) {
8
+ resolvedPath = path.resolve(process.cwd(), filePath);
9
+ } else {
10
+ resolvedPath = path.resolve(process.cwd(), filePath + '.css');
11
+ if (!fs.existsSync(resolvedPath)) {
12
+ resolvedPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'css', 'themes', filePath + '.css');
13
+ }
14
+ }
15
+
16
+ try {
17
+ if (!fs.existsSync(resolvedPath)) {
18
+ throw new Error(`File not found: ${resolvedPath}`);
19
+ }
20
+
21
+ const fileContent = fs.readFileSync(resolvedPath, 'utf8');
22
+ const lines = fileContent.split('\n');
23
+ const tokens = {};
24
+ lines.forEach(line => {
25
+ const [key, value] = line.split(':').map(part => part.trim());
26
+ if (key && value) {
27
+ tokens[key] = value.replace(';', '');
28
+ }
29
+ });
30
+
31
+ return tokens;
32
+ } catch (error) {
33
+ console.error(`Error reading theme file: ${resolvedPath}`, error);
34
+ return null;
35
+ }
36
+ }
37
+
38
+ export const processThemes = (themes, themeRoot, addBase) => {
39
+ const themeTokens = {};
40
+ let hasDefaultTheme = false;
41
+ let hasPrefersDarkTheme = false;
42
+
43
+ themes.forEach(themeOption => {
44
+ const [themePath, ...themeFlags] = themeOption.split(' ');
45
+ const tokens = getTheme(themePath);
46
+ if (tokens === null || Object.keys(tokens).length === 0) {
47
+ console.warn(`No valid tokens found in theme file: ${themePath}`);
48
+ return;
49
+ }
50
+
51
+ const themeName = path.basename(themePath, '.css');
52
+ themeTokens[themeName] = tokens;
53
+
54
+ // Handle default theme
55
+ if (themeFlags.includes('--default')) {
56
+ if (hasDefaultTheme) {
57
+ console.warn(`Multiple default themes specified. Using ${themeName} as default.`);
58
+ }
59
+ hasDefaultTheme = true;
60
+ const standardSelector = `[data-theme='${themeName}'],:root:has(input.theme-controller[value=${themeName}]:checked)`;
61
+ addBase({
62
+ [`${themeRoot},${standardSelector}`]: tokens
63
+ });
64
+ }
65
+
66
+ // Handle prefers-dark theme
67
+ if (themeFlags.includes('--prefersDark')) {
68
+ if (hasPrefersDarkTheme) {
69
+ console.warn(`Multiple prefers-dark themes specified. Using ${themeName} for prefers-dark.`);
70
+ }
71
+ hasPrefersDarkTheme = true;
72
+ addBase({
73
+ '@media (prefers-color-scheme: dark)': {
74
+ [themeRoot]: tokens
75
+ }
76
+ });
77
+ }
78
+
79
+ // Add theme
80
+ if (!themeFlags.includes('--default')) {
81
+ addBase({
82
+ [`[data-theme="${themeName}"]`]: tokens
83
+ });
84
+ }
85
+ });
86
+
87
+ return { themeTokens, hasDefaultTheme, hasPrefersDarkTheme };
88
+ }
89
+
90
+ export function handleThemeErrors(themeTokens, hasDefaultTheme, addBase, themeRoot) {
91
+ if (Object.keys(themeTokens).length === 0) {
92
+ console.error('No valid theme files were found. Please check your file paths and ensure the files exist.');
93
+ return false;
94
+ }
95
+
96
+ if (!hasDefaultTheme) {
97
+ const firstThemeName = Object.keys(themeTokens)[0];
98
+ console.warn(`No default theme specified. The ${firstThemeName} will be used as default.`);
99
+ const standardSelector = `[data-theme='${firstThemeName}'],:root:has(input.theme-controller[value=${firstThemeName}]:checked)`;
100
+ addBase({
101
+ [`${themeRoot},${standardSelector}`]: themeTokens[firstThemeName]
102
+ });
103
+ }
104
+
105
+ return true;
106
+ }
package/index.js CHANGED
@@ -1,4 +1,6 @@
1
- import root_color from './base/root-color';
1
+ import { plugin } from './functions/plugin.js';
2
+ import { processThemes, handleThemeErrors } from './functions/processThemes.js';
3
+ import rootcolor from './base/rootcolor';
2
4
  import properties from './base/properties';
3
5
  import scrollbar from './base/scrollbar';
4
6
  import kbd from './components/kbd';
@@ -10,6 +12,7 @@ import rating from './components/rating';
10
12
  import radio from './components/radio';
11
13
  import card from './components/card';
12
14
  import loading from './components/loading';
15
+ import radialprogress from './components/radialprogress';
13
16
  import progress from './components/progress';
14
17
  import chat from './components/chat';
15
18
  import countdown from './components/countdown';
@@ -27,7 +30,6 @@ import button from './components/button';
27
30
  import steps from './components/steps';
28
31
  import link from './components/link';
29
32
  import table from './components/table';
30
- import radial_progress from './components/radial-progress';
31
33
  import divider from './components/divider';
32
34
  import menu from './components/menu';
33
35
  import avatar from './components/avatar';
@@ -39,52 +41,105 @@ import timeline from './components/timeline';
39
41
  import badge from './components/badge';
40
42
  import join from './utilities/join';
41
43
 
42
- console.log('/*! 🌼 daisyUI 5.0.0-alpha.13 */')
43
- export default ({ addBase, addComponents, addUtilities }) => {
44
- addBase({
45
- ...root_color,
46
- ...properties,
47
- ...scrollbar,
48
- })
49
- addComponents({
50
- ...kbd,
51
- ...dropdown,
52
- ...navbar,
53
- ...footer,
54
- ...tooltip,
55
- ...rating,
56
- ...radio,
57
- ...card,
58
- ...loading,
59
- ...progress,
60
- ...chat,
61
- ...countdown,
62
- ...input,
63
- ...alert,
64
- ...skeleton,
65
- ...swap,
66
- ...checkbox,
67
- ...collapse,
68
- ...status,
69
- ...tab,
70
- ...toggle,
71
- ...mask,
72
- ...button,
73
- ...steps,
74
- ...link,
75
- ...table,
76
- ...radial_progress,
77
- ...divider,
78
- ...menu,
79
- ...avatar,
80
- ...select,
81
- ...stack,
82
- ...hero,
83
- ...range,
84
- ...timeline,
85
- ...badge,
86
- })
87
- addUtilities({
88
- ...join,
89
- })
44
+
45
+ export default plugin.withOptions(
46
+ (options = {
47
+ logs: true,
48
+ themeRoot: ":root",
49
+ themes: ['light --default', 'dark --prefersDark'],
50
+ }) => {
51
+ return ({ addBase, addComponents, addUtilities }) => {
52
+ const { logs, themes, themeRoot = ":root" } = options;
53
+ if (options.logs !== false) {
54
+ console.log('/*! 🌼 daisyUI 5.0.0-alpha.15 */')
55
+ }
56
+ const { themeTokens, hasDefaultTheme, hasPrefersDarkTheme } = processThemes(themes, themeRoot, addBase);
57
+
58
+ if (!handleThemeErrors(themeTokens, hasDefaultTheme, addBase, themeRoot)) {
59
+ return;
60
+ }
61
+ rootcolor({ addBase });
62
+ properties({ addBase });
63
+ scrollbar({ addBase });
64
+
65
+ kbd({ addComponents });
66
+ dropdown({ addComponents });
67
+ navbar({ addComponents });
68
+ footer({ addComponents });
69
+ tooltip({ addComponents });
70
+ rating({ addComponents });
71
+ radio({ addComponents });
72
+ card({ addComponents });
73
+ loading({ addComponents });
74
+ radialprogress({ addComponents });
75
+ progress({ addComponents });
76
+ chat({ addComponents });
77
+ countdown({ addComponents });
78
+ input({ addComponents });
79
+ alert({ addComponents });
80
+ skeleton({ addComponents });
81
+ swap({ addComponents });
82
+ checkbox({ addComponents });
83
+ collapse({ addComponents });
84
+ status({ addComponents });
85
+ tab({ addComponents });
86
+ toggle({ addComponents });
87
+ mask({ addComponents });
88
+ button({ addComponents });
89
+ steps({ addComponents });
90
+ link({ addComponents });
91
+ table({ addComponents });
92
+ divider({ addComponents });
93
+ menu({ addComponents });
94
+ avatar({ addComponents });
95
+ select({ addComponents });
96
+ stack({ addComponents });
97
+ hero({ addComponents });
98
+ range({ addComponents });
99
+ timeline({ addComponents });
100
+ badge({ addComponents });
101
+
102
+ join({ addUtilities });
103
+
104
+ }
105
+ },
106
+ (options) => {
107
+ return {
108
+ theme: {
109
+ extend: {
110
+ "colors": {
111
+ "base-100": "var(--color-base-100)",
112
+ "base-200": "var(--color-base-200)",
113
+ "base-300": "var(--color-base-300)",
114
+ "base-content": "var(--color-base-content)",
115
+ "primary": "var(--color-primary)",
116
+ "primary-content": "var(--color-primary-content)",
117
+ "secondary": "var(--color-secondary)",
118
+ "secondary-content": "var(--color-secondary-content)",
119
+ "accent": "var(--color-accent)",
120
+ "accent-content": "var(--color-accent-content)",
121
+ "neutral": "var(--color-neutral)",
122
+ "neutral-content": "var(--color-neutral-content)",
123
+ "info": "var(--color-info)",
124
+ "info-content": "var(--color-info-content)",
125
+ "success": "var(--color-success)",
126
+ "success-content": "var(--color-success-content)",
127
+ "warning": "var(--color-warning)",
128
+ "warning-content": "var(--color-warning-content)",
129
+ "error": "var(--color-error)",
130
+ "error-content": "var(--color-error-content)"
131
+ },
132
+ "borderRadius": {
133
+ "badge": "var(--radius-badge)",
134
+ "btn": "var(--radius-btn)",
135
+ "box": "var(--radius-box)"
136
+ },
137
+ "borderWidth": {
138
+ "button": "var(--spacing-button-border)",
139
+ "tab": "var(--spacing-tab-border)"
140
+ }
90
141
  }
142
+ }
143
+ }
144
+ }
145
+ )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "daisyui",
4
- "version": "5.0.0-alpha.13",
4
+ "version": "5.0.0-alpha.15",
5
5
  "description": "daisyUI - Tailwind CSS Components",
6
6
  "author": "Pouya Saadeghi",
7
7
  "license": "MIT",
@@ -39,7 +39,9 @@
39
39
  "base",
40
40
  "components",
41
41
  "utilities",
42
- "index.css",
42
+ "functions/plugin.js",
43
+ "functions/processThemes.js",
44
+ "css/themes",
43
45
  "index.js",
44
46
  "chunks.css",
45
47
  "full.css"
@@ -1 +1,4 @@
1
- export default {".join":{"@apply inline-flex items-stretch":{},"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"0","--radius-join-end-end":"0",":where(.join-item)":{"borderStartStartRadius":"var(--radius-join-start-start, 0)","borderStartEndRadius":"var(--radius-join-start-end, 0)","borderEndStartRadius":"var(--radius-join-end-start, 0)","borderEndEndRadius":"var(--radius-join-end-end, 0)"},">.join-item:where(:first-child)":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"},":first-child:not(:last-child)":{":where(.join-item)":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"}},">.join-item:where(:last-child)":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{":where(.join-item)":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"}}},".join-item":{"boxShadow":"none","&:where(*:not(:first-child))":{"marginInlineStart":"calc(var(--spacing-button-border, 1px) * -1)","marginBlockStart":"0"}},".join-vertical":{"@apply flex-col":{},">.join-item:first-child":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"0"},":first-child:not(:last-child)":{".join-item":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"0"}},">.join-item:last-child":{"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{".join-item":{"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"var(--radius-btn)"}},".join-item":{"&:where(*:not(:first-child))":{"marginInlineStart":"0","marginBlockStart":"calc(var(--spacing-button-border, 1px) * -1)"}}},".join-horizontal":{"@apply flex-row":{},">.join-item:first-child":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"},":first-child:not(:last-child)":{".join-item":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"}},">.join-item:last-child":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{".join-item":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"}},".join-item":{"&:where(*:not(:first-child))":{"marginInlineStart":"calc(var(--spacing-button-border, 1px) * -1)","marginBlockStart":"0"}}}};
1
+ import join from './object.js';
2
+ export default ({ addUtilities }) => {
3
+ addUtilities({...join})
4
+ }
@@ -0,0 +1 @@
1
+ export default {".join":{"@apply inline-flex items-stretch":{},"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"0","--radius-join-end-end":"0",":where(.join-item)":{"borderStartStartRadius":"var(--radius-join-start-start, 0)","borderStartEndRadius":"var(--radius-join-start-end, 0)","borderEndStartRadius":"var(--radius-join-end-start, 0)","borderEndEndRadius":"var(--radius-join-end-end, 0)"},">.join-item:where(:first-child)":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"},":first-child:not(:last-child)":{":where(.join-item)":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"}},">.join-item:where(:last-child)":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{":where(.join-item)":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"}}},".join-item":{"boxShadow":"none","&:where(*:not(:first-child))":{"marginInlineStart":"calc(var(--spacing-button-border, 1px) * -1)","marginBlockStart":"0"}},".join-vertical":{"@apply flex-col":{},">.join-item:first-child":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"0"},":first-child:not(:last-child)":{".join-item":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"0"}},">.join-item:last-child":{"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{".join-item":{"--radius-join-start-start":"0","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"var(--radius-btn)"}},".join-item":{"&:where(*:not(:first-child))":{"marginInlineStart":"0","marginBlockStart":"calc(var(--spacing-button-border, 1px) * -1)"}}},".join-horizontal":{"@apply flex-row":{},">.join-item:first-child":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"},":first-child:not(:last-child)":{".join-item":{"--radius-join-start-start":"var(--radius-btn)","--radius-join-start-end":"0","--radius-join-end-start":"var(--radius-btn)","--radius-join-end-end":"0"}},">.join-item:last-child":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"},":last-child:not(:first-child)":{".join-item":{"--radius-join-start-start":"0","--radius-join-start-end":"var(--radius-btn)","--radius-join-end-start":"0","--radius-join-end-end":"var(--radius-btn)"}},".join-item":{"&:where(*:not(:first-child))":{"marginInlineStart":"calc(var(--spacing-button-border, 1px) * -1)","marginBlockStart":"0"}}}};
@@ -1 +1 @@
1
- /*! 🌼 daisyUI 5.0.0-alpha.13 – MIT License */ .join{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:0;--radius-join-end-end:0;align-items:stretch;display:inline-flex;& :where(.join-item){border-start-start-radius:var(--radius-join-start-start,0);border-start-end-radius:var(--radius-join-start-end,0);border-end-end-radius:var(--radius-join-end-end,0);border-end-start-radius:var(--radius-join-end-start,0)}&>.join-item:where(:first-child){--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}& :first-child:not(:last-child){& :where(.join-item){--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}}&>.join-item:where(:last-child){--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& :where(.join-item){--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}}}.join-item{box-shadow:none;&:where(:not(:first-child)){margin-block-start:0;margin-inline-start:calc(var(--spacing-button-border,1px)*-1)}}.join-vertical{flex-direction:column;&>.join-item:first-child{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:0}& :first-child:not(:last-child){& .join-item{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:0}}&>.join-item:last-child{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& .join-item{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:var(--radius-btn)}}& .join-item{&:where(:not(:first-child)){margin-block-start:calc(var(--spacing-button-border,1px)*-1);margin-inline-start:0}}}.join-horizontal{flex-direction:row;&>.join-item:first-child{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}& :first-child:not(:last-child){& .join-item{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}}&>.join-item:last-child{--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& .join-item{--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}}& .join-item{&:where(:not(:first-child)){margin-block-start:0;margin-inline-start:calc(var(--spacing-button-border,1px)*-1)}}}
1
+ /*! 🌼 daisyUI 5.0.0-alpha.15 – MIT License */ .join{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:0;--radius-join-end-end:0;align-items:stretch;display:inline-flex;& :where(.join-item){border-start-start-radius:var(--radius-join-start-start,0);border-start-end-radius:var(--radius-join-start-end,0);border-end-end-radius:var(--radius-join-end-end,0);border-end-start-radius:var(--radius-join-end-start,0)}&>.join-item:where(:first-child){--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}& :first-child:not(:last-child){& :where(.join-item){--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}}&>.join-item:where(:last-child){--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& :where(.join-item){--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}}}.join-item{box-shadow:none;&:where(:not(:first-child)){margin-block-start:0;margin-inline-start:calc(var(--spacing-button-border,1px)*-1)}}.join-vertical{flex-direction:column;&>.join-item:first-child{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:0}& :first-child:not(:last-child){& .join-item{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:0}}&>.join-item:last-child{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& .join-item{--radius-join-start-start:0;--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:var(--radius-btn)}}& .join-item{&:where(:not(:first-child)){margin-block-start:calc(var(--spacing-button-border,1px)*-1);margin-inline-start:0}}}.join-horizontal{flex-direction:row;&>.join-item:first-child{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}& :first-child:not(:last-child){& .join-item{--radius-join-start-start:var(--radius-btn);--radius-join-start-end:0;--radius-join-end-start:var(--radius-btn);--radius-join-end-end:0}}&>.join-item:last-child{--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}& :last-child:not(:first-child){& .join-item{--radius-join-start-start:0;--radius-join-start-end:var(--radius-btn);--radius-join-end-start:0;--radius-join-end-end:var(--radius-btn)}}& .join-item{&:where(:not(:first-child)){margin-block-start:0;margin-inline-start:calc(var(--spacing-button-border,1px)*-1)}}}
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addBase }) => {
3
- addBase({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addBase }) => {
3
- addBase({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1 +0,0 @@
1
- /*! 🌼 daisyUI 5.0.0-alpha.13 – MIT License */ :root,[data-theme]{background-color:var(--color-base-100);color:var(--color-base-content)}
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addBase }) => {
3
- addBase({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }
@@ -1 +0,0 @@
1
- @config "./config.js";
@@ -1,4 +0,0 @@
1
- import index from './index.js';
2
- export default ({ addComponents }) => {
3
- addComponents({...index})
4
- }