UI: suppress type problems with tailwind
This commit is contained in:
@@ -10,7 +10,7 @@ const toRGB = (value: string) =>
|
|||||||
const mkBorderUtils = (
|
const mkBorderUtils = (
|
||||||
theme: (n: string) => unknown,
|
theme: (n: string) => unknown,
|
||||||
prefix: string,
|
prefix: string,
|
||||||
cssProperty: string,
|
cssProperty: string
|
||||||
) => ({
|
) => ({
|
||||||
// - def colors
|
// - def colors
|
||||||
[`.${prefix}-def-1`]: {
|
[`.${prefix}-def-1`]: {
|
||||||
@@ -75,7 +75,9 @@ const mkBorderUtils = (
|
|||||||
export default plugin.withOptions(
|
export default plugin.withOptions(
|
||||||
(_options = {}) =>
|
(_options = {}) =>
|
||||||
({ addUtilities, theme, addVariant, e }) => {
|
({ addUtilities, theme, addVariant, e }) => {
|
||||||
|
// @ts-expect-error: lib of tailwind has no types
|
||||||
addVariant("popover-open", ({ modifySelectors, separator }) => {
|
addVariant("popover-open", ({ modifySelectors, separator }) => {
|
||||||
|
// @ts-expect-error: lib of tailwind has no types
|
||||||
modifySelectors(({ className }) => {
|
modifySelectors(({ className }) => {
|
||||||
return `.${e(`popover-open${separator}${className}`)}:popover-open`;
|
return `.${e(`popover-open${separator}${className}`)}:popover-open`;
|
||||||
});
|
});
|
||||||
@@ -276,5 +278,5 @@ export default plugin.withOptions(
|
|||||||
},
|
},
|
||||||
...typography,
|
...typography,
|
||||||
},
|
},
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user