@khanacademy/wonder-blocks-typography 4.3.8 → 5.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @khanacademy/wonder-blocks-typography
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 9d8e5e3: Remove the deprecated legacy typography components. `Title`, `HeadingLarge`, `HeadingMedium`, `HeadingSmall`, `HeadingXSmall`, `Tagline`, `Body`, `BodySerif`, `BodySerifBlock`, `LabelLarge`, `LabelMedium`, `LabelSmall`, `LabelXSmall`, `Caption`, and `Footnote` have been removed. Use `Heading` (with the appropriate `size`/`weight`) and `BodyText` instead, per the typography conversion guide. `BodyText`, `Heading`, and `BodyMonospace` remain. The exported `Typography` type now resolves to the surviving components, and the `Label` union type has been removed.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [9d8e5e3]
12
+ - @khanacademy/wonder-blocks-tokens@17.0.0
13
+
14
+ ## 4.3.9
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [0735aef]
19
+ - @khanacademy/wonder-blocks-tokens@16.8.1
20
+
3
21
  ## 4.3.8
4
22
 
5
23
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -1,45 +1,15 @@
1
1
  import { StyleSheet } from 'aphrodite';
2
- import { font, breakpoint } from '@khanacademy/wonder-blocks-tokens';
2
+ import { font } from '@khanacademy/wonder-blocks-tokens';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
5
  import { Text } from '@khanacademy/wonder-blocks-core';
6
6
 
