@stella-source/stellasource-dsl 0.2.9 → 1.2.9
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 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/TableUnitsAndTotals/TableUnitsAndTotals.d.ts +2 -2
- package/dist/cjs/types/components/TableUnitsAndTotals/types.d.ts +12 -25
- package/dist/esm/index.esm.js +9 -28
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/TableUnitsAndTotals/TableUnitsAndTotals.d.ts +2 -2
- package/dist/esm/types/components/TableUnitsAndTotals/types.d.ts +12 -25
- package/dist/index.d.ts +15 -28
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -21609,25 +21609,6 @@ const Sync = ({ dataTestId, onClick, className, id, showTime = false, labelPosit
|
|
|
21609
21609
|
a$j.createElement(CustomLabel, { htmlFor: id, id: `${id}-label`, labelValue: showTime ? `Last Updated at ${time}` : "" })));
|
|
21610
21610
|
};
|
|
21611
21611
|
|
|
21612
|
-
exports.QuoteVariants = void 0;
|
|
21613
|
-
(function (QuoteVariants) {
|
|
21614
|
-
QuoteVariants["TOTAL_PRICE"] = "total-price";
|
|
21615
|
-
QuoteVariants["TOTAL_WEIGHT"] = "total-weight";
|
|
21616
|
-
})(exports.QuoteVariants || (exports.QuoteVariants = {}));
|
|
21617
|
-
exports.QuoteCategory = void 0;
|
|
21618
|
-
(function (QuoteCategory) {
|
|
21619
|
-
QuoteCategory["ITEM"] = "/item";
|
|
21620
|
-
QuoteCategory["HOUR"] = "/hr";
|
|
21621
|
-
QuoteCategory["CWT"] = "CWT";
|
|
21622
|
-
QuoteCategory["LBS"] = "lbs";
|
|
21623
|
-
QuoteCategory["KG"] = "kg";
|
|
21624
|
-
QuoteCategory["TON"] = "ton";
|
|
21625
|
-
})(exports.QuoteCategory || (exports.QuoteCategory = {}));
|
|
21626
|
-
exports.TableUnitsAndTotalsLeftCategory = void 0;
|
|
21627
|
-
(function (TableUnitsAndTotalsLeftCategory) {
|
|
21628
|
-
TableUnitsAndTotalsLeftCategory["US_CURRENCY"] = "$";
|
|
21629
|
-
})(exports.TableUnitsAndTotalsLeftCategory || (exports.TableUnitsAndTotalsLeftCategory = {}));
|
|
21630
|
-
|
|
21631
21612
|
const Container = styled.div `
|
|
21632
21613
|
display: flex;
|
|
21633
21614
|
justify-content: space-between;
|
|
@@ -21660,17 +21641,17 @@ const SubHeaderText = styled.span `
|
|
|
21660
21641
|
line-height: normal;
|
|
21661
21642
|
`;
|
|
21662
21643
|
|
|
21663
|
-
const TableUnitsAndTotals = ({ id, className, value, subValue,
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21644
|
+
const TableUnitsAndTotals = ({ id, className, value, subValue, valueRightCategory, valueLeftCategory, subValueRightCategory, subValueLeftCategory }) => {
|
|
21645
|
+
let header = valueLeftCategory ?? "";
|
|
21646
|
+
header += value;
|
|
21647
|
+
header += valueRightCategory ? ` ${valueRightCategory}` : "";
|
|
21648
|
+
let subHeader = subValueLeftCategory ?? "";
|
|
21649
|
+
subHeader += subValue;
|
|
21650
|
+
subHeader += subValueRightCategory ? ` ${subValueRightCategory}` : "";
|
|
21670
21651
|
return (a$j.createElement(Container, { id: id, className: className },
|
|
21671
21652
|
a$j.createElement(Column, { "$align": "right" },
|
|
21672
21653
|
a$j.createElement(HeaderText, null, header),
|
|
21673
|
-
|
|
21654
|
+
subValue && a$j.createElement(SubHeaderText, null, subHeader))));
|
|
21674
21655
|
};
|
|
21675
21656
|
|
|
21676
21657
|
exports.HelperText = HelperText;
|