11import React from 'react' ;
22import type { Meta , StoryObj } from '@storybook/react' ;
33
4- import { Heading , HeadingSizes } from './Heading' ;
4+ import { Heading , HeadingSize } from './Heading' ;
55
66const meta : Meta < typeof Heading > = {
77 component : Heading ,
@@ -61,11 +61,11 @@ export const Default: Story = {
6161export const Levels : Story = {
6262 render : ( ) => (
6363 < >
64- < Heading level = { 1 } size = { HeadingSizes . LARGE } > The fastest way to recruit research participants</ Heading >
65- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } > The fastest way to recruit research participants</ Heading >
66- < Heading level = { 3 } size = { HeadingSizes . SMALL } > The fastest way to recruit research participants</ Heading >
67- < Heading level = { 4 } size = { HeadingSizes . TEXT } > The fastest way to recruit research participants</ Heading >
68- < Heading level = { 5 } size = { HeadingSizes . SUBTEXT } > The fastest way to recruit research participants</ Heading >
64+ < Heading level = { 1 } size = { HeadingSize . LARGE } > The fastest way to recruit research participants</ Heading >
65+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } > The fastest way to recruit research participants</ Heading >
66+ < Heading level = { 3 } size = { HeadingSize . SMALL } > The fastest way to recruit research participants</ Heading >
67+ < Heading level = { 4 } size = { HeadingSize . TEXT } > The fastest way to recruit research participants</ Heading >
68+ < Heading level = { 5 } size = { HeadingSize . SUBTEXT } > The fastest way to recruit research participants</ Heading >
6969 </ >
7070 ) ,
7171} ;
@@ -77,11 +77,11 @@ export const Levels: Story = {
7777export const Sizes : Story = {
7878 render : ( ) => (
7979 < >
80- < Heading level = { 2 } size = { HeadingSizes . LARGE } > This is a heading level 2 with size="large"</ Heading >
81- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } > This is a heading level 2 with size="medium"</ Heading >
82- < Heading level = { 2 } size = { HeadingSizes . SMALL } > This is a heading level 2 with size="small"</ Heading >
83- < Heading level = { 2 } size = { HeadingSizes . TEXT } > This is a heading level 2 with size="text"</ Heading >
84- < Heading level = { 2 } size = { HeadingSizes . SUBTEXT } > This is a heading level 2 with size="subtext"</ Heading >
80+ < Heading level = { 2 } size = { HeadingSize . LARGE } > This is a heading level 2 with size="large"</ Heading >
81+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } > This is a heading level 2 with size="medium"</ Heading >
82+ < Heading level = { 2 } size = { HeadingSize . SMALL } > This is a heading level 2 with size="small"</ Heading >
83+ < Heading level = { 2 } size = { HeadingSize . TEXT } > This is a heading level 2 with size="text"</ Heading >
84+ < Heading level = { 2 } size = { HeadingSize . SUBTEXT } > This is a heading level 2 with size="subtext"</ Heading >
8585 </ >
8686 ) ,
8787} ;
@@ -94,9 +94,9 @@ export const Sizes: Story = {
9494export const Weights : Story = {
9595 render : ( ) => (
9696 < >
97- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } weight = "bold" > The fastest way to recruit research participants</ Heading >
98- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } weight = "medium" > The fastest way to recruit research participants</ Heading >
99- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } weight = "regular" > The fastest way to recruit research participants</ Heading >
97+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } weight = "bold" > The fastest way to recruit research participants</ Heading >
98+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } weight = "medium" > The fastest way to recruit research participants</ Heading >
99+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } weight = "regular" > The fastest way to recruit research participants</ Heading >
100100 </ >
101101 ) ,
102102} ;
@@ -109,9 +109,9 @@ export const Weights: Story = {
109109export const Alignment : Story = {
110110 render : ( ) => (
111111 < >
112- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } textAlign = "left" weight = "bold" > The fastest way to recruit research participants</ Heading >
113- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } textAlign = "center" weight = "bold" > The fastest way to recruit research participants</ Heading >
114- < Heading level = { 2 } size = { HeadingSizes . MEDIUM } textAlign = "right" weight = "bold" > The fastest way to recruit research participants</ Heading >
112+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } textAlign = "left" weight = "bold" > The fastest way to recruit research participants</ Heading >
113+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } textAlign = "center" weight = "bold" > The fastest way to recruit research participants</ Heading >
114+ < Heading level = { 2 } size = { HeadingSize . MEDIUM } textAlign = "right" weight = "bold" > The fastest way to recruit research participants</ Heading >
115115 </ >
116116 ) ,
117117} ;
0 commit comments