7
- const common={display:"block"};const Heading$1={...common,fontFamily:font.family.sans};const BodyText$1={...common,fontFamily:font.family.sans,margin:0};const styles=StyleSheet.create({Title:{...common,fontFamily:font.family.sans,fontWeight:font.weight.black,[breakpoint.mediaQuery.xl]:{fontSize:font.size.xxxLarge,lineHeight:font.lineHeight.xxxLarge},[breakpoint.mediaQuery.mdOrSmaller]:{fontSize:font.size.xxLarge,lineHeight:font.lineHeight.xxLarge}},Tagline:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.large,lineHeight:font.lineHeight.large},Heading: Heading$1,HeadingSmallBoldWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.small},HeadingSmallSemiWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.small},HeadingSmallMediumWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.small},HeadingMediumBoldWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.medium},HeadingMediumSemiWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.medium},HeadingMediumMediumWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.medium},HeadingLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.large},HeadingLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.large},HeadingLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.large},HeadingXLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.xlarge},HeadingXLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.xlarge},HeadingXLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.xlarge},HeadingXxLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.xxlarge},HeadingXxLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.xxlarge},HeadingXxLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.xxlarge},BodyText: BodyText$1,BodyTextXSmallMediumWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.xsmall},BodyTextXSmallSemiWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.xsmall},BodyTextXSmallBoldWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.xsmall},BodyTextSmallMediumWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.small},BodyTextSmallSemiWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.small},BodyTextSmallBoldWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.small},BodyTextMediumMediumWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.medium},BodyTextMediumSemiWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.medium},BodyTextMediumBoldWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.medium},HeadingLarge:{...common,fontFamily:font.family.sans,fontWeight:font.weight.bold,[breakpoint.mediaQuery.xl]:{fontSize:font.size.xxLarge,lineHeight:font.lineHeight.xxLarge},[breakpoint.mediaQuery.mdOrSmaller]:{fontSize:font.size.xLarge,lineHeight:font.lineHeight.xLarge}},HeadingMedium:{...common,fontFamily:font.family.sans,fontWeight:font.weight.bold,[breakpoint.mediaQuery.xl]:{fontSize:font.size.xLarge,lineHeight:font.lineHeight.xLarge},[breakpoint.mediaQuery.mdOrSmaller]:{fontSize:"2.2rem",lineHeight:"2.6rem"}},HeadingSmall:{...common,fontFamily:font.family.sans,fontWeight:font.weight.bold,fontSize:font.size.large,lineHeight:font.lineHeight.large},HeadingXSmall:{...common,fontFamily:font.family.sans,fontWeight:font.weight.bold,fontSize:font.size.xSmall,lineHeight:font.lineHeight.xSmall,letterSpacing:.6,textTransform:"uppercase"},BodySerifBlock:{...common,fontFamily:font.family.serif,fontWeight:font.weight.medium,fontSize:font.size.large,lineHeight:font.lineHeight.large},BodySerif:{...common,fontFamily:font.family.serif,fontWeight:font.weight.medium,fontSize:font.size.medium,lineHeight:font.size.medium},BodyMonospace:{...common,fontFamily:font.family.mono,fontWeight:font.weight.medium,fontSize:font.size.medium,lineHeight:font.lineHeight.medium},Body:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.medium,lineHeight:font.lineHeight.xMedium},LabelLarge:{...common,fontFamily:font.family.sans,fontWeight:font.weight.bold,fontSize:font.size.medium,lineHeight:font.lineHeight.medium},LabelMedium:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.medium,lineHeight:font.lineHeight.medium},LabelSmall:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.small,lineHeight:font.lineHeight.small},LabelXSmall:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.xSmall,lineHeight:font.lineHeight.xSmall},Caption:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.small,lineHeight:font.lineHeight.medium},Footnote:{...common,fontFamily:font.family.sans,fontWeight:font.weight.medium,fontSize:font.size.xSmall,lineHeight:font.lineHeight.small}});
8
-
9
- const Title=React.forwardRef(function Title({style,children,tag="h1",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.Title,style],ref:ref,children:children})});
7
+ const common={display:"block"};const Heading$1={...common,fontFamily:font.family.sans};const BodyText$1={...common,fontFamily:font.family.sans,margin:0};const styles=StyleSheet.create({Heading: Heading$1,HeadingSmallBoldWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.small},HeadingSmallSemiWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.small},HeadingSmallMediumWeight:{...Heading$1,fontSize:font.heading.size.small,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.small},HeadingMediumBoldWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.medium},HeadingMediumSemiWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.medium},HeadingMediumMediumWeight:{...Heading$1,fontSize:font.heading.size.medium,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.medium},HeadingLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.large},HeadingLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.large},HeadingLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.large,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.large},HeadingXLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.xlarge},HeadingXLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.xlarge},HeadingXLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.xlarge,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.xlarge},HeadingXxLargeMediumWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.medium,lineHeight:font.heading.lineHeight.xxlarge},HeadingXxLargeSemiWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.semi,lineHeight:font.heading.lineHeight.xxlarge},HeadingXxLargeBoldWeight:{...Heading$1,fontSize:font.heading.size.xxlarge,fontWeight:font.weight.bold,lineHeight:font.heading.lineHeight.xxlarge},BodyText: BodyText$1,BodyTextXSmallMediumWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.xsmall},BodyTextXSmallSemiWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.xsmall},BodyTextXSmallBoldWeight:{...BodyText$1,fontSize:font.body.size.xsmall,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.xsmall},BodyTextSmallMediumWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.small},BodyTextSmallSemiWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.small},BodyTextSmallBoldWeight:{...BodyText$1,fontSize:font.body.size.small,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.small},BodyTextMediumMediumWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.medium,lineHeight:font.body.lineHeight.medium},BodyTextMediumSemiWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.semi,lineHeight:font.body.lineHeight.medium},BodyTextMediumBoldWeight:{...BodyText$1,fontSize:font.body.size.medium,fontWeight:font.weight.bold,lineHeight:font.body.lineHeight.medium},BodyMonospace:{...common,fontFamily:font.family.mono,fontWeight:font.weight.medium,fontSize:font.body.size.medium,lineHeight:font.body.lineHeight.medium}});
10
8
 
11
9
  const tagMap={xxlarge:"h1",xlarge:"h2",large:"h3",medium:"h4",small:"h4"};const styleMapping$1={"small-medium":styles.HeadingSmallMediumWeight,"small-semi":styles.HeadingSmallSemiWeight,"small-bold":styles.HeadingSmallBoldWeight,"medium-medium":styles.HeadingMediumMediumWeight,"medium-semi":styles.HeadingMediumSemiWeight,"medium-bold":styles.HeadingMediumBoldWeight,"large-medium":styles.HeadingLargeMediumWeight,"large-semi":styles.HeadingLargeSemiWeight,"large-bold":styles.HeadingLargeBoldWeight,"xlarge-medium":styles.HeadingXLargeMediumWeight,"xlarge-semi":styles.HeadingXLargeSemiWeight,"xlarge-bold":styles.HeadingXLargeBoldWeight,"xxlarge-medium":styles.HeadingXxLargeMediumWeight,"xxlarge-semi":styles.HeadingXxLargeSemiWeight,"xxlarge-bold":styles.HeadingXxLargeBoldWeight};const Heading=React.forwardRef(function Heading(props,ref){const{size,weight="bold",style,children,tag,...otherProps}=props;const finalSize=size??"large";const resolvedTag=tag??(size?tagMap[size]:"h2");const themeHeading=styleMapping$1[`${finalSize}-${weight}`];return jsx(Text,{...otherProps,tag:resolvedTag,style:[styles.Heading,themeHeading,style],ref:ref,children:children})});
