@fluentui/react-card 0.0.0-nightly6a6e258c4020220125.1 → 0.0.0-nightly6faffd280a20220221.1

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 (86) hide show
  1. package/CHANGELOG.json +150 -30
  2. package/CHANGELOG.md +43 -13
  3. package/dist/react-card.d.ts +19 -15
  4. package/lib/Card.js.map +1 -1
  5. package/lib/CardFooter.js.map +1 -1
  6. package/lib/CardHeader.js.map +1 -1
  7. package/lib/CardPreview.js.map +1 -1
  8. package/lib/components/Card/Card.js.map +1 -1
  9. package/lib/components/Card/Card.types.d.ts +7 -4
  10. package/lib/components/Card/Card.types.js.map +1 -1
  11. package/lib/components/Card/index.js.map +1 -1
  12. package/lib/components/Card/renderCard.js.map +1 -1
  13. package/lib/components/Card/useCard.js +4 -0
  14. package/lib/components/Card/useCard.js.map +1 -1
  15. package/lib/components/Card/useCardStyles.js +118 -20
  16. package/lib/components/Card/useCardStyles.js.map +1 -1
  17. package/lib/components/CardFooter/CardFooter.js.map +1 -1
  18. package/lib/components/CardFooter/CardFooter.types.d.ts +3 -3
  19. package/lib/components/CardFooter/CardFooter.types.js.map +1 -1
  20. package/lib/components/CardFooter/index.js.map +1 -1
  21. package/lib/components/CardFooter/renderCardFooter.js +1 -1
  22. package/lib/components/CardFooter/renderCardFooter.js.map +1 -1
  23. package/lib/components/CardFooter/useCardFooter.js.map +1 -1
  24. package/lib/components/CardFooter/useCardFooterStyles.js +1 -1
  25. package/lib/components/CardFooter/useCardFooterStyles.js.map +1 -1
  26. package/lib/components/CardHeader/CardHeader.js.map +1 -1
  27. package/lib/components/CardHeader/CardHeader.types.d.ts +8 -8
  28. package/lib/components/CardHeader/CardHeader.types.js.map +1 -1
  29. package/lib/components/CardHeader/index.js.map +1 -1
  30. package/lib/components/CardHeader/renderCardHeader.js +2 -2
  31. package/lib/components/CardHeader/renderCardHeader.js.map +1 -1
  32. package/lib/components/CardHeader/useCardHeader.js.map +1 -1
  33. package/lib/components/CardHeader/useCardHeaderStyles.js +1 -1
  34. package/lib/components/CardHeader/useCardHeaderStyles.js.map +1 -1
  35. package/lib/components/CardPreview/CardPreview.js.map +1 -1
  36. package/lib/components/CardPreview/CardPreview.types.d.ts +3 -3
  37. package/lib/components/CardPreview/CardPreview.types.js.map +1 -1
  38. package/lib/components/CardPreview/index.js.map +1 -1
  39. package/lib/components/CardPreview/renderCardPreview.js +1 -1
  40. package/lib/components/CardPreview/renderCardPreview.js.map +1 -1
  41. package/lib/components/CardPreview/useCardPreview.js.map +1 -1
  42. package/lib/components/CardPreview/useCardPreviewStyles.js +2 -6
  43. package/lib/components/CardPreview/useCardPreviewStyles.js.map +1 -1
  44. package/lib/index.js.map +1 -1
  45. package/lib-commonjs/Card.js.map +1 -1
  46. package/lib-commonjs/CardFooter.js.map +1 -1
  47. package/lib-commonjs/CardHeader.js.map +1 -1
  48. package/lib-commonjs/CardPreview.js.map +1 -1
  49. package/lib-commonjs/components/Card/Card.js.map +1 -1
  50. package/lib-commonjs/components/Card/Card.types.d.ts +7 -4
  51. package/lib-commonjs/components/Card/Card.types.js.map +1 -1
  52. package/lib-commonjs/components/Card/index.js.map +1 -1
  53. package/lib-commonjs/components/Card/renderCard.js.map +1 -1
  54. package/lib-commonjs/components/Card/useCard.js +4 -0
  55. package/lib-commonjs/components/Card/useCard.js.map +1 -1
  56. package/lib-commonjs/components/Card/useCardStyles.js +119 -21
  57. package/lib-commonjs/components/Card/useCardStyles.js.map +1 -1
  58. package/lib-commonjs/components/CardFooter/CardFooter.js.map +1 -1
  59. package/lib-commonjs/components/CardFooter/CardFooter.types.d.ts +3 -3
  60. package/lib-commonjs/components/CardFooter/CardFooter.types.js.map +1 -1
  61. package/lib-commonjs/components/CardFooter/index.js.map +1 -1
  62. package/lib-commonjs/components/CardFooter/renderCardFooter.js +1 -1
  63. package/lib-commonjs/components/CardFooter/renderCardFooter.js.map +1 -1
  64. package/lib-commonjs/components/CardFooter/useCardFooter.js.map +1 -1
  65. package/lib-commonjs/components/CardFooter/useCardFooterStyles.js +4 -4
  66. package/lib-commonjs/components/CardFooter/useCardFooterStyles.js.map +1 -1
  67. package/lib-commonjs/components/CardHeader/CardHeader.js.map +1 -1
  68. package/lib-commonjs/components/CardHeader/CardHeader.types.d.ts +8 -8
  69. package/lib-commonjs/components/CardHeader/CardHeader.types.js.map +1 -1
  70. package/lib-commonjs/components/CardHeader/index.js.map +1 -1
  71. package/lib-commonjs/components/CardHeader/renderCardHeader.js +2 -2
  72. package/lib-commonjs/components/CardHeader/renderCardHeader.js.map +1 -1
  73. package/lib-commonjs/components/CardHeader/useCardHeader.js.map +1 -1
  74. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js +5 -5
  75. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js.map +1 -1
  76. package/lib-commonjs/components/CardPreview/CardPreview.js.map +1 -1
  77. package/lib-commonjs/components/CardPreview/CardPreview.types.d.ts +3 -3
  78. package/lib-commonjs/components/CardPreview/CardPreview.types.js.map +1 -1
  79. package/lib-commonjs/components/CardPreview/index.js.map +1 -1
  80. package/lib-commonjs/components/CardPreview/renderCardPreview.js +1 -1
  81. package/lib-commonjs/components/CardPreview/renderCardPreview.js.map +1 -1
  82. package/lib-commonjs/components/CardPreview/useCardPreview.js.map +1 -1
  83. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js +5 -9
  84. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js.map +1 -1
  85. package/lib-commonjs/index.js.map +1 -1
  86. package/package.json +7 -9
