@fluentui/react-card 0.0.0-nightlyf8be6a7c6520220106.1 → 0.0.0-nightlyff78d1e27a20220217.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.
- package/CHANGELOG.json +136 -25
- package/CHANGELOG.md +32 -13
- package/README.md +3 -1
- package/dist/react-card.d.ts +33 -45
- package/lib/Card.js.map +1 -1
- package/lib/CardFooter.js.map +1 -1
- package/lib/CardHeader.js.map +1 -1
- package/lib/CardPreview.js.map +1 -1
- package/lib/components/Card/Card.js +6 -6
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/Card.types.d.ts +2 -2
- package/lib/components/Card/Card.types.js.map +1 -1
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Card/renderCard.d.ts +1 -1
- package/lib/components/Card/renderCard.js +1 -1
- package/lib/components/Card/renderCard.js.map +1 -1
- package/lib/components/Card/useCard.d.ts +3 -3
- package/lib/components/Card/useCard.js +3 -3
- package/lib/components/Card/useCard.js.map +1 -1
- package/lib/components/Card/useCardStyles.d.ts +1 -1
- package/lib/components/Card/useCardStyles.js +9 -14
- package/lib/components/Card/useCardStyles.js.map +1 -1
- package/lib/components/CardFooter/CardFooter.js +6 -6
- package/lib/components/CardFooter/CardFooter.js.map +1 -1
- package/lib/components/CardFooter/CardFooter.types.d.ts +3 -3
- package/lib/components/CardFooter/CardFooter.types.js.map +1 -1
- package/lib/components/CardFooter/index.js.map +1 -1
- package/lib/components/CardFooter/renderCardFooter.d.ts +1 -1
- package/lib/components/CardFooter/renderCardFooter.js +3 -4
- package/lib/components/CardFooter/renderCardFooter.js.map +1 -1
- package/lib/components/CardFooter/useCardFooter.d.ts +4 -8
- package/lib/components/CardFooter/useCardFooter.js +3 -8
- package/lib/components/CardFooter/useCardFooter.js.map +1 -1
- package/lib/components/CardFooter/useCardFooterStyles.d.ts +1 -1
- package/lib/components/CardFooter/useCardFooterStyles.js +2 -2
- package/lib/components/CardFooter/useCardFooterStyles.js.map +1 -1
- package/lib/components/CardHeader/CardHeader.js +6 -6
- package/lib/components/CardHeader/CardHeader.js.map +1 -1
- package/lib/components/CardHeader/CardHeader.types.d.ts +8 -8
- package/lib/components/CardHeader/CardHeader.types.js.map +1 -1
- package/lib/components/CardHeader/index.js.map +1 -1
- package/lib/components/CardHeader/renderCardHeader.d.ts +1 -1
- package/lib/components/CardHeader/renderCardHeader.js +4 -5
- package/lib/components/CardHeader/renderCardHeader.js.map +1 -1
- package/lib/components/CardHeader/useCardHeader.d.ts +4 -5
- package/lib/components/CardHeader/useCardHeader.js +3 -4
- package/lib/components/CardHeader/useCardHeader.js.map +1 -1
- package/lib/components/CardHeader/useCardHeaderStyles.d.ts +1 -1
- package/lib/components/CardHeader/useCardHeaderStyles.js +2 -2
- package/lib/components/CardHeader/useCardHeaderStyles.js.map +1 -1
- package/lib/components/CardPreview/CardPreview.js +6 -6
- package/lib/components/CardPreview/CardPreview.js.map +1 -1
- package/lib/components/CardPreview/CardPreview.types.d.ts +3 -3
- package/lib/components/CardPreview/CardPreview.types.js.map +1 -1
- package/lib/components/CardPreview/index.js.map +1 -1
- package/lib/components/CardPreview/renderCardPreview.d.ts +1 -1
- package/lib/components/CardPreview/renderCardPreview.js +3 -4
- package/lib/components/CardPreview/renderCardPreview.js.map +1 -1
- package/lib/components/CardPreview/useCardPreview.d.ts +4 -8
- package/lib/components/CardPreview/useCardPreview.js +3 -8
- package/lib/components/CardPreview/useCardPreview.js.map +1 -1
- package/lib/components/CardPreview/useCardPreviewStyles.d.ts +1 -1
- package/lib/components/CardPreview/useCardPreviewStyles.js +3 -7
- package/lib/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Card.js.map +1 -1
- package/lib-commonjs/CardFooter.js.map +1 -1
- package/lib-commonjs/CardHeader.js.map +1 -1
- package/lib-commonjs/CardPreview.js.map +1 -1
- package/lib-commonjs/components/Card/Card.js +3 -3
- package/lib-commonjs/components/Card/Card.js.map +1 -1
- package/lib-commonjs/components/Card/Card.types.d.ts +2 -2
- package/lib-commonjs/components/Card/Card.types.js.map +1 -1
- package/lib-commonjs/components/Card/index.js.map +1 -1
- package/lib-commonjs/components/Card/renderCard.d.ts +1 -1
- package/lib-commonjs/components/Card/renderCard.js +3 -3
- package/lib-commonjs/components/Card/renderCard.js.map +1 -1
- package/lib-commonjs/components/Card/useCard.d.ts +3 -3
- package/lib-commonjs/components/Card/useCard.js +5 -5
- package/lib-commonjs/components/Card/useCard.js.map +1 -1
- package/lib-commonjs/components/Card/useCardStyles.d.ts +1 -1
- package/lib-commonjs/components/Card/useCardStyles.js +14 -18
- package/lib-commonjs/components/Card/useCardStyles.js.map +1 -1
- package/lib-commonjs/components/CardFooter/CardFooter.js +3 -3
- package/lib-commonjs/components/CardFooter/CardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/CardFooter.types.d.ts +3 -3
- package/lib-commonjs/components/CardFooter/CardFooter.types.js.map +1 -1
- package/lib-commonjs/components/CardFooter/index.js.map +1 -1
- package/lib-commonjs/components/CardFooter/renderCardFooter.d.ts +1 -1
- package/lib-commonjs/components/CardFooter/renderCardFooter.js +5 -7
- package/lib-commonjs/components/CardFooter/renderCardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/useCardFooter.d.ts +4 -8
- package/lib-commonjs/components/CardFooter/useCardFooter.js +6 -11
- package/lib-commonjs/components/CardFooter/useCardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.d.ts +1 -1
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.js +7 -7
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.js.map +1 -1
- package/lib-commonjs/components/CardHeader/CardHeader.js +3 -3
- package/lib-commonjs/components/CardHeader/CardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/CardHeader.types.d.ts +8 -8
- package/lib-commonjs/components/CardHeader/CardHeader.types.js.map +1 -1
- package/lib-commonjs/components/CardHeader/index.js.map +1 -1
- package/lib-commonjs/components/CardHeader/renderCardHeader.d.ts +1 -1
- package/lib-commonjs/components/CardHeader/renderCardHeader.js +6 -8
- package/lib-commonjs/components/CardHeader/renderCardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/useCardHeader.d.ts +4 -5
- package/lib-commonjs/components/CardHeader/useCardHeader.js +6 -7
- package/lib-commonjs/components/CardHeader/useCardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.d.ts +1 -1
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js +8 -8
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/CardPreview/CardPreview.js +3 -3
- package/lib-commonjs/components/CardPreview/CardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/CardPreview.types.d.ts +3 -3
- package/lib-commonjs/components/CardPreview/CardPreview.types.js.map +1 -1
- package/lib-commonjs/components/CardPreview/index.js.map +1 -1
- package/lib-commonjs/components/CardPreview/renderCardPreview.d.ts +1 -1
- package/lib-commonjs/components/CardPreview/renderCardPreview.js +5 -7
- package/lib-commonjs/components/CardPreview/renderCardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/useCardPreview.d.ts +4 -8
- package/lib-commonjs/components/CardPreview/useCardPreview.js +6 -11
- package/lib-commonjs/components/CardPreview/useCardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.d.ts +1 -1
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js +8 -12
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -11
package/CHANGELOG.json
CHANGED
@@ -2,84 +2,195 @@
|
|
2
2
|
"name": "@fluentui/react-card",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Thu,
|
6
|
-
"tag": "@fluentui/react-card_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Thu, 17 Feb 2022 11:41:17 GMT",
|
6
|
+
"tag": "@fluentui/react-card_v0.0.0-nightlyff78d1e27a20220217.1",
|
7
|
+
"version": "0.0.0-nightlyff78d1e27a20220217.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-card",
|
13
|
-
"commit": "
|
13
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "39736248+andrefcdias@users.noreply.github.com",
|
18
|
+
"package": "@fluentui/react-card",
|
19
|
+
"commit": "4a28b5a69d0e6cf53c19c5e93bc93465f9b8a132",
|
20
|
+
"comment": "fix: top padding issues with CardPreview"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-card",
|
25
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyff78d1e27a20220217.1",
|
26
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-card",
|
31
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyff78d1e27a20220217.1",
|
32
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-card",
|
37
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyff78d1e27a20220217.1",
|
38
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-card",
|
43
|
+
"comment": "Bump @fluentui/react-text to v0.0.0-nightlyff78d1e27a20220217.1",
|
44
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-card",
|
49
|
+
"comment": "Bump @fluentui/react-button to v0.0.0-nightlyff78d1e27a20220217.1",
|
50
|
+
"commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"date": "Thu, 10 Feb 2022 08:51:52 GMT",
|
57
|
+
"tag": "@fluentui/react-card_v9.0.0-beta.6",
|
58
|
+
"version": "9.0.0-beta.6",
|
59
|
+
"comments": {
|
60
|
+
"prerelease": [
|
61
|
+
{
|
62
|
+
"author": "ololubek@microsoft.com",
|
63
|
+
"package": "@fluentui/react-card",
|
64
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
65
|
+
"comment": "Update react-icons usage to resizable icons"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"author": "lingfangao@hotmail.com",
|
69
|
+
"package": "@fluentui/react-card",
|
70
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
71
|
+
"comment": "Bump Fluent UI dependencies to 9.0.0-rc"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
75
|
+
"package": "@fluentui/react-card",
|
76
|
+
"commit": "37772e1ef0b587bf08984dd053ebb356c57c5247",
|
77
|
+
"comment": "react-card: Replacing use of functions in makeStyles with direct use of tokens."
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
81
|
+
"package": "@fluentui/react-card",
|
82
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
83
|
+
"comment": "Updating based on changes to composition types."
|
84
|
+
},
|
16
85
|
{
|
17
86
|
"author": "elcraig@microsoft.com",
|
18
87
|
"package": "@fluentui/react-card",
|
19
88
|
"commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
|
20
89
|
"comment": "Remove empty CardCommons type and outdated boilerplate comments"
|
21
90
|
},
|
91
|
+
{
|
92
|
+
"author": "behowell@microsoft.com",
|
93
|
+
"package": "@fluentui/react-card",
|
94
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
95
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
96
|
+
},
|
22
97
|
{
|
23
98
|
"author": "olfedias@microsoft.com",
|
24
99
|
"package": "@fluentui/react-card",
|
25
|
-
"commit": "
|
26
|
-
"comment": "
|
100
|
+
"commit": "1249d2ee042780865e877fc2ed48f56e0eff25d1",
|
101
|
+
"comment": "use Griffel packages"
|
27
102
|
},
|
28
103
|
{
|
29
|
-
"author": "
|
104
|
+
"author": "behowell@microsoft.com",
|
30
105
|
"package": "@fluentui/react-card",
|
31
|
-
"
|
32
|
-
"
|
106
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
107
|
+
"comment": "Refactor component Slot typings"
|
33
108
|
},
|
34
109
|
{
|
35
|
-
"author": "
|
110
|
+
"author": "olfedias@microsoft.com",
|
36
111
|
"package": "@fluentui/react-card",
|
37
|
-
"
|
38
|
-
"
|
112
|
+
"commit": "158d89b5d98e3544e06f4f09967d2af8ab43e249",
|
113
|
+
"comment": "update styles no not use CSS shorthands"
|
39
114
|
},
|
40
115
|
{
|
41
|
-
"author": "
|
116
|
+
"author": "behowell@microsoft.com",
|
42
117
|
"package": "@fluentui/react-card",
|
43
|
-
"
|
44
|
-
"
|
118
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
119
|
+
"comment": "Remove component's shorthandProps array"
|
45
120
|
},
|
46
121
|
{
|
47
122
|
"author": "beachball",
|
48
123
|
"package": "@fluentui/react-card",
|
49
|
-
"comment": "Bump @fluentui/
|
50
|
-
"commit": "
|
124
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
125
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
51
126
|
},
|
52
127
|
{
|
53
128
|
"author": "beachball",
|
54
129
|
"package": "@fluentui/react-card",
|
55
|
-
"comment": "Bump @fluentui/
|
56
|
-
"commit": "
|
130
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
131
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
57
132
|
},
|
58
133
|
{
|
59
134
|
"author": "beachball",
|
60
135
|
"package": "@fluentui/react-card",
|
61
|
-
"comment": "Bump @fluentui/react-conformance-
|
62
|
-
"commit": "
|
136
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
137
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
63
138
|
},
|
64
139
|
{
|
65
140
|
"author": "beachball",
|
66
141
|
"package": "@fluentui/react-card",
|
67
|
-
"comment": "Bump @fluentui/react-text to
|
68
|
-
"commit": "
|
142
|
+
"comment": "Bump @fluentui/react-text to v9.0.0-rc.1",
|
143
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
69
144
|
},
|
70
145
|
{
|
71
146
|
"author": "beachball",
|
72
147
|
"package": "@fluentui/react-card",
|
73
|
-
"comment": "Bump @fluentui/react-button to
|
74
|
-
"commit": "
|
148
|
+
"comment": "Bump @fluentui/react-button to v9.0.0-rc.1",
|
149
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
75
150
|
}
|
76
151
|
],
|
77
152
|
"none": [
|
153
|
+
{
|
154
|
+
"author": "39736248+andrefcdias@users.noreply.github.com",
|
155
|
+
"package": "@fluentui/react-card",
|
156
|
+
"commit": "8e04b14546f264bb197ffce70bdff8ec83762c49",
|
157
|
+
"comment": "Add Alpha notice"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"author": "martinhochel@microsoft.com",
|
161
|
+
"package": "@fluentui/react-card",
|
162
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
163
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
164
|
+
},
|
78
165
|
{
|
79
166
|
"author": "andredias@microsoft.com",
|
80
167
|
"package": "@fluentui/react-card",
|
81
168
|
"commit": "c6c745b664df52f5cbdd5a190cc08cae971216e0",
|
82
169
|
"comment": "Add component spec"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"author": "olfedias@microsoft.com",
|
173
|
+
"package": "@fluentui/react-card",
|
174
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
175
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"author": "me@levithomason.com",
|
179
|
+
"package": "@fluentui/react-card",
|
180
|
+
"commit": "4bd15194a66379b165043141c266faa0c1ea1502",
|
181
|
+
"comment": "document how to import preview components"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"author": "bsunderhus@microsoft.com",
|
185
|
+
"package": "@fluentui/react-card",
|
186
|
+
"commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
|
187
|
+
"comment": "Updates components with nullRender changes"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"author": "me@levithomason.com",
|
191
|
+
"package": "@fluentui/react-card",
|
192
|
+
"commit": "a15d363937fad523e90350458ec3e44fe7199dc0",
|
193
|
+
"comment": "Move Storybook stories to Preview Components section"
|
83
194
|
}
|
84
195
|
]
|
85
196
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,27 +1,46 @@
|
|
1
1
|
# Change Log - @fluentui/react-card
|
2
2
|
|
3
|
-
This log was last generated on Thu,
|
3
|
+
This log was last generated on Thu, 17 Feb 2022 11:41:17 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyff78d1e27a20220217.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightlyff78d1e27a20220217.1)
|
8
8
|
|
9
|
-
Thu,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.
|
9
|
+
Thu, 17 Feb 2022 11:41:17 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.6..@fluentui/react-card_v0.0.0-nightlyff78d1e27a20220217.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by email not defined)
|
15
|
+
- fix: top padding issues with CardPreview ([PR #21685](https://github.com/microsoft/fluentui/pull/21685) by 39736248+andrefcdias@users.noreply.github.com)
|
16
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
|
17
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
|
18
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
|
19
|
+
- Bump @fluentui/react-text to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
|
20
|
+
- Bump @fluentui/react-button to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
|
21
|
+
|
22
|
+
## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.6)
|
23
|
+
|
24
|
+
Thu, 10 Feb 2022 08:51:52 GMT
|
25
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v9.0.0-beta.6)
|
26
|
+
|
27
|
+
### Changes
|
28
|
+
|
29
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
30
|
+
- Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
31
|
+
- 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)
|
32
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
15
33
|
- Remove empty CardCommons type and outdated boilerplate comments ([PR #21150](https://github.com/microsoft/fluentui/pull/21150) by elcraig@microsoft.com)
|
34
|
+
- 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)
|
35
|
+
- use Griffel packages ([PR #21417](https://github.com/microsoft/fluentui/pull/21417) by olfedias@microsoft.com)
|
36
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
16
37
|
- update styles no not use CSS shorthands ([PR #20794](https://github.com/microsoft/fluentui/pull/20794) by olfedias@microsoft.com)
|
17
|
-
-
|
18
|
-
- Bump @fluentui/react-utilities to
|
19
|
-
- Bump @fluentui/react-tabster to
|
20
|
-
- Bump @fluentui/
|
21
|
-
- Bump @fluentui/
|
22
|
-
- Bump @fluentui/react-
|
23
|
-
- Bump @fluentui/react-text to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
|
24
|
-
- Bump @fluentui/react-button to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
|
38
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
39
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
40
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
41
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
42
|
+
- Bump @fluentui/react-text to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
43
|
+
- Bump @fluentui/react-button to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
25
44
|
|
26
45
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.5)
|
27
46
|
|
package/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
# @fluentui/react-card
|
1
|
+
# @fluentui/react-card [ALPHA]
|
2
2
|
|
3
3
|
**React Card components for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
|
4
4
|
|
5
|
+
**⚠️ Please note that functionality is still being added to this package. Due to lockstep versioning, the version of this package is aligned with the others in _react-components_.**
|
6
|
+
|
5
7
|
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
6
8
|
|
7
9
|
To import React Card components:
|
package/dist/react-card.d.ts
CHANGED
@@ -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.
|
@@ -23,14 +23,9 @@ export declare const cardFooterClassName = "fui-CardFooter";
|
|
23
23
|
*/
|
24
24
|
export declare type CardFooterProps = ComponentProps<CardFooterSlots>;
|
25
25
|
|
26
|
-
/**
|
27
|
-
* Array of all shorthand properties listed in CardFooterShorthandProps
|
28
|
-
*/
|
29
|
-
export declare const cardFooterShorthandProps: Array<keyof CardFooterSlots>;
|
30
|
-
|
31
26
|
export declare type CardFooterSlots = {
|
32
|
-
root:
|
33
|
-
action?:
|
27
|
+
root: Slot<'div'>;
|
28
|
+
action?: Slot<'div'>;
|
34
29
|
};
|
35
30
|
|
36
31
|
/**
|
@@ -48,17 +43,15 @@ export declare const cardHeaderClassName = "fui-CardHeader";
|
|
48
43
|
/**
|
49
44
|
* CardHeader props
|
50
45
|
*/
|
51
|
-
export declare type CardHeaderProps = ComponentProps<CardHeaderSlots
|
52
|
-
|
53
|
-
export declare const cardHeaderShorthandProps: Array<keyof CardHeaderSlots>;
|
46
|
+
export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
|
54
47
|
|
55
48
|
export declare type CardHeaderSlots = {
|
56
|
-
root:
|
57
|
-
image:
|
58
|
-
content?:
|
59
|
-
header:
|
60
|
-
description:
|
61
|
-
action?:
|
49
|
+
root: Slot<'div'>;
|
50
|
+
image: Slot<'div'>;
|
51
|
+
content?: Slot<'div'>;
|
52
|
+
header: Slot<'span'>;
|
53
|
+
description: Slot<'span'>;
|
54
|
+
action?: Slot<'div'>;
|
62
55
|
};
|
63
56
|
|
64
57
|
/**
|
@@ -78,14 +71,9 @@ export declare const cardPreviewClassName = "fui-CardPreview";
|
|
78
71
|
*/
|
79
72
|
export declare type CardPreviewProps = ComponentProps<CardPreviewSlots>;
|
80
73
|
|
81
|
-
/**
|
82
|
-
* Array of all shorthand properties listed in CardPreviewShorthandProps
|
83
|
-
*/
|
84
|
-
export declare const cardPreviewShorthandProps: Array<keyof CardPreviewSlots>;
|
85
|
-
|
86
74
|
export declare type CardPreviewSlots = {
|
87
|
-
root:
|
88
|
-
logo?:
|
75
|
+
root: Slot<'div'>;
|
76
|
+
logo?: Slot<'div'>;
|
89
77
|
};
|
90
78
|
|
91
79
|
/**
|
@@ -99,7 +87,7 @@ export declare type CardPreviewState = ComponentState<CardPreviewSlots>;
|
|
99
87
|
export declare type CardProps = ComponentProps<CardSlots>;
|
100
88
|
|
101
89
|
export declare type CardSlots = {
|
102
|
-
root:
|
90
|
+
root: Slot<'div'>;
|
103
91
|
};
|
104
92
|
|
105
93
|
/**
|
@@ -110,85 +98,85 @@ export declare type CardState = ComponentState<CardSlots>;
|
|
110
98
|
/**
|
111
99
|
* Render the final JSX of Card
|
112
100
|
*/
|
113
|
-
export declare const
|
101
|
+
export declare const renderCard_unstable: (state: CardState) => JSX.Element;
|
114
102
|
|
115
103
|
/**
|
116
104
|
* Render the final JSX of CardFooter
|
117
105
|
*/
|
118
|
-
export declare const
|
106
|
+
export declare const renderCardFooter_unstable: (state: CardFooterState) => JSX.Element;
|
119
107
|
|
120
108
|
/**
|
121
109
|
* Render the final JSX of CardHeader
|
122
110
|
*/
|
123
|
-
export declare const
|
111
|
+
export declare const renderCardHeader_unstable: (state: CardHeaderState) => JSX.Element;
|
124
112
|
|
125
113
|
/**
|
126
114
|
* Render the final JSX of CardPreview
|
127
115
|
*/
|
128
|
-
export declare const
|
116
|
+
export declare const renderCardPreview_unstable: (state: CardPreviewState) => JSX.Element;
|
129
117
|
|
130
118
|
/**
|
131
119
|
* Create the state required to render Card.
|
132
120
|
*
|
133
|
-
* The returned state can be modified with hooks such as
|
134
|
-
* before being passed to
|
121
|
+
* The returned state can be modified with hooks such as useCardStyles_unstable,
|
122
|
+
* before being passed to renderCard_unstable.
|
135
123
|
*
|
136
124
|
* @param props - props from this instance of Card
|
137
125
|
* @param ref - reference to root HTMLElement of Card
|
138
126
|
*/
|
139
|
-
export declare const
|
127
|
+
export declare const useCard_unstable: (props: CardProps, ref: React_2.Ref<HTMLElement>) => CardState;
|
140
128
|
|
141
129
|
/**
|
142
130
|
* Create the state required to render CardFooter.
|
143
131
|
*
|
144
|
-
* The returned state can be modified with hooks such as
|
145
|
-
* before being passed to
|
132
|
+
* The returned state can be modified with hooks such as useCardFooterStyles_unstable,
|
133
|
+
* before being passed to renderCardFooter_unstable.
|
146
134
|
*
|
147
135
|
* @param props - props from this instance of CardFooter
|
148
136
|
* @param ref - reference to root HTMLElement of CardFooter
|
149
137
|
*/
|
150
|
-
export declare const
|
138
|
+
export declare const useCardFooter_unstable: (props: CardFooterProps, ref: React_2.Ref<HTMLElement>) => CardFooterState;
|
151
139
|
|
152
140
|
/**
|
153
141
|
* Apply styling to the CardFooter slots based on the state
|
154
142
|
*/
|
155
|
-
export declare const
|
143
|
+
export declare const useCardFooterStyles_unstable: (state: CardFooterState) => CardFooterState;
|
156
144
|
|
157
145
|
/**
|
158
146
|
* Create the state required to render CardHeader.
|
159
147
|
*
|
160
|
-
* The returned state can be modified with hooks such as
|
161
|
-
* before being passed to
|
148
|
+
* The returned state can be modified with hooks such as useCardHeaderStyles_unstable,
|
149
|
+
* before being passed to renderCardHeader_unstable.
|
162
150
|
*
|
163
151
|
* @param props - props from this instance of CardHeader
|
164
152
|
* @param ref - reference to root HTMLElement of CardHeader
|
165
153
|
*/
|
166
|
-
export declare const
|
154
|
+
export declare const useCardHeader_unstable: (props: CardHeaderProps, ref: React_2.Ref<HTMLElement>) => CardHeaderState;
|
167
155
|
|
168
156
|
/**
|
169
157
|
* Apply styling to the CardHeader slots based on the state
|
170
158
|
*/
|
171
|
-
export declare const
|
159
|
+
export declare const useCardHeaderStyles_unstable: (state: CardHeaderState) => CardHeaderState;
|
172
160
|
|
173
161
|
/**
|
174
162
|
* Create the state required to render CardPreview.
|
175
163
|
*
|
176
|
-
* The returned state can be modified with hooks such as
|
177
|
-
* before being passed to
|
164
|
+
* The returned state can be modified with hooks such as useCardPreviewStyles_unstable,
|
165
|
+
* before being passed to renderCardPreview_unstable.
|
178
166
|
*
|
179
167
|
* @param props - props from this instance of CardPreview
|
180
168
|
* @param ref - reference to root HTMLElement of CardPreview
|
181
169
|
*/
|
182
|
-
export declare const
|
170
|
+
export declare const useCardPreview_unstable: (props: CardPreviewProps, ref: React_2.Ref<HTMLElement>) => CardPreviewState;
|
183
171
|
|
184
172
|
/**
|
185
173
|
* Apply styling to the CardPreview slots based on the state
|
186
174
|
*/
|
187
|
-
export declare const
|
175
|
+
export declare const useCardPreviewStyles_unstable: (state: CardPreviewState) => CardPreviewState;
|
188
176
|
|
189
177
|
/**
|
190
178
|
* Apply styling to the Card slots based on the state
|
191
179
|
*/
|
192
|
-
export declare const
|
180
|
+
export declare const useCardStyles_unstable: (state: CardState) => CardState;
|
193
181
|
|
194
182
|
export { }
|
package/lib/Card.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"../src/","sources":["Card.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './components/Card/index';\n"]}
|
package/lib/CardFooter.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardFooter.js","sourceRoot":"","sources":["
|
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"]}
|
package/lib/CardHeader.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardHeader.js","sourceRoot":"","sources":["
|
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"]}
|
package/lib/CardPreview.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardPreview.js","sourceRoot":"","sources":["
|
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,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useCard_unstable } from './useCard';
|
3
|
+
import { renderCard_unstable } from './renderCard';
|
4
|
+
import { useCardStyles_unstable } from './useCardStyles';
|
5
5
|
/**
|
6
6
|
* A card provides scaffolding for hosting actions and content for a single topic.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const Card = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useCard_unstable(props, ref);
|
11
|
+
useCardStyles_unstable(state);
|
12
|
+
return renderCard_unstable(state);
|
13
13
|
});
|
14
14
|
Card.displayName = 'Card';
|
15
15
|
//# sourceMappingURL=Card.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
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,6 +1,6 @@
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
2
|
export declare type CardSlots = {
|
3
|
-
root:
|
3
|
+
root: Slot<'div'>;
|
4
4
|
};
|
5
5
|
/**
|
6
6
|
* Card Props
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Card.types.js","sourceRoot":"","sources":["
|
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\n/**\n * Card Props\n */\nexport type CardProps = ComponentProps<CardSlots>;\n\n/**\n * State used in rendering Card\n */\nexport type CardState = ComponentState<CardSlots>;\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
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":["
|
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/"}
|
@@ -3,10 +3,10 @@ import type { CardProps, CardState } from './Card.types';
|
|
3
3
|
/**
|
4
4
|
* Create the state required to render Card.
|
5
5
|
*
|
6
|
-
* The returned state can be modified with hooks such as
|
7
|
-
* before being passed to
|
6
|
+
* The returned state can be modified with hooks such as useCardStyles_unstable,
|
7
|
+
* before being passed to renderCard_unstable.
|
8
8
|
*
|
9
9
|
* @param props - props from this instance of Card
|
10
10
|
* @param ref - reference to root HTMLElement of Card
|
11
11
|
*/
|
12
|
-
export declare const
|
12
|
+
export declare const useCard_unstable: (props: CardProps, ref: React.Ref<HTMLElement>) => CardState;
|
@@ -3,14 +3,14 @@ import { useFocusableGroup } from '@fluentui/react-tabster';
|
|
3
3
|
/**
|
4
4
|
* Create the state required to render Card.
|
5
5
|
*
|
6
|
-
* The returned state can be modified with hooks such as
|
7
|
-
* before being passed to
|
6
|
+
* The returned state can be modified with hooks such as useCardStyles_unstable,
|
7
|
+
* before being passed to renderCard_unstable.
|
8
8
|
*
|
9
9
|
* @param props - props from this instance of Card
|
10
10
|
* @param ref - reference to root HTMLElement of Card
|
11
11
|
*/
|
12
12
|
|
13
|
-
export const
|
13
|
+
export const useCard_unstable = (props, ref) => {
|
14
14
|
const groupperAttrs = useFocusableGroup({
|
15
15
|
tabBehavior: 'limitedTrapFocus'
|
16
16
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
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,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","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 return {\n components: { root: 'div' },\n\n root: getNativeElementProps(props.as || 'div', {\n ref,\n role: 'group',\n ...groupperAttrs,\n ...props,\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|