Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

View File

@@ -0,0 +1,19 @@
'use client';
import * as React from 'react';
/* eslint-enable */ /**
* @internal
*/ export const CustomStyleHooksContext = React.createContext(undefined);
// eslint-disable-next-line @typescript-eslint/no-empty-function
const noop = ()=>{};
/**
* @internal
*/ export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
/**
* Gets a custom style hook
* @param hook - One of the hook properties in CustomStyleHooksContextValue
* @returns The corresponding hook when defined, otherwise a no-op function.
*/ export const useCustomStyleHook = (hook)=>{
var _React_useContext;
var _React_useContext_hook;
return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
export { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext';

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../src/CustomStyleHooksContext/index.ts"],"sourcesContent":["export type { CustomStyleHooksContextValue } from './CustomStyleHooksContext';\nexport { CustomStyleHooksContext, CustomStyleHooksProvider, useCustomStyleHook } from './CustomStyleHooksContext';\n"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook"],"mappings":"AACA,SAASA,uBAAuB,EAAEC,wBAAwB,EAAEC,kBAAkB,QAAQ,4BAA4B"}