@fluentui/react-tabster 0.0.0-nightly-20221019-0421.1 → 0.0.0-nightly-20221020-0424.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,9 +2,9 @@
2
2
  "name": "@fluentui/react-tabster",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 19 Oct 2022 04:26:47 GMT",
6
- "tag": "@fluentui/react-tabster_v0.0.0-nightly-20221019-0421.1",
7
- "version": "0.0.0-nightly-20221019-0421.1",
5
+ "date": "Thu, 20 Oct 2022 04:29:27 GMT",
6
+ "tag": "@fluentui/react-tabster_v0.0.0-nightly-20221020-0424.1",
7
+ "version": "0.0.0-nightly-20221020-0424.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,20 +16,20 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-tabster",
19
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221019-0421.1",
20
- "commit": "c7260e4ea1c03699e681542f8d5c6be32a2828bf"
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221020-0424.1",
20
+ "commit": "c01b0fe6741e7dde18f64b821b2e5994a07afcd1"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-tabster",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221019-0421.1",
26
- "commit": "c7260e4ea1c03699e681542f8d5c6be32a2828bf"
25
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221020-0424.1",
26
+ "commit": "c01b0fe6741e7dde18f64b821b2e5994a07afcd1"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-tabster",
31
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221019-0421.1",
32
- "commit": "c7260e4ea1c03699e681542f8d5c6be32a2828bf"
31
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221020-0424.1",
32
+ "commit": "c01b0fe6741e7dde18f64b821b2e5994a07afcd1"
33
33
  }
34
34
  ]
35
35
  }
package/CHANGELOG.md CHANGED
@@ -1,20 +1,20 @@
1
1
  # Change Log - @fluentui/react-tabster
2
2
 
3
- This log was last generated on Wed, 19 Oct 2022 04:26:47 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 20 Oct 2022 04:29:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20221019-0421.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightly-20221019-0421.1)
7
+ ## [0.0.0-nightly-20221020-0424.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightly-20221020-0424.1)
8
8
 
