0.1.13 • Published 9 months ago

@bunpmjs/bunext_material v0.1.13

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

MUI ( in devloppement )

to use with @bunpmjs/bunext

Usage

Set the Dark or Light Theme

// /layout.tsx
import {
  MuiStyle,
  SystemTheme,
  ThemeProvider,
  useTheme,
} from "@bunpmjs/bunext_material/style";

export function Layout({children}:{children: JSX.Element}) {
    return <MainLayout>{children}</MainLayout>
}

function MainLayout({children}:{children: JSX.Element}) {
    const theme = useTheme();
    theme.theme = SystemTheme();

    return (
     <ThemeProvider theme={theme}>
        <MuiStyle />
        {children}
     </ThemeProvider>
    );
}

Change Log

0.1.6

  • Fix Error: "Can't find variable: window" when using SystemTheme();

0.1.7

  • Add xs to the sx props of Mui Element
  • Fix SR not showing the current sx causing hydration error

0.1.8

  • Fix EndElement from ListItemElement now showing the right color by default

0.1.9

  • Scrollbar modified
  • modified default body,html style
  • Fix drawer Width and now respond correctly
  • Badge sx is now set to the badge itself
  • SpeedDialElement is now theme color receptive and Element is now use has a IconButton using his props
  • Fix CSS Variables initialized multiple time

0.1.10

  • Box is now forwardRef
  • Fix Theme propagation
  • Button has detailed htmlAttributes
  • SnackBar children is typed as any
  • TextField new prop: resetValue, will empty the input field (temporary)
  • Paper & Menu & MenuElement use forwardRef
  • menu icon & menuElement are theme color sensitive

0.1.11

  • Fix display regression in menuElement & color
  • fix listItem header color

0.1.12

  • fix select dropdown color and Zindex
  • fix css variable multiplication

0.1.13

  • fix Select defaultValue not showing & defaultValue value not initialized correctly
  • fix css variable not updating correcly
  • Select set value onMouseDown replacing onClick ( more responsive )
  • Snackbar is more stable and onOpen prop is supported
0.1.13

9 months ago

0.1.10

10 months ago

0.1.11

10 months ago

0.1.12

10 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.0.8

1 year ago

0.1.9

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.6

11 months ago

0.0.7

1 year ago

0.1.5

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago