@fluentui/react-tabs 9.0.0-beta.9 → 9.0.0-rc.4

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 (74) hide show
  1. package/CHANGELOG.json +298 -6
  2. package/CHANGELOG.md +95 -10
  3. package/README.md +47 -1
  4. package/dist/{react-tabs.d.ts → index.d.ts} +46 -55
  5. package/{lib → dist}/tsdoc-metadata.json +0 -0
  6. package/lib/components/Tab/Tab.types.js.map +1 -1
  7. package/lib/components/Tab/useTab.js +3 -0
  8. package/lib/components/Tab/useTab.js.map +1 -1
  9. package/lib/components/Tab/useTabAnimatedIndicator.js +6 -6
  10. package/lib/components/Tab/useTabAnimatedIndicator.js.map +1 -1
  11. package/lib/components/Tab/useTabStyles.js +117 -181
  12. package/lib/components/Tab/useTabStyles.js.map +1 -1
  13. package/lib/components/TabList/TabList.types.js.map +1 -1
  14. package/lib/components/TabList/useTabList.js +2 -1
  15. package/lib/components/TabList/useTabList.js.map +1 -1
  16. package/lib/components/TabList/useTabListStyles.js +10 -5
  17. package/lib/components/TabList/useTabListStyles.js.map +1 -1
  18. package/lib/index.js +2 -2
  19. package/lib/index.js.map +1 -1
  20. package/lib-commonjs/components/Tab/useTab.js +3 -0
  21. package/lib-commonjs/components/Tab/useTab.js.map +1 -1
  22. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js +7 -7
  23. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js.map +1 -1
  24. package/lib-commonjs/components/Tab/useTabStyles.js +117 -182
  25. package/lib-commonjs/components/Tab/useTabStyles.js.map +1 -1
  26. package/lib-commonjs/components/TabList/useTabList.js +2 -1
  27. package/lib-commonjs/components/TabList/useTabList.js.map +1 -1
  28. package/lib-commonjs/components/TabList/useTabListStyles.js +11 -6
  29. package/lib-commonjs/components/TabList/useTabListStyles.js.map +1 -1
  30. package/lib-commonjs/index.js +1 -13
  31. package/lib-commonjs/index.js.map +1 -1
  32. package/package.json +11 -11
  33. package/lib/Tab.d.ts +0 -1
  34. package/lib/TabList.d.ts +0 -1
  35. package/lib/components/Tab/Tab.d.ts +0 -6
  36. package/lib/components/Tab/Tab.types.d.ts +0 -61
  37. package/lib/components/Tab/index.d.ts +0 -6
  38. package/lib/components/Tab/renderTab.d.ts +0 -5
  39. package/lib/components/Tab/useTab.d.ts +0 -12
  40. package/lib/components/Tab/useTabAnimatedIndicator.d.ts +0 -5
  41. package/lib/components/Tab/useTabStyles.d.ts +0 -8
  42. package/lib/components/TabList/TabList.d.ts +0 -6
  43. package/lib/components/TabList/TabList.types.d.ts +0 -104
  44. package/lib/components/TabList/TabListContext.d.ts +0 -3
  45. package/lib/components/TabList/index.d.ts +0 -5
  46. package/lib/components/TabList/renderTabList.d.ts +0 -5
  47. package/lib/components/TabList/useTabList.d.ts +0 -12
  48. package/lib/components/TabList/useTabListContextValues.d.ts +0 -2
  49. package/lib/components/TabList/useTabListStyles.d.ts +0 -8
  50. package/lib/index.d.ts +0 -4
  51. package/lib/tab.constants.d.ts +0 -62
  52. package/lib/tab.constants.js +0 -68
  53. package/lib/tab.constants.js.map +0 -1
  54. package/lib-commonjs/Tab.d.ts +0 -1
  55. package/lib-commonjs/TabList.d.ts +0 -1
  56. package/lib-commonjs/components/Tab/Tab.d.ts +0 -6
  57. package/lib-commonjs/components/Tab/Tab.types.d.ts +0 -61
  58. package/lib-commonjs/components/Tab/index.d.ts +0 -6
  59. package/lib-commonjs/components/Tab/renderTab.d.ts +0 -5
  60. package/lib-commonjs/components/Tab/useTab.d.ts +0 -12
  61. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.d.ts +0 -5
  62. package/lib-commonjs/components/Tab/useTabStyles.d.ts +0 -8
  63. package/lib-commonjs/components/TabList/TabList.d.ts +0 -6
  64. package/lib-commonjs/components/TabList/TabList.types.d.ts +0 -104
  65. package/lib-commonjs/components/TabList/TabListContext.d.ts +0 -3
  66. package/lib-commonjs/components/TabList/index.d.ts +0 -5
  67. package/lib-commonjs/components/TabList/renderTabList.d.ts +0 -5
  68. package/lib-commonjs/components/TabList/useTabList.d.ts +0 -12
  69. package/lib-commonjs/components/TabList/useTabListContextValues.d.ts +0 -2
  70. package/lib-commonjs/components/TabList/useTabListStyles.d.ts +0 -8
  71. package/lib-commonjs/index.d.ts +0 -4
  72. package/lib-commonjs/tab.constants.d.ts +0 -62
  73. package/lib-commonjs/tab.constants.js +0 -75
  74. package/lib-commonjs/tab.constants.js.map +0 -1
