@fluentui/react-card 9.7.0 → 9.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +31 -2
  2. package/dist/index.d.cts +485 -0
  3. package/lib/Card.js +1 -1
  4. package/lib/Card.js.map +1 -1
  5. package/lib/CardFooter.js +1 -1
  6. package/lib/CardFooter.js.map +1 -1
  7. package/lib/CardHeader.js +1 -1
  8. package/lib/CardHeader.js.map +1 -1
  9. package/lib/CardPreview.js +1 -1
  10. package/lib/CardPreview.js.map +1 -1
  11. package/lib/components/Card/Card.js +6 -6
  12. package/lib/components/Card/Card.js.map +1 -1
  13. package/lib/components/Card/CardContext.js +1 -1
  14. package/lib/components/Card/index.js +5 -5
  15. package/lib/components/Card/index.js.map +1 -1
  16. package/lib/components/Card/renderCard.js +2 -2
  17. package/lib/components/Card/renderCard.js.map +1 -1
  18. package/lib/components/Card/useCard.js +5 -5
  19. package/lib/components/Card/useCard.js.map +1 -1
  20. package/lib/components/Card/useCardSelectable.js +3 -3
  21. package/lib/components/Card/useCardStyles.styles.js +8 -10
  22. package/lib/components/Card/useCardStyles.styles.js.map +1 -1
  23. package/lib/components/Card/useCardStyles.styles.raw.js +8 -9
  24. package/lib/components/Card/useCardStyles.styles.raw.js.map +1 -1
  25. package/lib/components/CardFooter/CardFooter.js +5 -5
  26. package/lib/components/CardFooter/CardFooter.js.map +1 -1
  27. package/lib/components/CardFooter/index.js +4 -4
  28. package/lib/components/CardFooter/index.js.map +1 -1
  29. package/lib/components/CardFooter/renderCardFooter.js +1 -1
  30. package/lib/components/CardFooter/useCardFooter.js +1 -1
  31. package/lib/components/CardFooter/useCardFooterStyles.styles.js +1 -3
  32. package/lib/components/CardFooter/useCardFooterStyles.styles.js.map +1 -1
  33. package/lib/components/CardFooter/useCardFooterStyles.styles.raw.js +1 -2
  34. package/lib/components/CardFooter/useCardFooterStyles.styles.raw.js.map +1 -1
  35. package/lib/components/CardHeader/CardHeader.js +5 -5
  36. package/lib/components/CardHeader/CardHeader.js.map +1 -1
  37. package/lib/components/CardHeader/index.js +4 -4
  38. package/lib/components/CardHeader/index.js.map +1 -1
  39. package/lib/components/CardHeader/renderCardHeader.js +1 -1
  40. package/lib/components/CardHeader/useCardHeader.js +3 -3
  41. package/lib/components/CardHeader/useCardHeader.js.map +1 -1
  42. package/lib/components/CardHeader/useCardHeaderStyles.styles.js +1 -3
  43. package/lib/components/CardHeader/useCardHeaderStyles.styles.js.map +1 -1
  44. package/lib/components/CardHeader/useCardHeaderStyles.styles.raw.js +1 -2
  45. package/lib/components/CardHeader/useCardHeaderStyles.styles.raw.js.map +1 -1
  46. package/lib/components/CardPreview/CardPreview.js +5 -5
  47. package/lib/components/CardPreview/CardPreview.js.map +1 -1
  48. package/lib/components/CardPreview/index.js +4 -4
  49. package/lib/components/CardPreview/index.js.map +1 -1
  50. package/lib/components/CardPreview/renderCardPreview.js +1 -1
  51. package/lib/components/CardPreview/useCardPreview.js +3 -3
  52. package/lib/components/CardPreview/useCardPreview.js.map +1 -1
  53. package/lib/components/CardPreview/useCardPreviewStyles.styles.js +1 -3
  54. package/lib/components/CardPreview/useCardPreviewStyles.styles.js.map +1 -1
  55. package/lib/components/CardPreview/useCardPreviewStyles.styles.raw.js +1 -2
  56. package/lib/components/CardPreview/useCardPreviewStyles.styles.raw.js.map +1 -1
  57. package/lib/index.js +5 -5
  58. package/lib/index.js.map +1 -1
  59. package/lib-commonjs/{Card.js → Card.cjs} +1 -1
  60. package/lib-commonjs/{Card.js.map → Card.cjs.map} +1 -1
  61. package/lib-commonjs/{CardFooter.js → CardFooter.cjs} +1 -1
  62. package/lib-commonjs/{CardFooter.js.map → CardFooter.cjs.map} +1 -1
  63. package/lib-commonjs/{CardHeader.js → CardHeader.cjs} +1 -1
  64. package/lib-commonjs/{CardHeader.js.map → CardHeader.cjs.map} +1 -1
  65. package/lib-commonjs/{CardPreview.js → CardPreview.cjs} +1 -1
  66. package/lib-commonjs/{CardPreview.js.map → CardPreview.cjs.map} +1 -1
  67. package/lib-commonjs/components/Card/{Card.js → Card.cjs} +4 -4
  68. package/lib-commonjs/components/Card/{Card.js.map → Card.cjs.map} +1 -1
  69. package/lib-commonjs/components/Card/{index.js → index.cjs} +5 -5
  70. package/lib-commonjs/components/Card/{index.js.map → index.cjs.map} +1 -1
  71. package/lib-commonjs/components/Card/{renderCard.js → renderCard.cjs} +1 -1
  72. package/lib-commonjs/components/Card/{renderCard.js.map → renderCard.cjs.map} +1 -1
  73. package/lib-commonjs/components/Card/{useCard.js → useCard.cjs} +2 -2
  74. package/lib-commonjs/components/Card/{useCard.js.map → useCard.cjs.map} +1 -1
  75. package/lib-commonjs/components/Card/{useCardStyles.styles.js → useCardStyles.styles.cjs} +0 -1
  76. package/lib-commonjs/components/Card/useCardStyles.styles.cjs.map +1 -0
  77. package/lib-commonjs/components/Card/{useCardStyles.styles.raw.js → useCardStyles.styles.raw.cjs} +3 -4
  78. package/lib-commonjs/components/Card/useCardStyles.styles.raw.cjs.map +1 -0
  79. package/lib-commonjs/components/CardFooter/{CardFooter.js → CardFooter.cjs} +3 -3
  80. package/lib-commonjs/components/CardFooter/{CardFooter.js.map → CardFooter.cjs.map} +1 -1
  81. package/lib-commonjs/components/CardFooter/{index.js → index.cjs} +4 -4
  82. package/lib-commonjs/components/CardFooter/{index.js.map → index.cjs.map} +1 -1
  83. package/lib-commonjs/components/CardFooter/{useCardFooterStyles.styles.js → useCardFooterStyles.styles.cjs} +0 -1
  84. package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.cjs.map +1 -0
  85. package/lib-commonjs/components/CardFooter/{useCardFooterStyles.styles.raw.js → useCardFooterStyles.styles.raw.cjs} +0 -1
  86. package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.raw.cjs.map +1 -0
  87. package/lib-commonjs/components/CardHeader/{CardHeader.js → CardHeader.cjs} +3 -3
  88. package/lib-commonjs/components/CardHeader/{CardHeader.js.map → CardHeader.cjs.map} +1 -1
  89. package/lib-commonjs/components/CardHeader/{index.js → index.cjs} +4 -4
  90. package/lib-commonjs/components/CardHeader/{index.js.map → index.cjs.map} +1 -1
  91. package/lib-commonjs/components/CardHeader/{useCardHeader.js → useCardHeader.cjs} +1 -1
  92. package/lib-commonjs/components/CardHeader/{useCardHeader.js.map → useCardHeader.cjs.map} +1 -1
  93. package/lib-commonjs/components/CardHeader/{useCardHeaderStyles.styles.js → useCardHeaderStyles.styles.cjs} +0 -1
  94. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.cjs.map +1 -0
  95. package/lib-commonjs/components/CardHeader/{useCardHeaderStyles.styles.raw.js → useCardHeaderStyles.styles.raw.cjs} +0 -1
  96. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.raw.cjs.map +1 -0
  97. package/lib-commonjs/components/CardPreview/{CardPreview.js → CardPreview.cjs} +3 -3
  98. package/lib-commonjs/components/CardPreview/{CardPreview.js.map → CardPreview.cjs.map} +1 -1
  99. package/lib-commonjs/components/CardPreview/{index.js → index.cjs} +4 -4
  100. package/lib-commonjs/components/CardPreview/{index.js.map → index.cjs.map} +1 -1
  101. package/lib-commonjs/components/CardPreview/{useCardPreview.js → useCardPreview.cjs} +1 -1
  102. package/lib-commonjs/components/CardPreview/{useCardPreview.js.map → useCardPreview.cjs.map} +1 -1
  103. package/lib-commonjs/components/CardPreview/{useCardPreviewStyles.styles.js → useCardPreviewStyles.styles.cjs} +0 -1
  104. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.cjs.map +1 -0
  105. package/lib-commonjs/components/CardPreview/{useCardPreviewStyles.styles.raw.js → useCardPreviewStyles.styles.raw.cjs} +0 -1
  106. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.raw.cjs.map +1 -0
  107. package/lib-commonjs/{index.js → index.cjs} +4 -4
  108. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  109. package/package.json +20 -15
  110. package/lib-commonjs/components/Card/useCardStyles.styles.js.map +0 -1
  111. package/lib-commonjs/components/Card/useCardStyles.styles.raw.js.map +0 -1
  112. package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.js.map +0 -1
  113. package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.raw.js.map +0 -1
  114. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.js.map +0 -1
  115. package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.raw.js.map +0 -1
  116. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.js.map +0 -1
  117. package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.raw.js.map +0 -1
  118. /package/lib-commonjs/components/Card/{Card.types.js → Card.types.cjs} +0 -0
  119. /package/lib-commonjs/components/Card/{Card.types.js.map → Card.types.cjs.map} +0 -0
  120. /package/lib-commonjs/components/Card/{CardContext.js → CardContext.cjs} +0 -0
  121. /package/lib-commonjs/components/Card/{CardContext.js.map → CardContext.cjs.map} +0 -0
  122. /package/lib-commonjs/components/Card/{useCardContextValue.js → useCardContextValue.cjs} +0 -0
  123. /package/lib-commonjs/components/Card/{useCardContextValue.js.map → useCardContextValue.cjs.map} +0 -0
  124. /package/lib-commonjs/components/Card/{useCardSelectable.js → useCardSelectable.cjs} +0 -0
  125. /package/lib-commonjs/components/Card/{useCardSelectable.js.map → useCardSelectable.cjs.map} +0 -0
  126. /package/lib-commonjs/components/CardFooter/{CardFooter.types.js → CardFooter.types.cjs} +0 -0
  127. /package/lib-commonjs/components/CardFooter/{CardFooter.types.js.map → CardFooter.types.cjs.map} +0 -0
  128. /package/lib-commonjs/components/CardFooter/{renderCardFooter.js → renderCardFooter.cjs} +0 -0
  129. /package/lib-commonjs/components/CardFooter/{renderCardFooter.js.map → renderCardFooter.cjs.map} +0 -0
  130. /package/lib-commonjs/components/CardFooter/{useCardFooter.js → useCardFooter.cjs} +0 -0
  131. /package/lib-commonjs/components/CardFooter/{useCardFooter.js.map → useCardFooter.cjs.map} +0 -0
  132. /package/lib-commonjs/components/CardHeader/{CardHeader.types.js → CardHeader.types.cjs} +0 -0
  133. /package/lib-commonjs/components/CardHeader/{CardHeader.types.js.map → CardHeader.types.cjs.map} +0 -0
  134. /package/lib-commonjs/components/CardHeader/{renderCardHeader.js → renderCardHeader.cjs} +0 -0
  135. /package/lib-commonjs/components/CardHeader/{renderCardHeader.js.map → renderCardHeader.cjs.map} +0 -0
  136. /package/lib-commonjs/components/CardPreview/{CardPreview.types.js → CardPreview.types.cjs} +0 -0
  137. /package/lib-commonjs/components/CardPreview/{CardPreview.types.js.map → CardPreview.types.cjs.map} +0 -0
  138. /package/lib-commonjs/components/CardPreview/{renderCardPreview.js → renderCardPreview.cjs} +0 -0
  139. /package/lib-commonjs/components/CardPreview/{renderCardPreview.js.map → renderCardPreview.cjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,41 @@
1
1
  # Change Log - @fluentui/react-card
2
2
 
3
- This log was last generated on Tue, 26 May 2026 09:34:09 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 11 Aug 2026 17:16:03 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.7.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.7.2)
8
+
9
+ Tue, 11 Aug 2026 17:16:03 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.7.1..@fluentui/react-card_v9.7.2)
11
+
12
+ ### Patches
13
+
14
+ - Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
15
+ - Bump @fluentui/keyboard-keys to v9.0.9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v9.4.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.26.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-tabster to v9.26.17 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-text to v9.6.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
+ - Bump @fluentui/react-theme to v9.2.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
+ - Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
22
+
23
+ ## [9.7.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.7.1)
24
+
25
+ Wed, 24 Jun 2026 11:10:09 GMT
26
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.7.0..@fluentui/react-card_v9.7.1)
27
+
28
+ ### Patches
29
+
30
+ - fix: remove redundant use no memo directives, and add justification to valid ones ([PR #36224](https://github.com/microsoft/fluentui/pull/36224) by martinhochel@microsoft.com)
31
+ - Bump @fluentui/react-jsx-runtime to v9.4.4 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
32
+ - Bump @fluentui/react-tabster to v9.26.16 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
33
+ - Bump @fluentui/react-text to v9.6.18 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
34
+ - Bump @fluentui/react-utilities to v9.26.5 ([commit](https://github.com/microsoft/fluentui/commit/a4b871ca80c1f16f35ab4229def4fe02be7f30ea) by beachball)
35
+
7
36
  ## [9.7.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.7.0)
8
37
 
9
- Tue, 26 May 2026 09:34:09 GMT
38
+ Tue, 26 May 2026 09:39:47 GMT
10
39
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.6.1..@fluentui/react-card_v9.7.0)
11
40
 
12
41
  ### Minor changes
@@ -0,0 +1,485 @@
1
+ import type { ComponentProps } from '@fluentui/react-utilities';
2
+ import type { ComponentState } from '@fluentui/react-utilities';
3
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
+ import type { JSXElement } from '@fluentui/react-utilities';
5
+ import * as React_2 from 'react';
6
+ import type { Slot } from '@fluentui/react-utilities';
7
+ import type { SlotClassNames } from '@fluentui/react-utilities';
8
+
9
+ /**
10
+ * A card provides scaffolding for hosting actions and content for a single topic.
11
+ */
12
+ export declare const Card: ForwardRefComponent<CardProps>;
13
+
14
+ export declare type CardBaseProps = Omit<CardProps, 'appearance' | 'orientation' | 'size'> & {
15
+ /**
16
+ * Predicate function to determine whether the card's selection action should be restricted.
17
+ */
18
+ shouldRestrictTriggerAction?: (event: CardOnSelectionChangeEvent) => boolean;
19
+ };
20
+
21
+ export declare type CardBaseState = Omit<CardState, 'appearance' | 'orientation' | 'size'>;
22
+
23
+ /**
24
+ * Static CSS class names used internally for the component slots.
25
+ */
26
+ export declare const cardClassNames: SlotClassNames<CardSlots>;
27
+
28
+ /**
29
+ * Data shared between card components
30
+ */
31
+ export declare interface CardContextValue {
32
+ selectableA11yProps: {
33
+ referenceId?: string;
34
+ setReferenceId: (referenceId: string) => void;
35
+ referenceLabel?: string;
36
+ setReferenceLabel: (referenceLabel: string) => void;
37
+ };
38
+ }
39
+
40
+ /**
41
+ * CSS variable names used internally for uniform styling in Card.
42
+ */
43
+ export declare const cardCSSVars: {
44
+ cardSizeVar: string;
45
+ cardBorderRadiusVar: string;
46
+ };
47
+
48
+ /**
49
+ * Component to render Button actions in a Card component.
50
+ */
51
+ export declare const CardFooter: ForwardRefComponent<CardFooterProps>;
52
+
53
+ /**
54
+ * CardFooter base props (same as CardFooterProps since CardFooter has no design props)
55
+ */
56
+ export declare type CardFooterBaseProps = CardFooterProps;
57
+
58
+ /**
59
+ * CardFooter base state (same as CardFooterState since CardFooter has no design props)
60
+ */
61
+ export declare type CardFooterBaseState = CardFooterState;
62
+
63
+ /**
64
+ * Static CSS class names used internally for the component slots.
65
+ */
66
+ export declare const cardFooterClassNames: SlotClassNames<CardFooterSlots>;
67
+
68
+ /**
69
+ * CardFooter component props.
70
+ */
71
+ export declare type CardFooterProps = ComponentProps<CardFooterSlots>;
72
+
73
+ /**
74
+ * Slots available in the CardFooter component.
75
+ */
76
+ export declare type CardFooterSlots = {
77
+ /**
78
+ * Root element of the component.
79
+ */
80
+ root: Slot<'div'>;
81
+ /**
82
+ * Container that renders on the far end of the footer, used for action buttons.
83
+ */
84
+ action?: Slot<'div'>;
85
+ };
86
+
87
+ /**
88
+ * State used in rendering CardFooter.
89
+ */
90
+ export declare type CardFooterState = ComponentState<CardFooterSlots>;
91
+
92
+ /**
93
+ * Component to render an image, text and an action in a Card component.
94
+ */
95
+ export declare const CardHeader: ForwardRefComponent<CardHeaderProps>;
96
+
97
+ /**
98
+ * CardHeader base props (same as CardHeaderProps since CardHeader has no design props)
99
+ */
100
+ export declare type CardHeaderBaseProps = CardHeaderProps;
101
+
102
+ /**
103
+ * CardHeader base state (same as CardHeaderState since CardHeader has no design props)
104
+ */
105
+ export declare type CardHeaderBaseState = CardHeaderState;
106
+
107
+ /**
108
+ * Static CSS class names used internally for the component slots.
109
+ */
110
+ export declare const cardHeaderClassNames: SlotClassNames<CardHeaderSlots>;
111
+
112
+ /**
113
+ * CSS variable names used internally for uniform styling in CardHeader.
114
+ */
115
+ export declare const cardHeaderCSSVars: {
116
+ cardHeaderGapVar: string;
117
+ };
118
+
119
+ /**
120
+ * CardHeader component props.
121
+ */
122
+ export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
123
+
124
+ /**
125
+ * Slots available in the CardHeader component.
126
+ */
127
+ export declare type CardHeaderSlots = {
128
+ /**
129
+ * Root element of the component.
130
+ */
131
+ root: Slot<'div'>;
132
+ /**
133
+ * Element used to render an image or avatar related to the card.
134
+ */
135
+ image: Slot<'div', 'img'>;
136
+ /**
137
+ * Element used to render the main header title.
138
+ */
139
+ header: Slot<'div'>;
140
+ /**
141
+ * Element used to render short descriptions related to the title.
142
+ */
143
+ description: Slot<'div'>;
144
+ /**
145
+ * Container that renders on the far end of the footer, used for action buttons.
146
+ */
147
+ action?: Slot<'div'>;
148
+ };
149
+
150
+ /**
151
+ * State used in rendering CardHeader.
152
+ */
153
+ export declare type CardHeaderState = ComponentState<CardHeaderSlots>;
154
+
155
+ /**
156
+ * Data sent from the selection events on a selectable card.
157
+ */
158
+ declare type CardOnSelectData = {
159
+ selected: boolean;
160
+ };
161
+
162
+ /**
163
+ * Card selected event type
164
+ *
165
+ * This event is fired when a selectable card changes its selection state.
166
+ */
167
+ export declare type CardOnSelectionChangeEvent = React_2.MouseEvent | React_2.KeyboardEvent | React_2.ChangeEvent;
168
+
169
+ /**
170
+ * Component to render image previews of documents or articles in a Card component.
171
+ */
172
+ export declare const CardPreview: ForwardRefComponent<CardPreviewProps>;
173
+
174
+ /**
175
+ * CardPreview base props (same as CardPreviewProps since CardPreview has no design props)
176
+ */
177
+ export declare type CardPreviewBaseProps = CardPreviewProps;
178
+
179
+ /**
180
+ * CardPreview base state (same as CardPreviewState since CardPreview has no design props)
181
+ */
182
+ export declare type CardPreviewBaseState = CardPreviewState;
183
+
184
+ /**
185
+ * Static CSS class names used internally for the component slots.
186
+ */
187
+ export declare const cardPreviewClassNames: SlotClassNames<CardPreviewSlots>;
188
+
189
+ /**
190
+ * CardPreview component props.
191
+ */
192
+ export declare type CardPreviewProps = ComponentProps<CardPreviewSlots>;
193
+
194
+ /**
195
+ * Slots available in the Card component.
196
+ */
197
+ export declare type CardPreviewSlots = {
198
+ /**
199
+ * Root element of the component.
200
+ */
201
+ root: Slot<'div'>;
202
+ /**
203
+ * Container that holds a logo related to the image preview provided.
204
+ */
205
+ logo?: Slot<'div', 'img'>;
206
+ };
207
+
208
+ /**
209
+ * State used in rendering CardPreview.
210
+ */
211
+ export declare type CardPreviewState = ComponentState<CardPreviewSlots>;
212
+
213
+ /**
214
+ * Card component props.
215
+ */
216
+ export declare type CardProps = ComponentProps<CardSlots> & {
217
+ /**
218
+ * Sets the appearance of the card.
219
+ *
220
+ * `filled`
221
+ * The card will have a shadow, border and background color.
222
+ *
223
+ * `filled-alternative`
224
+ * This appearance is similar to `filled`, but the background color will be a little darker.
225
+ *
226
+ * `outline`
227
+ * This appearance is similar to `filled`, but the background color will be transparent and no shadow applied.
228
+ *
229
+ * `subtle`
230
+ * This appearance is similar to `filled-alternative`, but no border is applied.
231
+ *
232
+ * @default 'filled'
233
+ */
234
+ appearance?: 'filled' | 'filled-alternative' | 'outline' | 'subtle';
235
+ /**
236
+ * Sets the focus behavior for the card.
237
+ *
238
+ * `off`
239
+ * The card will not focusable.
240
+ *
241
+ * `no-tab`
242
+ * This behaviour traps the focus inside of the Card when pressing the Enter key and will only release focus when
243
+ * pressing the Escape key.
244
+ *
245
+ * `tab-exit`
246
+ * This behaviour traps the focus inside of the Card when pressing the Enter key but will release focus when pressing
247
+ * the Tab key on the last inner element.
248
+ *
249
+ * `tab-only`
250
+ * This behaviour will cycle through all elements inside of the Card when pressing the Tab key and then release focus
251
+ * after the last inner element.
252
+ *
253
+ * @default 'off'
254
+ */
255
+ focusMode?: 'off' | 'no-tab' | 'tab-exit' | 'tab-only';
256
+ /**
257
+ * Defines the orientation of the card.
258
+ *
259
+ * @default 'vertical'
260
+ */
261
+ orientation?: 'horizontal' | 'vertical';
262
+ /**
263
+ * Controls the card's border radius and padding between inner elements.
264
+ *
265
+ * @default 'medium'
266
+ */
267
+ size?: 'small' | 'medium' | 'large';
268
+ /**
269
+ * Defines the controlled selected state of the card.
270
+ *
271
+ * @default false
272
+ */
273
+ selected?: boolean;
274
+ /**
275
+ * Defines whether the card is initially in a selected state when rendered.
276
+ *
277
+ * @default false
278
+ */
279
+ defaultSelected?: boolean;
280
+ /**
281
+ * Callback to be called when the selected state value changes.
282
+ */
283
+ onSelectionChange?: (event: CardOnSelectionChangeEvent, data: CardOnSelectData) => void;
284
+ /**
285
+ * Makes the card and card selection disabled (not propagated to children).
286
+ *
287
+ * @default false
288
+ */
289
+ disabled?: boolean;
290
+ };
291
+
292
+ /**
293
+ * @internal
294
+ */
295
+ export declare const CardProvider: React_2.Provider<CardContextValue | undefined>;
296
+
297
+ /**
298
+ * Slots available in the Card component.
299
+ */
300
+ export declare type CardSlots = {
301
+ /**
302
+ * Root element of the component.
303
+ */
304
+ root: Slot<'div'>;
305
+ /**
306
+ * Floating action that can be rendered on the top-right of a card. Often used together with
307
+ * `selected`, `defaultSelected`, and `onSelectionChange` props
308
+ */
309
+ floatingAction?: Slot<'div'>;
310
+ /**
311
+ * The internal checkbox element that renders when the card is selectable.
312
+ */
313
+ checkbox?: Slot<'input'>;
314
+ };
315
+
316
+ /**
317
+ * State used in rendering Card.
318
+ */
319
+ export declare type CardState = ComponentState<CardSlots> & CardContextValue & Required<Pick<CardProps, 'appearance' | 'orientation' | 'size'> & {
320
+ /**
321
+ * Represents a card that contains interactive events (MouseEvents) or is a button/a tag.
322
+ *
323
+ * @default false
324
+ */
325
+ interactive: boolean;
326
+ /**
327
+ * Represents a selectable card.
328
+ *
329
+ * @default false
330
+ */
331
+ selectable: boolean;
332
+ /**
333
+ * Defines whether the card is currently selected.
334
+ *
335
+ * @default false
336
+ */
337
+ selected: boolean;
338
+ /**
339
+ * Defines whether the card internal checkbox is currently focused.
340
+ *
341
+ * @default false
342
+ */
343
+ selectFocused: boolean;
344
+ /**
345
+ * Defines whether the card is disabled.
346
+ *
347
+ * @default false
348
+ */
349
+ disabled: boolean;
350
+ }>;
351
+
352
+ /**
353
+ * Render the final JSX of Card.
354
+ */
355
+ export declare const renderCard_unstable: (state: CardBaseState, cardContextValue: CardContextValue) => JSXElement;
356
+
357
+ /**
358
+ * Render the final JSX of CardFooter.
359
+ */
360
+ export declare const renderCardFooter_unstable: (state: CardFooterBaseState) => JSXElement;
361
+
362
+ /**
363
+ * Render the final JSX of CardHeader.
364
+ */
365
+ export declare const renderCardHeader_unstable: (state: CardHeaderBaseState) => JSXElement;
366
+
367
+ /**
368
+ * Render the final JSX of CardPreview.
369
+ */
370
+ export declare const renderCardPreview_unstable: (state: CardPreviewBaseState) => JSXElement;
371
+
372
+ /**
373
+ * Create the state required to render Card.
374
+ *
375
+ * The returned state can be modified with hooks such as useCardStyles_unstable,
376
+ * before being passed to renderCard_unstable.
377
+ *
378
+ * @param props - props from this instance of Card
379
+ * @param ref - reference to the root element of Card
380
+ */
381
+ export declare const useCard_unstable: (props: CardProps, ref: React_2.Ref<HTMLDivElement>) => CardState;
382
+
383
+ /**
384
+ * Base hook for Card component, which manages state related to interactivity, selection,
385
+ * ARIA attributes, and slot structure without design props or focus management.
386
+ *
387
+ * This hook is intentionally free of `@fluentui/react-tabster` so that it can be
388
+ * consumed by headless component packages. Focus management (focusable group
389
+ * attributes, focus-within, focus-restriction predicate) is layered on top in
390
+ * `useCard_unstable`.
391
+ *
392
+ * @param props - props from this instance of Card
393
+ * @param ref - reference to the root element of Card
394
+ * @param options - optional behavior overrides such as a focus-aware restriction predicate
395
+ */
396
+ export declare const useCardBase_unstable: (props: CardBaseProps, ref: React_2.Ref<HTMLDivElement>) => CardBaseState;
397
+
398
+ /**
399
+ * @internal
400
+ */
401
+ export declare const useCardContext_unstable: () => CardContextValue;
402
+
403
+ /**
404
+ * Create the state required to render CardFooter.
405
+ *
406
+ * The returned state can be modified with hooks such as useCardFooterStyles_unstable,
407
+ * before being passed to renderCardFooter_unstable.
408
+ *
409
+ * @param props - props from this instance of CardFooter
410
+ * @param ref - reference to root HTMLElement of CardFooter
411
+ */
412
+ export declare const useCardFooter_unstable: (props: CardFooterProps, ref: React_2.Ref<HTMLElement>) => CardFooterState;
413
+
414
+ /**
415
+ * Base hook for CardFooter component, which manages state related to slots structure.
416
+ * Note: CardFooter has no design props, so this is equivalent to useCardFooter_unstable.
417
+ *
418
+ * @param props - props from this instance of CardFooter
419
+ * @param ref - reference to root HTMLElement of CardFooter
420
+ */
421
+ export declare const useCardFooterBase_unstable: (props: CardFooterBaseProps, ref: React_2.Ref<HTMLElement>) => CardFooterBaseState;
422
+
423
+ /**
424
+ * Apply styling to the CardFooter slots based on the state.
425
+ */
426
+ export declare const useCardFooterStyles_unstable: (state: CardFooterState) => CardFooterState;
427
+
428
+ /**
429
+ * Create the state required to render CardHeader.
430
+ *
431
+ * The returned state can be modified with hooks such as useCardHeaderStyles_unstable,
432
+ * before being passed to renderCardHeader_unstable.
433
+ *
434
+ * @param props - props from this instance of CardHeader
435
+ * @param ref - reference to root HTMLElement of CardHeader
436
+ */
437
+ export declare const useCardHeader_unstable: (props: CardHeaderProps, ref: React_2.Ref<HTMLElement>) => CardHeaderState;
438
+
439
+ /**
440
+ * Base hook for CardHeader component, which manages state related to slots structure
441
+ * and the card's selectable accessibility properties.
442
+ * Note: CardHeader has no design props, so this is equivalent to useCardHeader_unstable.
443
+ *
444
+ * @param props - props from this instance of CardHeader
445
+ * @param ref - reference to root HTMLElement of CardHeader
446
+ */
447
+ export declare const useCardHeaderBase_unstable: (props: CardHeaderBaseProps, ref: React_2.Ref<HTMLElement>) => CardHeaderBaseState;
448
+
449
+ /**
450
+ * Apply styling to the CardHeader slots based on the state.
451
+ */
452
+ export declare const useCardHeaderStyles_unstable: (state: CardHeaderState) => CardHeaderState;
453
+
454
+ /**
455
+ * Create the state required to render CardPreview.
456
+ *
457
+ * The returned state can be modified with hooks such as useCardPreviewStyles_unstable,
458
+ * before being passed to renderCardPreview_unstable.
459
+ *
460
+ * @param props - props from this instance of CardPreview
461
+ * @param ref - reference to root HTMLElement of CardPreview
462
+ */
463
+ export declare const useCardPreview_unstable: (props: CardPreviewProps, ref: React_2.Ref<HTMLElement>) => CardPreviewState;
464
+
465
+ /**
466
+ * Base hook for CardPreview component, which manages state related to slots structure
467
+ * and the card's selectable accessibility label.
468
+ * Note: CardPreview has no design props, so this is equivalent to useCardPreview_unstable.
469
+ *
470
+ * @param props - props from this instance of CardPreview
471
+ * @param ref - reference to root HTMLElement of CardPreview
472
+ */
473
+ export declare const useCardPreviewBase_unstable: (props: CardPreviewBaseProps, ref: React_2.Ref<HTMLElement>) => CardPreviewBaseState;
474
+
475
+ /**
476
+ * Apply styling to the CardPreview slots based on the state.
477
+ */
478
+ export declare const useCardPreviewStyles_unstable: (state: CardPreviewState) => CardPreviewState;
479
+
480
+ /**
481
+ * Apply styling to the Card slots based on the state.
482
+ */
483
+ export declare const useCardStyles_unstable: (state: CardState) => CardState;
484
+
485
+ export { }
package/lib/Card.js CHANGED
@@ -1 +1 @@
1
- export { Card, CardProvider, cardCSSVars, cardClassNames, cardContextDefaultValue, renderCard_unstable, useCardContext_unstable, useCardStyles_unstable, useCard_unstable, useCardBase_unstable } from './components/Card/index';
1
+ export { Card, CardProvider, cardCSSVars, cardClassNames, cardContextDefaultValue, renderCard_unstable, useCardContext_unstable, useCardStyles_unstable, useCard_unstable, useCardBase_unstable } from "./components/Card/index.js";
package/lib/Card.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Card.ts"],"sourcesContent":["export type {\n CardContextValue,\n CardOnSelectData,\n CardOnSelectionChangeEvent,\n CardProps,\n CardSlots,\n CardState,\n CardBaseProps,\n CardBaseState,\n} from './components/Card/index';\nexport {\n Card,\n CardProvider,\n cardCSSVars,\n cardClassNames,\n cardContextDefaultValue,\n renderCard_unstable,\n useCardContext_unstable,\n useCardStyles_unstable,\n useCard_unstable,\n useCardBase_unstable,\n} from './components/Card/index';\n"],"names":["Card","CardProvider","cardCSSVars","cardClassNames","cardContextDefaultValue","renderCard_unstable","useCardContext_unstable","useCardStyles_unstable","useCard_unstable","useCardBase_unstable"],"mappings":"AAUA,SACEA,IAAI,EACJC,YAAY,EACZC,WAAW,EACXC,cAAc,EACdC,uBAAuB,EACvBC,mBAAmB,EACnBC,uBAAuB,EACvBC,sBAAsB,EACtBC,gBAAgB,EAChBC,oBAAoB,QACf,0BAA0B"}
1
+ {"version":3,"sources":["../src/Card.ts"],"sourcesContent":["export type {\n CardContextValue,\n CardOnSelectData,\n CardOnSelectionChangeEvent,\n CardProps,\n CardSlots,\n CardState,\n CardBaseProps,\n CardBaseState,\n} from './components/Card/index';\nexport {\n Card,\n CardProvider,\n cardCSSVars,\n cardClassNames,\n cardContextDefaultValue,\n renderCard_unstable,\n useCardContext_unstable,\n useCardStyles_unstable,\n useCard_unstable,\n useCardBase_unstable,\n} from './components/Card/index';\n"],"names":["Card","CardProvider","cardCSSVars","cardClassNames","cardContextDefaultValue","renderCard_unstable","useCardContext_unstable","useCardStyles_unstable","useCard_unstable","useCardBase_unstable"],"mappings":"AAUA,SACEA,IAAI,EACJC,YAAY,EACZC,WAAW,EACXC,cAAc,EACdC,uBAAuB,EACvBC,mBAAmB,EACnBC,uBAAuB,EACvBC,sBAAsB,EACtBC,gBAAgB,EAChBC,oBAAoB,QACf,6BAA0B"}
package/lib/CardFooter.js CHANGED
@@ -1 +1 @@
1
- export { CardFooter, cardFooterClassNames, renderCardFooter_unstable, useCardFooterStyles_unstable, useCardFooter_unstable, useCardFooterBase_unstable } from './components/CardFooter/index';
1
+ export { CardFooter, cardFooterClassNames, renderCardFooter_unstable, useCardFooterStyles_unstable, useCardFooter_unstable, useCardFooterBase_unstable } from "./components/CardFooter/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/CardFooter.ts"],"sourcesContent":["export type {\n CardFooterProps,\n CardFooterSlots,\n CardFooterState,\n CardFooterBaseProps,\n CardFooterBaseState,\n} from './components/CardFooter/index';\nexport {\n CardFooter,\n cardFooterClassNames,\n renderCardFooter_unstable,\n useCardFooterStyles_unstable,\n useCardFooter_unstable,\n useCardFooterBase_unstable,\n} from './components/CardFooter/index';\n"],"names":["CardFooter","cardFooterClassNames","renderCardFooter_unstable","useCardFooterStyles_unstable","useCardFooter_unstable","useCardFooterBase_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,gCAAgC"}
1
+ {"version":3,"sources":["../src/CardFooter.ts"],"sourcesContent":["export type {\n CardFooterProps,\n CardFooterSlots,\n CardFooterState,\n CardFooterBaseProps,\n CardFooterBaseState,\n} from './components/CardFooter/index';\nexport {\n CardFooter,\n cardFooterClassNames,\n renderCardFooter_unstable,\n useCardFooterStyles_unstable,\n useCardFooter_unstable,\n useCardFooterBase_unstable,\n} from './components/CardFooter/index';\n"],"names":["CardFooter","cardFooterClassNames","renderCardFooter_unstable","useCardFooterStyles_unstable","useCardFooter_unstable","useCardFooterBase_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,mCAAgC"}
package/lib/CardHeader.js CHANGED
@@ -1 +1 @@
1
- export { CardHeader, cardHeaderCSSVars, cardHeaderClassNames, renderCardHeader_unstable, useCardHeaderStyles_unstable, useCardHeader_unstable, useCardHeaderBase_unstable } from './components/CardHeader/index';
1
+ export { CardHeader, cardHeaderCSSVars, cardHeaderClassNames, renderCardHeader_unstable, useCardHeaderStyles_unstable, useCardHeader_unstable, useCardHeaderBase_unstable } from "./components/CardHeader/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/CardHeader.ts"],"sourcesContent":["export type {\n CardHeaderProps,\n CardHeaderSlots,\n CardHeaderState,\n CardHeaderBaseProps,\n CardHeaderBaseState,\n} from './components/CardHeader/index';\nexport {\n CardHeader,\n cardHeaderCSSVars,\n cardHeaderClassNames,\n renderCardHeader_unstable,\n useCardHeaderStyles_unstable,\n useCardHeader_unstable,\n useCardHeaderBase_unstable,\n} from './components/CardHeader/index';\n"],"names":["CardHeader","cardHeaderCSSVars","cardHeaderClassNames","renderCardHeader_unstable","useCardHeaderStyles_unstable","useCardHeader_unstable","useCardHeaderBase_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,iBAAiB,EACjBC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,gCAAgC"}
1
+ {"version":3,"sources":["../src/CardHeader.ts"],"sourcesContent":["export type {\n CardHeaderProps,\n CardHeaderSlots,\n CardHeaderState,\n CardHeaderBaseProps,\n CardHeaderBaseState,\n} from './components/CardHeader/index';\nexport {\n CardHeader,\n cardHeaderCSSVars,\n cardHeaderClassNames,\n renderCardHeader_unstable,\n useCardHeaderStyles_unstable,\n useCardHeader_unstable,\n useCardHeaderBase_unstable,\n} from './components/CardHeader/index';\n"],"names":["CardHeader","cardHeaderCSSVars","cardHeaderClassNames","renderCardHeader_unstable","useCardHeaderStyles_unstable","useCardHeader_unstable","useCardHeaderBase_unstable"],"mappings":"AAOA,SACEA,UAAU,EACVC,iBAAiB,EACjBC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,mCAAgC"}
@@ -1 +1 @@
1
- export { CardPreview, cardPreviewClassNames, renderCardPreview_unstable, useCardPreviewStyles_unstable, useCardPreview_unstable, useCardPreviewBase_unstable } from './components/CardPreview/index';
1
+ export { CardPreview, cardPreviewClassNames, renderCardPreview_unstable, useCardPreviewStyles_unstable, useCardPreview_unstable, useCardPreviewBase_unstable } from "./components/CardPreview/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/CardPreview.ts"],"sourcesContent":["export type {\n CardPreviewProps,\n CardPreviewSlots,\n CardPreviewState,\n CardPreviewBaseProps,\n CardPreviewBaseState,\n} from './components/CardPreview/index';\nexport {\n CardPreview,\n cardPreviewClassNames,\n renderCardPreview_unstable,\n useCardPreviewStyles_unstable,\n useCardPreview_unstable,\n useCardPreviewBase_unstable,\n} from './components/CardPreview/index';\n"],"names":["CardPreview","cardPreviewClassNames","renderCardPreview_unstable","useCardPreviewStyles_unstable","useCardPreview_unstable","useCardPreviewBase_unstable"],"mappings":"AAOA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,EACvBC,2BAA2B,QACtB,iCAAiC"}
1
+ {"version":3,"sources":["../src/CardPreview.ts"],"sourcesContent":["export type {\n CardPreviewProps,\n CardPreviewSlots,\n CardPreviewState,\n CardPreviewBaseProps,\n CardPreviewBaseState,\n} from './components/CardPreview/index';\nexport {\n CardPreview,\n cardPreviewClassNames,\n renderCardPreview_unstable,\n useCardPreviewStyles_unstable,\n useCardPreview_unstable,\n useCardPreviewBase_unstable,\n} from './components/CardPreview/index';\n"],"names":["CardPreview","cardPreviewClassNames","renderCardPreview_unstable","useCardPreviewStyles_unstable","useCardPreview_unstable","useCardPreviewBase_unstable"],"mappings":"AAOA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,uBAAuB,EACvBC,2BAA2B,QACtB,oCAAiC"}
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import * as React from 'react';
3
- import { useCard_unstable } from './useCard';
4
- import { renderCard_unstable } from './renderCard';
5
- import { useCardStyles_unstable } from './useCardStyles.styles';
6
- import { useCardContextValue } from './useCardContextValue';
7
- import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
2
+ import * as React from "react";
3
+ import { useCard_unstable } from "./useCard.js";
4
+ import { renderCard_unstable } from "./renderCard.js";
5
+ import { useCardStyles_unstable } from "./useCardStyles.styles.js";
6
+ import { useCardContextValue } from "./useCardContextValue.js";
7
+ import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
8
8
  /**
9
9
  * A card provides scaffolding for hosting actions and content for a single topic.
10
10
  */ export const Card = /*#__PURE__*/ React.forwardRef((props, ref)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Card/Card.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useCard_unstable } from './useCard';\nimport { renderCard_unstable } from './renderCard';\nimport { useCardStyles_unstable } from './useCardStyles.styles';\nimport type { CardProps } from './Card.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCardContextValue } from './useCardContextValue';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A card provides scaffolding for hosting actions and content for a single topic.\n */\nexport const Card: ForwardRefComponent<CardProps> = React.forwardRef<HTMLDivElement>((props, ref) => {\n const state = useCard_unstable(props, ref);\n const cardContextValue = useCardContextValue(state);\n\n useCardStyles_unstable(state);\n\n useCustomStyleHook_unstable('useCardStyles_unstable')(state);\n\n return renderCard_unstable(state, cardContextValue);\n});\n\nCard.displayName = 'Card';\n"],"names":["React","useCard_unstable","renderCard_unstable","useCardStyles_unstable","useCardContextValue","useCustomStyleHook_unstable","Card","forwardRef","props","ref","state","cardContextValue","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,yBAAyB;AAGhE,SAASC,mBAAmB,QAAQ,wBAAwB;AAC5D,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,qBAAuCN,MAAMO,UAAU,CAAiB,CAACC,OAAOC;IAC3F,MAAMC,QAAQT,iBAAiBO,OAAOC;IACtC,MAAME,mBAAmBP,oBAAoBM;IAE7CP,uBAAuBO;IAEvBL,4BAA4B,0BAA0BK;IAEtD,OAAOR,oBAAoBQ,OAAOC;AACpC,GAAG;AAEHL,KAAKM,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/Card/Card.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useCard_unstable } from './useCard';\nimport { renderCard_unstable } from './renderCard';\nimport { useCardStyles_unstable } from './useCardStyles.styles';\nimport type { CardProps } from './Card.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCardContextValue } from './useCardContextValue';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A card provides scaffolding for hosting actions and content for a single topic.\n */\nexport const Card: ForwardRefComponent<CardProps> = React.forwardRef<HTMLDivElement>((props, ref) => {\n const state = useCard_unstable(props, ref);\n const cardContextValue = useCardContextValue(state);\n\n useCardStyles_unstable(state);\n\n useCustomStyleHook_unstable('useCardStyles_unstable')(state);\n\n return renderCard_unstable(state, cardContextValue);\n});\n\nCard.displayName = 'Card';\n"],"names":["React","useCard_unstable","renderCard_unstable","useCardStyles_unstable","useCardContextValue","useCustomStyleHook_unstable","Card","forwardRef","props","ref","state","cardContextValue","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,eAAY;AAC7C,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,sBAAsB,QAAQ,4BAAyB;AAGhE,SAASC,mBAAmB,QAAQ,2BAAwB;AAC5D,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,qBAAuCN,MAAMO,UAAU,CAAiB,CAACC,OAAOC;IAC3F,MAAMC,QAAQT,iBAAiBO,OAAOC;IACtC,MAAME,mBAAmBP,oBAAoBM;IAE7CP,uBAAuBO;IAEvBL,4BAA4B,0BAA0BK;IAEtD,OAAOR,oBAAoBQ,OAAOC;AACpC,GAAG;AAEHL,KAAKM,WAAW,GAAG"}
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
  const cardContext = React.createContext(undefined);
4
4
  /**
5
5
  * @internal
@@ -1,5 +1,5 @@
1
- export { Card } from './Card';
2
- export { CardProvider, cardContextDefaultValue, useCardContext_unstable } from './CardContext';
3
- export { renderCard_unstable } from './renderCard';
4
- export { useCard_unstable, useCardBase_unstable } from './useCard';
5
- export { cardCSSVars, cardClassNames, useCardStyles_unstable } from './useCardStyles.styles';
1
+ export { Card } from "./Card.js";
2
+ export { CardProvider, cardContextDefaultValue, useCardContext_unstable } from "./CardContext.js";
3
+ export { renderCard_unstable } from "./renderCard.js";
4
+ export { useCard_unstable, useCardBase_unstable } from "./useCard.js";
5
+ export { cardCSSVars, cardClassNames, useCardStyles_unstable } from "./useCardStyles.styles.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Card/index.ts"],"sourcesContent":["export { Card } from './Card';\nexport type {\n CardBaseProps,\n CardBaseState,\n CardContextValue,\n CardOnSelectData,\n CardOnSelectionChangeEvent,\n CardProps,\n CardSlots,\n CardState,\n} from './Card.types';\nexport { CardProvider, cardContextDefaultValue, useCardContext_unstable } from './CardContext';\nexport { renderCard_unstable } from './renderCard';\nexport { useCard_unstable, useCardBase_unstable } from './useCard';\nexport { cardCSSVars, cardClassNames, useCardStyles_unstable } from './useCardStyles.styles';\n"],"names":["Card","CardProvider","cardContextDefaultValue","useCardContext_unstable","renderCard_unstable","useCard_unstable","useCardBase_unstable","cardCSSVars","cardClassNames","useCardStyles_unstable"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAW9B,SAASC,YAAY,EAAEC,uBAAuB,EAAEC,uBAAuB,QAAQ,gBAAgB;AAC/F,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,gBAAgB,EAAEC,oBAAoB,QAAQ,YAAY;AACnE,SAASC,WAAW,EAAEC,cAAc,EAAEC,sBAAsB,QAAQ,yBAAyB"}
1
+ {"version":3,"sources":["../src/components/Card/index.ts"],"sourcesContent":["export { Card } from './Card';\nexport type {\n CardBaseProps,\n CardBaseState,\n CardContextValue,\n CardOnSelectData,\n CardOnSelectionChangeEvent,\n CardProps,\n CardSlots,\n CardState,\n} from './Card.types';\nexport { CardProvider, cardContextDefaultValue, useCardContext_unstable } from './CardContext';\nexport { renderCard_unstable } from './renderCard';\nexport { useCard_unstable, useCardBase_unstable } from './useCard';\nexport { cardCSSVars, cardClassNames, useCardStyles_unstable } from './useCardStyles.styles';\n"],"names":["Card","CardProvider","cardContextDefaultValue","useCardContext_unstable","renderCard_unstable","useCard_unstable","useCardBase_unstable","cardCSSVars","cardClassNames","useCardStyles_unstable"],"mappings":"AAAA,SAASA,IAAI,QAAQ,YAAS;AAW9B,SAASC,YAAY,EAAEC,uBAAuB,EAAEC,uBAAuB,QAAQ,mBAAgB;AAC/F,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,gBAAgB,EAAEC,oBAAoB,QAAQ,eAAY;AACnE,SAASC,WAAW,EAAEC,cAAc,EAAEC,sBAAsB,QAAQ,4BAAyB"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
- import { assertSlots } from '@fluentui/react-utilities';
3
- import { CardProvider } from './CardContext';
2
+ import { assertSlots } from "@fluentui/react-utilities";
3
+ import { CardProvider } from "./CardContext.js";
4
4
  /**
5
5
  * Render the final JSX of Card.
6
6
  */ export const renderCard_unstable = (state, cardContextValue)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Card/renderCard.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CardContextValue, CardSlots, CardBaseState } from './Card.types';\nimport { CardProvider } from './CardContext';\n\n/**\n * Render the final JSX of Card.\n */\nexport const renderCard_unstable = (state: CardBaseState, cardContextValue: CardContextValue): JSXElement => {\n assertSlots<CardSlots>(state);\n\n return (\n <state.root>\n <CardProvider value={cardContextValue}>\n {state.checkbox ? <state.checkbox /> : null}\n {state.floatingAction ? <state.floatingAction /> : null}\n {state.root.children}\n </CardProvider>\n </state.root>\n );\n};\n"],"names":["assertSlots","CardProvider","renderCard_unstable","state","cardContextValue","root","value","checkbox","floatingAction","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,YAAY,QAAQ,gBAAgB;AAE7C;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,OAAsBC;IACxDJ,YAAuBG;IAEvB,qBACE,KAACA,MAAME,IAAI;kBACT,cAAA,MAACJ;YAAaK,OAAOF;;gBAClBD,MAAMI,QAAQ,iBAAG,KAACJ,MAAMI,QAAQ,QAAM;gBACtCJ,MAAMK,cAAc,iBAAG,KAACL,MAAMK,cAAc,QAAM;gBAClDL,MAAME,IAAI,CAACI,QAAQ;;;;AAI5B,EAAE"}
1
+ {"version":3,"sources":["../src/components/Card/renderCard.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CardContextValue, CardSlots, CardBaseState } from './Card.types';\nimport { CardProvider } from './CardContext';\n\n/**\n * Render the final JSX of Card.\n */\nexport const renderCard_unstable = (state: CardBaseState, cardContextValue: CardContextValue): JSXElement => {\n assertSlots<CardSlots>(state);\n\n return (\n <state.root>\n <CardProvider value={cardContextValue}>\n {state.checkbox ? <state.checkbox /> : null}\n {state.floatingAction ? <state.floatingAction /> : null}\n {state.root.children}\n </CardProvider>\n </state.root>\n );\n};\n"],"names":["assertSlots","CardProvider","renderCard_unstable","state","cardContextValue","root","value","checkbox","floatingAction","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,YAAY,QAAQ,mBAAgB;AAE7C;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,OAAsBC;IACxDJ,YAAuBG;IAEvB,qBACE,KAACA,MAAME,IAAI;kBACT,cAAA,MAACJ;YAAaK,OAAOF;;gBAClBD,MAAMI,QAAQ,iBAAG,KAACJ,MAAMI,QAAQ,QAAM;gBACtCJ,MAAMK,cAAc,iBAAG,KAACL,MAAMK,cAAc,QAAM;gBAClDL,MAAME,IAAI,CAACI,QAAQ;;;;AAI5B,EAAE"}