@fluentui/react-card 0.0.0-nightly-20220513-0417.1 → 0.0.0-nightly-20220518-0420.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,17 +2,29 @@
|
|
2
2
|
"name": "@fluentui/react-card",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-card_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Wed, 18 May 2022 04:34:31 GMT",
|
6
|
+
"tag": "@fluentui/react-card_v0.0.0-nightly-20220518-0420.1",
|
7
|
+
"version": "0.0.0-nightly-20220518-0420.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "olfedias@microsoft.com",
|
12
|
+
"package": "@fluentui/react-card",
|
13
|
+
"commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
|
14
|
+
"comment": "chore: Update Griffel to latest version"
|
15
|
+
},
|
10
16
|
{
|
11
17
|
"author": "39736248+andrefcdias@users.noreply.github.com",
|
12
18
|
"package": "@fluentui/react-card",
|
13
19
|
"commit": "a42bebb19d1403bfbde96cfb4b09e3ce32490ec6",
|
14
20
|
"comment": "CardPreview now expands properly, all the way to the Card's edges"
|
15
21
|
},
|
22
|
+
{
|
23
|
+
"author": "39736248+andrefcdias@users.noreply.github.com",
|
24
|
+
"package": "@fluentui/react-card",
|
25
|
+
"commit": "d24b84d3239563973ed1dff9145998a4403c531e",
|
26
|
+
"comment": "fix: focus no longer being managed when using `focusMode=\"off\"`"
|
27
|
+
},
|
16
28
|
{
|
17
29
|
"author": "sarah.higley@microsoft.com",
|
18
30
|
"package": "@fluentui/react-card",
|
@@ -22,26 +34,38 @@
|
|
22
34
|
{
|
23
35
|
"author": "beachball",
|
24
36
|
"package": "@fluentui/react-card",
|
25
|
-
"comment": "Bump @fluentui/react-
|
26
|
-
"commit": "
|
37
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220518-0420.1",
|
38
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-card",
|
43
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220518-0420.1",
|
44
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-card",
|
49
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220518-0420.1",
|
50
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
27
51
|
},
|
28
52
|
{
|
29
53
|
"author": "beachball",
|
30
54
|
"package": "@fluentui/react-card",
|
31
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
32
|
-
"commit": "
|
55
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220518-0420.1",
|
56
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
33
57
|
},
|
34
58
|
{
|
35
59
|
"author": "beachball",
|
36
60
|
"package": "@fluentui/react-card",
|
37
|
-
"comment": "Bump @fluentui/react-text to v0.0.0-nightly-
|
38
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/react-text to v0.0.0-nightly-20220518-0420.1",
|
62
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
39
63
|
},
|
40
64
|
{
|
41
65
|
"author": "beachball",
|
42
66
|
"package": "@fluentui/react-card",
|
43
|
-
"comment": "Bump @fluentui/react-button to v0.0.0-nightly-
|
44
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-button to v0.0.0-nightly-20220518-0420.1",
|
68
|
+
"commit": "c740a24cded647abf63433112cb9a07ed03d161a"
|
45
69
|
}
|
46
70
|
]
|
47
71
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,22 +1,26 @@
|
|
1
1
|
# Change Log - @fluentui/react-card
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 18 May 2022 04:34:31 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20220518-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v0.0.0-nightly-20220518-0420.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.14..@fluentui/react-card_v0.0.0-nightly-
|
9
|
+
Wed, 18 May 2022 04:34:31 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-card_v9.0.0-beta.14..@fluentui/react-card_v0.0.0-nightly-20220518-0420.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
14
15
|
- CardPreview now expands properly, all the way to the Card's edges ([PR #22761](https://github.com/microsoft/fluentui/pull/22761) by 39736248+andrefcdias@users.noreply.github.com)
|
16
|
+
- fix: focus no longer being managed when using `focusMode="off"` ([PR #23011](https://github.com/microsoft/fluentui/pull/23011) by 39736248+andrefcdias@users.noreply.github.com)
|
15
17
|
- remove commons from Card ([PR #22872](https://github.com/microsoft/fluentui/pull/22872) by sarah.higley@microsoft.com)
|
16
|
-
- Bump @fluentui/react-
|
17
|
-
- Bump @fluentui/react-
|
18
|
-
- Bump @fluentui/react-
|
19
|
-
- Bump @fluentui/react-
|
18
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
19
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
20
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
21
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
22
|
+
- Bump @fluentui/react-text to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
23
|
+
- Bump @fluentui/react-button to v0.0.0-nightly-20220518-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/c740a24cded647abf63433112cb9a07ed03d161a) by beachball)
|
20
24
|
|
21
25
|
## [9.0.0-beta.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-card_v9.0.0-beta.14)
|
22
26
|
|
@@ -24,6 +24,10 @@ export const useCard_unstable = (props, ref) => {
|
|
24
24
|
const groupperAttrs = useFocusableGroup({
|
25
25
|
tabBehavior: focusMap[focusMode]
|
26
26
|
});
|
27
|
+
const focusAttrs = focusMode !== 'off' ? {
|
28
|
+
tabIndex: 0,
|
29
|
+
...groupperAttrs
|
30
|
+
} : null;
|
27
31
|
return {
|
28
32
|
appearance,
|
29
33
|
components: {
|
@@ -32,8 +36,7 @@ export const useCard_unstable = (props, ref) => {
|
|
32
36
|
root: getNativeElementProps(props.as || 'div', {
|
33
37
|
ref,
|
34
38
|
role: 'group',
|
35
|
-
|
36
|
-
...groupperAttrs,
|
39
|
+
...focusAttrs,
|
37
40
|
...props
|
38
41
|
})
|
39
42
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Card/useCard.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,iBAAT,QAAkC,yBA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AAlB,GAAtB,GAA0D,IAA7E;AAEA,SAAO;AACL,IAAA,UADK;AAGL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAHP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,EAAN,IAAY,KAAb,EAAoB;AAC7C,MAAA,GAD6C;AAE7C,MAAA,IAAI,EAAE,OAFuC;AAG7C,SAAG,UAH0C;AAI7C,SAAG;AAJ0C,KAApB;AAJtB,GAAP;AAWD,CA3BM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { CardProps, CardState } from './Card.types';\nimport { useFocusableGroup } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render Card.\n *\n * The returned state can be modified with hooks such as useCardStyles_unstable,\n * before being passed to renderCard_unstable.\n *\n * @param props - props from this instance of Card\n * @param ref - reference to root HTMLElement of Card\n */\nexport const useCard_unstable = (props: CardProps, ref: React.Ref<HTMLElement>): CardState => {\n const { appearance = 'filled', focusMode = 'off' } = props;\n\n const focusMap = {\n off: undefined,\n 'no-tab': 'limitedTrapFocus',\n 'tab-exit': 'limited',\n 'tab-only': 'unlimited',\n } as const;\n\n const groupperAttrs = useFocusableGroup({\n tabBehavior: focusMap[focusMode],\n });\n\n const focusAttrs = focusMode !== 'off' ? { tabIndex: 0, ...groupperAttrs } : null;\n\n return {\n appearance,\n\n components: { root: 'div' },\n root: getNativeElementProps(props.as || 'div', {\n ref,\n role: 'group',\n ...focusAttrs,\n ...props,\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -33,6 +33,10 @@ const useCard_unstable = (props, ref) => {
|
|
33
33
|
const groupperAttrs = react_tabster_1.useFocusableGroup({
|
34
34
|
tabBehavior: focusMap[focusMode]
|
35
35
|
});
|
36
|
+
const focusAttrs = focusMode !== 'off' ? {
|
37
|
+
tabIndex: 0,
|
38
|
+
...groupperAttrs
|
39
|
+
} : null;
|
36
40
|
return {
|
37
41
|
appearance,
|
38
42
|
components: {
|
@@ -41,8 +45,7 @@ const useCard_unstable = (props, ref) => {
|
|
41
45
|
root: react_utilities_1.getNativeElementProps(props.as || 'div', {
|
42
46
|
ref,
|
43
47
|
role: 'group',
|
44
|
-
|
45
|
-
...groupperAttrs,
|
48
|
+
...focusAttrs,
|
46
49
|
...props
|
47
50
|
})
|
48
51
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Card/useCard.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;AAC3F,QAAM;AAAE,IAAA,UAAU,GAAG,QAAf;AAAyB,IAAA,SAAS,GAAG;AAArC,MAA+C,KAArD;AAEA,QAAM,QAAQ,GAAG;AACf,IAAA,GAAG,EAAE,SADU;AAEf,cAAU,kBAFK;AAGf,gBAAY,SAHG;AAIf,gBAAY;AAJG,GAAjB;AAOA,QAAM,aAAa,GAAG,eAAA,CAAA,iBAAA,CAAkB;AACtC,IAAA,WAAW,EAAE,QAAQ,CAAC,SAAD;AADiB,GAAlB,CAAtB;AAIA,SAAO;AACL,IAAA,UADK;AAGL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAHP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAK,CAAC,EAAN,IAAY,KAAlC,EAAyC;AAC7C,MAAA,GAD6C;AAE7C,MAAA,IAAI,EAAE,OAFuC;AAG7C,
|
1
|
+
{"version":3,"sources":["components/Card/useCard.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;AAC3F,QAAM;AAAE,IAAA,UAAU,GAAG,QAAf;AAAyB,IAAA,SAAS,GAAG;AAArC,MAA+C,KAArD;AAEA,QAAM,QAAQ,GAAG;AACf,IAAA,GAAG,EAAE,SADU;AAEf,cAAU,kBAFK;AAGf,gBAAY,SAHG;AAIf,gBAAY;AAJG,GAAjB;AAOA,QAAM,aAAa,GAAG,eAAA,CAAA,iBAAA,CAAkB;AACtC,IAAA,WAAW,EAAE,QAAQ,CAAC,SAAD;AADiB,GAAlB,CAAtB;AAIA,QAAM,UAAU,GAAG,SAAS,KAAK,KAAd,GAAsB;AAAE,IAAA,QAAQ,EAAE,CAAZ;AAAe,OAAG;AAAlB,GAAtB,GAA0D,IAA7E;AAEA,SAAO;AACL,IAAA,UADK;AAGL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAHP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAK,CAAC,EAAN,IAAY,KAAlC,EAAyC;AAC7C,MAAA,GAD6C;AAE7C,MAAA,IAAI,EAAE,OAFuC;AAG7C,SAAG,UAH0C;AAI7C,SAAG;AAJ0C,KAAzC;AAJD,GAAP;AAWD,CA3BM;;AAAM,OAAA,CAAA,gBAAA,GAAgB,gBAAhB","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { CardProps, CardState } from './Card.types';\nimport { useFocusableGroup } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render Card.\n *\n * The returned state can be modified with hooks such as useCardStyles_unstable,\n * before being passed to renderCard_unstable.\n *\n * @param props - props from this instance of Card\n * @param ref - reference to root HTMLElement of Card\n */\nexport const useCard_unstable = (props: CardProps, ref: React.Ref<HTMLElement>): CardState => {\n const { appearance = 'filled', focusMode = 'off' } = props;\n\n const focusMap = {\n off: undefined,\n 'no-tab': 'limitedTrapFocus',\n 'tab-exit': 'limited',\n 'tab-only': 'unlimited',\n } as const;\n\n const groupperAttrs = useFocusableGroup({\n tabBehavior: focusMap[focusMode],\n });\n\n const focusAttrs = focusMode !== 'off' ? { tabIndex: 0, ...groupperAttrs } : null;\n\n return {\n appearance,\n\n components: { root: 'div' },\n root: getNativeElementProps(props.as || 'div', {\n ref,\n role: 'group',\n ...focusAttrs,\n ...props,\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-card",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20220518-0420.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "Card container components for Fluent UI React.",
|
6
6
|
"main": "lib-commonjs/index.js",
|
@@ -30,16 +30,16 @@
|
|
30
30
|
"devDependencies": {
|
31
31
|
"@fluentui/eslint-plugin": "*",
|
32
32
|
"@fluentui/react-conformance": "*",
|
33
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
33
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20220518-0420.1",
|
34
34
|
"@fluentui/scripts": "^1.0.0",
|
35
|
-
"@fluentui/react-text": "0.0.0-nightly-
|
36
|
-
"@fluentui/react-button": "0.0.0-nightly-
|
35
|
+
"@fluentui/react-text": "0.0.0-nightly-20220518-0420.1",
|
36
|
+
"@fluentui/react-button": "0.0.0-nightly-20220518-0420.1"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@griffel/react": "1.0.
|
40
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
41
|
-
"@fluentui/react-tabster": "0.0.0-nightly-
|
42
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
39
|
+
"@griffel/react": "1.0.4",
|
40
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20220518-0420.1",
|
41
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20220518-0420.1",
|
42
|
+
"@fluentui/react-theme": "0.0.0-nightly-20220518-0420.1",
|
43
43
|
"tslib": "^2.1.0"
|
44
44
|
},
|
45
45
|
"peerDependencies": {
|