@atlaskit/tokens
Advanced tools
Comparing version 1.56.3 to 1.57.0
@@ -109,3 +109,3 @@ "use strict"; | ||
// Handle fallbacks | ||
var fallback = path.node.arguments[1]; | ||
var fallback = state.opts.shouldForceAutoFallback ? t.stringLiteral(getDefaultFallback(tokenName, state.opts.defaultTheme)) : path.node.arguments[1]; | ||
if (t.isStringLiteral(fallback)) { | ||
@@ -112,0 +112,0 @@ // String literals can be concatenated into css variable call |
@@ -91,3 +91,3 @@ import * as t from '@babel/types'; | ||
// Handle fallbacks | ||
const fallback = path.node.arguments[1]; | ||
const fallback = state.opts.shouldForceAutoFallback ? t.stringLiteral(getDefaultFallback(tokenName, state.opts.defaultTheme)) : path.node.arguments[1]; | ||
if (t.isStringLiteral(fallback)) { | ||
@@ -94,0 +94,0 @@ // String literals can be concatenated into css variable call |
@@ -99,3 +99,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
// Handle fallbacks | ||
var fallback = path.node.arguments[1]; | ||
var fallback = state.opts.shouldForceAutoFallback ? t.stringLiteral(getDefaultFallback(tokenName, state.opts.defaultTheme)) : path.node.arguments[1]; | ||
if (t.isStringLiteral(fallback)) { | ||
@@ -102,0 +102,0 @@ // String literals can be concatenated into css variable call |
@@ -10,2 +10,3 @@ import { type NodePath } from '@babel/traverse'; | ||
shouldUseAutoFallback?: boolean; | ||
shouldForceAutoFallback?: boolean; | ||
defaultTheme?: DefaultColorTheme; | ||
@@ -12,0 +13,0 @@ }; |
@@ -10,2 +10,3 @@ import { type NodePath } from '@babel/traverse'; | ||
shouldUseAutoFallback?: boolean; | ||
shouldForceAutoFallback?: boolean; | ||
defaultTheme?: DefaultColorTheme; | ||
@@ -12,0 +13,0 @@ }; |
{ | ||
"name": "@atlaskit/tokens", | ||
"version": "1.56.3", | ||
"version": "1.57.0", | ||
"description": "Design tokens are the single source of truth to name and store design decisions.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
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
12932963
308061