@faststore/components 2.0.73-alpha.0 → 2.0.75-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 (66) 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/index.d.ts +4 -2
  15. package/dist/index.js +2 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +9 -0
  18. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +8 -0
  19. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +1 -0
  20. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +27 -0
  21. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +28 -0
  22. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -0
  23. package/dist/molecules/SearchAutoComplete/index.d.ts +4 -0
  24. package/dist/molecules/SearchAutoComplete/index.js +3 -0
  25. package/dist/molecules/SearchAutoComplete/index.js.map +1 -0
  26. package/dist/molecules/SearchProducts/SearchProductItem.d.ts +16 -0
  27. package/dist/molecules/SearchProducts/SearchProductItem.js +8 -0
  28. package/dist/molecules/SearchProducts/SearchProductItem.js.map +1 -0
  29. package/dist/molecules/{SearchProductCard/SearchProductCardContent.d.ts → SearchProducts/SearchProductItemContent.d.ts} +4 -4
  30. package/dist/molecules/{SearchProductCard/SearchProductCardContent.js → SearchProducts/SearchProductItemContent.js} +7 -7
  31. package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +1 -0
  32. package/dist/molecules/{SearchProductCard/SearchProductCardImage.d.ts → SearchProducts/SearchProductItemImage.d.ts} +3 -3
  33. package/dist/molecules/SearchProducts/SearchProductItemImage.js +6 -0
  34. package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +1 -0
  35. package/dist/molecules/SearchProducts/SearchProducts.d.ts +13 -0
  36. package/dist/molecules/SearchProducts/SearchProducts.js +10 -0
  37. package/dist/molecules/SearchProducts/SearchProducts.js.map +1 -0
  38. package/dist/molecules/SearchProducts/index.d.ts +8 -0
  39. package/dist/molecules/SearchProducts/index.js +5 -0
  40. package/dist/molecules/SearchProducts/index.js.map +1 -0
  41. package/package.json +4 -4
  42. package/src/assets/ClockClockwise.tsx +12 -12
  43. package/src/assets/FadersHorizontal.tsx +84 -0
  44. package/src/assets/MagnifyingGlass.tsx +39 -0
  45. package/src/assets/TagIcon.tsx +2 -2
  46. package/src/assets/index.ts +2 -0
  47. package/src/index.ts +18 -8
  48. package/src/molecules/SearchAutoComplete/SearchAutoComplete.tsx +24 -0
  49. package/src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx +92 -0
  50. package/src/molecules/SearchAutoComplete/index.ts +5 -0
  51. package/src/molecules/SearchProducts/SearchProductItem.tsx +34 -0
  52. package/src/molecules/{SearchProductCard/SearchProductCardContent.tsx → SearchProducts/SearchProductItemContent.tsx} +9 -9
  53. package/src/molecules/{SearchProductCard/SearchProductCardImage.tsx → SearchProducts/SearchProductItemImage.tsx} +7 -7
  54. package/src/molecules/SearchProducts/SearchProducts.tsx +31 -0
  55. package/src/molecules/SearchProducts/index.ts +11 -0
  56. package/dist/molecules/SearchProductCard/SearchProductCard.d.ts +0 -20
  57. package/dist/molecules/SearchProductCard/SearchProductCard.js +0 -8
  58. package/dist/molecules/SearchProductCard/SearchProductCard.js.map +0 -1
  59. package/dist/molecules/SearchProductCard/SearchProductCardContent.js.map +0 -1
  60. package/dist/molecules/SearchProductCard/SearchProductCardImage.js +0 -6
  61. package/dist/molecules/SearchProductCard/SearchProductCardImage.js.map +0 -1
  62. package/dist/molecules/SearchProductCard/index.d.ts +0 -6
  63. package/dist/molecules/SearchProductCard/index.js +0 -4
  64. package/dist/molecules/SearchProductCard/index.js.map +0 -1
  65. package/src/molecules/SearchProductCard/SearchProductCard.tsx +0 -54
  66. 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;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,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,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,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,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"}
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,CA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AM,uBAAuB,CAAA;AAE3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,GACT,MAAM,mBAAmB,CAAA;AAS1B,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,EAAE,OAAO,IAAI,gBAAgB,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,CAA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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.73-alpha.0",
3
+ "version": "2.0.75-alpha.0",
4
4
  "module": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": "Emerson Laurentino @emersonlaurentino",
