frst-components 0.29.9 → 0.30.0
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/dist/index.js
CHANGED
|
@@ -9672,7 +9672,7 @@ const Raiting = styled__default["default"].p `
|
|
|
9672
9672
|
margin-left: 16.5px;
|
|
9673
9673
|
`;
|
|
9674
9674
|
|
|
9675
|
-
function Rating({ variant = 'primary', rating, isVisibleNumberRating, qtdStars, marginStars, handleRating, sizeStars, orientation, disabled, removeEvaluation }) {
|
|
9675
|
+
function Rating({ variant = 'primary', rating, isVisibleNumberRating, qtdStars, marginStars, handleRating, sizeStars, orientation, disabled, removeEvaluation, evaluationType }) {
|
|
9676
9676
|
const [hoverRaiting, setHoverRaiting] = React.useState(-1);
|
|
9677
9677
|
const renderStars = () => {
|
|
9678
9678
|
const groupStars = [];
|
|
@@ -9691,7 +9691,7 @@ function Rating({ variant = 'primary', rating, isVisibleNumberRating, qtdStars,
|
|
|
9691
9691
|
return false;
|
|
9692
9692
|
};
|
|
9693
9693
|
for (let i = 0; i < qtdStars; i++) {
|
|
9694
|
-
groupStars.push(jsxRuntime.jsx(StarRatingComponent, { variant: variant, isEmpty: rating <= 0, id: i + 1, active: getStatusActive(i), setOnHover: setHoverRaiting, handleClick: handleClick, sizeStars: sizeStars, marginStars: marginStars, disabled: disabled, removeEvaluation: removeEvaluation }, i));
|
|
9694
|
+
groupStars.push(jsxRuntime.jsx(StarRatingComponent, { variant: variant, isEmpty: rating <= 0, id: i + 1, active: getStatusActive(i), setOnHover: setHoverRaiting, handleClick: handleClick, sizeStars: sizeStars, marginStars: marginStars, disabled: disabled, removeEvaluation: () => removeEvaluation(evaluationType) }, i));
|
|
9695
9695
|
}
|
|
9696
9696
|
return groupStars;
|
|
9697
9697
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IRating } from './rating';
|
|
2
|
-
export default function Rating({ variant, rating, isVisibleNumberRating, qtdStars, marginStars, handleRating, sizeStars, orientation, disabled, removeEvaluation }: IRating): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Rating({ variant, rating, isVisibleNumberRating, qtdStars, marginStars, handleRating, sizeStars, orientation, disabled, removeEvaluation, evaluationType }: IRating): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/EBR/rating/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,OAAmB,EACnB,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/EBR/rating/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,OAAmB,EACnB,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACf,EAAE,OAAO,2CA6CT"}
|