@loadsmart/miranda-tokens
Advanced tools
Comparing version 4.0.0-beta.33 to 4.0.0-beta.34
@@ -40,4 +40,4 @@ 'use strict'; | ||
* | ||
* @param values - An array of strings to be sorted. | ||
* @returns - A new array containing the sorted strings. | ||
* @param values An array of strings to be sorted. | ||
* @returns A new array containing the sorted strings. | ||
*/ | ||
@@ -97,4 +97,4 @@ function sortNumericValues(values) { | ||
* | ||
* @param token - Token whose value should be retrieved. | ||
* @returns {TokenValue | undefined} Token value or `undefined` otherwise. | ||
* @param token Token whose value should be retrieved. | ||
* @returns Token value or `undefined` otherwise. | ||
*/ | ||
@@ -127,4 +127,4 @@ function getToken(token) { | ||
* | ||
* @param spacing - Spacing token or 'none' | ||
* @param defaultSpacing - Default spacing token if the provided spacing is not valid | ||
* @param spacing Spacing token or 'none' | ||
* @param defaultSpacing Default spacing token if the provided spacing is not valid | ||
* @returns The css value for the spacing token | ||
@@ -149,4 +149,4 @@ */ | ||
* | ||
* @param token - Color token whose value should be retrieved. | ||
* @returns {string | undefined} Hexadecimal color value or undefined | ||
* @param token Color token whose value should be retrieved. | ||
* @returns Hexadecimal color value or undefined | ||
*/ | ||
@@ -153,0 +153,0 @@ function getHexColor(token) { |
@@ -10,5 +10,5 @@ import type { ColorToken } from '../types'; | ||
* | ||
* @param token - Color token whose value should be retrieved. | ||
* @returns {string | undefined} Hexadecimal color value or undefined | ||
* @param token Color token whose value should be retrieved. | ||
* @returns Hexadecimal color value or undefined | ||
*/ | ||
export declare function getHexColor(token: ColorToken): string | undefined; |
@@ -10,6 +10,6 @@ import type { Token, TokenValue } from '../types'; | ||
* | ||
* @param token - Token whose value should be retrieved. | ||
* @returns {TokenValue | undefined} Token value or `undefined` otherwise. | ||
* @param token Token whose value should be retrieved. | ||
* @returns Token value or `undefined` otherwise. | ||
*/ | ||
declare function getToken(token: Token): TokenValue | undefined; | ||
export default getToken; |
/** | ||
* Sort an array of strings in a special way that considers numeric parts within the strings. | ||
* | ||
* @param values - An array of strings to be sorted. | ||
* @returns - A new array containing the sorted strings. | ||
* @param values An array of strings to be sorted. | ||
* @returns A new array containing the sorted strings. | ||
*/ | ||
export declare function sortNumericValues<T extends string>(values: T[]): T[]; |
@@ -5,6 +5,6 @@ import type { SpacingTokenWithNone, SpacingToken } from '../types'; | ||
* | ||
* @param spacing - Spacing token or 'none' | ||
* @param defaultSpacing - Default spacing token if the provided spacing is not valid | ||
* @param spacing Spacing token or 'none' | ||
* @param defaultSpacing Default spacing token if the provided spacing is not valid | ||
* @returns The css value for the spacing token | ||
*/ | ||
export declare function toSpacingCSSValue(spacing: SpacingTokenWithNone | undefined, defaultSpacing?: SpacingToken): string; |
{ | ||
"name": "@loadsmart/miranda-tokens", | ||
"version": "4.0.0-beta.33", | ||
"version": "4.0.0-beta.34", | ||
"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
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
39922