@gem-sdk/core 1.14.0-dev.718 → 1.14.0-dev.719
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var colors=require("./colors.js"),makeStyle=require("./make-style.js");const genTypoClass=e=>`g-${e}`,composeTypographyCss=e=>{let o=e?.custom,{fontFamily:t,fontSize:p,fontStyle:s,fontWeight:a,lineHeight:y,letterSpacing:l}=o?.desktop??{};return`
|
|
1
|
+
"use strict";var colors=require("./colors.js"),makeStyle=require("./make-style.js");const genTypoClass=e=>`gp-g-${e}`,composeTypographyCss=e=>{let o=e?.custom,{fontFamily:t,fontSize:p,fontStyle:s,fontWeight:a,lineHeight:y,letterSpacing:l}=o?.desktop??{};return`
|
|
2
2
|
${t?`font-family: var(--g-font-${t}, ${t});`:""}
|
|
3
3
|
${p?`font-size: ${p};`:""}
|
|
4
4
|
${s?`font-style: ${s};`:""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getSingleColorVariable as o}from"./colors.js";import{removeNullUndefined as e,makeStyle as t,makeStyleResponsive as p}from"./make-style.js";let genTypoClass=o=>`g-${o}`,composeTypographyCss=o=>{let e=o?.custom,{fontFamily:t,fontSize:p,fontStyle:a,fontWeight:s,lineHeight:i,letterSpacing:y}=e?.desktop??{};return`
|
|
1
|
+
import{getSingleColorVariable as o}from"./colors.js";import{removeNullUndefined as e,makeStyle as t,makeStyleResponsive as p}from"./make-style.js";let genTypoClass=o=>`gp-g-${o}`,composeTypographyCss=o=>{let e=o?.custom,{fontFamily:t,fontSize:p,fontStyle:a,fontWeight:s,lineHeight:i,letterSpacing:y}=e?.desktop??{};return`
|
|
2
2
|
${t?`font-family: var(--g-font-${t}, ${t});`:""}
|
|
3
3
|
${p?`font-size: ${p};`:""}
|
|
4
4
|
${a?`font-style: ${a};`:""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8434,14 +8434,14 @@ declare function isColor(color: string): boolean;
|
|
|
8434
8434
|
declare const getGlobalColorStyle: (data?: ColorValueType) => React.CSSProperties;
|
|
8435
8435
|
declare const composeTextColorCss: (color?: ColorValueType) => string;
|
|
8436
8436
|
|
|
8437
|
-
type TypographyClass = `g-${TypographyType}`;
|
|
8437
|
+
type TypographyClass = `gp-g-${TypographyType}`;
|
|
8438
8438
|
declare const genTypoClass: (name: TypographyType) => TypographyClass;
|
|
8439
8439
|
declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
|
|
8440
8440
|
declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
|
|
8441
8441
|
declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
|
|
8442
8442
|
declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
8443
8443
|
declare const composeTypographyAttr: (attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
8444
|
-
declare const composeTypographyClassName: (typo?: TypographySettingV2, typography?: TypographySetting) => "" | "g-heading-1" | "g-heading-2" | "g-heading-3" | "g-subheading-1" | "g-subheading-2" | "g-subheading-3" | "g-paragraph-1" | "g-paragraph-2" | "g-paragraph-3" | undefined;
|
|
8444
|
+
declare const composeTypographyClassName: (typo?: TypographySettingV2, typography?: TypographySetting) => "" | "gp-g-heading-1" | "gp-g-heading-2" | "gp-g-heading-3" | "gp-g-subheading-1" | "gp-g-subheading-2" | "gp-g-subheading-3" | "gp-g-paragraph-1" | "gp-g-paragraph-2" | "gp-g-paragraph-3" | undefined;
|
|
8445
8445
|
declare const composeFallbackTypographyStyle: (tag: string) => "var(--g-font-heading, heading)" | "var(--g-font-body, body)";
|
|
8446
8446
|
declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?: TypographySetting, disableAttr?: boolean) => {
|
|
8447
8447
|
[x: string]: any;
|