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

@loadsmart/miranda-tokens

Package Overview
Dependencies
Maintainers
22
Versions
291
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 1.2.2 to 1.3.0

dist/loadsmart.theme-1b274ec2.js

4

dist/index.d.ts
export { default as getToken } from './utils/get-token';
export { default as toCSSVariable } from './utils/to-css-variable';
export { default as toCSSValue } from './utils/to-css-value';
export type { TokenValue, Token, ColorToken, BackgroundColorToken, SpacingToken, FontFamilyToken, FontSizeToken, FontWeightToken, LineHeightToken, BorderToken, BorderRadiusToken, BorderWidthToken, OpacityToken, ElevationToken, GlowToken, } from './types';
export { TOKENS, COLOR_TOKENS, BACKGROUND_COLOR_TOKENS, SPACING_TOKENS, FONT_FAMILY_TOKENS, FONT_SIZE_TOKENS, FONT_WEIGHT_TOKENS, LINE_HEIGHT_TOKENS, BORDER_TOKENS, BORDER_RADIUS_TOKENS, BORDER_WIDTH_TOKENS, OPACITY_TOKENS, ELEVATION_TOKENS, GLOW_TOKENS, } from './types';
export type { TokenValue, Token, ColorToken, BackgroundColorToken, SpacingToken, FontFamilyToken, FontSizeToken, FontWeightToken, LineHeightToken, BorderToken, BorderRadiusToken, BorderWidthToken, OpacityToken, ElevationToken, GlowToken, GlobalToken, } from './types';
export { TOKENS, COLOR_TOKENS, BACKGROUND_COLOR_TOKENS, SPACING_TOKENS, FONT_FAMILY_TOKENS, FONT_SIZE_TOKENS, FONT_WEIGHT_TOKENS, LINE_HEIGHT_TOKENS, BORDER_TOKENS, BORDER_RADIUS_TOKENS, BORDER_WIDTH_TOKENS, OPACITY_TOKENS, ELEVATION_TOKENS, GLOW_TOKENS, GLOBAL_TOKENS, } from './types';

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./loadsmart.theme-0e09597b.js");function t(t){return r.LoadsmartTheme[t]}function e(r){var e=t(r);return null==e?e:"--m-".concat(r)}var o=Object.keys(r.LoadsmartTheme).filter((function(r){return!r.startsWith("brand-")&&!r.startsWith("platform-")}));function n(r){return o.filter((function(t){return t.startsWith(r)}))}var s=n("color-"),a=n("color-background-"),O=n("spacing-"),c=n("font-family-"),i=n("font-size-"),T=n("font-weight-"),u=n("line-height-"),E=n("border-"),p=n("border-radius-"),_=n("opacity-"),l=n("elevation-"),N=n("glow-");exports.BACKGROUND_COLOR_TOKENS=a,exports.BORDER_RADIUS_TOKENS=p,exports.BORDER_TOKENS=E,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=s,exports.ELEVATION_TOKENS=l,exports.FONT_FAMILY_TOKENS=c,exports.FONT_SIZE_TOKENS=i,exports.FONT_WEIGHT_TOKENS=T,exports.GLOW_TOKENS=N,exports.LINE_HEIGHT_TOKENS=u,exports.OPACITY_TOKENS=_,exports.SPACING_TOKENS=O,exports.TOKENS=o,exports.getToken=t,exports.toCSSValue=function(r,o){var n=t(r);return null==n?"":r.startsWith("color-")?"rgba(var(".concat(e(r),", ").concat(n,"), ").concat(null!=o?o:1,")"):"var(".concat(e(r),", ").concat(n,")")},exports.toCSSVariable=e;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./loadsmart.theme-1b274ec2.js");function t(t){return r.LoadsmartTheme[t]}function e(r){var e=t(r);return null==e?e:"--m-".concat(r)}var o=Object.keys(r.LoadsmartTheme).filter((function(r){return!r.startsWith("brand-")&&!r.startsWith("platform-")}));function n(r){return o.filter((function(t){return t.startsWith(r)}))}var s=n("color-"),a=n("color-background-"),O=n("spacing-"),c=n("font-family-"),i=n("font-size-"),T=n("font-weight-"),E=n("line-height-"),l=n("border-"),p=n("border-radius-"),u=n("opacity-"),_=n("elevation-"),N=n("glow-"),S=n("global-");exports.BACKGROUND_COLOR_TOKENS=a,exports.BORDER_RADIUS_TOKENS=p,exports.BORDER_TOKENS=l,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=s,exports.ELEVATION_TOKENS=_,exports.FONT_FAMILY_TOKENS=c,exports.FONT_SIZE_TOKENS=i,exports.FONT_WEIGHT_TOKENS=T,exports.GLOBAL_TOKENS=S,exports.GLOW_TOKENS=N,exports.LINE_HEIGHT_TOKENS=E,exports.OPACITY_TOKENS=u,exports.SPACING_TOKENS=O,exports.TOKENS=o,exports.getToken=t,exports.toCSSValue=function(r,o){var n=t(r);return null==n?"":r.startsWith("color-")?"rgba(var(".concat(e(r),", ").concat(n,"), ").concat(null!=o?o:1,")"):"var(".concat(e(r),", ").concat(n,")")},exports.toCSSVariable=e;

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./loadsmart.theme-0e09597b.js");exports.LoadsmartTheme=e.LoadsmartTheme;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./loadsmart.theme-1b274ec2.js");exports.LoadsmartTheme=e.LoadsmartTheme;
/**
* Do not edit directly
* Generated on Tue, 22 Nov 2022 17:50:26 GMT
* Generated on Tue, 22 Nov 2022 20:24:20 GMT
*/

@@ -78,2 +78,5 @@ declare const _default: {

"line-height-5": string;
"global-height-small": string;
"global-height-default": string;
"global-height-large": string;
"opacity-0": string;

@@ -80,0 +83,0 @@ "opacity-20": string;

@@ -65,2 +65,6 @@ import { LoadsmartTheme } from './themes';

export declare const GLOW_TOKENS: ("glow-primary" | "glow-warning")[];
export declare type GlobalToken = keyof {
[Global in Token as Global extends `global-${infer Token}` ? Global : never]: Token;
};
export declare const GLOBAL_TOKENS: ("glow-primary" | "glow-warning")[];
export {};

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

import type { BorderToken, ColorToken, ElevationToken, FontFamilyToken, FontSizeToken, FontWeightToken, GlowToken, LineHeightToken, OpacityToken, SpacingToken } from '../types';
declare type NonColorToken = BorderToken | ElevationToken | FontFamilyToken | FontSizeToken | FontWeightToken | GlowToken | LineHeightToken | OpacityToken | SpacingToken;
import type { BorderToken, ColorToken, ElevationToken, FontFamilyToken, FontSizeToken, FontWeightToken, GlowToken, LineHeightToken, OpacityToken, SpacingToken, GlobalToken } from '../types';
declare type NonColorToken = BorderToken | ElevationToken | FontFamilyToken | FontSizeToken | FontWeightToken | GlowToken | LineHeightToken | OpacityToken | SpacingToken | GlobalToken;
declare function toCSSValue(token: ColorToken, alpha?: number): string;
declare function toCSSValue(token: NonColorToken): string;
export default toCSSValue;
{
"name": "@loadsmart/miranda-tokens",
"version": "1.2.2",
"version": "1.3.0",
"description": "Design tokens for the Miranda Design System",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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