UNPKG

wix-style-react

Version:
136 lines (132 loc) 3.03 kB
import React from 'react'; import Heading from 'wix-style-react/Heading'; import { ExampleWrapper } from './utils'; var darkHeadingsColumn = function darkHeadingsColumn() { return React.createElement( 'div', { style: { padding: '24px' } }, React.createElement( ExampleWrapper, { label: 'H1.Dark' }, React.createElement( Heading, { appearance: 'H1' }, 'Page Title' ) ), React.createElement( ExampleWrapper, { label: 'H2.Dark' }, React.createElement( Heading, { appearance: 'H2' }, 'Page Section Title' ) ), React.createElement( ExampleWrapper, { label: 'H3.Dark' }, React.createElement( Heading, { appearance: 'H3' }, 'Card Title' ) ), React.createElement( ExampleWrapper, { label: 'H4.Dark' }, React.createElement( Heading, { appearance: 'H4' }, 'Card Content Title' ) ), React.createElement( ExampleWrapper, { label: 'H5.Dark' }, React.createElement( Heading, { appearance: 'H5' }, 'Card Section Title' ) ), React.createElement( ExampleWrapper, { label: 'H6.Dark' }, React.createElement( Heading, { appearance: 'H6' }, 'Card Section Title' ) ) ); }; var lightHeadingsColumn = function lightHeadingsColumn() { return React.createElement( 'div', { style: { backgroundColor: '#162d3d', padding: '24px' } }, React.createElement( ExampleWrapper, { label: 'H1.Light' }, React.createElement( Heading, { appearance: 'H1', light: true }, 'Page Title' ) ), React.createElement( ExampleWrapper, { label: 'H2.Light' }, React.createElement( Heading, { appearance: 'H2', light: true }, 'Page Section Title' ) ), React.createElement( ExampleWrapper, { label: 'H3.Light' }, React.createElement( Heading, { appearance: 'H3', light: true }, 'Card Title' ) ), React.createElement( ExampleWrapper, { label: 'H4.Light' }, React.createElement( Heading, { appearance: 'H4', light: true }, 'Card Content Title' ) ), React.createElement( ExampleWrapper, { label: 'H5.Light' }, React.createElement( Heading, { appearance: 'H5', light: true }, 'Card Section Title' ) ), React.createElement( ExampleWrapper, { label: 'H6.Light' }, React.createElement( Heading, { appearance: 'H6', light: true }, 'Card Section Title' ) ) ); }; export default (function () { return React.createElement( 'div', { style: { display: 'flex' } }, darkHeadingsColumn(), React.createElement('div', { style: { width: '20px' } }), lightHeadingsColumn() ); });