12
10
 
13
- const HeadingLarge=React.forwardRef(function HeadingLarge({style,children,tag="h2",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.HeadingLarge,style],ref:ref,children:children})});
14
-
15
- const HeadingMedium=React.forwardRef(function HeadingMedium({style,children,tag="h3",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.HeadingMedium,style],ref:ref,children:children})});
16
-
17
- const HeadingSmall=React.forwardRef(function HeadingSmall({style,children,tag="h4",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.HeadingSmall,style],ref:ref,children:children})});
18
-
19
- const HeadingXSmall=React.forwardRef(function HeadingXSmall({style,children,tag="h4",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.HeadingXSmall,style],ref:ref,children:children})});
20
-
21
11
  const styleMapping={"xsmall-medium":styles.BodyTextXSmallMediumWeight,"xsmall-semi":styles.BodyTextXSmallSemiWeight,"xsmall-bold":styles.BodyTextXSmallBoldWeight,"small-medium":styles.BodyTextSmallMediumWeight,"small-semi":styles.BodyTextSmallSemiWeight,"small-bold":styles.BodyTextSmallBoldWeight,"medium-medium":styles.BodyTextMediumMediumWeight,"medium-semi":styles.BodyTextMediumSemiWeight,"medium-bold":styles.BodyTextMediumBoldWeight};const BodyText=React.forwardRef(function BodyText({size="medium",weight="medium",style,children,tag="p",...otherProps},ref){const themeBodyText=styleMapping[`${size}-${weight}`];return jsx(Text,{...otherProps,tag:tag,style:[styles.BodyText,themeBodyText,style],ref:ref,children:children})});
22
12
 
23
- const BodySerifBlock=React.forwardRef(function BodySerifBlock({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.BodySerifBlock,style],ref:ref,children:children})});
24
-
25
- const BodySerif=React.forwardRef(function BodySerif({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.BodySerif,style],ref:ref,children:children})});
26
-
27
13
  const BodyMonospace=React.forwardRef(function BodyMonospace({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.BodyMonospace,style],ref:ref,children:children})});
28
14
 
29
- const Body=React.forwardRef(function Body({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.Body,style],ref:ref,children:children})});
30
-
31
- const LabelLarge=React.forwardRef(function LabelLarge({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.LabelLarge,style],ref:ref,children:children})});
32
-
33
- const LabelMedium=React.forwardRef(function LabelMedium({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.LabelMedium,style],ref:ref,children:children})});
34
-
35
- const LabelSmall=React.forwardRef(function LabelSmall({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.LabelSmall,style],ref:ref,children:children})});
36
-
37
- const LabelXSmall=React.forwardRef(function LabelXSmall({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.LabelXSmall,style],ref:ref,children:children})});
38
-
39
- const Tagline=React.forwardRef(function Tagline({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.Tagline,style],ref:ref,children:children})});
40
-
41
- const Caption=React.forwardRef(function Caption({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.Caption,style],ref:ref,children:children})});
42
-
43
- const Footnote=React.forwardRef(function Footnote({style,children,tag="span",...otherProps},ref){return jsx(Text,{...otherProps,tag:tag,style:[styles.Footnote,style],ref:ref,children:children})});
44
-
45
- export { Body, BodyMonospace, BodySerif, BodySerifBlock, BodyText, Caption, Footnote, Heading, HeadingLarge, HeadingMedium, HeadingSmall, HeadingXSmall, LabelLarge, LabelMedium, LabelSmall, LabelXSmall, Tagline, Title, styles };
15
+ export { BodyMonospace, BodyText, Heading, styles };
package/dist/index.d.ts CHANGED
@@ -1,36 +1,17 @@
1
1
  import styles from "./util/styles";
2
- import Title from "./components/title";
3
2
  import Heading from "./components/heading";
