@fluentui/react-card 9.0.0-beta.5 → 9.0.0-beta.6
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 +152 -9
- package/CHANGELOG.md +33 -10
- package/README.md +3 -1
- package/Spec.md +523 -0
- package/assets/Card.png +0 -0
- package/assets/CardHeader.png +0 -0
- package/assets/CardPreview.png +0 -0
- package/assets/context-interaction-keyboard.png +0 -0
- package/assets/context-interaction-mouse.png +0 -0
- package/assets/context-narrator.png +0 -0
- package/assets/disabled-narrator.png +0 -0
- package/assets/disabled.png +0 -0
- package/assets/interactive-interaction-keyboard.png +0 -0
- package/assets/interactive-interaction-mouse.png +0 -0
- package/assets/interactive-narrator.png +0 -0
- package/assets/non-interactive-interaction-keyboard.png +0 -0
- package/assets/non-interactive-interaction-mouse.png +0 -0
- package/assets/non-interactive-narrator.png +0 -0
- package/assets/non-interactive-selectable-interaction-keyboard.png +0 -0
- package/assets/non-interactive-selectable-interaction-mouse.png +0 -0
- package/assets/selectable-interaction-keyboard.png +0 -0
- package/assets/selectable-interaction-mouse.png +0 -0
- package/assets/selectable-narrator.png +0 -0
- package/dist/react-card.d.ts +35 -49
- 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 +4 -5
- package/lib/components/Card/renderCard.d.ts +1 -1
- package/lib/components/Card/renderCard.js +3 -2
- 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 +12 -6
- 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/renderCardFooter.d.ts +1 -1
- package/lib/components/CardFooter/renderCardFooter.js +5 -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 +5 -4
- 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/renderCardHeader.d.ts +1 -1
- package/lib/components/CardHeader/renderCardHeader.js +9 -4
- 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 +5 -4
- 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/renderCardPreview.d.ts +1 -1
- package/lib/components/CardPreview/renderCardPreview.js +5 -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 +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/Card.types.d.ts +4 -5
- package/lib-commonjs/components/Card/renderCard.d.ts +1 -1
- package/lib-commonjs/components/Card/renderCard.js +5 -4
- 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 +17 -10
- 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/renderCardFooter.d.ts +1 -1
- package/lib-commonjs/components/CardFooter/renderCardFooter.js +7 -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 +10 -9
- 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/renderCardHeader.d.ts +1 -1
- package/lib-commonjs/components/CardHeader/renderCardHeader.js +11 -7
- 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 +11 -10
- 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/renderCardPreview.d.ts +1 -1
- package/lib-commonjs/components/CardPreview/renderCardPreview.js +7 -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 +7 -7
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.js.map +1 -1
- package/package.json +9 -11
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.
|
@@ -11,8 +11,6 @@ export declare const Card: ForwardRefComponent<CardProps>;
|
|
11
11
|
|
12
12
|
export declare const cardClassName = "fui-Card";
|
13
13
|
|
14
|
-
export declare type CardCommons = {};
|
15
|
-
|
16
14
|
/**
|
17
15
|
* Component to render Button actions in a Card component.
|
18
16
|
*/
|
@@ -25,14 +23,9 @@ export declare const cardFooterClassName = "fui-CardFooter";
|
|
25
23
|
*/
|
26
24
|
export declare type CardFooterProps = ComponentProps<CardFooterSlots>;
|
27
25
|
|
28
|
-
/**
|
29
|
-
* Array of all shorthand properties listed in CardFooterShorthandProps
|
30
|
-
*/
|
31
|
-
export declare const cardFooterShorthandProps: Array<keyof CardFooterSlots>;
|
32
|
-
|
33
26
|
export declare type CardFooterSlots = {
|
34
|
-
root:
|
35
|
-
action?:
|
27
|
+
root: Slot<'div'>;
|
28
|
+
action?: Slot<'div'>;
|
36
29
|
};
|
37
30
|
|
38
31
|
/**
|
@@ -50,17 +43,15 @@ export declare const cardHeaderClassName = "fui-CardHeader";
|
|
50
43
|
/**
|
51
44
|
* CardHeader props
|
52
45
|
*/
|
53
|
-
export declare type CardHeaderProps = ComponentProps<CardHeaderSlots
|
54
|
-
|
55
|
-
export declare const cardHeaderShorthandProps: Array<keyof CardHeaderSlots>;
|
46
|
+
export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
|
56
47
|
|
57
48
|
export declare type CardHeaderSlots = {
|
58
|
-
root:
|
59
|
-
image:
|
60
|
-
content?:
|
61
|
-
header:
|
62
|
-
description:
|
63
|
-
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'>;
|
64
55
|
};
|
65
56
|
|
66
57
|
/**
|
@@ -80,14 +71,9 @@ export declare const cardPreviewClassName = "fui-CardPreview";
|
|
80
71
|
*/
|
81
72
|
export declare type CardPreviewProps = ComponentProps<CardPreviewSlots>;
|
82
73
|
|
83
|
-
/**
|
84
|
-
* Array of all shorthand properties listed in CardPreviewShorthandProps
|
85
|
-
*/
|
86
|
-
export declare const cardPreviewShorthandProps: Array<keyof CardPreviewSlots>;
|
87
|
-
|
88
74
|
export declare type CardPreviewSlots = {
|
89
|
-
root:
|
90
|
-
logo?:
|
75
|
+
root: Slot<'div'>;
|
76
|
+
logo?: Slot<'div'>;
|
91
77
|
};
|
92
78
|
|
93
79
|
/**
|
@@ -98,99 +84,99 @@ export declare type CardPreviewState = ComponentState<CardPreviewSlots>;
|
|
98
84
|
/**
|
99
85
|
* Card Props
|
100
86
|
*/
|
101
|
-
export declare type CardProps = ComponentProps<CardSlots
|
87
|
+
export declare type CardProps = ComponentProps<CardSlots>;
|
102
88
|
|
103
89
|
export declare type CardSlots = {
|
104
|
-
root:
|
90
|
+
root: Slot<'div'>;
|
105
91
|
};
|
106
92
|
|
107
93
|
/**
|
108
94
|
* State used in rendering Card
|
109
95
|
*/
|
110
|
-
export declare type CardState = ComponentState<CardSlots
|
96
|
+
export declare type CardState = ComponentState<CardSlots>;
|
111
97
|
|
112
98
|
/**
|
113
99
|
* Render the final JSX of Card
|
114
100
|
*/
|
115
|
-
export declare const
|
101
|
+
export declare const renderCard_unstable: (state: CardState) => JSX.Element;
|
116
102
|
|
117
103
|
/**
|
118
104
|
* Render the final JSX of CardFooter
|
119
105
|
*/
|
120
|
-
export declare const
|
106
|
+
export declare const renderCardFooter_unstable: (state: CardFooterState) => JSX.Element;
|
121
107
|
|
122
108
|
/**
|
123
109
|
* Render the final JSX of CardHeader
|
124
110
|
*/
|
125
|
-
export declare const
|
111
|
+
export declare const renderCardHeader_unstable: (state: CardHeaderState) => JSX.Element;
|
126
112
|
|
127
113
|
/**
|
128
114
|
* Render the final JSX of CardPreview
|
129
115
|
*/
|
130
|
-
export declare const
|
116
|
+
export declare const renderCardPreview_unstable: (state: CardPreviewState) => JSX.Element;
|
131
117
|
|
132
118
|
/**
|
133
119
|
* Create the state required to render Card.
|
134
120
|
*
|
135
|
-
* The returned state can be modified with hooks such as
|
136
|
-
* before being passed to
|
121
|
+
* The returned state can be modified with hooks such as useCardStyles_unstable,
|
122
|
+
* before being passed to renderCard_unstable.
|
137
123
|
*
|
138
124
|
* @param props - props from this instance of Card
|
139
125
|
* @param ref - reference to root HTMLElement of Card
|
140
126
|
*/
|
141
|
-
export declare const
|
127
|
+
export declare const useCard_unstable: (props: CardProps, ref: React_2.Ref<HTMLElement>) => CardState;
|
142
128
|
|
143
129
|
/**
|
144
130
|
* Create the state required to render CardFooter.
|
145
131
|
*
|
146
|
-
* The returned state can be modified with hooks such as
|
147
|
-
* before being passed to
|
132
|
+
* The returned state can be modified with hooks such as useCardFooterStyles_unstable,
|
133
|
+
* before being passed to renderCardFooter_unstable.
|
148
134
|
*
|
149
135
|
* @param props - props from this instance of CardFooter
|
150
136
|
* @param ref - reference to root HTMLElement of CardFooter
|
151
137
|
*/
|
152
|
-
export declare const
|
138
|
+
export declare const useCardFooter_unstable: (props: CardFooterProps, ref: React_2.Ref<HTMLElement>) => CardFooterState;
|
153
139
|
|
154
140
|
/**
|
155
141
|
* Apply styling to the CardFooter slots based on the state
|
156
142
|
*/
|
157
|
-
export declare const
|
143
|
+
export declare const useCardFooterStyles_unstable: (state: CardFooterState) => CardFooterState;
|
158
144
|
|
159
145
|
/**
|
160
146
|
* Create the state required to render CardHeader.
|
161
147
|
*
|
162
|
-
* The returned state can be modified with hooks such as
|
163
|
-
* before being passed to
|
148
|
+
* The returned state can be modified with hooks such as useCardHeaderStyles_unstable,
|
149
|
+
* before being passed to renderCardHeader_unstable.
|
164
150
|
*
|
165
151
|
* @param props - props from this instance of CardHeader
|
166
152
|
* @param ref - reference to root HTMLElement of CardHeader
|
167
153
|
*/
|
168
|
-
export declare const
|
154
|
+
export declare const useCardHeader_unstable: (props: CardHeaderProps, ref: React_2.Ref<HTMLElement>) => CardHeaderState;
|
169
155
|
|
170
156
|
/**
|
171
157
|
* Apply styling to the CardHeader slots based on the state
|
172
158
|
*/
|
173
|
-
export declare const
|
159
|
+
export declare const useCardHeaderStyles_unstable: (state: CardHeaderState) => CardHeaderState;
|
174
160
|
|
175
161
|
/**
|
176
162
|
* Create the state required to render CardPreview.
|
177
163
|
*
|
178
|
-
* The returned state can be modified with hooks such as
|
179
|
-
* before being passed to
|
164
|
+
* The returned state can be modified with hooks such as useCardPreviewStyles_unstable,
|
165
|
+
* before being passed to renderCardPreview_unstable.
|
180
166
|
*
|
181
167
|
* @param props - props from this instance of CardPreview
|
182
168
|
* @param ref - reference to root HTMLElement of CardPreview
|
183
169
|
*/
|
184
|
-
export declare const
|
170
|
+
export declare const useCardPreview_unstable: (props: CardPreviewProps, ref: React_2.Ref<HTMLElement>) => CardPreviewState;
|
185
171
|
|
186
172
|
/**
|
187
173
|
* Apply styling to the CardPreview slots based on the state
|
188
174
|
*/
|
189
|
-
export declare const
|
175
|
+
export declare const useCardPreviewStyles_unstable: (state: CardPreviewState) => CardPreviewState;
|
190
176
|
|
191
177
|
/**
|
192
178
|
* Apply styling to the Card slots based on the state
|
193
179
|
*/
|
194
|
-
export declare const
|
180
|
+
export declare const useCardStyles_unstable: (state: CardState) => CardState;
|
195
181
|
|
196
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,13 +1,12 @@
|
|
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
|
-
export declare type CardCommons = {};
|
6
5
|
/**
|
7
6
|
* Card Props
|
8
7
|
*/
|
9
|
-
export declare type CardProps = ComponentProps<CardSlots
|
8
|
+
export declare type CardProps = ComponentProps<CardSlots>;
|
10
9
|
/**
|
11
10
|
* State used in rendering Card
|
12
11
|
*/
|
13
|
-
export declare type CardState = ComponentState<CardSlots
|
12
|
+
export declare type CardState = ComponentState<CardSlots>;
|
@@ -4,11 +4,12 @@ import { getSlots } from '@fluentui/react-utilities';
|
|
4
4
|
* Render the final JSX of Card
|
5
5
|
*/
|
6
6
|
|
7
|
-
export const
|
7
|
+
export const renderCard_unstable = state => {
|
8
8
|
const {
|
9
9
|
slots,
|
10
10
|
slotProps
|
11
11
|
} = getSlots(state);
|
12
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
13
|
+
});
|
13
14
|
};
|
14
15
|
//# sourceMappingURL=renderCard.js.map
|
@@ -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,5 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@griffel/react';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
2
3
|
import { cardPreviewClassName } from '../CardPreview/index';
|
3
4
|
export const cardClassName = 'fui-Card';
|
4
5
|
/**
|
@@ -9,7 +10,8 @@ const useStyles = /*#__PURE__*/__styles({
|
|
9
10
|
"root": {
|
10
11
|
"mc9l5x": "f22iagw",
|
11
12
|
"Beiy3e4": "f1vx9l62",
|
12
|
-
"
|
13
|
+
"B68tc82": "f1p9o1ba",
|
14
|
+
"Bmxbyg5": "f1sil6mw",
|
13
15
|
"E5pizo": "f1whvlc6",
|
14
16
|
"sj55zd": "f19n0e5",
|
15
17
|
"De3pzq": "fxugw4r",
|
@@ -17,8 +19,12 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
19
|
"z189sj": ["f11qrl6u", "fjlbh76"],
|
18
20
|
"Byoj8tv": "fpe6lb7",
|
19
21
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
20
|
-
"
|
21
|
-
"
|
22
|
+
"i8kkvl": "f4akndk",
|
23
|
+
"Belr9w4": "fe5j3v",
|
24
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
25
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
26
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
27
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
22
28
|
"Bt4kzjz": ["fwanz6y", "f1sdy22h"],
|
23
29
|
"B1ou843": ["f1sdy22h", "fwanz6y"],
|
24
30
|
"Bx3mhbb": "f12h22a6"
|
@@ -29,7 +35,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
29
35
|
"ecr2s2": "fb40n2d"
|
30
36
|
}
|
31
37
|
}, {
|
32
|
-
"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;}", ".
|
38
|
+
"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;}"],
|
33
39
|
"h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}"],
|
34
40
|
"a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}"]
|
35
41
|
});
|
@@ -38,7 +44,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
38
44
|
*/
|
39
45
|
|
40
46
|
|
41
|
-
export const
|
47
|
+
export const useCardStyles_unstable = state => {
|
42
48
|
const styles = useStyles();
|
43
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);
|
44
50
|
return state;
|
@@ -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,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":""}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
2
|
export declare type CardFooterSlots = {
|
3
|
-
root:
|
4
|
-
action?:
|
3
|
+
root: Slot<'div'>;
|
4
|
+
action?: Slot<'div'>;
|
5
5
|
};
|
6
6
|
/**
|
7
7
|
* CardFooter props
|
@@ -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,16 @@
|
|
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
|
13
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
11
|
+
} = getSlots(state);
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
13
|
+
}, slotProps.root.children, slots.action && /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
|
14
|
+
}));
|
14
15
|
};
|
15
16
|
//# sourceMappingURL=renderCardFooter.js.map
|
@@ -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,EAEG,KAAK,CAAC,MAAN,iBAAgB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CAFnB,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 } 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
|
@@ -8,20 +8,21 @@ const useStyles = /*#__PURE__*/__styles({
|
|
8
8
|
"root": {
|
9
9
|
"mc9l5x": "f22iagw",
|
10
10
|
"Beiy3e4": "f1063pyq",
|
11
|
-
"
|
11
|
+
"i8kkvl": "f4akndk",
|
12
|
+
"Belr9w4": "fe5j3v"
|
12
13
|
},
|
13
14
|
"action": {
|
14
15
|
"Frg6f3": ["fcgxt0o", "f1ujusj6"]
|
15
16
|
}
|
16
17
|
}, {
|
17
|
-
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".
|
18
|
+
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".f4akndk{-webkit-column-gap:12px;column-gap:12px;}", ".fe5j3v{row-gap:12px;}", ".fcgxt0o{margin-left:auto;}", ".f1ujusj6{margin-right:auto;}"]
|
18
19
|
});
|
19
20
|
/**
|
20
21
|
* Apply styling to the CardFooter slots based on the state
|
21
22
|
*/
|
22
23
|
|
23
24
|
|
24
|
-
export const
|
25
|
+
export const useCardFooterStyles_unstable = state => {
|
25
26
|
const styles = useStyles();
|
26
27
|
state.root.className = mergeClasses(cardFooterClassName, styles.root, state.root.className);
|
27
28
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardFooter/useCardFooterStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,
|
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
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/CardHeader/CardHeader.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":""}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
2
|
export declare type CardHeaderSlots = {
|
3
|
-
root:
|
4
|
-
image:
|
5
|
-
content?:
|
6
|
-
header:
|
7
|
-
description:
|
8
|
-
action?:
|
3
|
+
root: Slot<'div'>;
|
4
|
+
image: Slot<'div'>;
|
5
|
+
content?: Slot<'div'>;
|
6
|
+
header: Slot<'span'>;
|
7
|
+
description: Slot<'span'>;
|
8
|
+
action?: Slot<'div'>;
|
9
9
|
};
|
10
10
|
/**
|
11
11
|
* CardHeader props
|
12
12
|
*/
|
13
|
-
export declare type CardHeaderProps = ComponentProps<CardHeaderSlots
|
13
|
+
export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
|
14
14
|
/**
|
15
15
|
* State used in rendering CardHeader
|
16
16
|
*/
|
@@ -2,4 +2,4 @@ import type { CardHeaderState } from './CardHeader.types';
|
|
2
2
|
/**
|
3
3
|
* Render the final JSX of CardHeader
|
4
4
|
*/
|
5
|
-
export declare const
|
5
|
+
export declare const renderCardHeader_unstable: (state: CardHeaderState) => JSX.Element;
|