@gem-sdk/core 1.34.6 → 1.35.0

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.
@@ -195,7 +195,7 @@ function Spacing(props) {
195
195
  children: props.tag !== 'Section' && /*#__PURE__*/ jsxRuntime.jsx("div", {
196
196
  "data-spacing": true,
197
197
  "data-spacing-theme-section": isThemeSectionEditor,
198
- className: "absolute w-full bottom-0",
198
+ className: "gp-absolute gp-w-full gp-bottom-0",
199
199
  children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
200
200
  "data-spacing-margin-bottom": true,
201
201
  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 `${type}-g-${color}`;
11
+ return `gp-${type}-g-${color}`;
12
12
  };
13
13
  const getGlobalColorResponsiveClass = (type, data)=>{
14
14
  if (!data) return '';
@@ -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 '';
@@ -4,7 +4,7 @@ var colors = require('./colors.js');
4
4
  var makeStyle = require('./make-style.js');
5
5
 
6
6
  const genTypoClass = (name)=>{
7
- return `g-${name}`;
7
+ return `gp-g-${name}`;
8
8
  };
9
9
  const composeTypographyCss = (typography)=>{
10
10
  const typographyCustom = typography?.custom;
@@ -191,7 +191,7 @@ function Spacing(props) {
191
191
  children: props.tag !== 'Section' && /*#__PURE__*/ jsx("div", {
192
192
  "data-spacing": true,
193
193
  "data-spacing-theme-section": isThemeSectionEditor,
194
- className: "absolute w-full bottom-0",
194
+ className: "gp-absolute gp-w-full gp-bottom-0",
195
195
  children: /*#__PURE__*/ jsxs("div", {
196
196
  "data-spacing-margin-bottom": true,
197
197
  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 `${type}-g-${color}`;
9
+ return `gp-${type}-g-${color}`;
10
10
  };
11
11
  const getGlobalColorResponsiveClass = (type, data)=>{
12
12
  if (!data) return '';
@@ -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;
@@ -8315,14 +8315,14 @@ declare function isColor(color: string): boolean;
8315
8315
  declare const getGlobalColorStyle: (data?: ColorValueType) => React.CSSProperties;
8316
8316
  declare const composeTextColorCss: (color?: ColorValueType) => string;
8317
8317
 
8318
- type TypographyClass = `g-${TypographyType}`;
8318
+ type TypographyClass = `gp-g-${TypographyType}`;
8319
8319
  declare const genTypoClass: (name: TypographyType) => TypographyClass;
8320
8320
  declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
8321
8321
  declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
8322
8322
  declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
8323
8323
  declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
8324
8324
  declare const composeTypographyAttr: (attrs?: TypographyV2Attrs) => React.CSSProperties;
8325
- 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;
8325
+ 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;
8326
8326
  declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?: TypographySetting, disableAttr?: boolean) => {
8327
8327
  [x: string]: any;
8328
8328
  '--ai'?: csstype.Property.AlignItems | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.34.6",
3
+ "version": "1.35.0",
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.25.0",
28
- "@gem-sdk/styles": "1.33.3"
28
+ "@gem-sdk/styles": "1.35.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.10",