@fluentui/react-tabster 0.0.0-nightlyca6ef2bc8e20220105.1 → 0.0.0-nightlyd45ba4664620220211.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,70 @@
2
2
  "name": "@fluentui/react-tabster",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 05 Jan 2022 04:18:37 GMT",
6
- "tag": "@fluentui/react-tabster_v0.0.0-nightlyca6ef2bc8e20220105.1",
7
- "version": "0.0.0-nightlyca6ef2bc8e20220105.1",
5
+ "date": "Fri, 11 Feb 2022 04:15:29 GMT",
6
+ "tag": "@fluentui/react-tabster_v0.0.0-nightlyd45ba4664620220211.1",
7
+ "version": "0.0.0-nightlyd45ba4664620220211.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-tabster",
13
- "commit": "6b7aa2d681aba265af6ba17a7eff9012a967ddcb",
13
+ "commit": "7a8e7f5eaff83b67d7307566347303c32157ff60",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-tabster",
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd45ba4664620220211.1",
20
+ "commit": "7a8e7f5eaff83b67d7307566347303c32157ff60"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-tabster",
25
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyd45ba4664620220211.1",
26
+ "commit": "7a8e7f5eaff83b67d7307566347303c32157ff60"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Thu, 10 Feb 2022 08:50:55 GMT",
33
+ "tag": "@fluentui/react-tabster_v9.0.0-rc.1",
34
+ "version": "9.0.0-rc.1",
35
+ "comments": {
36
+ "none": [
37
+ {
38
+ "author": "martinhochel@microsoft.com",
39
+ "package": "@fluentui/react-tabster",
40
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
41
+ "comment": "chore: use storybook runner for all vNext packages"
42
+ },
43
+ {
44
+ "author": "email not defined",
45
+ "package": "@fluentui/react-tabster",
46
+ "commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
47
+ "comment": "Add workaround for cypress bug"
48
+ },
49
+ {
50
+ "author": "olfedias@microsoft.com",
51
+ "package": "@fluentui/react-tabster",
52
+ "commit": "71ff89870b52cd0e2319a5d568603a710c3ad367",
53
+ "comment": "update tooling configs"
54
+ },
55
+ {
56
+ "author": "lingfangao@hotmail.com",
57
+ "package": "@fluentui/react-tabster",
58
+ "commit": "989c43132491b61ed7c6da70100ca4f9aac8173a",
59
+ "comment": "Fix version mismatches"
60
+ },
61
+ {
62
+ "author": "olfedias@microsoft.com",
63
+ "package": "@fluentui/react-tabster",
64
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
65
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
66
+ }
67
+ ],
68
+ "prerelease": [
16
69
  {
17
70
  "author": "lingfangao@hotmail.com",
18
71
  "package": "@fluentui/react-tabster",
@@ -28,52 +81,50 @@
28
81
  {
29
82
  "author": "olfedias@microsoft.com",
30
83
  "package": "@fluentui/react-tabster",
31
- "commit": "a76afe26daad901ff5458ffdda7e66e600d5bcac",
32
- "comment": "use new types from makeStyles core"
84
+ "commit": "ebc62b16de199691794df12080d89b77979d1131",
85
+ "comment": "use Griffel packages"
33
86
  },
34
87
  {
35
- "author": "olfedias@microsoft.com",
88
+ "author": "lingfangao@hotmail.com",
36
89
  "package": "@fluentui/react-tabster",
37
- "commit": "967d6b74cf0507685a24e0cfaa8c7b9d52a351e1",
38
- "comment": "update styles to not use CSS shorthands"
90
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
91
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
39
92
  },
40
93
  {
41
- "author": "beachball",
94
+ "author": "olfedias@microsoft.com",
42
95
  "package": "@fluentui/react-tabster",
43
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyca6ef2bc8e20220105.1",
44
- "commit": "6b7aa2d681aba265af6ba17a7eff9012a967ddcb"
96
+ "commit": "a76afe26daad901ff5458ffdda7e66e600d5bcac",
97
+ "comment": "use new types from makeStyles core"
45
98
  },
46
99
  {
47
- "author": "beachball",
100
+ "author": "Humberto.Morimoto@microsoft.com",
48
101
  "package": "@fluentui/react-tabster",
49
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyca6ef2bc8e20220105.1",
50
- "commit": "6b7aa2d681aba265af6ba17a7eff9012a967ddcb"
102
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
103
+ "comment": "react-tabster: Replacing use of functions in makeStyles with direct use of tokens."
51
104
  },
52
105
  {
53
- "author": "beachball",
106
+ "author": "lingfangao@hotmail.com",
54
107
  "package": "@fluentui/react-tabster",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyca6ef2bc8e20220105.1",
56
- "commit": "6b7aa2d681aba265af6ba17a7eff9012a967ddcb"
108
+ "commit": "ff9ad1d4fe5682173c497f6ddf0ee1d7bddd6800",
109
+ "comment": "chore: bump tabster to 1.1.1 - removes IE11 support"
57
110
  },
58
111
  {
59
- "author": "beachball",
112
+ "author": "olfedias@microsoft.com",
60
113
  "package": "@fluentui/react-tabster",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyca6ef2bc8e20220105.1",
62
- "commit": "6b7aa2d681aba265af6ba17a7eff9012a967ddcb"
63
- }
64
- ],
65
- "none": [
114
+ "commit": "967d6b74cf0507685a24e0cfaa8c7b9d52a351e1",
115
+ "comment": "update styles to not use CSS shorthands"
116
+ },
66
117
  {
67
- "author": "olfedias@microsoft.com",
118
+ "author": "beachball",
68
119
  "package": "@fluentui/react-tabster",
69
- "commit": "71ff89870b52cd0e2319a5d568603a710c3ad367",
70
- "comment": "update tooling configs"
120
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
121
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
71
122
  },
72
123
  {
73
- "author": "lingfangao@hotmail.com",
124
+ "author": "beachball",
74
125
  "package": "@fluentui/react-tabster",
75
- "commit": "989c43132491b61ed7c6da70100ca4f9aac8173a",
76
- "comment": "Fix version mismatches"
126
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
127
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
77
128
  }
78
129
  ]
79
130
  }