@@ -1,61 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- /**
3
- * Any value that identifies a specific tab.
4
- */
5
- export declare type TabValue = unknown;
6
- export declare type TabSlots = {
7
- /**
8
- * Root of the component.
9
- */
10
- root: Slot<'button'>;
11
- /**
12
- * Icon that renders before the content.
13
- */
14
- icon?: Slot<'span'>;
15
- /**
16
- * Component children are placed in this slot
17
- * Avoid using the `children` property in this slot in favour of Component children whenever possible.
18
- */
19
- content: NonNullable<Slot<'span'>>;
20
- };
21
- declare type TabCommons = {
22
- /**
23
- * A tab can be set to disable interaction.
24
- * @default false
25
- */
26
- disabled?: boolean;
27
- /**
28
- * The value that identifies this tab when selected.
29
- */
30
- value: TabValue;
31
- };
32
- /**
33
- * Tab Props
34
- */
35
- export declare type TabProps = ComponentProps<Partial<TabSlots>> & TabCommons;
36
- /**
37
- * State used in rendering Tab
38
- */
39
- export declare type TabState = ComponentState<TabSlots> & Omit<TabCommons, 'disabled'> & Required<Pick<TabCommons, 'disabled'>> & {
40
- /**
41
- * A tab supports 'transparent' and 'subtle' appearance.
42
- */
43
- appearance?: 'transparent' | 'subtle';
44
- /**
45
- * A tab can have only an icon slot filled and no content.
46
- */
47
- iconOnly: boolean;
48
- /**
49
- * If this tab is selected
50
- */
51
- selected: boolean;
52
- /**
53
- * A tab can be either 'small' or 'medium' size.
54
- */
55
- size: 'small' | 'medium';
56
- /**
57
- * A tab can arrange its content based on if the tabs in the list are arranged vertically.
58
- */
59
- vertical: boolean;
60
- };
61
- export {};
@@ -1,6 +0,0 @@
1
- export * from './Tab';
2
- export * from './Tab.types';
3
- export * from './renderTab';
4
- export * from './useTab';
5
- export * from './useTabStyles';
6
- export * from './useTabAnimatedIndicator';
@@ -1,5 +0,0 @@
1
- import type { TabState } from './Tab.types';
2
- /**
3
- * Render the final JSX of Tab
4
- */
5
- export declare const renderTab_unstable: (state: TabState) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { TabProps, TabState } from './Tab.types';
3
- /**
4
- * Create the state required to render Tab.
5
- *
6
- * The returned state can be modified with hooks such as useTabStyles_unstable,
7
- * before being passed to renderTab_unstable.
8
- *
9
- * @param props - props from this instance of Tab
10
- * @param ref - reference to root HTMLElement of Tab
11
- */
12
- export declare const useTab_unstable: (props: TabProps, ref: React.Ref<HTMLElement>) => TabState;
@@ -1,5 +0,0 @@
1
- import type { TabState } from './Tab.types';
2
- /**
3
- * Adds additional styling to the active tab selection indicator to create a sliding animation.
4
- */
5
- export declare const useTabAnimatedIndicatorStyles_unstable: (state: TabState) => TabState;
@@ -1,8 +0,0 @@
1
- import type { TabSlots, TabState } from './Tab.types';
2
- import { SlotClassNames } from '@fluentui/react-utilities';
3
- export declare const tabClassNames: SlotClassNames<TabSlots>;
4
- export declare const tabClassName: string;
5
- /**
6
- * Apply styling to the Tab slots based on the state
7
- */
8
- export declare const useTabStyles_unstable: (state: TabState) => TabState;
@@ -1,6 +0,0 @@
1
- import type { TabListProps } from './TabList.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * A tab list provides single selection from a set of tabs.
5
- */
6
- export declare const TabList: ForwardRefComponent<TabListProps>;
@@ -1,104 +0,0 @@
1
- import * as React from 'react';
2
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
- import { TabValue } from '../Tab/Tab.types';
4
- export declare type TabRegisterData = {
5
- /**
6
- * The value of the tab.
7
- */
8
- value: TabValue;
9
- /**
10
- * The reference to the tab HTML element.
11
- */
12
- ref: React.RefObject<HTMLElement>;
13
- };
14
- export declare type RegisterTabEventHandler = (data: TabRegisterData) => void;
15
- export declare type SelectTabData = {
16
- /**
17
- * The value of the selected tab.
18
- */
19
- value: TabValue;
20
- };
21
- export declare type SelectTabEvent<E = HTMLElement> = React.MouseEvent<E> | React.KeyboardEvent<E>;
22
- export declare type SelectTabEventHandler = (event: SelectTabEvent, data: SelectTabData) => void;
23
- export declare type TabListSlots = {
24
- /**
25
- * The slot associated with the root element of this tab list.
26
- */
27
- root: Slot<'div'>;
28
- };
29
- declare type TabListCommons = {
30
- /**
31
- * A tab list can supports 'transparent' and 'subtle' appearance.
32
- *- 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
33
- *- 'transparent': No background and border styling
34
- * The appearance affects each of the contained tabs.
35
- * @default 'transparent'
36
- */
37
- appearance?: 'transparent' | 'subtle';
38
- /**
39
- * A tab list can be set to disable interaction.
40
- * @default false
41
- */
42
- disabled?: boolean;
43
- /**
44
- * Raised when a tab is selected.
45
- */
46
- onTabSelect?: SelectTabEventHandler;
47
- /**
48
- * The value of the currently selected tab.
49
- */
50
- selectedValue?: TabValue;
51
- /**
52
- * A tab list can be either 'small' or 'medium' size.
53
- * The size affects each of the contained tabs.
54
- * @default 'medium'
55
- */
56
- size?: 'small' | 'medium';
57
- /**
58
- * A tab list can arrange its tabs vertically.
59
- * @default false
60
- */
61
- vertical?: boolean;
62
- };
63
- /**
64
- * TabList Props
65
- */
66
- export declare type TabListProps = ComponentProps<TabListSlots> & TabListCommons & {
67
- /**
68
- * The value of the tab to be selected by default.
69
- * Typically useful when the selectedValue is uncontrolled.
70
- */
71
- defaultSelectedValue?: TabValue;
72
- };
73
- export declare type TabListContextValue = Pick<TabListCommons, 'onTabSelect' | 'selectedValue'> & Required<Pick<TabListCommons, 'appearance' | 'disabled' | 'size' | 'vertical'>> & {
74
- /** A callback to allow a tab to register itself with the tab list. */
75
- onRegister: RegisterTabEventHandler;
76
- /** A callback to allow a tab to unregister itself with the tab list. */
77
- onUnregister: RegisterTabEventHandler;
78
- /**
79
- * A callback to allow a tab to select itself when pressed.
80
- */
81
- onSelect: SelectTabEventHandler;
82
- /**
83
- * Gets the registered tab data along with current and previous selected values.
84
- */
85
- getRegisteredTabs: () => {
86
- selectedValue?: TabValue;
87
- previousSelectedValue?: TabValue;
88
- registeredTabs: Record<string, TabRegisterData>;
89
- };
90
- };
91
- /**
92
- * Context values used in rendering TabList.
93
- */
94
- export declare type TabListContextValues = {
95
- /**
96
- * The context of the tab list available to each tab.
97
- */
98
- tabList: TabListContextValue;
99
- };
100
- /**
101
- * State used in rendering TabList.
102
- */
103
- export declare type TabListState = ComponentState<Required<TabListSlots>> & TabListContextValue;
104
- export {};
@@ -1,3 +0,0 @@
1
- import type { Context } from '@fluentui/react-context-selector';
2
- import { TabListContextValue } from './TabList.types';
3
- export declare const TabListContext: Context<TabListContextValue>;
@@ -1,5 +0,0 @@
1
- export * from './TabList';
2
- export * from './TabList.types';
3
- export * from './renderTabList';
4
- export * from './useTabList';
5
- export * from './useTabListStyles';
@@ -1,5 +0,0 @@
1
- import type { TabListState, TabListContextValues } from './TabList.types';
2
- /**
3
- * Render the final JSX of TabList
4
- */
5
- export declare const renderTabList_unstable: (state: TabListState, contextValues: TabListContextValues) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { TabListProps, TabListState } from './TabList.types';
3
- /**
4
- * Create the state required to render TabList.
5
- *
6
- * The returned state can be modified with hooks such as useTabListStyles_unstable,
7
- * before being passed to renderTabList_unstable.
8
- *
9
- * @param props - props from this instance of TabList
10
- * @param ref - reference to root HTMLElement of TabList
11
- */
12
- export declare const useTabList_unstable: (props: TabListProps, ref: React.Ref<HTMLElement>) => TabListState;
@@ -1,2 +0,0 @@
1
- import { TabListContextValues, TabListState } from './TabList.types';
2
- export declare function useTabListContextValues(state: TabListState): TabListContextValues;
@@ -1,8 +0,0 @@
1
- import { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { TabListSlots, TabListState } from './TabList.types';
3
- export declare const tabListClassNames: SlotClassNames<TabListSlots>;
4
- export declare const tabListClassName: string;
5
- /**
6
- * Apply styling to the TabList slots based on the state
7
- */
8
- export declare const useTabListStyles_unstable: (state: TabListState) => TabListState;
@@ -1,4 +0,0 @@
1
- export type { TabProps, TabSlots, TabState, TabValue } from './Tab';
2
- export { renderTab_unstable, Tab, tabClassName, tabClassNames, useTabStyles_unstable, useTab_unstable } from './Tab';
3
- export type { TabRegisterData, RegisterTabEventHandler, SelectTabData, SelectTabEvent, SelectTabEventHandler, TabListContextValue, TabListContextValues, TabListProps, TabListSlots, TabListState, } from './TabList';
4
- export { renderTabList_unstable, TabList, tabListClassName, tabListClassNames, useTabListStyles_unstable, useTabList_unstable, } from './TabList';
@@ -1,62 +0,0 @@
1
- export declare const pendingContentSizeTokens: {
2
- body1: {
3
- fontSize: string;
4
- fontWeight: string;
5
- lineHeight: string;
6
- };
7
- body1Strong: {
8
- fontSize: string;
9
- fontWeight: string;
10
- lineHeight: string;
11
- };
12
- };
13
- export declare const pendingSpacingTokens: {
14
- none: string;
15
- xxs: string;
16
- xs: string;
17
- sNudge: string;
18
- s: string;
19
- mNudge: string;
20
- m: string;
21
- l: string;
22
- xl: string;
23
- xxl: string;
24
- xxxl: string;
25
- };
26
- export declare const pendingAnimationDurationTokens: {
27
- ultraFast: string;
28
- faster: string;
29
- fast: string;
30
- normal: string;
31
- slow: string;
32
- slower: string;
33
- ultraSlow: string;
34
- };
35
- export declare const pendingAnimationEasingTokens: {
36
- accelerateMax: string;
37
- accelerateMid: string;
38
- accelerateMin: string;
39
- declerateMax: string;
40
- decelerateMid: string;
41
- decelarateMin: string;
42
- maxEasyEase: string;
43
- easyEase: string;
44
- linear: string;
45
- };
46
- /**
47
- * Provides shared values between tab style hooks
48
- * useTabStyles
49
- * useTabAnimatedIndicator
50
- */
51
- export declare const tabIndicatorPadding: {
52
- mediumHorizontal: string;
53
- mediumVertical: string;
54
- smallHorizontal: string;
55
- smallVertical: string;
56
- };
57
- export declare const tabIndicatorStrokeWidths: {
58
- mediumHorizontal: string;
59
- mediumVertical: string;
60
- smallHorizontal: string;
61
- smallVertical: string;
62
- };
@@ -1,75 +0,0 @@
1
- "use strict"; // TODO: Constants prefixed with pending should be replaced with design tokens
2
- // These values were taken from the design token superset figma
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.tabIndicatorStrokeWidths = exports.tabIndicatorPadding = exports.pendingAnimationEasingTokens = exports.pendingAnimationDurationTokens = exports.pendingSpacingTokens = exports.pendingContentSizeTokens = void 0;
8
-
9
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
10
-
11
- exports.pendingContentSizeTokens = {
12
- // Only body sizes are defined here currently
13
- body1: {
14
- fontSize: react_theme_1.tokens.fontSizeBase300,
15
- fontWeight: react_theme_1.tokens.fontWeightRegular,
16
- lineHeight: react_theme_1.tokens.lineHeightBase300
17
- },
18
- body1Strong: {
19
- fontSize: react_theme_1.tokens.fontSizeBase300,
20
- fontWeight: react_theme_1.tokens.fontWeightSemibold,
21
- lineHeight: react_theme_1.tokens.lineHeightBase300
22
- }
23
- };
24
- exports.pendingSpacingTokens = {
25
- none: '0',
26
- xxs: '2px',
27
- xs: '4px',
28
- sNudge: '6px',
29
- s: '8px',
30
- mNudge: '10px',
31
- m: '12px',
32
- l: '16px',
33
- xl: '20px',
34
- xxl: '24px',
35
- xxxl: '32px'
36
- };
37
- exports.pendingAnimationDurationTokens = {
38
- ultraFast: '50ms',
39
- faster: '100ms',
40
- fast: '150ms',
41
- normal: '200ms',
42
- slow: '300ms',
43
- slower: '400ms',
44
- ultraSlow: '500ms'
45
- };
46
- exports.pendingAnimationEasingTokens = {
47
- accelerateMax: 'cubic-bezier(1,0,1,1)',
48
- accelerateMid: 'cubic-bezier(0.7,0,1,0.5)',
49
- accelerateMin: 'cubic-bezier(0.8,0,1,1)',
50
- declerateMax: 'cubic-bezier(0,0,0,1)',
51
- decelerateMid: 'cubic-bezier(0.1,0.9,0.2,1)',
52
- decelarateMin: 'cubic-bezier(0.33,0,0.1,1)',
53
- maxEasyEase: 'cubic-bezier(0.8,0,0.1,1)',
54
- easyEase: 'cubic-bezier(0.33,0,0.67,1)',
55
- linear: 'cubic-bezier(0,0,1,1)'
56
- };
57
- /**
58
- * Provides shared values between tab style hooks
59
- * useTabStyles
60
- * useTabAnimatedIndicator
61
- */
62
-
63
- exports.tabIndicatorPadding = {
64
- mediumHorizontal: exports.pendingSpacingTokens.m,
65
- mediumVertical: exports.pendingSpacingTokens.s,
66
- smallHorizontal: exports.pendingSpacingTokens.sNudge,
67
- smallVertical: exports.pendingSpacingTokens.xs
68
- };
69
- exports.tabIndicatorStrokeWidths = {
70
- mediumHorizontal: react_theme_1.tokens.strokeWidthThicker,
71
- mediumVertical: react_theme_1.tokens.strokeWidthThicker,
72
- smallHorizontal: react_theme_1.tokens.strokeWidthThick,
73
- smallVertical: react_theme_1.tokens.strokeWidthThicker
74
- };
75
- //# sourceMappingURL=tab.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["tab.constants.ts"],"names":[],"mappings":"cAAA;AACA;;;;;;;AAEA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEa,OAAA,CAAA,wBAAA,GAA2B;AACtC;AACA,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eADZ;AAEL,IAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAFd;AAGL,IAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAHd,GAF+B;AAOtC,EAAA,WAAW,EAAE;AACX,IAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eADN;AAEX,IAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,kBAFR;AAGX,IAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAHR;AAPyB,CAA3B;AAcA,OAAA,CAAA,oBAAA,GAAuB;AAClC,EAAA,IAAI,EAAE,GAD4B;AAElC,EAAA,GAAG,EAAE,KAF6B;AAGlC,EAAA,EAAE,EAAE,KAH8B;AAIlC,EAAA,MAAM,EAAE,KAJ0B;AAKlC,EAAA,CAAC,EAAE,KAL+B;AAMlC,EAAA,MAAM,EAAE,MAN0B;AAOlC,EAAA,CAAC,EAAE,MAP+B;AAQlC,EAAA,CAAC,EAAE,MAR+B;AASlC,EAAA,EAAE,EAAE,MAT8B;AAUlC,EAAA,GAAG,EAAE,MAV6B;AAWlC,EAAA,IAAI,EAAE;AAX4B,CAAvB;AAcA,OAAA,CAAA,8BAAA,GAAiC;AAC5C,EAAA,SAAS,EAAE,MADiC;AAE5C,EAAA,MAAM,EAAE,OAFoC;AAG5C,EAAA,IAAI,EAAE,OAHsC;AAI5C,EAAA,MAAM,EAAE,OAJoC;AAK5C,EAAA,IAAI,EAAE,OALsC;AAM5C,EAAA,MAAM,EAAE,OANoC;AAO5C,EAAA,SAAS,EAAE;AAPiC,CAAjC;AAUA,OAAA,CAAA,4BAAA,GAA+B;AAC1C,EAAA,aAAa,EAAE,uBAD2B;AAE1C,EAAA,aAAa,EAAE,2BAF2B;AAG1C,EAAA,aAAa,EAAE,yBAH2B;AAI1C,EAAA,YAAY,EAAE,uBAJ4B;AAK1C,EAAA,aAAa,EAAE,6BAL2B;AAM1C,EAAA,aAAa,EAAE,4BAN2B;AAO1C,EAAA,WAAW,EAAE,2BAP6B;AAQ1C,EAAA,QAAQ,EAAE,6BARgC;AAS1C,EAAA,MAAM,EAAE;AATkC,CAA/B;AAYb;;;;AAIG;;AACU,OAAA,CAAA,mBAAA,GAAsB;AACjC,EAAA,gBAAgB,EAAE,OAAA,CAAA,oBAAA,CAAqB,CADN;AAEjC,EAAA,cAAc,EAAE,OAAA,CAAA,oBAAA,CAAqB,CAFJ;AAGjC,EAAA,eAAe,EAAE,OAAA,CAAA,oBAAA,CAAqB,MAHL;AAIjC,EAAA,aAAa,EAAE,OAAA,CAAA,oBAAA,CAAqB;AAJH,CAAtB;AAOA,OAAA,CAAA,wBAAA,GAA2B;AACtC,EAAA,gBAAgB,EAAE,aAAA,CAAA,MAAA,CAAO,kBADa;AAEtC,EAAA,cAAc,EAAE,aAAA,CAAA,MAAA,CAAO,kBAFe;AAGtC,EAAA,eAAe,EAAE,aAAA,CAAA,MAAA,CAAO,gBAHc;AAItC,EAAA,aAAa,EAAE,aAAA,CAAA,MAAA,CAAO;AAJgB,CAA3B","sourcesContent":["// TODO: Constants prefixed with pending should be replaced with design tokens\n// These values were taken from the design token superset figma\n\nimport { tokens } from '@fluentui/react-theme';\n\nexport const pendingContentSizeTokens = {\n // Only body sizes are defined here currently\n body1: {\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: tokens.lineHeightBase300,\n },\n body1Strong: {\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: tokens.lineHeightBase300,\n },\n};\n\nexport const pendingSpacingTokens = {\n none: '0',\n xxs: '2px',\n xs: '4px',\n sNudge: '6px',\n s: '8px',\n mNudge: '10px',\n m: '12px',\n l: '16px',\n xl: '20px',\n xxl: '24px',\n xxxl: '32px',\n};\n\nexport const pendingAnimationDurationTokens = {\n ultraFast: '50ms',\n faster: '100ms',\n fast: '150ms',\n normal: '200ms',\n slow: '300ms',\n slower: '400ms',\n ultraSlow: '500ms',\n};\n\nexport const pendingAnimationEasingTokens = {\n accelerateMax: 'cubic-bezier(1,0,1,1)',\n accelerateMid: 'cubic-bezier(0.7,0,1,0.5)',\n accelerateMin: 'cubic-bezier(0.8,0,1,1)',\n declerateMax: 'cubic-bezier(0,0,0,1)',\n decelerateMid: 'cubic-bezier(0.1,0.9,0.2,1)',\n decelarateMin: 'cubic-bezier(0.33,0,0.1,1)',\n maxEasyEase: 'cubic-bezier(0.8,0,0.1,1)',\n easyEase: 'cubic-bezier(0.33,0,0.67,1)',\n linear: 'cubic-bezier(0,0,1,1)',\n};\n\n/**\n * Provides shared values between tab style hooks\n * useTabStyles\n * useTabAnimatedIndicator\n */\nexport const tabIndicatorPadding = {\n mediumHorizontal: pendingSpacingTokens.m,\n mediumVertical: pendingSpacingTokens.s,\n smallHorizontal: pendingSpacingTokens.sNudge,\n smallVertical: pendingSpacingTokens.xs,\n};\n\nexport const tabIndicatorStrokeWidths = {\n mediumHorizontal: tokens.strokeWidthThicker,\n mediumVertical: tokens.strokeWidthThicker,\n smallHorizontal: tokens.strokeWidthThick,\n smallVertical: tokens.strokeWidthThicker,\n};\n"],"sourceRoot":"../src/"}