@primer/primitives 9.1.2 → 10.0.0-rc.29e661a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/PrimerStyleDictionary.d.ts +1 -2
- package/dist/build/PrimerStyleDictionary.js +51 -64
- package/dist/build/filters/index.d.ts +14 -13
- package/dist/build/filters/index.js +14 -29
- package/dist/build/filters/isBorder.d.ts +3 -3
- package/dist/build/filters/isBorder.js +2 -6
- package/dist/build/filters/isColor.d.ts +3 -3
- package/dist/build/filters/isColor.js +8 -7
- package/dist/build/filters/isColorWithAlpha.d.ts +3 -3
- package/dist/build/filters/isColorWithAlpha.js +4 -8
- package/dist/build/filters/isColorWithMix.d.ts +3 -3
- package/dist/build/filters/isColorWithMix.js +4 -8
- package/dist/build/filters/isDeprecated.d.ts +3 -3
- package/dist/build/filters/isDeprecated.js +2 -6
- package/dist/build/filters/isDimension.d.ts +3 -3
- package/dist/build/filters/isDimension.js +2 -6
- package/dist/build/filters/isDuration.d.ts +3 -3
- package/dist/build/filters/isDuration.js +2 -6
- package/dist/build/filters/isFontFamily.d.ts +3 -3
- package/dist/build/filters/isFontFamily.js +2 -6
- package/dist/build/filters/isFontWeight.d.ts +3 -3
- package/dist/build/filters/isFontWeight.js +2 -6
- package/dist/build/filters/isFromFile.d.ts +3 -3
- package/dist/build/filters/isFromFile.js +2 -6
- package/dist/build/filters/isNumber.d.ts +3 -3
- package/dist/build/filters/isNumber.js +4 -6
- package/dist/build/filters/isShadow.d.ts +3 -3
- package/dist/build/filters/isShadow.js +2 -6
- package/dist/build/filters/isSource.d.ts +3 -3
- package/dist/build/filters/isSource.js +2 -6
- package/dist/build/filters/isTypography.d.ts +3 -3
- package/dist/build/filters/isTypography.js +2 -6
- package/dist/build/formats/cssAdvanced.d.ts +2 -2
- package/dist/build/formats/cssAdvanced.js +22 -20
- package/dist/build/formats/cssCustomMedia.d.ts +2 -2
- package/dist/build/formats/cssCustomMedia.js +16 -15
- package/dist/build/formats/index.d.ts +9 -9
- package/dist/build/formats/index.js +9 -21
- package/dist/build/formats/javascriptCommonJs.d.ts +2 -2
- package/dist/build/formats/javascriptCommonJs.js +17 -16
- package/dist/build/formats/javascriptEsm.d.ts +2 -2
- package/dist/build/formats/javascriptEsm.js +17 -16
- package/dist/build/formats/jsonFigma.d.ts +2 -2
- package/dist/build/formats/jsonFigma.js +27 -22
- package/dist/build/formats/jsonNestedPrefixed.d.ts +3 -3
- package/dist/build/formats/jsonNestedPrefixed.js +17 -15
- package/dist/build/formats/jsonOneDimensional.d.ts +3 -3
- package/dist/build/formats/jsonOneDimensional.js +24 -16
- package/dist/build/formats/jsonPostCssFallback.d.ts +3 -3
- package/dist/build/formats/jsonPostCssFallback.js +5 -12
- package/dist/build/formats/typescriptExportDefinition.d.ts +2 -2
- package/dist/build/formats/typescriptExportDefinition.js +48 -44
- package/dist/build/formats/utilities/getPropName.d.ts +1 -0
- package/dist/build/formats/utilities/getPropName.js +16 -0
- package/dist/build/formats/utilities/jsonToFlat.d.ts +2 -2
- package/dist/build/formats/utilities/jsonToFlat.js +1 -5
- package/dist/build/formats/utilities/jsonToNestedValue.d.ts +2 -2
- package/dist/build/formats/utilities/jsonToNestedValue.js +4 -6
- package/dist/build/formats/utilities/prefixTokens.d.ts +2 -2
- package/dist/build/formats/utilities/prefixTokens.js +1 -5
- package/dist/build/parsers/index.d.ts +1 -1
- package/dist/build/parsers/index.js +1 -5
- package/dist/build/parsers/w3cJsonParser.d.ts +2 -2
- package/dist/build/parsers/w3cJsonParser.js +5 -7
- package/dist/build/platforms/css.d.ts +1 -1
- package/dist/build/platforms/css.js +19 -11
- package/dist/build/platforms/deprecatedJson.d.ts +1 -1
- package/dist/build/platforms/deprecatedJson.js +3 -7
- package/dist/build/platforms/docJson.d.ts +1 -1
- package/dist/build/platforms/docJson.js +8 -7
- package/dist/build/platforms/fallbacks.d.ts +1 -1
- package/dist/build/platforms/fallbacks.js +3 -7
- package/dist/build/platforms/figma.d.ts +1 -1
- package/dist/build/platforms/figma.js +21 -14
- package/dist/build/platforms/index.d.ts +10 -10
- package/dist/build/platforms/index.js +10 -23
- package/dist/build/platforms/javascript.d.ts +1 -1
- package/dist/build/platforms/javascript.js +3 -7
- package/dist/build/platforms/json.d.ts +1 -1
- package/dist/build/platforms/json.js +3 -7
- package/dist/build/platforms/styleLint.d.ts +1 -1
- package/dist/build/platforms/styleLint.js +3 -7
- package/dist/build/platforms/typeDefinitions.d.ts +1 -1
- package/dist/build/platforms/typeDefinitions.js +6 -10
- package/dist/build/platforms/typescript.d.ts +1 -1
- package/dist/build/platforms/typescript.js +3 -7
- package/dist/build/schemas/alphaValue.js +4 -7
- package/dist/build/schemas/baseToken.d.ts +2 -2
- package/dist/build/schemas/baseToken.js +4 -7
- package/dist/build/schemas/borderToken.d.ts +5 -5
- package/dist/build/schemas/borderToken.js +13 -16
- package/dist/build/schemas/collections.js +8 -14
- package/dist/build/schemas/colorHexValue.js +4 -7
- package/dist/build/schemas/colorToken.d.ts +20 -15
- package/dist/build/schemas/colorToken.js +24 -24
- package/dist/build/schemas/designToken.js +28 -31
- package/dist/build/schemas/dimensionToken.d.ts +5 -5
- package/dist/build/schemas/dimensionToken.js +14 -17
- package/dist/build/schemas/dimensionValue.js +7 -10
- package/dist/build/schemas/durationToken.d.ts +5 -5
- package/dist/build/schemas/durationToken.js +8 -11
- package/dist/build/schemas/durationValue.js +4 -7
- package/dist/build/schemas/fontFamilyToken.d.ts +5 -5
- package/dist/build/schemas/fontFamilyToken.js +13 -16
- package/dist/build/schemas/fontWeightToken.d.ts +5 -5
- package/dist/build/schemas/fontWeightToken.js +14 -17
- package/dist/build/schemas/fontWeightValue.js +4 -7
- package/dist/build/schemas/numberToken.d.ts +5 -5
- package/dist/build/schemas/numberToken.js +15 -18
- package/dist/build/schemas/referenceValue.js +4 -7
- package/dist/build/schemas/scopes.js +5 -10
- package/dist/build/schemas/shadowToken.d.ts +5 -5
- package/dist/build/schemas/shadowToken.js +23 -26
- package/dist/build/schemas/stringToken.d.ts +5 -5
- package/dist/build/schemas/stringToken.js +7 -10
- package/dist/build/schemas/tokenName.js +4 -7
- package/dist/build/schemas/tokenType.d.ts +2 -2
- package/dist/build/schemas/tokenType.js +2 -6
- package/dist/build/schemas/typographyToken.d.ts +5 -5
- package/dist/build/schemas/typographyToken.js +14 -17
- package/dist/build/schemas/validTokenType.js +9 -13
- package/dist/build/schemas/viewportRangeToken.d.ts +5 -5
- package/dist/build/schemas/viewportRangeToken.js +7 -10
- package/dist/build/transformers/borderToCss.d.ts +3 -3
- package/dist/build/transformers/borderToCss.js +16 -16
- package/dist/build/transformers/colorToHex.d.ts +2 -2
- package/dist/build/transformers/colorToHex.js +11 -13
- package/dist/build/transformers/colorToHexMix.d.ts +2 -2
- package/dist/build/transformers/colorToHexMix.js +10 -15
- package/dist/build/transformers/colorToRgbAlpha.d.ts +2 -2
- package/dist/build/transformers/colorToRgbAlpha.js +10 -12
- package/dist/build/transformers/colorToRgbaFloat.d.ts +2 -2
- package/dist/build/transformers/colorToRgbaFloat.js +24 -28
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +2 -2
- package/dist/build/transformers/dimensionToPixelUnitless.js +13 -14
- package/dist/build/transformers/dimensionToRem.d.ts +2 -2
- package/dist/build/transformers/dimensionToRem.js +12 -13
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -2
- package/dist/build/transformers/dimensionToRemPxArray.js +11 -12
- package/dist/build/transformers/durationToCss.d.ts +2 -2
- package/dist/build/transformers/durationToCss.js +9 -10
- package/dist/build/transformers/figmaAttributes.d.ts +2 -2
- package/dist/build/transformers/figmaAttributes.js +3 -5
- package/dist/build/transformers/floatToPixel.d.ts +4 -4
- package/dist/build/transformers/floatToPixel.js +12 -14
- package/dist/build/transformers/fontFamilyToCss.d.ts +2 -2
- package/dist/build/transformers/fontFamilyToCss.js +10 -13
- package/dist/build/transformers/fontFamilyToFigma.d.ts +3 -3
- package/dist/build/transformers/fontFamilyToFigma.js +15 -17
- package/dist/build/transformers/fontWeightToNumber.d.ts +2 -2
- package/dist/build/transformers/fontWeightToNumber.js +8 -11
- package/dist/build/transformers/index.d.ts +24 -24
- package/dist/build/transformers/index.js +24 -51
- package/dist/build/transformers/jsonDeprecated.d.ts +2 -2
- package/dist/build/transformers/jsonDeprecated.js +6 -8
- package/dist/build/transformers/namePathToCamelCase.d.ts +2 -2
- package/dist/build/transformers/namePathToCamelCase.js +5 -7
- package/dist/build/transformers/namePathToDotNotation.d.ts +2 -2
- package/dist/build/transformers/namePathToDotNotation.js +6 -8
- package/dist/build/transformers/namePathToFigma.d.ts +3 -3
- package/dist/build/transformers/namePathToFigma.js +5 -8
- package/dist/build/transformers/namePathToKebabCase.d.ts +2 -2
- package/dist/build/transformers/namePathToKebabCase.js +4 -6
- package/dist/build/transformers/namePathToPascalCase.d.ts +2 -2
- package/dist/build/transformers/namePathToPascalCase.js +5 -7
- package/dist/build/transformers/namePathToSlashNotation.d.ts +2 -2
- package/dist/build/transformers/namePathToSlashNotation.js +4 -6
- package/dist/build/transformers/shadowToCss.d.ts +2 -2
- package/dist/build/transformers/shadowToCss.js +14 -15
- package/dist/build/transformers/typographyToCss.d.ts +2 -2
- package/dist/build/transformers/typographyToCss.js +13 -15
- package/dist/build/transformers/utilities/alpha.d.ts +1 -1
- package/dist/build/transformers/utilities/alpha.js +4 -8
- package/dist/build/transformers/utilities/checkRequiredTokenProperties.js +1 -5
- package/dist/build/transformers/utilities/getTokenValue.d.ts +2 -2
- package/dist/build/transformers/utilities/getTokenValue.js +10 -12
- package/dist/build/transformers/utilities/hasSpaceInString.js +1 -5
- package/dist/build/transformers/utilities/hexToRgbaFloat.d.ts +1 -1
- package/dist/build/transformers/utilities/hexToRgbaFloat.js +1 -5
- package/dist/build/transformers/utilities/invalidTokenError.d.ts +1 -1
- package/dist/build/transformers/utilities/invalidTokenError.js +11 -10
- package/dist/build/transformers/utilities/isRgbaFloat.js +1 -5
- package/dist/build/transformers/utilities/mix.js +5 -7
- package/dist/build/transformers/utilities/rgbaFloatToHex.js +1 -5
- package/dist/build/types/Border.d.ts +5 -0
- package/dist/build/types/BorderTokenValue.d.ts +10 -0
- package/dist/build/types/ColorHex.d.ts +4 -0
- package/dist/build/types/PlatformInitializer.d.ts +11 -0
- package/dist/build/types/Shadow.d.ts +5 -0
- package/dist/build/types/ShadowTokenValue.d.ts +14 -0
- package/dist/build/types/SizeEm.d.ts +4 -0
- package/dist/build/types/SizePx.d.ts +4 -0
- package/dist/build/types/SizeRem.d.ts +4 -0
- package/dist/build/types/StyleDictionaryConfigGenerator.d.ts +15 -0
- package/dist/build/types/TokenBuildInput.d.ts +8 -0
- package/dist/build/types/TypographyTokenValue.d.ts +12 -0
- package/dist/build/types/w3cTransformedToken.d.ts +8 -0
- package/dist/build/utilities/copyFromDir.d.ts +2 -2
- package/dist/build/utilities/copyFromDir.js +7 -10
- package/dist/build/utilities/filterStringArray.js +1 -5
- package/dist/build/utilities/getFlag.js +1 -5
- package/dist/build/utilities/index.d.ts +9 -3
- package/dist/build/utilities/index.js +9 -9
- package/dist/build/utilities/joinFriendly.js +1 -5
- package/dist/build/utilities/schemaErrorMessage.js +1 -5
- package/dist/build/utilities/toCamelCase.js +5 -9
- package/dist/build/utilities/toPascalCase.js +5 -9
- package/dist/build/utilities/treeWalker.js +2 -6
- package/dist/build/utilities/upperCaseFirstCharacter.js +1 -5
- package/dist/css/functional/themes/dark-colorblind.css +4 -4
- package/dist/css/functional/themes/dark-high-contrast.css +20 -20
- package/dist/css/functional/themes/light-high-contrast.css +14 -14
- package/dist/css/functional/typography/typography.css +20 -20
- package/dist/css/primitives.css +20 -20
- package/dist/docs/base/size/size.json +76 -76
- package/dist/docs/base/typography/typography.json +16 -16
- package/dist/docs/functional/motion/motion.json +18 -18
- package/dist/docs/functional/size/border.json +56 -56
- package/dist/docs/functional/size/breakpoints.json +24 -24
- package/dist/docs/functional/size/size-coarse.json +12 -12
- package/dist/docs/functional/size/size-fine.json +12 -12
- package/dist/docs/functional/size/size.json +264 -264
- package/dist/docs/functional/size/viewport.json +24 -24
- package/dist/docs/functional/themes/dark-colorblind.json +2310 -3186
- package/dist/docs/functional/themes/dark-dimmed.json +2300 -2794
- package/dist/docs/functional/themes/dark-high-contrast.json +2520 -5038
- package/dist/docs/functional/themes/dark-tritanopia.json +2351 -3003
- package/dist/docs/functional/themes/dark.json +2270 -2270
- package/dist/docs/functional/themes/light-colorblind.json +2298 -3124
- package/dist/docs/functional/themes/light-high-contrast.json +2419 -4645
- package/dist/docs/functional/themes/light-tritanopia.json +2330 -2990
- package/dist/docs/functional/themes/light.json +2260 -2260
- package/dist/docs/functional/typography/typography.json +206 -206
- package/dist/figma/dimension/dimension.json +489 -489
- package/dist/figma/figma.json +11 -3
- package/dist/figma/scales/dark-dimmed.json +38 -38
- package/dist/figma/scales/dark-high-constrast.json +38 -38
- package/dist/figma/scales/dark.json +35 -35
- package/dist/figma/scales/light-high-constrast.json +40 -40
- package/dist/figma/scales/light.json +40 -40
- package/dist/figma/shadows/dark-colorblind.json +280 -280
- package/dist/figma/shadows/dark-dimmed.json +280 -280
- package/dist/figma/shadows/dark-high-contrast.json +280 -280
- package/dist/figma/shadows/dark-tritanopia.json +280 -280
- package/dist/figma/shadows/dark.json +280 -280
- package/dist/figma/shadows/light-colorblind.json +281 -281
- package/dist/figma/shadows/light-high-contrast.json +281 -281
- package/dist/figma/shadows/light-tritanopia.json +281 -281
- package/dist/figma/shadows/light.json +281 -281
- package/dist/figma/themes/dark-colorblind.json +4991 -5854
- package/dist/figma/themes/dark-dimmed.json +5314 -5799
- package/dist/figma/themes/dark-high-contrast.json +4210 -6679
- package/dist/figma/themes/dark-tritanopia.json +5165 -5817
- package/dist/figma/themes/dark.json +5534 -5537
- package/dist/figma/themes/light-colorblind.json +4857 -5669
- package/dist/figma/themes/light-high-contrast.json +4198 -6372
- package/dist/figma/themes/light-tritanopia.json +4901 -5529
- package/dist/figma/themes/light.json +5349 -5349
- package/dist/figma/typography/typography.json +112 -156
- package/dist/internalCss/dark-colorblind.css +4 -4
- package/dist/internalCss/dark-high-contrast.css +20 -20
- package/dist/internalCss/light-high-contrast.css +14 -14
- package/dist/styleLint/base/size/size.json +38 -38
- package/dist/styleLint/base/typography/typography.json +8 -8
- package/dist/styleLint/functional/motion/motion.json +12 -12
- package/dist/styleLint/functional/size/border.json +30 -30
- package/dist/styleLint/functional/size/breakpoints.json +12 -12
- package/dist/styleLint/functional/size/size-coarse.json +6 -6
- package/dist/styleLint/functional/size/size-fine.json +6 -6
- package/dist/styleLint/functional/size/size.json +132 -132
- package/dist/styleLint/functional/size/viewport.json +12 -12
- package/dist/styleLint/functional/themes/dark-colorblind.json +1171 -2047
- package/dist/styleLint/functional/themes/dark-dimmed.json +1160 -1654
- package/dist/styleLint/functional/themes/dark-high-contrast.json +1307 -3825
- package/dist/styleLint/functional/themes/dark-tritanopia.json +1232 -1884
- package/dist/styleLint/functional/themes/dark.json +1140 -1140
- package/dist/styleLint/functional/themes/light-colorblind.json +1198 -2024
- package/dist/styleLint/functional/themes/light-high-contrast.json +1270 -3496
- package/dist/styleLint/functional/themes/light-tritanopia.json +1205 -1865
- package/dist/styleLint/functional/themes/light.json +1130 -1130
- package/dist/styleLint/functional/typography/typography.json +114 -114
- package/package.json +19 -10
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +4 -4
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +6 -0
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +21 -3
- package/src/tokens/functional/color/dark/primitives-dark.json5 +3 -3
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +4 -1
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +4 -1
- package/src/tokens/functional/color/light/primitives-light.json5 +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TokenBuildInput = {
|
|
2
|
+
// The output filename WITHOUT the extension
|
|
3
|
+
filename: string
|
|
4
|
+
// Array of `filepaths` to token files that should be converted and included in the output. Accepts relative or glob paths.
|
|
5
|
+
source: string[]
|
|
6
|
+
// Array of `filepaths` to token fils that should NOT be included in the output, but should be available to reference during compilation e.g. base color scales
|
|
7
|
+
include: string[]
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definition for w3c typography composite token value
|
|
3
|
+
* @link https://design-tokens.github.io/community-group/format/#typography
|
|
4
|
+
*/
|
|
5
|
+
export type TypographyTokenValue = {
|
|
6
|
+
fontFamily: string
|
|
7
|
+
fontSize: number
|
|
8
|
+
fontWeight: number
|
|
9
|
+
lineHeight: number
|
|
10
|
+
fontStyle?: string
|
|
11
|
+
letterSpacing?: number
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type {TransformedToken} from 'style-dictionary/types'
|
|
2
|
+
|
|
3
|
+
export type w3cTokenType = 'color' | 'dimension' | 'fontFamily' | 'fontWeight' | 'duration' | 'cubicBezier'
|
|
4
|
+
export type w3cCompositeTokenType = 'shadow' | 'border' | 'gradient' | 'transition' | 'strokeStyle' | 'typography'
|
|
5
|
+
|
|
6
|
+
export interface w3cTransformedToken extends TransformedToken {
|
|
7
|
+
$type?: w3cTokenType | w3cCompositeTokenType
|
|
8
|
+
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @description Copies all files from source folder to destination
|
|
4
4
|
* @param source path
|
|
5
5
|
* @param destination path
|
|
6
|
-
* @returns promise
|
|
6
|
+
* @returns promise of file name array
|
|
7
7
|
*/
|
|
8
|
-
export declare const copyFromDir: (source: string, destination: string) => Promise<
|
|
8
|
+
export declare const copyFromDir: (source: string, destination: string) => Promise<string[]>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,27 +7,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
8
|
});
|
|
10
9
|
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.copyFromDir = void 0;
|
|
13
10
|
/* istanbul ignore file */
|
|
14
|
-
|
|
11
|
+
import { copyFile, readdir, mkdir } from 'fs/promises';
|
|
15
12
|
/**
|
|
16
13
|
* copyFromDir
|
|
17
14
|
* @description Copies all files from source folder to destination
|
|
18
15
|
* @param source path
|
|
19
16
|
* @param destination path
|
|
20
|
-
* @returns promise
|
|
17
|
+
* @returns promise of file name array
|
|
21
18
|
*/
|
|
22
|
-
const copyFromDir = (source, destination) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
export const copyFromDir = (source, destination) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
20
|
// adjust trailing slash
|
|
24
21
|
const src = `${source.replace(/\/$/, '')}`;
|
|
25
22
|
const dest = `${destination.replace(/\/$/, '')}`;
|
|
26
23
|
// create dest if it does not exists
|
|
27
|
-
yield
|
|
24
|
+
yield mkdir(dest, { recursive: true });
|
|
28
25
|
// read files from source
|
|
29
|
-
const files = yield
|
|
26
|
+
const files = yield readdir(src);
|
|
30
27
|
for (const file of files) {
|
|
31
|
-
|
|
28
|
+
copyFile(`${src}/${file}`, `${dest}/${file}`);
|
|
32
29
|
}
|
|
30
|
+
return files;
|
|
33
31
|
});
|
|
34
|
-
exports.copyFromDir = copyFromDir;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterStringArray = void 0;
|
|
4
|
-
const filterStringArray = (string) => {
|
|
1
|
+
export const filterStringArray = (string) => {
|
|
5
2
|
// match unsupported characters
|
|
6
3
|
const regex = /[^a-zA-Z0-9]+/g;
|
|
7
4
|
// replace any non-letter and non-number character and split into word array
|
|
@@ -14,4 +11,3 @@ const filterStringArray = (string) => {
|
|
|
14
11
|
.filter((part) => Boolean(part) && typeof part === 'string');
|
|
15
12
|
return stringArray;
|
|
16
13
|
};
|
|
17
|
-
exports.filterStringArray = filterStringArray;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFlag = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Get the value of a flag from the command line
|
|
6
3
|
* @param flag name of the flag to get
|
|
@@ -8,9 +5,8 @@ exports.getFlag = void 0;
|
|
|
8
5
|
* @returns null if flag is not found, otherwise the value of the flag or the flag name if the flag has no value
|
|
9
6
|
* @example `getFlag('--silent')` returns `null` if `--silent` is not found, `--silent` if `--silent` is found with no value, and `true` if `--silent=true` is found
|
|
10
7
|
*/
|
|
11
|
-
const getFlag = (flag, prefix = '--') => {
|
|
8
|
+
export const getFlag = (flag, prefix = '--') => {
|
|
12
9
|
flag = `${prefix}${flag.replace(prefix, '')}`;
|
|
13
10
|
const index = process.argv.findIndex(arg => arg === flag || arg.startsWith(`${flag}=`));
|
|
14
11
|
return index === -1 ? null : process.argv[index].replace(`${flag}=`, '');
|
|
15
12
|
};
|
|
16
|
-
exports.getFlag = getFlag;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export { copyFromDir } from './copyFromDir';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { copyFromDir } from './copyFromDir.js';
|
|
2
|
+
export { filterStringArray } from './filterStringArray.js';
|
|
3
|
+
export { getFlag } from './getFlag.js';
|
|
4
|
+
export { joinFriendly } from './joinFriendly.js';
|
|
5
|
+
export { schemaErrorMessage } from './schemaErrorMessage.js';
|
|
6
|
+
export { toCamelCase } from './toCamelCase.js';
|
|
7
|
+
export { toPascalCase } from './toPascalCase.js';
|
|
8
|
+
export { treeWalker } from './treeWalker.js';
|
|
9
|
+
export { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export { copyFromDir } from './copyFromDir.js';
|
|
2
|
+
export { filterStringArray } from './filterStringArray.js';
|
|
3
|
+
export { getFlag } from './getFlag.js';
|
|
4
|
+
export { joinFriendly } from './joinFriendly.js';
|
|
5
|
+
export { schemaErrorMessage } from './schemaErrorMessage.js';
|
|
6
|
+
export { toCamelCase } from './toCamelCase.js';
|
|
7
|
+
export { toPascalCase } from './toPascalCase.js';
|
|
8
|
+
export { treeWalker } from './treeWalker.js';
|
|
9
|
+
export { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.joinFriendly = void 0;
|
|
4
|
-
const joinFriendly = (array, lastJoin = 'and') => array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`;
|
|
5
|
-
exports.joinFriendly = joinFriendly;
|
|
1
|
+
export const joinFriendly = (array, lastJoin = 'and') => array.length > 1 ? `${array.slice(0, -1).join(', ')} ${lastJoin} ${array.slice(-1)}` : `${array[0]}`;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemaErrorMessage = void 0;
|
|
4
|
-
const schemaErrorMessage = (title, description) => `**${title}**${description ? `\n${description}` : ``}`;
|
|
5
|
-
exports.schemaErrorMessage = schemaErrorMessage;
|
|
1
|
+
export const schemaErrorMessage = (title, description) => `**${title}**${description ? `\n${description}` : ``}`;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const filterStringArray_1 = require("./filterStringArray");
|
|
5
|
-
const upperCaseFirstCharacter_1 = require("./upperCaseFirstCharacter");
|
|
6
|
-
const toCamelCase = (string) => {
|
|
1
|
+
import { filterStringArray } from './filterStringArray.js';
|
|
2
|
+
import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
3
|
+
export const toCamelCase = (string) => {
|
|
7
4
|
if (!Array.isArray(string)) {
|
|
8
5
|
string = [string];
|
|
9
6
|
}
|
|
10
|
-
return (
|
|
7
|
+
return (filterStringArray(string)
|
|
11
8
|
// ucFirst all but first part
|
|
12
9
|
.map((part, index) => {
|
|
13
10
|
if (index > 0) {
|
|
14
|
-
return
|
|
11
|
+
return upperCaseFirstCharacter(part);
|
|
15
12
|
}
|
|
16
13
|
return part;
|
|
17
14
|
})
|
|
18
15
|
.join(''));
|
|
19
16
|
};
|
|
20
|
-
exports.toCamelCase = toCamelCase;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const filterStringArray_1 = require("./filterStringArray");
|
|
5
|
-
const upperCaseFirstCharacter_1 = require("./upperCaseFirstCharacter");
|
|
6
|
-
const toPascalCase = (string) => {
|
|
1
|
+
import { filterStringArray } from './filterStringArray.js';
|
|
2
|
+
import { upperCaseFirstCharacter } from './upperCaseFirstCharacter.js';
|
|
3
|
+
export const toPascalCase = (string) => {
|
|
7
4
|
if (!Array.isArray(string)) {
|
|
8
5
|
string = [string];
|
|
9
6
|
}
|
|
10
|
-
return (
|
|
7
|
+
return (filterStringArray(string)
|
|
11
8
|
// ucFirst all but first part
|
|
12
9
|
.map((part) => {
|
|
13
|
-
return
|
|
10
|
+
return upperCaseFirstCharacter(part);
|
|
14
11
|
})
|
|
15
12
|
.join(''));
|
|
16
13
|
};
|
|
17
|
-
exports.toPascalCase = toPascalCase;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.treeWalker = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* @description converts tokens to type and returns array with used type
|
|
6
3
|
* @param tree object
|
|
@@ -8,7 +5,7 @@ exports.treeWalker = void 0;
|
|
|
8
5
|
* @param validItem function to test if a node is a validItem to be transformed
|
|
9
6
|
* @returns object
|
|
10
7
|
*/
|
|
11
|
-
const treeWalker = (tree, callback, isValidItem) => {
|
|
8
|
+
export const treeWalker = (tree, callback, isValidItem) => {
|
|
12
9
|
// is a valid item -> pass through callback
|
|
13
10
|
if (isValidItem(tree)) {
|
|
14
11
|
return callback(tree);
|
|
@@ -20,8 +17,7 @@ const treeWalker = (tree, callback, isValidItem) => {
|
|
|
20
17
|
// is obj -> continue
|
|
21
18
|
const nextObj = {};
|
|
22
19
|
for (const [prop, value] of Object.entries(tree)) {
|
|
23
|
-
nextObj[prop] =
|
|
20
|
+
nextObj[prop] = treeWalker(value, callback, isValidItem);
|
|
24
21
|
}
|
|
25
22
|
return nextObj;
|
|
26
23
|
};
|
|
27
|
-
exports.treeWalker = treeWalker;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upperCaseFirstCharacter = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* upperCaseFirstCharacter
|
|
6
3
|
* @scope custom implementation should only be used within `name path to ...` transformer
|
|
@@ -8,7 +5,6 @@ exports.upperCaseFirstCharacter = void 0;
|
|
|
8
5
|
* @param string
|
|
9
6
|
* @returns string
|
|
10
7
|
*/
|
|
11
|
-
const upperCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
|
|
8
|
+
export const upperCaseFirstCharacter = ([firstLetter, ...restOfWord]) => {
|
|
12
9
|
return firstLetter.toUpperCase() + restOfWord.join('');
|
|
13
10
|
};
|
|
14
|
-
exports.upperCaseFirstCharacter = upperCaseFirstCharacter;
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
--button-outline-borderColor-hover: #3d444d;
|
|
265
265
|
--button-outline-borderColor-selected: #3d444d;
|
|
266
266
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
267
|
-
--button-danger-fgColor-rest: #
|
|
267
|
+
--button-danger-fgColor-rest: #db6d28;
|
|
268
268
|
--button-danger-fgColor-hover: #ffffff;
|
|
269
269
|
--button-danger-fgColor-active: #ffffff;
|
|
270
270
|
--button-danger-fgColor-disabled: #db6d2880;
|
|
271
|
-
--button-danger-iconColor-rest: #
|
|
271
|
+
--button-danger-iconColor-rest: #db6d28;
|
|
272
272
|
--button-danger-iconColor-hover: #ffffff;
|
|
273
273
|
--button-danger-bgColor-rest: #212830;
|
|
274
274
|
--button-danger-bgColor-hover: #9b4215;
|
|
@@ -833,11 +833,11 @@
|
|
|
833
833
|
--button-outline-borderColor-hover: #3d444d;
|
|
834
834
|
--button-outline-borderColor-selected: #3d444d;
|
|
835
835
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
836
|
-
--button-danger-fgColor-rest: #
|
|
836
|
+
--button-danger-fgColor-rest: #db6d28;
|
|
837
837
|
--button-danger-fgColor-hover: #ffffff;
|
|
838
838
|
--button-danger-fgColor-active: #ffffff;
|
|
839
839
|
--button-danger-fgColor-disabled: #db6d2880;
|
|
840
|
-
--button-danger-iconColor-rest: #
|
|
840
|
+
--button-danger-iconColor-rest: #db6d28;
|
|
841
841
|
--button-danger-iconColor-hover: #ffffff;
|
|
842
842
|
--button-danger-bgColor-rest: #212830;
|
|
843
843
|
--button-danger-bgColor-hover: #9b4215;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
--control-bgColor-selected: #262c36;
|
|
170
170
|
--control-fgColor-rest: #ffffff;
|
|
171
171
|
--control-fgColor-placeholder: #b7bdc8;
|
|
172
|
-
--control-fgColor-disabled: #
|
|
172
|
+
--control-fgColor-disabled: #656c76;
|
|
173
173
|
--control-borderColor-rest: #b7bdc8;
|
|
174
174
|
--control-borderColor-emphasis: #b7bdc8;
|
|
175
175
|
--control-borderColor-disabled: #9198a11f;
|
|
@@ -193,21 +193,21 @@
|
|
|
193
193
|
--control-checked-bgColor-rest: #194fb1;
|
|
194
194
|
--control-checked-bgColor-hover: #2b64c1;
|
|
195
195
|
--control-checked-bgColor-active: #3c79d0;
|
|
196
|
-
--control-checked-bgColor-disabled: #
|
|
196
|
+
--control-checked-bgColor-disabled: #656c76;
|
|
197
197
|
--control-checked-fgColor-rest: #ffffff;
|
|
198
198
|
--control-checked-fgColor-disabled: #010409;
|
|
199
199
|
--control-checked-borderColor-rest: #91cbff;
|
|
200
200
|
--control-checked-borderColor-hover: #91cbff;
|
|
201
201
|
--control-checked-borderColor-active: #91cbff;
|
|
202
|
-
--control-checked-borderColor-disabled: #
|
|
202
|
+
--control-checked-borderColor-disabled: #656c76;
|
|
203
203
|
--controlTrack-bgColor-rest: #2a313c;
|
|
204
204
|
--controlTrack-bgColor-hover: #2f3742;
|
|
205
205
|
--controlTrack-bgColor-active: #3d444d;
|
|
206
|
-
--controlTrack-bgColor-disabled: #
|
|
206
|
+
--controlTrack-bgColor-disabled: #656c76;
|
|
207
207
|
--controlTrack-fgColor-rest: #ffffff;
|
|
208
208
|
--controlTrack-fgColor-disabled: #ffffff;
|
|
209
209
|
--controlTrack-borderColor-rest: #b7bdc8;
|
|
210
|
-
--controlTrack-borderColor-disabled: #
|
|
210
|
+
--controlTrack-borderColor-disabled: #656c76;
|
|
211
211
|
--controlKnob-bgColor-rest: #010409;
|
|
212
212
|
--controlKnob-bgColor-disabled: #262c36;
|
|
213
213
|
--controlKnob-bgColor-checked: #ffffff;
|
|
@@ -242,10 +242,10 @@
|
|
|
242
242
|
--button-primary-shadow-selected: 0px 0px 0px 0px #000000;
|
|
243
243
|
--button-invisible-fgColor-rest: #ffffff;
|
|
244
244
|
--button-invisible-fgColor-hover: #ffffff;
|
|
245
|
-
--button-invisible-fgColor-disabled: #
|
|
245
|
+
--button-invisible-fgColor-disabled: #656c76;
|
|
246
246
|
--button-invisible-iconColor-rest: #d1d7e0;
|
|
247
247
|
--button-invisible-iconColor-hover: #d1d7e0;
|
|
248
|
-
--button-invisible-iconColor-disabled: #
|
|
248
|
+
--button-invisible-iconColor-disabled: #656c76;
|
|
249
249
|
--button-invisible-bgColor-rest: #00000000;
|
|
250
250
|
--button-invisible-bgColor-hover: #151b23;
|
|
251
251
|
--button-invisible-bgColor-active: #212830;
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
--button-outline-borderColor-hover: #b7bdc8;
|
|
265
265
|
--button-outline-borderColor-selected: #b7bdc8;
|
|
266
266
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
267
|
-
--button-danger-fgColor-rest: #
|
|
267
|
+
--button-danger-fgColor-rest: #ffb1af;
|
|
268
268
|
--button-danger-fgColor-hover: #ffffff;
|
|
269
269
|
--button-danger-fgColor-active: #ffffff;
|
|
270
270
|
--button-danger-fgColor-disabled: #ff949280;
|
|
271
|
-
--button-danger-iconColor-rest: #
|
|
271
|
+
--button-danger-iconColor-rest: #ffb1af;
|
|
272
272
|
--button-danger-iconColor-hover: #ffffff;
|
|
273
273
|
--button-danger-bgColor-rest: #262c36;
|
|
274
274
|
--button-danger-bgColor-hover: #ad0116;
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
--fgColor-onInverse: #010409;
|
|
439
439
|
--fgColor-white: #ffffff;
|
|
440
440
|
--fgColor-black: #010409;
|
|
441
|
-
--fgColor-disabled: #
|
|
441
|
+
--fgColor-disabled: #656c76;
|
|
442
442
|
--fgColor-link: #74b9ff;
|
|
443
443
|
--fgColor-neutral: #d1d7e0;
|
|
444
444
|
--fgColor-accent: #74b9ff;
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
--control-bgColor-selected: #262c36;
|
|
739
739
|
--control-fgColor-rest: #ffffff;
|
|
740
740
|
--control-fgColor-placeholder: #b7bdc8;
|
|
741
|
-
--control-fgColor-disabled: #
|
|
741
|
+
--control-fgColor-disabled: #656c76;
|
|
742
742
|
--control-borderColor-rest: #b7bdc8;
|
|
743
743
|
--control-borderColor-emphasis: #b7bdc8;
|
|
744
744
|
--control-borderColor-disabled: #9198a11f;
|
|
@@ -762,21 +762,21 @@
|
|
|
762
762
|
--control-checked-bgColor-rest: #194fb1;
|
|
763
763
|
--control-checked-bgColor-hover: #2b64c1;
|
|
764
764
|
--control-checked-bgColor-active: #3c79d0;
|
|
765
|
-
--control-checked-bgColor-disabled: #
|
|
765
|
+
--control-checked-bgColor-disabled: #656c76;
|
|
766
766
|
--control-checked-fgColor-rest: #ffffff;
|
|
767
767
|
--control-checked-fgColor-disabled: #010409;
|
|
768
768
|
--control-checked-borderColor-rest: #91cbff;
|
|
769
769
|
--control-checked-borderColor-hover: #91cbff;
|
|
770
770
|
--control-checked-borderColor-active: #91cbff;
|
|
771
|
-
--control-checked-borderColor-disabled: #
|
|
771
|
+
--control-checked-borderColor-disabled: #656c76;
|
|
772
772
|
--controlTrack-bgColor-rest: #2a313c;
|
|
773
773
|
--controlTrack-bgColor-hover: #2f3742;
|
|
774
774
|
--controlTrack-bgColor-active: #3d444d;
|
|
775
|
-
--controlTrack-bgColor-disabled: #
|
|
775
|
+
--controlTrack-bgColor-disabled: #656c76;
|
|
776
776
|
--controlTrack-fgColor-rest: #ffffff;
|
|
777
777
|
--controlTrack-fgColor-disabled: #ffffff;
|
|
778
778
|
--controlTrack-borderColor-rest: #b7bdc8;
|
|
779
|
-
--controlTrack-borderColor-disabled: #
|
|
779
|
+
--controlTrack-borderColor-disabled: #656c76;
|
|
780
780
|
--controlKnob-bgColor-rest: #010409;
|
|
781
781
|
--controlKnob-bgColor-disabled: #262c36;
|
|
782
782
|
--controlKnob-bgColor-checked: #ffffff;
|
|
@@ -811,10 +811,10 @@
|
|
|
811
811
|
--button-primary-shadow-selected: 0px 0px 0px 0px #000000;
|
|
812
812
|
--button-invisible-fgColor-rest: #ffffff;
|
|
813
813
|
--button-invisible-fgColor-hover: #ffffff;
|
|
814
|
-
--button-invisible-fgColor-disabled: #
|
|
814
|
+
--button-invisible-fgColor-disabled: #656c76;
|
|
815
815
|
--button-invisible-iconColor-rest: #d1d7e0;
|
|
816
816
|
--button-invisible-iconColor-hover: #d1d7e0;
|
|
817
|
-
--button-invisible-iconColor-disabled: #
|
|
817
|
+
--button-invisible-iconColor-disabled: #656c76;
|
|
818
818
|
--button-invisible-bgColor-rest: #00000000;
|
|
819
819
|
--button-invisible-bgColor-hover: #151b23;
|
|
820
820
|
--button-invisible-bgColor-active: #212830;
|
|
@@ -833,11 +833,11 @@
|
|
|
833
833
|
--button-outline-borderColor-hover: #b7bdc8;
|
|
834
834
|
--button-outline-borderColor-selected: #b7bdc8;
|
|
835
835
|
--button-outline-shadow-selected: 0px 0px 0px 0px #000000;
|
|
836
|
-
--button-danger-fgColor-rest: #
|
|
836
|
+
--button-danger-fgColor-rest: #ffb1af;
|
|
837
837
|
--button-danger-fgColor-hover: #ffffff;
|
|
838
838
|
--button-danger-fgColor-active: #ffffff;
|
|
839
839
|
--button-danger-fgColor-disabled: #ff949280;
|
|
840
|
-
--button-danger-iconColor-rest: #
|
|
840
|
+
--button-danger-iconColor-rest: #ffb1af;
|
|
841
841
|
--button-danger-iconColor-hover: #ffffff;
|
|
842
842
|
--button-danger-bgColor-rest: #262c36;
|
|
843
843
|
--button-danger-bgColor-hover: #ad0116;
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
--fgColor-onInverse: #010409;
|
|
1008
1008
|
--fgColor-white: #ffffff;
|
|
1009
1009
|
--fgColor-black: #010409;
|
|
1010
|
-
--fgColor-disabled: #
|
|
1010
|
+
--fgColor-disabled: #656c76;
|
|
1011
1011
|
--fgColor-link: #74b9ff;
|
|
1012
1012
|
--fgColor-neutral: #d1d7e0;
|
|
1013
1013
|
--fgColor-accent: #74b9ff;
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
--control-transparent-borderColor-rest: #ffffff00;
|
|
187
187
|
--control-transparent-borderColor-hover: #454c54;
|
|
188
188
|
--control-transparent-borderColor-active: #454c54;
|
|
189
|
-
--control-danger-fgColor-rest: #
|
|
189
|
+
--control-danger-fgColor-rest: #86061d;
|
|
190
190
|
--control-danger-fgColor-hover: #ffffff;
|
|
191
191
|
--control-danger-bgColor-hover: #a0111f;
|
|
192
192
|
--control-danger-bgColor-active: #8c0b1d;
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
--button-outline-borderColor-hover: #013d14;
|
|
265
265
|
--button-outline-borderColor-active: #013d14;
|
|
266
266
|
--button-outline-shadow-selected: inset 0px 1px 0px 0px #021a4a33;
|
|
267
|
-
--button-danger-fgColor-rest: #
|
|
267
|
+
--button-danger-fgColor-rest: #86061d;
|
|
268
268
|
--button-danger-fgColor-hover: #ffffff;
|
|
269
269
|
--button-danger-fgColor-active: #ffffff;
|
|
270
|
-
--button-danger-fgColor-disabled: #
|
|
271
|
-
--button-danger-iconColor-rest: #
|
|
270
|
+
--button-danger-fgColor-disabled: #86061d80;
|
|
271
|
+
--button-danger-iconColor-rest: #86061d;
|
|
272
272
|
--button-danger-iconColor-hover: #ffffff;
|
|
273
273
|
--button-danger-bgColor-rest: #e0e6eb;
|
|
274
274
|
--button-danger-bgColor-hover: #86061d;
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
--buttonCounter-danger-bgColor-rest: #a0111f1a;
|
|
296
296
|
--buttonCounter-danger-fgColor-rest: #980e1e;
|
|
297
297
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
298
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
298
|
+
--buttonCounter-danger-fgColor-disabled: #86061d80;
|
|
299
299
|
--reactionButton-selected-bgColor-rest: #dff7ff;
|
|
300
300
|
--reactionButton-selected-bgColor-hover: #c7e9ff;
|
|
301
301
|
--reactionButton-selected-fgColor-rest: #023b95;
|
|
@@ -447,8 +447,8 @@
|
|
|
447
447
|
--fgColor-open: #024c1a;
|
|
448
448
|
--fgColor-attention: #603700;
|
|
449
449
|
--fgColor-severe: #702c00;
|
|
450
|
-
--fgColor-danger: #
|
|
451
|
-
--fgColor-closed: #
|
|
450
|
+
--fgColor-danger: #86061d;
|
|
451
|
+
--fgColor-closed: #86061d;
|
|
452
452
|
--fgColor-done: #512598;
|
|
453
453
|
--fgColor-upsell: #512598;
|
|
454
454
|
--fgColor-sponsors: #7d0c57;
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
--control-transparent-borderColor-rest: #ffffff00;
|
|
756
756
|
--control-transparent-borderColor-hover: #454c54;
|
|
757
757
|
--control-transparent-borderColor-active: #454c54;
|
|
758
|
-
--control-danger-fgColor-rest: #
|
|
758
|
+
--control-danger-fgColor-rest: #86061d;
|
|
759
759
|
--control-danger-fgColor-hover: #ffffff;
|
|
760
760
|
--control-danger-bgColor-hover: #a0111f;
|
|
761
761
|
--control-danger-bgColor-active: #8c0b1d;
|
|
@@ -833,11 +833,11 @@
|
|
|
833
833
|
--button-outline-borderColor-hover: #013d14;
|
|
834
834
|
--button-outline-borderColor-active: #013d14;
|
|
835
835
|
--button-outline-shadow-selected: inset 0px 1px 0px 0px #021a4a33;
|
|
836
|
-
--button-danger-fgColor-rest: #
|
|
836
|
+
--button-danger-fgColor-rest: #86061d;
|
|
837
837
|
--button-danger-fgColor-hover: #ffffff;
|
|
838
838
|
--button-danger-fgColor-active: #ffffff;
|
|
839
|
-
--button-danger-fgColor-disabled: #
|
|
840
|
-
--button-danger-iconColor-rest: #
|
|
839
|
+
--button-danger-fgColor-disabled: #86061d80;
|
|
840
|
+
--button-danger-iconColor-rest: #86061d;
|
|
841
841
|
--button-danger-iconColor-hover: #ffffff;
|
|
842
842
|
--button-danger-bgColor-rest: #e0e6eb;
|
|
843
843
|
--button-danger-bgColor-hover: #86061d;
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
--buttonCounter-danger-bgColor-rest: #a0111f1a;
|
|
865
865
|
--buttonCounter-danger-fgColor-rest: #980e1e;
|
|
866
866
|
--buttonCounter-danger-fgColor-hover: #ffffff;
|
|
867
|
-
--buttonCounter-danger-fgColor-disabled: #
|
|
867
|
+
--buttonCounter-danger-fgColor-disabled: #86061d80;
|
|
868
868
|
--reactionButton-selected-bgColor-rest: #dff7ff;
|
|
869
869
|
--reactionButton-selected-bgColor-hover: #c7e9ff;
|
|
870
870
|
--reactionButton-selected-fgColor-rest: #023b95;
|
|
@@ -1016,8 +1016,8 @@
|
|
|
1016
1016
|
--fgColor-open: #024c1a;
|
|
1017
1017
|
--fgColor-attention: #603700;
|
|
1018
1018
|
--fgColor-severe: #702c00;
|
|
1019
|
-
--fgColor-danger: #
|
|
1020
|
-
--fgColor-closed: #
|
|
1019
|
+
--fgColor-danger: #86061d;
|
|
1020
|
+
--fgColor-closed: #86061d;
|
|
1021
1021
|
--fgColor-done: #512598;
|
|
1022
1022
|
--fgColor-upsell: #512598;
|
|
1023
1023
|
--fgColor-sponsors: #7d0c57;
|
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
--text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
|
|
3
|
+
--text-codeInline-weight: var(--base-text-weight-normal);
|
|
2
4
|
--text-codeInline-size: 0.9285em;
|
|
5
|
+
--text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
|
|
6
|
+
--text-codeBlock-weight: var(--base-text-weight-normal);
|
|
3
7
|
--text-codeBlock-lineHeight: 1.5385;
|
|
4
8
|
--text-codeBlock-size: 0.8125rem;
|
|
9
|
+
--text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
|
|
10
|
+
--text-caption-weight: var(--base-text-weight-normal);
|
|
5
11
|
--text-caption-lineHeight: 1.3333;
|
|
6
12
|
--text-caption-size: 0.75rem;
|
|
13
|
+
--text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
|
|
14
|
+
--text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
|
|
15
|
+
--text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
|
|
16
|
+
--text-body-weight: var(--base-text-weight-normal);
|
|
7
17
|
--text-body-lineHeight-small: 1.6666;
|
|
8
18
|
--text-body-lineHeight-medium: 1.4285;
|
|
9
19
|
--text-body-lineHeight-large: 1.5;
|
|
10
20
|
--text-body-size-small: 0.75rem;
|
|
11
21
|
--text-body-size-medium: 0.875rem;
|
|
12
22
|
--text-body-size-large: 1rem;
|
|
23
|
+
--text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
|
|
24
|
+
--text-subtitle-weight: var(--base-text-weight-normal);
|
|
13
25
|
--text-subtitle-lineHeight: 1.6;
|
|
14
26
|
--text-subtitle-size: 1.25rem;
|
|
27
|
+
--text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
|
|
28
|
+
--text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
|
|
29
|
+
--text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
|
|
30
|
+
--text-title-weight-small: var(--base-text-weight-semibold);
|
|
31
|
+
--text-title-weight-medium: var(--base-text-weight-semibold);
|
|
32
|
+
--text-title-weight-large: var(--base-text-weight-semibold);
|
|
15
33
|
--text-title-lineHeight-small: 1.5;
|
|
16
34
|
--text-title-lineHeight-medium: 1.6;
|
|
17
35
|
--text-title-lineHeight-large: 1.5;
|
|
18
36
|
--text-title-size-small: 1rem;
|
|
19
37
|
--text-title-size-medium: 1.25rem;
|
|
20
38
|
--text-title-size-large: 2rem;
|
|
39
|
+
--text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
|
|
40
|
+
--text-display-weight: var(--base-text-weight-medium);
|
|
21
41
|
--text-display-lineHeight: 1.4;
|
|
22
42
|
--text-display-size: 2.5rem;
|
|
23
43
|
--text-display-lineBoxHeight: 1.4;
|
|
@@ -25,24 +45,4 @@
|
|
|
25
45
|
--fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
26
46
|
--fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
27
47
|
--fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
28
|
-
--text-codeInline-weight: var(--base-text-weight-normal);
|
|
29
|
-
--text-codeBlock-weight: var(--base-text-weight-normal);
|
|
30
|
-
--text-caption-weight: var(--base-text-weight-normal);
|
|
31
|
-
--text-body-weight: var(--base-text-weight-normal);
|
|
32
|
-
--text-subtitle-weight: var(--base-text-weight-normal);
|
|
33
|
-
--text-title-weight-small: var(--base-text-weight-semibold);
|
|
34
|
-
--text-title-weight-medium: var(--base-text-weight-semibold);
|
|
35
|
-
--text-title-weight-large: var(--base-text-weight-semibold);
|
|
36
|
-
--text-display-weight: var(--base-text-weight-medium);
|
|
37
|
-
--text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
|
|
38
|
-
--text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
|
|
39
|
-
--text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
|
|
40
|
-
--text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
|
|
41
|
-
--text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
|
|
42
|
-
--text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
|
|
43
|
-
--text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
|
|
44
|
-
--text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
|
|
45
|
-
--text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
|
|
46
|
-
--text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
|
|
47
|
-
--text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
|
|
48
48
|
}
|