@fluentui/react-card 0.0.0-nightly946f57cad420220203.1 → 0.0.0-nightly96d9c9354420220210.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 CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@fluentui/react-card",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 03 Feb 2022 04:16:58 GMT",
6
- "tag": "@fluentui/react-card_v0.0.0-nightly946f57cad420220203.1",
7
- "version": "0.0.0-nightly946f57cad420220203.1",
5
+ "date": "Thu, 10 Feb 2022 04:16:31 GMT",
6
+ "tag": "@fluentui/react-card_v0.0.0-nightly96d9c9354420220210.1",
7
+ "version": "0.0.0-nightly96d9c9354420220210.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-card",
13
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c",
13
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
@@ -19,6 +19,12 @@
19
19
  "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
20
20
  "comment": "Update react-icons usage to resizable icons"
21
21
  },
22
+ {
23
+ "author": "lingfangao@hotmail.com",
24
+ "package": "@fluentui/react-card",
25
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
26
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
27
+ },
22
28
  {
23
29
  "author": "Humberto.Morimoto@microsoft.com",
24
30
  "package": "@fluentui/react-card",
@@ -49,6 +55,12 @@
49
55
  "commit": "1249d2ee042780865e877fc2ed48f56e0eff25d1",
50
56
  "comment": "use Griffel packages"
51
57
  },
58
+ {
59
+ "author": "behowell@microsoft.com",
60
+ "package": "@fluentui/react-card",
61
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
62
+ "comment": "Refactor component Slot typings"
63
+ },
52
64
  {
53
65
  "author": "olfedias@microsoft.com",
54
66
  "package": "@fluentui/react-card",
@@ -64,32 +76,32 @@
64
76
  {
65
77
  "author": "beachball",
66
78
  "package": "@fluentui/react-card",
67
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly946f57cad420220203.1",
68
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
79
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1",
80
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
69
81
  },
70
82
  {
71
83
  "author": "beachball",
72
84
  "package": "@fluentui/react-card",
73
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly946f57cad420220203.1",
74
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
85
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1",
86
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
75
87
  },
76
88
  {
77
89
  "author": "beachball",
78
90
  "package": "@fluentui/react-card",
79
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly946f57cad420220203.1",
80
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
91
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1",
92
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
81
93
  },
82
94
  {
83
95
  "author": "beachball",
84
96
  "package": "@fluentui/react-card",
85
- "comment": "Bump @fluentui/react-text to v0.0.0-nightly946f57cad420220203.1",
86
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
97
+ "comment": "Bump @fluentui/react-text to v0.0.0-nightly96d9c9354420220210.1",
98
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
87
99
  },
88
100
  {
89
101
  "author": "beachball",
90
102
  "package": "@fluentui/react-card",
91
- "comment": "Bump @fluentui/react-button to v0.0.0-nightly946f57cad420220203.1",
92
- "commit": "1d230926e10b3b722bd932be1ec39faaf340671c"
103
+ "comment": "Bump @fluentui/react-button to v0.0.0-nightly96d9c9354420220210.1",
104
+ "commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
93
105
  }
94
106
  ],
95
107
  "none": [
@@ -117,6 +129,18 @@
117
129
  "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
118
130
  "comment": "remove inline-style-expand-shorthand from tsconfigs"
119
131
  },
132
+ {
133
+ "author": "me@levithomason.com",
134
+ "package": "@fluentui/react-card",
135
+ "commit": "4bd15194a66379b165043141c266faa0c1ea1502",
136
+ "comment": "document how to import preview components"
137
+ },
138
+ {
139
+ "author": "bsunderhus@microsoft.com",
140
+ "package": "@fluentui/react-card",
141
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
142
+ "comment": "Updates components with nullRender changes"
143
+ },
120
144
  {
121
145
  "author": "me@levithomason.com",
122
146
  "package": "@fluentui/react-card",
package/CHANGELOG.md CHANGED
@@ -1,30 +1,32 @@
1
1
  # Change Log - @fluentui/react-card
2
2
 
3
- This log was last generated on Thu, 03 Feb 2022 04:16:58 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Feb 2022 04:16:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly946f57cad420220203.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly946f57cad420220203.1)
7
+ ## [0.0.0-nightly96d9c9354420220210.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly96d9c9354420220210.1)
8
8
 
9
- Thu, 03 Feb 2022 04:16:58 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-nightly946f57cad420220203.1)
9
+ Thu, 10 Feb 2022 04:16:31 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.5..@fluentui/react-card_v0.0.0-nightly96d9c9354420220210.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) 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
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
16
17
  - 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
18
  - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
18
19
  - Remove empty CardCommons type and outdated boilerplate comments ([PR #21150](https://github.com/microsoft/fluentui/pull/21150) by elcraig@microsoft.com)
19
20
  - 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)
20
21
  - use Griffel packages ([PR #21417](https://github.com/microsoft/fluentui/pull/21417) by olfedias@microsoft.com)
22
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
21
23
  - update styles no not use CSS shorthands ([PR #20794](https://github.com/microsoft/fluentui/pull/20794) by olfedias@microsoft.com)
22
24
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
23
- - Bump @fluentui/react-utilities to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
24
- - Bump @fluentui/react-tabster to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
25
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
26
- - Bump @fluentui/react-text to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
27
- - Bump @fluentui/react-button to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
25
+ - Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
26
+ - Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
27
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
28
+ - Bump @fluentui/react-text to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
29
+ - Bump @fluentui/react-button to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
28
30
 
29
31
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.5)
30
32
 
@@ -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 { IntrinsicSlotProps } 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.
@@ -24,8 +24,8 @@ export declare const cardFooterClassName = "fui-CardFooter";
24
24
  export declare type CardFooterProps = ComponentProps<CardFooterSlots>;
25
25
 
26
26
  export declare type CardFooterSlots = {
27
- root: IntrinsicSlotProps<'div'>;
28
- action?: IntrinsicSlotProps<'div'>;
27
+ root: Slot<'div'>;
28
+ action?: Slot<'div'>;
29
29
  };
30
30
 
31
31
  /**
@@ -43,15 +43,15 @@ export declare const cardHeaderClassName = "fui-CardHeader";
43
43
  /**
44
44
  * CardHeader props
45
45
  */
46
- export declare type CardHeaderProps = ComponentProps<CardHeaderSlots>;
46
+ export declare type CardHeaderProps = ComponentProps<Partial<CardHeaderSlots>>;
47
47
 
48
48
  export declare type CardHeaderSlots = {
49
- root: IntrinsicSlotProps<'div'>;
50
- image: IntrinsicSlotProps<'div'>;
51
- content?: IntrinsicSlotProps<'div'>;
52
- header: IntrinsicSlotProps<'span'>;
53
- description: IntrinsicSlotProps<'span'>;
54
- action?: IntrinsicSlotProps<'div'>;
49
+ root: Slot<'div'>;
50
+ image: Slot<'div'>;
51
+ content?: Slot<'div'>;
52
+ header: Slot<'span'>;
53
+ description: Slot<'span'>;
54
+ action?: Slot<'div'>;
55
55
  };
56
56
 
57
57
  /**
@@ -72,8 +72,8 @@ export declare const cardPreviewClassName = "fui-CardPreview";
72
72
  export declare type CardPreviewProps = ComponentProps<CardPreviewSlots>;
73
73
 
74
74
  export declare type CardPreviewSlots = {
75
- root: IntrinsicSlotProps<'div'>;
76
- logo?: IntrinsicSlotProps<'div'>;
75
+ root: Slot<'div'>;
76
+ logo?: Slot<'div'>;
77
77
  };
78
78
 
79
79
  /**
@@ -87,7 +87,7 @@ export declare type CardPreviewState = ComponentState<CardPreviewSlots>;
87
87
  export declare type CardProps = ComponentProps<CardSlots>;
88
88
 
89
89
  export declare type CardSlots = {
90
- root: IntrinsicSlotProps<'div'>;
90
+ root: Slot<'div'>;
91
91
  };
92
92
 
93
93
  /**
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  /**
6
6
  * Card Props
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardFooterSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- action?: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
+ action?: Slot<'div'>;
5
5
  };
6
6
  /**
7
7
  * CardFooter props
@@ -10,7 +10,7 @@ export const renderCardFooter_unstable = state => {
10
10
  slotProps
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
- }, slotProps.root.children, /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
13
+ }, slotProps.root.children, slots.action && /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
14
14
  }));
15
15
  };
16
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;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
+ {"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,16 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardHeaderSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- image: IntrinsicSlotProps<'div'>;
5
- content?: IntrinsicSlotProps<'div'>;
6
- header: IntrinsicSlotProps<'span'>;
7
- description: IntrinsicSlotProps<'span'>;
8
- action?: IntrinsicSlotProps<'div'>;
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
  */
@@ -11,10 +11,10 @@ export const renderCardHeader_unstable = state => {
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
13
  }, /*#__PURE__*/React.createElement(slots.image, { ...slotProps.image
14
- }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
14
+ }), slots.content && /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
15
15
  }, /*#__PURE__*/React.createElement(slots.header, { ...slotProps.header
16
16
  }), /*#__PURE__*/React.createElement(slots.description, { ...slotProps.description
17
- })), /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
17
+ })), slots.action && /*#__PURE__*/React.createElement(slots.action, { ...slotProps.action
18
18
  }));
