@fluentui/react-card 0.0.0-nightly003de9a95220220111.1 → 0.0.0-nightly0bc161458e20220126.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 +44 -26
- package/CHANGELOG.md +13 -13
- package/README.md +3 -1
- package/dist/react-card.d.ts +20 -32
- package/lib/components/Card/Card.js +6 -6
- package/lib/components/Card/Card.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 +2 -2
- 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/renderCardFooter.d.ts +1 -1
- package/lib/components/CardFooter/renderCardFooter.js +2 -3
- 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/renderCardHeader.d.ts +1 -1
- package/lib/components/CardHeader/renderCardHeader.js +2 -3
- 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/renderCardPreview.d.ts +1 -1
- package/lib/components/CardPreview/renderCardPreview.js +2 -3
- 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 +2 -2
- package/lib/components/CardPreview/useCardPreviewStyles.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/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 +6 -6
- 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/renderCardFooter.d.ts +1 -1
- package/lib-commonjs/components/CardFooter/renderCardFooter.js +4 -6
- 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/renderCardHeader.d.ts +1 -1
- package/lib-commonjs/components/CardHeader/renderCardHeader.js +4 -6
- 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/renderCardPreview.d.ts +1 -1
- package/lib-commonjs/components/CardPreview/renderCardPreview.js +4 -6
- 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 +7 -7
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/package.json +9 -11
package/CHANGELOG.json
CHANGED
@@ -2,15 +2,15 @@
|
|
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": "Wed, 26 Jan 2022 04:16:44 GMT",
|
6
|
+
"tag": "@fluentui/react-card_v0.0.0-nightly0bc161458e20220126.1",
|
7
|
+
"version": "0.0.0-nightly0bc161458e20220126.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": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
16
|
{
|
@@ -32,66 +32,84 @@
|
|
32
32
|
"comment": "Remove empty CardCommons type and outdated boilerplate comments"
|
33
33
|
},
|
34
34
|
{
|
35
|
-
"author": "
|
35
|
+
"author": "behowell@microsoft.com",
|
36
36
|
"package": "@fluentui/react-card",
|
37
|
-
"commit": "
|
38
|
-
"comment": "
|
37
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
38
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
39
39
|
},
|
40
40
|
{
|
41
|
-
"author": "
|
41
|
+
"author": "olfedias@microsoft.com",
|
42
42
|
"package": "@fluentui/react-card",
|
43
|
-
"
|
44
|
-
"
|
43
|
+
"commit": "1249d2ee042780865e877fc2ed48f56e0eff25d1",
|
44
|
+
"comment": "use Griffel packages"
|
45
45
|
},
|
46
46
|
{
|
47
|
-
"author": "
|
47
|
+
"author": "olfedias@microsoft.com",
|
48
48
|
"package": "@fluentui/react-card",
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"commit": "158d89b5d98e3544e06f4f09967d2af8ab43e249",
|
50
|
+
"comment": "update styles no not use CSS shorthands"
|
51
51
|
},
|
52
52
|
{
|
53
|
-
"author": "
|
53
|
+
"author": "behowell@microsoft.com",
|
54
54
|
"package": "@fluentui/react-card",
|
55
|
-
"
|
56
|
-
"
|
55
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
56
|
+
"comment": "Remove component's shorthandProps array"
|
57
57
|
},
|
58
58
|
{
|
59
59
|
"author": "beachball",
|
60
60
|
"package": "@fluentui/react-card",
|
61
|
-
"comment": "Bump @fluentui/
|
62
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1",
|
62
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"author": "beachball",
|
66
66
|
"package": "@fluentui/react-card",
|
67
|
-
"comment": "Bump @fluentui/
|
68
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1",
|
68
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
69
69
|
},
|
70
70
|
{
|
71
71
|
"author": "beachball",
|
72
72
|
"package": "@fluentui/react-card",
|
73
|
-
"comment": "Bump @fluentui/react-conformance-
|
74
|
-
"commit": "
|
73
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1",
|
74
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
75
75
|
},
|
76
76
|
{
|
77
77
|
"author": "beachball",
|
78
78
|
"package": "@fluentui/react-card",
|
79
|
-
"comment": "Bump @fluentui/react-text to v0.0.0-
|
80
|
-
"commit": "
|
79
|
+
"comment": "Bump @fluentui/react-text to v0.0.0-nightly0bc161458e20220126.1",
|
80
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
81
81
|
},
|
82
82
|
{
|
83
83
|
"author": "beachball",
|
84
84
|
"package": "@fluentui/react-card",
|
85
|
-
"comment": "Bump @fluentui/react-button to v0.0.0-
|
86
|
-
"commit": "
|
85
|
+
"comment": "Bump @fluentui/react-button to v0.0.0-nightly0bc161458e20220126.1",
|
86
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
87
87
|
}
|
88
88
|
],
|
89
89
|
"none": [
|
90
|
+
{
|
91
|
+
"author": "39736248+andrefcdias@users.noreply.github.com",
|
92
|
+
"package": "@fluentui/react-card",
|
93
|
+
"commit": "8e04b14546f264bb197ffce70bdff8ec83762c49",
|
94
|
+
"comment": "Add Alpha notice"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"author": "martinhochel@microsoft.com",
|
98
|
+
"package": "@fluentui/react-card",
|
99
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
100
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
101
|
+
},
|
90
102
|
{
|
91
103
|
"author": "andredias@microsoft.com",
|
92
104
|
"package": "@fluentui/react-card",
|
93
105
|
"commit": "c6c745b664df52f5cbdd5a190cc08cae971216e0",
|
94
106
|
"comment": "Add component spec"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"author": "olfedias@microsoft.com",
|
110
|
+
"package": "@fluentui/react-card",
|
111
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
112
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
95
113
|
}
|
96
114
|
]
|
97
115
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
# Change Log - @fluentui/react-card
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 26 Jan 2022 04:16:44 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly0bc161458e20220126.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly0bc161458e20220126.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-
|
9
|
+
Wed, 26 Jan 2022 04:16:44 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-nightly0bc161458e20220126.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/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
|
15
15
|
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
16
16
|
- 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)
|
17
17
|
- Remove empty CardCommons type and outdated boilerplate comments ([PR #21150](https://github.com/microsoft/fluentui/pull/21150) by elcraig@microsoft.com)
|
18
|
+
- 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)
|
19
|
+
- use Griffel packages ([PR #21417](https://github.com/microsoft/fluentui/pull/21417) by olfedias@microsoft.com)
|
18
20
|
- update styles no not use CSS shorthands ([PR #20794](https://github.com/microsoft/fluentui/pull/20794) by olfedias@microsoft.com)
|
19
|
-
-
|
20
|
-
- Bump @fluentui/react-utilities to v0.0.0-
|
21
|
-
- Bump @fluentui/react-tabster to v0.0.0-
|
22
|
-
- Bump @fluentui/
|
23
|
-
- Bump @fluentui/
|
24
|
-
- Bump @fluentui/react-
|
25
|
-
- Bump @fluentui/react-text to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
26
|
-
- Bump @fluentui/react-button to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
21
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
22
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
23
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
24
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
25
|
+
- Bump @fluentui/react-text to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
26
|
+
- Bump @fluentui/react-button to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
27
27
|
|
28
28
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.5)
|
29
29
|
|
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
@@ -23,11 +23,6 @@ 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
27
|
root: IntrinsicShorthandProps<'div'>;
|
33
28
|
action?: IntrinsicShorthandProps<'div'>;
|
@@ -50,8 +45,6 @@ export declare const cardHeaderClassName = "fui-CardHeader";
|
|
50
45
|
*/
|
51
46
|
export declare type CardHeaderProps = ComponentProps<CardHeaderSlots>;
|
52
47
|
|
53
|
-
export declare const cardHeaderShorthandProps: Array<keyof CardHeaderSlots>;
|
54
|
-
|
55
48
|
export declare type CardHeaderSlots = {
|
56
49
|
root: IntrinsicShorthandProps<'div'>;
|
57
50
|
image: IntrinsicShorthandProps<'div'>;
|
@@ -78,11 +71,6 @@ 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
75
|
root: IntrinsicShorthandProps<'div'>;
|
88
76
|
logo?: IntrinsicShorthandProps<'div'>;
|
@@ -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 { }
|
@@ -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":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
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 +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,
|
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":""}
|
@@ -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":["../../../src/components/Card/useCard.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,iBAAT,QAAkC,yBAAlC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,
|
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,4 +1,4 @@
|
|
1
|
-
import { shorthands, __styles, mergeClasses } from '@
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@griffel/react';
|
2
2
|
import { tokens } from '@fluentui/react-theme';
|
3
3
|
import { cardPreviewClassName } from '../CardPreview/index';
|
4
4
|
export const cardClassName = 'fui-Card';
|
@@ -44,7 +44,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
44
44
|
*/
|
45
45
|
|
46
46
|
|
47
|
-
export const
|
47
|
+
export const useCardStyles_unstable = state => {
|
48
48
|
const styles = useStyles();
|
49
49
|
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);
|
50
50
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Card/useCardStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,
|
1
|
+
{"version":3,"sources":["../../../src/components/Card/useCardStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;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,sBAAsB,GAAI,KAAD,IAAgC;AACpE,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":""}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useCardFooter_unstable } from './useCardFooter';
|
3
|
+
import { renderCardFooter_unstable } from './renderCardFooter';
|
4
|
+
import { useCardFooterStyles_unstable } from './useCardFooterStyles';
|
5
5
|
/**
|
6
6
|
* Component to render Button actions in a Card component.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const CardFooter = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useCardFooter_unstable(props, ref);
|
11
|
+
useCardFooterStyles_unstable(state);
|
12
|
+
return renderCardFooter_unstable(state);
|
13
13
|
});
|
14
14
|
CardFooter.displayName = 'CardFooter';
|
15
15
|
//# sourceMappingURL=CardFooter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/CardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AACA,SAAS,4BAAT,QAA6C,uBAA7C;AAIA;;AAEG;;AACH,OAAO,MAAM,UAAU,gBAAyC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC9F,QAAM,KAAK,GAAG,sBAAsB,CAAC,KAAD,EAAQ,GAAR,CAApC;AAEA,EAAA,4BAA4B,CAAC,KAAD,CAA5B;AACA,SAAO,yBAAyB,CAAC,KAAD,CAAhC;AACD,CAL+D,CAAzD;AAOP,UAAU,CAAC,WAAX,GAAyB,YAAzB","sourceRoot":""}
|
@@ -2,4 +2,4 @@ import type { CardFooterState } from './CardFooter.types';
|
|
2
2
|
/**
|
3
3
|
* Render the final JSX of CardFooter
|
4
4
|
*/
|
5
|
-
export declare const
|
5
|
+
export declare const renderCardFooter_unstable: (state: CardFooterState) => JSX.Element;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { getSlots } from '@fluentui/react-utilities';
|
3
|
-
import { cardFooterShorthandProps } from './useCardFooter';
|
4
3
|
/**
|
5
4
|
* Render the final JSX of CardFooter
|
6
5
|
*/
|
7
6
|
|
8
|
-
export const
|
7
|
+
export const renderCardFooter_unstable = state => {
|
9
8
|
const {
|
10
9
|
slots,
|
11
10
|
slotProps
|
12
|
-
} = getSlots(state
|
11
|
+
} = getSlots(state);
|
13
12
|
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
14
13
|
}, slotProps.root.children, /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
|
15
14
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,yBAAyB,GAAI,KAAD,IAA2B;AAClE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAkB,KAAlB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CAFF,CADF;AAMD,CATM","sourceRoot":""}
|
@@ -1,16 +1,12 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { CardFooterProps,
|
3
|
-
/**
|
4
|
-
* Array of all shorthand properties listed in CardFooterShorthandProps
|
5
|
-
*/
|
6
|
-
export declare const cardFooterShorthandProps: Array<keyof CardFooterSlots>;
|
2
|
+
import type { CardFooterProps, CardFooterState } from './CardFooter.types';
|
7
3
|
/**
|
8
4
|
* Create the state required to render CardFooter.
|
9
5
|
*
|
10
|
-
* The returned state can be modified with hooks such as
|
11
|
-
* before being passed to
|
6
|
+
* The returned state can be modified with hooks such as useCardFooterStyles_unstable,
|
7
|
+
* before being passed to renderCardFooter_unstable.
|
12
8
|
*
|
13
9
|
* @param props - props from this instance of CardFooter
|
14
10
|
* @param ref - reference to root HTMLElement of CardFooter
|
15
11
|
*/
|
16
|
-
export declare const
|
12
|
+
export declare const useCardFooter_unstable: (props: CardFooterProps, ref: React.Ref<HTMLElement>) => CardFooterState;
|
@@ -1,20 +1,15 @@
|
|
1
1
|
import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';
|
2
|
-
/**
|
3
|
-
* Array of all shorthand properties listed in CardFooterShorthandProps
|
4
|
-
*/
|
5
|
-
|
6
|
-
export const cardFooterShorthandProps = ['root', 'action'];
|
7
2
|
/**
|
8
3
|
* Create the state required to render CardFooter.
|
9
4
|
*
|
10
|
-
* The returned state can be modified with hooks such as
|
11
|
-
* before being passed to
|
5
|
+
* The returned state can be modified with hooks such as useCardFooterStyles_unstable,
|
6
|
+
* before being passed to renderCardFooter_unstable.
|
12
7
|
*
|
13
8
|
* @param props - props from this instance of CardFooter
|
14
9
|
* @param ref - reference to root HTMLElement of CardFooter
|
15
10
|
*/
|
16
11
|
|
17
|
-
export const
|
12
|
+
export const useCardFooter_unstable = (props, ref) => {
|
18
13
|
const {
|
19
14
|
action
|
20
15
|
} = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooter.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooter.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,sBAAsB,GAAG,CAAC,KAAD,EAAyB,GAAzB,KAAyE;AAC7G,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":""}
|
@@ -3,4 +3,4 @@ export declare const cardFooterClassName = "fui-CardFooter";
|
|
3
3
|
/**
|
4
4
|
* Apply styling to the CardFooter slots based on the state
|
5
5
|
*/
|
6
|
-
export declare const
|
6
|
+
export declare const useCardFooterStyles_unstable: (state: CardFooterState) => CardFooterState;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __styles, mergeClasses, shorthands } from '@
|
1
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
2
2
|
export const cardFooterClassName = 'fui-CardFooter';
|
3
3
|
/**
|
4
4
|
* Styles for the root slot
|
@@ -22,7 +22,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
22
22
|
*/
|
23
23
|
|
24
24
|
|
25
|
-
export const
|
25
|
+
export const useCardFooterStyles_unstable = state => {
|
26
26
|
const styles = useStyles();
|
27
27
|
state.root.className = mergeClasses(cardFooterClassName, styles.root, state.root.className);
|
28
28
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooterStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,
|
1
|
+
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooterStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AAGA,OAAO,MAAM,mBAAmB,GAAG,gBAA5B;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;AAEG;;;AACH,OAAO,MAAM,4BAA4B,GAAI,KAAD,IAA4C;AACtF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,mBAAD,EAAsB,MAAM,CAAC,IAA7B,EAAmC,KAAK,CAAC,IAAN,CAAW,SAA9C,CAAnC;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,IAAA,KAAK,CAAC,MAAN,CAAa,SAAb,GAAyB,YAAY,CAAC,MAAM,CAAC,MAAR,EAAgB,KAAK,CAAC,MAAN,CAAa,SAA7B,CAArC;AACD;;AAED,SAAO,KAAP;AACD,CATM","sourceRoot":""}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useCardHeader_unstable } from './useCardHeader';
|
3
|
+
import { renderCardHeader_unstable } from './renderCardHeader';
|
4
|
+
import { useCardHeaderStyles_unstable } from './useCardHeaderStyles';
|
5
5
|
/**
|
6
6
|
* Component to render an image, text and an action in a Card component.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const CardHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useCardHeader_unstable(props, ref);
|
11
|
+
useCardHeaderStyles_unstable(state);
|
12
|
+
return renderCardHeader_unstable(state);
|
13
13
|
});
|
14
14
|
CardHeader.displayName = 'CardHeader';
|
15
15
|
//# sourceMappingURL=CardHeader.js.map
|