package/CHANGELOG.md CHANGED
@@ -1,25 +1,37 @@
1
1
  # Change Log - @fluentui/react-tabster
2
2
 
3
- This log was last generated on Wed, 05 Jan 2022 04:18:37 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 11 Feb 2022 04:15:29 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyca6ef2bc8e20220105.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightlyca6ef2bc8e20220105.1)
7
+ ## [0.0.0-nightlyd45ba4664620220211.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v0.0.0-nightlyd45ba4664620220211.1)
8
8
 
9
- Wed, 05 Jan 2022 04:18:37 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-beta.5..@fluentui/react-tabster_v0.0.0-nightlyca6ef2bc8e20220105.1)
9
+ Fri, 11 Feb 2022 04:15:29 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-rc.1..@fluentui/react-tabster_v0.0.0-nightlyd45ba4664620220211.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/7a8e7f5eaff83b67d7307566347303c32157ff60) by email not defined)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd45ba4664620220211.1 ([commit](https://github.com/microsoft/fluentui/commit/7a8e7f5eaff83b67d7307566347303c32157ff60) by beachball)
16
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyd45ba4664620220211.1 ([commit](https://github.com/microsoft/fluentui/commit/7a8e7f5eaff83b67d7307566347303c32157ff60) by beachball)
17
+
18
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-rc.1)
19
+
20
+ Thu, 10 Feb 2022 08:50:55 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-beta.5..@fluentui/react-tabster_v9.0.0-rc.1)
11
22
 
12
23
  ### Changes
13
24
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6b7aa2d681aba265af6ba17a7eff9012a967ddcb) by email not defined)
15
25
  - feat: Support `options` for `findNextFocusable` and `findPrevFocusable` focus finders ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
