@thecb/components 12.0.6 → 12.0.7-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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This library contains CityBase React components for use across all current and future CB applications (NFE, RMD, POS).
4
4
 
5
+ > See [CONTRIBUTING.md](./CONTRIBUTING.md) for PR guidelines, dev tasks checklist, integration testing, and deployment/versioning.
6
+
5
7
  <!-- TOC -->
6
8
 
7
9
  - [Development setup](#development-setup)
@@ -140,32 +142,13 @@ Publishing to NPM is automated. When a PR is merged to master, the package will
140
142
  - Run `yarn add @thecb/components`.
141
143
  - To verify it installed successfully, make sure it is in the applicaton's `package.json` file.
142
144
 
143
- ### Local import and development
144
-
145
- If you are developing locally, you can add or make changes to components in the `@thecb/components` package and see those changes in the application running locally by linking the `@thecb/components` package to your application.
146
- Open the `@thecb/components`, and in the command line
147
-
148
- - Run `yarn build`
149
- - Run `yarn link`
150
-
151
- You should see a success message, and directions on how to link this package into an application. In the application you’d like the components, navigate to that application and in the command line
152
-
153
- - Run `yarn link @thecb/components`
154
-
155
- Now the package is linked locally and you can make changes to the `@thecb/components` and you’ll see the changes in the application running `@thecb/components`. To unlink the package, in the application running `@thecb/components` and in the command line
156
-
157
- - Run `yarn unlink @thecb/components`
158
- - Run `yarn install` ` --``force `
159
-
160
- Next go to the `@thecb/components` and in the command line
161
-
162
- - Run `yarn unlink`
163
-
164
- Now the package is unlinked, and you’re using the version on NPM.
145
+ ### Testing changes locally
165
146
 
166
- ### Yalc
147
+ See **[TESTING.md](./TESTING.md)** for a complete guide to testing your changes. In short, you have three options:
167
148
 
168
- If you encounter issues using `yarn link`, a nice alternative is `yalc`. See [https://github.com/wclr/yalc](https://github.com/wclr/yalc) for usage instructions.
149
+ 1. **Storybook** (`yarn storybook`) fastest, for self-contained component changes
150
+ 2. **Live Sync** (`yarn sync <path-to-project>`) — test inside a real running app without publishing
151
+ 3. **Beta Publish** (`yarn publish-beta`) — publish to npm for CI/CD, QA, or sharing with teammates
169
152
 
170
153
  ### Importing and using components
171
154
 
package/dist/index.cjs.js CHANGED
@@ -27029,7 +27029,7 @@ var NavFooter = function NavFooter(_ref) {
27029
27029
  background: backgroundColor,
27030
27030
  minHeight: footerMinHeight,
27031
27031
  minWidth: "100%",
27032
- extraStyles: isMobile ? "overflow: hidden;" : "height: ".concat(footerMinHeight, "; > * { height: 100%; };")
27032
+ extraStyles: isMobile ? "" : "min-height: ".concat(footerMinHeight, "; > * { min-height: 100%; };")
27033
27033
  }, rest), /*#__PURE__*/React__default.createElement(Center, {
27034
27034
  maxWidth: footerWidth || "76.5rem"
27035
27035
  }, /*#__PURE__*/React__default.createElement(Cover, {
@@ -47887,7 +47887,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47887
47887
  }
47888
47888
  }, /*#__PURE__*/React__default.createElement(Title$1, {
47889
47889
  weight: FONT_WEIGHT_REGULAR,
47890
- as: "h3",
47890
+ as: "p",
47891
47891
  extraStyles: "font-size: 1rem;"
47892
47892
  }, agencyDisplayName), (lineItems === null || lineItems === void 0 ? void 0 : lineItems.length) && /*#__PURE__*/React__default.createElement(Text$1, {
47893
47893
  variant: "pS",
@@ -47938,7 +47938,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47938
47938
  }, /*#__PURE__*/React__default.createElement(Title$1, {
47939
47939
  weight: FONT_WEIGHT_SEMIBOLD,
47940
47940
  as: "h2",
47941
- extraStyles: "font-size: 1.5rem; line-height: ".concat(isMobile ? "2.2857rem" : "2.25rem", ";"),
47941
+ extraStyles: "font-size: 1.375rem; line-height: ".concat(isMobile ? "2.2857rem" : "2.25rem", ";"),
47942
47942
  id: "payment-details-title"
47943
47943
  }, titleText), /*#__PURE__*/React__default.createElement(Title$1, {
47944
47944
  weight: FONT_WEIGHT_BOLD,
@@ -47948,7 +47948,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47948
47948
  as: "h2",
47949
47949
  weight: FONT_WEIGHT_SEMIBOLD,
47950
47950
  margin: "1rem 0 0 0",
47951
- extraStyles: "font-size: 1.5rem; line-height: ".concat(isMobile ? "2.2857rem" : "2.25rem", ";"),
47951
+ extraStyles: "font-size: 1.375rem; line-height: ".concat(isMobile ? "2.2857rem" : "2.25rem", ";"),
47952
47952
  id: "payment-details-title"
47953
47953
  }, titleText), agencySubheading);
47954
47954
  return isCollapsible ? /*#__PURE__*/React__default.createElement(Collapsible, {