@databiosphere/findable-ui 42.0.0 → 42.0.1

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "42.0.0"
2
+ ".": "42.0.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [42.0.1](https://github.com/DataBiosphere/findable-ui/compare/v42.0.0...v42.0.1) (2025-08-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update any typography header fonts using css vars with breakpoint overrides ([#620](https://github.com/DataBiosphere/findable-ui/issues/620)) ([#621](https://github.com/DataBiosphere/findable-ui/issues/621)) ([468fb09](https://github.com/DataBiosphere/findable-ui/commit/468fb09cb367a98c20fd70949cc857ce17db2dd4))
9
+
3
10
  ## [42.0.0](https://github.com/DataBiosphere/findable-ui/compare/v41.2.0...v42.0.0) (2025-08-12)
4
11
 
5
12
 
@@ -1,7 +1,7 @@
1
1
  import styled from "@emotion/styled";
2
2
  import { FONT } from "../../../../styles/common/constants/font";
3
3
  import { PALETTE } from "../../../../styles/common/constants/palette";
4
- import { bpDownSm, bpUpSm } from "../../../../styles/common/mixins/breakpoints";
4
+ import { bpDownSm } from "../../../../styles/common/mixins/breakpoints";
5
5
  import { FluidPaper } from "../../../common/Paper/components/FluidPaper/fluidPaper";
6
6
  import { MarkdownRenderer } from "../../../MarkdownRenderer/markdownRenderer";
7
7
  export const StyledFluidPaper = styled(FluidPaper) `
@@ -32,11 +32,6 @@ export const StyledMarkdownRenderer = styled(MarkdownRenderer) `
32
32
  font: ${FONT.HEADING_SMALL};
33
33
  font-size: 18px;
34
34
  line-height: 26px;
35
-
36
- ${bpUpSm} {
37
- font-size: 18px;
38
- line-height: 26px;
39
- }
40
35
  }
41
36
 
