@loadsmart/miranda-tokens
Advanced tools
Comparing version 2.2.1 to 2.3.0
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, 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'; | ||
export type { TokenValue, Token, ColorToken, BackgroundColorToken, SpacingToken, SpacingTokenWithNone, FontFamilyToken, FontSizeToken, FontWeightToken, LineHeightToken, BorderToken, BorderRadiusToken, BorderWidthToken, OpacityToken, ElevationToken, GlowToken, GlobalToken, } from './types'; | ||
export { TOKENS, COLOR_TOKENS, BACKGROUND_COLOR_TOKENS, SPACING_TOKENS, SPACING_TOKENS_WITH_NONE, 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-ae24b0f9.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 a=n("color-"),s=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=s,exports.BORDER_RADIUS_TOKENS=p,exports.BORDER_TOKENS=l,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=a,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; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./loadsmart.theme-50d51db9.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 a=n("color-"),s=n("color-background-"),c=n("spacing-"),O=function(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))}(["none"],c,!0),i=n("font-family-"),l=n("font-size-"),p=n("font-weight-"),T=n("line-height-"),E=n("border-"),N=n("border-radius-"),_=n("opacity-"),u=n("elevation-"),S=n("glow-"),x=n("global-");exports.BACKGROUND_COLOR_TOKENS=s,exports.BORDER_RADIUS_TOKENS=N,exports.BORDER_TOKENS=E,exports.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],exports.COLOR_TOKENS=a,exports.ELEVATION_TOKENS=u,exports.FONT_FAMILY_TOKENS=i,exports.FONT_SIZE_TOKENS=l,exports.FONT_WEIGHT_TOKENS=p,exports.GLOBAL_TOKENS=x,exports.GLOW_TOKENS=S,exports.LINE_HEIGHT_TOKENS=T,exports.OPACITY_TOKENS=_,exports.SPACING_TOKENS=c,exports.SPACING_TOKENS_WITH_NONE=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-ae24b0f9.js");exports.LoadsmartTheme=e.LoadsmartTheme; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./loadsmart.theme-50d51db9.js");exports.LoadsmartTheme=e.LoadsmartTheme; |
/** | ||
* Do not edit directly | ||
* Generated on Thu, 16 Feb 2023 15:11:19 GMT | ||
* Generated on Tue, 25 Apr 2023 15:30:35 GMT | ||
*/ | ||
@@ -5,0 +5,0 @@ declare const _default: { |
@@ -27,2 +27,4 @@ import { LoadsmartTheme } from './themes'; | ||
export declare const SPACING_TOKENS: ("spacing-1" | "spacing-2" | "spacing-3" | "spacing-4" | "spacing-5" | "spacing-6" | "spacing-8" | "spacing-10" | "spacing-12" | "spacing-14" | "spacing-16" | "spacing-20" | "spacing-30" | "spacing-0-5")[]; | ||
export type SpacingTokenWithNone = SpacingToken | 'none'; | ||
export declare const SPACING_TOKENS_WITH_NONE: SpacingTokenWithNone[]; | ||
export type FontFamilyToken = keyof { | ||
@@ -29,0 +31,0 @@ [Spacing in Token as Spacing extends `font-family-${infer Token}` ? Spacing : never]: Token; |
{ | ||
"name": "@loadsmart/miranda-tokens", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Design tokens for the Miranda Design System", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prebuild-tokens": "rm -rf dist", | ||
"prebuild-tokens": "rimraf dist", | ||
"build-tokens": "node ./src/scripts/build-tokens.js", | ||
@@ -14,0 +14,0 @@ "build": "npm run build-tokens && rollup -c --environment BUILD:prod", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30534
354