4
- import HeadingLarge from "./components/heading-large";
5
- import HeadingMedium from "./components/heading-medium";
6
- import HeadingSmall from "./components/heading-small";
7
- import HeadingXSmall from "./components/heading-xsmall";
8
3
  import BodyText from "./components/body-text";
9
- import BodySerifBlock from "./components/body-serif-block";
10
- import BodySerif from "./components/body-serif";
11
4
  import BodyMonospace from "./components/body-monospace";
12
- import Body from "./components/body";
13
- import LabelLarge from "./components/label-large";
14
- import LabelMedium from "./components/label-medium";
15
- import LabelSmall from "./components/label-small";
16
- import LabelXSmall from "./components/label-xsmall";
17
- import Tagline from "./components/tagline";
18
- import Caption from "./components/caption";
19
- import Footnote from "./components/footnote";
20
5
  /**
21
6
  * Typography components for headings or titles.
22
7
  */
23
- export type HeadingComponents = typeof Title | typeof Heading | typeof HeadingLarge | typeof HeadingMedium | typeof HeadingSmall | typeof HeadingXSmall;
8
+ export type HeadingComponents = typeof Heading;
24
9
  /**
25
10
  * Typography components for representing body text.
26
11
  */
27
- export type BodyComponents = typeof Body | typeof BodyText | typeof BodySerif | typeof BodySerifBlock | typeof BodyMonospace;
28
- /**
29
- * Typography components for labels.
30
- */
31
- export type Label = typeof LabelLarge | typeof LabelMedium | typeof LabelSmall | typeof LabelXSmall;
12
+ export type BodyComponents = typeof BodyText | typeof BodyMonospace;
32
13
  /**
33
14
  * All typography components.
34
15
  */
