55 type DenormalizedQuery ,
66} from '@vojtechportes/react-query-builder' ;
77import { components as antdComponents } from '@vojtechportes/react-query-builder/antd/v6' ;
8+ import { components as fluentUiComponents } from '@vojtechportes/react-query-builder/fluentui/v8' ;
89import { createMonacoComponents } from '@vojtechportes/react-query-builder/monaco' ;
910import { components as muiComponents } from '@vojtechportes/react-query-builder/mui/v9' ;
1011import type { IColors } from '../../../src/constants/colors' ;
@@ -211,7 +212,8 @@ export const DemoPlayground: React.FC<IDemoPlaygroundProps> = ({
211212 const [ showSourceCode , setShowSourceCode ] = React . useState ( false ) ;
212213 const isMuiMode = customizationMode === 'mui' ;
213214 const isAntdMode = customizationMode === 'antd' ;
214- const usesAdapterMode = isMuiMode || isAntdMode ;
215+ const isFluentUiMode = customizationMode === 'fluentui' ;
216+ const usesAdapterMode = isMuiMode || isAntdMode || isFluentUiMode ;
215217
216218 React . useEffect ( ( ) => {
217219 if ( ! singleRootGroup && textMode ) {
@@ -225,6 +227,8 @@ export const DemoPlayground: React.FC<IDemoPlaygroundProps> = ({
225227 ? muiComponents
226228 : customizationMode === 'antd'
227229 ? antdComponents
230+ : customizationMode === 'fluentui'
231+ ? fluentUiComponents
228232 : undefined ;
229233
230234 if ( ! useMonacoTextEditor ) {
@@ -469,6 +473,16 @@ export const DemoPlayground: React.FC<IDemoPlaygroundProps> = ({
469473 />
470474 < span > ANTD adapter</ span >
471475 </ ToggleRow >
476+
477+ < ToggleRow >
478+ < Toggle
479+ type = "radio"
480+ name = "customization-mode"
481+ checked = { customizationMode === 'fluentui' }
482+ onChange = { ( ) => setCustomizationMode ( 'fluentui' ) }
483+ />
484+ < span > Fluent UI adapter</ span >
485+ </ ToggleRow >
472486 </ ChoiceGroup >
473487 </ Panel >
474488
@@ -481,6 +495,8 @@ export const DemoPlayground: React.FC<IDemoPlaygroundProps> = ({
481495 usesAdapterMode
482496 ? isMuiMode
483497 ? 'ThemeProvider colors style the default builder components only. The MUI adapter uses Material UI styling instead.'
498+ : isFluentUiMode
499+ ? 'ThemeProvider colors style the default builder components only. The Fluent UI adapter uses Fluent UI styling instead.'
484500 : 'ThemeProvider colors style the default builder components only. The ANTD adapter uses Ant Design styling instead.'
485501 : undefined
486502 }
@@ -509,6 +525,8 @@ export const DemoPlayground: React.FC<IDemoPlaygroundProps> = ({
509525 < BuilderSurface >
510526 { isMuiMode ? (
511527 < Builder { ...builderProps } />
528+ ) : isFluentUiMode ? (
529+ < Builder { ...builderProps } />
512530 ) : isAntdMode ? (
513531 < Builder { ...builderProps } />
514532 ) : (
0 commit comments