@bloom-housing/ui-components 12.6.2 → 12.6.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.
@@ -7,10 +7,11 @@ export interface QuantityRow {
7
7
  export interface QuantityRowSectionProps {
8
8
  /** Any amount of number/text combinations, rendered in a list */
9
9
  quantityRows: QuantityRow[];
10
+ priority?: number;
10
11
  strings: {
11
12
  sectionTitle: string;
12
13
  description?: string | React.ReactNode;
13
14
  };
14
15
  }
15
- declare const QuantityRowSection: ({ quantityRows, strings }: QuantityRowSectionProps) => JSX.Element;
16
+ declare const QuantityRowSection: ({ quantityRows, strings, priority }: QuantityRowSectionProps) => JSX.Element;
16
17
  export { QuantityRowSection as default, QuantityRowSection };
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Heading } from "../../../text/Heading";
3
3
  var QuantityRowSection = function (_a) {
4
- var quantityRows = _a.quantityRows, strings = _a.strings;
4
+ var quantityRows = _a.quantityRows, strings = _a.strings, priority = _a.priority;
5
5
  var getRow = function (row) {
6
6
  if (row.amount === null)
7
7
  return null;
@@ -10,7 +10,7 @@ var QuantityRowSection = function (_a) {
10
10
  React.createElement("span", { className: "text-xs" }, row.text)));
11
11
  };
12
12
  return (React.createElement("section", { className: "aside-block is-tinted" },
13
- React.createElement(Heading, { priority: 4, styleType: "capsWeighted" }, strings.sectionTitle),
13
+ React.createElement(Heading, { priority: priority !== null && priority !== void 0 ? priority : 4, styleType: "capsWeighted" }, strings.sectionTitle),
14
14
  React.createElement("div", null,
15
15
  strings.description && (React.createElement("div", { className: "text-sm text-gray-800 pb-3" }, typeof strings.description === "string" ? (React.createElement("p", null, strings.description)) : (strings.description))),
16
16
  quantityRows.length && React.createElement("ul", null, quantityRows.map(function (row) { return getRow(row); })))));
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityRowSection.js","sourceRoot":"","sources":["../../../../../src/page_components/listing/listing_sidebar/QuantityRowSection.tsx"],"names":[],"mappings":"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CACE,CACX,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: ({ quantityRows, strings }: import("./QuantityRowSection").QuantityRowSectionProps) => JSX.Element;
3
+ component: ({ quantityRows, strings, priority }: import("./QuantityRowSection").QuantityRowSectionProps) => JSX.Element;
4
4
  };
5
5
  export default _default;
6
6
  export declare const OpenAndAllValuesSupplied: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "12.6.2",
3
+ "version": "12.6.3",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/ui-components",
@@ -10,13 +10,14 @@ export interface QuantityRow {
10
10
  export interface QuantityRowSectionProps {
11
11
  /** Any amount of number/text combinations, rendered in a list */
12
12
  quantityRows: QuantityRow[]
13
+ priority?: number
13
14
  strings: {
14
15
  sectionTitle: string
15
16
  description?: string | React.ReactNode
16
17
  }
17
18
  }
18
19
 
19
- const QuantityRowSection = ({ quantityRows, strings }: QuantityRowSectionProps) => {
20
+ const QuantityRowSection = ({ quantityRows, strings, priority }: QuantityRowSectionProps) => {
20
21
  const getRow = (row: QuantityRow) => {
21
22
  if (row.amount === null) return null
22
23
  return (
@@ -34,7 +35,7 @@ const QuantityRowSection = ({ quantityRows, strings }: QuantityRowSectionProps)
34
35
 
35
36
  return (
36
37
  <section className="aside-block is-tinted">
37
- <Heading priority={4} styleType={"capsWeighted"}>
38
+ <Heading priority={priority ?? 4} styleType={"capsWeighted"}>
38
39
  {strings.sectionTitle}
39
40
  </Heading>
40
41
  <div>