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
@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
RatingItemContext: function() {
return RatingItemContext;
},
RatingItemProvider: function() {
return RatingItemProvider;
},
useRatingItemContextValue_unstable: function() {
return useRatingItemContextValue_unstable;
}
});
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
const _reacticons = require("@fluentui/react-icons");
const RatingItemContext = /*#__PURE__*/ _react.createContext(undefined);
const ratingItemContextDefaultValue = {
color: 'neutral',
iconFilled: _reacticons.StarFilled,
iconOutline: _reacticons.StarRegular,
step: 1,
size: 'medium'
};
const RatingItemProvider = RatingItemContext.Provider;
const useRatingItemContextValue_unstable = ()=>_react.useContext(RatingItemContext) || ratingItemContextDefaultValue;
@@ -0,0 +1 @@
{"version":3,"sources":["../src/contexts/RatingItemContext.tsx"],"sourcesContent":["import * as React from 'react';\nimport { RatingItemContextValue } from '../RatingItem';\nimport { StarFilled, StarRegular } from '@fluentui/react-icons';\n\n/**\n * RatingContext is provided by Rating, and is consumed by Rating to determine default values of some props.\n */\nexport const RatingItemContext = React.createContext<RatingItemContextValue | undefined>(undefined);\nconst ratingItemContextDefaultValue: RatingItemContextValue = {\n color: 'neutral',\n iconFilled: StarFilled,\n iconOutline: StarRegular,\n step: 1,\n size: 'medium',\n};\nexport const RatingItemProvider = RatingItemContext.Provider;\n\n/**\n * Get the value of the RatingContext.\n */\nexport const useRatingItemContextValue_unstable = () =>\n React.useContext(RatingItemContext) || ratingItemContextDefaultValue;\n"],"names":["RatingItemContext","RatingItemProvider","useRatingItemContextValue_unstable","React","createContext","undefined","ratingItemContextDefaultValue","color","iconFilled","StarFilled","iconOutline","StarRegular","step","size","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOaA,iBAAAA;eAAAA;;IAQAC,kBAAAA;eAAAA;;IAKAC,kCAAAA;eAAAA;;;;iEApBU;4BAEiB;AAKjC,MAAMF,oBAAAA,WAAAA,GAAoBG,OAAMC,aAAa,CAAqCC;AACzF,MAAMC,gCAAwD;IAC5DC,OAAO;IACPC,YAAYC,sBAAAA;IACZC,aAAaC,uBAAAA;IACbC,MAAM;IACNC,MAAM;AACR;AACO,MAAMZ,qBAAqBD,kBAAkBc,QAAQ;AAKrD,MAAMZ,qCAAqC,IAChDC,OAAMY,UAAU,CAACf,sBAAsBM"}
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
RatingItemContext: function() {
return _RatingItemContext.RatingItemContext;
},
RatingItemProvider: function() {
return _RatingItemContext.RatingItemProvider;
},
useRatingItemContextValue_unstable: function() {
return _RatingItemContext.useRatingItemContextValue_unstable;
}
});
const _RatingItemContext = require("./RatingItemContext");
@@ -0,0 +1 @@
{"version":3,"sources":["../src/contexts/index.ts"],"sourcesContent":["export { RatingItemContext, RatingItemProvider, useRatingItemContextValue_unstable } from './RatingItemContext';\n"],"names":["RatingItemContext","RatingItemProvider","useRatingItemContextValue_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,iBAAiB;eAAjBA,oCAAiB;;IAAEC,kBAAkB;eAAlBA,qCAAkB;;IAAEC,kCAAkC;eAAlCA,qDAAkC;;;mCAAQ"}