winduum 0.5.2-next.1 → 0.5.2-next.2
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/package.json +1 -1
- package/utils/tailwind.cjs +4 -4
- package/utils/tailwind.js +1 -1
package/package.json
CHANGED
package/utils/tailwind.cjs
CHANGED
|
@@ -145,7 +145,7 @@ const createPlugin = (userConfig = {}) => {
|
|
|
145
145
|
...userConfig
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
return plugin(({ addUtilities, matchUtilities, theme, variants, e, corePlugins }) => {
|
|
148
|
+
return plugin(({ addUtilities, addComponents, matchUtilities, theme, variants, e, corePlugins }) => {
|
|
149
149
|
matchUtilities(
|
|
150
150
|
{
|
|
151
151
|
accent: (value) => {
|
|
@@ -243,7 +243,7 @@ const createPlugin = (userConfig = {}) => {
|
|
|
243
243
|
);
|
|
244
244
|
addUtilities(tailwindAnimations(userConfig.animations));
|
|
245
245
|
addUtilities(tailwindPropertyUtilities('mask', userConfig.mask));
|
|
246
|
-
|
|
246
|
+
addComponents([
|
|
247
247
|
Object.entries(theme('spacing')).map(([key, value]) => {
|
|
248
248
|
return {
|
|
249
249
|
[`.${e(`divide-gap-x-${key}`)}`]: {
|
|
@@ -261,7 +261,7 @@ const createPlugin = (userConfig = {}) => {
|
|
|
261
261
|
}
|
|
262
262
|
})
|
|
263
263
|
]);
|
|
264
|
-
|
|
264
|
+
addComponents({
|
|
265
265
|
'.flex-center': {
|
|
266
266
|
display: 'flex',
|
|
267
267
|
alignItems: 'center',
|
|
@@ -269,7 +269,7 @@ const createPlugin = (userConfig = {}) => {
|
|
|
269
269
|
},
|
|
270
270
|
'.flex-between': {
|
|
271
271
|
display: 'flex',
|
|
272
|
-
justifyContent: 'between',
|
|
272
|
+
justifyContent: 'space-between',
|
|
273
273
|
gap: 'var(--spacing-sm)'
|
|
274
274
|
}
|
|
275
275
|
});
|