0.1.13 • Published 10 months ago

@bunpmjs/bunext_material v0.1.13

Weekly downloads
-
License
-
Repository
-
Last release
10 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

10 months ago

0.1.10

11 months ago

0.1.11

11 months ago

0.1.12

11 months ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.8

12 months ago

0.1.7

12 months ago

0.0.8

1 year ago

0.1.9

12 months ago

0.1.4

12 months ago

0.1.3

1 year ago

0.1.6

12 months ago

0.0.7

1 year ago

0.1.5

12 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