@thecb/components 4.0.14 → 4.0.15-beta.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.cjs.js CHANGED
@@ -19917,9 +19917,7 @@ var ERRORS = {
19917
19917
  "71": "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
19918
19918
  "72": "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
19919
19919
  "73": "Please provide a valid CSS variable.\n\n",
19920
- "74": "CSS variable not found and no default was provided.\n\n",
19921
- "75": "important requires a valid style object, got a %s instead.\n\n",
19922
- "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
19920
+ "74": "CSS variable not found.\n"
19923
19921
  };
19924
19922
  /**
19925
19923
  * super basic version of sprintf
@@ -37697,7 +37695,9 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
37697
37695
  subtotal = _ref.subtotal,
37698
37696
  total = _ref.total,
37699
37697
  themeValues = _ref.themeValues;
37700
- return /*#__PURE__*/React__default.createElement(Stack, null, lineItemElems, /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Box, {
37698
+ return /*#__PURE__*/React__default.createElement(Stack, {
37699
+ childGap: "16px"
37700
+ }, lineItemElems, /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Box, {
37701
37701
  padding: "0.5rem 0"
37702
37702
  }, /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
37703
37703
  variant: themeValues.labeledAmountSubtotal,
@@ -37800,13 +37800,19 @@ var PaymentDetails = function PaymentDetails(_ref4) {
37800
37800
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
37801
37801
  key: fee.label
37802
37802
  }, /*#__PURE__*/React__default.createElement(Box, {
37803
- padding: "0.25rem 0"
37803
+ padding: "4px 0"
37804
37804
  }), /*#__PURE__*/React__default.createElement(LabeledAmount$1, _extends({
37805
37805
  key: fee.label,
37806
37806
  variant: themeValues.labeledAmountSubtotal
37807
37807
  }, fee)));
37808
37808
  });
37809
- var content = isCollapsible ? /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(PaymentDetailsContent, {
37809
+ var content = isCollapsible ? /*#__PURE__*/React__default.createElement(Stack, {
37810
+ childGap: "0"
37811
+ }, /*#__PURE__*/React__default.createElement(Box, {
37812
+ padding: "4.5px"
37813
+ }), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Box, {
37814
+ padding: "8px"
37815
+ }), /*#__PURE__*/React__default.createElement(PaymentDetailsContent, {
37810
37816
  lineItemElems: lineItemElems,
37811
37817
  feeElems: feeElems,
37812
37818
  subtotal: subtotal,
@@ -37829,7 +37835,11 @@ var PaymentDetails = function PaymentDetails(_ref4) {
37829
37835
  variant: "h5",
37830
37836
  weight: "700",
37831
37837
  as: "h1"
37832
- }, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
37838
+ }, titleText), /*#__PURE__*/React__default.createElement(Heading$1, {
37839
+ variant: "h5",
37840
+ weight: "700",
37841
+ as: "h1"
37842
+ }, displayCurrency(total)))) : /*#__PURE__*/React__default.createElement(Heading$1, {
37833
37843
  as: "h1",
37834
37844
  variant: "h3",
37835
37845
  weight: "700",
@@ -39355,7 +39365,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
39355
39365
  }, /*#__PURE__*/React__default.createElement(Sidebar, {
39356
39366
  width: sidebarTargetWidth,
39357
39367
  childGap: sidebarContentGap,
39358
- onRight: sidebarOnRight,
39368
+ sidebarOnRight: sidebarOnRight,
39359
39369
  contentMinWidth: mainContentMinWidth
39360
39370
  }, sidebarOnRight ? /*#__PURE__*/React__default.createElement(React.Fragment, null) : sidebarContent, mainContent, sidebarOnRight ? sidebarContent : /*#__PURE__*/React__default.createElement(React.Fragment, null))))), footer ? footer : /*#__PURE__*/React__default.createElement(Box, {
39361
39371
  padding: "0"
@@ -39417,7 +39427,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
39417
39427
  }, /*#__PURE__*/React__default.createElement(Sidebar, {
39418
39428
  width: sidebarTargetWidth,
39419
39429
  childGap: sidebarContentGap,
39420
- onRight: sidebarOnRight,
39430
+ sidebarOnRight: sidebarOnRight,
39421
39431
  contentMinWidth: mainContentMinWidth,
39422
39432
  key: "content-sidebar"
39423
39433
  }, sidebarOnRight ? /*#__PURE__*/React__default.createElement(React.Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.0.14",
3
+ "version": "4.0.15-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import Sidebar from "../../Sidebar";
4
4
 
5
5
  const SidebarExample = ({ width, onRight, childGap, children }) => (
6
- <Sidebar width={width} onRight={onRight} childGap={childGap}>
6
+ <Sidebar width={width} sidebarOnRight={onRight} childGap={childGap}>
7
7
  {children}
8
8
  </Sidebar>
9
9
  );
@@ -18,7 +18,7 @@ const PaymentDetailsContent = ({
18
18
  total,
19
19
  themeValues
20
20
  }) => (
21
- <Stack>
21
+ <Stack childGap="16px">
22
22
  {lineItemElems}
23
23
  <SolidDivider />
24
24
  <Box padding="0.5rem 0">
@@ -99,7 +99,7 @@ const PaymentDetails = ({
99
99
  ));
100
100
  const feeElems = fees.map(fee => (
101
101
  <Fragment key={fee.label}>
102
- <Box padding="0.25rem 0" />
102
+ <Box padding="4px 0" />
103
103
  <LabeledAmount
104
104
  key={fee.label}
105
105
  variant={themeValues.labeledAmountSubtotal}
@@ -108,8 +108,10 @@ const PaymentDetails = ({
108
108
  </Fragment>
109
109
  ));
110
110
  const content = isCollapsible ? (
111
- <Stack>
111
+ <Stack childGap="0">
112
+ <Box padding="4.5px" />
112
113
  <SolidDivider />
114
+ <Box padding="8px" />
113
115
  <PaymentDetailsContent
114
116
  {...{ lineItemElems, feeElems, subtotal, total, themeValues }}
115
117
  />
@@ -127,7 +129,9 @@ const PaymentDetails = ({
127
129
  <Heading variant="h5" weight="700" as="h1">
128
130
  {titleText}
129
131
  </Heading>
130
- {displayCurrency(total)}
132
+ <Heading variant="h5" weight="700" as="h1">
133
+ {displayCurrency(total)}
134
+ </Heading>
131
135
  </Cluster>
132
136
  </Box>
133
137
  ) : (
@@ -44,7 +44,7 @@ const SidebarSingleContent = ({
44
44
  <Sidebar
45
45
  width={sidebarTargetWidth}
46
46
  childGap={sidebarContentGap}
47
- onRight={sidebarOnRight}
47
+ sidebarOnRight={sidebarOnRight}
48
48
  contentMinWidth={mainContentMinWidth}
49
49
  >
50
50
  {sidebarOnRight ? <Fragment /> : sidebarContent}
@@ -46,7 +46,7 @@ const SidebarStackContent = ({
46
46
  <Sidebar
47
47
  width={sidebarTargetWidth}
48
48
  childGap={sidebarContentGap}
49
- onRight={sidebarOnRight}
49
+ sidebarOnRight={sidebarOnRight}
50
50
  contentMinWidth={mainContentMinWidth}
51
51
  key="content-sidebar"
52
52
  >
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 10.15.3