mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(css-baseline): updated from main
This commit is contained in:
parent
d445cebb93
commit
f790cf1fa0
@ -46,7 +46,7 @@ export function useDivider(props: UseDividerProps) {
|
||||
...otherProps
|
||||
} = props;
|
||||
|
||||
const alignCss = useMemo(() => {
|
||||
const alignCss = useMemo<CSS | undefined>(() => {
|
||||
if (!align || align === "center") return {};
|
||||
if (align === "left" || align === "start") {
|
||||
return {transform: "translateY(-50%)", left: "7%"};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import React, {ReactNode} from "react";
|
||||
|
||||
import {globalCss, getCssText} from "./stitches.config";
|
||||
|
||||
@ -240,7 +240,7 @@ const globalStyles = globalCss({
|
||||
|
||||
const flushCSS = () => <style dangerouslySetInnerHTML={{__html: getCssText()}} id="stitches" />;
|
||||
|
||||
const CssBaselineBase: React.FC<React.PropsWithChildren<{}>> = ({children}) => {
|
||||
const CssBaselineBase: React.FC<{children?: ReactNode}> = ({children}) => {
|
||||
globalStyles();
|
||||
|
||||
return <React.Fragment>{children}</React.Fragment>;
|
||||
@ -250,8 +250,8 @@ type MemoCssBaselineComponent<P = {}> = React.NamedExoticComponent<P> & {
|
||||
flush: typeof flushCSS;
|
||||
};
|
||||
|
||||
export const CssBaseline = React.memo(CssBaselineBase) as MemoCssBaselineComponent<
|
||||
React.PropsWithChildren<{}>
|
||||
>;
|
||||
export const CssBaseline = React.memo(CssBaselineBase) as MemoCssBaselineComponent<{
|
||||
children?: ReactNode;
|
||||
}>;
|
||||
|
||||
CssBaseline.flush = flushCSS;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user