35
- export type Typography = HeadingComponents | BodyComponents | Label | typeof Tagline | typeof Caption | typeof Footnote;
36
- export { Title, Heading, HeadingLarge, HeadingMedium, HeadingSmall, HeadingXSmall, BodyText, BodySerifBlock, BodySerif, BodyMonospace, Body, LabelLarge, LabelMedium, LabelSmall, LabelXSmall, Tagline, Caption, Footnote, styles, };
16
+ export type Typography = HeadingComponents | BodyComponents;
17
+ export { Heading, BodyText, BodyMonospace, styles };
package/dist/index.js CHANGED
@@ -28,60 +28,15 @@ function _interopNamespace(e) {
28
28
 
29
29
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
30
30
 
31
- const common={display:"block"};const Heading$1={...common,fontFamily:wonderBlocksTokens.font.family.sans};const BodyText$1={...common,fontFamily:wonderBlocksTokens.font.family.sans,margin:0};const styles=aphrodite.StyleSheet.create({Title:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.black,[wonderBlocksTokens.breakpoint.mediaQuery.xl]:{fontSize:wonderBlocksTokens.font.size.xxxLarge,lineHeight:wonderBlocksTokens.font.lineHeight.xxxLarge},[wonderBlocksTokens.breakpoint.mediaQuery.mdOrSmaller]:{fontSize:wonderBlocksTokens.font.size.xxLarge,lineHeight:wonderBlocksTokens.font.lineHeight.xxLarge}},Tagline:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.large,lineHeight:wonderBlocksTokens.font.lineHeight.large},Heading: Heading$1,HeadingSmallBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingSmallSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingSmallMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingMediumBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingMediumSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingMediumMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingXLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXxLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},HeadingXxLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},HeadingXxLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},BodyText: BodyText$1,BodyTextXSmallMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextXSmallSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextXSmallBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextSmallMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextSmallSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextSmallBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextMediumMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},BodyTextMediumSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},BodyTextMediumBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},HeadingLarge:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.bold,[wonderBlocksTokens.breakpoint.mediaQuery.xl]:{fontSize:wonderBlocksTokens.font.size.xxLarge,lineHeight:wonderBlocksTokens.font.lineHeight.xxLarge},[wonderBlocksTokens.breakpoint.mediaQuery.mdOrSmaller]:{fontSize:wonderBlocksTokens.font.size.xLarge,lineHeight:wonderBlocksTokens.font.lineHeight.xLarge}},HeadingMedium:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.bold,[wonderBlocksTokens.breakpoint.mediaQuery.xl]:{fontSize:wonderBlocksTokens.font.size.xLarge,lineHeight:wonderBlocksTokens.font.lineHeight.xLarge},[wonderBlocksTokens.breakpoint.mediaQuery.mdOrSmaller]:{fontSize:"2.2rem",lineHeight:"2.6rem"}},HeadingSmall:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.bold,fontSize:wonderBlocksTokens.font.size.large,lineHeight:wonderBlocksTokens.font.lineHeight.large},HeadingXSmall:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.bold,fontSize:wonderBlocksTokens.font.size.xSmall,lineHeight:wonderBlocksTokens.font.lineHeight.xSmall,letterSpacing:.6,textTransform:"uppercase"},BodySerifBlock:{...common,fontFamily:wonderBlocksTokens.font.family.serif,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.large,lineHeight:wonderBlocksTokens.font.lineHeight.large},BodySerif:{...common,fontFamily:wonderBlocksTokens.font.family.serif,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.medium,lineHeight:wonderBlocksTokens.font.size.medium},BodyMonospace:{...common,fontFamily:wonderBlocksTokens.font.family.mono,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.medium,lineHeight:wonderBlocksTokens.font.lineHeight.medium},Body:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.medium,lineHeight:wonderBlocksTokens.font.lineHeight.xMedium},LabelLarge:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.bold,fontSize:wonderBlocksTokens.font.size.medium,lineHeight:wonderBlocksTokens.font.lineHeight.medium},LabelMedium:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.medium,lineHeight:wonderBlocksTokens.font.lineHeight.medium},LabelSmall:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.small,lineHeight:wonderBlocksTokens.font.lineHeight.small},LabelXSmall:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.xSmall,lineHeight:wonderBlocksTokens.font.lineHeight.xSmall},Caption:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.small,lineHeight:wonderBlocksTokens.font.lineHeight.medium},Footnote:{...common,fontFamily:wonderBlocksTokens.font.family.sans,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.size.xSmall,lineHeight:wonderBlocksTokens.font.lineHeight.small}});
32
-
33
- const Title=React__namespace.forwardRef(function Title({style,children,tag="h1",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.Title,style],ref:ref,children:children})});
31
+ const common={display:"block"};const Heading$1={...common,fontFamily:wonderBlocksTokens.font.family.sans};const BodyText$1={...common,fontFamily:wonderBlocksTokens.font.family.sans,margin:0};const styles=aphrodite.StyleSheet.create({Heading: Heading$1,HeadingSmallBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingSmallSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingSmallMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.small,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.small},HeadingMediumBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingMediumSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingMediumMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.medium,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.medium},HeadingLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.large,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.large},HeadingXLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xlarge,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xlarge},HeadingXxLargeMediumWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},HeadingXxLargeSemiWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},HeadingXxLargeBoldWeight:{...Heading$1,fontSize:wonderBlocksTokens.font.heading.size.xxlarge,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.heading.lineHeight.xxlarge},BodyText: BodyText$1,BodyTextXSmallMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextXSmallSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextXSmallBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.xsmall,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.xsmall},BodyTextSmallMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextSmallSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextSmallBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.small,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.small},BodyTextMediumMediumWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},BodyTextMediumSemiWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.semi,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},BodyTextMediumBoldWeight:{...BodyText$1,fontSize:wonderBlocksTokens.font.body.size.medium,fontWeight:wonderBlocksTokens.font.weight.bold,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium},BodyMonospace:{...common,fontFamily:wonderBlocksTokens.font.family.mono,fontWeight:wonderBlocksTokens.font.weight.medium,fontSize:wonderBlocksTokens.font.body.size.medium,lineHeight:wonderBlocksTokens.font.body.lineHeight.medium}});
34
32
 
