@bloom-housing/ui-components 10.0.3 → 10.0.5
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.
|
@@ -5,6 +5,7 @@ export interface StepHeaderProps {
|
|
|
5
5
|
stepPreposition: string;
|
|
6
6
|
stepLabeling: string[];
|
|
7
7
|
className?: string;
|
|
8
|
+
priority?: number;
|
|
8
9
|
}
|
|
9
|
-
declare const StepHeader: ({ currentStep, totalSteps, stepPreposition, stepLabeling, className, }: StepHeaderProps) => JSX.Element;
|
|
10
|
+
declare const StepHeader: ({ currentStep, totalSteps, stepPreposition, stepLabeling, className, priority, }: StepHeaderProps) => JSX.Element;
|
|
10
11
|
export { StepHeader as default, StepHeader };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "./StepHeader.scss";
|
|
3
3
|
var StepHeader = function (_a) {
|
|
4
|
-
var currentStep = _a.currentStep, totalSteps = _a.totalSteps, stepPreposition = _a.stepPreposition, stepLabeling = _a.stepLabeling, className = _a.className;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
React.createElement("
|
|
8
|
-
React.createElement("
|
|
4
|
+
var currentStep = _a.currentStep, totalSteps = _a.totalSteps, stepPreposition = _a.stepPreposition, stepLabeling = _a.stepLabeling, className = _a.className, priority = _a.priority;
|
|
5
|
+
var Tag = "h".concat(priority || 2);
|
|
6
|
+
return (React.createElement(Tag, { className: "step-header ".concat(className || "") },
|
|
7
|
+
React.createElement("span", { className: "step-header__circle-number" }, currentStep),
|
|
8
|
+
React.createElement("span", null, "".concat(stepPreposition, " ").concat(totalSteps)),
|
|
9
|
+
React.createElement("span", { className: "step-header__title" }, stepLabeling[Math.min(currentStep - 1, stepLabeling.length - 1)])));
|
|
9
10
|
};
|
|
10
11
|
export { StepHeader as default, StepHeader };
|
|
11
12
|
//# sourceMappingURL=StepHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepHeader.js","sourceRoot":"","sources":["../../../src/headers/StepHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"StepHeader.js","sourceRoot":"","sources":["../../../src/headers/StepHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,mBAAmB,CAAA;AAW1B,IAAM,UAAU,GAAG,UAAC,EAOF;QANhB,WAAW,iBAAA,EACX,UAAU,gBAAA,EACV,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,QAAQ,cAAA;IAER,IAAM,GAAG,GAAG,WAAI,QAAQ,IAAI,CAAC,CAAiC,CAAA;IAE9D,OAAO,CACL,oBAAC,GAAG,IAAC,SAAS,EAAE,sBAAe,SAAS,IAAI,EAAE,CAAE;QAC9C,8BAAM,SAAS,EAAC,4BAA4B,IAAE,WAAW,CAAQ;QACjE,kCAAO,UAAG,eAAe,cAAI,UAAU,CAAE,CAAQ;QACjD,8BAAM,SAAS,EAAC,oBAAoB,IACjC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,CAAC,EAAE,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAC5D,CACH,CACP,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloom-housing/ui-components",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
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",
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
--circle-color: var(--bloom-color-primary);
|
|
4
4
|
--circle-desktop-size: var(--bloom-s8);
|
|
5
5
|
--circle-mobile-size: var(--bloom-s6);
|
|
6
|
-
--font-desktop-size:
|
|
6
|
+
--font-desktop-size: 1.125rem;
|
|
7
7
|
--font-mobile-size: var(--bloom-font-size-base);
|
|
8
8
|
--circle-x-padding: var(--bloom-s0_5);
|
|
9
9
|
--title-spacing: var(--bloom-s1_5);
|
|
10
10
|
--label-font-weight: 600;
|
|
11
|
+
--font-family: var(--bloom-font-sans);
|
|
12
|
+
|
|
13
|
+
font-family: var(--font-family);
|
|
11
14
|
display: flex;
|
|
12
15
|
flex-wrap: wrap;
|
|
13
16
|
align-items: center;
|
|
@@ -7,6 +7,7 @@ export interface StepHeaderProps {
|
|
|
7
7
|
stepPreposition: string
|
|
8
8
|
stepLabeling: string[]
|
|
9
9
|
className?: string
|
|
10
|
+
priority?: number
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
const StepHeader = ({
|
|
@@ -15,15 +16,18 @@ const StepHeader = ({
|
|
|
15
16
|
stepPreposition,
|
|
16
17
|
stepLabeling,
|
|
17
18
|
className,
|
|
19
|
+
priority,
|
|
18
20
|
}: StepHeaderProps) => {
|
|
21
|
+
const Tag = `h${priority || 2}` as keyof JSX.IntrinsicElements
|
|
22
|
+
|
|
19
23
|
return (
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
+
<Tag className={`step-header ${className || ""}`}>
|
|
25
|
+
<span className="step-header__circle-number">{currentStep}</span>
|
|
26
|
+
<span>{`${stepPreposition} ${totalSteps}`}</span>
|
|
27
|
+
<span className="step-header__title">
|
|
24
28
|
{stepLabeling[Math.min(currentStep - 1, stepLabeling.length - 1)]}
|
|
25
|
-
</
|
|
26
|
-
</
|
|
29
|
+
</span>
|
|
30
|
+
</Tag>
|
|
27
31
|
)
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
.footer-sock {
|
|
2
|
-
|
|
2
|
+
--background-color: var(--bloom-color-gray-900);
|
|
3
|
+
--copyright-text-color: var(--bloom-color-gray-500);
|
|
4
|
+
|
|
5
|
+
background-color: var(--background-color);
|
|
3
6
|
@apply py-8;
|
|
4
7
|
@apply px-2;
|
|
5
8
|
|
|
@@ -29,9 +32,11 @@
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
.footer-copyright {
|
|
35
|
+
color: var(--copyright-text-color);
|
|
32
36
|
width: auto;
|
|
33
37
|
flex-shrink: 0;
|
|
34
38
|
@screen lg {
|
|
39
|
+
@apply w-full;
|
|
35
40
|
@apply text-left;
|
|
36
41
|
}
|
|
37
42
|
}
|