19
19
  };
20
20
  //# sourceMappingURL=renderCardHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CardHeader/renderCardHeader.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,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAlB,CAFF,CAFF,eAME,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CANF,CADF;AAUD,CAbM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CardHeader/renderCardHeader.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,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,EAEG,KAAK,CAAC,OAAN,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAlB,CAFF,CAHJ,EAQG,KAAK,CAAC,MAAN,iBAAgB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CARnB,CADF;AAYD,CAfM","sourceRoot":""}
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardPreviewSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- logo?: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
+ logo?: Slot<'div'>;
5
5
  };
6
6
  /**
7
7
  * CardPreview props
@@ -10,7 +10,7 @@ export const renderCardPreview_unstable = state => {
10
10
  slotProps
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
- }, slotProps.root.children, /*#__PURE__*/React.createElement(slots.logo, { ...slotProps.logo
13
+ }, slotProps.root.children, slots.logo && /*#__PURE__*/React.createElement(slots.logo, { ...slotProps.logo
14
14
  }));
15
15
  };
16
16
  //# sourceMappingURL=renderCardPreview.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CardPreview/renderCardPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,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,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,CADF;AAMD,CATM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CardPreview/renderCardPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,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,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,CADF;AAMD,CATM","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  /**
6
6
  * Card Props
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardFooterSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- action?: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
+ action?: Slot<'div'>;
5
5
  };
6
6
  /**
7
7
  * CardFooter props
@@ -19,7 +19,7 @@ const renderCardFooter_unstable = state => {
19
19
  slotProps
20
20
  } = react_utilities_1.getSlots(state);
21
21
  return React.createElement(slots.root, { ...slotProps.root
22
- }, slotProps.root.children, React.createElement(slots.action, { ...slotProps.action
22
+ }, slotProps.root.children, slots.action && React.createElement(slots.action, { ...slotProps.action
23
23
  }));
24
24
  };
25
25
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAA2B;AAClE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA0B,KAA1B,CAA7B;AAEA,SACE,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;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CardFooter/renderCardFooter.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAA2B;AAClE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA0B,KAA1B,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,EAEG,KAAK,CAAC,MAAN,IAAgB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CAFnB,CADF;AAMD,CATM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
@@ -1,16 +1,16 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardHeaderSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- image: IntrinsicSlotProps<'div'>;
5
- content?: IntrinsicSlotProps<'div'>;
6
- header: IntrinsicSlotProps<'span'>;
7
- description: IntrinsicSlotProps<'span'>;
8
- action?: IntrinsicSlotProps<'div'>;
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
  */
