@stella-source/stellasource-dsl 0.2.1 → 0.2.3
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/cjs/index.js +8 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/TableUnitsAndTotals/types.d.ts +2 -2
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/esm/index.esm.js +1 -2
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/TableUnitsAndTotals/types.d.ts +2 -2
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -21366,7 +21366,6 @@ function Table({ columns, data, isLoading, serverSide = false, onPageChange, onS
|
|
|
21366
21366
|
const resetTable = () => {
|
|
21367
21367
|
setColumnFilters([]);
|
|
21368
21368
|
setFilters({});
|
|
21369
|
-
setScrollState({ atLeft: true, atRight: false });
|
|
21370
21369
|
setSorting([]);
|
|
21371
21370
|
setPageIndex(1);
|
|
21372
21371
|
setPagination({
|
|
@@ -21513,12 +21512,12 @@ const Sync = ({ dataTestId, onClick, className, id, showTime = false, labelPosit
|
|
|
21513
21512
|
a$j.createElement(CustomLabel, { htmlFor: id, id: `${id}-label`, labelValue: showTime ? `Last Updated at ${time}` : "" })));
|
|
21514
21513
|
};
|
|
21515
21514
|
|
|
21516
|
-
|
|
21515
|
+
exports.QuoteVariants = void 0;
|
|
21517
21516
|
(function (QuoteVariants) {
|
|
21518
21517
|
QuoteVariants["TOTAL_PRICE"] = "total-price";
|
|
21519
21518
|
QuoteVariants["TOTAL_WEIGHT"] = "total-weight";
|
|
21520
|
-
})(QuoteVariants || (QuoteVariants = {}));
|
|
21521
|
-
|
|
21519
|
+
})(exports.QuoteVariants || (exports.QuoteVariants = {}));
|
|
21520
|
+
exports.QuoteCategory = void 0;
|
|
21522
21521
|
(function (QuoteCategory) {
|
|
21523
21522
|
QuoteCategory["ITEM"] = "/item";
|
|
21524
21523
|
QuoteCategory["HOUR"] = "/hr";
|
|
@@ -21526,11 +21525,11 @@ var QuoteCategory;
|
|
|
21526
21525
|
QuoteCategory["LBS"] = "lbs";
|
|
21527
21526
|
QuoteCategory["KG"] = "kg";
|
|
21528
21527
|
QuoteCategory["TON"] = "ton";
|
|
21529
|
-
})(QuoteCategory || (QuoteCategory = {}));
|
|
21530
|
-
|
|
21528
|
+
})(exports.QuoteCategory || (exports.QuoteCategory = {}));
|
|
21529
|
+
exports.TableUnitsAndTotalsLeftCategory = void 0;
|
|
21531
21530
|
(function (TableUnitsAndTotalsLeftCategory) {
|
|
21532
21531
|
TableUnitsAndTotalsLeftCategory["US_CURRENCY"] = "$";
|
|
21533
|
-
})(TableUnitsAndTotalsLeftCategory || (TableUnitsAndTotalsLeftCategory = {}));
|
|
21532
|
+
})(exports.TableUnitsAndTotalsLeftCategory || (exports.TableUnitsAndTotalsLeftCategory = {}));
|
|
21534
21533
|
|
|
21535
21534
|
const Container = styled.div `
|
|
21536
21535
|
display: flex;
|
|
@@ -21564,8 +21563,8 @@ const SubHeaderText = styled.span `
|
|
|
21564
21563
|
line-height: normal;
|
|
21565
21564
|
`;
|
|
21566
21565
|
|
|
21567
|
-
const TableUnitsAndTotals = ({ id, className, value, subValue, variant, leftCategory = TableUnitsAndTotalsLeftCategory.US_CURRENCY, rightCategory, }) => {
|
|
21568
|
-
const isWeight = variant === QuoteVariants.TOTAL_WEIGHT;
|
|
21566
|
+
const TableUnitsAndTotals = ({ id, className, value, subValue, variant, leftCategory = exports.TableUnitsAndTotalsLeftCategory.US_CURRENCY, rightCategory, }) => {
|
|
21567
|
+
const isWeight = variant === exports.QuoteVariants.TOTAL_WEIGHT;
|
|
21569
21568
|
const leftCategoryValue = isWeight ? "" : leftCategory;
|
|
21570
21569
|
const header = (leftCategoryValue ?? "") +
|
|
21571
21570
|
formatNumberWithDecimals(value, 2, false) +
|