@faststore/components 2.0.74-alpha.0 → 2.0.78-alpha.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.
Files changed (70) hide show
  1. package/dist/assets/ClockClockwise.js +4 -4
  2. package/dist/assets/ClockClockwise.js.map +1 -1
  3. package/dist/assets/FadersHorizontal.d.ts +3 -0
  4. package/dist/assets/FadersHorizontal.js +12 -0
  5. package/dist/assets/FadersHorizontal.js.map +1 -0
  6. package/dist/assets/MagnifyingGlass.d.ts +3 -0
  7. package/dist/assets/MagnifyingGlass.js +8 -0
  8. package/dist/assets/MagnifyingGlass.js.map +1 -0
  9. package/dist/assets/TagIcon.js +1 -1
  10. package/dist/assets/TagIcon.js.map +1 -1
  11. package/dist/assets/index.d.ts +2 -0
  12. package/dist/assets/index.js +2 -0
  13. package/dist/assets/index.js.map +1 -1
  14. package/dist/hooks/UIProvider.d.ts +1 -1
  15. package/dist/hooks/UIProvider.js +1 -2
  16. package/dist/hooks/UIProvider.js.map +1 -1
  17. package/dist/index.d.ts +4 -2
  18. package/dist/index.js +2 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +9 -0
  21. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +8 -0
  22. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +1 -0
  23. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +27 -0
  24. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +28 -0
  25. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -0
  26. package/dist/molecules/SearchAutoComplete/index.d.ts +4 -0
  27. package/dist/molecules/SearchAutoComplete/index.js +3 -0
  28. package/dist/molecules/SearchAutoComplete/index.js.map +1 -0
  29. package/dist/molecules/SearchProducts/SearchProductItem.d.ts +16 -0
  30. package/dist/molecules/SearchProducts/SearchProductItem.js +8 -0
  31. package/dist/molecules/SearchProducts/SearchProductItem.js.map +1 -0
  32. package/dist/molecules/{SearchProductCard/SearchProductCardContent.d.ts → SearchProducts/SearchProductItemContent.d.ts} +4 -4
  33. package/dist/molecules/{SearchProductCard/SearchProductCardContent.js → SearchProducts/SearchProductItemContent.js} +7 -7
  34. package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +1 -0
  35. package/dist/molecules/{SearchProductCard/SearchProductCardImage.d.ts → SearchProducts/SearchProductItemImage.d.ts} +3 -3
  36. package/dist/molecules/SearchProducts/SearchProductItemImage.js +6 -0
  37. package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +1 -0
  38. package/dist/molecules/SearchProducts/SearchProducts.d.ts +13 -0
  39. package/dist/molecules/SearchProducts/SearchProducts.js +10 -0
  40. package/dist/molecules/SearchProducts/SearchProducts.js.map +1 -0
  41. package/dist/molecules/SearchProducts/index.d.ts +8 -0
  42. package/dist/molecules/SearchProducts/index.js +5 -0
  43. package/dist/molecules/SearchProducts/index.js.map +1 -0
  44. package/package.json +2 -2
  45. package/src/assets/ClockClockwise.tsx +12 -12
  46. package/src/assets/FadersHorizontal.tsx +84 -0
  47. package/src/assets/MagnifyingGlass.tsx +39 -0
  48. package/src/assets/TagIcon.tsx +2 -2
  49. package/src/assets/index.ts +2 -0
  50. package/src/hooks/UIProvider.tsx +2 -3
  51. package/src/index.ts +18 -8
  52. package/src/molecules/SearchAutoComplete/SearchAutoComplete.tsx +24 -0
  53. package/src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx +92 -0
  54. package/src/molecules/SearchAutoComplete/index.ts +5 -0
  55. package/src/molecules/SearchProducts/SearchProductItem.tsx +34 -0
  56. package/src/molecules/{SearchProductCard/SearchProductCardContent.tsx → SearchProducts/SearchProductItemContent.tsx} +9 -9
  57. package/src/molecules/{SearchProductCard/SearchProductCardImage.tsx → SearchProducts/SearchProductItemImage.tsx} +7 -7
  58. package/src/molecules/SearchProducts/SearchProducts.tsx +31 -0
  59. package/src/molecules/SearchProducts/index.ts +11 -0
  60. package/dist/molecules/SearchProductCard/SearchProductCard.d.ts +0 -20
  61. package/dist/molecules/SearchProductCard/SearchProductCard.js +0 -8
  62. package/dist/molecules/SearchProductCard/SearchProductCard.js.map +0 -1
  63. package/dist/molecules/SearchProductCard/SearchProductCardContent.js.map +0 -1
  64. package/dist/molecules/SearchProductCard/SearchProductCardImage.js +0 -6
  65. package/dist/molecules/SearchProductCard/SearchProductCardImage.js.map +0 -1
  66. package/dist/molecules/SearchProductCard/index.d.ts +0 -6
  67. package/dist/molecules/SearchProductCard/index.js +0 -4
  68. package/dist/molecules/SearchProductCard/index.js.map +0 -1
  69. package/src/molecules/SearchProductCard/SearchProductCard.tsx +0 -54
  70. package/src/molecules/SearchProductCard/index.ts +0 -8
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  // Icon from Phosphor Icons
3
3
  const ClockClockwise = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
