@liner-fe/prism 2.5.13 → 2.5.17
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/lib/index.d.ts +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ type IconKey = 'close-fill' | 'more' | 'liner' | 'liner-variation' | 'person-fil
|
|
|
26
26
|
|
|
27
27
|
declare const iconMap: Record<IconKey, IconComponent>;
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type MyExtract<T, U extends Partial<T>> = T extends U ? T : never;
|
|
30
|
+
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'>;
|
|
30
31
|
|
|
31
32
|
declare const objectToArray: <T extends Record<string, unknown>>(obj: T) => [string, unknown][];
|
|
32
33
|
declare const arrayToStyleObject: (colorKeys: BasicColorType[], style: {
|
|
@@ -198,7 +199,7 @@ type ParagraphProps = IPropsNormal | IPropsPost | IPropsAccent | IPropsAnswer;
|
|
|
198
199
|
declare const Paragraph: react.ForwardRefExoticComponent<ParagraphProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
199
200
|
|
|
200
201
|
interface ITitleProps extends ITypographyCommon {
|
|
201
|
-
type: ACCENT
|
|
202
|
+
type: ACCENT;
|
|
202
203
|
weight: BOLD;
|
|
203
204
|
size: 1 | 2 | 3 | 4 | 5;
|
|
204
205
|
}
|