package/CHANGELOG.json CHANGED
@@ -2,29 +2,137 @@
2
2
  "name": "@fluentui/react-card",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 25 Jan 2022 04:17:16 GMT",
6
- "tag": "@fluentui/react-card_v0.0.0-nightly6a6e258c4020220125.1",
7
- "version": "0.0.0-nightly6a6e258c4020220125.1",
5
+ "date": "Mon, 21 Feb 2022 04:15:26 GMT",
6
+ "tag": "@fluentui/react-card_v0.0.0-nightly6faffd280a20220221.1",
7
+ "version": "0.0.0-nightly6faffd280a20220221.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-card",
13
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d",
13
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-card",
19
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1",
20
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-card",
25
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly6faffd280a20220221.1",
26
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-card",
31
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1",
32
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-card",
37
+ "comment": "Bump @fluentui/react-text to v0.0.0-nightly6faffd280a20220221.1",
38
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-card",
43
+ "comment": "Bump @fluentui/react-button to v0.0.0-nightly6faffd280a20220221.1",
44
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Fri, 18 Feb 2022 13:35:29 GMT",
51
+ "tag": "@fluentui/react-card_v9.0.0-beta.8",
52
+ "version": "9.0.0-beta.8",
53
+ "comments": {
54
+ "prerelease": [
55
+ {
56
+ "author": "lingfangao@hotmail.com",
57
+ "package": "@fluentui/react-card",
58
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
59
+ "comment": "fix: Source maps contain original source code"
60
+ },
61
+ {
62
+ "author": "39736248+andrefcdias@users.noreply.github.com",
63
+ "package": "@fluentui/react-card",
64
+ "commit": "6f39f6ae5bd33c8aa46dbb5cc1e46eded1fc2967",
65
+ "comment": "Add new appearance property to allow for different card styles"
66
+ },
67
+ {
68
+ "author": "39736248+andrefcdias@users.noreply.github.com",
69
+ "package": "@fluentui/react-card",
70
+ "commit": "4a28b5a69d0e6cf53c19c5e93bc93465f9b8a132",
71
+ "comment": "fix: top padding issues with CardPreview"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-card",
76
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
77
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-card",
82
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.3",
83
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-card",
88
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
89
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-card",
94
+ "comment": "Bump @fluentui/react-text to v9.0.0-rc.3",
95
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-card",
100
+ "comment": "Bump @fluentui/react-button to v9.0.0-rc.3",
101
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
102
+ }
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "date": "Thu, 10 Feb 2022 08:51:52 GMT",
108
+ "tag": "@fluentui/react-card_v9.0.0-beta.6",
109
+ "version": "9.0.0-beta.6",
110
+ "comments": {
111
+ "prerelease": [
16
112
  {
17
113
  "author": "ololubek@microsoft.com",
18
114
  "package": "@fluentui/react-card",
19
115
  "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
20
116
  "comment": "Update react-icons usage to resizable icons"
21
117
  },
118
+ {
119
+ "author": "lingfangao@hotmail.com",
120
+ "package": "@fluentui/react-card",
121
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
122
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
123
+ },
22
124
  {
23
125
  "author": "Humberto.Morimoto@microsoft.com",
24
126
  "package": "@fluentui/react-card",
25
127
  "commit": "37772e1ef0b587bf08984dd053ebb356c57c5247",
26
128
  "comment": "react-card: Replacing use of functions in makeStyles with direct use of tokens."
27
129
  },
130
+ {
131
+ "author": "Humberto.Morimoto@microsoft.com",
132
+ "package": "@fluentui/react-card",
133
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
134
+ "comment": "Updating based on changes to composition types."
135
+ },
28
136
  {
29
137
  "author": "elcraig@microsoft.com",
30
138
  "package": "@fluentui/react-card",
@@ -40,62 +148,56 @@
40
148
  {
41
149
  "author": "olfedias@microsoft.com",
42
150
  "package": "@fluentui/react-card",
43
- "commit": "158d89b5d98e3544e06f4f09967d2af8ab43e249",
44
- "comment": "update styles no not use CSS shorthands"
151
+ "commit": "1249d2ee042780865e877fc2ed48f56e0eff25d1",
152
+ "comment": "use Griffel packages"
45
153
  },
46
154
  {
47
155
  "author": "behowell@microsoft.com",
48
156
  "package": "@fluentui/react-card",
49
- "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
50
- "comment": "Remove component's shorthandProps array"
51
- },
52
- {
53
- "author": "beachball",
54
- "package": "@fluentui/react-card",
55
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
56
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
157
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
158
+ "comment": "Refactor component Slot typings"
57
159
  },
58
160
  {
59
- "author": "beachball",
161
+ "author": "olfedias@microsoft.com",
60
162
  "package": "@fluentui/react-card",
61
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1",
62
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
163
+ "commit": "158d89b5d98e3544e06f4f09967d2af8ab43e249",
164
+ "comment": "update styles no not use CSS shorthands"
63
165
  },
64
166
  {
65
- "author": "beachball",
167
+ "author": "behowell@microsoft.com",
66
168
  "package": "@fluentui/react-card",
67
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly6a6e258c4020220125.1",
68
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
169
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
170
+ "comment": "Remove component's shorthandProps array"
69
171
  },
70
172
  {
71
173
  "author": "beachball",
72
174
  "package": "@fluentui/react-card",
73
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
74
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
175
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
176
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
75
177
  },
76
178
  {
77
179
  "author": "beachball",
78
180
  "package": "@fluentui/react-card",
79
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
80
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
181
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
182
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
81
183
  },
82
184
  {
83
185
  "author": "beachball",
84
186
  "package": "@fluentui/react-card",
85
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
86
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
187
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
188
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
87
189
  },
88
190
  {
89
191
  "author": "beachball",
90
192
  "package": "@fluentui/react-card",
91
- "comment": "Bump @fluentui/react-text to v0.0.0-nightly6a6e258c4020220125.1",
92
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
193
+ "comment": "Bump @fluentui/react-text to v9.0.0-rc.1",
194
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
93
195
  },
94
196
  {
95
197
  "author": "beachball",
96
198
  "package": "@fluentui/react-card",
97
- "comment": "Bump @fluentui/react-button to v0.0.0-nightly6a6e258c4020220125.1",
98
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
199
+ "comment": "Bump @fluentui/react-button to v9.0.0-rc.1",
200
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
99
201
  }
100
202
  ],
101
203
  "none": [
@@ -122,6 +224,24 @@
122
224
  "package": "@fluentui/react-card",
123
225
  "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
124
226
  "comment": "remove inline-style-expand-shorthand from tsconfigs"
227
+ },
228
+ {
229
+ "author": "me@levithomason.com",
230
+ "package": "@fluentui/react-card",
231
+ "commit": "4bd15194a66379b165043141c266faa0c1ea1502",
232
+ "comment": "document how to import preview components"
233
+ },
234
+ {
235
+ "author": "bsunderhus@microsoft.com",
236
+ "package": "@fluentui/react-card",
237
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
238
+ "comment": "Updates components with nullRender changes"
239
+ },
240
+ {
241
+ "author": "me@levithomason.com",
242
+ "package": "@fluentui/react-card",
243
+ "commit": "a15d363937fad523e90350458ec3e44fe7199dc0",
244
+ "comment": "Move Storybook stories to Preview Components section"
125
245
  }
126
246
  ]
127
247
  }
package/CHANGELOG.md CHANGED
@@ -1,31 +1,61 @@
1
1
  # Change Log - @fluentui/react-card
2
2
 
3
- This log was last generated on Tue, 25 Jan 2022 04:17:16 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 21 Feb 2022 04:15:26 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly6a6e258c4020220125.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly6a6e258c4020220125.1)
7
+ ## [0.0.0-nightly6faffd280a20220221.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly6faffd280a20220221.1)
8
8
 
9
- Tue, 25 Jan 2022 04:17:16 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-nightly6a6e258c4020220125.1)
9
+ Mon, 21 Feb 2022 04:15:26 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.8..@fluentui/react-card_v0.0.0-nightly6faffd280a20220221.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by email not defined)
15
+ - Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
16
+ - Bump @fluentui/react-tabster to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
18
+ - Bump @fluentui/react-text to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
19
+ - Bump @fluentui/react-button to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
20
+
21
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.8)
22
+
23
+ Fri, 18 Feb 2022 13:35:29 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.6..@fluentui/react-card_v9.0.0-beta.8)
25
+
26
+ ### Changes
27
+
28
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
29
+ - Add new appearance property to allow for different card styles ([PR #21264](https://github.com/microsoft/fluentui/pull/21264) by 39736248+andrefcdias@users.noreply.github.com)
30
+ - fix: top padding issues with CardPreview ([PR #21685](https://github.com/microsoft/fluentui/pull/21685) by 39736248+andrefcdias@users.noreply.github.com)
31
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
32
+ - Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
33
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
34
+ - Bump @fluentui/react-text to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
35
+ - Bump @fluentui/react-button to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
36
+
37
+ ## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.6)
38
+
39
+ Thu, 10 Feb 2022 08:51:52 GMT
40
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v9.0.0-beta.6)
11
41
 
12
42
  ### Changes
13
43
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by email not defined)
15
44
  - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
45
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
16
46
  - react-card: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21040](https://github.com/microsoft/fluentui/pull/21040) by Humberto.Morimoto@microsoft.com)
47
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
17
48
  - Remove empty CardCommons type and outdated boilerplate comments ([PR #21150](https://github.com/microsoft/fluentui/pull/21150) by elcraig@microsoft.com)
18
49
  - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
50
+ - use Griffel packages ([PR #21417](https://github.com/microsoft/fluentui/pull/21417) by olfedias@microsoft.com)
51
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
19
52
  - update styles no not use CSS shorthands ([PR #20794](https://github.com/microsoft/fluentui/pull/20794) by olfedias@microsoft.com)
20
53
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
21
- - Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
22
- - Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
23
- - Bump @fluentui/react-tabster to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
24
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
25
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
26
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
27
- - Bump @fluentui/react-text to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
28
- - Bump @fluentui/react-button to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
54
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
55
+ - Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
56
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
57
+ - Bump @fluentui/react-text to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
58
+ - Bump @fluentui/react-button to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
29
59
 
30
60
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.5)
31
61
 
@@ -1,8 +1,8 @@
1
1
  import type { ComponentProps } from '@fluentui/react-utilities';
2
2
  import type { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
5
4
  import * as React_2 from 'react';
5
+ import type { Slot } from '@fluentui/react-utilities';
6
6
 
7
7
  /**
8
8
  * A card provides scaffolding for hosting actions and content for a single topic.
@@ -11,6 +11,10 @@ export declare const Card: ForwardRefComponent<CardProps>;
11
11
 
12
12
  export declare const cardClassName = "fui-Card";
13
13
 
14
+ export declare type CardCommons = {
15
+ appearance: 'filled' | 'filled-alternative' | 'outline' | 'subtle';
16
+ };
17
+
14
18
  /**
15
19
  * Component to render Button actions in a Card component.
16
20
  */
@@ -24,8 +28,8 @@ export declare const cardFooterClassName = "fui-CardFooter";
24
28
  export declare type CardFooterProps = ComponentProps<CardFooterSlots>;
25
29
 
26
30
  export declare type CardFooterSlots = {
27
- root: IntrinsicShorthandProps<'div'>;
28
- action?: IntrinsicShorthandProps<'div'>;
31
+ root: Slot<'div'>;
32
+ action?: Slot<'div'>;
29
33
  };
30
34
 
31
35
  /**
@@ -43,15 +47,15 @@ export declare const cardHeaderClassName = "fui-CardHeader";
43
47
  /**
44
48
  * CardHeader props
45
49
  */
46
- export declare type CardHeaderProps = ComponentProps<CardHeaderSlots>;
50
+ export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
47
51
 
48
52
  export declare type CardHeaderSlots = {
49
- root: IntrinsicShorthandProps<'div'>;
50
- image: IntrinsicShorthandProps<'div'>;
51
- content?: IntrinsicShorthandProps<'div'>;
52
- header: IntrinsicShorthandProps<'span'>;
53
- description: IntrinsicShorthandProps<'span'>;
54
- action?: IntrinsicShorthandProps<'div'>;
53
+ root: Slot<'div'>;
54
+ image: Slot<'div'>;
55
+ content?: Slot<'div'>;
56
+ header: Slot<'span'>;
57
+ description: Slot<'span'>;
58
+ action?: Slot<'div'>;
55
59
  };
56
60
 
57
61
  /**
@@ -72,8 +76,8 @@ export declare const cardPreviewClassName = "fui-CardPreview";
72
76
  export declare type CardPreviewProps = ComponentProps<CardPreviewSlots>;
73
77
 
74
78
  export declare type CardPreviewSlots = {
75
- root: IntrinsicShorthandProps<'div'>;
76
- logo?: IntrinsicShorthandProps<'div'>;
79
+ root: Slot<'div'>;
80
+ logo?: Slot<'div'>;
77
81
  };
78
82
 
79
83
  /**
@@ -84,16 +88,16 @@ export declare type CardPreviewState = ComponentState<CardPreviewSlots>;
84
88
  /**
85
89
  * Card Props
86
90
  */
87
- export declare type CardProps = ComponentProps<CardSlots>;
91
+ export declare type CardProps = ComponentProps<CardSlots> & Partial<CardCommons>;
88
92
 
89
93
  export declare type CardSlots = {
90
- root: IntrinsicShorthandProps<'div'>;
94
+ root: Slot<'div'>;
91
95
  };
92
96
 
93
97
  /**
94
98
  * State used in rendering Card
95
99
  */
96
- export declare type CardState = ComponentState<CardSlots>;
100
+ export declare type CardState = ComponentState<CardSlots> & CardCommons;
97
101
 
98
102
  /**
99
103
  * Render the final JSX of Card
package/lib/Card.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../src/Card.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"Card.js","sourceRoot":"../src/","sources":["Card.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './components/Card/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CardFooter.js","sourceRoot":"","sources":["../src/CardFooter.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"CardFooter.js","sourceRoot":"../src/","sources":["CardFooter.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './components/CardFooter/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CardHeader.js","sourceRoot":"","sources":["../src/CardHeader.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"CardHeader.js","sourceRoot":"../src/","sources":["CardHeader.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './components/CardHeader/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CardPreview.js","sourceRoot":"","sources":["../src/CardPreview.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"CardPreview.js","sourceRoot":"../src/","sources":["CardPreview.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './components/CardPreview/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AAEA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AACA,SAAO,mBAAmB,CAAC,KAAD,CAA1B;AACD,CALmD,CAA7C;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AAEA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AACA,SAAO,mBAAmB,CAAC,KAAD,CAA1B;AACD,CALmD,CAA7C;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useCard_unstable } from './useCard';\nimport { renderCard_unstable } from './renderCard';\nimport { useCardStyles_unstable } from './useCardStyles';\nimport type { CardProps } from './Card.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * A card provides scaffolding for hosting actions and content for a single topic.\n */\nexport const Card: ForwardRefComponent<CardProps> = React.forwardRef((props, ref) => {\n const state = useCard_unstable(props, ref);\n\n useCardStyles_unstable(state);\n return renderCard_unstable(state);\n});\n\nCard.displayName = 'Card';\n"],"sourceRoot":"../src/"}
@@ -1,12 +1,15 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: Slot<'div'>;
4
+ };
5
+ export declare type CardCommons = {
6
+ appearance: 'filled' | 'filled-alternative' | 'outline' | 'subtle';
4
7
  };
5
8
  /**
6
9
  * Card Props
7
10
  */
8
- export declare type CardProps = ComponentProps<CardSlots>;
11
+ export declare type CardProps = ComponentProps<CardSlots> & Partial<CardCommons>;
9
12
  /**
10
13
  * State used in rendering Card
11
14
  */
12
- export declare type CardState = ComponentState<CardSlots>;
15
+ export declare type CardState = ComponentState<CardSlots> & CardCommons;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.types.js","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Card.types.js","sourceRoot":"../src/","sources":["components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type CardSlots = {\n root: Slot<'div'>;\n};\n\nexport type CardCommons = {\n appearance: 'filled' | 'filled-alternative' | 'outline' | 'subtle';\n};\n\n/**\n * Card Props\n */\nexport type CardProps = ComponentProps<CardSlots> & Partial<CardCommons>;\n\n/**\n * State used in rendering Card\n */\nexport type CardState = ComponentState<CardSlots> & CardCommons;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './Card';\nexport * from './Card.types';\nexport * from './renderCard';\nexport * from './useCard';\nexport * from './useCardStyles';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Card/renderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAY,KAAZ,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["components/Card/renderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAY,KAAZ,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { CardSlots, CardState } from './Card.types';\n\n/**\n * Render the final JSX of Card\n */\nexport const renderCard_unstable = (state: CardState) => {\n const { slots, slotProps } = getSlots<CardSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":"../src/"}
@@ -14,7 +14,11 @@ export const useCard_unstable = (props, ref) => {
14
14
  const groupperAttrs = useFocusableGroup({
15
15
  tabBehavior: 'limitedTrapFocus'
16
16
  });
17
+ const {
18
+ appearance = 'filled'
19
+ } = props;
17
20
  return {
21
+ appearance,
18
22
  components: {
19
23
  root: 'div'
20
24
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Card/useCard.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,iBAAT,QAAkC,yBAAlC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;AAC3F,QAAM,aAAa,GAAG,iBAAiB,CAAC;AACtC,IAAA,WAAW,EAAE;AADyB,GAAD,CAAvC;AAIA,SAAO;AACL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KADP;AAGL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,EAAN,IAAY,KAAb,EAAoB;AAC7C,MAAA,GAD6C;AAE7C,MAAA,IAAI,EAAE,OAFuC;AAG7C,SAAG,aAH0C;AAI7C,SAAG;AAJ0C,KAApB;AAHtB,GAAP;AAUD,CAfM","sourceRoot":""}
1
+ {"version":3,"sources":["components/Card/useCard.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,iBAAT,QAAkC,yBAAlC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;AAC3F,QAAM,aAAa,GAAG,iBAAiB,CAAC;AACtC,IAAA,WAAW,EAAE;AADyB,GAAD,CAAvC;AAIA,QAAM;AAAE,IAAA,UAAU,GAAG;AAAf,MAA4B,KAAlC;AACA,SAAO;AACL,IAAA,UADK;AAGL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAHP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,EAAN,IAAY,KAAb,EAAoB;AAC7C,MAAA,GAD6C;AAE7C,MAAA,IAAI,EAAE,OAFuC;AAG7C,SAAG,aAH0C;AAI7C,SAAG;AAJ0C,KAApB;AAJtB,GAAP;AAWD,CAjBM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { CardProps, CardState } from './Card.types';\nimport { useFocusableGroup } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render Card.\n *\n * The returned state can be modified with hooks such as useCardStyles_unstable,\n * before being passed to renderCard_unstable.\n *\n * @param props - props from this instance of Card\n * @param ref - reference to root HTMLElement of Card\n */\nexport const useCard_unstable = (props: CardProps, ref: React.Ref<HTMLElement>): CardState => {\n const groupperAttrs = useFocusableGroup({\n tabBehavior: 'limitedTrapFocus',\n });\n\n const { appearance = 'filled' } = props;\n return {\n appearance,\n\n components: { root: 'div' },\n root: getNativeElementProps(props.as || 'div', {\n ref,\n role: 'group',\n ...groupperAttrs,\n ...props,\n }),\n };\n};\n"],"sourceRoot":"../src/"}