@bloom-housing/ui-components 6.0.1-alpha.1 → 6.0.1-alpha.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.
- package/CHANGELOG.md +42 -0
- package/index.ts +3 -1
- package/package.json +5 -2
- package/src/actions/Button.scss +1 -1
- package/src/blocks/Card.docs.mdx +60 -0
- package/src/blocks/Card.scss +65 -0
- package/src/blocks/Card.tsx +74 -0
- package/src/blocks/ImageCard.scss +1 -1
- package/src/blocks/StandardCard.scss +1 -1
- package/src/blocks/StandardCard.tsx +1 -1
- package/src/documentation/Utilities.scss +30 -0
- package/src/documentation/Utilities.stories.mdx +25 -0
- package/src/documentation/Utilities.tsx +67 -0
- package/src/forms/DOBField.tsx +1 -1
- package/src/forms/Field.tsx +1 -1
- package/src/forms/FieldGroup.tsx +1 -1
- package/src/forms/MultiSelectField.scss +2 -2
- package/src/forms/PhoneField.tsx +1 -1
- package/src/global/forms.scss +3 -15
- package/src/global/mixins.scss +2 -2
- package/src/global/text.scss +81 -63
- package/src/global/tokens/colors.scss +1 -0
- package/src/headers/HeadingGroup.docs.mdx +25 -0
- package/src/headers/HeadingGroup.scss +23 -0
- package/src/headers/HeadingGroup.tsx +31 -0
- package/src/navigation/ProgressNav.scss +1 -1
- package/src/page_components/listing/ListingCard.tsx +14 -14
- package/src/page_components/listing/ListingMap.tsx +2 -2
- package/src/page_components/listing/listing_sidebar/Contact.tsx +3 -3
- package/src/page_components/listing/listing_sidebar/ExpandableSection.tsx +4 -1
- package/src/page_components/listing/listing_sidebar/GetApplication.tsx +6 -5
- package/src/page_components/listing/listing_sidebar/QuantityRowSection.tsx +4 -1
- package/src/page_components/listing/listing_sidebar/ReferralApplication.tsx +4 -1
- package/src/page_components/listing/listing_sidebar/SidebarBlock.tsx +3 -3
- package/src/page_components/listing/listing_sidebar/SubmitApplication.tsx +4 -4
- package/src/page_components/listing/listing_sidebar/events/EventSection.tsx +5 -2
- package/src/sections/InfoCardGrid.tsx +2 -2
- package/src/tables/CategoryTable.tsx +2 -2
- package/src/text/Heading.docs.mdx +18 -0
- package/src/text/Heading.tsx +32 -0
- package/src/text/Tag.scss +1 -1
- package/tailwind.config.js +1 -0
- package/src/headers/Heading.tsx +0 -31
package/src/text/Tag.scss
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&.is-info {
|
|
125
|
-
color: var(--info-appearance-label-color, var(--bloom-color-
|
|
125
|
+
color: var(--info-appearance-label-color, var(--bloom-text-color-dark));
|
|
126
126
|
background-color: var(--info-appearance-background-color, var(--bloom-color-warn-light));
|
|
127
127
|
}
|
|
128
128
|
|
package/tailwind.config.js
CHANGED
|
@@ -89,6 +89,7 @@ module.exports = {
|
|
|
89
89
|
800: "var(--bloom-color-gray-800)",
|
|
90
90
|
750: "var(--bloom-color-gray-750)",
|
|
91
91
|
700: "var(--bloom-color-gray-700)",
|
|
92
|
+
650: "var(--bloom-color-gray-650)",
|
|
92
93
|
600: "var(--bloom-color-gray-600)",
|
|
93
94
|
550: "var(--bloom-color-gray-550)",
|
|
94
95
|
500: "var(--bloom-color-gray-500)",
|
package/src/headers/Heading.tsx
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
export interface HeadingProps {
|
|
4
|
-
children?: React.ReactNode
|
|
5
|
-
className?: string
|
|
6
|
-
priority?: number
|
|
7
|
-
style?: HeaderType
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type HeaderType = keyof typeof HeaderStyleMap
|
|
11
|
-
|
|
12
|
-
const HeaderStyleMap = {
|
|
13
|
-
cardHeader: "card-header",
|
|
14
|
-
cardSubheader: "card-subheader",
|
|
15
|
-
tableHeader: "table-header",
|
|
16
|
-
tableSubheader: "table-subheader",
|
|
17
|
-
sidebarHeader: "text-caps-underline",
|
|
18
|
-
categoryHeader: "category-header",
|
|
19
|
-
sidebarSubHeader: "text-caps-tiny",
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const Heading = (props: HeadingProps) => {
|
|
23
|
-
const priority = props.priority && props.priority >= 1 && props.priority <= 6 ? props.priority : 1
|
|
24
|
-
const Tag = `h${priority}` as keyof JSX.IntrinsicElements
|
|
25
|
-
const classNames = `${props.style && HeaderStyleMap[props.style]} ${
|
|
26
|
-
props.className && props.className
|
|
27
|
-
}`
|
|
28
|
-
return <Tag className={classNames}>{props.children}</Tag>
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { Heading as default, Heading }
|