@faststore/components 2.0.24-alpha.0 → 2.0.28-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 (63) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/assets/ArrowRight.js +1 -1
  3. package/dist/assets/ArrowRight.js.map +1 -1
  4. package/dist/assets/CaretDown.js +1 -1
  5. package/dist/assets/CaretDown.js.map +1 -1
  6. package/dist/assets/Checked.js +1 -1
  7. package/dist/assets/Checked.js.map +1 -1
  8. package/dist/assets/House.js +1 -1
  9. package/dist/assets/House.js.map +1 -1
  10. package/dist/assets/Ruler.d.ts +3 -0
  11. package/dist/assets/Ruler.js +10 -0
  12. package/dist/assets/Ruler.js.map +1 -0
  13. package/dist/assets/ShoppingCart.js +1 -1
  14. package/dist/assets/ShoppingCart.js.map +1 -1
  15. package/dist/assets/X.js +1 -1
  16. package/dist/assets/X.js.map +1 -1
  17. package/dist/assets/XCircle.js +1 -1
  18. package/dist/assets/XCircle.js.map +1 -1
  19. package/dist/assets/index.d.ts +1 -0
  20. package/dist/assets/index.js +1 -0
  21. package/dist/assets/index.js.map +1 -1
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/molecules/Table/Table.d.ts +18 -0
  26. package/dist/molecules/Table/Table.js +7 -0
  27. package/dist/molecules/Table/Table.js.map +1 -0
  28. package/dist/molecules/Table/TableBody.d.ts +14 -0
  29. package/dist/molecules/Table/TableBody.js +6 -0
  30. package/dist/molecules/Table/TableBody.js.map +1 -0
  31. package/dist/molecules/Table/TableCell.d.ts +24 -0
  32. package/dist/molecules/Table/TableCell.js +7 -0
  33. package/dist/molecules/Table/TableCell.js.map +1 -0
  34. package/dist/molecules/Table/TableFooter.d.ts +14 -0
  35. package/dist/molecules/Table/TableFooter.js +6 -0
  36. package/dist/molecules/Table/TableFooter.js.map +1 -0
  37. package/dist/molecules/Table/TableHead.d.ts +14 -0
  38. package/dist/molecules/Table/TableHead.js +6 -0
  39. package/dist/molecules/Table/TableHead.js.map +1 -0
  40. package/dist/molecules/Table/TableRow.d.ts +14 -0
  41. package/dist/molecules/Table/TableRow.js +6 -0
  42. package/dist/molecules/Table/TableRow.js.map +1 -0
  43. package/dist/molecules/Table/index.d.ts +12 -0
  44. package/dist/molecules/Table/index.js +7 -0
  45. package/dist/molecules/Table/index.js.map +1 -0
  46. package/package.json +2 -2
  47. package/src/assets/ArrowRight.tsx +20 -4
  48. package/src/assets/CaretDown.tsx +8 -2
  49. package/src/assets/Checked.tsx +0 -1
  50. package/src/assets/House.tsx +8 -2
  51. package/src/assets/Ruler.tsx +23 -0
  52. package/src/assets/ShoppingCart.tsx +0 -1
  53. package/src/assets/X.tsx +0 -1
  54. package/src/assets/XCircle.tsx +0 -1
  55. package/src/assets/index.ts +1 -0
  56. package/src/index.ts +16 -0
  57. package/src/molecules/Table/Table.tsx +38 -0
  58. package/src/molecules/Table/TableBody.tsx +29 -0
  59. package/src/molecules/Table/TableCell.tsx +55 -0
  60. package/src/molecules/Table/TableFooter.tsx +29 -0
  61. package/src/molecules/Table/TableHead.tsx +29 -0
  62. package/src/molecules/Table/TableRow.tsx +28 -0
  63. package/src/molecules/Table/index.ts +17 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.28-alpha.0](https://github.com/vtex/faststore/compare/v2.0.27-alpha.0...v2.0.28-alpha.0) (2022-12-23)
7
+
8
+
9
+ ### Chores
10
+
11
+ * Removes icons id ([#1571](https://github.com/vtex/faststore/issues/1571)) ([2e790fa](https://github.com/vtex/faststore/commit/2e790faa2ca37fc4f6f9f7c7796f79ceaf6a3f02))
12
+
13
+
14
+
15
+ ## [2.0.27-alpha.0](https://github.com/vtex/faststore/compare/v2.0.26-alpha.0...v2.0.27-alpha.0) (2022-12-23)
16
+
17
+
18
+ ### Features
19
+
20
+ * Adds `Table` component ([#1554](https://github.com/vtex/faststore/issues/1554)) ([0ed5f45](https://github.com/vtex/faststore/commit/0ed5f455fa42cf3a02ae3dd0370759782caf6cdd))
21
+
22
+
23
+
6
24
  ## [2.0.24-alpha.0](https://github.com/vtex/faststore/compare/v2.0.23-alpha.0...v2.0.24-alpha.0) (2022-12-20)
7
25
 
8
26
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const ArrowRight = () => (React.createElement("svg", { id: "ArrowRight", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
3
+ const ArrowRight = () => (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
5
  React.createElement("line", { x1: "40", y1: "128", x2: "216", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" }),
6
6
  React.createElement("polyline", { points: "144 56 216 128 144 200", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" })));
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowRight.js","sourceRoot":"","sources":["../../src/assets/ArrowRight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,UAAU,GAAO,GAAG,EAAE,CAAC,CAC3B,6BACE,EAAE,EAAC,YAAY,EACf,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAER,8BAAM,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,IAAI,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AC,IAAI,GACN,CACR,CACP,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const CaretDown = () => (React.createElement("svg", { id: "CaretDown", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
3
+ const CaretDown = () => (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
5
  React.createElement("polyline", { points: "208 96 128 176 48 96", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" })));
6
6
  export default CaretDown;
@@ -1 +1 @@
1
- {"version":3,"file":"CaretDown.js","sourceRoot":"","sources":["../../src/assets/CaretDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,SAAS,GAAO,GAAG,EAAE,CAAC,CAC1B,6BACE,EAAE,EAAC,WAAW,EACd,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,kCAAU,MAAM,EAAC,sBAAsB,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,GAAY,CAC/I,CACP,CAAA;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"CaretDown.js","sourceRoot":"","sources":["../../src/assets/CaretDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,SAAS,GAAO,GAAG,EAAE,CAAC,CAC1B,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,kCACE,MAAM,EAAC,sBAAsB,EAC7B,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,IAAI,GACN,CACR,CACP,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const Checked = () => (React.createElement("svg", { id: "Checked", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 19 18", strokeWidth: "16", width: 15, height: 15 },
3
+ const Checked = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 19 18", strokeWidth: "16", width: 15, height: 15 },
4
4
  React.createElement("path", { d: "M15.6875 5.0625L7.8125 12.9375L3.875 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })));
5
5
  export default Checked;
6
6
  //# sourceMappingURL=Checked.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checked.js","sourceRoot":"","sources":["../../src/assets/Checked.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,6BACE,EAAE,EAAC,SAAS,EACZ,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BACE,CAAC,EAAC,wCAAwC,EAC1C,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"Checked.js","sourceRoot":"","sources":["../../src/assets/Checked.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,6BACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;IAEV,8BACE,CAAC,EAAC,wCAAwC,EAC1C,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const House = () => (React.createElement("svg", { id: "House", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
3
+ const House = () => (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
5
  React.createElement("path", { d: "M152,208V160a8,8,0,0,0-8-8H112a8,8,0,0,0-8,8v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V115.5a8.3,8.3,0,0,1,2.6-5.9l80-72.7a8,8,0,0,1,10.8,0l80,72.7a8.3,8.3,0,0,1,2.6,5.9V208a8,8,0,0,1-8,8H160A8,8,0,0,1,152,208Z", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" })));
6
6
  export default House;
@@ -1 +1 @@
1
- {"version":3,"file":"House.js","sourceRoot":"","sources":["../../src/assets/House.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,KAAK,GAAO,GAAG,EAAE,CAAC,CACtB,6BACE,EAAE,EAAC,OAAO,EACV,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,8BAAM,CAAC,EAAC,4MAA4M,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,GAAQ,CACxT,CACP,CAAA;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"House.js","sourceRoot":"","sources":["../../src/assets/House.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,KAAK,GAAO,GAAG,EAAE,CAAC,CACtB,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,CAAC,EAAC,4MAA4M,EAC9M,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,KAAK,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { FC } from 'react';
2
+ declare const Ruler: FC;
3
+ export default Ruler;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ // Icon from Phosphor Icons
3
+ const Ruler = () => (React.createElement("svg", { id: "Ruler", 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("rect", { x: "26.2", y: "82.7", width: "203.6", height: "90.51", rx: "8", transform: "translate(-53 128) rotate(-45)", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" }),
6
+ React.createElement("line", { x1: "132", y1: "60", x2: "164", y2: "92", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" }),
7
+ React.createElement("line", { x1: "96", y1: "96", x2: "128", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" }),
8
+ React.createElement("line", { x1: "60", y1: "132", x2: "92", y2: "164", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "24" })));
9
+ export default Ruler;
10
+ //# sourceMappingURL=Ruler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ruler.js","sourceRoot":"","sources":["../../src/assets/Ruler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,KAAK,GAAO,GAAG,EAAE,CAAC,CACtB,6BACE,EAAE,EAAC,OAAO,EACV,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,aAAa,EACrB,WA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const ShoppingCart = () => (React.createElement("svg", { id: "ShoppingCart", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
3
+ const ShoppingCart = () => (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
5
  React.createElement("path", { d: "M184,184H69.81818L41.92162,30.56892A8,8,0,0,0,34.05066,24H16", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
6
6
  React.createElement("circle", { cx: "80", cy: "204", r: "20", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1 +1 @@
1
- {"version":3,"file":"ShoppingCart.js","sourceRoot":"","sources":["../../src/assets/ShoppingCart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,YAAY,GAAO,GAAG,EAAE,CAAC,CAC7B,6BACE,EAAE,EAAC,cAAc,EACjB,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,CAAC,EAAC,8DAA8D,EAChE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,gCACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACd;IACV,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,GACd;IACV,8BACE,CAAC,EAAC,iEAAiE,EACnE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"ShoppingCart.js","sourceRoot":"","sources":["../../src/assets/ShoppingCart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,YAAY,GAAO,GAAG,EAAE,CAAC,CAC7B,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,CAAC,EAAC,8DAA8D,EAChE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,gCACE,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACd;IACV,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,GACd;IACV,8BACE,CAAC,EAAC,iEAAiE,EACnE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,YAAY,CAAA"}
package/dist/assets/X.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const X = () => (React.createElement("svg", { id: "X", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 24, height: 24 },
3
+ const X = () => (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
5
  React.createElement("line", { x1: "200", y1: "56", x2: "56", y2: "200", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
6
6
  React.createElement("line", { x1: "200", y1: "200", x2: "56", y2: "56", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })));
@@ -1 +1 @@
1
- {"version":3,"file":"X.js","sourceRoot":"","sources":["../../src/assets/X.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,CAAC,GAAO,GAAG,EAAE,CAAC,CAClB,6BACE,EAAE,EAAC,GAAG,EACN,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,IAAI,EACP,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"X.js","sourceRoot":"","sources":["../../src/assets/X.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,CAAC,GAAO,GAAG,EAAE,CAAC,CAClB,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,IAAI,EACP,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  // Icon from Phosphor Icons
3
- const XCircle = () => (React.createElement("svg", { id: "XCircle", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 20, height: 20 },
3
+ const XCircle = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "16", width: 20, height: 20 },
4
4
  React.createElement("rect", { width: "256", height: "256", fill: "none" }),
5
5
  React.createElement("circle", { cx: "128", cy: "128", r: "96", fill: "none", stroke: "currentColor", strokeMiterlimit: "10" }),
6
6
  React.createElement("line", { x1: "160", y1: "96", x2: "96", y2: "160", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
@@ -1 +1 @@
1
- {"version":3,"file":"XCircle.js","sourceRoot":"","sources":["../../src/assets/XCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,6BACE,EAAE,EAAC,SAAS,EACZ,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,gBAAgB,EAAC,IAAI,GACb;IACV,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"XCircle.js","sourceRoot":"","sources":["../../src/assets/XCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,2BAA2B;AAC3B,MAAM,OAAO,GAAO,GAAG,EAAE,CAAC,CACxB,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,gBAAgB,EAAC,IAAI,GACb;IACV,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB;IACR,8BACE,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,KAAK,EACR,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GAChB,CACJ,CACP,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -2,6 +2,7 @@ export { default as ArrowRight } from './ArrowRight';
2
2
  export { default as CaretDown } from './CaretDown';
3
3
  export { default as Checked } from './Checked';
4
4
  export { default as House } from './House';
5
+ export { default as Ruler } from './Ruler';
5
6
  export { default as ShoppingCart } from './ShoppingCart';
6
7
  export { default as X } from './X';
7
8
  export { default as XCircle } from './XCircle';
@@ -2,6 +2,7 @@ export { default as ArrowRight } from './ArrowRight';
2
2
  export { default as CaretDown } from './CaretDown';
3
3
  export { default as Checked } from './Checked';
4
4
  export { default as House } from './House';
5
+ export { default as Ruler } from './Ruler';
5
6
  export { default as ShoppingCart } from './ShoppingCart';
6
7
  export { default as X } from './X';
7
8
  export { default as XCircle } from './XCircle';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,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,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,KAAK,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,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,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,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
@@ -39,6 +39,8 @@ export { default as RadioField } from './molecules/RadioField';
39
39
  export type { RadioFieldProps } from './molecules/RadioField';
40
40
  export { default as SelectField } from './molecules/SelectField';
41
41
  export type { SelectFieldProps } from './molecules/SelectField';
42
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
43
+ export type { TableProps, TableBodyProps, TableCellProps, TableFooterProps, TableHeadProps, TableRowProps, } from './molecules/Table';
42
44
  export { default as Tag } from './molecules/Tag';
43
45
  export type { TagProps } from './molecules/Tag';
44
46
  export { default as Toggle } from './molecules/Toggle';
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export { default as InputField } from './molecules/InputField';
23
23
  export { default as LinkButton } from './molecules/LinkButton';
24
24
  export { default as RadioField } from './molecules/RadioField';
25
25
  export { default as SelectField } from './molecules/SelectField';
26
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
26
27
  export { default as Tag } from './molecules/Tag';
27
28
  export { default as Toggle } from './molecules/Toggle';
28
29
  export { default as ToggleField } from './molecules/ToggleField';
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,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,MAAM,EAA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AAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,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;AAGhE,YAAY;AACZ,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,WAAW,GACZ,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { DetailedHTMLProps, TableHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * Children for Table components.
10
+ */
11
+ children: React.ReactNode;
12
+ /**
13
+ * Defines what style this component should use.
14
+ */
15
+ variant?: 'colored' | 'bordered';
16
+ }
17
+ declare const Table: React.ForwardRefExoticComponent<Pick<TableProps, "slot" | "style" | "summary" | "title" | "children" | "testId" | "variant" | "aria-label" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "key" | "cellPadding" | "cellSpacing"> & React.RefAttributes<HTMLTableElement>>;
18
+ export default Table;
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ const Table = forwardRef(function Table({ variant = 'colored', testId = 'fs-table', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { "data-fs-table": true },
4
+ React.createElement("table", { ref: ref, "data-fs-table-content": true, "data-fs-table-variant": variant, "data-testid": testId, ...otherProps }, children)));
5
+ });
6
+ export default Table;
7
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/molecules/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBzC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CACnE,EAAE,OAAO,GAAG,SAAS,EAAE,MAAM,GAAG,UAAU,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACrE,GAAG;IAEH,OAAO,CACL;QACE,+BACE,GAAG,EAAE,GAAG,0DAEe,OAAO,iBACjB,MAAM,KACf,UAAU,IAEb,QAAQ,CACH,CACJ,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,KAAK,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * Children for TableBody components.
10
+ */
11
+ children: React.ReactNode;
12
+ }
13
+ declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
14
+ export default TableBody;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const TableBody = forwardRef(function TableBody({ children, testId = 'fs-table-body', ...otherProps }, ref) {
3
+ return (React.createElement("tbody", { ref: ref, "data-testid": testId, "data-fs-table-body": true, ...otherProps }, children));
4
+ });
5
+ export default TableBody;
6
+ //# sourceMappingURL=TableBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableBody.js","sourceRoot":"","sources":["../../../src/molecules/Table/TableBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,SAAS,GAAG,UAAU,CAC1B,SAAS,SAAS,CAChB,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,GAAG,UAAU,EAAE,EACrD,GAAG;IAEH,OAAO,CACL,+BAAO,GAAG,EAAE,GAAG,iBAAe,MAAM,iCAAyB,UAAU,IACpE,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,24 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ declare type TableCellVariant = 'data' | 'header';
4
+ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Specify if this component should be rendered as a header (`<th>`) or as a data cell (`<td>`).
11
+ */
12
+ variant?: TableCellVariant;
13
+ /**
14
+ * Defines the cells that the header element (`<th>`) relates to.
15
+ * @see scope https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
16
+ */
17
+ scope?: 'col' | 'row' | 'rowgroup' | 'colgroup';
18
+ /**
19
+ * Defines how this component should be aligned.
20
+ */
21
+ align?: 'left' | 'center' | 'right';
22
+ }
23
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
24
+ export default TableCell;
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ const TableCell = forwardRef(function TableCell({ testId = 'fs-table-cell', children, variant = 'data', scope, align, ...otherProps }, ref) {
3
+ const Cell = variant === 'header' ? 'th' : 'td';
4
+ return (React.createElement(Cell, { ref: ref, "data-fs-table-cell": variant, "data-fs-table-cell-align": align, "data-testid": testId, scope: scope, ...otherProps }, children));
5
+ });
6
+ export default TableCell;
7
+ //# sourceMappingURL=TableCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/molecules/Table/TableCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAwBzC,MAAM,SAAS,GAAG,UAAU,CAC1B,SAAS,SAAS,CAChB,EACE,MAAM,GAAG,eAAe,EACxB,QAAQ,EACR,OAAO,GAAG,MAAM,EAChB,KAAK,EACL,KAAK,EACL,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,IAAI,GAAG,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;IAE/C,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,wBACY,OAAO,8BACD,KAAK,iBAClB,MAAM,EACnB,KAAK,EAAE,KAAK,KACR,UAAU,IAEb,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface TableFooterProps extends HTMLAttributes<HTMLTableSectionElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * Children for TableFooter components.
10
+ */
11
+ children: React.ReactNode;
12
+ }
13
+ declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
14
+ export default TableFooter;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const TableFooter = forwardRef(function TableFooter({ children, testId = 'fs-table-footer', ...otherProps }, ref) {
3
+ return (React.createElement("tfoot", { ref: ref, "data-testid": testId, "data-fs-table-footer": true, ...otherProps }, children));
4
+ });
5
+ export default TableFooter;
6
+ //# sourceMappingURL=TableFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFooter.js","sourceRoot":"","sources":["../../../src/molecules/Table/TableFooter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,QAAQ,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,+BAAO,GAAG,EAAE,GAAG,iBAAe,MAAM,mCAA2B,UAAU,IACtE,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface TableHeadProps extends HTMLAttributes<HTMLTableSectionElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * Children for TableHead components.
10
+ */
11
+ children: React.ReactNode;
12
+ }
13
+ declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableSectionElement>>;
14
+ export default TableHead;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const TableHead = forwardRef(function TableHead({ children, testId = 'fs-table-head', ...otherProps }, ref) {
3
+ return (React.createElement("thead", { ref: ref, "data-testid": testId, "data-fs-table-head": true, ...otherProps }, children));
4
+ });
5
+ export default TableHead;
6
+ //# sourceMappingURL=TableHead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHead.js","sourceRoot":"","sources":["../../../src/molecules/Table/TableHead.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,SAAS,GAAG,UAAU,CAC1B,SAAS,SAAS,CAChB,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,GAAG,UAAU,EAAE,EACrD,GAAG;IAEH,OAAO,CACL,+BAAO,GAAG,EAAE,GAAG,iBAAe,MAAM,iCAAyB,UAAU,IACpE,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * Children for TableRow components.
10
+ */
11
+ children: React.ReactNode;
12
+ }
13
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
14
+ export default TableRow;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const TableRow = forwardRef(function TableRow({ testId = 'fs-table-row', children, ...otherProps }, ref) {
3
+ return (React.createElement("tr", { ref: ref, "data-fs-table-row": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default TableRow;
6
+ //# sourceMappingURL=TableRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/molecules/Table/TableRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAazC,MAAM,QAAQ,GAAG,UAAU,CACzB,SAAS,QAAQ,CACf,EAAE,MAAM,GAAG,cAAc,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACpD,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,4CAAiC,MAAM,KAAM,UAAU,IAChE,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,12 @@
1
+ export { default as Table } from './Table';
2
+ export type { TableProps } from './Table';
3
+ export { default as TableRow } from './TableRow';
4
+ export type { TableRowProps } from './TableRow';
5
+ export { default as TableCell } from './TableCell';
6
+ export type { TableCellProps } from './TableCell';
7
+ export { default as TableBody } from './TableBody';
8
+ export type { TableBodyProps } from './TableBody';
9
+ export { default as TableHead } from './TableHead';
10
+ export type { TableHeadProps } from './TableHead';
11
+ export { default as TableFooter } from './TableFooter';
12
+ export type { TableFooterProps } from './TableFooter';
@@ -0,0 +1,7 @@
1
+ export { default as Table } from './Table';
2
+ export { default as TableRow } from './TableRow';
3
+ export { default as TableCell } from './TableCell';
4
+ export { default as TableBody } from './TableBody';
5
+ export { default as TableHead } from './TableHead';
6
+ export { default as TableFooter } from './TableFooter';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGhD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAGlD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAGlD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAGlD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.24-alpha.0",
3
+ "version": "2.0.28-alpha.0",
4
4
  "module": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": "Emerson Laurentino @emersonlaurentino",
@@ -28,5 +28,5 @@
28
28
  "node": "16.18.0",
29
29
  "yarn": "1.19.1"
30
30
  },
31
- "gitHead": "b59392c361cae99ef9b261125b561860b59ee6cd"
31
+ "gitHead": "3fd249f7fa1d6224af74c6a53e429528f82c96fe"
32
32
  }
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const ArrowRight: FC = () => (
6
6
  <svg
7
- id="ArrowRight"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
@@ -12,9 +11,26 @@ const ArrowRight: FC = () => (
12
11
  width={24}
13
12
  height={24}
14
13
  >
15
- <rect width="256" height="256" fill="none"></rect>
16
- <line x1="40" y1="128" x2="216" y2="128" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></line>
17
- <polyline points="144 56 216 128 144 200" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></polyline>
14
+ <rect width="256" height="256" fill="none"></rect>
15
+ <line
16
+ x1="40"
17
+ y1="128"
18
+ x2="216"
19
+ y2="128"
20
+ fill="none"
21
+ stroke="currentColor"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ strokeWidth="24"
25
+ ></line>
26
+ <polyline
27
+ points="144 56 216 128 144 200"
28
+ fill="none"
29
+ stroke="currentColor"
30
+ strokeLinecap="round"
31
+ strokeLinejoin="round"
32
+ strokeWidth="24"
33
+ ></polyline>
18
34
  </svg>
19
35
  )
20
36
 
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const CaretDown: FC = () => (
6
6
  <svg
7
- id="CaretDown"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
@@ -13,7 +12,14 @@ const CaretDown: FC = () => (
13
12
  height={24}
14
13
  >
15
14
  <rect width="256" height="256" fill="none"></rect>
16
- <polyline points="208 96 128 176 48 96" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></polyline>
15
+ <polyline
16
+ points="208 96 128 176 48 96"
17
+ fill="none"
18
+ stroke="currentColor"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ strokeWidth="24"
22
+ ></polyline>
17
23
  </svg>
18
24
  )
19
25
 
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const Checked: FC = () => (
6
6
  <svg
7
- id="Checked"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="none"
10
9
  viewBox="0 0 19 18"
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const House: FC = () => (
6
6
  <svg
7
- id="House"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
@@ -13,7 +12,14 @@ const House: FC = () => (
13
12
  height={24}
14
13
  >
15
14
  <rect width="256" height="256" fill="none"></rect>
16
- <path d="M152,208V160a8,8,0,0,0-8-8H112a8,8,0,0,0-8,8v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V115.5a8.3,8.3,0,0,1,2.6-5.9l80-72.7a8,8,0,0,1,10.8,0l80,72.7a8.3,8.3,0,0,1,2.6,5.9V208a8,8,0,0,1-8,8H160A8,8,0,0,1,152,208Z" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></path>
15
+ <path
16
+ d="M152,208V160a8,8,0,0,0-8-8H112a8,8,0,0,0-8,8v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V115.5a8.3,8.3,0,0,1,2.6-5.9l80-72.7a8,8,0,0,1,10.8,0l80,72.7a8.3,8.3,0,0,1,2.6,5.9V208a8,8,0,0,1-8,8H160A8,8,0,0,1,152,208Z"
17
+ fill="none"
18
+ stroke="currentColor"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ strokeWidth="24"
22
+ ></path>
17
23
  </svg>
18
24
  )
19
25
 
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import type { FC } from 'react'
3
+
4
+ // Icon from Phosphor Icons
5
+ const Ruler: FC = () => (
6
+ <svg
7
+ id="Ruler"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ fill="currentColor"
10
+ viewBox="0 0 256 256"
11
+ strokeWidth="16"
12
+ width={24}
13
+ height={24}
14
+ >
15
+ <rect width="256" height="256" fill="none"></rect>
16
+ <rect x="26.2" y="82.7" width="203.6" height="90.51" rx="8" transform="translate(-53 128) rotate(-45)" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></rect>
17
+ <line x1="132" y1="60" x2="164" y2="92" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></line>
18
+ <line x1="96" y1="96" x2="128" y2="128" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></line>
19
+ <line x1="60" y1="132" x2="92" y2="164" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="24"></line>
20
+ </svg>
21
+ )
22
+
23
+ export default Ruler
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const ShoppingCart: FC = () => (
6
6
  <svg
7
- id="ShoppingCart"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
package/src/assets/X.tsx CHANGED
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const X: FC = () => (
6
6
  <svg
7
- id="X"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
@@ -4,7 +4,6 @@ import type { FC } from 'react'
4
4
  // Icon from Phosphor Icons
5
5
  const XCircle: FC = () => (
6
6
  <svg
7
- id="XCircle"
8
7
  xmlns="http://www.w3.org/2000/svg"
9
8
  fill="currentColor"
10
9
  viewBox="0 0 256 256"
@@ -2,6 +2,7 @@ export { default as ArrowRight } from './ArrowRight'
2
2
  export { default as CaretDown } from './CaretDown'
3
3
  export { default as Checked } from './Checked'
4
4
  export { default as House } from './House'
5
+ export { default as Ruler } from './Ruler'
5
6
  export { default as ShoppingCart } from './ShoppingCart'
6
7
  export { default as X } from './X'
7
8
  export { default as XCircle } from './XCircle'
package/src/index.ts CHANGED
@@ -44,6 +44,22 @@ export { default as RadioField } from './molecules/RadioField'
44
44
  export type { RadioFieldProps } from './molecules/RadioField'
45
45
  export { default as SelectField } from './molecules/SelectField'
46
46
  export type { SelectFieldProps } from './molecules/SelectField'
47
+ export {
48
+ Table,
49
+ TableBody,
50
+ TableCell,
51
+ TableFooter,
52
+ TableHead,
53
+ TableRow,
54
+ } from './molecules/Table'
55
+ export type {
56
+ TableProps,
57
+ TableBodyProps,
58
+ TableCellProps,
59
+ TableFooterProps,
60
+ TableHeadProps,
61
+ TableRowProps,
62
+ } from './molecules/Table'
47
63
  export { default as Tag } from './molecules/Tag'
48
64
  export type { TagProps } from './molecules/Tag'
49
65
  export { default as Toggle } from './molecules/Toggle'
@@ -0,0 +1,38 @@
1
+ import type { DetailedHTMLProps, TableHTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string
9
+ /**
10
+ * Children for Table components.
11
+ */
12
+ children: React.ReactNode
13
+ /**
14
+ * Defines what style this component should use.
15
+ */
16
+ variant?: 'colored' | 'bordered'
17
+ }
18
+
19
+ const Table = forwardRef<HTMLTableElement, TableProps>(function Table(
20
+ { variant = 'colored', testId = 'fs-table', children, ...otherProps },
21
+ ref
22
+ ) {
23
+ return (
24
+ <div data-fs-table>
25
+ <table
26
+ ref={ref}
27
+ data-fs-table-content
28
+ data-fs-table-variant={variant}
29
+ data-testid={testId}
30
+ {...otherProps}
31
+ >
32
+ {children}
33
+ </table>
34
+ </div>
35
+ )
36
+ })
37
+
38
+ export default Table
@@ -0,0 +1,29 @@
1
+ import type { HTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ export interface TableBodyProps
5
+ extends HTMLAttributes<HTMLTableSectionElement> {
6
+ /**
7
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
+ */
9
+ testId?: string
10
+ /**
11
+ * Children for TableBody components.
12
+ */
13
+ children: React.ReactNode
14
+ }
15
+
16
+ const TableBody = forwardRef<HTMLTableSectionElement, TableBodyProps>(
17
+ function TableBody(
18
+ { children, testId = 'fs-table-body', ...otherProps },
19
+ ref
20
+ ) {
21
+ return (
22
+ <tbody ref={ref} data-testid={testId} data-fs-table-body {...otherProps}>
23
+ {children}
24
+ </tbody>
25
+ )
26
+ }
27
+ )
28
+
29
+ export default TableBody
@@ -0,0 +1,55 @@
1
+ import type { HTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ type TableCellVariant = 'data' | 'header'
5
+
6
+ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
7
+ /**
8
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
9
+ */
10
+ testId?: string
11
+ /**
12
+ * Specify if this component should be rendered as a header (`<th>`) or as a data cell (`<td>`).
13
+ */
14
+ variant?: TableCellVariant
15
+ /**
16
+ * Defines the cells that the header element (`<th>`) relates to.
17
+ * @see scope https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
18
+ */
19
+ scope?: 'col' | 'row' | 'rowgroup' | 'colgroup'
20
+ /**
21
+ * Defines how this component should be aligned.
22
+ */
23
+ align?: 'left' | 'center' | 'right'
24
+ }
25
+
26
+ const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
27
+ function TableCell(
28
+ {
29
+ testId = 'fs-table-cell',
30
+ children,
31
+ variant = 'data',
32
+ scope,
33
+ align,
34
+ ...otherProps
35
+ },
36
+ ref
37
+ ) {
38
+ const Cell = variant === 'header' ? 'th' : 'td'
39
+
40
+ return (
41
+ <Cell
42
+ ref={ref}
43
+ data-fs-table-cell={variant}
44
+ data-fs-table-cell-align={align}
45
+ data-testid={testId}
46
+ scope={scope}
47
+ {...otherProps}
48
+ >
49
+ {children}
50
+ </Cell>
51
+ )
52
+ }
53
+ )
54
+
55
+ export default TableCell
@@ -0,0 +1,29 @@
1
+ import type { HTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ export interface TableFooterProps
5
+ extends HTMLAttributes<HTMLTableSectionElement> {
6
+ /**
7
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
+ */
9
+ testId?: string
10
+ /**
11
+ * Children for TableFooter components.
12
+ */
13
+ children: React.ReactNode
14
+ }
15
+
16
+ const TableFooter = forwardRef<HTMLTableSectionElement, TableFooterProps>(
17
+ function TableFooter(
18
+ { children, testId = 'fs-table-footer', ...otherProps },
19
+ ref
20
+ ) {
21
+ return (
22
+ <tfoot ref={ref} data-testid={testId} data-fs-table-footer {...otherProps}>
23
+ {children}
24
+ </tfoot>
25
+ )
26
+ }
27
+ )
28
+
29
+ export default TableFooter
@@ -0,0 +1,29 @@
1
+ import type { HTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ export interface TableHeadProps
5
+ extends HTMLAttributes<HTMLTableSectionElement> {
6
+ /**
7
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
+ */
9
+ testId?: string
10
+ /**
11
+ * Children for TableHead components.
12
+ */
13
+ children: React.ReactNode
14
+ }
15
+
16
+ const TableHead = forwardRef<HTMLTableSectionElement, TableHeadProps>(
17
+ function TableHead(
18
+ { children, testId = 'fs-table-head', ...otherProps },
19
+ ref
20
+ ) {
21
+ return (
22
+ <thead ref={ref} data-testid={testId} data-fs-table-head {...otherProps}>
23
+ {children}
24
+ </thead>
25
+ )
26
+ }
27
+ )
28
+
29
+ export default TableHead
@@ -0,0 +1,28 @@
1
+ import type { HTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string
9
+ /**
10
+ * Children for TableRow components.
11
+ */
12
+ children: React.ReactNode
13
+ }
14
+
15
+ const TableRow = forwardRef<HTMLTableRowElement, TableRowProps>(
16
+ function TableRow(
17
+ { testId = 'fs-table-row', children, ...otherProps },
18
+ ref
19
+ ) {
20
+ return (
21
+ <tr ref={ref} data-fs-table-row data-testid={testId} {...otherProps}>
22
+ {children}
23
+ </tr>
24
+ )
25
+ }
26
+ )
27
+
28
+ export default TableRow
@@ -0,0 +1,17 @@
1
+ export { default as Table } from './Table'
2
+ export type { TableProps } from './Table'
3
+
4
+ export { default as TableRow } from './TableRow'
5
+ export type { TableRowProps } from './TableRow'
6
+
7
+ export { default as TableCell } from './TableCell'
8
+ export type { TableCellProps } from './TableCell'
9
+
10
+ export { default as TableBody } from './TableBody'
11
+ export type { TableBodyProps } from './TableBody'
12
+
13
+ export { default as TableHead } from './TableHead'
14
+ export type { TableHeadProps } from './TableHead'
15
+
16
+ export { default as TableFooter } from './TableFooter'
17
+ export type { TableFooterProps } from './TableFooter'