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

@loadsmart/miranda-tokens

Package Overview
Dependencies
Maintainers
0
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 4.0.0-beta.33 to 4.0.0-beta.34

16

dist/index.js

@@ -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

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