File tree 5 files changed +14
-41
lines changed
packages/react-components
react-color-picker/library/src/components
react-shared-contexts/library/src/CustomStyleHooksContext
5 files changed +14
-41
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,17 @@ import { useAlphaSlider_unstable } from './useAlphaSlider';
4
4
import { renderAlphaSlider_unstable } from './renderAlphaSlider' ;
5
5
import { useAlphaSliderStyles_unstable } from './useAlphaSliderStyles.styles' ;
6
6
import type { AlphaSliderProps } from './AlphaSlider.types' ;
7
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts' ;
7
8
8
9
/**
9
- * AlphaSlider component - TODO: add more docs
10
+ * AlphaSlider component
10
11
*/
11
12
export const AlphaSlider : ForwardRefComponent < AlphaSliderProps > = React . forwardRef ( ( props , ref ) => {
12
13
const state = useAlphaSlider_unstable ( props , ref ) ;
13
14
14
15
useAlphaSliderStyles_unstable ( state ) ;
15
16
16
- /**
17
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
18
- *
19
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
20
- * - uncomment this line
21
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
22
- * - verify that custom global style override works for your component
23
- */
24
- // useCustomStyleHook_unstable('useAlphaSliderStyles_unstable')(state);
17
+ useCustomStyleHook_unstable ( 'useAlphaSliderStyles_unstable' ) ( state ) ;
25
18
26
19
return renderAlphaSlider_unstable ( state ) ;
27
20
} ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useColorArea_unstable } from './useColorArea';
4
4
import { renderColorArea_unstable } from './renderColorArea' ;
5
5
import { useColorAreaStyles_unstable } from './useColorAreaStyles.styles' ;
6
6
import type { ColorAreaProps } from './ColorArea.types' ;
7
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts' ;
7
8
8
9
/**
9
10
* ColorArea component
@@ -12,16 +13,7 @@ export const ColorArea: ForwardRefComponent<ColorAreaProps> = React.forwardRef((
12
13
const state = useColorArea_unstable ( props , ref ) ;
13
14
14
15
useColorAreaStyles_unstable ( state ) ;
15
-
16
- /**
17
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
18
- *
19
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
20
- * - uncomment this line
21
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
22
- * - verify that custom global style override works for your component
23
- */
24
- // useCustomStyleHook_unstable('useColorAreaStyles_unstable')(state);
16
+ useCustomStyleHook_unstable ( 'useColorAreaStyles_unstable' ) ( state ) ;
25
17
26
18
return renderColorArea_unstable ( state ) ;
27
19
} ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { renderColorPicker_unstable } from './renderColorPicker';
5
5
import { useColorPickerStyles_unstable } from './useColorPickerStyles.styles' ;
6
6
import type { ColorPickerProps } from './ColorPicker.types' ;
7
7
import { useColorPickerContextValues } from '../../contexts/colorPicker' ;
8
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts' ;
8
9
9
10
/**
10
11
* ColorPicker component
@@ -14,16 +15,7 @@ export const ColorPicker: ForwardRefComponent<ColorPickerProps> = React.forwardR
14
15
const contextValues = useColorPickerContextValues ( state ) ;
15
16
16
17
useColorPickerStyles_unstable ( state ) ;
17
-
18
- /**
19
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
20
- *
21
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
22
- * - uncomment this line
23
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
24
- * - verify that custom global style override works for your component
25
- */
26
- // useCustomStyleHook_unstable('useColorPickerStyles_unstable')(state);
18
+ useCustomStyleHook_unstable ( 'useColorPickerStyles_unstable' ) ( state ) ;
27
19
28
20
return renderColorPicker_unstable ( state , contextValues ) ;
29
21
} ) ;
Original file line number Diff line number Diff line change @@ -4,24 +4,16 @@ import { useColorSlider_unstable } from './useColorSlider';
4
4
import { renderColorSlider_unstable } from './renderColorSlider' ;
5
5
import { useColorSliderStyles_unstable } from './useColorSliderStyles.styles' ;
6
6
import type { ColorSliderProps } from './ColorSlider.types' ;
7
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts' ;
7
8
8
9
/**
9
- * ColorSlider component - TODO: add more docs
10
+ * ColorSlider component
10
11
*/
11
12
export const ColorSlider : ForwardRefComponent < ColorSliderProps > = React . forwardRef ( ( props , ref ) => {
12
13
const state = useColorSlider_unstable ( props , ref ) ;
13
14
14
15
useColorSliderStyles_unstable ( state ) ;
15
-
16
- /**
17
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
18
- *
19
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
20
- * - uncomment this line
21
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
22
- * - verify that custom global style override works for your component
23
- */
24
- // useCustomStyleHook_unstable('useColorSliderStyles_unstable')(state);
16
+ useCustomStyleHook_unstable ( 'useColorSliderStyles_unstable' ) ( state ) ;
25
17
26
18
return renderColorSlider_unstable ( state ) ;
27
19
} ) ;
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ export type CustomStyleHooksContextValue = Partial<{
166
166
useCarouselNavButtonStyles_unstable : CustomStyleHook ;
167
167
useCarouselNavContainerStyles_unstable : CustomStyleHook ;
168
168
useCarouselNavImageButtonStyles_unstable : CustomStyleHook ;
169
+ useAlphaSliderStyles_unstable : CustomStyleHook ;
170
+ useColorAreaStyles_unstable : CustomStyleHook ;
171
+ useColorPickerStyles_unstable : CustomStyleHook ;
172
+ useColorSliderStyles_unstable : CustomStyleHook ;
169
173
} > ;
170
174
171
175
/**
You can’t perform that action at this time.
0 commit comments