Socket
Socket
Sign inDemoInstall

@faststore/components

Package Overview
Dependencies
5
Maintainers
0
Versions
181
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.74 to 3.0.75

8

dist/cjs/molecules/OrderSummary/OrderSummary.d.ts

@@ -33,4 +33,12 @@ import React from 'react';

totalValue?: string;
/**
* Enables to include taxes status.
*/
includeTaxes?: boolean;
/**
* Label to determine if the price is with taxes included.
*/
includeTaxesLabel?: string;
}
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
export default OrderSummary;

6

dist/cjs/molecules/OrderSummary/OrderSummary.js

@@ -6,3 +6,3 @@ "use strict";

const __1 = require("../../");
const OrderSummary = (0, react_1.forwardRef)(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, ...otherProps }, ref) {
const OrderSummary = (0, react_1.forwardRef)(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, includeTaxes = false, includeTaxesLabel = "Tax included", ...otherProps }, ref) {
return (react_1.default.createElement(__1.List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },

@@ -17,5 +17,7 @@ subtotalValue ? (react_1.default.createElement("li", { "data-fs-order-summary-subtotal": true },

react_1.default.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
react_1.default.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
react_1.default.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue)),
includeTaxes && (react_1.default.createElement("li", { "data-fs-order-summary-taxes-label": true },
react_1.default.createElement(__1.Label, null, includeTaxesLabel)))));
});
exports.default = OrderSummary;
//# sourceMappingURL=OrderSummary.js.map

@@ -46,4 +46,12 @@ import type { HTMLAttributes } from 'react';

onButtonClick?: () => void;
/**
* Enables to include taxes status.
*/
includeTaxes?: boolean;
/**
* Label to determine if the price is with taxes included.
*/
includeTaxesLabel?: string;
}
declare const ProductCardContent: React.ForwardRefExoticComponent<ProductCardContentProps & React.RefAttributes<HTMLElement>>;
export default ProductCardContent;

@@ -6,3 +6,3 @@ "use strict";

const __1 = require("../../");
const ProductCardContent = (0, react_1.forwardRef)(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, ...otherProps }, ref) {
const ProductCardContent = (0, react_1.forwardRef)(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, includeTaxes = false, includeTaxesLabel = "Tax included", ...otherProps }, ref) {
const listingPrice = price?.listPrice ? price.listPrice : 0;

@@ -16,2 +16,3 @@ const sellingPrice = price?.value ? price.value : 0;

!outOfStock && (react_1.default.createElement(__1.ProductPrice, { "data-fs-product-card-prices": true, value: sellingPrice, listPrice: listingPrice, formatter: price?.formatter })),
includeTaxes && (react_1.default.createElement(__1.Label, { "data-fs-product-card-taxes-label": true }, includeTaxesLabel)),
ratingValue && (react_1.default.createElement(__1.Rating, { value: ratingValue, icon: react_1.default.createElement(__1.Icon, { name: "Star" }) }))),

@@ -18,0 +19,0 @@ showDiscountBadge && !outOfStock && (react_1.default.createElement(__1.DiscountBadge, { listPrice: listingPrice, spotPrice: sellingPrice })),

@@ -33,4 +33,12 @@ import React from 'react';

totalValue?: string;
/**
* Enables to include taxes status.
*/
includeTaxes?: boolean;
/**
* Label to determine if the price is with taxes included.
*/
includeTaxesLabel?: string;
}
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
export default OrderSummary;
import React, { forwardRef } from 'react';
import { List } from '../../';
const OrderSummary = forwardRef(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, ...otherProps }, ref) {
import { Label, List } from '../../';
const OrderSummary = forwardRef(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, includeTaxes = false, includeTaxesLabel = "Tax included", ...otherProps }, ref) {
return (React.createElement(List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },

@@ -13,5 +13,7 @@ subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },

React.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue)),
includeTaxes && (React.createElement("li", { "data-fs-order-summary-taxes-label": true },
React.createElement(Label, null, includeTaxesLabel)))));
});
export default OrderSummary;
//# sourceMappingURL=OrderSummary.js.map

@@ -46,4 +46,12 @@ import type { HTMLAttributes } from 'react';

onButtonClick?: () => void;
/**
* Enables to include taxes status.
*/
includeTaxes?: boolean;
/**
* Label to determine if the price is with taxes included.
*/
includeTaxesLabel?: string;
}
declare const ProductCardContent: React.ForwardRefExoticComponent<ProductCardContentProps & React.RefAttributes<HTMLElement>>;
export default ProductCardContent;
import React, { forwardRef } from 'react';
import { Badge, Button, DiscountBadge, Icon, Link, ProductPrice, Rating, } from '../../';
const ProductCardContent = forwardRef(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, ...otherProps }, ref) {
import { Badge, Button, DiscountBadge, Icon, Label, Link, ProductPrice, Rating, } from '../../';
const ProductCardContent = forwardRef(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, includeTaxes = false, includeTaxesLabel = "Tax included", ...otherProps }, ref) {
const listingPrice = price?.listPrice ? price.listPrice : 0;

@@ -12,2 +12,3 @@ const sellingPrice = price?.value ? price.value : 0;

!outOfStock && (React.createElement(ProductPrice, { "data-fs-product-card-prices": true, value: sellingPrice, listPrice: listingPrice, formatter: price?.formatter })),
includeTaxes && (React.createElement(Label, { "data-fs-product-card-taxes-label": true }, includeTaxesLabel)),
ratingValue && (React.createElement(Rating, { value: ratingValue, icon: React.createElement(Icon, { name: "Star" }) }))),

@@ -14,0 +15,0 @@ showDiscountBadge && !outOfStock && (React.createElement(DiscountBadge, { listPrice: listingPrice, spotPrice: sellingPrice })),

{
"name": "@faststore/components",
"version": "3.0.74",
"version": "3.0.75",
"main": "dist/cjs/index.js",

@@ -52,3 +52,3 @@ "module": "dist/esm/index.js",

},
"gitHead": "a2eef14d88c8e73dbdd9d18e3879d64b6d51b56e"
"gitHead": "7f2d9f2ff3c78082aff7e7c75f920e007af5bccc"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc