@fluentui/react-card 0.0.0-nightly0e0cf06c3420211029.1 → 0.0.0-nightly554221a5aa20211202.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 +171 -21
- package/CHANGELOG.md +49 -13
- package/dist/react-card.d.ts +8 -0
- package/lib/components/Card/Card.js +2 -2
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/renderCard.js +6 -7
- package/lib/components/Card/renderCard.js.map +1 -1
- package/lib/components/Card/useCard.js +10 -9
- package/lib/components/Card/useCard.js.map +1 -1
- package/lib/components/Card/useCardStyles.d.ts +1 -0
- package/lib/components/Card/useCardStyles.js +20 -13
- package/lib/components/Card/useCardStyles.js.map +1 -1
- package/lib/components/CardFooter/CardFooter.js +2 -2
- package/lib/components/CardFooter/CardFooter.js.map +1 -1
- package/lib/components/CardFooter/renderCardFooter.js +6 -7
- package/lib/components/CardFooter/renderCardFooter.js.map +1 -1
- package/lib/components/CardFooter/useCardFooter.js +9 -7
- package/lib/components/CardFooter/useCardFooter.js.map +1 -1
- package/lib/components/CardFooter/useCardFooterStyles.d.ts +1 -0
- package/lib/components/CardFooter/useCardFooterStyles.js +9 -7
- package/lib/components/CardFooter/useCardFooterStyles.js.map +1 -1
- package/lib/components/CardHeader/CardHeader.js +2 -2
- package/lib/components/CardHeader/CardHeader.js.map +1 -1
- package/lib/components/CardHeader/renderCardHeader.js +6 -7
- package/lib/components/CardHeader/renderCardHeader.js.map +1 -1
- package/lib/components/CardHeader/useCardHeader.js +13 -11
- package/lib/components/CardHeader/useCardHeader.js.map +1 -1
- package/lib/components/CardHeader/useCardHeaderStyles.d.ts +1 -0
- package/lib/components/CardHeader/useCardHeaderStyles.js +9 -7
- package/lib/components/CardHeader/useCardHeaderStyles.js.map +1 -1
- package/lib/components/CardPreview/CardPreview.js +2 -2
- package/lib/components/CardPreview/CardPreview.js.map +1 -1
- package/lib/components/CardPreview/renderCardPreview.js +6 -7
- package/lib/components/CardPreview/renderCardPreview.js.map +1 -1
- package/lib/components/CardPreview/useCardPreview.js +9 -7
- package/lib/components/CardPreview/useCardPreview.js.map +1 -1
- package/lib/components/CardPreview/useCardPreviewStyles.d.ts +1 -0
- package/lib/components/CardPreview/useCardPreviewStyles.js +6 -5
- package/lib/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/lib-commonjs/Card.js +1 -1
- package/lib-commonjs/CardFooter.js +1 -1
- package/lib-commonjs/CardHeader.js +1 -1
- package/lib-commonjs/CardPreview.js +1 -1
- package/lib-commonjs/components/Card/Card.js +6 -6
- package/lib-commonjs/components/Card/Card.js.map +1 -1
- package/lib-commonjs/components/Card/index.js +1 -1
- package/lib-commonjs/components/Card/renderCard.js +8 -10
- package/lib-commonjs/components/Card/renderCard.js.map +1 -1
- package/lib-commonjs/components/Card/useCard.js +11 -11
- package/lib-commonjs/components/Card/useCard.js.map +1 -1
- package/lib-commonjs/components/Card/useCardStyles.d.ts +1 -0
- package/lib-commonjs/components/Card/useCardStyles.js +23 -15
- package/lib-commonjs/components/Card/useCardStyles.js.map +1 -1
- package/lib-commonjs/components/CardFooter/CardFooter.js +6 -6
- package/lib-commonjs/components/CardFooter/CardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/index.js +1 -1
- package/lib-commonjs/components/CardFooter/renderCardFooter.js +9 -11
- package/lib-commonjs/components/CardFooter/renderCardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/useCardFooter.js +9 -8
- package/lib-commonjs/components/CardFooter/useCardFooter.js.map +1 -1
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.d.ts +1 -0
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.js +11 -9
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.js.map +1 -1
- package/lib-commonjs/components/CardHeader/CardHeader.js +6 -6
- package/lib-commonjs/components/CardHeader/CardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/index.js +1 -1
- package/lib-commonjs/components/CardHeader/renderCardHeader.js +9 -11
- package/lib-commonjs/components/CardHeader/renderCardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/useCardHeader.js +14 -13
- package/lib-commonjs/components/CardHeader/useCardHeader.js.map +1 -1
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.d.ts +1 -0
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js +11 -9
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/CardPreview/CardPreview.js +6 -6
- package/lib-commonjs/components/CardPreview/CardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/index.js +1 -1
- package/lib-commonjs/components/CardPreview/renderCardPreview.js +9 -11
- package/lib-commonjs/components/CardPreview/renderCardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/useCardPreview.js +9 -8
- package/lib-commonjs/components/CardPreview/useCardPreview.js.map +1 -1
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.d.ts +1 -0
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js +8 -7
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +12 -12
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -11
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -22
- package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,72 +2,222 @@
|
|
2
2
|
"name": "@fluentui/react-card",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-card_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Thu, 02 Dec 2021 04:16:13 GMT",
|
6
|
+
"tag": "@fluentui/react-card_v0.0.0-nightly554221a5aa20211202.1",
|
7
|
+
"version": "0.0.0-nightly554221a5aa20211202.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": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "olfedias@microsoft.com",
|
18
|
+
"package": "@fluentui/react-card",
|
19
|
+
"commit": "158d89b5d98e3544e06f4f09967d2af8ab43e249",
|
20
|
+
"comment": "update styles no not use CSS shorthands"
|
21
|
+
},
|
16
22
|
{
|
17
23
|
"author": "beachball",
|
18
24
|
"package": "@fluentui/react-card",
|
19
|
-
"comment": "Bump @fluentui/react-make-styles to v0.0.0-
|
20
|
-
"commit": "
|
25
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
26
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
21
27
|
},
|
22
28
|
{
|
23
29
|
"author": "beachball",
|
24
30
|
"package": "@fluentui/react-card",
|
25
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-
|
26
|
-
"commit": "
|
31
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1",
|
32
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
27
33
|
},
|
28
34
|
{
|
29
35
|
"author": "beachball",
|
30
36
|
"package": "@fluentui/react-card",
|
31
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-
|
32
|
-
"commit": "
|
37
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly554221a5aa20211202.1",
|
38
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
33
39
|
},
|
34
40
|
{
|
35
41
|
"author": "beachball",
|
36
42
|
"package": "@fluentui/react-card",
|
37
|
-
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-
|
38
|
-
"commit": "
|
43
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
44
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
39
45
|
},
|
40
46
|
{
|
41
47
|
"author": "beachball",
|
42
48
|
"package": "@fluentui/react-card",
|
43
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-
|
44
|
-
"commit": "
|
49
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
50
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
45
51
|
},
|
46
52
|
{
|
47
53
|
"author": "beachball",
|
48
54
|
"package": "@fluentui/react-card",
|
49
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-
|
50
|
-
"commit": "
|
55
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
56
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
51
57
|
},
|
52
58
|
{
|
53
59
|
"author": "beachball",
|
54
60
|
"package": "@fluentui/react-card",
|
55
|
-
"comment": "Bump @fluentui/react-text to v0.0.0-
|
56
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/react-text to v0.0.0-nightly554221a5aa20211202.1",
|
62
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
57
63
|
},
|
58
64
|
{
|
59
65
|
"author": "beachball",
|
60
66
|
"package": "@fluentui/react-card",
|
61
|
-
"comment": "Bump @fluentui/react-button to v0.0.0-
|
62
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-button to v0.0.0-nightly554221a5aa20211202.1",
|
68
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
63
69
|
}
|
64
|
-
]
|
70
|
+
]
|
71
|
+
}
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"date": "Thu, 25 Nov 2021 08:34:12 GMT",
|
75
|
+
"tag": "@fluentui/react-card_v9.0.0-beta.5",
|
76
|
+
"version": "9.0.0-beta.5",
|
77
|
+
"comments": {
|
78
|
+
"prerelease": [
|
79
|
+
{
|
80
|
+
"author": "andredias@microsoft.com",
|
81
|
+
"package": "@fluentui/react-card",
|
82
|
+
"commit": "5f5fb9fe289f45c7f9afe9f052c51f19cfd41160",
|
83
|
+
"comment": "Migrate Card"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"author": "beachball",
|
87
|
+
"package": "@fluentui/react-card",
|
88
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
89
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"author": "beachball",
|
93
|
+
"package": "@fluentui/react-card",
|
94
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
95
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"author": "beachball",
|
99
|
+
"package": "@fluentui/react-card",
|
100
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
101
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"author": "beachball",
|
105
|
+
"package": "@fluentui/react-card",
|
106
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
107
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"author": "beachball",
|
111
|
+
"package": "@fluentui/react-card",
|
112
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
113
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"author": "beachball",
|
117
|
+
"package": "@fluentui/react-card",
|
118
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
119
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"author": "beachball",
|
123
|
+
"package": "@fluentui/react-card",
|
124
|
+
"comment": "Bump @fluentui/react-text to v9.0.0-beta.4",
|
125
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"author": "beachball",
|
129
|
+
"package": "@fluentui/react-card",
|
130
|
+
"comment": "Bump @fluentui/react-button to v9.0.0-beta.5",
|
131
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
132
|
+
}
|
133
|
+
]
|
134
|
+
}
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"date": "Fri, 12 Nov 2021 13:25:17 GMT",
|
138
|
+
"tag": "@fluentui/react-card_v9.0.0-beta.4",
|
139
|
+
"version": "9.0.0-beta.4",
|
140
|
+
"comments": {
|
65
141
|
"none": [
|
66
142
|
{
|
67
143
|
"author": "mgodbolt@microsoft.com",
|
68
144
|
"package": "@fluentui/react-card",
|
69
145
|
"commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
|
70
146
|
"comment": "update docs descriptions"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"author": "lingfangao@hotmail.com",
|
150
|
+
"package": "@fluentui/react-card",
|
151
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
152
|
+
"comment": "Remove beta release tag"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"author": "mgodbolt@microsoft.com",
|
156
|
+
"package": "@fluentui/react-card",
|
157
|
+
"commit": "114b089957bcbf547bb8713f2bfb4811239fb5a2",
|
158
|
+
"comment": "add default and move assets to github urls"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"prerelease": [
|
162
|
+
{
|
163
|
+
"author": "olfedias@microsoft.com",
|
164
|
+
"package": "@fluentui/react-card",
|
165
|
+
"commit": "22460e1421c0f3b2bdf9c76d80a2cb202fa30079",
|
166
|
+
"comment": "export static classes for components"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"author": "andredias@microsoft.com",
|
170
|
+
"package": "@fluentui/react-card",
|
171
|
+
"commit": "70e81a56249d55dae418217ddcef5d16e030862a",
|
172
|
+
"comment": "Migrate to new useFocusableGroup usage"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"author": "beachball",
|
176
|
+
"package": "@fluentui/react-card",
|
177
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
178
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"author": "beachball",
|
182
|
+
"package": "@fluentui/react-card",
|
183
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
184
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"author": "beachball",
|
188
|
+
"package": "@fluentui/react-card",
|
189
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
190
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"author": "beachball",
|
194
|
+
"package": "@fluentui/react-card",
|
195
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
196
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"author": "beachball",
|
200
|
+
"package": "@fluentui/react-card",
|
201
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
202
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"author": "beachball",
|
206
|
+
"package": "@fluentui/react-card",
|
207
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
208
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"author": "beachball",
|
212
|
+
"package": "@fluentui/react-card",
|
213
|
+
"comment": "Bump @fluentui/react-text to v9.0.0-beta.3",
|
214
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"author": "beachball",
|
218
|
+
"package": "@fluentui/react-card",
|
219
|
+
"comment": "Bump @fluentui/react-button to v9.0.0-beta.4",
|
220
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
71
221
|
}
|
72
222
|
]
|
73
223
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,25 +1,61 @@
|
|
1
1
|
# Change Log - @fluentui/react-card
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 02 Dec 2021 04:16:13 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly554221a5aa20211202.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly554221a5aa20211202.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.
|
9
|
+
Thu, 02 Dec 2021 04:16:13 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-nightly554221a5aa20211202.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
15
|
-
-
|
16
|
-
- Bump @fluentui/react-
|
17
|
-
- Bump @fluentui/react-
|
18
|
-
- Bump @fluentui/
|
19
|
-
- Bump @fluentui/
|
20
|
-
- Bump @fluentui/
|
21
|
-
- Bump @fluentui/react-
|
22
|
-
- Bump @fluentui/react-
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by email not defined)
|
15
|
+
- update styles no not use CSS shorthands ([PR #20794](https://github.com/microsoft/fluentui/pull/20794) by olfedias@microsoft.com)
|
16
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
17
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
18
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
19
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
20
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
21
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
22
|
+
- Bump @fluentui/react-text to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
23
|
+
- Bump @fluentui/react-button to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
24
|
+
|
25
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.5)
|
26
|
+
|
27
|
+
Thu, 25 Nov 2021 08:34:12 GMT
|
28
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.4..@fluentui/react-card_v9.0.0-beta.5)
|
29
|
+
|
30
|
+
### Changes
|
31
|
+
|
32
|
+
- Migrate Card ([PR #20599](https://github.com/microsoft/fluentui/pull/20599) by andredias@microsoft.com)
|
33
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
34
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
35
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
36
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
37
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
38
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
39
|
+
- Bump @fluentui/react-text to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
40
|
+
- Bump @fluentui/react-button to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
41
|
+
|
42
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.4)
|
43
|
+
|
44
|
+
Fri, 12 Nov 2021 13:25:17 GMT
|
45
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.3..@fluentui/react-card_v9.0.0-beta.4)
|
46
|
+
|
47
|
+
### Changes
|
48
|
+
|
49
|
+
- export static classes for components ([PR #20447](https://github.com/microsoft/fluentui/pull/20447) by olfedias@microsoft.com)
|
50
|
+
- Migrate to new useFocusableGroup usage ([PR #20131](https://github.com/microsoft/fluentui/pull/20131) by andredias@microsoft.com)
|
51
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
52
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
53
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
54
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
55
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
56
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
57
|
+
- Bump @fluentui/react-text to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
58
|
+
- Bump @fluentui/react-button to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
23
59
|
|
24
60
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.3)
|
25
61
|
|
package/dist/react-card.d.ts
CHANGED
@@ -9,6 +9,8 @@ import * as React_2 from 'react';
|
|
9
9
|
*/
|
10
10
|
export declare const Card: ForwardRefComponent<CardProps>;
|
11
11
|
|
12
|
+
export declare const cardClassName = "fui-Card";
|
13
|
+
|
12
14
|
export declare type CardCommons = {};
|
13
15
|
|
14
16
|
/**
|
@@ -16,6 +18,8 @@ export declare type CardCommons = {};
|
|
16
18
|
*/
|
17
19
|
export declare const CardFooter: ForwardRefComponent<CardFooterProps>;
|
18
20
|
|
21
|
+
export declare const cardFooterClassName = "fui-CardFooter";
|
22
|
+
|
19
23
|
/**
|
20
24
|
* CardFooter props
|
21
25
|
*/
|
@@ -41,6 +45,8 @@ export declare type CardFooterState = ComponentState<CardFooterSlots>;
|
|
41
45
|
*/
|
42
46
|
export declare const CardHeader: ForwardRefComponent<CardHeaderProps>;
|
43
47
|
|
48
|
+
export declare const cardHeaderClassName = "fui-CardHeader";
|
49
|
+
|
44
50
|
/**
|
45
51
|
* CardHeader props
|
46
52
|
*/
|
@@ -67,6 +73,8 @@ export declare type CardHeaderState = ComponentState<CardHeaderSlots>;
|
|
67
73
|
*/
|
68
74
|
export declare const CardPreview: ForwardRefComponent<CardPreviewProps>;
|
69
75
|
|
76
|
+
export declare const cardPreviewClassName = "fui-CardPreview";
|
77
|
+
|
70
78
|
/**
|
71
79
|
* CardPreview props
|
72
80
|
*/
|
@@ -6,8 +6,8 @@ import { useCardStyles } from './useCardStyles';
|
|
6
6
|
* A card provides scaffolding for hosting actions and content for a single topic.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export
|
10
|
-
|
9
|
+
export const Card = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
+
const state = useCard(props, ref);
|
11
11
|
useCardStyles(state);
|
12
12
|
return renderCard(state);
|
13
13
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAIA;;AAEG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AAEA,EAAA,aAAa,CAAC,KAAD,CAAb;AACA,SAAO,UAAU,CAAC,KAAD,CAAjB;AACD,CALmD,CAA7C;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
|
@@ -1,15 +1,14 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { getSlots } from '@fluentui/react-utilities';
|
4
3
|
/**
|
5
4
|
* Render the final JSX of Card
|
6
5
|
*/
|
7
6
|
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
7
|
+
export const renderCard = state => {
|
8
|
+
const {
|
9
|
+
slots,
|
10
|
+
slotProps
|
11
|
+
} = getSlots(state);
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
|
14
13
|
};
|
15
14
|
//# sourceMappingURL=renderCard.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Card/renderCard.tsx"],"names":[],"mappings":"
|
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,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAY,KAAZ,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { getNativeElementProps } from '@fluentui/react-utilities';
|
3
|
-
import { useFocusableGroup
|
2
|
+
import { useFocusableGroup } from '@fluentui/react-tabster';
|
4
3
|
/**
|
5
4
|
* Create the state required to render Card.
|
6
5
|
*
|
@@ -11,18 +10,20 @@ import { useFocusableGroup, FocusableGroupTabBehavior } from '@fluentui/react-ta
|
|
11
10
|
* @param ref - reference to root HTMLElement of Card
|
12
11
|
*/
|
13
12
|
|
14
|
-
export
|
15
|
-
|
16
|
-
tabBehavior:
|
13
|
+
export const useCard = (props, ref) => {
|
14
|
+
const groupperAttrs = useFocusableGroup({
|
15
|
+
tabBehavior: 'limitedTrapFocus'
|
17
16
|
});
|
18
17
|
return {
|
19
18
|
components: {
|
20
19
|
root: 'div'
|
21
20
|
},
|
22
|
-
root: getNativeElementProps(props.as || 'div',
|
23
|
-
ref
|
24
|
-
role: 'group'
|
25
|
-
|
21
|
+
root: getNativeElementProps(props.as || 'div', {
|
22
|
+
ref,
|
23
|
+
role: 'group',
|
24
|
+
...groupperAttrs,
|
25
|
+
...props
|
26
|
+
})
|
26
27
|
};
|
27
28
|
};
|
28
29
|
//# sourceMappingURL=useCard.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Card/useCard.ts"],"names":[],"mappings":"
|
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,OAAO,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;AAClF,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,25 +1,32 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
+
import { cardPreviewClassName } from '../CardPreview/index';
|
3
|
+
export const cardClassName = 'fui-Card';
|
2
4
|
/**
|
3
5
|
* Styles for the root slot
|
4
6
|
*/
|
5
7
|
|
6
|
-
|
8
|
+
const useStyles = /*#__PURE__*/__styles({
|
7
9
|
"root": {
|
8
10
|
"mc9l5x": "f22iagw",
|
9
11
|
"Beiy3e4": "f1vx9l62",
|
10
|
-
"
|
11
|
-
"
|
12
|
+
"B68tc82": "f1p9o1ba",
|
13
|
+
"Bmxbyg5": "f1sil6mw",
|
14
|
+
"E5pizo": "f1whvlc6",
|
12
15
|
"sj55zd": "f19n0e5",
|
13
16
|
"De3pzq": "fxugw4r",
|
14
17
|
"z8tnut": "f1kcqot9",
|
15
18
|
"z189sj": ["f11qrl6u", "fjlbh76"],
|
16
19
|
"Byoj8tv": "fpe6lb7",
|
17
20
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
21
|
+
"i8kkvl": "f4akndk",
|
22
|
+
"Belr9w4": "fe5j3v",
|
23
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
24
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
25
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
26
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
27
|
+
"Bt4kzjz": ["fwanz6y", "f1sdy22h"],
|
28
|
+
"B1ou843": ["f1sdy22h", "fwanz6y"],
|
29
|
+
"Bx3mhbb": "f12h22a6"
|
23
30
|
},
|
24
31
|
"interactive": {
|
25
32
|
"Bceei9c": "f1k6fduh",
|
@@ -27,7 +34,7 @@ var useStyles = /*#__PURE__*/__styles({
|
|
27
34
|
"ecr2s2": "fb40n2d"
|
28
35
|
}
|
29
36
|
}, {
|
30
|
-
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".
|
37
|
+
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1whvlc6{box-shadow:var(--shadow4);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".f4akndk{-webkit-column-gap:12px;column-gap:12px;}", ".fe5j3v{row-gap:12px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fwanz6y>.fui-CardPreview{margin-left:-12px;}", ".f1sdy22h>.fui-CardPreview{margin-right:-12px;}", ".f12h22a6>.fui-CardPreview:first-child{margin-top:-12px;}", ".f1k6fduh{cursor:pointer;}"],
|
31
38
|
"h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}"],
|
32
39
|
"a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}"]
|
33
40
|
});
|
@@ -36,9 +43,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
36
43
|
*/
|
37
44
|
|
38
45
|
|
39
|
-
export
|
40
|
-
|
41
|
-
state.root.className = mergeClasses(styles.root, (state.root.onClick || state.root.onMouseUp || state.root.onMouseDown || state.root.onPointerUp || state.root.onPointerDown || state.root.onTouchStart || state.root.onTouchEnd) && styles.interactive, state.root.className);
|
46
|
+
export const useCardStyles = state => {
|
47
|
+
const styles = useStyles();
|
48
|
+
state.root.className = mergeClasses(cardClassName, styles.root, (state.root.onClick || state.root.onMouseUp || state.root.onMouseDown || state.root.onPointerUp || state.root.onPointerDown || state.root.onTouchStart || state.root.onTouchEnd) && styles.interactive, state.root.className);
|
42
49
|
return state;
|
43
50
|
};
|
44
51
|
//# sourceMappingURL=useCardStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Card/useCardStyles.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Card/useCardStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,oBAAT,QAAqC,sBAArC;AAGA,OAAO,MAAM,aAAa,GAAG,UAAtB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqCA;;AAEG;;;AACH,OAAO,MAAM,aAAa,GAAI,KAAD,IAAgC;AAC3D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,aADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,CAAC,KAAK,CAAC,IAAN,CAAW,OAAX,IACC,KAAK,CAAC,IAAN,CAAW,SADZ,IAEC,KAAK,CAAC,IAAN,CAAW,WAFZ,IAGC,KAAK,CAAC,IAAN,CAAW,WAHZ,IAIC,KAAK,CAAC,IAAN,CAAW,aAJZ,IAKC,KAAK,CAAC,IAAN,CAAW,YALZ,IAMC,KAAK,CAAC,IAAN,CAAW,UANb,KAOE,MAAM,CAAC,WAVwB,EAWjC,KAAK,CAAC,IAAN,CAAW,SAXsB,CAAnC;AAcA,SAAO,KAAP;AACD,CAjBM","sourceRoot":""}
|
@@ -6,8 +6,8 @@ import { useCardFooterStyles } from './useCardFooterStyles';
|
|
6
6
|
* Component to render Button actions in a Card component.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export
|
10
|
-
|
9
|
+
export const CardFooter = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
+
const state = useCardFooter(props, ref);
|
11
11
|
useCardFooterStyles(state);
|
12
12
|
return renderCardFooter(state);
|
13
13
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,aAAT,QAA8B,iBAA9B;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AACA,SAAS,mBAAT,QAAoC,uBAApC;AAIA;;AAEG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,aAAT,QAA8B,iBAA9B;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AACA,SAAS,mBAAT,QAAoC,uBAApC;AAIA;;AAEG;;AACH,OAAO,MAAM,UAAU,gBAAyC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC9F,QAAM,KAAK,GAAG,aAAa,CAAC,KAAD,EAAQ,GAAR,CAA3B;AAEA,EAAA,mBAAmB,CAAC,KAAD,CAAnB;AACA,SAAO,gBAAgB,CAAC,KAAD,CAAvB;AACD,CAL+D,CAAzD;AAOP,UAAU,CAAC,WAAX,GAAyB,YAAzB","sourceRoot":""}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { getSlots } from '@fluentui/react-utilities';
|
4
3
|
import { cardFooterShorthandProps } from './useCardFooter';
|
@@ -6,11 +5,11 @@ import { cardFooterShorthandProps } from './useCardFooter';
|
|
6
5
|
* Render the final JSX of CardFooter
|
7
6
|
*/
|
8
7
|
|
9
|
-
export
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
8
|
+
export const renderCardFooter = state => {
|
9
|
+
const {
|
10
|
+
slots,
|
11
|
+
slotProps
|
12
|
+
} = getSlots(state, cardFooterShorthandProps);
|
13
|
+
return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), slotProps.root.children, /*#__PURE__*/React.createElement(slots.action, Object.assign({}, slotProps.action)));
|
15
14
|
};
|
16
15
|
//# sourceMappingURL=renderCardFooter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,wBAAT,QAAyC,iBAAzC;AAGA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAI,KAAD,IAA2B;AACzD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAkB,KAAlB,EAAyB,wBAAzB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,MAAf,CAAb,CAFF,CADF;AAMD,CATM","sourceRoot":""}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';
|
3
2
|
/**
|
4
3
|
* Array of all shorthand properties listed in CardFooterShorthandProps
|
5
4
|
*/
|
6
5
|
|
7
|
-
export
|
6
|
+
export const cardFooterShorthandProps = ['root', 'action'];
|
8
7
|
/**
|
9
8
|
* Create the state required to render CardFooter.
|
10
9
|
*
|
@@ -15,16 +14,19 @@ export var cardFooterShorthandProps = ['root', 'action'];
|
|
15
14
|
* @param ref - reference to root HTMLElement of CardFooter
|
16
15
|
*/
|
17
16
|
|
18
|
-
export
|
19
|
-
|
17
|
+
export const useCardFooter = (props, ref) => {
|
18
|
+
const {
|
19
|
+
action
|
20
|
+
} = props;
|
20
21
|
return {
|
21
22
|
components: {
|
22
23
|
root: 'div',
|
23
24
|
action: 'div'
|
24
25
|
},
|
25
|
-
root: getNativeElementProps('div',
|
26
|
-
ref
|
27
|
-
|
26
|
+
root: getNativeElementProps('div', {
|
27
|
+
ref,
|
28
|
+
...props
|
29
|
+
}),
|
28
30
|
action: resolveShorthand(action)
|
29
31
|
};
|
30
32
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooter.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooter.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;AAEG;;AACH,OAAO,MAAM,wBAAwB,GAAiC,CAAC,MAAD,EAAS,QAAT,CAA/D;AAEP;;;;;;;;AAQG;;AACH,OAAO,MAAM,aAAa,GAAG,CAAC,KAAD,EAAyB,GAAzB,KAAyE;AACpG,QAAM;AAAE,IAAA;AAAF,MAAa,KAAnB;AAEA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,MAAM,EAAE;AAFE,KADP;AAML,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,SAAG;AAF8B,KAAR,CANtB;AAUL,IAAA,MAAM,EAAE,gBAAgB,CAAC,MAAD;AAVnB,GAAP;AAYD,CAfM","sourceRoot":""}
|