9
- Wed, 19 Oct 2022 04:26:47 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.1.3..@fluentui/react-tabster_v0.0.0-nightly-20221019-0421.1)
9
+ Thu, 20 Oct 2022 04:29:27 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.1.3..@fluentui/react-tabster_v0.0.0-nightly-20221020-0424.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221019-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/c7260e4ea1c03699e681542f8d5c6be32a2828bf) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly-20221019-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/c7260e4ea1c03699e681542f8d5c6be32a2828bf) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20221019-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/c7260e4ea1c03699e681542f8d5c6be32a2828bf) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221020-0424.1 ([commit](https://github.com/microsoft/fluentui/commit/c01b0fe6741e7dde18f64b821b2e5994a07afcd1) by beachball)
16
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20221020-0424.1 ([commit](https://github.com/microsoft/fluentui/commit/c01b0fe6741e7dde18f64b821b2e5994a07afcd1) by beachball)
17
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20221020-0424.1 ([commit](https://github.com/microsoft/fluentui/commit/c01b0fe6741e7dde18f64b821b2e5994a07afcd1) by beachball)
18
18
 
19
19
  ## [9.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.1.3)
20
20
 
package/dist/index.d.ts CHANGED
@@ -17,10 +17,15 @@ export declare function applyFocusVisiblePolyfill(scope: HTMLElement, win: Windo
17
17
  * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
18
18
  * @param options - Configure the style of the focus outline
19
19
  */
20
- export declare const createCustomFocusIndicatorStyle: (style: GriffelStyle, { selector }?: CreateCustomFocusIndicatorStyleOptions) => GriffelStyle;
20
+ export declare const createCustomFocusIndicatorStyle: (style: GriffelStyle, { selector, enableOutline, }?: CreateCustomFocusIndicatorStyleOptions) => GriffelStyle;
21
21
 
22
22
  export declare interface CreateCustomFocusIndicatorStyleOptions {
23
23
  selector?: 'focus' | 'focus-within';
24
+ /**
25
+ * Enables the browser default outline style
26
+ * @default false
27
+ */
28
+ enableOutline?: boolean;
24
29
  }
25
30
 
26
31
  /**
@@ -8,13 +8,14 @@ import { defaultOptions, FOCUS_VISIBLE_ATTR, FOCUS_WITHIN_ATTR } from './constan
8
8
  */
9
9
 
10
10
  export const createCustomFocusIndicatorStyle = (style, {
11
- selector = defaultOptions.selector
11
+ selector = defaultOptions.selector,
12
+ enableOutline = false
12
13
  } = defaultOptions) => ({
13
14
  ':focus': {
14
- outlineStyle: 'none'
15
+ outlineStyle: enableOutline ? undefined : 'none'
15
16
  },
16
17
  ':focus-visible': {
17
- outlineStyle: 'none'
18
+ outlineStyle: enableOutline ? undefined : 'none'
18
19
  },
19
20
  ...(selector === 'focus' && {
20
21
  [`&[${FOCUS_VISIBLE_ATTR}]`]: style
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/focus/createCustomFocusIndicatorStyle.ts"],"names":[],"mappings":"AAAA,SAAS,cAAT,EAAyB,kBAAzB,EAA6C,iBAA7C,QAAsE,aAAtE;AAOA;;;;;;AAMG;;AACH,OAAO,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C;EAAE,QAAQ,GAAG,cAAc,CAAC;AAA5B,IAAiF,cAFpC,MAG3B;EAClB,UAAU;IACR,YAAY,EAAE;EADN,CADQ;EAIlB,kBAAkB;IAChB,YAAY,EAAE;EADE,CAJA;EAQlB,IAAI,QAAQ,KAAK,OAAb,IAAwB;IAC1B,CAAC,KAAK,kBAAkB,GAAxB,GAA8B;EADJ,CAA5B,CARkB;EAWlB,IAAI,QAAQ,KAAK,cAAb,IAA+B;IACjC,CAAC,KAAK,iBAAiB,KAAK,QAAQ,EAApC,GAAyC;EADR,CAAnC;AAXkB,CAH2B,CAAxC","sourcesContent":["import { defaultOptions, FOCUS_VISIBLE_ATTR, FOCUS_WITHIN_ATTR } from './constants';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport interface CreateCustomFocusIndicatorStyleOptions {\n selector?: 'focus' | 'focus-within';\n}\n\n/**\n * Creates a style for @see makeStyles that includes the necessary selectors for focus.\n * Should be used only when @see createFocusOutlineStyle does not fit requirements\n *\n * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes\n * @param options - Configure the style of the focus outline\n */\nexport const createCustomFocusIndicatorStyle = (\n style: GriffelStyle,\n { selector = defaultOptions.selector }: CreateCustomFocusIndicatorStyleOptions = defaultOptions,\n): GriffelStyle => ({\n ':focus': {\n outlineStyle: 'none',\n },\n ':focus-visible': {\n outlineStyle: 'none',\n },\n\n ...(selector === 'focus' && {\n [`&[${FOCUS_VISIBLE_ATTR}]`]: style,\n }),\n ...(selector === 'focus-within' && {\n [`&[${FOCUS_WITHIN_ATTR}]:${selector}`]: style,\n }),\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["../../src/focus/createCustomFocusIndicatorStyle.ts"],"names":[],"mappings":"AAAA,SAAS,cAAT,EAAyB,kBAAzB,EAA6C,iBAA7C,QAAsE,aAAtE;AAYA;;;;;;AAMG;;AACH,OAAO,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C;EACE,QAAQ,GAAG,cAAc,CAAC,QAD5B;EAEE,aAAa,GAAG;AAFlB,IAG4C,cALC,MAM3B;EAClB,UAAU;IACR,YAAY,EAAE,aAAa,GAAG,SAAH,GAAe;EADlC,CADQ;EAIlB,kBAAkB;IAChB,YAAY,EAAE,aAAa,GAAG,SAAH,GAAe;EAD1B,CAJA;EAQlB,IAAI,QAAQ,KAAK,OAAb,IAAwB;IAC1B,CAAC,KAAK,kBAAkB,GAAxB,GAA8B;EADJ,CAA5B,CARkB;EAWlB,IAAI,QAAQ,KAAK,cAAb,IAA+B;IACjC,CAAC,KAAK,iBAAiB,KAAK,QAAQ,EAApC,GAAyC;EADR,CAAnC;AAXkB,CAN2B,CAAxC","sourcesContent":["import { defaultOptions, FOCUS_VISIBLE_ATTR, FOCUS_WITHIN_ATTR } from './constants';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport interface CreateCustomFocusIndicatorStyleOptions {\n selector?: 'focus' | 'focus-within';\n /**\n * Enables the browser default outline style\n * @default false\n */\n enableOutline?: boolean;\n}\n\n/**\n * Creates a style for @see makeStyles that includes the necessary selectors for focus.\n * Should be used only when @see createFocusOutlineStyle does not fit requirements\n *\n * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes\n * @param options - Configure the style of the focus outline\n */\nexport const createCustomFocusIndicatorStyle = (\n style: GriffelStyle,\n {\n selector = defaultOptions.selector,\n enableOutline = false,\n }: CreateCustomFocusIndicatorStyleOptions = defaultOptions,\n): GriffelStyle => ({\n ':focus': {\n outlineStyle: enableOutline ? undefined : 'none',\n },\n ':focus-visible': {\n outlineStyle: enableOutline ? undefined : 'none',\n },\n\n ...(selector === 'focus' && {\n [`&[${FOCUS_VISIBLE_ATTR}]`]: style,\n }),\n ...(selector === 'focus-within' && {\n [`&[${FOCUS_WITHIN_ATTR}]:${selector}`]: style,\n }),\n});\n"],"sourceRoot":""}
@@ -16,13 +16,14 @@ const constants_1 = /*#__PURE__*/require("./constants");
16
16
 
17
17
 
18
18
  const createCustomFocusIndicatorStyle = (style, {
19
- selector = constants_1.defaultOptions.selector
19
+ selector = constants_1.defaultOptions.selector,
20
+ enableOutline = false
20
21
  } = constants_1.defaultOptions) => ({
21
22
  ':focus': {
22
- outlineStyle: 'none'
23
+ outlineStyle: enableOutline ? undefined : 'none'
23
24
  },
24
25
  ':focus-visible': {
25
- outlineStyle: 'none'
26
+ outlineStyle: enableOutline ? undefined : 'none'
26
27
  },
27
28
  ...(selector === 'focus' && {
28
29
  [`&[${constants_1.FOCUS_VISIBLE_ATTR}]`]: style
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/focus/createCustomFocusIndicatorStyle.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,WAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;AAOA;;;;;;AAMG;;;AACI,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C;EAAE,QAAQ,GAAG,WAAA,CAAA,cAAA,CAAe;AAA5B,IAAiF,WAAA,CAAA,cAFpC,MAG3B;EAClB,UAAU;IACR,YAAY,EAAE;EADN,CADQ;EAIlB,kBAAkB;IAChB,YAAY,EAAE;EADE,CAJA;EAQlB,IAAI,QAAQ,KAAK,OAAb,IAAwB;IAC1B,CAAC,KAAK,WAAA,CAAA,kBAAkB,GAAxB,GAA8B;EADJ,CAA5B,CARkB;EAWlB,IAAI,QAAQ,KAAK,cAAb,IAA+B;IACjC,CAAC,KAAK,WAAA,CAAA,iBAAiB,KAAK,QAAQ,EAApC,GAAyC;EADR,CAAnC;AAXkB,CAH2B,CAAxC;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourcesContent":["import { defaultOptions, FOCUS_VISIBLE_ATTR, FOCUS_WITHIN_ATTR } from './constants';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport interface CreateCustomFocusIndicatorStyleOptions {\n selector?: 'focus' | 'focus-within';\n}\n\n/**\n * Creates a style for @see makeStyles that includes the necessary selectors for focus.\n * Should be used only when @see createFocusOutlineStyle does not fit requirements\n *\n * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes\n * @param options - Configure the style of the focus outline\n */\nexport const createCustomFocusIndicatorStyle = (\n style: GriffelStyle,\n { selector = defaultOptions.selector }: CreateCustomFocusIndicatorStyleOptions = defaultOptions,\n): GriffelStyle => ({\n ':focus': {\n outlineStyle: 'none',\n },\n ':focus-visible': {\n outlineStyle: 'none',\n },\n\n ...(selector === 'focus' && {\n [`&[${FOCUS_VISIBLE_ATTR}]`]: style,\n }),\n ...(selector === 'focus-within' && {\n [`&[${FOCUS_WITHIN_ATTR}]:${selector}`]: style,\n }),\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["../../src/focus/createCustomFocusIndicatorStyle.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,WAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;AAYA;;;;;;AAMG;;;AACI,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C;EACE,QAAQ,GAAG,WAAA,CAAA,cAAA,CAAe,QAD5B;EAEE,aAAa,GAAG;AAFlB,IAG4C,WAAA,CAAA,cALC,MAM3B;EAClB,UAAU;IACR,YAAY,EAAE,aAAa,GAAG,SAAH,GAAe;EADlC,CADQ;EAIlB,kBAAkB;IAChB,YAAY,EAAE,aAAa,GAAG,SAAH,GAAe;EAD1B,CAJA;EAQlB,IAAI,QAAQ,KAAK,OAAb,IAAwB;IAC1B,CAAC,KAAK,WAAA,CAAA,kBAAkB,GAAxB,GAA8B;EADJ,CAA5B,CARkB;EAWlB,IAAI,QAAQ,KAAK,cAAb,IAA+B;IACjC,CAAC,KAAK,WAAA,CAAA,iBAAiB,KAAK,QAAQ,EAApC,GAAyC;EADR,CAAnC;AAXkB,CAN2B,CAAxC;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourcesContent":["import { defaultOptions, FOCUS_VISIBLE_ATTR, FOCUS_WITHIN_ATTR } from './constants';\nimport type { GriffelStyle } from '@griffel/react';\n\nexport interface CreateCustomFocusIndicatorStyleOptions {\n selector?: 'focus' | 'focus-within';\n /**\n * Enables the browser default outline style\n * @default false\n */\n enableOutline?: boolean;\n}\n\n/**\n * Creates a style for @see makeStyles that includes the necessary selectors for focus.\n * Should be used only when @see createFocusOutlineStyle does not fit requirements\n *\n * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes\n * @param options - Configure the style of the focus outline\n */\nexport const createCustomFocusIndicatorStyle = (\n style: GriffelStyle,\n {\n selector = defaultOptions.selector,\n enableOutline = false,\n }: CreateCustomFocusIndicatorStyleOptions = defaultOptions,\n): GriffelStyle => ({\n ':focus': {\n outlineStyle: enableOutline ? undefined : 'none',\n },\n ':focus-visible': {\n outlineStyle: enableOutline ? undefined : 'none',\n },\n\n ...(selector === 'focus' && {\n [`&[${FOCUS_VISIBLE_ATTR}]`]: style,\n }),\n ...(selector === 'focus-within' && {\n [`&[${FOCUS_WITHIN_ATTR}]:${selector}`]: style,\n }),\n});\n"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-tabster",
3
- "version": "0.0.0-nightly-20221019-0421.1",
3
+ "version": "0.0.0-nightly-20221020-0424.1",
4
4
  "description": "Utilities for focus management and facade for tabster",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@griffel/react": "^1.4.1",
35
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20221019-0421.1",
36
- "@fluentui/react-theme": "0.0.0-nightly-20221019-0421.1",
37
- "@fluentui/react-utilities": "0.0.0-nightly-20221019-0421.1",
35
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20221020-0424.1",
36
+ "@fluentui/react-theme": "0.0.0-nightly-20221020-0424.1",
37
+ "@fluentui/react-utilities": "0.0.0-nightly-20221020-0424.1",
38
38
  "keyborg": "^1.2.1",
39
39
  "tabster": "^2.1.2",
40
40
  "tslib": "^2.1.0"