35
33
  const tagMap={xxlarge:"h1",xlarge:"h2",large:"h3",medium:"h4",small:"h4"};const styleMapping$1={"small-medium":styles.HeadingSmallMediumWeight,"small-semi":styles.HeadingSmallSemiWeight,"small-bold":styles.HeadingSmallBoldWeight,"medium-medium":styles.HeadingMediumMediumWeight,"medium-semi":styles.HeadingMediumSemiWeight,"medium-bold":styles.HeadingMediumBoldWeight,"large-medium":styles.HeadingLargeMediumWeight,"large-semi":styles.HeadingLargeSemiWeight,"large-bold":styles.HeadingLargeBoldWeight,"xlarge-medium":styles.HeadingXLargeMediumWeight,"xlarge-semi":styles.HeadingXLargeSemiWeight,"xlarge-bold":styles.HeadingXLargeBoldWeight,"xxlarge-medium":styles.HeadingXxLargeMediumWeight,"xxlarge-semi":styles.HeadingXxLargeSemiWeight,"xxlarge-bold":styles.HeadingXxLargeBoldWeight};const Heading=React__namespace.forwardRef(function Heading(props,ref){const{size,weight="bold",style,children,tag,...otherProps}=props;const finalSize=size??"large";const resolvedTag=tag??(size?tagMap[size]:"h2");const themeHeading=styleMapping$1[`${finalSize}-${weight}`];return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:resolvedTag,style:[styles.Heading,themeHeading,style],ref:ref,children:children})});
36
34
 
37
- const HeadingLarge=React__namespace.forwardRef(function HeadingLarge({style,children,tag="h2",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.HeadingLarge,style],ref:ref,children:children})});
38
-
39
- const HeadingMedium=React__namespace.forwardRef(function HeadingMedium({style,children,tag="h3",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.HeadingMedium,style],ref:ref,children:children})});
40
-
41
- const HeadingSmall=React__namespace.forwardRef(function HeadingSmall({style,children,tag="h4",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.HeadingSmall,style],ref:ref,children:children})});
42
-
43
- const HeadingXSmall=React__namespace.forwardRef(function HeadingXSmall({style,children,tag="h4",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.HeadingXSmall,style],ref:ref,children:children})});
44
-
45
35
  const styleMapping={"xsmall-medium":styles.BodyTextXSmallMediumWeight,"xsmall-semi":styles.BodyTextXSmallSemiWeight,"xsmall-bold":styles.BodyTextXSmallBoldWeight,"small-medium":styles.BodyTextSmallMediumWeight,"small-semi":styles.BodyTextSmallSemiWeight,"small-bold":styles.BodyTextSmallBoldWeight,"medium-medium":styles.BodyTextMediumMediumWeight,"medium-semi":styles.BodyTextMediumSemiWeight,"medium-bold":styles.BodyTextMediumBoldWeight};const BodyText=React__namespace.forwardRef(function BodyText({size="medium",weight="medium",style,children,tag="p",...otherProps},ref){const themeBodyText=styleMapping[`${size}-${weight}`];return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.BodyText,themeBodyText,style],ref:ref,children:children})});
46
36
 
47
- const BodySerifBlock=React__namespace.forwardRef(function BodySerifBlock({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.BodySerifBlock,style],ref:ref,children:children})});
48
-
49
- const BodySerif=React__namespace.forwardRef(function BodySerif({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.BodySerif,style],ref:ref,children:children})});
50
-
51
37
  const BodyMonospace=React__namespace.forwardRef(function BodyMonospace({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.BodyMonospace,style],ref:ref,children:children})});
52
38
 
53
- const Body=React__namespace.forwardRef(function Body({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.Body,style],ref:ref,children:children})});
54
-
55
- const LabelLarge=React__namespace.forwardRef(function LabelLarge({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.LabelLarge,style],ref:ref,children:children})});
56
-
57
- const LabelMedium=React__namespace.forwardRef(function LabelMedium({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.LabelMedium,style],ref:ref,children:children})});
58
-
59
- const LabelSmall=React__namespace.forwardRef(function LabelSmall({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.LabelSmall,style],ref:ref,children:children})});
60
-
61
- const LabelXSmall=React__namespace.forwardRef(function LabelXSmall({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.LabelXSmall,style],ref:ref,children:children})});
62
-
63
- const Tagline=React__namespace.forwardRef(function Tagline({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.Tagline,style],ref:ref,children:children})});
64
-
65
- const Caption=React__namespace.forwardRef(function Caption({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.Caption,style],ref:ref,children:children})});
66
-
67
- const Footnote=React__namespace.forwardRef(function Footnote({style,children,tag="span",...otherProps},ref){return jsxRuntime.jsx(wonderBlocksCore.Text,{...otherProps,tag:tag,style:[styles.Footnote,style],ref:ref,children:children})});
68
-
69
- exports.Body = Body;
70
39
  exports.BodyMonospace = BodyMonospace;
