@gem-sdk/core 1.23.0-staging.357 → 1.23.0-staging.358
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/cjs/components/resize/Spacing.js +1 -1
- package/dist/cjs/helpers/colors.js +1 -1
- package/dist/cjs/helpers/size.js +1 -1
- package/dist/cjs/helpers/typography.js +1 -1
- package/dist/esm/components/resize/Spacing.js +1 -1
- package/dist/esm/helpers/colors.js +1 -1
- package/dist/esm/helpers/size.js +1 -1
- package/dist/esm/helpers/typography.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -168,7 +168,7 @@ function Spacing(props) {
|
|
|
168
168
|
children: props.tag !== 'Section' && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
169
169
|
"data-spacing": true,
|
|
170
170
|
"data-spacing-theme-section": isThemeSectionEditor,
|
|
171
|
-
className: "absolute w-full bottom-0",
|
|
171
|
+
className: "gp-absolute gp-w-full gp-bottom-0",
|
|
172
172
|
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
173
173
|
"data-spacing-margin-bottom": true,
|
|
174
174
|
children: [
|
|
@@ -8,7 +8,7 @@ const getGlobalColorCSSProp = (color)=>{
|
|
|
8
8
|
};
|
|
9
9
|
const getGlobalColorClass = (type, color)=>{
|
|
10
10
|
if (typeof color !== 'string' || !color || color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent')) return '';
|
|
11
|
-
return
|
|
11
|
+
return `gp-${type}-g-${color}`;
|
|
12
12
|
};
|
|
13
13
|
const getGlobalColorResponsiveClass = (type, data)=>{
|
|
14
14
|
if (!data) return '';
|
package/dist/cjs/helpers/size.js
CHANGED
|
@@ -18,7 +18,7 @@ const composeSize = (size)=>{
|
|
|
18
18
|
return Object.assign({}, getCustomSizeCSSByDevice(size, 'desktop'), getCustomSizeCSSByDevice(size, 'tablet'), getCustomSizeCSSByDevice(size, 'mobile'));
|
|
19
19
|
};
|
|
20
20
|
function genSizeClass(name) {
|
|
21
|
-
return `g-s-${name}`;
|
|
21
|
+
return `gp-g-s-${name}`;
|
|
22
22
|
}
|
|
23
23
|
const composeSizeCss = (spacing)=>{
|
|
24
24
|
if (spacing === undefined) return '';
|
|
@@ -164,7 +164,7 @@ function Spacing(props) {
|
|
|
164
164
|
children: props.tag !== 'Section' && /*#__PURE__*/ jsx("div", {
|
|
165
165
|
"data-spacing": true,
|
|
166
166
|
"data-spacing-theme-section": isThemeSectionEditor,
|
|
167
|
-
className: "absolute w-full bottom-0",
|
|
167
|
+
className: "gp-absolute gp-w-full gp-bottom-0",
|
|
168
168
|
children: /*#__PURE__*/ jsxs("div", {
|
|
169
169
|
"data-spacing-margin-bottom": true,
|
|
170
170
|
children: [
|
|
@@ -6,7 +6,7 @@ const getGlobalColorCSSProp = (color)=>{
|
|
|
6
6
|
};
|
|
7
7
|
const getGlobalColorClass = (type, color)=>{
|
|
8
8
|
if (typeof color !== 'string' || !color || color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent')) return '';
|
|
9
|
-
return
|
|
9
|
+
return `gp-${type}-g-${color}`;
|
|
10
10
|
};
|
|
11
11
|
const getGlobalColorResponsiveClass = (type, data)=>{
|
|
12
12
|
if (!data) return '';
|
package/dist/esm/helpers/size.js
CHANGED
|
@@ -16,7 +16,7 @@ const composeSize = (size)=>{
|
|
|
16
16
|
return Object.assign({}, getCustomSizeCSSByDevice(size, 'desktop'), getCustomSizeCSSByDevice(size, 'tablet'), getCustomSizeCSSByDevice(size, 'mobile'));
|
|
17
17
|
};
|
|
18
18
|
function genSizeClass(name) {
|
|
19
|
-
return `g-s-${name}`;
|
|
19
|
+
return `gp-g-s-${name}`;
|
|
20
20
|
}
|
|
21
21
|
const composeSizeCss = (spacing)=>{
|
|
22
22
|
if (spacing === undefined) return '';
|
|
@@ -2,7 +2,7 @@ import { getSingleColorVariable } from './colors.js';
|
|
|
2
2
|
import { removeNullUndefined, makeStyle, makeStyleResponsive } from './make-style.js';
|
|
3
3
|
|
|
4
4
|
const genTypoClass = (name)=>{
|
|
5
|
-
return `g-${name}`;
|
|
5
|
+
return `gp-g-${name}`;
|
|
6
6
|
};
|
|
7
7
|
const composeTypographyCss = (typography)=>{
|
|
8
8
|
const typographyCustom = typography?.custom;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8318,14 +8318,14 @@ declare function isColor(color: string): boolean;
|
|
|
8318
8318
|
declare const getGlobalColorStyle: (data?: ColorValueType) => React.CSSProperties;
|
|
8319
8319
|
declare const composeTextColorCss: (color?: ColorValueType) => string;
|
|
8320
8320
|
|
|
8321
|
-
type TypographyClass = `g-${TypographyType}`;
|
|
8321
|
+
type TypographyClass = `gp-g-${TypographyType}`;
|
|
8322
8322
|
declare const genTypoClass: (name: TypographyType) => TypographyClass;
|
|
8323
8323
|
declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
|
|
8324
8324
|
declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
|
|
8325
8325
|
declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
|
|
8326
8326
|
declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
8327
8327
|
declare const composeTypographyAttr: (attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
8328
|
-
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;
|
|
8328
|
+
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;
|
|
8329
8329
|
declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?: TypographySetting, disableAttr?: boolean) => {
|
|
8330
8330
|
[x: string]: any;
|
|
8331
8331
|
'--ai'?: csstype.Property.AlignItems | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.23.0-staging.
|
|
3
|
+
"version": "1.23.0-staging.358",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.23.0-staging.26",
|
|
28
|
-
"@gem-sdk/styles": "1.23.0-staging.
|
|
28
|
+
"@gem-sdk/styles": "1.23.0-staging.358"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|