@gem-sdk/core 1.14.0-next.53 → 1.14.0-next.59

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.
@@ -4,7 +4,7 @@ var constant = require('./constant.js');
4
4
  var makeStyle = require('./make-style.js');
5
5
 
6
6
  const getCornerCSSFromGlobal = (corner)=>{
7
- if (!corner.radiusType) return {};
7
+ if (!corner?.radiusType) return {};
8
8
  if ([
9
9
  'custom',
10
10
  'circle'
@@ -2,7 +2,7 @@ import { devicesMapping, stateMapping } from './constant.js';
2
2
  import { makeStyle } from './make-style.js';
3
3
 
4
4
  const getCornerCSSFromGlobal = (corner)=>{
5
- if (!corner.radiusType) return {};
5
+ if (!corner?.radiusType) return {};
6
6
  if ([
7
7
  'custom',
8
8
  'circle'
@@ -204,6 +204,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
204
204
  active?: boolean;
205
205
  };
206
206
  devices?: ResponsiveConfig<U>;
207
+ emptyOnClear?: boolean;
207
208
  } : {
208
209
  id: K;
209
210
  label?: string;
@@ -234,6 +235,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
234
235
  focus?: boolean;
235
236
  active?: boolean;
236
237
  };
238
+ emptyOnClear?: boolean;
237
239
  default?: T;
238
240
  };
239
241
  type SharedControlType<T> = {
@@ -9297,7 +9299,7 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
9297
9299
  vectorEffect?: csstype.Property.VectorEffect | undefined;
9298
9300
  };
9299
9301
 
9300
- declare const getCornerCSSFromGlobal: (corner: CornerRadius) => React.CSSProperties;
9302
+ declare const getCornerCSSFromGlobal: (corner?: CornerRadius) => React.CSSProperties;
9301
9303
  declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
9302
9304
  declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
9303
9305
  declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.14.0-next.53",
3
+ "version": "1.14.0-next.59",
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.12.0",
28
- "@gem-sdk/styles": "1.14.0-next.48"
28
+ "@gem-sdk/styles": "1.14.0-next.55"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.3",