@fluentui/react-rating 0.0.0-nightly-20240318-0408.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +187 -0
- package/LICENSE +15 -0
- package/README.md +38 -0
- package/dist/index.d.ts +291 -0
- package/lib/Rating.js +1 -0
- package/lib/Rating.js.map +1 -0
- package/lib/RatingDisplay.js +1 -0
- package/lib/RatingDisplay.js.map +1 -0
- package/lib/RatingItem.js +1 -0
- package/lib/RatingItem.js.map +1 -0
- package/lib/components/Rating/Rating.js +14 -0
- package/lib/components/Rating/Rating.js.map +1 -0
- package/lib/components/Rating/Rating.types.js +1 -0
- package/lib/components/Rating/Rating.types.js.map +1 -0
- package/lib/components/Rating/index.js +6 -0
- package/lib/components/Rating/index.js.map +1 -0
- package/lib/components/Rating/renderRating.js +12 -0
- package/lib/components/Rating/renderRating.js.map +1 -0
- package/lib/components/Rating/useRating.js +82 -0
- package/lib/components/Rating/useRating.js.map +1 -0
- package/lib/components/Rating/useRatingContextValues.js +29 -0
- package/lib/components/Rating/useRatingContextValues.js.map +1 -0
- package/lib/components/Rating/useRatingStyles.styles.js +17 -0
- package/lib/components/Rating/useRatingStyles.styles.js.map +1 -0
- package/lib/components/RatingDisplay/RatingDisplay.js +15 -0
- package/lib/components/RatingDisplay/RatingDisplay.js.map +1 -0
- package/lib/components/RatingDisplay/RatingDisplay.types.js +1 -0
- package/lib/components/RatingDisplay/RatingDisplay.types.js.map +1 -0
- package/lib/components/RatingDisplay/index.js +6 -0
- package/lib/components/RatingDisplay/index.js.map +1 -0
- package/lib/components/RatingDisplay/renderRatingDisplay.js +18 -0
- package/lib/components/RatingDisplay/renderRatingDisplay.js.map +1 -0
- package/lib/components/RatingDisplay/useRatingDisplay.js +79 -0
- package/lib/components/RatingDisplay/useRatingDisplay.js.map +1 -0
- package/lib/components/RatingDisplay/useRatingDisplayContextValues.js +23 -0
- package/lib/components/RatingDisplay/useRatingDisplayContextValues.js.map +1 -0
- package/lib/components/RatingDisplay/useRatingDisplayStyles.styles.js +50 -0
- package/lib/components/RatingDisplay/useRatingDisplayStyles.styles.js.map +1 -0
- package/lib/components/RatingItem/RatingItem.js +12 -0
- package/lib/components/RatingItem/RatingItem.js.map +1 -0
- package/lib/components/RatingItem/RatingItem.types.js +1 -0
- package/lib/components/RatingItem/RatingItem.types.js.map +1 -0
- package/lib/components/RatingItem/index.js +5 -0
- package/lib/components/RatingItem/index.js.map +1 -0
- package/lib/components/RatingItem/renderRatingItem.js +15 -0
- package/lib/components/RatingItem/renderRatingItem.js.map +1 -0
- package/lib/components/RatingItem/useRatingItem.js +111 -0
- package/lib/components/RatingItem/useRatingItem.js.map +1 -0
- package/lib/components/RatingItem/useRatingItemStyles.styles.js +163 -0
- package/lib/components/RatingItem/useRatingItemStyles.styles.js.map +1 -0
- package/lib/contexts/RatingItemContext.js +16 -0
- package/lib/contexts/RatingItemContext.js.map +1 -0
- package/lib/contexts/index.js +1 -0
- package/lib/contexts/index.js.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/Rating.js +6 -0
- package/lib-commonjs/Rating.js.map +1 -0
- package/lib-commonjs/RatingDisplay.js +6 -0
- package/lib-commonjs/RatingDisplay.js.map +1 -0
- package/lib-commonjs/RatingItem.js +6 -0
- package/lib-commonjs/RatingItem.js.map +1 -0
- package/lib-commonjs/components/Rating/Rating.js +23 -0
- package/lib-commonjs/components/Rating/Rating.js.map +1 -0
- package/lib-commonjs/components/Rating/Rating.types.js +6 -0
- package/lib-commonjs/components/Rating/Rating.types.js.map +1 -0
- package/lib-commonjs/components/Rating/index.js +11 -0
- package/lib-commonjs/components/Rating/index.js.map +1 -0
- package/lib-commonjs/components/Rating/renderRating.js +20 -0
- package/lib-commonjs/components/Rating/renderRating.js.map +1 -0
- package/lib-commonjs/components/Rating/useRating.js +85 -0
- package/lib-commonjs/components/Rating/useRating.js.map +1 -0
- package/lib-commonjs/components/Rating/useRatingContextValues.js +40 -0
- package/lib-commonjs/components/Rating/useRatingContextValues.js.map +1 -0
- package/lib-commonjs/components/Rating/useRatingStyles.styles.js +32 -0
- package/lib-commonjs/components/Rating/useRatingStyles.styles.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/RatingDisplay.js +23 -0
- package/lib-commonjs/components/RatingDisplay/RatingDisplay.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/RatingDisplay.types.js +6 -0
- package/lib-commonjs/components/RatingDisplay/RatingDisplay.types.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/index.js +11 -0
- package/lib-commonjs/components/RatingDisplay/index.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/renderRatingDisplay.js +26 -0
- package/lib-commonjs/components/RatingDisplay/renderRatingDisplay.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplay.js +82 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplay.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplayContextValues.js +34 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplayContextValues.js.map +1 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplayStyles.styles.js +72 -0
- package/lib-commonjs/components/RatingDisplay/useRatingDisplayStyles.styles.js.map +1 -0
- package/lib-commonjs/components/RatingItem/RatingItem.js +21 -0
- package/lib-commonjs/components/RatingItem/RatingItem.js.map +1 -0
- package/lib-commonjs/components/RatingItem/RatingItem.types.js +4 -0
- package/lib-commonjs/components/RatingItem/RatingItem.types.js.map +1 -0
- package/lib-commonjs/components/RatingItem/index.js +10 -0
- package/lib-commonjs/components/RatingItem/index.js.map +1 -0
- package/lib-commonjs/components/RatingItem/renderRatingItem.js +23 -0
- package/lib-commonjs/components/RatingItem/renderRatingItem.js.map +1 -0
- package/lib-commonjs/components/RatingItem/useRatingItem.js +114 -0
- package/lib-commonjs/components/RatingItem/useRatingItem.js.map +1 -0
- package/lib-commonjs/components/RatingItem/useRatingItemStyles.styles.js +323 -0
- package/lib-commonjs/components/RatingItem/useRatingItemStyles.styles.js.map +1 -0
- package/lib-commonjs/contexts/RatingItemContext.js +34 -0
- package/lib-commonjs/contexts/RatingItemContext.js.map +1 -0
- package/lib-commonjs/contexts/index.js +6 -0
- package/lib-commonjs/contexts/index.js.map +1 -0
- package/lib-commonjs/index.js +73 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
ratingItemClassNames: function() {
|
|
13
|
+
return ratingItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
useRatingItemStyles_unstable: function() {
|
|
16
|
+
return useRatingItemStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const ratingItemClassNames = {
|
|
21
|
+
root: 'fui-RatingItem',
|
|
22
|
+
selectedIcon: 'fui-RatingItem__selectedIcon',
|
|
23
|
+
unselectedIcon: 'fui-RatingItem__unselectedIcon',
|
|
24
|
+
halfValueInput: 'fui-RatingItem__halfValueInput',
|
|
25
|
+
fullValueInput: 'fui-RatingItem__fullValueInput'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the root slot
|
|
29
|
+
*/ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
30
|
+
root: {
|
|
31
|
+
qhf8xq: "f10pi13n",
|
|
32
|
+
Brovlpu: "ftqa4ok",
|
|
33
|
+
B486eqv: "f2hkw1w",
|
|
34
|
+
Bssx7fj: "f1b1k54r",
|
|
35
|
+
uh7if5: [
|
|
36
|
+
"f4ne723",
|
|
37
|
+
"fqqcjud"
|
|
38
|
+
],
|
|
39
|
+
clntm0: "fh7aioi",
|
|
40
|
+
Dlk2r6: [
|
|
41
|
+
"fqqcjud",
|
|
42
|
+
"f4ne723"
|
|
43
|
+
],
|
|
44
|
+
Bm3wd5j: "f1k55ka9",
|
|
45
|
+
Bbrhkcr: [
|
|
46
|
+
"fgclinu",
|
|
47
|
+
"f16pcs8n"
|
|
48
|
+
],
|
|
49
|
+
f1oku: "fycbxed",
|
|
50
|
+
aywvf2: [
|
|
51
|
+
"f16pcs8n",
|
|
52
|
+
"fgclinu"
|
|
53
|
+
],
|
|
54
|
+
B2j2mmj: "ffht0p2",
|
|
55
|
+
wigs8: "f1p0ul1q",
|
|
56
|
+
pbfy6t: "f1c901ms",
|
|
57
|
+
B0v4ure: "f1alokd7",
|
|
58
|
+
ghq09: "f78i1la",
|
|
59
|
+
B24cy0v: [
|
|
60
|
+
"f1kvsw7t",
|
|
61
|
+
"f1bw8brt"
|
|
62
|
+
],
|
|
63
|
+
Bwckmig: "f8k7e5g",
|
|
64
|
+
Bvwlmkc: [
|
|
65
|
+
"f1bw8brt",
|
|
66
|
+
"f1kvsw7t"
|
|
67
|
+
],
|
|
68
|
+
Bbgo44z: "f1pmxfrl",
|
|
69
|
+
Bil7v7r: [
|
|
70
|
+
"fszkfcr",
|
|
71
|
+
"f1ap5ily"
|
|
72
|
+
],
|
|
73
|
+
skfxo0: "f57dp0y",
|
|
74
|
+
jo1ztg: [
|
|
75
|
+
"f1ap5ily",
|
|
76
|
+
"fszkfcr"
|
|
77
|
+
],
|
|
78
|
+
Ba3ybja: [
|
|
79
|
+
"f11dm2qb",
|
|
80
|
+
"f136rfnd"
|
|
81
|
+
],
|
|
82
|
+
az1dzo: [
|
|
83
|
+
"f136rfnd",
|
|
84
|
+
"f11dm2qb"
|
|
85
|
+
],
|
|
86
|
+
vppk2z: [
|
|
87
|
+
"fdsq1qd",
|
|
88
|
+
"f1khssms"
|
|
89
|
+
],
|
|
90
|
+
B6352mv: [
|
|
91
|
+
"f1khssms",
|
|
92
|
+
"fdsq1qd"
|
|
93
|
+
],
|
|
94
|
+
nr063g: "fq4eyks",
|
|
95
|
+
Blmvk6g: [
|
|
96
|
+
"f1ya6x16",
|
|
97
|
+
"ftuszwa"
|
|
98
|
+
],
|
|
99
|
+
Bsiemmq: "f1e2iu44",
|
|
100
|
+
B98u21t: [
|
|
101
|
+
"ftuszwa",
|
|
102
|
+
"f1ya6x16"
|
|
103
|
+
],
|
|
104
|
+
B2pnrqr: "f1spmvte",
|
|
105
|
+
B29w5g4: [
|
|
106
|
+
"fgp7k2s",
|
|
107
|
+
"f13pb23"
|
|
108
|
+
],
|
|
109
|
+
Bhhzhcn: "f1ihbrwi",
|
|
110
|
+
Bec0n69: [
|
|
111
|
+
"f13pb23",
|
|
112
|
+
"fgp7k2s"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
small: {
|
|
116
|
+
Be2twd7: "f1ugzwwg",
|
|
117
|
+
a9b677: "frx94fk",
|
|
118
|
+
Bqenvij: "fvblgha"
|
|
119
|
+
},
|
|
120
|
+
medium: {
|
|
121
|
+
Be2twd7: "f4ybsrx",
|
|
122
|
+
a9b677: "fjw5fx7",
|
|
123
|
+
Bqenvij: "fd461yt"
|
|
124
|
+
},
|
|
125
|
+
large: {
|
|
126
|
+
Be2twd7: "fe5j1ua",
|
|
127
|
+
a9b677: "f64fuq3",
|
|
128
|
+
Bqenvij: "fjamq6b"
|
|
129
|
+
},
|
|
130
|
+
"extra-large": {
|
|
131
|
+
Be2twd7: "f24l1pt",
|
|
132
|
+
a9b677: "f1w9dchk",
|
|
133
|
+
Bqenvij: "fxldao9"
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
d: [
|
|
137
|
+
".f10pi13n{position:relative;}",
|
|
138
|
+
".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",
|
|
139
|
+
".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",
|
|
140
|
+
".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",
|
|
141
|
+
".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",
|
|
142
|
+
".ffht0p2[data-fui-focus-within]:focus-within::after{content:\"\";}",
|
|
143
|
+
".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",
|
|
144
|
+
".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",
|
|
145
|
+
".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",
|
|
146
|
+
".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",
|
|
147
|
+
".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",
|
|
148
|
+
".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",
|
|
149
|
+
".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",
|
|
150
|
+
".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}",
|
|
151
|
+
".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}",
|
|
152
|
+
".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}",
|
|
153
|
+
".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}",
|
|
154
|
+
".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}",
|
|
155
|
+
".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}",
|
|
156
|
+
".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}",
|
|
157
|
+
".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}",
|
|
158
|
+
".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",
|
|
159
|
+
".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",
|
|
160
|
+
".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",
|
|
161
|
+
".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",
|
|
162
|
+
".f1spmvte[data-fui-focus-within]:focus-within::after{top:calc(2px * -1);}",
|
|
163
|
+
".fgp7k2s[data-fui-focus-within]:focus-within::after{right:calc(2px * -1);}",
|
|
164
|
+
".f13pb23[data-fui-focus-within]:focus-within::after{left:calc(2px * -1);}",
|
|
165
|
+
".f1ihbrwi[data-fui-focus-within]:focus-within::after{bottom:calc(2px * -1);}",
|
|
166
|
+
".f1ugzwwg{font-size:12px;}",
|
|
167
|
+
".frx94fk{width:12px;}",
|
|
168
|
+
".fvblgha{height:12px;}",
|
|
169
|
+
".f4ybsrx{font-size:16px;}",
|
|
170
|
+
".fjw5fx7{width:16px;}",
|
|
171
|
+
".fd461yt{height:16px;}",
|
|
172
|
+
".fe5j1ua{font-size:20px;}",
|
|
173
|
+
".f64fuq3{width:20px;}",
|
|
174
|
+
".fjamq6b{height:20px;}",
|
|
175
|
+
".f24l1pt{font-size:28px;}",
|
|
176
|
+
".f1w9dchk{width:28px;}",
|
|
177
|
+
".fxldao9{height:28px;}"
|
|
178
|
+
],
|
|
179
|
+
f: [
|
|
180
|
+
".ftqa4ok:focus{outline-style:none;}"
|
|
181
|
+
],
|
|
182
|
+
i: [
|
|
183
|
+
".f2hkw1w:focus-visible{outline-style:none;}"
|
|
184
|
+
],
|
|
185
|
+
m: [
|
|
186
|
+
[
|
|
187
|
+
"@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",
|
|
188
|
+
{
|
|
189
|
+
m: "(forced-colors: active)"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
[
|
|
193
|
+
"@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",
|
|
194
|
+
{
|
|
195
|
+
m: "(forced-colors: active)"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
"@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",
|
|
200
|
+
{
|
|
201
|
+
m: "(forced-colors: active)"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
const useInputBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("r1qfsv1p", "rh8pzaz", [
|
|
207
|
+
".r1qfsv1p{position:absolute;left:0;top:0;right:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}",
|
|
208
|
+
".rh8pzaz{position:absolute;right:0;top:0;left:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}"
|
|
209
|
+
]);
|
|
210
|
+
const useInputStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
211
|
+
lowerHalf: {
|
|
212
|
+
j35jbq: [
|
|
213
|
+
"ffenbu1",
|
|
214
|
+
"f1ktbn1t"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
upperHalf: {
|
|
218
|
+
oyh7mz: [
|
|
219
|
+
"f1ktbn1t",
|
|
220
|
+
"ffenbu1"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
}, {
|
|
224
|
+
d: [
|
|
225
|
+
".ffenbu1{right:50%;}",
|
|
226
|
+
".f1ktbn1t{left:50%;}"
|
|
227
|
+
]
|
|
228
|
+
});
|
|
229
|
+
const useIndicatorBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("r1420l2m", "r1yt29v5", [
|
|
230
|
+
".r1420l2m{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;left:0;right:0;top:0;bottom:0;}",
|
|
231
|
+
".r1yt29v5{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;right:0;left:0;top:0;bottom:0;}"
|
|
232
|
+
]);
|
|
233
|
+
const useIndicatorStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
234
|
+
lowerHalf: {
|
|
235
|
+
j35jbq: [
|
|
236
|
+
"ffenbu1",
|
|
237
|
+
"f1ktbn1t"
|
|
238
|
+
],
|
|
239
|
+
Csf7o1: "f1r2mfmy",
|
|
240
|
+
Bm69ki9: "f1t868b2",
|
|
241
|
+
Bchtypk: "fq3i0c1"
|
|
242
|
+
},
|
|
243
|
+
upperHalf: {
|
|
244
|
+
oyh7mz: [
|
|
245
|
+
"f1ktbn1t",
|
|
246
|
+
"ffenbu1"
|
|
247
|
+
],
|
|
248
|
+
Frg6f3: [
|
|
249
|
+
"fbm7ezh",
|
|
250
|
+
"f3ev47i"
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
brand: {
|
|
254
|
+
sj55zd: "f16muhyy"
|
|
255
|
+
},
|
|
256
|
+
marigold: {
|
|
257
|
+
sj55zd: "f1whvut0"
|
|
258
|
+
},
|
|
259
|
+
filled: {
|
|
260
|
+
sj55zd: "f1qaymga",
|
|
261
|
+
ojy3ng: "f13qq9og",
|
|
262
|
+
Bbusuzp: "f1cg6951",
|
|
263
|
+
B6jmk37: "f1am6ztc"
|
|
264
|
+
},
|
|
265
|
+
brandFilled: {
|
|
266
|
+
sj55zd: "f1kdv6iu"
|
|
267
|
+
},
|
|
268
|
+
marigoldFilled: {
|
|
269
|
+
sj55zd: "f1ymbmfq"
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
d: [
|
|
273
|
+
".ffenbu1{right:50%;}",
|
|
274
|
+
".f1ktbn1t{left:50%;}",
|
|
275
|
+
".f1r2mfmy>svg{flex-grow:0;}",
|
|
276
|
+
".f1t868b2>svg{flex-shrink:0;}",
|
|
277
|
+
".fq3i0c1>svg{flex-basis:auto;}",
|
|
278
|
+
".fbm7ezh{margin-left:-50%;}",
|
|
279
|
+
".f3ev47i{margin-right:-50%;}",
|
|
280
|
+
".f16muhyy{color:var(--colorBrandForeground1);}",
|
|
281
|
+
".f1whvut0{color:var(--colorPaletteMarigoldBorderActive);}",
|
|
282
|
+
".f1qaymga{color:var(--colorNeutralBackground6);}",
|
|
283
|
+
".f13qq9og{stroke:var(--colorTransparentStroke);}",
|
|
284
|
+
".f1kdv6iu{color:var(--colorBrandBackground2);}",
|
|
285
|
+
".f1ymbmfq{color:var(--colorPaletteMarigoldBackground2);}"
|
|
286
|
+
],
|
|
287
|
+
m: [
|
|
288
|
+
[
|
|
289
|
+
"@media (forced-colors: active){.f1cg6951{color:Canvas;}}",
|
|
290
|
+
{
|
|
291
|
+
m: "(forced-colors: active)"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
[
|
|
295
|
+
"@media (forced-colors: active){.f1am6ztc{stroke:CanvasText;}}",
|
|
296
|
+
{
|
|
297
|
+
m: "(forced-colors: active)"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
]
|
|
301
|
+
});
|
|
302
|
+
const useRatingItemStyles_unstable = (state)=>{
|
|
303
|
+
const { color, size, iconFillWidth, appearance } = state;
|
|
304
|
+
const styles = useStyles();
|
|
305
|
+
const inputBaseClassName = useInputBaseClassName();
|
|
306
|
+
const inputStyles = useInputStyles();
|
|
307
|
+
const indicatorBaseClassName = useIndicatorBaseClassName();
|
|
308
|
+
const indicatorStyles = useIndicatorStyles();
|
|
309
|
+
state.root.className = (0, _react.mergeClasses)(ratingItemClassNames.root, styles.root, styles[size], state.root.className);
|
|
310
|
+
if (state.halfValueInput) {
|
|
311
|
+
state.halfValueInput.className = (0, _react.mergeClasses)(ratingItemClassNames.halfValueInput, inputBaseClassName, inputStyles.lowerHalf, state.halfValueInput.className);
|
|
312
|
+
}
|
|
313
|
+
if (state.fullValueInput) {
|
|
314
|
+
state.fullValueInput.className = (0, _react.mergeClasses)(ratingItemClassNames.fullValueInput, inputBaseClassName, state.halfValueInput && inputStyles.upperHalf, state.fullValueInput.className);
|
|
315
|
+
}
|
|
316
|
+
if (state.unselectedIcon) {
|
|
317
|
+
state.unselectedIcon.className = (0, _react.mergeClasses)(ratingItemClassNames.unselectedIcon, indicatorBaseClassName, appearance === 'filled' && indicatorStyles.filled, color === 'brand' && (appearance === 'filled' ? indicatorStyles.brandFilled : indicatorStyles.brand), color === 'marigold' && (appearance === 'filled' ? indicatorStyles.marigoldFilled : indicatorStyles.marigold), iconFillWidth === 0.5 && indicatorStyles.upperHalf, state.unselectedIcon.className);
|
|
318
|
+
}
|
|
319
|
+
if (state.selectedIcon) {
|
|
320
|
+
state.selectedIcon.className = (0, _react.mergeClasses)(ratingItemClassNames.selectedIcon, indicatorBaseClassName, color === 'brand' && indicatorStyles.brand, color === 'marigold' && indicatorStyles.marigold, iconFillWidth === 0.5 && indicatorStyles.lowerHalf, state.selectedIcon.className);
|
|
321
|
+
}
|
|
322
|
+
return state;
|
|
323
|
+
}; //# sourceMappingURL=useRatingItemStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useRatingItemStyles.styles.js"],"sourcesContent":["import { __resetStyles, __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nexport const ratingItemClassNames = {\n root: 'fui-RatingItem',\n selectedIcon: 'fui-RatingItem__selectedIcon',\n unselectedIcon: 'fui-RatingItem__unselectedIcon',\n halfValueInput: 'fui-RatingItem__halfValueInput',\n fullValueInput: 'fui-RatingItem__fullValueInput'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n qhf8xq: \"f10pi13n\",\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n Bssx7fj: \"f1b1k54r\",\n uh7if5: [\"f4ne723\", \"fqqcjud\"],\n clntm0: \"fh7aioi\",\n Dlk2r6: [\"fqqcjud\", \"f4ne723\"],\n Bm3wd5j: \"f1k55ka9\",\n Bbrhkcr: [\"fgclinu\", \"f16pcs8n\"],\n f1oku: \"fycbxed\",\n aywvf2: [\"f16pcs8n\", \"fgclinu\"],\n B2j2mmj: \"ffht0p2\",\n wigs8: \"f1p0ul1q\",\n pbfy6t: \"f1c901ms\",\n B0v4ure: \"f1alokd7\",\n ghq09: \"f78i1la\",\n B24cy0v: [\"f1kvsw7t\", \"f1bw8brt\"],\n Bwckmig: \"f8k7e5g\",\n Bvwlmkc: [\"f1bw8brt\", \"f1kvsw7t\"],\n Bbgo44z: \"f1pmxfrl\",\n Bil7v7r: [\"fszkfcr\", \"f1ap5ily\"],\n skfxo0: \"f57dp0y\",\n jo1ztg: [\"f1ap5ily\", \"fszkfcr\"],\n Ba3ybja: [\"f11dm2qb\", \"f136rfnd\"],\n az1dzo: [\"f136rfnd\", \"f11dm2qb\"],\n vppk2z: [\"fdsq1qd\", \"f1khssms\"],\n B6352mv: [\"f1khssms\", \"fdsq1qd\"],\n nr063g: \"fq4eyks\",\n Blmvk6g: [\"f1ya6x16\", \"ftuszwa\"],\n Bsiemmq: \"f1e2iu44\",\n B98u21t: [\"ftuszwa\", \"f1ya6x16\"],\n B2pnrqr: \"f1spmvte\",\n B29w5g4: [\"fgp7k2s\", \"f13pb23\"],\n Bhhzhcn: \"f1ihbrwi\",\n Bec0n69: [\"f13pb23\", \"fgp7k2s\"]\n },\n small: {\n Be2twd7: \"f1ugzwwg\",\n a9b677: \"frx94fk\",\n Bqenvij: \"fvblgha\"\n },\n medium: {\n Be2twd7: \"f4ybsrx\",\n a9b677: \"fjw5fx7\",\n Bqenvij: \"fd461yt\"\n },\n large: {\n Be2twd7: \"fe5j1ua\",\n a9b677: \"f64fuq3\",\n Bqenvij: \"fjamq6b\"\n },\n \"extra-large\": {\n Be2twd7: \"f24l1pt\",\n a9b677: \"f1w9dchk\",\n Bqenvij: \"fxldao9\"\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}\", \".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}\", \".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}\", \".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}\", \".ffht0p2[data-fui-focus-within]:focus-within::after{content:\\\"\\\";}\", \".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}\", \".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}\", \".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}\", \".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}\", \".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}\", \".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}\", \".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}\", \".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}\", \".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}\", \".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}\", \".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}\", \".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}\", \".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}\", \".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}\", \".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}\", \".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}\", \".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}\", \".f1spmvte[data-fui-focus-within]:focus-within::after{top:calc(2px * -1);}\", \".fgp7k2s[data-fui-focus-within]:focus-within::after{right:calc(2px * -1);}\", \".f13pb23[data-fui-focus-within]:focus-within::after{left:calc(2px * -1);}\", \".f1ihbrwi[data-fui-focus-within]:focus-within::after{bottom:calc(2px * -1);}\", \".f1ugzwwg{font-size:12px;}\", \".frx94fk{width:12px;}\", \".fvblgha{height:12px;}\", \".f4ybsrx{font-size:16px;}\", \".fjw5fx7{width:16px;}\", \".fd461yt{height:16px;}\", \".fe5j1ua{font-size:20px;}\", \".f64fuq3{width:20px;}\", \".fjamq6b{height:20px;}\", \".f24l1pt{font-size:28px;}\", \".f1w9dchk{width:28px;}\", \".fxldao9{height:28px;}\"],\n f: [\".ftqa4ok:focus{outline-style:none;}\"],\n i: [\".f2hkw1w:focus-visible{outline-style:none;}\"],\n m: [[\"@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useInputBaseClassName = /*#__PURE__*/__resetStyles(\"r1qfsv1p\", \"rh8pzaz\", [\".r1qfsv1p{position:absolute;left:0;top:0;right:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}\", \".rh8pzaz{position:absolute;right:0;top:0;left:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}\"]);\nconst useInputStyles = /*#__PURE__*/__styles({\n lowerHalf: {\n j35jbq: [\"ffenbu1\", \"f1ktbn1t\"]\n },\n upperHalf: {\n oyh7mz: [\"f1ktbn1t\", \"ffenbu1\"]\n }\n}, {\n d: [\".ffenbu1{right:50%;}\", \".f1ktbn1t{left:50%;}\"]\n});\nconst useIndicatorBaseClassName = /*#__PURE__*/__resetStyles(\"r1420l2m\", \"r1yt29v5\", [\".r1420l2m{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;left:0;right:0;top:0;bottom:0;}\", \".r1yt29v5{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;right:0;left:0;top:0;bottom:0;}\"]);\nconst useIndicatorStyles = /*#__PURE__*/__styles({\n lowerHalf: {\n j35jbq: [\"ffenbu1\", \"f1ktbn1t\"],\n Csf7o1: \"f1r2mfmy\",\n Bm69ki9: \"f1t868b2\",\n Bchtypk: \"fq3i0c1\"\n },\n upperHalf: {\n oyh7mz: [\"f1ktbn1t\", \"ffenbu1\"],\n Frg6f3: [\"fbm7ezh\", \"f3ev47i\"]\n },\n brand: {\n sj55zd: \"f16muhyy\"\n },\n marigold: {\n sj55zd: \"f1whvut0\"\n },\n filled: {\n sj55zd: \"f1qaymga\",\n ojy3ng: \"f13qq9og\",\n Bbusuzp: \"f1cg6951\",\n B6jmk37: \"f1am6ztc\"\n },\n brandFilled: {\n sj55zd: \"f1kdv6iu\"\n },\n marigoldFilled: {\n sj55zd: \"f1ymbmfq\"\n }\n}, {\n d: [\".ffenbu1{right:50%;}\", \".f1ktbn1t{left:50%;}\", \".f1r2mfmy>svg{flex-grow:0;}\", \".f1t868b2>svg{flex-shrink:0;}\", \".fq3i0c1>svg{flex-basis:auto;}\", \".fbm7ezh{margin-left:-50%;}\", \".f3ev47i{margin-right:-50%;}\", \".f16muhyy{color:var(--colorBrandForeground1);}\", \".f1whvut0{color:var(--colorPaletteMarigoldBorderActive);}\", \".f1qaymga{color:var(--colorNeutralBackground6);}\", \".f13qq9og{stroke:var(--colorTransparentStroke);}\", \".f1kdv6iu{color:var(--colorBrandBackground2);}\", \".f1ymbmfq{color:var(--colorPaletteMarigoldBackground2);}\"],\n m: [[\"@media (forced-colors: active){.f1cg6951{color:Canvas;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1am6ztc{stroke:CanvasText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\n/**\n * Apply styling to the RatingItem slots based on the state\n */\nexport const useRatingItemStyles_unstable = state => {\n const {\n color,\n size,\n iconFillWidth,\n appearance\n } = state;\n const styles = useStyles();\n const inputBaseClassName = useInputBaseClassName();\n const inputStyles = useInputStyles();\n const indicatorBaseClassName = useIndicatorBaseClassName();\n const indicatorStyles = useIndicatorStyles();\n state.root.className = mergeClasses(ratingItemClassNames.root, styles.root, styles[size], state.root.className);\n if (state.halfValueInput) {\n state.halfValueInput.className = mergeClasses(ratingItemClassNames.halfValueInput, inputBaseClassName, inputStyles.lowerHalf, state.halfValueInput.className);\n }\n if (state.fullValueInput) {\n state.fullValueInput.className = mergeClasses(ratingItemClassNames.fullValueInput, inputBaseClassName, state.halfValueInput && inputStyles.upperHalf, state.fullValueInput.className);\n }\n if (state.unselectedIcon) {\n state.unselectedIcon.className = mergeClasses(ratingItemClassNames.unselectedIcon, indicatorBaseClassName, appearance === 'filled' && indicatorStyles.filled, color === 'brand' && (appearance === 'filled' ? indicatorStyles.brandFilled : indicatorStyles.brand), color === 'marigold' && (appearance === 'filled' ? indicatorStyles.marigoldFilled : indicatorStyles.marigold), iconFillWidth === 0.5 && indicatorStyles.upperHalf, state.unselectedIcon.className);\n }\n if (state.selectedIcon) {\n state.selectedIcon.className = mergeClasses(ratingItemClassNames.selectedIcon, indicatorBaseClassName, color === 'brand' && indicatorStyles.brand, color === 'marigold' && indicatorStyles.marigold, iconFillWidth === 0.5 && indicatorStyles.lowerHalf, state.selectedIcon.className);\n }\n return state;\n};\n//# sourceMappingURL=useRatingItemStyles.styles.js.map"],"names":["ratingItemClassNames","useRatingItemStyles_unstable","root","selectedIcon","unselectedIcon","halfValueInput","fullValueInput","useStyles","__styles","qhf8xq","Brovlpu","B486eqv","Bssx7fj","uh7if5","clntm0","Dlk2r6","Bm3wd5j","Bbrhkcr","f1oku","aywvf2","B2j2mmj","wigs8","pbfy6t","B0v4ure","ghq09","B24cy0v","Bwckmig","Bvwlmkc","Bbgo44z","Bil7v7r","skfxo0","jo1ztg","Ba3ybja","az1dzo","vppk2z","B6352mv","nr063g","Blmvk6g","Bsiemmq","B98u21t","B2pnrqr","B29w5g4","Bhhzhcn","Bec0n69","small","Be2twd7","a9b677","Bqenvij","medium","large","d","f","i","m","useInputBaseClassName","__resetStyles","useInputStyles","lowerHalf","j35jbq","upperHalf","oyh7mz","useIndicatorBaseClassName","useIndicatorStyles","Csf7o1","Bm69ki9","Bchtypk","Frg6f3","brand","sj55zd","marigold","filled","ojy3ng","Bbusuzp","B6jmk37","brandFilled","marigoldFilled","state","color","size","iconFillWidth","appearance","styles","inputBaseClassName","inputStyles","indicatorBaseClassName","indicatorStyles","className","mergeClasses"],"mappings":";;;;;;;;;;;IAGaA,oBAAoB;eAApBA;;IAoIAC,4BAA4B;eAA5BA;;;uBAvIqD;AAG3D,MAAMD,uBAAuB;IAClCE,MAAM;IACNC,cAAc;IACdC,gBAAgB;IAChBC,gBAAgB;IAChBC,gBAAgB;AAClB;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCN,MAAM;QACJO,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,SAAS;QACTC,SAAS;YAAC;YAAW;SAAW;QAChCC,OAAO;QACPC,QAAQ;YAAC;YAAY;SAAU;QAC/BC,SAAS;QACTC,OAAO;QACPC,QAAQ;QACRC,SAAS;QACTC,OAAO;QACPC,SAAS;YAAC;YAAY;SAAW;QACjCC,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MAAMzE,YAAY,CAACmF,SAAS;IACvR;IACA,OAAOV;AACT,GACA,sDAAsD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
RatingItemContext: function() {
|
|
13
|
+
return RatingItemContext;
|
|
14
|
+
},
|
|
15
|
+
RatingItemProvider: function() {
|
|
16
|
+
return RatingItemProvider;
|
|
17
|
+
},
|
|
18
|
+
useRatingItemContextValue_unstable: function() {
|
|
19
|
+
return useRatingItemContextValue_unstable;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
23
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
24
|
+
const _reacticons = require("@fluentui/react-icons");
|
|
25
|
+
const RatingItemContext = /*#__PURE__*/ _react.createContext(undefined);
|
|
26
|
+
const ratingItemContextDefaultValue = {
|
|
27
|
+
color: 'neutral',
|
|
28
|
+
iconFilled: _reacticons.StarFilled,
|
|
29
|
+
iconOutline: _reacticons.StarRegular,
|
|
30
|
+
step: 1,
|
|
31
|
+
size: 'medium'
|
|
32
|
+
};
|
|
33
|
+
const RatingItemProvider = RatingItemContext.Provider;
|
|
34
|
+
const useRatingItemContextValue_unstable = ()=>_react.useContext(RatingItemContext) || ratingItemContextDefaultValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["RatingItemContext.js"],"sourcesContent":["import * as React from 'react';\nimport { StarFilled, StarRegular } from '@fluentui/react-icons';\n/**\n * RatingContext is provided by Rating, and is consumed by Rating to determine default values of some props.\n */ export const RatingItemContext = /*#__PURE__*/ React.createContext(undefined);\nconst ratingItemContextDefaultValue = {\n color: 'neutral',\n iconFilled: StarFilled,\n iconOutline: StarRegular,\n step: 1,\n size: 'medium'\n};\nexport const RatingItemProvider = RatingItemContext.Provider;\n/**\n * Get the value of the RatingContext.\n */ export const useRatingItemContextValue_unstable = ()=>React.useContext(RatingItemContext) || ratingItemContextDefaultValue;\n"],"names":["RatingItemContext","RatingItemProvider","useRatingItemContextValue_unstable","React","createContext","undefined","ratingItemContextDefaultValue","color","iconFilled","StarFilled","iconOutline","StarRegular","step","size","Provider","useContext"],"mappings":";;;;;;;;;;;IAIiBA,iBAAiB;eAAjBA;;IAQJC,kBAAkB;eAAlBA;;IAGIC,kCAAkC;eAAlCA;;;;iEAfM;4BACiB;AAG7B,MAAMF,oBAAoB,WAAW,GAAGG,OAAMC,aAAa,CAACC;AACvE,MAAMC,gCAAgC;IAClCC,OAAO;IACPC,YAAYC,sBAAU;IACtBC,aAAaC,uBAAW;IACxBC,MAAM;IACNC,MAAM;AACV;AACO,MAAMZ,qBAAqBD,kBAAkBc,QAAQ;AAGjD,MAAMZ,qCAAqC,IAAIC,OAAMY,UAAU,CAACf,sBAAsBM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './RatingItemContext';\n"],"names":[],"mappings":";;;;;uBAAc"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
Rating: function() {
|
|
13
|
+
return _Rating.Rating;
|
|
14
|
+
},
|
|
15
|
+
RatingDisplay: function() {
|
|
16
|
+
return _RatingDisplay.RatingDisplay;
|
|
17
|
+
},
|
|
18
|
+
RatingItem: function() {
|
|
19
|
+
return _RatingItem.RatingItem;
|
|
20
|
+
},
|
|
21
|
+
RatingItemProvider: function() {
|
|
22
|
+
return _index.RatingItemProvider;
|
|
23
|
+
},
|
|
24
|
+
ratingClassNames: function() {
|
|
25
|
+
return _Rating.ratingClassNames;
|
|
26
|
+
},
|
|
27
|
+
ratingDisplayClassNames: function() {
|
|
28
|
+
return _RatingDisplay.ratingDisplayClassNames;
|
|
29
|
+
},
|
|
30
|
+
ratingItemClassNames: function() {
|
|
31
|
+
return _RatingItem.ratingItemClassNames;
|
|
32
|
+
},
|
|
33
|
+
renderRatingDisplay_unstable: function() {
|
|
34
|
+
return _RatingDisplay.renderRatingDisplay_unstable;
|
|
35
|
+
},
|
|
36
|
+
renderRatingItem_unstable: function() {
|
|
37
|
+
return _RatingItem.renderRatingItem_unstable;
|
|
38
|
+
},
|
|
39
|
+
renderRating_unstable: function() {
|
|
40
|
+
return _Rating.renderRating_unstable;
|
|
41
|
+
},
|
|
42
|
+
useRatingContextValues: function() {
|
|
43
|
+
return _Rating.useRatingContextValues;
|
|
44
|
+
},
|
|
45
|
+
useRatingDisplayContextValues: function() {
|
|
46
|
+
return _RatingDisplay.useRatingDisplayContextValues;
|
|
47
|
+
},
|
|
48
|
+
useRatingDisplayStyles_unstable: function() {
|
|
49
|
+
return _RatingDisplay.useRatingDisplayStyles_unstable;
|
|
50
|
+
},
|
|
51
|
+
useRatingDisplay_unstable: function() {
|
|
52
|
+
return _RatingDisplay.useRatingDisplay_unstable;
|
|
53
|
+
},
|
|
54
|
+
useRatingItemContextValue_unstable: function() {
|
|
55
|
+
return _index.useRatingItemContextValue_unstable;
|
|
56
|
+
},
|
|
57
|
+
useRatingItemStyles_unstable: function() {
|
|
58
|
+
return _RatingItem.useRatingItemStyles_unstable;
|
|
59
|
+
},
|
|
60
|
+
useRatingItem_unstable: function() {
|
|
61
|
+
return _RatingItem.useRatingItem_unstable;
|
|
62
|
+
},
|
|
63
|
+
useRatingStyles_unstable: function() {
|
|
64
|
+
return _Rating.useRatingStyles_unstable;
|
|
65
|
+
},
|
|
66
|
+
useRating_unstable: function() {
|
|
67
|
+
return _Rating.useRating_unstable;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const _Rating = require("./Rating");
|
|
71
|
+
const _RatingItem = require("./RatingItem");
|
|
72
|
+
const _index = require("./contexts/index");
|
|
73
|
+
const _RatingDisplay = require("./RatingDisplay");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { Rating, ratingClassNames, renderRating_unstable, useRatingStyles_unstable, useRating_unstable, useRatingContextValues } from './Rating';\nexport { RatingItem, ratingItemClassNames, renderRatingItem_unstable, useRatingItemStyles_unstable, useRatingItem_unstable } from './RatingItem';\nexport { RatingItemProvider, useRatingItemContextValue_unstable } from './contexts/index';\nexport { RatingDisplay, ratingDisplayClassNames, renderRatingDisplay_unstable, useRatingDisplayStyles_unstable, useRatingDisplay_unstable, useRatingDisplayContextValues } from './RatingDisplay';\n"],"names":["Rating","RatingDisplay","RatingItem","RatingItemProvider","ratingClassNames","ratingDisplayClassNames","ratingItemClassNames","renderRatingDisplay_unstable","renderRatingItem_unstable","renderRating_unstable","useRatingContextValues","useRatingDisplayContextValues","useRatingDisplayStyles_unstable","useRatingDisplay_unstable","useRatingItemContextValue_unstable","useRatingItemStyles_unstable","useRatingItem_unstable","useRatingStyles_unstable","useRating_unstable"],"mappings":";;;;;;;;;;;IAASA,MAAM;eAANA,cAAM;;IAGNC,aAAa;eAAbA,4BAAa;;IAFbC,UAAU;eAAVA,sBAAU;;IACVC,kBAAkB;eAAlBA,yBAAkB;;IAFVC,gBAAgB;eAAhBA,wBAAgB;;IAGTC,uBAAuB;eAAvBA,sCAAuB;;IAF1BC,oBAAoB;eAApBA,gCAAoB;;IAEQC,4BAA4B;eAA5BA,2CAA4B;;IAFlCC,yBAAyB;eAAzBA,qCAAyB;;IADjCC,qBAAqB;eAArBA,6BAAqB;;IAAgDC,sBAAsB;eAAtBA,8BAAsB;;IAGaC,6BAA6B;eAA7BA,4CAA6B;;IAAzFC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAD5GC,kCAAkC;eAAlCA,yCAAkC;;IADOC,4BAA4B;eAA5BA,wCAA4B;;IAAEC,sBAAsB;eAAtBA,kCAAsB;;IADhEC,wBAAwB;eAAxBA,gCAAwB;;IAAEC,kBAAkB;eAAlBA,0BAAkB;;;wBAAgC;4BACJ;uBAC3D;+BACyG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui/react-rating",
|
|
3
|
+
"version": "0.0.0-nightly-20240318-0408.1",
|
|
4
|
+
"description": "Rating component for building web experiences",
|
|
5
|
+
"main": "lib-commonjs/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"typings": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/microsoft/fluentui"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "just-scripts build",
|
|
16
|
+
"clean": "just-scripts clean",
|
|
17
|
+
"generate-api": "just-scripts generate-api",
|
|
18
|
+
"lint": "just-scripts lint",
|
|
19
|
+
"start": "yarn storybook",
|
|
20
|
+
"storybook": "start-storybook",
|
|
21
|
+
"test": "jest --passWithNoTests",
|
|
22
|
+
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
|
|
23
|
+
"type-check": "tsc -b tsconfig.json"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@fluentui/eslint-plugin": "*",
|
|
27
|
+
"@fluentui/react-conformance": "0.0.0-nightly-20240318-0408.1",
|
|
28
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20240318-0408.1",
|
|
29
|
+
"@fluentui/scripts-api-extractor": "*",
|
|
30
|
+
"@fluentui/scripts-tasks": "*"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@fluentui/react-jsx-runtime": "0.0.0-nightly-20240318-0408.1",
|
|
34
|
+
"@fluentui/react-icons": "^2.0.224",
|
|
35
|
+
"@fluentui/react-theme": "0.0.0-nightly-20240318-0408.1",
|
|
36
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20240318-0408.1",
|
|
37
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20240318-0408.1",
|
|
38
|
+
"@griffel/react": "^1.5.14",
|
|
39
|
+
"@swc/helpers": "^0.5.1"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@types/react": ">=16.8.0 <19.0.0",
|
|
43
|
+
"@types/react-dom": ">=16.8.0 <19.0.0",
|
|
44
|
+
"react": ">=16.8.0 <19.0.0",
|
|
45
|
+
"react-dom": ">=16.8.0 <19.0.0"
|
|
46
|
+
},
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"types": "./dist/index.d.ts",
|
|
50
|
+
"node": "./lib-commonjs/index.js",
|
|
51
|
+
"import": "./lib/index.js",
|
|
52
|
+
"require": "./lib-commonjs/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"beachball": {},
|
|
57
|
+
"files": [
|
|
58
|
+
"*.md",
|
|
59
|
+
"dist/*.d.ts",
|
|
60
|
+
"lib",
|
|
61
|
+
"lib-commonjs"
|
|
62
|
+
]
|
|
63
|
+
}
|