@@ -21,8 +21,8 @@
21
21
  "src"
22
22
  ],
23
23
  "devDependencies": {
24
- "@faststore/eslint-config": "^2.0.73-alpha.0",
25
- "@faststore/shared": "^2.0.73-alpha.0",
24
+ "@faststore/eslint-config": "^2.0.74-alpha.0",
25
+ "@faststore/shared": "^2.0.74-alpha.0",
26
26
  "eslint": "7.32.0",
27
27
  "typescript": "^4.8.4"
28
28
  },
@@ -30,5 +30,5 @@
30
30
  "node": "16.18.0",
31
31
  "yarn": "1.19.1"
32
32
  },
33
- "gitHead": "6ea74fc2ff1eaa78550e8801304eeac29e7d5938"
33
+ "gitHead": "87f62ee885f5e3df643c4715da2c4dc0f3234bea"
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
  )
@@ -0,0 +1,84 @@
1
+ import React from 'react'
2
+ import type { FC } from 'react'
3
+
4
+ // Icon from Phosphor Icons
5
+ const FadersHorizontal: FC = () => (
6
+ <svg
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ fill="currentColor"
9
+ viewBox="0 0 256 256"
10
+ strokeWidth="16"
11
+ width={24}
12
+ height={24}
13
+ >
14
+ <rect width="256" height="256" fill="none"></rect>
15
+ <line
16
+ x1="136"
17
+ y1="172"
18
+ x2="40"
19
+ y2="172"
20
+ fill="none"
21
+ stroke="currentColor"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ strokeWidth="16"
25
+ ></line>
26
+ <line
27
+ x1="216"
28
+ y1="172"
29
+ x2="168"
30
+ y2="172"
31
+ fill="none"
32
+ stroke="currentColor"
33
+ strokeLinecap="round"
34
+ strokeLinejoin="round"
35
+ strokeWidth="16"
36
+ ></line>
37
+ <line
38
+ x1="72"
39
+ y1="84"
40
+ x2="40"
41
+ y2="84"
42
+ fill="none"
43
+ stroke="currentColor"
44
+ strokeLinecap="round"
45
+ strokeLinejoin="round"
46
+ strokeWidth="16"
47
+ ></line>
48
+ <line
49
+ x1="216"
50
+ y1="84"
51
+ x2="104"
52
+ y2="84"
53
+ fill="none"
54
+ stroke="currentColor"
55
+ strokeLinecap="round"
56
+ strokeLinejoin="round"
57
+ strokeWidth="16"
58
+ ></line>
59
+ <line
60
+ x1="104"
61
+ y1="60"
62
+ x2="104"
63
+ y2="108"
64
+ fill="none"
65
+ stroke="currentColor"
66
+ strokeLinecap="round"
67
+ strokeLinejoin="round"
68
+ strokeWidth="16"
69
+ ></line>
70
+ <line
71
+ x1="168"
72
+ y1="196"
73
+ x2="168"
74
+ y2="148"
75
+ fill="none"
76
+ stroke="currentColor"
77
+ strokeLinecap="round"
78
+ strokeLinejoin="round"
79
+ strokeWidth="16"
80
+ ></line>
81
+ </svg>
82
+ )
83
+
84
+ export default FadersHorizontal
@@ -0,0 +1,39 @@
1
+ import React from 'react'
2
+ import type { FC } from 'react'
3
+
4
+ // Icon from Phosphor Icons
5
+ const MagnifyingGlass: FC = () => (
6
+ <svg
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ fill="currentColor"
9
+ viewBox="0 0 256 256"
10
+ strokeWidth="16"
11
+ width={24}
12
+ height={24}
13
+ >
14
+ <rect width="256" height="256" fill="none"></rect>
15
+ <circle
16
+ cx="116"
17
+ cy="116"
18
+ r="84"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ strokeWidth="16"
24
+ ></circle>
25
+ <line
26
+ x1="175.4"
27
+ y1="175.4"
28
+ x2="224"
29
+ y2="224"
30
+ fill="none"
31
+ stroke="currentColor"
32
+ strokeLinecap="round"
33
+ strokeLinejoin="round"
34
+ strokeWidth="16"
35
+ ></line>
36
+ </svg>
37
+ )
38
+
39
+ export default MagnifyingGlass
@@ -5,10 +5,10 @@ import React from 'react'
5
5
  const TagIcon: FC = () => (
6
6
  <svg
7
7
  xmlns="http://www.w3.org/2000/svg"
8
- width="192"
9
- height="192"
10
8
  fill="currentColor"
11
9
  viewBox="0 0 256 256"
10
+ width={24}
11
+ height={24}
12
12
  >
13
13
  <rect width="256" height="256" fill="none"></rect>
14
14
  <path
@@ -7,10 +7,12 @@ export { default as CaretDown } from './CaretDown'
7
7
  export { default as Checked } from './Checked'
8
8
  export { default as ClockClockwise } from './ClockClockwise'
9
9
  export { default as DotsThree } from './DotsThree'
10
+ export { default as FadersHorizontal } from './FadersHorizontal'
10
11
  export { default as Heart } from './Heart'
11
12
  export { default as House } from './House'
12
13
  export { default as Minus } from './Minus'
13
14
  export { default as Plus } from './Plus'
15
+ export { default as MagnifyingGlass } from './MagnifyingGlass'
14
16
  export { default as MinusCircle } from './MinusCircle'
15
17
  export { default as PlusCircle } from './PlusCircle'
16
18
  export { default as Ruler } from './Ruler'
package/src/index.ts CHANGED
@@ -116,6 +116,14 @@ export { default as RadioGroup, RadioOption } from './molecules/RadioGroup'
116
116
  export type { RadioGroupProps, RadioOptionProps } from './molecules/RadioGroup'
117
117
  export { default as Rating } from './molecules/Rating'
118
118
  export type { RatingProps } from './molecules/Rating'
119
+ export {
120
+ default as SearchAutoComplete,
121
+ SearchAutoCompleteTerm,
122
+ } from './molecules/SearchAutoComplete'
123
+ export type {
124
+ SearchAutoCompleteProps,
125
+ SearchAutoCompleteTermProps,
126
+ } from './molecules/SearchAutoComplete'
119
127
  export {
120
128
  default as SearchHistory,
121
129
  SearchHistoryTerm,
@@ -125,15 +133,17 @@ export type {
125
133
  SearchHistoryTermProps,
126
134
  } from './molecules/SearchHistory'
127
135
  export {
128
- default as SearchProductCard,
129
- SearchProductCardImage,
130
- SearchProductCardContent,
131
- } from './molecules/SearchProductCard'
136
+ default as SearchProducts,
137
+ SearchProductItem,
138
+ SearchProductItemImage,
139
+ SearchProductItemContent,
140
+ } from './molecules/SearchProducts'
132
141
  export type {
133
- SearchProductCardProps,
134
- SearchProductCardImageProps,
135
- SearchProductCardContentProps,
136
- } from './molecules/SearchProductCard'
142
+ SearchProductsProps,
143
+ SearchProductItemProps,
144
+ SearchProductItemImageProps,
145
+ SearchProductItemContentProps,
146
+ } from './molecules/SearchProducts'
137
147
  export { default as SearchTop, SearchTopTerm } from './molecules/SearchTop'
138
148
  export type { SearchTopProps, SearchTopTermProps } from './molecules/SearchTop'
139
149
  export { default as SelectField } from './molecules/SelectField'
@@ -0,0 +1,24 @@
1
+ import React, { HTMLAttributes } from 'react'
2
+ import { List } from '../..'
3
+
4
+ export interface SearchAutoCompleteProps
5
+ extends HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
+ */
9
+ testId?: string
10
+ }
11
+
12
+ const SearchAutoComplete = ({
13
+ testId = 'fs-search-auto-complete',
14
+ children,
15
+ ...otherProps
16
+ }: SearchAutoCompleteProps) => {
17
+ return (
18
+ <section data-testid={testId} data-fs-search-auto-complete {...otherProps}>
19
+ <List as="ol">{children}</List>
20
+ </section>
21
+ )
22
+ }
23
+
24
+ export default SearchAutoComplete
@@ -0,0 +1,92 @@
1
+ import type { ReactNode } from 'react'
2
+ import React, { HTMLAttributes, Fragment } from 'react'
3
+ import { Icon, MagnifyingGlass, Link, LinkProps, LinkElementType } from '../..'
4
+
5
+ function formatSearchTerm(
6
+ indexSubstring: number,
7
+ searchTerm: string,
8
+ suggestion: string
9
+ ) {
10
+ if (indexSubstring === 0) {
11
+ return searchTerm
12
+ .split('')
13
+ .map((char, idx) =>
14
+ idx === 0 && suggestion.indexOf(char.toUpperCase()) === 0
15
+ ? char.toUpperCase()
16
+ : char.toLowerCase()
17
+ )
18
+ .join('')
19
+ }
20
+
21
+ return searchTerm.toLowerCase()
22
+ }
23
+
24
+ export interface SearchAutoCompleteTermProps
25
+ extends HTMLAttributes<HTMLDivElement> {
26
+ /**
27
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
28
+ */
29
+ testId?: string
30
+ /**
31
+ * Props for the link from term component.
32
+ */
33
+ linkProps?: Partial<LinkProps<LinkElementType>>
34
+ /**
35
+ * A React component that will be rendered as an icon.
36
+ */
37
+ icon?: ReactNode
38
+ /**
39
+ * Term researched.
40
+ */
41
+ term: string
42
+ /**
43
+ * Suggestion proposed with auto complete.
44
+ */
45
+ suggestion: string
46
+ }
47
+
48
+ const SearchAutoCompleteTerm = ({
49
+ testId = 'fs-search-auto-complete-term',
50
+ suggestion,
51
+ term,
52
+ linkProps,
53
+ icon,
54
+ }: SearchAutoCompleteTermProps) => {
55
+ const autoCompleteIcon = icon ? icon : <MagnifyingGlass />
56
+
57
+ const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase())
58
+
59
+ return (
60
+ <li data-fs-search-auto-complete-item data-testid={testId}>
61
+ <Link
62
+ {...linkProps}
63
+ data-fs-search-auto-complete-item-link
64
+ variant="display"
65
+ >
66
+ {autoCompleteIcon && (
67
+ <Icon
68
+ component={autoCompleteIcon}
69
+ data-fs-search-auto-complete-item-icon
70
+ />
71
+ )}
72
+ <p>
73
+ {suggestionSubstring.map((substring, indexSubstring) => (
74
+ <Fragment key={[substring, indexSubstring].join()}>
75
+ {substring.length > 0 && (
76
+ <strong data-fs-search-auto-complete-item-suggestion>
77
+ {indexSubstring === 0
78
+ ? substring.charAt(0).toUpperCase() + substring.slice(1)
79
+ : substring}
80
+ </strong>
81
+ )}
82
+ {indexSubstring !== suggestionSubstring.length - 1 &&
83
+ formatSearchTerm(indexSubstring, term, suggestion)}
84
+ </Fragment>
85
+ ))}
86
+ </p>
87
+ </Link>
88
+ </li>
89
+ )
90
+ }
91
+
92
+ export default SearchAutoCompleteTerm
@@ -0,0 +1,5 @@
1
+ export { default } from './SearchAutoComplete'
2
+ export type { SearchAutoCompleteProps } from './SearchAutoComplete'
3
+
4
+ export { default as SearchAutoCompleteTerm } from './SearchAutoCompleteTerm'
5
+ export type { SearchAutoCompleteTermProps } from './SearchAutoCompleteTerm'
@@ -0,0 +1,34 @@
1
+ import React, { forwardRef } from 'react'
2
+ import type { HTMLAttributes } from 'react'
3
+
4
+ import { Link, LinkProps, LinkElementType } from '../..'
5
+
6
+ export interface SearchProductItemProps extends HTMLAttributes<HTMLDivElement> {
7
+ /**
8
+ * ID to find this component in testing tools (e.g.: cypress,
9
+ * testing-library, and jest).
10
+ */
11
+ testId?: string
12
+ /**
13
+ * Props for the link from SearchProduct component.
14
+ */
15
+ linkProps?: Partial<LinkProps<LinkElementType>>
16
+ }
17
+
18
+ const SearchProductItem = forwardRef<HTMLDivElement, SearchProductItemProps>(
19
+ function ProductItem({
20
+ testId = 'fs-search-product-item',
21
+ linkProps,
22
+ children,
23
+ }) {
24
+ return (
25
+ <li data-fs-search-product-item data-testid={testId}>
26
+ <Link {...linkProps} data-fs-search-product-item-link variant="display">
27
+ {children}
28
+ </Link>
29
+ </li>
30
+ )
31
+ }
32
+ )
33
+
34
+ export default SearchProductItem
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef } from 'react'
2
- import { Price } from '../../'
2
+ import { Price } from '../..'
3
3
  import type { PriceFormatter } from '../../atoms/Price/Price'
4
4
 
5
5
  interface Price {
@@ -8,7 +8,7 @@ interface Price {
8
8
  formatter: PriceFormatter
9
9
  }
10
10
 
11
- export type SearchProductCardContentProps = {
11
+ export type SearchProductItemContentProps = {
12
12
  /**
13
13
  * Specifies the product's title.
14
14
  */
@@ -19,14 +19,14 @@ export type SearchProductCardContentProps = {
19
19
  price: Price
20
20
  }
21
21
 
22
- const SearchProductCardContent = forwardRef<
22
+ const SearchProductItemContent = forwardRef<
23
23
  HTMLElement,
24
- SearchProductCardContentProps
25
- >(function SearchProductCardContent({ price, title, ...otherProps }, ref) {
24
+ SearchProductItemContentProps
25
+ >(function SearchProductItemContent({ price, title, ...otherProps }, ref) {
26
26
  return (
27
- <section ref={ref} data-fs-search-product-card-content {...otherProps}>
28
- <p data-fs-search-product-card-title>{title}</p>
29
- <span data-fs-search-product-card-prices>
27
+ <section ref={ref} data-fs-search-product-item-content {...otherProps}>
28
+ <p data-fs-search-product-item-title>{title}</p>
29
+ <span data-fs-search-product-item-prices>
30
30
  <Price
31
31
  value={price?.listPrice ? price.listPrice : 0}
32
32
  formatter={price?.formatter}
@@ -48,4 +48,4 @@ const SearchProductCardContent = forwardRef<
48
48
  )
49
49
  })
50
50
 
51
- export default SearchProductCardContent
51
+ export default SearchProductItemContent
@@ -1,7 +1,7 @@
1
1
  import type { HTMLAttributes } from 'react'
2
2
  import React, { forwardRef } from 'react'
3
3
 
4
- export interface SearchProductCardImageProps
4
+ export interface SearchProductItemImageProps
5
5
  extends HTMLAttributes<HTMLDivElement> {
6
6
  /**
7
7
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
@@ -9,17 +9,17 @@ export interface SearchProductCardImageProps
9
9
  testId?: string
10
10
  }
11
11
 
12
- const SearchProductCardImage = forwardRef<
12
+ const SearchProductItemImage = forwardRef<
13
13
  HTMLDivElement,
14
- SearchProductCardImageProps
15
- >(function SearchProductCardImage(
16
- { testId = 'fs-search-product-card-image', children, ...otherProps },
14
+ SearchProductItemImageProps
15
+ >(function SearchProductItemImage(
16
+ { testId = 'fs-search-product-item-image', children, ...otherProps },
17
17
  ref
18
18
  ) {
19
19
  return (
20
20
  <div
21
21
  ref={ref}
22
- data-fs-search-product-card-image
22
+ data-fs-search-product-item-image
23
23
  data-testid={testId}
24
24
  {...otherProps}
25
25
  >
@@ -28,4 +28,4 @@ const SearchProductCardImage = forwardRef<
28
28
  )
29
29
  })
30
30
 
31
- export default SearchProductCardImage
31
+ export default SearchProductItemImage
@@ -0,0 +1,31 @@
1
+ import React, { HTMLAttributes } from 'react'
2
+ import { List } from '../..'
3
+
4
+ export interface SearchProductsProps 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
+ * Title attribute for the <section> tag rendered by this component.
11
+ */
12
+ title?: string
13
+ }
14
+
15
+ const SearchProductsProps = ({
16
+ testId = 'fs-search-products',
17
+ title = 'Suggested Products',
18
+ children,
19
+ ...otherProps
20
+ }: SearchProductsProps) => {
21
+ return (
22
+ <section data-testid={testId} data-fs-search-products {...otherProps}>
23
+ <header data-fs-search-products-header>
24
+ <p data-fs-search-products-title>{title}</p>
25
+ </header>
26
+ <List as="ol">{children}</List>
27
+ </section>
28
+ )
29
+ }
30
+
31
+ export default SearchProductsProps
@@ -0,0 +1,11 @@
1
+ export { default } from './SearchProducts'
2
+ export type { SearchProductsProps } from './SearchProducts'
3
+
4
+ export { default as SearchProductItem } from './SearchProductItem'
5
+ export type { SearchProductItemProps } from './SearchProductItem'
6
+
7
+ export { default as SearchProductItemImage } from './SearchProductItemImage'
8
+ export type { SearchProductItemImageProps } from './SearchProductItemImage'
9
+
10
+ export { default as SearchProductItemContent } from './SearchProductItemContent'
11
+ export type { SearchProductItemContentProps } from './SearchProductItemContent'
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- import { LinkProps, LinkElementType } from '../../';
4
- export interface SearchProductCardProps 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
- * Callback function when SearchProduct link is clicked.
16
- */
17
- onLinkClick?: () => void;
18
- }
19
- declare const SearchProductCard: React.ForwardRefExoticComponent<SearchProductCardProps & React.RefAttributes<HTMLDivElement>>;
20
- export default SearchProductCard;
@@ -1,8 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- import { Link } from '../../';
3
- const SearchProductCard = forwardRef(function ProductCard({ testId = 'fs-search-product-card', linkProps, onLinkClick, children, ...otherProps }, ref) {
4
- return (React.createElement("article", { ref: ref, "data-fs-search-product-card": true, "data-testid": testId, ...otherProps },
5
- React.createElement(Link, { ...linkProps, "data-fs-search-product-card-link": true, title: name, variant: "display", onClick: onLinkClick }, children)));
6
- });
7
- export default SearchProductCard;
8
- //# sourceMappingURL=SearchProductCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchProductCard.js","sourceRoot":"","sources":["../../../src/molecules/SearchProductCard/SearchProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAA8B,MAAM,QAAQ,CAAA;AAkBzD,MAAM,iBAAiB,GAAG,UAAU,CAClC,SAAS,WAAW,CAClB,EACE,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,WAAW,EACX,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,sDAEK,MAAM,KACf,UAAU;QAEd,oBAAC,IAAI,OACC,SAAS,4CAEb,KAAK,EAAE,IAAI,EACX,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,WAAW,IAEnB,QAAQ,CACJ,CACC,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchProductCardContent.js","sourceRoot":"","sources":["../../../src/molecules/SearchProductCard/SearchProductCardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAoB9B,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,6 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- const SearchProductCardImage = forwardRef(function SearchProductCardImage({ testId = 'fs-search-product-card-image', children, ...otherProps }, ref) {
3
- return (React.createElement("div", { ref: ref, "data-fs-search-product-card-image": true, "data-testid": testId, ...otherProps }, children));
4
- });
5
- export default SearchProductCardImage;
6
- //# sourceMappingURL=SearchProductCardImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchProductCardImage.js","sourceRoot":"","sources":["../../../src/molecules/SearchProductCard/SearchProductCardImage.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"}
@@ -1,6 +0,0 @@
1
- export { default } from './SearchProductCard';
2
- export type { SearchProductCardProps } from './SearchProductCard';
3
- export { default as SearchProductCardImage } from './SearchProductCardImage';
4
- export type { SearchProductCardImageProps } from './SearchProductCardImage';
5
- export { default as SearchProductCardContent } from './SearchProductCardContent';
6
- export type { SearchProductCardContentProps } from './SearchProductCardContent';
@@ -1,4 +0,0 @@
1
- export { default } from './SearchProductCard';
2
- export { default as SearchProductCardImage } from './SearchProductCardImage';
3
- export { default as SearchProductCardContent } from './SearchProductCardContent';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchProductCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAG7C,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAG5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAA"}
@@ -1,54 +0,0 @@
1
- import React, { forwardRef } from 'react'
2
- import type { HTMLAttributes } from 'react'
3
-
4
- import { Link, LinkProps, LinkElementType } from '../../'
5
-
6
- export interface SearchProductCardProps extends HTMLAttributes<HTMLDivElement> {
7
- /**
8
- * ID to find this component in testing tools (e.g.: cypress,
9
- * testing-library, and jest).
10
- */
11
- testId?: string
12
- /**
13
- * Props for the link from SearchProduct component.
14
- */
15
- linkProps?: Partial<LinkProps<LinkElementType>>
16
- /**
17
- * Callback function when SearchProduct link is clicked.
18
- */
19
- onLinkClick?: () => void
20
- }
21
-
22
- const SearchProductCard = forwardRef<HTMLDivElement, SearchProductCardProps>(
23
- function ProductCard(
24
- {
25
- testId = 'fs-search-product-card',
26
- linkProps,
27
- onLinkClick,
28
- children,
29
- ...otherProps
30
- },
31
- ref
32
- ) {
33
- return (
34
- <article
35
- ref={ref}
36
- data-fs-search-product-card
37
- data-testid={testId}
38
- {...otherProps}
39
- >
40
- <Link
41
- {...linkProps}
42
- data-fs-search-product-card-link
43
- title={name}
44
- variant="display"
45
- onClick={onLinkClick}
46
- >
47
- {children}
48
- </Link>
49
- </article>
50
- )
51
- }
52
- )
53
-
54
- export default SearchProductCard
@@ -1,8 +0,0 @@
1
- export { default } from './SearchProductCard'
2
- export type { SearchProductCardProps } from './SearchProductCard'
3
-
4
- export { default as SearchProductCardImage } from './SearchProductCardImage'
5
- export type { SearchProductCardImageProps } from './SearchProductCardImage'
6
-
7
- export { default as SearchProductCardContent } from './SearchProductCardContent'
8
- export type { SearchProductCardContentProps } from './SearchProductCardContent'