16
26
  - chore: Bump tabster and keyborg versions ([PR #20889](https://github.com/microsoft/fluentui/pull/20889) by lingfangao@hotmail.com)
27
+ - use Griffel packages ([PR #21419](https://github.com/microsoft/fluentui/pull/21419) by olfedias@microsoft.com)
28
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
17
29
  - use new types from makeStyles core ([PR #20786](https://github.com/microsoft/fluentui/pull/20786) by olfedias@microsoft.com)
30
+ - react-tabster: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
31
+ - chore: bump tabster to 1.1.1 - removes IE11 support ([PR #21319](https://github.com/microsoft/fluentui/pull/21319) by lingfangao@hotmail.com)
18
32
  - update styles to not use CSS shorthands ([PR #20842](https://github.com/microsoft/fluentui/pull/20842) by olfedias@microsoft.com)
19
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyca6ef2bc8e20220105.1 ([commit](https://github.com/microsoft/fluentui/commit/6b7aa2d681aba265af6ba17a7eff9012a967ddcb) by beachball)
20
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyca6ef2bc8e20220105.1 ([commit](https://github.com/microsoft/fluentui/commit/6b7aa2d681aba265af6ba17a7eff9012a967ddcb) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightlyca6ef2bc8e20220105.1 ([commit](https://github.com/microsoft/fluentui/commit/6b7aa2d681aba265af6ba17a7eff9012a967ddcb) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyca6ef2bc8e20220105.1 ([commit](https://github.com/microsoft/fluentui/commit/6b7aa2d681aba265af6ba17a7eff9012a967ddcb) by beachball)
33
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
34
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
23
35
 
24
36
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-beta.5)
25
37
 
@@ -1,16 +1,14 @@
1
- import type { MakeStylesStyle } from '@fluentui/react-make-styles';
2
- import type { MakeStylesStyleRule } from '@fluentui/react-make-styles';
1
+ import type { GriffelStyle } from '@griffel/react';
3
2
  import type { RefObject } from 'react';
4
- import type { Theme } from '@fluentui/react-theme';
5
3
  import { Types } from 'tabster';
6
4
 
7
5
  /**
8
- * Creates a style rule for @see makeStyles that includes the necessary selectors for focus.
6
+ * Creates a style for @see makeStyles that includes the necessary selectors for focus.
9
7
  * Should be used only when @see createFocusOutlineStyle does not fit requirements
10
8
  *
11
- * @param rule - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
9
+ * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
12
10
  */
13
- export declare const createCustomFocusIndicatorStyle: (rule: MakeStylesStyleRule<Theme>, options?: CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyleRule<Theme>;
11
+ export declare const createCustomFocusIndicatorStyle: (style: GriffelStyle, options?: CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
14
12
 
15
13
  export declare interface CreateFocusIndicatorStyleRuleOptions {
16
14
  selector?: 'focus' | 'focus-within';
@@ -24,9 +22,9 @@ export declare interface CreateFocusIndicatorStyleRuleOptions {
24
22
  * @param options - Configure the style of the focus outline
25
23
  * @returns focus outline styles object for @see makeStyles
26
24
  */
27
- export declare const createFocusOutlineStyle: (theme: Theme, options?: {
25
+ export declare const createFocusOutlineStyle: (options?: {
28
26
  style: Partial<FocusOutlineStyleOptions>;
29
- } & CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyle;
27
+ } & CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
30
28
 
31
29
  export declare type FocusOutlineOffset = Record<'top' | 'bottom' | 'left' | 'right', string>;
32
30
 
@@ -1,5 +1,4 @@
1
- import type { Theme } from '@fluentui/react-theme';
2
- import type { MakeStylesStyle, MakeStylesStyleRule } from '@fluentui/react-make-styles';
1
+ import type { GriffelStyle } from '@griffel/react';
3
2
  export declare type FocusOutlineOffset = Record<'top' | 'bottom' | 'left' | 'right', string>;
4
3
  export declare type FocusOutlineStyleOptions = {
5
4
  /**
@@ -22,13 +21,13 @@ export interface CreateFocusIndicatorStyleRuleOptions {
22
21
  * @param options - Configure the style of the focus outline
23
22
  * @returns focus outline styles object for @see makeStyles
24
23
  */
25
- export declare const createFocusOutlineStyle: (theme: Theme, options?: {
24
+ export declare const createFocusOutlineStyle: (options?: {
26
25
  style: Partial<FocusOutlineStyleOptions>;
27
- } & CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyle;
26
+ } & CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
28
27
  /**
29
- * Creates a style rule for @see makeStyles that includes the necessary selectors for focus.
28
+ * Creates a style for @see makeStyles that includes the necessary selectors for focus.
30
29
  * Should be used only when @see createFocusOutlineStyle does not fit requirements
31
30
  *
32
- * @param rule - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
31
+ * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
33
32
  */
34
- export declare const createCustomFocusIndicatorStyle: (rule: MakeStylesStyleRule<Theme>, options?: CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyleRule<Theme>;
33
+ export declare const createCustomFocusIndicatorStyle: (style: GriffelStyle, options?: CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
@@ -1,3 +1,4 @@
1
+ import { tokens } from '@fluentui/react-theme';
1
2
  import { KEYBOARD_NAV_SELECTOR } from '../symbols';
2
3
  /**
3
4
  * NOTE: the element with the focus outline needs to have `position: relative` so that the
@@ -52,7 +53,7 @@ const defaultOptions = {
52
53
  * @returns focus outline styles object for @see makeStyles
53
54
  */
54
55
 
55
- export const createFocusOutlineStyle = (theme, options = {
56
+ export const createFocusOutlineStyle = (options = {
56
57
  style: {},
57
58
  ...defaultOptions
58
59
  }) => ({
@@ -60,24 +61,24 @@ export const createFocusOutlineStyle = (theme, options = {
60
61
  outlineStyle: 'none'
61
62
  },
62
63
  [`${KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: getFocusOutlineStyles({
63
- outlineColor: theme.colorStrokeFocus2,
64
- outlineRadius: theme.borderRadiusMedium,
65
- // FIXME: theme.global.strokeWidth.thick causes some weird bugs
64
+ outlineColor: tokens.colorStrokeFocus2,
65
+ outlineRadius: tokens.borderRadiusMedium,
66
+ // FIXME: tokens.strokeWidthThick causes some weird bugs
66
67
  outlineWidth: '2px',
67
68
  ...options.style
68
69
  })
69
70
  });
70
71
  /**
71
- * Creates a style rule for @see makeStyles that includes the necessary selectors for focus.
72
+ * Creates a style for @see makeStyles that includes the necessary selectors for focus.
72
73
  * Should be used only when @see createFocusOutlineStyle does not fit requirements
73
74
  *
74
- * @param rule - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
75
+ * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
75
76
  */
76
77
 
77
- export const createCustomFocusIndicatorStyle = (rule, options = defaultOptions) => theme => ({
78
+ export const createCustomFocusIndicatorStyle = (style, options = defaultOptions) => ({
78
79
  ':focus-visible': {
79
80
  outlineStyle: 'none'
80
81
  },
81
- [`${KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: typeof rule === 'function' ? rule(theme) : rule
82
+ [`${KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: style
82
83
  });
83
84
  //# sourceMappingURL=useFocusIndicatorStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useFocusIndicatorStyle.ts"],"names":[],"mappings":"AAEA,SAAS,qBAAT,QAAsC,YAAtC;AAcA;;;;;;AAMG;;AACH,MAAM,qBAAqB,GAAI,OAAD,IAAsC;;;AAClE,QAAM;AAAE,IAAA,aAAF;AAAiB,IAAA,YAAjB;AAA+B,IAAA,aAA/B;AAA8C,IAAA;AAA9C,MAA+D,OAArE;AAEA,QAAM,gBAAgB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,KAAA,CAArC,GAAqC,EAAA,CAAE,GAAvC,KAA8C,aAAvE;AACA,QAAM,mBAAmB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,KAAA,CAArC,GAAqC,EAAA,CAAE,MAAvC,KAAiD,aAA7E;AACA,QAAM,iBAAiB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,KAAA,CAArC,GAAqC,EAAA,CAAE,IAAvC,KAA+C,aAAzE;AACA,QAAM,kBAAkB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,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qBAAqB,KAAK,OAAO,CAAC,QAAR,IAAoB,cAAc,CAAC,QAAQ,EAAzE,GAA8E,qBAAqB,CAAC;AAClG,IAAA,YAAY,EAAE,MAAM,CAAC,iBAD6E;AAElG,IAAA,aAAa,EAAE,MAAM,CAAC,kBAF4E;AAGlG;AACA,IAAA,YAAY,EAAE,KAJoF;AAKlG,OAAG,OAAO,CAAC;AALuF,GAAD;AAJjF,CAJmB,CAAhC;AAiBP;;;;;AAKG;;AACH,OAAO,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C,OAAA,GAAgD,cAFH,MAG3B;AAClB,oBAAkB;AAChB,IAAA,YAAY,EAAE;AADE,GADA;AAIlB,GAAC,GAAG,qBAAqB,KAAK,OAAO,CAAC,QAAR,IAAoB,cAAc,CAAC,QAAQ,EAAzE,GAA8E;AAJ5D,CAH2B,CAAxC","sourceRoot":""}
@@ -1,5 +1,4 @@
1
- import type { Theme } from '@fluentui/react-theme';
2
- import type { MakeStylesStyle, MakeStylesStyleRule } from '@fluentui/react-make-styles';
1
+ import type { GriffelStyle } from '@griffel/react';
3
2
  export declare type FocusOutlineOffset = Record<'top' | 'bottom' | 'left' | 'right', string>;
4
3
  export declare type FocusOutlineStyleOptions = {
5
4
  /**
@@ -22,13 +21,13 @@ export interface CreateFocusIndicatorStyleRuleOptions {
22
21
  * @param options - Configure the style of the focus outline
23
22
  * @returns focus outline styles object for @see makeStyles
24
23
  */
25
- export declare const createFocusOutlineStyle: (theme: Theme, options?: {
24
+ export declare const createFocusOutlineStyle: (options?: {
26
25
  style: Partial<FocusOutlineStyleOptions>;
27
- } & CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyle;
26
+ } & CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
28
27
  /**
29
- * Creates a style rule for @see makeStyles that includes the necessary selectors for focus.
28
+ * Creates a style for @see makeStyles that includes the necessary selectors for focus.
30
29
  * Should be used only when @see createFocusOutlineStyle does not fit requirements
31
30
  *
32
- * @param rule - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
31
+ * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
33
32
  */
34
- export declare const createCustomFocusIndicatorStyle: (rule: MakeStylesStyleRule<Theme>, options?: CreateFocusIndicatorStyleRuleOptions) => MakeStylesStyleRule<Theme>;
33
+ export declare const createCustomFocusIndicatorStyle: (style: GriffelStyle, options?: CreateFocusIndicatorStyleRuleOptions) => GriffelStyle;
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.createCustomFocusIndicatorStyle = exports.createFocusOutlineStyle = void 0;
7
7
 
8
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
+
8
10
  const symbols_1 = /*#__PURE__*/require("../symbols");
9
11
  /**
10
12
  * NOTE: the element with the focus outline needs to have `position: relative` so that the
@@ -60,7 +62,7 @@ const defaultOptions = {
60
62
  * @returns focus outline styles object for @see makeStyles
61
63
  */
62
64
 
63
- const createFocusOutlineStyle = (theme, options = {
65
+ const createFocusOutlineStyle = (options = {
64
66
  style: {},
65
67
  ...defaultOptions
66
68
  }) => ({
@@ -68,9 +70,9 @@ const createFocusOutlineStyle = (theme, options = {
68
70
  outlineStyle: 'none'
69
71
  },
70
72
  [`${symbols_1.KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: getFocusOutlineStyles({
71
- outlineColor: theme.colorStrokeFocus2,
72
- outlineRadius: theme.borderRadiusMedium,
73
- // FIXME: theme.global.strokeWidth.thick causes some weird bugs
73
+ outlineColor: react_theme_1.tokens.colorStrokeFocus2,
74
+ outlineRadius: react_theme_1.tokens.borderRadiusMedium,
75
+ // FIXME: tokens.strokeWidthThick causes some weird bugs
74
76
  outlineWidth: '2px',
75
77
  ...options.style
76
78
  })
@@ -78,17 +80,17 @@ const createFocusOutlineStyle = (theme, options = {
78
80
 
79
81
  exports.createFocusOutlineStyle = createFocusOutlineStyle;
80
82
  /**
81
- * Creates a style rule for @see makeStyles that includes the necessary selectors for focus.
83
+ * Creates a style for @see makeStyles that includes the necessary selectors for focus.
82
84
  * Should be used only when @see createFocusOutlineStyle does not fit requirements
83
85
  *
84
- * @param rule - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
86
+ * @param style - styling applied on focus, defaults to @see getDefaultFocusOutlineStyes
85
87
  */
86
88
 
87
- const createCustomFocusIndicatorStyle = (rule, options = defaultOptions) => theme => ({
89
+ const createCustomFocusIndicatorStyle = (style, options = defaultOptions) => ({
88
90
  ':focus-visible': {
89
91
  outlineStyle: 'none'
90
92
  },
91
- [`${symbols_1.KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: typeof rule === 'function' ? rule(theme) : rule
93
+ [`${symbols_1.KEYBOARD_NAV_SELECTOR} :${options.selector || defaultOptions.selector}`]: style
92
94
  });
93
95
 
94
96
  exports.createCustomFocusIndicatorStyle = createCustomFocusIndicatorStyle;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useFocusIndicatorStyle.ts"],"names":[],"mappings":";;;;;;;AAEA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAcA;;;;;;AAMG;;;AACH,MAAM,qBAAqB,GAAI,OAAD,IAAsC;;;AAClE,QAAM;AAAE,IAAA,aAAF;AAAiB,IAAA,YAAjB;AAA+B,IAAA,aAA/B;AAA8C,IAAA;AAA9C,MAA+D,OAArE;AAEA,QAAM,gBAAgB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,KAAA,CAArC,GAAqC,EAAA,CAAE,GAAvC,KAA8C,aAAvE;AACA,QAAM,mBAAmB,GAAG,CAAA,CAAA,EAAA,GAAC,aAAD,MAAqC,IAArC,IAAqC,EAAA,KAAA,KAAA,CAArC,GAAqC,KAAA,CAArC,GAAqC,EAAA,CAAE,MAAvC,KAAiD,aAA7E;AACA,QAAM,iBAAiB,GAAG,CAAA,CAAA,EAA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AAsC,cAAc,YAAY,MAAM,kBAAkB;AAfvF;AAFL,GAAP;AAoBD,CA5BD;;AAkCA,MAAM,cAAc,GAAyC;AAC3D,EAAA,QAAQ,EAAE;AADiD,CAA7D;AAIA;;;;;;;AAOG;;AACI,MAAM,uBAAuB,GAAG,CACrC,OAAA,GAE2C;AAAE,EAAA,KAAK,EAAE,EAAT;AAAa,KAAG;AAAhB,CAHN,MAInB;AAClB,oBAAkB;AAChB,IAAA,YAAY,EAAE;AADE,GADA;AAIlB,GAAC,GAAG,SAAA,CAAA,qBAAqB,KAAK,OAAO,CAAC,QAAR,IAAoB,cAAc,CAAC,QAAQ,EAAzE,GAA8E,qBAAqB,CAAC;AAClG,IAAA,YAAY,EAAE,aAAA,CAAA,MAAA,CAAO,iBAD6E;AAElG,IAAA,aAAa,EAAE,aAAA,CAAA,MAAA,CAAO,kBAF4E;AAGlG;AACA,IAAA,YAAY,EAAE,KAJoF;AAKlG,OAAG,OAAO,CAAC;AALuF,GAAD;AAJjF,CAJmB,CAAhC;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB;AAiBb;;;;;AAKG;;AACI,MAAM,+BAA+B,GAAG,CAC7C,KAD6C,EAE7C,OAAA,GAAgD,cAFH,MAG3B;AAClB,oBAAkB;AAChB,IAAA,YAAY,EAAE;AADE,GADA;AAIlB,GAAC,GAAG,SAAA,CAAA,qBAAqB,KAAK,OAAO,CAAC,QAAR,IAAoB,cAAc,CAAC,QAAQ,EAAzE,GAA8E;AAJ5D,CAH2B,CAAxC;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-tabster",
3
- "version": "0.0.0-nightlyca6ef2bc8e20220105.1",
3
+ "version": "0.0.0-nightlyd45ba4664620220211.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",
@@ -17,7 +17,7 @@
17
17
  "code-style": "just-scripts code-style",
18
18
  "just": "just-scripts",
19
19
  "lint": "just-scripts lint",
20
- "storybook": "start-storybook",
20
+ "storybook": "node ../../scripts/storybook/runner",
21
21
  "test": "jest --passWithNoTests",
22
22
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
23
23
  "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-tabster/src && yarn docs",
@@ -32,15 +32,14 @@
32
32
  "@types/react-test-renderer": "^16.0.0",
33
33
  "react": "16.8.6",
34
34
  "react-dom": "16.8.6",
35
- "react-test-renderer": "^16.3.0",
36
- "@fluentui/babel-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1"
35
+ "react-test-renderer": "^16.3.0"
37
36
  },
38
37
  "dependencies": {
39
- "@fluentui/react-make-styles": "0.0.0-nightlyca6ef2bc8e20220105.1",
40
- "@fluentui/react-shared-contexts": "0.0.0-nightlyca6ef2bc8e20220105.1",
41
- "@fluentui/react-utilities": "0.0.0-nightlyca6ef2bc8e20220105.1",
42
- "keyborg": "^1.1.0-alpha.4",
43
- "tabster": "^1.1.0-alpha.4",
38
+ "@griffel/react": "1.0.0",
39
+ "@fluentui/react-shared-contexts": "0.0.0-nightlyd45ba4664620220211.1",
40
+ "@fluentui/react-utilities": "0.0.0-nightlyd45ba4664620220211.1",
41
+ "keyborg": "^1.1.0",
42
+ "tabster": "^1.1.1",
44
43
  "tslib": "^2.1.0"
45
44
  },
46
45
  "peerDependencies": {