4
4
  React.createElement("rect", { width: "256", height: "256", fill: "none" }),
5
- React.createElement("line", { x1: "128", y1: "80", x2: "128", y2: "128", fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "16" }),
6
- React.createElement("line", { x1: "169.6", y1: "152", x2: "128", y2: "128", fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "16" }),
7
- React.createElement("polyline", { points: "184.2 99.7 224.2 99.7 224.2 59.7", fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "16" }),
8
- React.createElement("path", { d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9", fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "16" })));
5
+ React.createElement("line", { x1: "128", y1: "80", x2: "128", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
6
+ React.createElement("line", { x1: "169.6", y1: "152", x2: "128", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
7
+ React.createElement("polyline", { points: "184.2 99.7 224.2 99.7 224.2 59.7", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
8
+ React.createElement("path", { d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })));
9
9
  export default ClockClockwise;
10
10
  //# sourceMappingURL=ClockClockwise.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClockClockwise.js","sourceRoot":"","sources":["../../src/assets/ClockClockwise.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,cAAc,GAAO,GAAG,EAAE,CAAC,CAC/B,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,oBACN,OAAO,qBACN,OAAO,kBACV,IAAI,GACX;IACR,8BACE,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,oBACN,OAAO,qBACN,OAAO,kBACV,IAAI,GACX;IACR,kCACE,MAAM,EAAC,kCAAkC,EACzC,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,oBACN,OAAO,qBACN,OAAO,kBACV,IAAI,GACP;IACZ,8BACE,CAAC,EAAC,0CAA0C,EAC5C,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,oBACN,OAAO,qBACN,OAAO,kBACV,IAAI,GACX,CACJ,CACP,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"ClockClockwise.js","sourceRoot":"","sources":["../../src/assets/ClockClockwise.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,cAAc,GAAO,GAAG,EAAE,CAAC,CAC/B,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,kCACE,MAAM,EAAC,kCAAkC,EACzC,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACN;IACZ,8BACE,CAAC,EAAC,0CAA0C,EAC5C,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV,CACJ,CACP,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { FC } from 'react';
2
+ declare const FadersHorizontal: FC;
3
+ export default FadersHorizontal;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ // Icon from Phosphor Icons
3
+ const FadersHorizontal = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
4
+ React.createElement("rect", { width: "256", height: "256", fill: "none" }),
5
+ React.createElement("line", { x1: "136", y1: "172", x2: "40", y2: "172", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
6
+ React.createElement("line", { x1: "216", y1: "172", x2: "168", y2: "172", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
7
+ React.createElement("line", { x1: "72", y1: "84", x2: "40", y2: "84", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
8
+ React.createElement("line", { x1: "216", y1: "84", x2: "104", y2: "84", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
9
+ React.createElement("line", { x1: "104", y1: "60", x2: "104", y2: "108", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
10
+ React.createElement("line", { x1: "168", y1: "196", x2: "168", y2: "148", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })));
11
+ export default FadersHorizontal;
12
+ //# sourceMappingURL=FadersHorizontal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FadersHorizontal.js","sourceRoot":"","sources":["../../src/assets/FadersHorizontal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,gBAAgB,GAAO,GAAG,EAAE,CAAC,CACjC,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV,CACJ,CACP,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { FC } from 'react';
2
+ declare const MagnifyingGlass: FC;
3
+ export default MagnifyingGlass;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ // Icon from Phosphor Icons
3
+ const MagnifyingGlass = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
4
+ React.createElement("rect", { width: "256", height: "256", fill: "none" }),
5
+ React.createElement("circle", { cx: "116", cy: "116", r: "84", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
6
+ React.createElement("line", { x1: "175.4", y1: "175.4", x2: "224", y2: "224", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })));
7
+ export default MagnifyingGlass;
8
+ //# sourceMappingURL=MagnifyingGlass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MagnifyingGlass.js","sourceRoot":"","sources":["../../src/assets/MagnifyingGlass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,eAAe,GAAO,GAAG,EAAE,CAAC,CAChC,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,gCACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACR;IACV,8BACE,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV,CACJ,CACP,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const TagIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "192", height: "192", fill: "currentColor", viewBox: "0 0 256 256" },
3
+ const TagIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", width: 24, height: 24 },
4
4
  React.createElement("rect", { width: "256", height: "256", fill: "none" }),
5
5
  React.createElement("path", { d: "M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
6
6
  React.createElement("circle", { cx: "84", cy: "84", r: "12" })));
@@ -1 +1 @@
1
- {"version":3,"file":"TagIcon.js","sourceRoot":"","sources":["../../src/assets/TagIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa;IAErB,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,8BACE,CAAC,EAAC,iJAAiJ,EACnJ,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAU,CACpC,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"TagIcon.js","sourceRoot":"","sources":["../../src/assets/TagIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,GAAQ;IAClD,8BACE,CAAC,EAAC,iJAAiJ,EACnJ,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACV;IACR,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAU,CACpC,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -5,10 +5,12 @@ export { default as CaretDown } from './CaretDown';
5
5
  export { default as Checked } from './Checked';
6
6
  export { default as ClockClockwise } from './ClockClockwise';
7
7
  export { default as DotsThree } from './DotsThree';
8
+ export { default as FadersHorizontal } from './FadersHorizontal';
8
9
  export { default as Heart } from './Heart';
9
10
  export { default as House } from './House';
10
11
  export { default as Minus } from './Minus';
11
12
  export { default as Plus } from './Plus';
13
+ export { default as MagnifyingGlass } from './MagnifyingGlass';
12
14
  export { default as MinusCircle } from './MinusCircle';
13
15
  export { default as PlusCircle } from './PlusCircle';
14
16
  export { default as Ruler } from './Ruler';
@@ -6,10 +6,12 @@ export { default as CaretDown } from './CaretDown';
6
6
  export { default as Checked } from './Checked';
7
7
  export { default as ClockClockwise } from './ClockClockwise';
8
8
  export { default as DotsThree } from './DotsThree';
9
+ export { default as FadersHorizontal } from './FadersHorizontal';
9
10
  export { default as Heart } from './Heart';
10
11
  export { default as House } from './House';
11
12
  export { default as Minus } from './Minus';
12
13
  export { default as Plus } from './Plus';
14
+ export { default as MagnifyingGlass } from './MagnifyingGlass';
13
15
  export { default as MinusCircle } from './MinusCircle';
14
16
  export { default as PlusCircle } from './PlusCircle';
15
17
  export { default as Ruler } from './Ruler';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,cAAc,gBAAgB,CAAA;AAE9B,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE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;AACpD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,KAAK,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -28,6 +28,6 @@ interface Context extends State {
28
28
  pushToast: (data: Toast) => void;
29
29
  popToast: () => void;
30
30
  }
31
- declare function UIProvider({ children }: PropsWithChildren): JSX.Element;
31
+ declare function UIProvider({ children }: PropsWithChildren<unknown>): JSX.Element;
32
32
  export declare function useUI(): Context;
33
33
  export default UIProvider;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { createContext, useContext, useMemo, useReducer } from 'react';
1
+ import React, { createContext, useContext, useMemo, useReducer } from 'react';
3
2
  const reducer = (state, action) => {
4
3
  const { type } = action;
5
4
  switch (type) {
@@ -1 +1 @@
1
- {"version":3,"file":"UIProvider.js","sourceRoot":"","sources":["../../src/hooks/UIProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyCtE,MAAM,OAAO,GAAG,CAAC,KAAY,EAAE,MAAc,EAAS,EAAE;IACtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;IAEvB,QAAQ,IAAI,EAAE;QACZ,KAAK,MAAM,CAAC,CAAC;YACX,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAA;YAE1B,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;YAExC,OAAO;gBACL,GAAG,KAAK;gBACR,CAAC,OAAO,CAAC,EAAE,IAAI;aAChB,CAAA;SACF;QAED,KAAK,OAAO,CAAC,CAAC;YACZ,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAA;YAE1B,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;YAE3C,OAAO;gBACL,GAAG,KAAK;gBACR,CAAC,OAAO,CAAC,EAAE,KAAK;aACjB,CAAA;SACF;QAED,KAAK,WAAW,CAAC,CAAC;YAChB,OAAO;gBACL,GAAG,KAAK;gBACR,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;aAC1C,CAAA;SACF;QAED,KAAK,UAAU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,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;KAC/C,CAAC,EACF,EAAE,CACH,CAAA;IAED,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,GAAG,EAAE;QACL,GAAG,SAAS;KACb,CAAC,EACF,CAAC,SAAS,EAAE,EAAE,CAAC,CAChB,CAAA;IAED,OAAO,oBAAC,SAAS,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAsB,CAAA;AAC1E,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IAErC,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;KACpD;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,UAAU,CAAA"}
package/dist/index.d.ts CHANGED
@@ -66,10 +66,12 @@ export { default as RadioGroup, RadioOption } from './molecules/RadioGroup';
66
66
  export type { RadioGroupProps, RadioOptionProps } from './molecules/RadioGroup';
67
67
  export { default as Rating } from './molecules/Rating';
68
68
  export type { RatingProps } from './molecules/Rating';
69
+ export { default as SearchAutoComplete, SearchAutoCompleteTerm, } from './molecules/SearchAutoComplete';
70
+ export type { SearchAutoCompleteProps, SearchAutoCompleteTermProps, } from './molecules/SearchAutoComplete';
69
71
  export { default as SearchHistory, SearchHistoryTerm, } from './molecules/SearchHistory';
70
72
  export type { SearchHistoryProps, SearchHistoryTermProps, } from './molecules/SearchHistory';
71
- export { default as SearchProductCard, SearchProductCardImage, SearchProductCardContent, } from './molecules/SearchProductCard';
72
- export type { SearchProductCardProps, SearchProductCardImageProps, SearchProductCardContentProps, } from './molecules/SearchProductCard';
73
+ export { default as SearchProducts, SearchProductItem, SearchProductItemImage, SearchProductItemContent, } from './molecules/SearchProducts';
74
+ export type { SearchProductsProps, SearchProductItemProps, SearchProductItemImageProps, SearchProductItemContentProps, } from './molecules/SearchProducts';
73
75
  export { default as SearchTop, SearchTopTerm } from './molecules/SearchTop';
74
76
  export type { SearchTopProps, SearchTopTermProps } from './molecules/SearchTop';
75
77
  export { default as SelectField } from './molecules/SelectField';
package/dist/index.js CHANGED
@@ -38,8 +38,9 @@ export { default as ProductTitle } from './molecules/ProductTitle';
38
38
  export { default as RadioField } from './molecules/RadioField';
39
39
  export { default as RadioGroup, RadioOption } from './molecules/RadioGroup';
40
40
  export { default as Rating } from './molecules/Rating';
41
+ export { default as SearchAutoComplete, SearchAutoCompleteTerm, } from './molecules/SearchAutoComplete';
41
42
  export { default as SearchHistory, SearchHistoryTerm, } from './molecules/SearchHistory';
42
- export { default as SearchProductCard, SearchProductCardImage, SearchProductCardContent, } from './molecules/SearchProductCard';
43
+ export { default as SearchProducts, SearchProductItem, SearchProductItemImage, SearchProductItemContent, } from './molecules/SearchProducts';
43
44
  export { default as SearchTop, SearchTopTerm } from './molecules/SearchTop';
44
45
  export { default as SelectField } from './molecules/SelectField';
45
46
  export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,cAAc,UAAU,CAAA;AAExB,QAAQ;AACR,cAAc,SAAS,CAAA;AAEvB,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAA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BAAgB,EAAE,MAAM,8BAA8B,CAAA;AAG1E,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAOzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface SearchAutoCompleteProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
5
+ */
6
+ testId?: string;
7
+ }
8
+ declare const SearchAutoComplete: ({ testId, children, ...otherProps }: SearchAutoCompleteProps) => JSX.Element;
9
+ export default SearchAutoComplete;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { List } from '../..';
3
+ const SearchAutoComplete = ({ testId = 'fs-search-auto-complete', children, ...otherProps }) => {
4
+ return (React.createElement("section", { "data-testid": testId, "data-fs-search-auto-complete": true, ...otherProps },
5
+ React.createElement(List, { as: "ol" }, children)));
6
+ };
7
+ export default SearchAutoComplete;
8
+ //# sourceMappingURL=SearchAutoComplete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchAutoComplete.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/SearchAutoComplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAU5B,MAAM,kBAAkB,GAAG,CAAC,EAC1B,MAAM,GAAG,yBAAyB,EAClC,QAAQ,EACR,GAAG,UAAU,EACW,EAAE,EAAE;IAC5B,OAAO,CACL,gDAAsB,MAAM,2CAAmC,UAAU;QACvE,oBAAC,IAAI,IAAC,EAAE,EAAC,IAAI,IAAE,QAAQ,CAAQ,CACvB,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { ReactNode } from 'react';
2
+ import { HTMLAttributes } from 'react';
3
+ import { LinkProps, LinkElementType } from '../..';
4
+ export interface SearchAutoCompleteTermProps extends HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Props for the link from term component.
11
+ */
12
+ linkProps?: Partial<LinkProps<LinkElementType>>;
13
+ /**
14
+ * A React component that will be rendered as an icon.
15
+ */
16
+ icon?: ReactNode;
17
+ /**
18
+ * Term researched.
19
+ */
20
+ term: string;
21
+ /**
22
+ * Suggestion proposed with auto complete.
23
+ */
24
+ suggestion: string;
25
+ }
26
+ declare const SearchAutoCompleteTerm: ({ testId, suggestion, term, linkProps, icon, }: SearchAutoCompleteTermProps) => JSX.Element;
27
+ export default SearchAutoCompleteTerm;
@@ -0,0 +1,28 @@
1
+ import React, { Fragment } from 'react';
2
+ import { Icon, MagnifyingGlass, Link } from '../..';
3
+ function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
4
+ if (indexSubstring === 0) {
5
+ return searchTerm
6
+ .split('')
7
+ .map((char, idx) => idx === 0 && suggestion.indexOf(char.toUpperCase()) === 0
8
+ ? char.toUpperCase()
9
+ : char.toLowerCase())
10
+ .join('');
11
+ }
12
+ return searchTerm.toLowerCase();
13
+ }
14
+ const SearchAutoCompleteTerm = ({ testId = 'fs-search-auto-complete-term', suggestion, term, linkProps, icon, }) => {
15
+ const autoCompleteIcon = icon ? icon : React.createElement(MagnifyingGlass, null);
16
+ const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase());
17
+ return (React.createElement("li", { "data-fs-search-auto-complete-item": true, "data-testid": testId },
18
+ React.createElement(Link, { ...linkProps, "data-fs-search-auto-complete-item-link": true, variant: "display" },
19
+ autoCompleteIcon && (React.createElement(Icon, { component: autoCompleteIcon, "data-fs-search-auto-complete-item-icon": true })),
20
+ React.createElement("p", null, suggestionSubstring.map((substring, indexSubstring) => (React.createElement(Fragment, { key: [substring, indexSubstring].join() },
21
+ substring.length > 0 && (React.createElement("strong", { "data-fs-search-auto-complete-item-suggestion": true }, indexSubstring === 0
22
+ ? substring.charAt(0).toUpperCase() + substring.slice(1)
23
+ : substring)),
24
+ indexSubstring !== suggestionSubstring.length - 1 &&
25
+ formatSearchTerm(indexSubstring, term, suggestion))))))));
26
+ };
27
+ export default SearchAutoCompleteTerm;
28
+ //# sourceMappingURL=SearchAutoCompleteTerm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchAutoCompleteTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAE/E,SAAS,gBAAgB,CACvB,cAAsB,EACtB,UAAkB,EAClB,UAAkB;IAElB,IAAI,cAAc,KAAK,CAAC,EAAE;QACxB,OAAO,UAAU;aACd,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACjB,GAAG,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;YACpB,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CACvB;aACA,IAAI,CAAC,EAAE,CAAC,CAAA;KACZ;IAED,OAAO,UAAU,CAAC,WAAW,EAAE,CAAA;AACjC,CAAC;AA0BD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,MAAM,GAAG,8BAA8B,EACvC,UAAU,EACV,IAAI,EACJ,SAAS,EACT,IAAI,GACwB,EAAE,EAAE;IAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,eAAe,OAAG,CAAA;IAE1D,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;IAE9E,OAAO,CACL,sFAAmD,MAAM;QACvD,oBAAC,IAAI,OACC,SAAS,kDAEb,OAAO,EAAC,SAAS;YAEhB,gBAAgB,IAAI,CACnB,oBAAC,IAAI,IACH,SAAS,EAAE,gBAAgB,mDAE3B,CACH;YACD,+BACG,mBAAmB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,CACtD,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,IAAI,EAAE;gBAC9C,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACvB,wFACG,cAAc,KAAK,CAAC;oBACnB,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oBACxD,CAAC,CAAC,SAAS,CACN,CACV;gBACA,cAAc,KAAK,mBAAmB,CAAC,MAAM,GAAG,CAAC;oBAChD,gBAAgB,CAAC,cAAc,EAAE,IAAI,EAAE,UAAU,CAAC,CAC3C,CACZ,CAAC,CACA,CACC,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { default } from './SearchAutoComplete';
2
+ export type { SearchAutoCompleteProps } from './SearchAutoComplete';
3
+ export { default as SearchAutoCompleteTerm } from './SearchAutoCompleteTerm';
4
+ export type { SearchAutoCompleteTermProps } from './SearchAutoCompleteTerm';
@@ -0,0 +1,3 @@
1
+ export { default } from './SearchAutoComplete';
2
+ export { default as SearchAutoCompleteTerm } from './SearchAutoCompleteTerm';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAG9C,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ import { LinkProps, LinkElementType } from '../..';
4
+ export interface SearchProductItemProps extends HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress,
7
+ * testing-library, and jest).
8
+ */
9
+ testId?: string;
10
+ /**
11
+ * Props for the link from SearchProduct component.
12
+ */
13
+ linkProps?: Partial<LinkProps<LinkElementType>>;
14
+ }
15
+ declare const SearchProductItem: React.ForwardRefExoticComponent<SearchProductItemProps & React.RefAttributes<HTMLDivElement>>;
16
+ export default SearchProductItem;
@@ -0,0 +1,8 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Link } from '../..';
3
+ const SearchProductItem = forwardRef(function ProductItem({ testId = 'fs-search-product-item', linkProps, children, }) {
4
+ return (React.createElement("li", { "data-fs-search-product-item": true, "data-testid": testId },
5
+ React.createElement(Link, { ...linkProps, "data-fs-search-product-item-link": true, variant: "display" }, children)));
6
+ });
7
+ export default SearchProductItem;
8
+ //# sourceMappingURL=SearchProductItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchProductItem.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAcxD,MAAM,iBAAiB,GAAG,UAAU,CAClC,SAAS,WAAW,CAAC,EACnB,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,QAAQ,GACT;IACC,OAAO,CACL,gFAA6C,MAAM;QACjD,oBAAC,IAAI,OAAK,SAAS,4CAAmC,OAAO,EAAC,SAAS,IACpE,QAAQ,CACJ,CACJ,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { Price } from '../../';
2
+ import { Price } from '../..';
3
3
  import type { PriceFormatter } from '../../atoms/Price/Price';
4
4
  interface Price {
5
5
  value: number;
6
6
  listPrice: number;
7
7
  formatter: PriceFormatter;
8
8
  }
9
- export type SearchProductCardContentProps = {
9
+ export type SearchProductItemContentProps = {
10
10
  /**
11
11
  * Specifies the product's title.
12
12
  */
@@ -16,5 +16,5 @@ export type SearchProductCardContentProps = {
16
16
  */
17
17
  price: Price;
18
18
  };
19
- declare const SearchProductCardContent: React.ForwardRefExoticComponent<SearchProductCardContentProps & React.RefAttributes<HTMLElement>>;
20
- export default SearchProductCardContent;
19
+ declare const SearchProductItemContent: React.ForwardRefExoticComponent<SearchProductItemContentProps & React.RefAttributes<HTMLElement>>;
20
+ export default SearchProductItemContent;
@@ -1,11 +1,11 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Price } from '../../';
3
- const SearchProductCardContent = forwardRef(function SearchProductCardContent({ price, title, ...otherProps }, ref) {
4
- return (React.createElement("section", { ref: ref, "data-fs-search-product-card-content": true, ...otherProps },
5
- React.createElement("p", { "data-fs-search-product-card-title": true }, title),
6
- React.createElement("span", { "data-fs-search-product-card-prices": true },
2
+ import { Price } from '../..';
3
+ const SearchProductItemContent = forwardRef(function SearchProductItemContent({ price, title, ...otherProps }, ref) {
4
+ return (React.createElement("section", { ref: ref, "data-fs-search-product-item-content": true, ...otherProps },
5
+ React.createElement("p", { "data-fs-search-product-item-title": true }, title),
6
+ React.createElement("span", { "data-fs-search-product-item-prices": true },
7
7
  React.createElement(Price, { value: price?.listPrice ? price.listPrice : 0, formatter: price?.formatter, testId: "list-price", "data-value": price?.listPrice, variant: "listing", SRText: "Original price:" }),
8
8
  React.createElement(Price, { value: price?.value ? price.value : 0, formatter: price?.formatter, testId: "price", "data-value": price?.value, variant: "spot", SRText: "Price:" }))));
9
9
  });
10
- export default SearchProductCardContent;
11
- //# sourceMappingURL=SearchProductCardContent.js.map
10
+ export default SearchProductItemContent;
11
+ //# sourceMappingURL=SearchProductItemContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchProductItemContent.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItemContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAoB7B,MAAM,wBAAwB,GAAG,UAAU,CAGzC,SAAS,wBAAwB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACtE,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,kDAA0C,UAAU;QACnE,wEAAsC,KAAK,CAAK;QAChD;YACE,oBAAC,KAAK,IACJ,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAC7C,SAAS,EAAE,KAAK,EAAE,SAAS,EAC3B,MAAM,EAAC,YAAY,gBACP,KAAK,EAAE,SAAS,EAC5B,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,iBAAiB,GACxB;YACF,oBAAC,KAAK,IACJ,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrC,SAAS,EAAE,KAAK,EAAE,SAAS,EAC3B,MAAM,EAAC,OAAO,gBACF,KAAK,EAAE,KAAK,EACxB,OAAO,EAAC,MAAM,EACd,MAAM,EAAC,QAAQ,GACf,CACG,CACC,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,wBAAwB,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import React from 'react';
3
- export interface SearchProductCardImageProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface SearchProductItemImageProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
6
  */
7
7
  testId?: string;
8
8
  }
9
- declare const SearchProductCardImage: React.ForwardRefExoticComponent<SearchProductCardImageProps & React.RefAttributes<HTMLDivElement>>;
10
- export default SearchProductCardImage;
9
+ declare const SearchProductItemImage: React.ForwardRefExoticComponent<SearchProductItemImageProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default SearchProductItemImage;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const SearchProductItemImage = forwardRef(function SearchProductItemImage({ testId = 'fs-search-product-item-image', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-search-product-item-image": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default SearchProductItemImage;
6
+ //# sourceMappingURL=SearchProductItemImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchProductItemImage.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItemImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,sBAAsB,GAAG,UAAU,CAGvC,SAAS,sBAAsB,CAC/B,EAAE,MAAM,GAAG,8BAA8B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACpE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,4DAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface SearchProductsProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
5
+ */
6
+ testId?: string;
7
+ /**
8
+ * Title attribute for the <section> tag rendered by this component.
9
+ */
10
+ title?: string;
11
+ }
12
+ declare const SearchProductsProps: ({ testId, title, children, ...otherProps }: SearchProductsProps) => JSX.Element;
13
+ export default SearchProductsProps;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { List } from '../..';
3
+ const SearchProductsProps = ({ testId = 'fs-search-products', title = 'Suggested Products', children, ...otherProps }) => {
4
+ return (React.createElement("section", { "data-testid": testId, "data-fs-search-products": true, ...otherProps },
5
+ React.createElement("header", { "data-fs-search-products-header": true },
6
+ React.createElement("p", { "data-fs-search-products-title": true }, title)),
7
+ React.createElement(List, { as: "ol" }, children)));
8
+ };
9
+ export default SearchProductsProps;
10
+ //# sourceMappingURL=SearchProducts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchProducts.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProducts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAa5B,MAAM,mBAAmB,GAAG,CAAC,EAC3B,MAAM,GAAG,oBAAoB,EAC7B,KAAK,GAAG,oBAAoB,EAC5B,QAAQ,EACR,GAAG,UAAU,EACO,EAAE,EAAE;IACxB,OAAO,CACL,gDAAsB,MAAM,sCAA8B,UAAU;QAClE;YACE,oEAAkC,KAAK,CAAK,CACrC;QACT,oBAAC,IAAI,IAAC,EAAE,EAAC,IAAI,IAAE,QAAQ,CAAQ,CACvB,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export { default } from './SearchProducts';
2
+ export type { SearchProductsProps } from './SearchProducts';
3
+ export { default as SearchProductItem } from './SearchProductItem';
4
+ export type { SearchProductItemProps } from './SearchProductItem';
5
+ export { default as SearchProductItemImage } from './SearchProductItemImage';
6
+ export type { SearchProductItemImageProps } from './SearchProductItemImage';
7
+ export { default as SearchProductItemContent } from './SearchProductItemContent';
8
+ export type { SearchProductItemContentProps } from './SearchProductItemContent';
@@ -0,0 +1,5 @@
1
+ export { default } from './SearchProducts';
2
+ export { default as SearchProductItem } from './SearchProductItem';
3
+ export { default as SearchProductItemImage } from './SearchProductItemImage';
4
+ export { default as SearchProductItemContent } from './SearchProductItemContent';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAG5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.74-alpha.0",
3
+ "version": "2.0.78-alpha.0",
4
4
  "module": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": "Emerson Laurentino @emersonlaurentino",
@@ -30,5 +30,5 @@
30
30
  "node": "16.18.0",
31
31
  "yarn": "1.19.1"
32
32
  },
33
- "gitHead": "0d1dd82a4d5517290ae8eaf6be7abb79aa8ff841"
33
+ "gitHead": "f72396792ad4f91aacd757071734e514eb49ae68"
34
34
  }
@@ -19,9 +19,9 @@ const ClockClockwise: FC = () => (
19
19
  y2="128"
20
20
  fill="none"
21
21
  stroke="currentColor"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- stroke-width="16"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ strokeWidth="16"
25
25
  ></line>
26
26
  <line
27
27
  x1="169.6"
@@ -30,25 +30,25 @@ const ClockClockwise: FC = () => (
30
30
  y2="128"
31
31
  fill="none"
32
32
  stroke="currentColor"
33
- stroke-linecap="round"
34
- stroke-linejoin="round"
35
- stroke-width="16"
33
+ strokeLinecap="round"
34
+ strokeLinejoin="round"
35
+ strokeWidth="16"
36
36
  ></line>
37
37
  <polyline
38
38
  points="184.2 99.7 224.2 99.7 224.2 59.7"
39
39
  fill="none"
40
40
  stroke="currentColor"
41
- stroke-linecap="round"
42
- stroke-linejoin="round"
43
- stroke-width="16"
41
+ strokeLinecap="round"
42
+ strokeLinejoin="round"
43
+ strokeWidth="16"
44
44
  ></polyline>
45
45
  <path
46
46
  d="M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9"
47
47
  fill="none"
48
48
  stroke="currentColor"
49
- stroke-linecap="round"
50
- stroke-linejoin="round"
51
- stroke-width="16"
49
+ strokeLinecap="round"
50
+ strokeLinejoin="round"
51
+ strokeWidth="16"
52
52
  ></path>
53
53
  </svg>
54
54
  )