@@ -20,10 +20,10 @@ const renderCardHeader_unstable = state => {
20
20
  } = react_utilities_1.getSlots(state);
21
21
  return React.createElement(slots.root, { ...slotProps.root
22
22
  }, React.createElement(slots.image, { ...slotProps.image
23
- }), React.createElement(slots.content, { ...slotProps.content
23
+ }), slots.content && React.createElement(slots.content, { ...slotProps.content
24
24
  }, React.createElement(slots.header, { ...slotProps.header
25
25
  }), React.createElement(slots.description, { ...slotProps.description
26
- })), React.createElement(slots.action, { ...slotProps.action
26
+ })), slots.action && React.createElement(slots.action, { ...slotProps.action
27
27
  }));
28
28
  };
29
29
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CardHeader/renderCardHeader.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAA2B;AAClE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA0B,KAA1B,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CADF,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAlB,CAFF,CAFF,EAME,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CANF,CADF;AAUD,CAbM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CardHeader/renderCardHeader.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAA2B;AAClE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA0B,KAA1B,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,EAEG,KAAK,CAAC,OAAN,IACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CADF,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,WAAP,EAAkB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAlB,CAFF,CAHJ,EAQG,KAAK,CAAC,MAAN,IAAgB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,CARnB,CADF;AAYD,CAfM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type CardPreviewSlots = {
3
- root: IntrinsicSlotProps<'div'>;
4
- logo?: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
+ logo?: Slot<'div'>;
5
5
  };
6
6
  /**
7
7
  * CardPreview props
@@ -19,7 +19,7 @@ const renderCardPreview_unstable = state => {
19
19
  slotProps
20
20
  } = react_utilities_1.getSlots(state);
21
21
  return React.createElement(slots.root, { ...slotProps.root
22
- }, slotProps.root.children, React.createElement(slots.logo, { ...slotProps.logo
22
+ }, slotProps.root.children, slots.logo && React.createElement(slots.logo, { ...slotProps.logo
23
23
  }));
24
24
  };
25
25
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CardPreview/renderCardPreview.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;AAEA,SACE,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,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,CADF;AAMD,CATM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CardPreview/renderCardPreview.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,CADF;AAMD,CATM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-card",
3
- "version": "0.0.0-nightly946f57cad420220203.1",
3
+ "version": "0.0.0-nightly96d9c9354420220210.1",
4
4
  "private": false,
5
5
  "description": "Card container components for Fluent UI React.",
6
6
  "main": "lib-commonjs/index.js",
@@ -29,10 +29,10 @@
29
29
  "devDependencies": {
30
30
  "@fluentui/eslint-plugin": "*",
31
31
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-griffel": "0.0.0-nightly946f57cad420220203.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly96d9c9354420220210.1",
33
33
  "@fluentui/scripts": "^1.0.0",
34
- "@fluentui/react-text": "0.0.0-nightly946f57cad420220203.1",
35
- "@fluentui/react-button": "0.0.0-nightly946f57cad420220203.1",
34
+ "@fluentui/react-text": "0.0.0-nightly96d9c9354420220210.1",
35
+ "@fluentui/react-button": "0.0.0-nightly96d9c9354420220210.1",
36
36
  "@types/enzyme": "3.10.3",
37
37
  "@types/enzyme-adapter-react-16": "1.0.3",
38
38
  "@types/react": "16.9.42",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@griffel/react": "1.0.0",
49
- "@fluentui/react-utilities": "0.0.0-nightly946f57cad420220203.1",
50
- "@fluentui/react-tabster": "0.0.0-nightly946f57cad420220203.1",
49
+ "@fluentui/react-utilities": "0.0.0-nightly96d9c9354420220210.1",
50
+ "@fluentui/react-tabster": "0.0.0-nightly96d9c9354420220210.1",
51
51
  "tslib": "^2.1.0"
52
52
  },
53
53
  "peerDependencies": {