@fvc/typography 1.0.1 → 1.1.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/dist/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import t,{useMemo as r}from"react";import{Typography as o}from"antd";import{cssVarResolver as e}from"@fvc/utils";var n=function(){return n=Object.assign||function(t){for(var r,o=1,e=arguments.length;o<e;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},n.apply(this,arguments)};function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var p,l={exports:{}};
1
+ import t,{useMemo as r}from"react";import{Typography as o}from"antd";import{cssVarResolver as e}from"@fvc/utils";var n=function(){return n=Object.assign||function(t){for(var r,o=1,e=arguments.length;o<e;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},n.apply(this,arguments)};function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var p,y={exports:{}};
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */var y,i=a((p||(p=1,y=l,function(){var t={}.hasOwnProperty;function r(){for(var t="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(t=e(t,o(n)))}return t}function o(o){if("string"==typeof o||"number"==typeof o)return o;if("object"!=typeof o)return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var n="";for(var a in o)t.call(o,a)&&o[a]&&(n=e(n,a));return n}function e(t,r){return r?t?t+" "+r:t+r:t}y.exports?(r.default=r,y.exports=r):window.classNames=r}()),l.exports));var h={"fvc-typography":"Typography-module_fvc-typography__JliF6"};!function(t,r){void 0===r&&(r={});var o=r.insertAt;if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}('.Typography-module_fvc-typography__JliF6 + h1.Typography-module_fvc-typography__JliF6, .Typography-module_fvc-typography__JliF6 + h2.Typography-module_fvc-typography__JliF6, .Typography-module_fvc-typography__JliF6 + h3.Typography-module_fvc-typography__JliF6, .Typography-module_fvc-typography__JliF6 + h4.Typography-module_fvc-typography__JliF6, .Typography-module_fvc-typography__JliF6 + h5.Typography-module_fvc-typography__JliF6,\n.Typography-module_fvc-typography__JliF6 p,\n.Typography-module_fvc-typography__JliF6 div {\n margin: 0;\n}\n\n.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-family: var(--text-ff, "Roboto", sans-serif);\n}\n\narticle.Typography-module_fvc-typography__JliF6,\nspan.Typography-module_fvc-typography__JliF6,\ndiv.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 16px);\n font-weight: var(--text-fw, 400);\n line-height: var(--text-lh, 20px);\n}\n\na.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 16px);\n font-weight: var(--text-fw, 400);\n line-height: var(--text-lh, 20px);\n color: var(--text-color, var(--link-on-light-bg-color-500));\n text-decoration: underline;\n}\na.Typography-module_fvc-typography__JliF6:hover {\n color: var(--text-color, var(--link-on-light-bg-color-500));\n}\n\nh1.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 32px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 32px);\n}\n\nh2.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 24px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 32px);\n}\n\nh3.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 20px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 20px);\n}\n\nh4.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 13px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 17px);\n text-transform: uppercase;\n}\n\nh5.Typography-module_fvc-typography__JliF6 {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 14px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 17px);\n}');var f="fvc-typography";function c(o){var a=function(a){var p,l=a.align,y=a.color,c=a.className,v=a.font,g=a.lineHeight,d=a.size,u=a.testId,x=a.underline,_=void 0!==x&&x,s=a.weight,m=function(t,r){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(o[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(t);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(o[e[n]]=t[e[n]])}return o}(a,["align","color","className","font","lineHeight","size","testId","underline","weight"]),T=i(h[f],c,((p={})["".concat(f,"-underline")]=_,p)),w=r((function(){return n({"--text-color":y,"--text-ff":v,"--text-lh":e(g),"--text-fz":e(d),"--text-fw":s,"--text-align":l},m.style)}),[l,y,v,g,m.style,d,s]);return t.createElement(o,n({},m,{prefixCls:f,className:T,"data-test-id":u,style:w}))};return a.displayName=o.displayName,a}var v=c(o),g=c(o.Title),d=c(o.Text),u=c(o.Paragraph),x=c(o.Link);v.Title=g,v.Text=d,v.Paragraph=u,v.Link=x;export{v as Typography};
6
+ */var i,l=a((p||(p=1,i=y,function(){var t={}.hasOwnProperty;function r(){for(var t="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(t=e(t,o(n)))}return t}function o(o){if("string"==typeof o||"number"==typeof o)return o;if("object"!=typeof o)return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var n="";for(var a in o)t.call(o,a)&&o[a]&&(n=e(n,a));return n}function e(t,r){return r?t?t+" "+r:t+r:t}i.exports?(r.default=r,i.exports=r):window.classNames=r}()),y.exports));!function(t,r){void 0===r&&(r={});var o=r.insertAt;if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}('.Typography_fvc-typography__zwkFk + h1.Typography_fvc-typography__zwkFk, .Typography_fvc-typography__zwkFk + h2.Typography_fvc-typography__zwkFk, .Typography_fvc-typography__zwkFk + h3.Typography_fvc-typography__zwkFk, .Typography_fvc-typography__zwkFk + h4.Typography_fvc-typography__zwkFk, .Typography_fvc-typography__zwkFk + h5.Typography_fvc-typography__zwkFk,\n.Typography_fvc-typography__zwkFk p,\n.Typography_fvc-typography__zwkFk div {\n margin: 0;\n}\n\n.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-family: var(--text-ff, "Roboto", sans-serif);\n}\n\narticle.Typography_fvc-typography__zwkFk,\nspan.Typography_fvc-typography__zwkFk,\ndiv.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 16px);\n font-weight: var(--text-fw, 400);\n line-height: var(--text-lh, 20px);\n}\n\na.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 16px);\n font-weight: var(--text-fw, 400);\n line-height: var(--text-lh, 20px);\n color: var(--text-color, var(--link-on-light-bg-color-500));\n text-decoration: underline;\n}\na.Typography_fvc-typography__zwkFk:hover {\n color: var(--text-color, var(--link-on-light-bg-color-500));\n}\n\nh1.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 32px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 32px);\n}\n\nh2.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 24px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 32px);\n}\n\nh3.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 20px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 20px);\n}\n\nh4.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 13px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 17px);\n text-transform: uppercase;\n}\n\nh5.Typography_fvc-typography__zwkFk {\n color: var(--text-color, var(--body-text-color-1000));\n font-size: var(--text-fz, 14px);\n font-weight: var(--text-fw, 700);\n line-height: var(--text-lh, 17px);\n}');var h="fvc-typography";function f(o){var a=function(a){var p,y=a.align,i=a.color,f=a.className,c=a.font,v=void 0===c?"Montserrat":c,g=a.lineHeight,x=a.size,_=a.testId,s=a.underline,d=void 0!==s&&s,u=a.weight,k=function(t,r){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(o[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(t);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(o[e[n]]=t[e[n]])}return o}(a,["align","color","className","font","lineHeight","size","testId","underline","weight"]),w=l(h,f,((p={})["".concat(h,"-underline")]=d,p)),z=r((function(){return n({"--text-color":i,"--text-ff":v,"--text-lh":e(g),"--text-fz":e(x),"--text-fw":u,"--text-align":y},k.style)}),[y,i,v,g,k.style,x,u]);return t.createElement(o,n({},k,{prefixCls:h,className:w,"data-test-id":_,style:z}))};return a.displayName=o.displayName,a}var c=f(o),v=f(o.Title),g=f(o.Text),x=f(o.Paragraph),_=f(o.Link);c.Title=v,c.Text=g,c.Paragraph=x,c.Link=_;export{c as Typography};
@@ -1,2 +1,3 @@
1
1
  import { TypographyComponent } from './types/Typography.types';
2
+ import './Typography.scss';
2
3
  export declare const Typography: TypographyComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/typography",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "main": "./dist/lib/index.js",
5
5
  "types": "./dist/lib/typography/src/index.d.ts",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "scripts": {
21
- "build": "rm -rf dist && eslint --config ../../eslint.config.js . && bunx tsc --noEmit && rollup -c ./rollup.config.mjs"
21
+ "build": "rm -rf dist && rm -rf .rollup.cache && eslint --config ../../eslint.config.js . && bunx tsc --noEmit && rollup -c ./rollup.config.mjs"
22
22
  },
23
23
  "dependencies": {
24
24
  "react": "^18.0.0",