Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@leafygreen-ui/tokens

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/tokens - npm Package Compare versions

Comparing version 2.1.4 to 2.2.0

dist/size.d.ts

6

CHANGELOG.md
# @leafygreen-ui/tokens
## 2.2.0
### Minor Changes
- 3fe03b50: Adds `Size` token
## 2.1.4

@@ -4,0 +10,0 @@

2

dist/esm/index.js

@@ -1,2 +0,2 @@

import{palette as e}from"@leafygreen-ui/palette";var t={Mobile:320,Tablet:768,Desktop:1024,XLDesktop:1440};function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var r,o,n={Dark:"dark",Light:"light"},a=(i(r={},n.Light,{default:"0 0 0 2px ".concat(e.white,", 0 0 0 4px ").concat(e.blue.light1),input:"0 0 0 3px ".concat(e.blue.light1)}),i(r,n.Dark,{default:"0 0 0 2px ".concat(e.black,", 0 0 0 4px ").concat(e.blue.light1),input:"0 0 0 3px ".concat(e.blue.light1)}),r),l={default:"'Euclid Circular A', 'Helvetica Neue', Helvetica, Arial, sans-serif",serif:"'MongoDB Value Serif', 'Times New Roman', serif",code:"'Source Code Pro', Menlo, monospace"},c={regular:400,medium:500,bold:700},u=(i(o={},n.Light,{gray:"0 0 0 3px ".concat(e.gray.light2),green:"0 0 0 3px ".concat(e.green.light2),red:"0 0 0 3px ".concat(e.red.light2)}),i(o,n.Dark,{gray:"0 0 0 3px ".concat(e.gray.dark2),green:"0 0 0 3px ".concat(e.green.dark3),red:"0 0 0 3px ".concat(e.yellow.dark3)}),o),g={1:4,2:8,3:16,4:24,5:32,6:64,7:88},f={faster:100,default:150,slower:300,slowest:500},d={Body1:13,Body2:16},p={body1:{fontSize:d.Body1,lineHeight:20},body2:{fontSize:d.Body2,lineHeight:28},code1:{fontSize:13,lineHeight:20},code2:{fontSize:15,lineHeight:24},disclaimer:{fontSize:12,lineHeight:20},large:{fontSize:18,lineHeight:22}};export{d as BaseFontSize,n as Mode,t as breakpoints,a as focusRing,l as fontFamilies,c as fontWeights,u as hoverRing,g as spacing,f as transitionDuration,p as typeScales};
import{palette as e}from"@leafygreen-ui/palette";var t={Mobile:320,Tablet:768,Desktop:1024,XLDesktop:1440};function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,l,a={Dark:"dark",Light:"light"},o=(r(i={},a.Light,{default:"0 0 0 2px ".concat(e.white,", 0 0 0 4px ").concat(e.blue.light1),input:"0 0 0 3px ".concat(e.blue.light1)}),r(i,a.Dark,{default:"0 0 0 2px ".concat(e.black,", 0 0 0 4px ").concat(e.blue.light1),input:"0 0 0 3px ".concat(e.blue.light1)}),i),n={default:"'Euclid Circular A', 'Helvetica Neue', Helvetica, Arial, sans-serif",serif:"'MongoDB Value Serif', 'Times New Roman', serif",code:"'Source Code Pro', Menlo, monospace"},c={regular:400,medium:500,bold:700},u=(r(l={},a.Light,{gray:"0 0 0 3px ".concat(e.gray.light2),green:"0 0 0 3px ".concat(e.green.light2),red:"0 0 0 3px ".concat(e.red.light2)}),r(l,a.Dark,{gray:"0 0 0 3px ".concat(e.gray.dark2),green:"0 0 0 3px ".concat(e.green.dark3),red:"0 0 0 3px ".concat(e.yellow.dark3)}),l),g={XSmall:"xsmall",Small:"small",Default:"default",Large:"large"},f={1:4,2:8,3:16,4:24,5:32,6:64,7:88},d={faster:100,default:150,slower:300,slowest:500},p={Body1:13,Body2:16},m={body1:{fontSize:p.Body1,lineHeight:20},body2:{fontSize:p.Body2,lineHeight:28},code1:{fontSize:13,lineHeight:20},code2:{fontSize:15,lineHeight:24},disclaimer:{fontSize:12,lineHeight:20},large:{fontSize:18,lineHeight:22}};export{p as BaseFontSize,a as Mode,g as Size,t as breakpoints,o as focusRing,n as fontFamilies,c as fontWeights,u as hoverRing,f as spacing,d as transitionDuration,m as typeScales};
//# sourceMappingURL=index.js.map

@@ -7,2 +7,3 @@ export { default as breakpoints } from './breakpoints';

export { Mode } from './mode';
export { Size } from './size';
export { default as spacing } from './spacing';

