@gem-sdk/core 1.48.0-dev.86 → 1.48.0-dev.89

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.
@@ -114,9 +114,9 @@ const getGlobalColorResponsiveStyle = (type, data)=>{
114
114
  }
115
115
  }));
116
116
  };
117
- const getGlobalColorStateStyle = (type, data)=>{
117
+ const getGlobalColorStateStyle = (type, data, states)=>{
118
118
  if (!data) return {};
119
- return Object.fromEntries(Object.entries(data).map(([state, value])=>{
119
+ return Object.fromEntries(Object.entries(data).filter(([state])=>states?.length ? states?.includes(state) : true).map(([state, value])=>{
120
120
  if (state === 'active') return [];
121
121
  return [
122
122
  `-${constant.stateMapping?.[state] || ''}-${type}`,
@@ -22,6 +22,7 @@ exports.InteractionTargetEvent = void 0;
22
22
  InteractionTargetEvent[InteractionTargetEvent['gp:change-text-value'] = 17] = 'gp:change-text-value';
23
23
  InteractionTargetEvent[InteractionTargetEvent['gp:toggle-popup-open'] = 18] = 'gp:toggle-popup-open';
24
24
  InteractionTargetEvent[InteractionTargetEvent['gp:show-or-hide'] = 19] = 'gp:show-or-hide';
25
+ InteractionTargetEvent[InteractionTargetEvent['gp:change-banner'] = 20] = 'gp:change-banner';
25
26
  })(exports.InteractionTargetEvent || (exports.InteractionTargetEvent = {}));
26
27
  exports.InteractionTriggerEvent = void 0;
27
28
  (function(InteractionTriggerEvent) {
@@ -112,9 +112,9 @@ const getGlobalColorResponsiveStyle = (type, data)=>{
112
112
  }
113
113
  }));
114
114
  };
115
- const getGlobalColorStateStyle = (type, data)=>{
115
+ const getGlobalColorStateStyle = (type, data, states)=>{
116
116
  if (!data) return {};
117
- return Object.fromEntries(Object.entries(data).map(([state, value])=>{
117
+ return Object.fromEntries(Object.entries(data).filter(([state])=>states?.length ? states?.includes(state) : true).map(([state, value])=>{
118
118
  if (state === 'active') return [];
119
119
  return [
120
120
  `-${stateMapping?.[state] || ''}-${type}`,
@@ -20,6 +20,7 @@ var InteractionTargetEvent;
20
20
  InteractionTargetEvent[InteractionTargetEvent['gp:change-text-value'] = 17] = 'gp:change-text-value';
21
21
  InteractionTargetEvent[InteractionTargetEvent['gp:toggle-popup-open'] = 18] = 'gp:toggle-popup-open';
22
22
  InteractionTargetEvent[InteractionTargetEvent['gp:show-or-hide'] = 19] = 'gp:show-or-hide';
23
+ InteractionTargetEvent[InteractionTargetEvent['gp:change-banner'] = 20] = 'gp:change-banner';
23
24
  })(InteractionTargetEvent || (InteractionTargetEvent = {}));
24
25
  var InteractionTriggerEvent;
25
26
  (function(InteractionTriggerEvent) {
@@ -8468,7 +8468,8 @@ declare enum InteractionTargetEvent {
8468
8468
  'gp:change-image-step' = 16,
8469
8469
  'gp:change-text-value' = 17,
8470
8470
  'gp:toggle-popup-open' = 18,
8471
- 'gp:show-or-hide' = 19
8471
+ 'gp:show-or-hide' = 19,
8472
+ 'gp:change-banner' = 20
8472
8473
  }
8473
8474
  declare enum InteractionTriggerEvent {
8474
8475
  'click' = 0,
@@ -29756,7 +29757,7 @@ declare const getGlobalColorStateClassDynamicBtn: (type: ColorType, data?: State
29756
29757
  declare const getGlobalColorStateResponsiveClass: (type: ColorType, data?: ResponsiveStateProp<ColorValueType>) => string;
29757
29758
  declare const getGlobalColorStateResponsiveClassDynamicBtn: (type: ColorType, data?: ResponsiveStateProp<ColorValueType>) => string;
29758
29759
  declare const getGlobalColorResponsiveStyle: (type: ColorProp, data?: ObjectDevices<ColorValueType>) => React.CSSProperties;
29759
- declare const getGlobalColorStateStyle: (type: ColorProp, data?: StateProp<ColorValueType>) => React.CSSProperties;
29760
+ declare const getGlobalColorStateStyle: (type: ColorProp, data?: StateProp<ColorValueType>, states?: string[]) => React.CSSProperties;
29760
29761
  declare const getGlobalColorStateResponsiveStyle: (type: ColorProp, data?: ResponsiveStateProp<ColorValueType>) => React.CSSProperties;
29761
29762
  declare const getSingleColorVariable: (color?: ColorValueType) => string | undefined;
29762
29763
  declare function isColor(color: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.48.0-dev.86",
3
+ "version": "1.48.0-dev.89",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",