@tapie-kr/inspire-react
Version:
React Component Collection for INSPIRE
23 lines (19 loc) • 2.18 kB
JavaScript
/* eslint-disable */
/*
* INSPIRE : Creative Kit
* React Component Collection for INSPIRE
*
* This file is generated automatically. Do not modify it manually
* Generated at : 2025. 3. 4. 오후 6:18:13
* @tapie-kr/inspire-react version: 0.2.15
*
* (c) 2025 TAPIE. All rights reserved.
* MIT License
*/
;
var jsxRuntime = require('react/jsx-runtime');
var builder = require('./builder.js');
var shared = require('./shared.js');
const TypographyContract={[shared.TypographyVariant.GIANT]:shared.TypographyTag.H1,[shared.TypographyVariant.JUMBO]:shared.TypographyTag.H1,[shared.TypographyVariant.LARGE]:shared.TypographyTag.H1,[shared.TypographyVariant.MEDIUM]:shared.TypographyTag.H2,[shared.TypographyVariant.MODERATE]:shared.TypographyTag.H3,[shared.TypographyVariant.BASE]:shared.TypographyTag.P,[shared.TypographyVariant.PETITE]:shared.TypographyTag.P,[shared.TypographyVariant.MICRO]:shared.TypographyTag.P,[shared.TypographyVariant.TINY]:shared.TypographyTag.P,[shared.TypographyVariant.MINI]:shared.TypographyTag.P};function typographyFactory(variant,tag=shared.TypographyTag.P){const defaultTag=TypographyContract[variant]||tag;return props=>jsxRuntime.jsx(builder.default,{tag:defaultTag,className:shared.typographyVariantClass[variant],props:props})}function Typography(props){const TargetTypo=typographyFactory(props.variant||shared.TypographyVariant.BASE,props.tag);return jsxRuntime.jsx(TargetTypo,{...props})}Typography.Giant=typographyFactory(shared.TypographyVariant.GIANT);Typography.Jumbo=typographyFactory(shared.TypographyVariant.JUMBO);Typography.Large=typographyFactory(shared.TypographyVariant.LARGE);Typography.Medium=typographyFactory(shared.TypographyVariant.MEDIUM);Typography.Moderate=typographyFactory(shared.TypographyVariant.MODERATE);Typography.Base=typographyFactory(shared.TypographyVariant.BASE);Typography.Petite=typographyFactory(shared.TypographyVariant.PETITE);Typography.Micro=typographyFactory(shared.TypographyVariant.MICRO);Typography.Tiny=typographyFactory(shared.TypographyVariant.TINY);Typography.Mini=typographyFactory(shared.TypographyVariant.MINI);
exports.Typo = Typography;
exports.Typography = Typography;