@@ -9,0 +10,0 @@ export { default as transitionDuration } from './transitions';

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@leafygreen-ui/palette")):"function"==typeof define&&define.amd?define(["exports","@leafygreen-ui/palette"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/tokens"]={},e["@leafygreen-ui/palette"])}(this,(function(e,t){"use strict";function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var n,o,a={Dark:"dark",Light:"light"},r=(i(n={},a.Light,{default:"0 0 0 2px ".concat(t.palette.white,", 0 0 0 4px ").concat(t.palette.blue.light1),input:"0 0 0 3px ".concat(t.palette.blue.light1)}),i(n,a.Dark,{default:"0 0 0 2px ".concat(t.palette.black,", 0 0 0 4px ").concat(t.palette.blue.light1),input:"0 0 0 3px ".concat(t.palette.blue.light1)}),n),l=(i(o={},a.Light,{gray:"0 0 0 3px ".concat(t.palette.gray.light2),green:"0 0 0 3px ".concat(t.palette.green.light2),red:"0 0 0 3px ".concat(t.palette.red.light2)}),i(o,a.Dark,{gray:"0 0 0 3px ".concat(t.palette.gray.dark2),green:"0 0 0 3px ".concat(t.palette.green.dark3),red:"0 0 0 3px ".concat(t.palette.yellow.dark3)}),o),c={Body1:13,Body2:16},p={body1:{fontSize:c.Body1,lineHeight:20},body2:{fontSize:c.Body2,lineHeight:28},code1:{fontSize:13,lineHeight:20},code2:{fontSize:15,lineHeight:24},disclaimer:{fontSize:12,lineHeight:20},large:{fontSize:18,lineHeight:22}};e.BaseFontSize=c,e.Mode=a,e.breakpoints={Mobile:320,Tablet:768,Desktop:1024,XLDesktop:1440},e.focusRing=r,e.fontFamilies={default:"'Euclid Circular A', 'Helvetica Neue', Helvetica, Arial, sans-serif",serif:"'MongoDB Value Serif', 'Times New Roman', serif",code:"'Source Code Pro', Menlo, monospace"},e.fontWeights={regular:400,medium:500,bold:700},e.hoverRing=l,e.spacing={1:4,2:8,3:16,4:24,5:32,6:64,7:88},e.transitionDuration={faster:100,default:150,slower:300,slowest:500},e.typeScales=p}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@leafygreen-ui/palette")):"function"==typeof define&&define.amd?define(["exports","@leafygreen-ui/palette"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/tokens"]={},e["@leafygreen-ui/palette"])}(this,(function(e,t){"use strict";function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var a,l,n={Dark:"dark",Light:"light"},o=(i(a={},n.Light,{default:"0 0 0 2px ".concat(t.palette.white,", 0 0 0 4px ").concat(t.palette.blue.light1),input:"0 0 0 3px ".concat(t.palette.blue.light1)}),i(a,n.Dark,{default:"0 0 0 2px ".concat(t.palette.black,", 0 0 0 4px ").concat(t.palette.blue.light1),input:"0 0 0 3px ".concat(t.palette.blue.light1)}),a),r=(i(l={},n.Light,{gray:"0 0 0 3px ".concat(t.palette.gray.light2),green:"0 0 0 3px ".concat(t.palette.green.light2),red:"0 0 0 3px ".concat(t.palette.red.light2)}),i(l,n.Dark,{gray:"0 0 0 3px ".concat(t.palette.gray.dark2),green:"0 0 0 3px ".concat(t.palette.green.dark3),red:"0 0 0 3px ".concat(t.palette.yellow.dark3)}),l),c={Body1:13,Body2:16},u={body1:{fontSize:c.Body1,lineHeight:20},body2:{fontSize:c.Body2,lineHeight:28},code1:{fontSize:13,lineHeight:20},code2:{fontSize:15,lineHeight:24},disclaimer:{fontSize:12,lineHeight:20},large:{fontSize:18,lineHeight:22}};e.BaseFontSize=c,e.Mode=n,e.Size={XSmall:"xsmall",Small:"small",Default:"default",Large:"large"},e.breakpoints={Mobile:320,Tablet:768,Desktop:1024,XLDesktop:1440},e.focusRing=o,e.fontFamilies={default:"'Euclid Circular A', 'Helvetica Neue', Helvetica, Arial, sans-serif",serif:"'MongoDB Value Serif', 'Times New Roman', serif",code:"'Source Code Pro', Menlo, monospace"},e.fontWeights={regular:400,medium:500,bold:700},e.hoverRing=r,e.spacing={1:4,2:8,3:16,4:24,5:32,6:64,7:88},e.transitionDuration={faster:100,default:150,slower:300,slowest:500},e.typeScales=u}));
//# sourceMappingURL=index.js.map

@@ -5,4 +5,4 @@ declare const Mode: {

};
declare type Mode = typeof Mode[keyof typeof Mode];
declare type Mode = (typeof Mode)[keyof typeof Mode];
export { Mode };
//# sourceMappingURL=mode.d.ts.map

@@ -5,3 +5,3 @@ export declare const BaseFontSize: {

};
export declare type BaseFontSize = typeof BaseFontSize[keyof typeof BaseFontSize];
export declare type BaseFontSize = (typeof BaseFontSize)[keyof typeof BaseFontSize];
/**

@@ -8,0 +8,0 @@ * Defines font sizes and line heights of common typographic elements.

{
"name": "@leafygreen-ui/tokens",
"version": "2.1.4",
"version": "2.2.0",
"description": "leafyGreen UI Kit Tokens",

@@ -30,3 +30,3 @@ "main": "./dist/index.js",

"lodash": "^4.17.21",
"@leafygreen-ui/lib": "^10.4.3"
"@leafygreen-ui/lib": "^11.0.0"
},

@@ -33,0 +33,0 @@ "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/tokens",

@@ -7,4 +7,5 @@ export { default as breakpoints } from './breakpoints';

export { Mode } from './mode';
export { Size } from './size';
export { default as spacing } from './spacing';
export { default as transitionDuration } from './transitions';
export { BaseFontSize, default as typeScales } from './typeScales';

@@ -6,4 +6,4 @@ const Mode = {

type Mode = typeof Mode[keyof typeof Mode];
type Mode = (typeof Mode)[keyof typeof Mode];
export { Mode };

@@ -6,3 +6,3 @@ export const BaseFontSize = {

export type BaseFontSize = typeof BaseFontSize[keyof typeof BaseFontSize];
export type BaseFontSize = (typeof BaseFontSize)[keyof typeof BaseFontSize];

@@ -9,0 +9,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc