mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-23 11:44:10 -05:00
* feat: prototype listbox grid layout * feat: apply listbox specific theme * refactor: wip * test: add null check * fix: merge conflict wip * refactor: merged master * fix: get column count from sizes * refactor: wip generalise even more * refactor: add back forgotten props * refactor: break out funcs * test: grid-list-components * test: derive options unit tests * test: styled components 1 * refactor: break out data loading * refactor: fixes to make it work * fix: include textAlign * test: cover new funcs with unit tests * test: horizontal min batch size * test: measure text * test: add test for grid component and clean up * Update apis/nucleus/src/components/listbox/assets/get-list-sizes.js Co-authored-by: Christian Veinfors <christian.veinfors@gmail.com> * Update apis/nucleus/src/components/listbox/components/ListBoxRowColumn.jsx Co-authored-by: Daniel Sjöstrand <99665802+DanielS-Qlik@users.noreply.github.com> * refactor: use default export * fix: move listCount fetch into search to ensure it is up to date * fix: lint fixes * test: fix failing test * test: fix failing test * test: update test for disclaimer * chore: try to change order of test:rendering * test: plywright * fix: render list also when disclaimer is shown * fix: ensure list count falls back to 0 * refactor: use typography for disclaimer Co-authored-by: Johan Lahti <johanlahti@gmail.com> Co-authored-by: Daniel Sjöstrand <99665802+DanielS-Qlik@users.noreply.github.com> Co-authored-by: Johan Lahti <johanlahti@users.noreply.github.com>
16 lines
507 B
JavaScript
16 lines
507 B
JavaScript
import React, { useMemo } from 'react';
|
|
import Container from '@mui/material/Container';
|
|
import { createTheme, ThemeProvider, StyledEngineProvider } from '@nebula.js/ui/theme';
|
|
|
|
export const ThemeWrapper = ({ themeName, children }) => {
|
|
const theme = useMemo(() => createTheme(themeName), [themeName]);
|
|
|
|
return (
|
|
<StyledEngineProvider injectFirst>
|
|
<ThemeProvider theme={theme}>
|
|
<Container maxWidth="md">{children}</Container>
|
|
</ThemeProvider>
|
|
</StyledEngineProvider>
|
|
);
|
|
};
|