Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-eslint-rule-prefer-v9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrokirpa authored Dec 14, 2024
2 parents 92883c4 + b5d571f commit 75f0a93
Show file tree
Hide file tree
Showing 136 changed files with 1,122 additions and 322 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-button",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-carousel",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Enable chart selection based on legends in declarative charts",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-migration-v0-v9",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-nav-preview",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-radio",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-teaching-popover",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "chore: remove usage of \"export *\"",
"packageName": "@fluentui/react-virtualizer",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "bugfix: ensure teams tokens follow teams overrides for fonts",
"packageName": "@fluentui/tokens",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class AreaChartBase extends React.Component<IAreaChartProps, IAreaChartSt
super(props);
this._createSet = memoizeFunction(this._createDataSet);
this.state = {
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
activeLegend: '',
hoverXValue: '',
isCalloutVisible: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class DonutChartBase extends React.Component<IDonutChartProps, IDonutChar
color: '',
xCalloutValue: '',
yCalloutValue: '',
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
focusedArcId: '',
};
this._hoverCallback = this._hoverCallback.bind(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class GaugeChartBase extends React.Component<IGaugeChartProps, IGaugeChar

this.state = {
hoveredLegend: '',
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
focusedElement: '',
calloutTarget: null,
isCalloutVisible: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class GroupedVerticalBarChartBase extends React.Component<
dataForHoverCard: 0,
isCalloutVisible: false,
refSelected: null,
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
xCalloutValue: '',
yCalloutValue: '',
YValueHover: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class HeatMapChartBase extends React.Component<IHeatMapChartProps, IHeatM
): DataSet => this._createNewDataSet(data, xDate, xNum, yDate, yNum),
);
this.state = {
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
activeLegend: '',
isCalloutVisible: false,
target: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class HorizontalBarChartWithAxisBase extends React.Component<
isLegendSelected: false,
isLegendHovered: false,
refSelected: null,
selectedLegendTitle: '',
selectedLegendTitle: props.legendProps?.selectedLegend ?? '',
xCalloutValue: '',
yCalloutValue: '',
activeXdataPoint: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
activeLegend: '',
YValueHover: [],
refSelected: '',
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
isCalloutVisible: false,
selectedLegendPoints: [],
selectedColorBarLegend: [],
Expand Down Expand Up @@ -1192,7 +1192,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
() => `translate(${this._xAxisScale(pointToHighlight.x)}, ${this._yAxisScale(pointToHighlight.y)})`,
)
.attr('visibility', 'visibility')
.attr('y2', `${lineHeight - 5 - this._yAxisScale(pointToHighlight.y)}`);
.attr('y2', `${lineHeight - this._yAxisScale(pointToHighlight.y)}`);

