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.
- package/base/properties/index.js +4 -1
- package/base/properties/object.js +1 -0
- package/base/properties.css +1 -1
- package/base/rootcolor/index.js +4 -0
- package/base/rootcolor.css +1 -0
- package/base/scrollbar/index.js +4 -1
- package/base/scrollbar/object.js +1 -0
- package/base/scrollbar.css +1 -1
- package/chunks.css +2 -2
- package/colors/properties.css +1 -1
- package/colors/responsive.css +1 -1
- package/colors/states.css +1 -1
- package/components/alert/index.js +4 -1
- package/components/alert/object.js +1 -0
- package/components/alert.css +1 -1
- package/components/avatar/index.js +4 -1
- package/components/avatar/object.js +1 -0
- package/components/avatar.css +1 -1
- package/components/badge/index.js +4 -1
- package/components/badge/object.js +1 -0
- package/components/badge.css +1 -1
- package/components/button/index.js +4 -1
- package/components/button/object.js +1 -0
- package/components/button.css +1 -1
- package/components/card/index.js +4 -1
- package/components/card/object.js +1 -0
- package/components/card.css +1 -1
- package/components/chat/index.js +4 -1
- package/components/chat/object.js +1 -0
- package/components/chat.css +1 -1
- package/components/checkbox/index.js +4 -1
- package/components/checkbox/object.js +1 -0
- package/components/checkbox.css +1 -1
- package/components/collapse/index.js +4 -1
- package/components/collapse/object.js +1 -0
- package/components/collapse.css +1 -1
- package/components/countdown/index.js +4 -1
- package/components/countdown/object.js +1 -0
- package/components/countdown.css +1 -1
- package/components/divider/index.js +4 -1
- package/components/divider/object.js +1 -0
- package/components/divider.css +1 -1
- package/components/dropdown/index.js +4 -1
- package/components/dropdown/object.js +1 -0
- package/components/dropdown.css +1 -1
- package/components/footer/index.js +4 -1
- package/components/footer/object.js +1 -0
- package/components/footer.css +1 -1
- package/components/hero/index.js +4 -1
- package/components/hero/object.js +1 -0
- package/components/hero.css +1 -1
- package/components/input/index.js +4 -1
- package/components/input/object.js +1 -0
- package/components/input.css +1 -1
- package/components/kbd/index.js +4 -1
- package/components/kbd/object.js +1 -0
- package/components/kbd.css +1 -1
- package/components/link/index.js +4 -1
- package/components/link/object.js +1 -0
- package/components/link.css +1 -1
- package/components/loading/index.js +4 -1
- package/components/loading/object.js +1 -0
- package/components/loading.css +1 -1
- package/components/mask/index.js +4 -1
- package/components/mask/object.js +1 -0
- package/components/mask.css +1 -1
- package/components/menu/index.js +4 -1
- package/components/menu/object.js +1 -0
- package/components/menu.css +1 -1
- package/components/navbar/index.js +4 -1
- package/components/navbar/object.js +1 -0
- package/components/navbar.css +1 -1
- package/components/progress/index.js +4 -1
- package/components/progress/object.js +1 -0
- package/components/progress.css +1 -1
- package/components/radialprogress/index.js +4 -0
- package/components/{radial-progress.css → radialprogress.css} +1 -1
- package/components/radio/index.js +4 -1
- package/components/radio/object.js +1 -0
- package/components/radio.css +1 -1
- package/components/range/index.js +4 -1
- package/components/range/object.js +1 -0
- package/components/range.css +1 -1
- package/components/rating/index.js +4 -1
- package/components/rating/object.js +1 -0
- package/components/rating.css +1 -1
- package/components/select/index.js +4 -1
- package/components/select/object.js +1 -0
- package/components/select.css +1 -1
- package/components/skeleton/index.js +4 -1
- package/components/skeleton/object.js +1 -0
- package/components/skeleton.css +1 -1
- package/components/stack/index.js +4 -1
- package/components/stack/object.js +1 -0
- package/components/stack.css +1 -1
- package/components/status/index.js +4 -1
- package/components/status/object.js +1 -0
- package/components/status.css +1 -1
- package/components/steps/index.js +4 -1
- package/components/steps/object.js +1 -0
- package/components/steps.css +1 -1
- package/components/swap/index.js +4 -1
- package/components/swap/object.js +1 -0
- package/components/swap.css +1 -1
- package/components/tab/index.js +4 -1
- package/components/tab/object.js +1 -0
- package/components/tab.css +1 -1
- package/components/table/index.js +4 -1
- package/components/table/object.js +1 -0
- package/components/table.css +1 -1
- package/components/timeline/index.js +4 -1
- package/components/timeline/object.js +1 -0
- package/components/timeline.css +1 -1
- package/components/toggle/index.js +4 -1
- package/components/toggle/object.js +1 -0
- package/components/toggle.css +1 -1
- package/components/tooltip/index.js +4 -1
- package/components/tooltip/object.js +1 -0
- package/components/tooltip.css +1 -1
- package/css/themes/dark.css +25 -0
- package/css/themes/light.css +25 -0
- package/full.css +1 -1
- package/functions/plugin.js +10 -0
- package/functions/processThemes.js +106 -0
- package/index.js +105 -50
- package/package.json +4 -2
- package/utilities/join/index.js +4 -1
- package/utilities/join/object.js +1 -0
- package/utilities/join.css +1 -1
- package/base/properties/config.js +0 -4
- package/base/properties/index.css +0 -1
- package/base/root-color/config.js +0 -4
- package/base/root-color/index.css +0 -1
- package/base/root-color.css +0 -1
- package/base/scrollbar/config.js +0 -4
- package/base/scrollbar/index.css +0 -1
- package/components/alert/config.js +0 -4
- package/components/alert/index.css +0 -1
- package/components/avatar/config.js +0 -4
- package/components/avatar/index.css +0 -1
- package/components/badge/config.js +0 -4
- package/components/badge/index.css +0 -1
- package/components/button/config.js +0 -4
- package/components/button/index.css +0 -1
- package/components/card/config.js +0 -4
- package/components/card/index.css +0 -1
- package/components/chat/config.js +0 -4
- package/components/chat/index.css +0 -1
- package/components/checkbox/config.js +0 -4
- package/components/checkbox/index.css +0 -1
- package/components/collapse/config.js +0 -4
- package/components/collapse/index.css +0 -1
- package/components/countdown/config.js +0 -4
- package/components/countdown/index.css +0 -1
- package/components/divider/config.js +0 -4
- package/components/divider/index.css +0 -1
- package/components/dropdown/config.js +0 -4
- package/components/dropdown/index.css +0 -1
- package/components/footer/config.js +0 -4
- package/components/footer/index.css +0 -1
- package/components/hero/config.js +0 -4
- package/components/hero/index.css +0 -1
- package/components/input/config.js +0 -4
- package/components/input/index.css +0 -1
- package/components/kbd/config.js +0 -4
- package/components/kbd/index.css +0 -1
- package/components/link/config.js +0 -4
- package/components/link/index.css +0 -1
- package/components/loading/config.js +0 -4
- package/components/loading/index.css +0 -1
- package/components/mask/config.js +0 -4
- package/components/mask/index.css +0 -1
- package/components/menu/config.js +0 -4
- package/components/menu/index.css +0 -1
- package/components/navbar/config.js +0 -4
- package/components/navbar/index.css +0 -1
- package/components/progress/config.js +0 -4
- package/components/progress/index.css +0 -1
- package/components/radial-progress/config.js +0 -4
- package/components/radial-progress/index.css +0 -1
- package/components/radio/config.js +0 -4
- package/components/radio/index.css +0 -1
- package/components/range/config.js +0 -4
- package/components/range/index.css +0 -1
- package/components/rating/config.js +0 -4
- package/components/rating/index.css +0 -1
- package/components/select/config.js +0 -4
- package/components/select/index.css +0 -1
- package/components/skeleton/config.js +0 -4
- package/components/skeleton/index.css +0 -1
- package/components/stack/config.js +0 -4
- package/components/stack/index.css +0 -1
- package/components/status/config.js +0 -4
- package/components/status/index.css +0 -1
- package/components/steps/config.js +0 -4
- package/components/steps/index.css +0 -1
- package/components/swap/config.js +0 -4
- package/components/swap/index.css +0 -1
- package/components/tab/config.js +0 -4
- package/components/tab/index.css +0 -1
- package/components/table/config.js +0 -4
- package/components/table/index.css +0 -1
- package/components/timeline/config.js +0 -4
- package/components/timeline/index.css +0 -1
- package/components/toggle/config.js +0 -4
- package/components/toggle/index.css +0 -1
- package/components/tooltip/config.js +0 -4
- package/components/tooltip/index.css +0 -1
- package/index.css +0 -43
- package/utilities/join/config.js +0 -4
- package/utilities/join/index.css +0 -1
- /package/base/{root-color/index.js → rootcolor/object.js} +0 -0
- /package/components/{radial-progress → radialprogress}/class.json +0 -0
- /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
|
|
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
|
-
|
|
43
|
-
export default (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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.
|
|
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
|
-
"
|
|
42
|
+
"functions/plugin.js",
|
|
43
|
+
"functions/processThemes.js",
|
|
44
|
+
"css/themes",
|
|
43
45
|
"index.js",
|
|
44
46
|
"chunks.css",
|
|
45
47
|
"full.css"
|
package/utilities/join/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
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"}}}};
|
package/utilities/join.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! 🌼 daisyUI 5.0.0-alpha.
|
|
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 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
package/base/root-color.css
DELETED
|
@@ -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)}
|
package/base/scrollbar/config.js
DELETED
package/base/scrollbar/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
package/components/kbd/config.js
DELETED
package/components/kbd/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@config "./config.js";
|