New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@loadsmart/miranda-tokens

Package Overview
Dependencies
Maintainers
0
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadsmart/miranda-tokens - npm Package Compare versions

Comparing version 2.92.0 to 2.93.0-alpha.1

1

dist/index.d.ts

@@ -8,1 +8,2 @@ export type { BackgroundColorToken, BorderRadiusToken, BorderToken, BorderWidthToken, ColorToken, ElevationToken, FontFamilyToken, FontSizeToken, FontWeightToken, GlobalToken, GlowToken, LineHeightToken, MediaQueryToken, OpacityToken, SpacingToken, SpacingTokenWithNone, Token, } from './types';

export { getHexColor } from './utils/get-hex-color';
export * from './themes';

2

dist/index.js

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

"use strict";var r=require("./themes.js");function t(r,t,e){if(e||2===arguments.length)for(var o,n=0,a=t.length;n<a;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return r.concat(o||Array.prototype.slice.call(t))}function e(r,t){return r.filter((function(r){return r.startsWith(t)}))}function o(r,t){return r.filter((function(r){return!r.startsWith(t)}))}"function"==typeof SuppressedError&&SuppressedError;var n=Object.keys(r.LoadsmartTheme),a=t([],o(o(n,"brand-"),"platform-"),!0).sort((function(r,t){return r.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})),i=e(a,"color-background-"),s=e(a,"border-radius-"),c=e(a,"border-"),u=e(a,"color-"),p=e(a,"elevation-"),l=e(a,"font-family-"),O=e(a,"font-size-"),S=e(a,"font-weight-"),E=e(a,"global-"),T=e(a,"glow-"),N=e(a,"line-height-"),f=e(a,"opacity-"),_=e(a,"spacing-"),x=e(a,"media-"),d=t(["none"],_,!0);function K(t){return r.LoadsmartTheme[t]}function m(r){var t=K(r);return null==t?t:"--m-".concat(r)}function h(r,t){var e=K(r);return null==e?"":r.startsWith("color-")?"rgba(var(".concat(m(r),", ").concat(e,"), ").concat(null!=t?t:1,")"):"var(".concat(m(r),", ").concat(e,")")}exports.BACKGROUND_COLOR_TOKENS=i,exports.BORDER_RADIUS_TOKENS=s,exports.BORDER_TOKENS=c,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=u,exports.ELEVATION_TOKENS=p,exports.FONT_FAMILY_TOKENS=l,exports.FONT_SIZE_TOKENS=O,exports.FONT_WEIGHT_TOKENS=S,exports.GLOBAL_TOKENS=E,exports.GLOW_TOKENS=T,exports.LINE_HEIGHT_TOKENS=N,exports.MEDIA_QUERY_TOKENS=x,exports.OPACITY_TOKENS=f,exports.SPACING_TOKENS=_,exports.SPACING_TOKENS_WITH_NONE=d,exports.TOKENS=a,exports.getHexColor=function(r){var t=String(K(r)||"");if(t){var e=t.split(", ").map(Number);if(3!==e.length)throw new Error("color token must be in the `R, G, B` format");return e.reduce((function(r,t){var e=t.toString(16).padStart(2,"0");return r.concat(e)}),"#")}},exports.getToken=K,exports.toCSSValue=h,exports.toCSSVariable=m,exports.toSpacingCSSValue=function(r,t){var e,o=t?h(t):"";return r&&null!==(e="none"===r?"0":h(r))&&void 0!==e?e:o};
"use strict";var r=require("./themes.js");function t(r,t,e){if(e||2===arguments.length)for(var o,n=0,a=t.length;n<a;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return r.concat(o||Array.prototype.slice.call(t))}function e(r,t){return r.filter((function(r){return r.startsWith(t)}))}function o(r,t){return r.filter((function(r){return!r.startsWith(t)}))}"function"==typeof SuppressedError&&SuppressedError;var n=Object.keys(r.LoadsmartTheme),a=t([],o(o(n,"brand-"),"platform-"),!0).sort((function(r,t){return r.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})),s=e(a,"color-background-"),i=e(a,"border-radius-"),c=e(a,"border-"),u=e(a,"color-"),p=e(a,"elevation-"),l=e(a,"font-family-"),O=e(a,"font-size-"),S=e(a,"font-weight-"),E=e(a,"global-"),T=e(a,"glow-"),N=e(a,"line-height-"),f=e(a,"opacity-"),_=e(a,"spacing-"),x=e(a,"media-"),d=t(["none"],_,!0);function m(t){return r.LoadsmartTheme[t]}function h(r){var t=m(r);return null==t?t:"--m-".concat(r)}function K(r,t){var e=m(r);return null==e?"":r.startsWith("color-")?"rgba(var(".concat(h(r),", ").concat(e,"), ").concat(null!=t?t:1,")"):"var(".concat(h(r),", ").concat(e,")")}exports.LoadsmartTheme=r.LoadsmartTheme,exports.BACKGROUND_COLOR_TOKENS=s,exports.BORDER_RADIUS_TOKENS=i,exports.BORDER_TOKENS=c,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=u,exports.ELEVATION_TOKENS=p,exports.FONT_FAMILY_TOKENS=l,exports.FONT_SIZE_TOKENS=O,exports.FONT_WEIGHT_TOKENS=S,exports.GLOBAL_TOKENS=E,exports.GLOW_TOKENS=T,exports.LINE_HEIGHT_TOKENS=N,exports.MEDIA_QUERY_TOKENS=x,exports.OPACITY_TOKENS=f,exports.SPACING_TOKENS=_,exports.SPACING_TOKENS_WITH_NONE=d,exports.TOKENS=a,exports.getHexColor=function(r){var t=String(m(r)||"");if(t){var e=t.split(", ").map(Number);if(3!==e.length)throw new Error("color token must be in the `R, G, B` format");return e.reduce((function(r,t){var e=t.toString(16).padStart(2,"0");return r.concat(e)}),"#")}},exports.getToken=m,exports.toCSSValue=K,exports.toCSSVariable=h,exports.toSpacingCSSValue=function(r,t){var e,o=t?K(t):"";return r&&null!==(e="none"===r?"0":K(r))&&void 0!==e?e:o};
{
"name": "@loadsmart/miranda-tokens",
"version": "2.92.0",
"version": "2.93.0-alpha.1",
"description": "Design tokens for the Miranda Design System",

@@ -8,4 +8,11 @@ "main": "dist/index.js",

"files": [
"dist/*"
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./themes/web/loadsmart.css": "./dist/tokens/web/loadsmart/variables.css"
},
"scripts": {

@@ -28,7 +35,5 @@ "clean": "rimraf dist",

"license": "MIT",
"dependencies": {
"@loadsmart/miranda-toolset": "*"
},
"dependencies": {},
"devDependencies": {
"jest": "^29.4.1",
"jest": "^29.7.0",
"rimraf": "^5.0.0",

@@ -35,0 +40,0 @@ "style-dictionary": "^3.7.2"

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