Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import * as React from 'react';
import { StarFilled, StarRegular } from '@fluentui/react-icons';
/**
* RatingContext is provided by Rating, and is consumed by Rating to determine default values of some props.
*/ export const RatingItemContext = /*#__PURE__*/ React.createContext(undefined);
const ratingItemContextDefaultValue = {
color: 'neutral',
iconFilled: StarFilled,
iconOutline: StarRegular,
step: 1,
size: 'medium'
};
export const RatingItemProvider = RatingItemContext.Provider;
/**
* Get the value of the RatingContext.
*/ export const useRatingItemContextValue_unstable = ()=>React.useContext(RatingItemContext) || ratingItemContextDefaultValue;