@ikas/storefront 0.0.37 → 0.0.38

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/build/index.es.js CHANGED
@@ -11224,6 +11224,20 @@ var IkasTextPropValueProvider = /** @class */ (function () {
11224
11224
  return IkasTextPropValueProvider;
11225
11225
  }());
11226
11226
 
11227
+ var IkasColorPropValueProvider = /** @class */ (function () {
11228
+ function IkasColorPropValueProvider(colorPropValue) {
11229
+ this.color = colorPropValue;
11230
+ }
11231
+ IkasColorPropValueProvider.prototype.getValue = function () {
11232
+ return __awaiter(this, void 0, void 0, function () {
11233
+ return __generator(this, function (_a) {
11234
+ return [2 /*return*/, this.color];
11235
+ });
11236
+ });
11237
+ };
11238
+ return IkasColorPropValueProvider;
11239
+ }());
11240
+
11227
11241
  var IkasBooleanPropValueProvider = /** @class */ (function () {
11228
11242
  function IkasBooleanPropValueProvider(textPropValue) {
11229
11243
  this.bool = textPropValue;
@@ -11614,6 +11628,10 @@ var IkasPageDataProvider = /** @class */ (function () {
11614
11628
  case IkasThemeComponentPropType.LINK:
11615
11629
  case IkasThemeComponentPropType.LIST_OF_LINK:
11616
11630
  propValueProvider = new IkasLinkPropValueProvider(propValue, this.theme);
11631
+ break;
11632
+ case IkasThemeComponentPropType.COLOR:
11633
+ propValueProvider = new IkasColorPropValueProvider(propValue);
11634
+ break;
11617
11635
  }
11618
11636
  return [4 /*yield*/, (propValueProvider === null || propValueProvider === void 0 ? void 0 : propValueProvider.getValue())];
11619
11637
  case 1: return [2 /*return*/, _a.sent()];
@@ -12901,6 +12919,7 @@ var IkasThemeComponentPropType;
12901
12919
  IkasThemeComponentPropType["BRAND_LIST"] = "BRAND_LIST";
12902
12920
  IkasThemeComponentPropType["CATEGORY"] = "CATEGORY";
12903
12921
  IkasThemeComponentPropType["CATEGORY_LIST"] = "CATEGORY_LIST";
12922
+ IkasThemeComponentPropType["COLOR"] = "COLOR";
12904
12923
  // TODO number
12905
12924
  // TODO productAttribute
12906
12925
  })(IkasThemeComponentPropType || (IkasThemeComponentPropType = {}));
package/build/index.js CHANGED
@@ -11236,6 +11236,20 @@ var IkasTextPropValueProvider = /** @class */ (function () {
11236
11236
  return IkasTextPropValueProvider;
11237
11237
  }());
11238
11238
 
11239
+ var IkasColorPropValueProvider = /** @class */ (function () {
11240
+ function IkasColorPropValueProvider(colorPropValue) {
11241
+ this.color = colorPropValue;
11242
+ }
11243
+ IkasColorPropValueProvider.prototype.getValue = function () {
11244
+ return __awaiter(this, void 0, void 0, function () {
11245
+ return __generator(this, function (_a) {
11246
+ return [2 /*return*/, this.color];
11247
+ });
11248
+ });
11249
+ };
11250
+ return IkasColorPropValueProvider;
11251
+ }());
11252
+
11239
11253
  var IkasBooleanPropValueProvider = /** @class */ (function () {
11240
11254
  function IkasBooleanPropValueProvider(textPropValue) {
11241
11255
  this.bool = textPropValue;
@@ -11626,6 +11640,10 @@ var IkasPageDataProvider = /** @class */ (function () {
11626
11640
  case exports.IkasThemeComponentPropType.LINK:
11627
11641
  case exports.IkasThemeComponentPropType.LIST_OF_LINK:
11628
11642
  propValueProvider = new IkasLinkPropValueProvider(propValue, this.theme);
11643
+ break;
11644
+ case exports.IkasThemeComponentPropType.COLOR:
11645
+ propValueProvider = new IkasColorPropValueProvider(propValue);
11646
+ break;
11629
11647
  }
11630
11648
  return [4 /*yield*/, (propValueProvider === null || propValueProvider === void 0 ? void 0 : propValueProvider.getValue())];
11631
11649
  case 1: return [2 /*return*/, _a.sent()];
@@ -12892,6 +12910,7 @@ var IkasThemeComponentProp = /** @class */ (function () {
12892
12910
  IkasThemeComponentPropType["BRAND_LIST"] = "BRAND_LIST";
12893
12911
  IkasThemeComponentPropType["CATEGORY"] = "CATEGORY";
12894
12912
  IkasThemeComponentPropType["CATEGORY_LIST"] = "CATEGORY_LIST";
12913
+ IkasThemeComponentPropType["COLOR"] = "COLOR";
12895
12914
  // TODO number
12896
12915
  // TODO productAttribute
12897
12916
  })(exports.IkasThemeComponentPropType || (exports.IkasThemeComponentPropType = {}));
@@ -18,5 +18,6 @@ export declare enum IkasThemeComponentPropType {
18
18
  BRAND = "BRAND",
19
19
  BRAND_LIST = "BRAND_LIST",
20
20
  CATEGORY = "CATEGORY",
21
- CATEGORY_LIST = "CATEGORY_LIST"
21
+ CATEGORY_LIST = "CATEGORY_LIST",
22
+ COLOR = "COLOR"
22
23
  }
@@ -0,0 +1,6 @@
1
+ import IkasPropValueProvider from "./index";
2
+ export declare class IkasColorPropValueProvider implements IkasPropValueProvider<string> {
3
+ private color;
4
+ constructor(colorPropValue: string);
5
+ getValue(): Promise<string>;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",