71
- exports.BodySerif = BodySerif;
72
- exports.BodySerifBlock = BodySerifBlock;
73
40
  exports.BodyText = BodyText;
74
- exports.Caption = Caption;
75
- exports.Footnote = Footnote;
76
41
  exports.Heading = Heading;
77
- exports.HeadingLarge = HeadingLarge;
78
- exports.HeadingMedium = HeadingMedium;
79
- exports.HeadingSmall = HeadingSmall;
80
- exports.HeadingXSmall = HeadingXSmall;
81
- exports.LabelLarge = LabelLarge;
82
- exports.LabelMedium = LabelMedium;
83
- exports.LabelSmall = LabelSmall;
84
- exports.LabelXSmall = LabelXSmall;
85
- exports.Tagline = Tagline;
86
- exports.Title = Title;
87
42
  exports.styles = styles;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Typography components for Wonder Blocks design system.",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "4.3.8",
6
+ "version": "5.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -21,7 +21,7 @@
21
21
  "types": "dist/index.d.ts",
22
22
  "dependencies": {
23
23
  "@khanacademy/wonder-blocks-core": "12.4.4",
24
- "@khanacademy/wonder-blocks-tokens": "16.8.0"
24
+ "@khanacademy/wonder-blocks-tokens": "17.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "aphrodite": "^1.2.5",
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const BodySerifBlock: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default BodySerifBlock;
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const BodySerif: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default BodySerif;
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const Body: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default Body;
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const Caption: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default Caption;
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const Footnote: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default Footnote;
@@ -1,55 +0,0 @@
1
- import * as React from "react";
2
- declare const HeadingLarge: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- style?: import("@khanacademy/wonder-blocks-core").StyleType;
5
- testId?: string;
6
- lang?: string;
7
- className?: string;
8
- dir?: "ltr" | "rtl" | "auto";
9
- htmlFor?: string;
10
- tabIndex?: number;
11
- id?: string;
12
- title?: string;
13
- "data-modal-launcher-portal"?: boolean;
14
- "data-placement"?: string;
15
- } & Readonly<import("@khanacademy/wonder-blocks-core").AriaAttributes> & Readonly<{
16
- role?: import("@khanacademy/wonder-blocks-core").AriaRole;
17
- }> & {
18
- onMouseDown?: (e: React.MouseEvent) => unknown;
19
- onMouseUp?: (e: React.MouseEvent) => unknown;
20
- onMouseMove?: (e: React.MouseEvent) => unknown;
21
- onClick?: (e: React.MouseEvent) => unknown;
22
- onDoubleClick?: (e: React.MouseEvent) => unknown;
23
- onMouseEnter?: (e: React.MouseEvent) => unknown;
24
- onMouseLeave?: (e: React.MouseEvent) => unknown;
25
- onMouseOut?: (e: React.MouseEvent) => unknown;
26
- onMouseOver?: (e: React.MouseEvent) => unknown;
27
- onDrag?: (e: React.MouseEvent) => unknown;
28
- onDragEnd?: (e: React.MouseEvent) => unknown;
29
- onDragEnter?: (e: React.MouseEvent) => unknown;
30
- onDragExit?: (e: React.MouseEvent) => unknown;
31
- onDragLeave?: (e: React.MouseEvent) => unknown;
32
- onDragOver?: (e: React.MouseEvent) => unknown;
33
- onDragStart?: (e: React.MouseEvent) => unknown;
34
- onDrop?: (e: React.MouseEvent) => unknown;
35
- } & {
36
- onKeyDown?: (e: React.KeyboardEvent) => unknown;
37
- onKeyPress?: (e: React.KeyboardEvent) => unknown;
38
- onKeyUp?: (e: React.KeyboardEvent) => unknown;
39
- } & {
40
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
41
- onInput?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
42
- onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
43
- onSubmit?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
44
- } & {
45
- onTouchCancel?: (e: React.TouchEvent) => unknown;
46
- onTouchEnd?: (e: React.TouchEvent) => unknown;
47
- onTouchMove?: (e: React.TouchEvent) => unknown;
48
- onTouchStart?: (e: React.TouchEvent) => unknown;
49
- } & {
50
- onFocus?: (e: React.FocusEvent) => unknown;
51
- onBlur?: (e: React.FocusEvent) => unknown;
52
- } & {
53
- tag?: string;
54
- } & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>;
55
- export default HeadingLarge;