@liner-fe/design-token-primitive 0.2.38 → 0.2.39
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/.ultra.cache.json +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/constants/color/types.ts +1 -0
- package/src/constants/icon/index.ts +2 -0
package/.ultra.cache.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":{"dist":"
|
|
1
|
+
{"files":{"dist":"1769137908070.7898","node_modules":"1769137902588.7969","CHANGELOG.md":"a507cfb99488e6c149f508524830a3667e3632ef","README.md":"949c2c83c8df126f02d353d026438a79d250abe5","package.json":"35423e31d0f72cdcfd3bdd9c1e9d2f6c07c405ca","src/constants/breakpoint/index.ts":"120aae8fe049e6647d3ce6770e6511107d7464cb","src/constants/color/index.ts":"ab92fb51720b4296525d29d86069f5d68ba3b7ae","src/constants/color/types.ts":"8a7c40fb919540c9b21a4a115de2d51a6cc626af","src/constants/gap/index.ts":"8e40e2797894407e2978b82cd0fed348105f293e","src/constants/icon/index.ts":"f5cf72ee5620e5ad433ba1fe6206e2d100bafcda","src/constants/letterSpacing/index.ts":"017c411b8397e3132456e444b6c5e8bac604979e","src/constants/opacity/index.ts":"1774ea85d2fcb04e4c69ed1573eaf0ed67c9b42a","src/constants/padding/index.ts":"267ff2e7e49e9b33f001840eb36a5902ae0579ee","src/constants/radius/index.ts":"cfe1e349bde3f991ef7e302128f967e69708c617","src/constants/radius/type.ts":"f3e311e0748ceea01afa24ae86ca61a18434f225","src/constants/shadow/index.ts":"9e072cc498dceb05cdff54b70a279ca789bedcb6","src/constants/size/index.ts":"a93a165db6c70d21cbe4a3ad9104ac1c09e85929","src/constants/size/type.ts":"b957cbe25323824ddf7aa0cb28ee7eb6b22c0f70","src/constants/typography/index.ts":"338525604e5e49c2452e763e10c7e3bd48c1e88c","src/constants/typography/primitive.ts":"e6ac815644b0a785fbb05429fab9154e75bbd4ac","src/constants/typography/types.ts":"4d72d3bdf40436fcf9ce806d873034aa4fb3f35f","src/index.ts":"5f0a915d31c659890ecb4796b2b6846408d6edda","tsconfig.json":"e8ddd4d3aa30a69dfcb87539f01e33ff8e3cf4e7","tsup.config.ts":"65b5a0c01ae95a834c1bccdc82e96748bd64b7bb"},"deps":{}}
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -44,6 +44,7 @@ declare const iconSizeMap: {
|
|
|
44
44
|
readonly l: 32;
|
|
45
45
|
readonly xl: 40;
|
|
46
46
|
};
|
|
47
|
+
type IconSizeKey = keyof typeof iconSizeMap;
|
|
47
48
|
|
|
48
49
|
declare const letterSpacing: {
|
|
49
50
|
readonly 'lp-pri-font-letterspacing-tight': "-0.03em";
|
|
@@ -292,7 +293,7 @@ interface IColor {
|
|
|
292
293
|
}
|
|
293
294
|
type AlphasKey = `${alphaPrimitiveKeys}-alpha-${(typeof alphas)[number]}`;
|
|
294
295
|
type MyExtract<T, U extends Partial<T>> = T extends U ? T : never;
|
|
295
|
-
type BasicColorType = MyExtract<SystemKeys, 'neutral-label-primary' | 'neutral-label-secondary' | 'neutral-label-tertiary' | 'neutral-label-quaternary' | 'neutral-label-static-primary' | 'neutral-label-static-secondary' | 'inverse-label-primary' | 'inverse-label-secondary' | 'inverse-label-tertiary' | 'inverse-label-quaternary' | 'inverse-label-static-primary' | 'inverse-label-static-secondary' | 'brand-label-primary' | 'brand-label-secondary' | 'function-label-positive' | 'function-label-negative' | 'function-label-caution' | 'accent-label-yellow' | 'accent-label-cyan' | 'accent-label-mint' | 'accent-label-purple' | 'accent-label-pink' | 'neutral-fill-overlay-low' | 'neutral-fill-overlay-mid' | 'neutral-fill-overlay-high' | 'neutral-fill-overlay-highest' | 'neutral-container-lowest' | 'neutral-container-low' | 'neutral-container-mid' | 'neutral-container-high' | 'neutral-container-highest' | 'neutral-container-static-lowest' | 'brand-container-mid' | 'brand-container-high' | 'inverse-container-lowest' | 'inverse-container-low' | 'inverse-container-mid' | 'inverse-container-high' | 'inverse-container-static-high' | 'inverse-container-highest'>;
|
|
296
|
+
type BasicColorType = MyExtract<SystemKeys, 'neutral-label-primary' | 'neutral-label-secondary' | 'neutral-label-tertiary' | 'neutral-label-quaternary' | 'neutral-label-static-primary' | 'neutral-label-static-secondary' | 'inverse-label-primary' | 'inverse-label-secondary' | 'inverse-label-tertiary' | 'inverse-label-quaternary' | 'inverse-label-static-primary' | 'inverse-label-static-secondary' | 'brand-label-primary' | 'brand-label-secondary' | 'function-label-positive' | 'function-label-negative' | 'function-label-caution' | 'function-label-link' | 'accent-label-yellow' | 'accent-label-cyan' | 'accent-label-mint' | 'accent-label-purple' | 'accent-label-pink' | 'neutral-fill-overlay-low' | 'neutral-fill-overlay-mid' | 'neutral-fill-overlay-high' | 'neutral-fill-overlay-highest' | 'neutral-container-lowest' | 'neutral-container-low' | 'neutral-container-mid' | 'neutral-container-high' | 'neutral-container-highest' | 'neutral-container-static-lowest' | 'brand-container-mid' | 'brand-container-high' | 'inverse-container-lowest' | 'inverse-container-low' | 'inverse-container-mid' | 'inverse-container-high' | 'inverse-container-static-high' | 'inverse-container-highest'>;
|
|
296
297
|
|
|
297
298
|
declare const color: IColor;
|
|
298
299
|
declare const alphas: readonly [80, 72, 64, 56, 50, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 6, 4, 1, 0];
|
|
@@ -383,4 +384,4 @@ declare const typography: Record<TypographyKeys, TypographyValues>;
|
|
|
383
384
|
declare const typographyClassName: Partial<Record<"lp-sys-typo-title1-accent-bold" | "lp-sys-typo-title2-accent-bold" | "lp-sys-typo-title3-accent-bold" | "lp-sys-typo-title4-accent-bold" | "lp-sys-typo-title5-accent-bold" | "lp-sys-typo-title1-normal-bold" | "lp-sys-typo-title2-normal-bold" | "lp-sys-typo-title3-normal-bold" | "lp-sys-typo-title4-normal-bold" | "lp-sys-typo-title5-normal-bold" | "lp-sys-typo-display2-accent-black" | "lp-sys-typo-display3-accent-black" | "lp-sys-typo-heading1-answer" | "lp-sys-typo-heading2-answer" | "lp-sys-typo-heading3-answer" | "lp-sys-typo-heading4-answer" | "lp-sys-typo-heading5-answer" | "lp-sys-typo-heading6-answer" | "lp-sys-typo-paragraph1-normal-bold" | "lp-sys-typo-paragraph2-normal-bold" | "lp-sys-typo-paragraph3-normal-bold" | "lp-sys-typo-paragraph4-normal-bold" | "lp-sys-typo-paragraph1-normal-medium" | "lp-sys-typo-paragraph2-normal-medium" | "lp-sys-typo-paragraph3-normal-medium" | "lp-sys-typo-paragraph4-normal-medium" | "lp-sys-typo-paragraph1-normal-regular" | "lp-sys-typo-paragraph2-normal-regular" | "lp-sys-typo-paragraph3-normal-regular" | "lp-sys-typo-paragraph4-normal-regular" | "lp-sys-typo-paragraph2-post-regular" | "lp-sys-typo-paragraph3-post-regular" | "lp-sys-typo-paragraph4-post-regular" | "lp-sys-typo-paragraph2-answer-bold" | "lp-sys-typo-paragraph2-answer-regular" | "lp-sys-typo-caption1-normal-bold" | "lp-sys-typo-caption2-normal-bold" | "lp-sys-typo-caption3-normal-bold" | "lp-sys-typo-caption1-normal-medium" | "lp-sys-typo-caption2-normal-medium" | "lp-sys-typo-caption3-normal-medium" | "lp-sys-typo-caption1-normal-regular" | "lp-sys-typo-caption2-normal-regular" | "lp-sys-typo-caption3-normal-regular", "lp-sys-typo-title1-accent-bold" | "lp-sys-typo-title2-accent-bold" | "lp-sys-typo-title3-accent-bold" | "lp-sys-typo-title4-accent-bold" | "lp-sys-typo-title5-accent-bold" | "lp-sys-typo-title1-normal-bold" | "lp-sys-typo-title2-normal-bold" | "lp-sys-typo-title3-normal-bold" | "lp-sys-typo-title4-normal-bold" | "lp-sys-typo-title5-normal-bold" | "lp-sys-typo-display2-accent-black" | "lp-sys-typo-display3-accent-black" | "lp-sys-typo-heading1-answer" | "lp-sys-typo-heading2-answer" | "lp-sys-typo-heading3-answer" | "lp-sys-typo-heading4-answer" | "lp-sys-typo-heading5-answer" | "lp-sys-typo-heading6-answer" | "lp-sys-typo-paragraph1-normal-bold" | "lp-sys-typo-paragraph2-normal-bold" | "lp-sys-typo-paragraph3-normal-bold" | "lp-sys-typo-paragraph4-normal-bold" | "lp-sys-typo-paragraph1-normal-medium" | "lp-sys-typo-paragraph2-normal-medium" | "lp-sys-typo-paragraph3-normal-medium" | "lp-sys-typo-paragraph4-normal-medium" | "lp-sys-typo-paragraph1-normal-regular" | "lp-sys-typo-paragraph2-normal-regular" | "lp-sys-typo-paragraph3-normal-regular" | "lp-sys-typo-paragraph4-normal-regular" | "lp-sys-typo-paragraph2-post-regular" | "lp-sys-typo-paragraph3-post-regular" | "lp-sys-typo-paragraph4-post-regular" | "lp-sys-typo-paragraph2-answer-bold" | "lp-sys-typo-paragraph2-answer-regular" | "lp-sys-typo-caption1-normal-bold" | "lp-sys-typo-caption2-normal-bold" | "lp-sys-typo-caption3-normal-bold" | "lp-sys-typo-caption1-normal-medium" | "lp-sys-typo-caption2-normal-medium" | "lp-sys-typo-caption3-normal-medium" | "lp-sys-typo-caption1-normal-regular" | "lp-sys-typo-caption2-normal-regular" | "lp-sys-typo-caption3-normal-regular">>;
|
|
384
385
|
declare const typographyEnglish: Partial<Record<TypographyKeys, TypographyValues>>;
|
|
385
386
|
|
|
386
|
-
export { type AlphasKey, type BasicColorType, type FontFamily, type IColor, type IPrimitive, type IPrimitiveWithAlpha, SHADOW_KEYS, type SystemKeys, type TypographyCaption, type TypographyCaptionPrefix, type TypographyCaptionType, type TypographyDisplay, type TypographyDisplayPrefix, type TypographyDisplayType, type TypographyHeading, type TypographyHeadingPrefix, type TypographyHeadingType, type TypographyKeys, type TypographyParagraph, type TypographyParagraphPrefix, type TypographyParagraphType, type TypographyPrefix, type TypographyTitle, type TypographyTitlePrefix, type TypographyTitleType, type TypographyType, alphaPrimitive, type alphaPrimitiveKeys, alphas, breakpoint, breakpointOrigin, color, font, gap, iconSize, iconSizeMap, letterSpacing, opacity, padding, radius, shadow, size, typography, typographyClassName, typographyEnglish };
|
|
387
|
+
export { type AlphasKey, type BasicColorType, type FontFamily, type IColor, type IPrimitive, type IPrimitiveWithAlpha, type IconSizeKey, SHADOW_KEYS, type SystemKeys, type TypographyCaption, type TypographyCaptionPrefix, type TypographyCaptionType, type TypographyDisplay, type TypographyDisplayPrefix, type TypographyDisplayType, type TypographyHeading, type TypographyHeadingPrefix, type TypographyHeadingType, type TypographyKeys, type TypographyParagraph, type TypographyParagraphPrefix, type TypographyParagraphType, type TypographyPrefix, type TypographyTitle, type TypographyTitlePrefix, type TypographyTitleType, type TypographyType, alphaPrimitive, type alphaPrimitiveKeys, alphas, breakpoint, breakpointOrigin, color, font, gap, iconSize, iconSizeMap, letterSpacing, opacity, padding, radius, shadow, size, typography, typographyClassName, typographyEnglish };
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ declare const iconSizeMap: {
|
|
|
44
44
|
readonly l: 32;
|
|
45
45
|
readonly xl: 40;
|
|
46
46
|
};
|
|
47
|
+
type IconSizeKey = keyof typeof iconSizeMap;
|
|
47
48
|
|
|
48
49
|
declare const letterSpacing: {
|
|
49
50
|
readonly 'lp-pri-font-letterspacing-tight': "-0.03em";
|
|
@@ -292,7 +293,7 @@ interface IColor {
|
|
|
292
293
|
}
|
|
293
294
|
type AlphasKey = `${alphaPrimitiveKeys}-alpha-${(typeof alphas)[number]}`;
|
|
294
295
|
type MyExtract<T, U extends Partial<T>> = T extends U ? T : never;
|
|
295
|
-
type BasicColorType = MyExtract<SystemKeys, 'neutral-label-primary' | 'neutral-label-secondary' | 'neutral-label-tertiary' | 'neutral-label-quaternary' | 'neutral-label-static-primary' | 'neutral-label-static-secondary' | 'inverse-label-primary' | 'inverse-label-secondary' | 'inverse-label-tertiary' | 'inverse-label-quaternary' | 'inverse-label-static-primary' | 'inverse-label-static-secondary' | 'brand-label-primary' | 'brand-label-secondary' | 'function-label-positive' | 'function-label-negative' | 'function-label-caution' | 'accent-label-yellow' | 'accent-label-cyan' | 'accent-label-mint' | 'accent-label-purple' | 'accent-label-pink' | 'neutral-fill-overlay-low' | 'neutral-fill-overlay-mid' | 'neutral-fill-overlay-high' | 'neutral-fill-overlay-highest' | 'neutral-container-lowest' | 'neutral-container-low' | 'neutral-container-mid' | 'neutral-container-high' | 'neutral-container-highest' | 'neutral-container-static-lowest' | 'brand-container-mid' | 'brand-container-high' | 'inverse-container-lowest' | 'inverse-container-low' | 'inverse-container-mid' | 'inverse-container-high' | 'inverse-container-static-high' | 'inverse-container-highest'>;
|
|
296
|
+
type BasicColorType = MyExtract<SystemKeys, 'neutral-label-primary' | 'neutral-label-secondary' | 'neutral-label-tertiary' | 'neutral-label-quaternary' | 'neutral-label-static-primary' | 'neutral-label-static-secondary' | 'inverse-label-primary' | 'inverse-label-secondary' | 'inverse-label-tertiary' | 'inverse-label-quaternary' | 'inverse-label-static-primary' | 'inverse-label-static-secondary' | 'brand-label-primary' | 'brand-label-secondary' | 'function-label-positive' | 'function-label-negative' | 'function-label-caution' | 'function-label-link' | 'accent-label-yellow' | 'accent-label-cyan' | 'accent-label-mint' | 'accent-label-purple' | 'accent-label-pink' | 'neutral-fill-overlay-low' | 'neutral-fill-overlay-mid' | 'neutral-fill-overlay-high' | 'neutral-fill-overlay-highest' | 'neutral-container-lowest' | 'neutral-container-low' | 'neutral-container-mid' | 'neutral-container-high' | 'neutral-container-highest' | 'neutral-container-static-lowest' | 'brand-container-mid' | 'brand-container-high' | 'inverse-container-lowest' | 'inverse-container-low' | 'inverse-container-mid' | 'inverse-container-high' | 'inverse-container-static-high' | 'inverse-container-highest'>;
|
|
296
297
|
|
|
297
298
|
declare const color: IColor;
|
|
298
299
|
declare const alphas: readonly [80, 72, 64, 56, 50, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 6, 4, 1, 0];
|
|
@@ -383,4 +384,4 @@ declare const typography: Record<TypographyKeys, TypographyValues>;
|
|
|
383
384
|
declare const typographyClassName: Partial<Record<"lp-sys-typo-title1-accent-bold" | "lp-sys-typo-title2-accent-bold" | "lp-sys-typo-title3-accent-bold" | "lp-sys-typo-title4-accent-bold" | "lp-sys-typo-title5-accent-bold" | "lp-sys-typo-title1-normal-bold" | "lp-sys-typo-title2-normal-bold" | "lp-sys-typo-title3-normal-bold" | "lp-sys-typo-title4-normal-bold" | "lp-sys-typo-title5-normal-bold" | "lp-sys-typo-display2-accent-black" | "lp-sys-typo-display3-accent-black" | "lp-sys-typo-heading1-answer" | "lp-sys-typo-heading2-answer" | "lp-sys-typo-heading3-answer" | "lp-sys-typo-heading4-answer" | "lp-sys-typo-heading5-answer" | "lp-sys-typo-heading6-answer" | "lp-sys-typo-paragraph1-normal-bold" | "lp-sys-typo-paragraph2-normal-bold" | "lp-sys-typo-paragraph3-normal-bold" | "lp-sys-typo-paragraph4-normal-bold" | "lp-sys-typo-paragraph1-normal-medium" | "lp-sys-typo-paragraph2-normal-medium" | "lp-sys-typo-paragraph3-normal-medium" | "lp-sys-typo-paragraph4-normal-medium" | "lp-sys-typo-paragraph1-normal-regular" | "lp-sys-typo-paragraph2-normal-regular" | "lp-sys-typo-paragraph3-normal-regular" | "lp-sys-typo-paragraph4-normal-regular" | "lp-sys-typo-paragraph2-post-regular" | "lp-sys-typo-paragraph3-post-regular" | "lp-sys-typo-paragraph4-post-regular" | "lp-sys-typo-paragraph2-answer-bold" | "lp-sys-typo-paragraph2-answer-regular" | "lp-sys-typo-caption1-normal-bold" | "lp-sys-typo-caption2-normal-bold" | "lp-sys-typo-caption3-normal-bold" | "lp-sys-typo-caption1-normal-medium" | "lp-sys-typo-caption2-normal-medium" | "lp-sys-typo-caption3-normal-medium" | "lp-sys-typo-caption1-normal-regular" | "lp-sys-typo-caption2-normal-regular" | "lp-sys-typo-caption3-normal-regular", "lp-sys-typo-title1-accent-bold" | "lp-sys-typo-title2-accent-bold" | "lp-sys-typo-title3-accent-bold" | "lp-sys-typo-title4-accent-bold" | "lp-sys-typo-title5-accent-bold" | "lp-sys-typo-title1-normal-bold" | "lp-sys-typo-title2-normal-bold" | "lp-sys-typo-title3-normal-bold" | "lp-sys-typo-title4-normal-bold" | "lp-sys-typo-title5-normal-bold" | "lp-sys-typo-display2-accent-black" | "lp-sys-typo-display3-accent-black" | "lp-sys-typo-heading1-answer" | "lp-sys-typo-heading2-answer" | "lp-sys-typo-heading3-answer" | "lp-sys-typo-heading4-answer" | "lp-sys-typo-heading5-answer" | "lp-sys-typo-heading6-answer" | "lp-sys-typo-paragraph1-normal-bold" | "lp-sys-typo-paragraph2-normal-bold" | "lp-sys-typo-paragraph3-normal-bold" | "lp-sys-typo-paragraph4-normal-bold" | "lp-sys-typo-paragraph1-normal-medium" | "lp-sys-typo-paragraph2-normal-medium" | "lp-sys-typo-paragraph3-normal-medium" | "lp-sys-typo-paragraph4-normal-medium" | "lp-sys-typo-paragraph1-normal-regular" | "lp-sys-typo-paragraph2-normal-regular" | "lp-sys-typo-paragraph3-normal-regular" | "lp-sys-typo-paragraph4-normal-regular" | "lp-sys-typo-paragraph2-post-regular" | "lp-sys-typo-paragraph3-post-regular" | "lp-sys-typo-paragraph4-post-regular" | "lp-sys-typo-paragraph2-answer-bold" | "lp-sys-typo-paragraph2-answer-regular" | "lp-sys-typo-caption1-normal-bold" | "lp-sys-typo-caption2-normal-bold" | "lp-sys-typo-caption3-normal-bold" | "lp-sys-typo-caption1-normal-medium" | "lp-sys-typo-caption2-normal-medium" | "lp-sys-typo-caption3-normal-medium" | "lp-sys-typo-caption1-normal-regular" | "lp-sys-typo-caption2-normal-regular" | "lp-sys-typo-caption3-normal-regular">>;
|
|
384
385
|
declare const typographyEnglish: Partial<Record<TypographyKeys, TypographyValues>>;
|
|
385
386
|
|
|
386
|
-
export { type AlphasKey, type BasicColorType, type FontFamily, type IColor, type IPrimitive, type IPrimitiveWithAlpha, SHADOW_KEYS, type SystemKeys, type TypographyCaption, type TypographyCaptionPrefix, type TypographyCaptionType, type TypographyDisplay, type TypographyDisplayPrefix, type TypographyDisplayType, type TypographyHeading, type TypographyHeadingPrefix, type TypographyHeadingType, type TypographyKeys, type TypographyParagraph, type TypographyParagraphPrefix, type TypographyParagraphType, type TypographyPrefix, type TypographyTitle, type TypographyTitlePrefix, type TypographyTitleType, type TypographyType, alphaPrimitive, type alphaPrimitiveKeys, alphas, breakpoint, breakpointOrigin, color, font, gap, iconSize, iconSizeMap, letterSpacing, opacity, padding, radius, shadow, size, typography, typographyClassName, typographyEnglish };
|
|
387
|
+
export { type AlphasKey, type BasicColorType, type FontFamily, type IColor, type IPrimitive, type IPrimitiveWithAlpha, type IconSizeKey, SHADOW_KEYS, type SystemKeys, type TypographyCaption, type TypographyCaptionPrefix, type TypographyCaptionType, type TypographyDisplay, type TypographyDisplayPrefix, type TypographyDisplayType, type TypographyHeading, type TypographyHeadingPrefix, type TypographyHeadingType, type TypographyKeys, type TypographyParagraph, type TypographyParagraphPrefix, type TypographyParagraphType, type TypographyPrefix, type TypographyTitle, type TypographyTitlePrefix, type TypographyTitleType, type TypographyType, alphaPrimitive, type alphaPrimitiveKeys, alphas, breakpoint, breakpointOrigin, color, font, gap, iconSize, iconSizeMap, letterSpacing, opacity, padding, radius, shadow, size, typography, typographyClassName, typographyEnglish };
|
package/package.json
CHANGED