@labrnth/heading
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -12,2 +12,8 @@ # Change Log | ||
## 0.1.4 - 30/08/2021 | ||
### Added | ||
- Added `variant` prop to separate underlying component and styling variants. | ||
## 0.1.3 - 18/05/2021 | ||
@@ -14,0 +20,0 @@ |
@@ -7,2 +7,4 @@ import React from 'react'; | ||
component?: HeadingVariantsTypes; | ||
variant?: HeadingVariantsTypes; | ||
[key: string]: unknown; | ||
} | ||
@@ -9,0 +11,0 @@ declare const Heading: React.FC<HeadingProps>; |
@@ -1,2 +0,2 @@ | ||
import{jsx as g,css as i}from"@emotion/react";import a from"prop-types";import{useTheme as c}from"@labrnth/theme";var f=["h1","h2","h3","h4","h5","h6","div","label","span","header"],p=(e,n)=>{switch(n){case"div":case"label":case"span":case"header":return i({color:e.colors.gray[1e3],fontSize:e.fontSize.base.size,lineHeight:e.fontSize.base.lineHeight,fontWeight:e.fontWeight.normal,letterSpacing:e.letterSpacing.normal});case"h6":return i({color:e.colors.gray[1e3],fontSize:e.fontSize.base.size,lineHeight:e.fontSize.base.lineHeight,fontWeight:e.fontWeight.normal,letterSpacing:e.letterSpacing.normal});case"h5":return i({color:e.colors.gray[1e3],fontSize:e.fontSize.lg.size,lineHeight:e.fontSize.lg.lineHeight,fontWeight:e.fontWeight.medium,letterSpacing:e.letterSpacing.normal});case"h4":return i({color:e.colors.gray[1e3],fontSize:e.fontSize.xl.size,lineHeight:e.fontSize.xl.lineHeight,fontWeight:e.fontWeight.medium,letterSpacing:e.letterSpacing.normal});case"h3":return i({color:e.colors.gray[1e3],fontSize:e.fontSize["2xl"].size,lineHeight:e.fontSize["2xl"].lineHeight,fontWeight:e.fontWeight.semibold,letterSpacing:e.letterSpacing.tight});case"h2":return i({color:e.colors.gray[1e3],fontSize:e.fontSize["3xl"].size,lineHeight:e.fontSize["3xl"].lineHeight,fontWeight:e.fontWeight.semibold,letterSpacing:e.letterSpacing.tight});case"h1":default:return i({color:e.colors.gray[1e3],fontSize:e.fontSize["4xl"].size,lineHeight:e.fontSize["4xl"].lineHeight,fontWeight:e.fontWeight.bold,letterSpacing:e.letterSpacing.tight})}},o=({children:e,component:n="h1",...r})=>{let t=c(),l=i({fontFamily:t.fonts.heading,margin:`0 0 ${t.spacing[2]}`}),s=p(t,n);return g(n,{className:"Heading",css:[l,s],...r},e)};o.propTypes={children:a.node.isRequired,component:a.oneOf(f)};o.displayName="Heading";var y=o;export{y as default}; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzeCJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqIEBqc3hSdW50aW1lIGNsYXNzaWMgKi9cbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4LCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lU2NoZW1hLCB1c2VUaGVtZSB9IGZyb20gJ0BsYWJybnRoL3RoZW1lJztcblxuY29uc3QgSGVhZGluZ1ZhcmlhbnRzID0gW1xuICAnaDEnLFxuICAnaDInLFxuICAnaDMnLFxuICAnaDQnLFxuICAnaDUnLFxuICAnaDYnLFxuICAnZGl2JyxcbiAgJ2xhYmVsJyxcbiAgJ3NwYW4nLFxuICAnaGVhZGVyJyxcbl0gYXMgY29uc3Q7XG50eXBlIEhlYWRpbmdWYXJpYW50c1R5cGVzID0gdHlwZW9mIEhlYWRpbmdWYXJpYW50c1tudW1iZXJdO1xuXG5jb25zdCBnZXRWYXJpYW50U3R5bGVzID0gKFxuICB0aGVtZTogVGhlbWVTY2hlbWEsXG4gIGNvbXBvbmVudDogSGVhZGluZ1ZhcmlhbnRzVHlwZXNcbikgPT4ge1xuICBzd2l0Y2ggKGNvbXBvbmVudCkge1xuICAgIGNh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LEVBQU0sY0FBYyxVQVdyQyxFQUFrQyxDQUFDLENBQ3ZDLFdBQ0EsVUFBVyxFQUFZLFFBQ3BCLEtBQ0MsQ0FDSixHQUFNLEdBQVEsSUFFUixFQUFhLEVBQUksQ0FDckIsV0FBWSxFQUFNLE1BQU0sUUFDeEIsT0FBUSxPQUFPLEVBQU0sUUFBUSxPQUd6QixFQUFnQixFQUFpQixFQUFPLEdBRTlDLE1BQ0UsR0FBQyxFQUFELENBQ0UsVUFBVSxVQUNWLElBQUssQ0FBQyxFQUFZLE1BQ2QsR0FFSCxJQUtQLEVBQVEsVUFBWSxDQUNsQixTQUFVLEVBQVUsS0FBSyxXQUN6QixVQUFXLEVBQVUsTUFBTSxJQUc3QixFQUFRLFlBQWMsVUFFdEIsR0FBTyxHQUFRIiwKICAibmFtZXMiOiBbXQp9Cg== | ||
import{jsx as f,css as n}from"@emotion/react";import o from"prop-types";import{useTheme as p}from"@labrnth/theme";var r=["h1","h2","h3","h4","h5","h6","div","label","span","header"],S=(e,i)=>{switch(i){case"div":case"label":case"span":case"header":return n({color:e.colors.gray[1e3],fontSize:e.fontSize.base.size,lineHeight:e.fontSize.base.lineHeight,fontWeight:e.fontWeight.normal,letterSpacing:e.letterSpacing.normal});case"h6":return n({color:e.colors.gray[1e3],fontSize:e.fontSize.base.size,lineHeight:e.fontSize.base.lineHeight,fontWeight:e.fontWeight.normal,letterSpacing:e.letterSpacing.normal});case"h5":return n({color:e.colors.gray[1e3],fontSize:e.fontSize.lg.size,lineHeight:e.fontSize.lg.lineHeight,fontWeight:e.fontWeight.medium,letterSpacing:e.letterSpacing.normal});case"h4":return n({color:e.colors.gray[1e3],fontSize:e.fontSize.xl.size,lineHeight:e.fontSize.xl.lineHeight,fontWeight:e.fontWeight.medium,letterSpacing:e.letterSpacing.normal});case"h3":return n({color:e.colors.gray[1e3],fontSize:e.fontSize["2xl"].size,lineHeight:e.fontSize["2xl"].lineHeight,fontWeight:e.fontWeight.semibold,letterSpacing:e.letterSpacing.tight});case"h2":return n({color:e.colors.gray[1e3],fontSize:e.fontSize["3xl"].size,lineHeight:e.fontSize["3xl"].lineHeight,fontWeight:e.fontWeight.semibold,letterSpacing:e.letterSpacing.tight});case"h1":default:return n({color:e.colors.gray[1e3],fontSize:e.fontSize["4xl"].size,lineHeight:e.fontSize["4xl"].lineHeight,fontWeight:e.fontWeight.bold,letterSpacing:e.letterSpacing.tight})}},a=({children:e,component:i="h1",variant:l="h1",...s})=>{let t=p(),g=n({fontFamily:t.fonts.heading,margin:`0 0 ${t.spacing[2]}`}),c=S(t,l);return f(i,{className:"Heading",css:[g,c],...s},e)};a.propTypes={children:o.node.isRequired,component:o.oneOf(r),variant:o.oneOf(r)};a.displayName="Heading";var y=a;export{y as default}; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzeCJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqIEBqc3hSdW50aW1lIGNsYXNzaWMgKi9cbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4LCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lU2NoZW1hLCB1c2VUaGVtZSB9IGZyb20gJ0BsYWJybnRoL3RoZW1lJztcblxuY29uc3QgSGVhZGluZ1ZhcmlhbnRzID0gW1xuICAnaDEnLFxuICAnaDInLFxuICAnaDMnLFxuICAnaDQnLFxuICAnaDUnLFxuICAnaDYnLFxuICAnZGl2JyxcbiAgJ2xhYmVsJyxcbiAgJ3NwYW4nLFxuICAnaGVhZGVyJyxcbl0gYXMgY29uc3Q7XG5cbnR5cGUgSGVhZGluZ1ZhcmlhbnRzVHlwZXMgPSB0eXBlb2YgSGVhZGluZ1ZhcmlhbnRzW251b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AwMF0sXG4gICAgICAgIGZvbnRTaXplOiB0aGVtZS5mb250U2l6ZS5sZy5zaXplLFxuICAgICAgICBsaW5lSGVpZ2h0OiB0aGVtZS5mb250U2l6ZS5sZy5saW5lSGVpZ2h0LFxuICAgICAgICBmb250V2VpZ2h0OiB0aGVtZS5mb250V2VpZ2h0Lm1lZGl1bSxcbiAgICAgICAgbGV0dGVyU3BhY2luZzogdGhlbWUubGV0dGVyU3BhY2luZy5ub3JtYWwsXG4gICAgICB9KTtcbiAgICBjYXNlICdoNCc6XG4gICAgICByZXR1cm4gY3NzKHtcbiAgICAgICAgY29sb3I6IHRoZW1lLmNvbG9ycy5ncmF5WzEwMDBdLFxuICAgICAgICBmb250U2l6ZTogdGhlbWUuZm9udFNpemUueGwuc2l6ZSxcbiAgICAgICAgbGluZUhlaWdodDogdGhlbWUuZm9udFNpemUueGwubGluZUhlaWdodCxcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUuZm9udFdlaWdodC5tZWRpdW0sXG4gICAgICAgIGxldHRlclNwYWNpbmc6IHRoZW1lLmxldHRlclNwYWNpbmcubm9ybWFsLFxuICAgICAgfSk7XG4gICAgY2FzZSAnaDMnOlxuICAgICAgcmV0dXJuIGNzcyh7XG4gICAgICAgIGNvbG9yOiB0aGVtZS5jb2xvcnMuZ3JheVsxMDAwXSxcbiAgICAgICAgZm9udFNpemU6IHRoZW1lLmZvbnRTaXplWycyeGwnXS5zaXplLFxuICAgICAgICBsaW5lSGVpZ2h0OiB0aGVtZS5mb250U2l6ZVsnMnhsJ10ubGluZUhlaWdodCxcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUuZm9udFdlaWdodC5zZW1pYm9sZCxcbiAgICAgICAgbGV0dGVyU3BhY2luZzogdGhlbWUubGV0dGVyU3BhY2luZy50aWdodCxcbiAgICAgIH0pO1xuICAgIGNhc2UgJ2gyJzpcbiAgICAgIHJldHVybiBjc3Moe1xuICAgICAgICBjb2xvcjogdGhlbWUuY29sb3JzLmdyY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QUN6QixTQUFVLEVBQU0sU0FBUyxPQUFPLEtBQ2hDLFdBQVksRUFBTSxTQUFTLE9BQU8sV0FDbEMsV0FBWSxFQUFNLFdBQVcsU0FDN0IsY0FBZSxFQUFNLGNBQWMsWUFFbEMsYUFFSCxNQUFPLEdBQUksQ0FDVCxNQUFPLEVBQU0sT0FBTyxLQUFLLEtBQ3pCLFNBQVUsRUFBTSxTQUFTLE9BQU8sS0FDaEMsV0FBWSxFQUFNLFNBQVMsT0FBTyxXQUNsQyxXQUFZLEVBQU0sV0FBVyxLQUM3QixjQUFlLEVBQU0sY0FBYyxVQWFyQyxFQUFrQyxDQUFDLENBQ3ZDLFdBQ0EsVUFBVyxFQUFZLEtBQ3ZCLFVBQVUsUUFDUCxLQUNDLENBQ0osR0FBTSxHQUFRLElBRVIsRUFBYSxFQUFJLENBQ3JCLFdBQVksRUFBTSxNQUFNLFFBQ3hCLE9BQVEsT0FBTyxFQUFNLFFBQVEsT0FHekIsRUFBZ0IsRUFBaUIsRUFBTyxHQUU5QyxNQUNFLEdBQUMsRUFBRCxDQUNFLFVBQVUsVUFDVixJQUFLLENBQUMsRUFBWSxNQUNkLEdBRUgsSUFLUCxFQUFRLFVBQVksQ0FDbEIsU0FBVSxFQUFVLEtBQUssV0FDekIsVUFBVyxFQUFVLE1BQU0sR0FDM0IsUUFBUyxFQUFVLE1BQU0sSUFHM0IsRUFBUSxZQUFjLFVBRXRCLEdBQU8sR0FBUSIsCiAgIm5hbWVzIjogW10KfQo= |
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true}); | ||
@@ -44,4 +44,4 @@ var __export = (target, all) => { | ||
]; | ||
var getVariantStyles = (theme, component) => { | ||
switch (component) { | ||
var getVariantStyles = (theme, variant) => { | ||
switch (variant) { | ||
case "div": | ||
@@ -112,2 +112,3 @@ case "label": | ||
component: Component = "h1", | ||
variant = "h1", | ||
...otherProps | ||
@@ -120,3 +121,3 @@ }) => { | ||
}); | ||
const headingStyles = getVariantStyles(theme, Component); | ||
const headingStyles = getVariantStyles(theme, variant); | ||
return /* @__PURE__ */ (0, import_react.jsx)(Component, { | ||
@@ -130,6 +131,7 @@ className: "Heading", | ||
children: import_prop_types.default.node.isRequired, | ||
component: import_prop_types.default.oneOf(HeadingVariants) | ||
component: import_prop_types.default.oneOf(HeadingVariants), | ||
variant: import_prop_types.default.oneOf(HeadingVariants) | ||
}; | ||
Heading.displayName = "Heading"; | ||
var src_default = Heading; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzeCJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqIEBqc3hSdW50aW1lIGNsYXNzaWMgKi9cbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4LCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lU2NoZW1hLCB1c2VUaGVtZSB9IGZyb20gJ0BsYWJybnRoL3RoZW1lJztcblxuY29uc3QgSGVhZGluZ1ZhcmlhbnRzID0gW1xuICAnaDEnLFxuICAnaDInLFxuICAnaDMnLFxuICAnaDQnLFxuICAnaDUnLFxuICAnaDYnLFxuICAnZGl2JyxcbiAgJ2xhYmVsJyxcbiAgJ3NwYW4nLFxuICAnaGVhZGVyJyxcbl0gYXMgY29uc3Q7XG50eXBlIEhlYWRpbmdWYXJpY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b250U2l6ZS5sZy5saW5lSGVpZ2h0LFxuICAgICAgICBmb250V2VpZ2h0OiB0aGVtZS5mb250V2VpZ2h0Lm1lZGl1bSxcbiAgICAgICAgbGV0dGVyU3BhY2luZzogdGhlbWUubGV0dGVyU3BhY2luZy5ub3JtYWwsXG4gICAgICB9KTtcbiAgICBjYXNlICdoNCc6XG4gICAgICByZXR1cm4gY3NzKHtcbiAgICAgICAgY29sb3I6IHRoZW1lLmNvbG9ycy5ncmF5WzEwMDBdLFxuICAgICAgICBmb250U2l6ZTogdGhlbWUuZm9udFNpemUueGwuc2l6ZSxcbiAgICAgICAgbGluZUhlaWdodDogdGhlbWUuZm9udFNpemUueGwubGluZUhlaWdodCxcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUuZm9udFdlaWdodC5tZWRpdW0sXG4gICAgICAgIGxldHRlclNwYWNpbmc6IHRoZW1lLmxldHRlclNwYWNpbmcubm9ybWFsLFxuICAgICAgfSk7XG4gICAgY2FzZSAnaDMnOlxuICAgICAgcmV0dXJuIGNzcyh7XG4gICAgICAgIGNvbG9yOiB0aGVtZS5jb2xvcnMuZ3JheVsxMDAwXSxcbiAgICAgICAgZm9udFNpemU6IHRoZW1lLmZvbnRTaXplWycyeGwnXS5zaXplLFxuICAgICAgICBsaW5lSGVpZ2h0OiB0aGVtZS5mb250U2l6ZVsnMnhsJ10ubGluZUhlaWdodCxcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUuZm9udFdlaWdodC5zZW1pYm9sZCxcbiAgICAgICAgbGV0dGVyU3BhY2luZzogdGhlbWUubGV0dGVyU3BhY2luZy50aWdodCxcbiAgICAgIH0pO1xuICAgIGNhc2UgJ2gyJzpcbiAgICAgIHJldHVybiBjc3Moe1xuICAgICAgICBjb2xvcjogdGhlbWUuY29sb3JzLmdyYXlbMTAwMF0sXG4gICAgICAgIGZvbnRTaXplOiB0aGVtZS5mb250U2l6ZVsnM3hsJ10uc2l6ZSxcbiAgICAgICAgbGluZUhlaWdodDog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BQWdCLGlCQUFpQixPQUFPO0FBRTlDLFNBQ0Usc0NBQUMsV0FBRDtBQUFBLElBQ0UsV0FBVTtBQUFBLElBQ1YsS0FBSyxDQUFDLFlBQVk7QUFBQSxPQUNkO0FBQUEsS0FFSDtBQUFBO0FBS1AsUUFBUSxZQUFZO0FBQUEsRUFDbEIsVUFBVSwwQkFBVSxLQUFLO0FBQUEsRUFDekIsV0FBVywwQkFBVSxNQUFNO0FBQUEsRUFDM0IsU0FBUywwQkFBVSxNQUFNO0FBQUE7QUFHM0IsUUFBUSxjQUFjO0FBRXRCLElBQU8sY0FBUTsiLAogICJuYW1lcyI6IFtdCn0K |
{ | ||
"name": "@labrnth/heading", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A heading component.", | ||
@@ -5,0 +5,0 @@ "source": "./src/index.tsx", |
@@ -21,5 +21,6 @@ # @labrnth/heading | ||
| Prop | Type | Default | Description | | ||
| ---------- | -------------------------------------------------------------------- | ------- | ---------------------------------------- | | ||
| children | `React.ReactNode` | | The contents of the heading. | | ||
| component? | `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `div`, `label`, `span`, `header` | `h1` | The underlying component of the heading. | | ||
| Prop | Type | Default | Description | | ||
| ---------- | -------------------------------------------------------------------- | ------- | ------------------------------------------ | | ||
| children | `React.ReactNode` | | The contents of the heading. | | ||
| component? | `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `div`, `label`, `span`, `header` | `h1` | The underlying component of the heading. | | ||
| variant? | `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `div`, `label`, `span`, `header` | `h1` | The style variant to apply to the heading. | |
Sorry, the diff of this file is not supported yet
24459
207
26