@primer/primitives
Advanced tools
Comparing version 0.0.0-20250123003511 to 0.0.0-20250123103827
@@ -11,3 +11,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { format } from 'prettier'; | ||
import { fileHeader, formattedVariables, sortByName } from 'style-dictionary/utils'; | ||
import { fileHeader, sortByName } from 'style-dictionary/utils'; | ||
import getFormattedVariables from './utilities/getFormattedVariables.js'; | ||
const wrapWithSelector = (css, selector) => { | ||
@@ -73,3 +74,3 @@ // return without selector | ||
// add tokens into root | ||
const css = formattedVariables({ | ||
const css = getFormattedVariables({ | ||
format: 'css', | ||
@@ -76,0 +77,0 @@ dictionary: filteredDictionary, |
import { isFromFile, isSource } from '../filters/index.js'; | ||
import { outputReferencesTransformed, outputReferencesFilter } from 'style-dictionary/utils'; | ||
import { outputReferencesTransformedWithObject } from './utilities/outputReferencesTransformedWithObject.js'; | ||
const getCssSelectors = (outputFile) => { | ||
@@ -53,3 +54,6 @@ // check for dark in the beginning of the output filename | ||
]), | ||
options: Object.assign({ showFileHeader: false, outputReferences: (token, platformOptions) => outputReferencesFilter(token, platformOptions) && outputReferencesTransformed(token, platformOptions), descriptions: false, queries: getCssSelectors(outputFile) }, options === null || options === void 0 ? void 0 : options.options), | ||
options: Object.assign({ showFileHeader: false, | ||
// outputReferences: true, | ||
outputReferences: (token, platformOptions) => outputReferencesFilter(token, platformOptions) && | ||
outputReferencesTransformedWithObject(token, platformOptions), descriptions: false, queries: getCssSelectors(outputFile) }, options === null || options === void 0 ? void 0 : options.options), | ||
}, | ||
@@ -56,0 +60,0 @@ { |
{ | ||
"name": "@primer/primitives", | ||
"version": "0.0.0-20250123003511", | ||
"version": "0.0.0-20250123103827", | ||
"description": "Typography, spacing, and color primitives for Primer design system", | ||
@@ -65,6 +65,6 @@ "type": "module", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-react": "7.37", | ||
"eslint-import-resolver-typescript": "3.6", | ||
"eslint-plugin-github": "^5.1.3", | ||
"eslint-plugin-jsx-a11y": "6.10", | ||
"eslint-plugin-react": "7.37", | ||
"eslint-plugin-react-hooks": "^5.0.0", | ||
@@ -71,0 +71,0 @@ "json5": "^2.2.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15199539
58007
422
498883