this.setState({
nearestCircleToHighlight: pointToHighlight,
Expand Down Expand Up @@ -1278,7 +1278,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
d3Select(`#${this._verticalLine}`)
.attr('transform', () => `translate(${_this._xAxisScale(x)}, ${_this._yAxisScale(y)})`)
.attr('visibility', 'visibility')
.attr('y2', `${lineHeight - 5 - _this._yAxisScale(y)}`);
.attr('y2', `${lineHeight - _this._yAxisScale(y)}`);
if (this._uniqueCallOutID !== circleId) {
this._uniqueCallOutID = circleId;
this.setState({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class VerticalBarChartBase extends React.Component<IVerticalBarChartProps
dataForHoverCard: 0,
isCalloutVisible: false,
refSelected: null,
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
activeLegend: '',
xCalloutValue: '',
yCalloutValue: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class VerticalStackedBarChartBase extends React.Component<
super(props);
this.state = {
isCalloutVisible: false,
selectedLegend: '',
selectedLegend: props.legendProps?.selectedLegend ?? '',
activeLegend: '',
refSelected: null,
dataForHoverCard: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/Button/index';
export type { ButtonProps, ButtonSlots, ButtonState } from './components/Button/index';
export {
Button,
buttonClassNames,
renderButton_unstable,
useButtonStyles_unstable,
useButton_unstable,
} from './components/Button/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/CompoundButton/index';
export type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './components/CompoundButton/index';
export {
CompoundButton,
compoundButtonClassNames,
renderCompoundButton_unstable,
useCompoundButtonStyles_unstable,
useCompoundButton_unstable,
} from './components/CompoundButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/MenuButton/index';
export type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './components/MenuButton/index';
export {
MenuButton,
menuButtonClassNames,
renderMenuButton_unstable,
useMenuButtonStyles_unstable,
useMenuButton_unstable,
} from './components/MenuButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/SplitButton/index';
export type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './components/SplitButton/index';
export {
SplitButton,
renderSplitButton_unstable,
splitButtonClassNames,
useSplitButtonStyles_unstable,
useSplitButton_unstable,
} from './components/SplitButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/ToggleButton/index';
export type { ToggleButtonProps, ToggleButtonState } from './components/ToggleButton/index';
export {
ToggleButton,
renderToggleButton_unstable,
toggleButtonClassNames,
useToggleButtonStyles_unstable,
useToggleButton_unstable,
} from './components/ToggleButton/index';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './Button';
export { Button } from './Button';
// Explicit exports to omit ButtonCommons
export type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';
export * from './renderButton';
export * from './useButton';
export { renderButton_unstable } from './renderButton';
export { useButton_unstable } from './useButton';
export { buttonClassNames, useButtonStyles_unstable } from './useButtonStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './CompoundButton';
export * from './CompoundButton.types';
export * from './renderCompoundButton';
export * from './useCompoundButton';
export { CompoundButton } from './CompoundButton';
export type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';
export { renderCompoundButton_unstable } from './renderCompoundButton';
export { useCompoundButton_unstable } from './useCompoundButton';
export { compoundButtonClassNames, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './MenuButton.types';
export * from './MenuButton';
export * from './renderMenuButton';
export * from './useMenuButton';
export type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton.types';
export { MenuButton } from './MenuButton';
export { renderMenuButton_unstable } from './renderMenuButton';
export { useMenuButton_unstable } from './useMenuButton';
export { menuButtonClassNames, useMenuButtonStyles_unstable } from './useMenuButtonStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './SplitButton';
export * from './SplitButton.types';
export * from './renderSplitButton';
export * from './useSplitButton';
export { SplitButton } from './SplitButton';
export type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton.types';
export { renderSplitButton_unstable } from './renderSplitButton';
export { useSplitButton_unstable } from './useSplitButton';
export { splitButtonClassNames, useSplitButtonStyles_unstable } from './useSplitButtonStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './ToggleButton';
export * from './ToggleButton.types';
export * from './renderToggleButton';
export * from './useToggleButton';
export { ToggleButton } from './ToggleButton';
export type { ToggleButtonProps, ToggleButtonState } from './ToggleButton.types';
export { renderToggleButton_unstable } from './renderToggleButton';
export { useToggleButton_unstable } from './useToggleButton';
export { toggleButtonClassNames, useToggleButtonStyles_unstable } from './useToggleButtonStyles.styles';
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './ButtonContext';
export type { ButtonContextValue } from './ButtonContext';
export { ButtonContextProvider, useButtonContext } from './ButtonContext';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './useToggleState';
export { useToggleState } from './useToggleState';
18 changes: 17 additions & 1 deletion packages/react-components/react-carousel/library/src/Carousel.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
export * from './components/Carousel/index';
export type {
CarouselAnnouncerFunction,
CarouselMotion,
CarouselProps,
CarouselSlots,
CarouselState,
CarouselUpdateData,
CarouselVisibilityChangeEvent,
CarouselVisibilityEventDetail,
} from './components/Carousel/index';
export {
Carousel,
carouselClassNames,
renderCarousel_unstable,
useCarouselStyles_unstable,
useCarousel_unstable,
} from './components/Carousel/index';
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
export * from './components/CarouselAutoplayButton/index';
export type {
CarouselAutoplayAriaLabelFunction,
CarouselAutoplayButtonProps,
CarouselAutoplayButtonSlots,
CarouselAutoplayButtonState,
CarouselAutoplayChangeData,
} from './components/CarouselAutoplayButton/index';
export {
CarouselAutoplayButton,
carouselAutoplayButtonClassNames,
renderCarouselAutoplayButton_unstable,
useCarouselAutoplayButtonStyles_unstable,
useCarouselAutoplayButton_unstable,
} from './components/CarouselAutoplayButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/CarouselButton/index';
export type { CarouselButtonProps, CarouselButtonSlots, CarouselButtonState } from './components/CarouselButton/index';
export {
CarouselButton,
carouselButtonClassNames,
renderCarouselButton_unstable,
useCarouselButtonStyles_unstable,
useCarouselButton_unstable,
} from './components/CarouselButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/CarouselCard/index';
export type { CarouselCardProps, CarouselCardSlots, CarouselCardState } from './components/CarouselCard/index';
export {
CarouselCard,
carouselCardClassNames,
renderCarouselCard_unstable,
useCarouselCardStyles_unstable,
useCarouselCard_unstable,
} from './components/CarouselCard/index';
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
export * from './components/CarouselContext';
export * from './components/CarouselContext.types';
export {
CarouselProvider,
carouselContextDefaultValue,
useCarouselContext_unstable,
} from './components/CarouselContext';
export type {
CarouselContextValue,
CarouselContextValues,
CarouselIndexChangeData,
} from './components/CarouselContext.types';
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
export * from './components/CarouselNav/index';
export type {
CarouselNavContextValue,
CarouselNavProps,
CarouselNavSlots,
CarouselNavState,
NavButtonRenderFunction,
} from './components/CarouselNav/index';
export {
CarouselNav,
carouselNavClassNames,
renderCarouselNav_unstable,
useCarouselNavStyles_unstable,
useCarouselNav_unstable,
} from './components/CarouselNav/index';
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export * from './components/CarouselNavButton/index';
export type {
CarouselNavButtonProps,
CarouselNavButtonSlots,
CarouselNavButtonState,
} from './components/CarouselNavButton/index';
export {
CarouselNavButton,
carouselNavButtonClassNames,
renderCarouselNavButton_unstable,
useCarouselNavButtonStyles_unstable,
useCarouselNavButton_unstable,
} from './components/CarouselNavButton/index';
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export * from './components/CarouselNavContainer/index';
export type {
CarouselNavContainerProps,
CarouselNavContainerSlots,
CarouselNavContainerState,
} from './components/CarouselNavContainer/index';
export {
CarouselNavContainer,
carouselNavContainerClassNames,
renderCarouselNavContainer_unstable,
useCarouselNavContainerStyles_unstable,
useCarouselNavContainer_unstable,
} from './components/CarouselNavContainer/index';
Loading

0 comments on commit 75f0a93

Please sign in to comment.