42
37
  hr {
@@ -46,6 +41,6 @@ export const StyledMarkdownRenderer = styled(MarkdownRenderer) `
46
41
  }
47
42
 
48
43
  p {
49
- font: inherit;
44
+ font: ${FONT.BODY_400_2_LINES};
50
45
  }
51
46
  `;
@@ -11,7 +11,7 @@ import Dropzone from "../Dropzone/dropzone";
11
11
  import { DEFAULT_FORM_STATE, DRAGGING_STYLE, MAX_ATTACHMENT_SIZE, OPTIONS, VALIDATION_SCHEMA, } from "./common/constants";
12
12
  import { FORM_CONTROL_LABEL, FORM_CONTROL_NAME, } from "./common/entities";
13
13
  import { createSupportRequest, uploadAttachment } from "./common/utils";
14
- import { Section, Title } from "./supportRequestForm.styles";
14
+ import { Section } from "./supportRequestForm.styles";
15
15
  export const SupportRequestForm = ({ setFormSubmitted, supportRequest, }) => {
16
16
  const [formState, setFormState] = useState(DEFAULT_FORM_STATE);
17
17
  const [errorFields, setErrorFields] = useState();
@@ -132,7 +132,7 @@ export const SupportRequestForm = ({ setFormSubmitted, supportRequest, }) => {
132
132
  return (React.createElement(Dropzone, { activeStyle: DRAGGING_STYLE, disabled: Boolean(formState[FORM_CONTROL_NAME.ATTACHMENT_TOKEN]), maxSize: MAX_ATTACHMENT_SIZE, multiple: false, onDropAccepted: onAttachmentDropped, onDropRejected: onAttachmentRejected }, ({ isDragActive, open }) => (React.createElement(GridPaper, null,
133
133
  React.createElement(Section, null,
134
134
  React.createElement(SectionContent, null,
135
- React.createElement(Title, null, "Contact Us"),
135
+ React.createElement(Typography, { component: "h3", variant: TYPOGRAPHY_PROPS.VARIANT.HEADING_SMALL }, "Contact Us"),
136
136
  React.createElement(Typography, { color: TYPOGRAPHY_PROPS.COLOR.INK_LIGHT, variant: TYPOGRAPHY_PROPS.VARIANT.BODY_400 }, "We\u2019re here to help and answer any questions you might have. We look forward to hearing from you!"))),
137
137
  React.createElement(Section, null,
138
138
  React.createElement(Input, { error: isFieldError(formState, errorFields, FORM_CONTROL_NAME.NAME), isFilled: Boolean(formState[FORM_CONTROL_NAME.NAME]), label: FORM_CONTROL_LABEL.NAME, name: FORM_CONTROL_NAME.NAME, onBlur: onBlur, onChange: onInputChange }),
@@ -1,7 +1,3 @@
1
- export declare const Title: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
5
1
  export declare const Section: import("@emotion/styled").StyledComponent<{
6
2
  theme?: import("@emotion/react").Theme;
7
3
  as?: React.ElementType;
@@ -1,10 +1,5 @@
1
1
  import styled from "@emotion/styled";
2
- import { FONT } from "../../../../../../styles/common/constants/font";
3
2
  import { GridPaperSection } from "../../../../../common/Section/section.styles";
4
- export const Title = styled.h3 `
5
- font: ${FONT.HEADING_SMALL};
6
- margin: 0;
7
- `;
8
3
  export const Section = styled(GridPaperSection) `
9
4
  min-width: 0;
10
5
  `;
@@ -267,9 +267,9 @@ const MuiButton = {
267
267
  props: {
268
268
  variant: "backNav", // associated with "nav" variant.
269
269
  },
270
- style: {
270
+ style: ({ theme }) => ({
271
+ ...theme.typography["heading-small"],
271
272
  color: PALETTE.INK_MAIN,
272
- font: FONT.HEADING_SMALL,
273
273
  minWidth: 0,
274
274
  textTransform: "capitalize",
275
275
  whiteSpace: "nowrap",
@@ -277,7 +277,7 @@ const MuiButton = {
277
277
  "&:hover": {
278
278
  backgroundColor: PALETTE.SMOKE_LIGHT,
279
279
  },
280
- },
280
+ }),
281
281
  },
282
282
  {
283
283
  props: {
@@ -549,9 +549,9 @@ const MuiDialogContent = {
549
549
  const MuiDialogTitle = {
550
550
  styleOverrides: {
551
551
  root: ({ theme }) => ({
552
+ ...theme.typography.heading,
552
553
  alignItems: "center",
553
554
  display: "grid",
554
- font: FONT.HEADING,
555
555
  gridAutoFlow: "column",
556
556
  padding: 20,
557
557
  [bpUpSm({ theme })]: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databiosphere/findable-ui",
3
- "version": "42.0.0",
3
+ "version": "42.0.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
@@ -1,7 +1,7 @@
1
1
  import styled from "@emotion/styled";
2
2
  import { FONT } from "../../../../styles/common/constants/font";
3
3
  import { PALETTE } from "../../../../styles/common/constants/palette";
4
- import { bpDownSm, bpUpSm } from "../../../../styles/common/mixins/breakpoints";
4
+ import { bpDownSm } from "../../../../styles/common/mixins/breakpoints";
5
5
  import { FluidPaper } from "../../../common/Paper/components/FluidPaper/fluidPaper";
6
6
  import { MarkdownRenderer } from "../../../MarkdownRenderer/markdownRenderer";
7
7
 
@@ -34,11 +34,6 @@ export const StyledMarkdownRenderer = styled(MarkdownRenderer)`
34
34
  font: ${FONT.HEADING_SMALL};
35
35
  font-size: 18px;
36
36
  line-height: 26px;
37
-
38
- ${bpUpSm} {
39
- font-size: 18px;
40
- line-height: 26px;
41
- }
42
37
  }
43
38
 
44
39
  hr {
@@ -48,6 +43,6 @@ export const StyledMarkdownRenderer = styled(MarkdownRenderer)`
48
43
  }
49
44
 
50
45
  p {
51
- font: inherit;
46
+ font: ${FONT.BODY_400_2_LINES};
52
47
  }
53
48
  `;
@@ -1,12 +1,6 @@
1
1
  import styled from "@emotion/styled";
2
- import { FONT } from "../../../../../../styles/common/constants/font";
3
2
  import { GridPaperSection } from "../../../../../common/Section/section.styles";
4
3
 
5
- export const Title = styled.h3`
6
- font: ${FONT.HEADING_SMALL};
7
- margin: 0;
8
- `;
9
-
10
4
  export const Section = styled(GridPaperSection)`
11
5
  min-width: 0;
12
6
  `;
@@ -34,7 +34,7 @@ import {
34
34
  RequestValue,
35
35
  } from "./common/entities";
36
36
  import { createSupportRequest, uploadAttachment } from "./common/utils";
37
- import { Section, Title } from "./supportRequestForm.styles";
37
+ import { Section } from "./supportRequestForm.styles";
38
38
 
39
39
  export interface SupportRequestFormProps {
40
40
  setFormSubmitted: Dispatch<SetStateAction<boolean>>;
@@ -183,7 +183,12 @@ export const SupportRequestForm = ({
183
183
  <GridPaper>
184
184
  <Section>
185
185
  <SectionContent>
186
- <Title>Contact Us</Title>
186
+ <Typography
187
+ component="h3"
188
+ variant={TYPOGRAPHY_PROPS.VARIANT.HEADING_SMALL}
189
+ >
190
+ Contact Us
191
+ </Typography>
187
192
  <Typography
188
193
  color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
189
194
  variant={TYPOGRAPHY_PROPS.VARIANT.BODY_400}
@@ -109,7 +109,7 @@ const MuiBreadcrumbs: Components["MuiBreadcrumbs"] = {
109
109
  },
110
110
  };
111
111
 
112
- const MuiButton: Components["MuiButton"] = {
112
+ const MuiButton: Components<Theme>["MuiButton"] = {
113
113
  defaultProps: {
114
114
  disableRipple: true,
115
115
  disableTouchRipple: true,
@@ -276,9 +276,9 @@ const MuiButton: Components["MuiButton"] = {
276
276
  props: {
277
277
  variant: "backNav", // associated with "nav" variant.
278
278
  },
279
- style: {
279
+ style: ({ theme }) => ({
280
+ ...theme.typography["heading-small"],
280
281
  color: PALETTE.INK_MAIN,
281
- font: FONT.HEADING_SMALL,
282
282
  minWidth: 0,
283
283
  textTransform: "capitalize",
284
284
  whiteSpace: "nowrap",
@@ -286,7 +286,7 @@ const MuiButton: Components["MuiButton"] = {
286
286
  "&:hover": {
287
287
  backgroundColor: PALETTE.SMOKE_LIGHT,
288
288
  },
289
- },
289
+ }),
290
290
  },
291
291
  {
292
292
  props: {
@@ -568,9 +568,9 @@ const MuiDialogContent: Components["MuiDialogContent"] = {
568
568
  const MuiDialogTitle: Components<Theme>["MuiDialogTitle"] = {
569
569
  styleOverrides: {
570
570
  root: ({ theme }) => ({
571
+ ...theme.typography.heading,
571
572
  alignItems: "center",
572
573
  display: "grid",
573
- font: FONT.HEADING,
574
574
  gridAutoFlow: "column",
575
575
  padding: 20,
576
576
  [bpUpSm({ theme })]: {},