@fluentui/react-tabs 9.5.2 → 9.6.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.md +32 -2
- package/dist/index.d.ts +6 -3
- package/lib/Tab.js.map +1 -1
- package/lib/TabList.js.map +1 -1
- package/lib/components/Tab/Tab.js.map +1 -1
- package/lib/components/Tab/Tab.types.js.map +1 -1
- package/lib/components/Tab/index.js.map +1 -1
- package/lib/components/Tab/renderTab.js.map +1 -1
- package/lib/components/Tab/useTab.js.map +1 -1
- package/lib/components/Tab/useTabAnimatedIndicator.styles.js +1 -2
- package/lib/components/Tab/useTabStyles.styles.js +293 -36
- package/lib/components/Tab/useTabStyles.styles.js.map +1 -1
- package/lib/components/TabList/TabList.js.map +1 -1
- package/lib/components/TabList/TabList.types.js.map +1 -1
- package/lib/components/TabList/TabListContext.js.map +1 -1
- package/lib/components/TabList/index.js.map +1 -1
- package/lib/components/TabList/renderTabList.js.map +1 -1
- package/lib/components/TabList/useTabList.js.map +1 -1
- package/lib/components/TabList/useTabListContextValues.js.map +1 -1
- package/lib/components/TabList/useTabListStyles.styles.js +22 -5
- package/lib/components/TabList/useTabListStyles.styles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Tab.js.map +1 -1
- package/lib-commonjs/TabList.js.map +1 -1
- package/lib-commonjs/components/Tab/Tab.js.map +1 -1
- package/lib-commonjs/components/Tab/Tab.types.js.map +1 -1
- package/lib-commonjs/components/Tab/index.js.map +1 -1
- package/lib-commonjs/components/Tab/renderTab.js.map +1 -1
- package/lib-commonjs/components/Tab/useTab.js.map +1 -1
- package/lib-commonjs/components/Tab/useTabAnimatedIndicator.styles.js +1 -1
- package/lib-commonjs/components/Tab/useTabStyles.styles.js +383 -51
- package/lib-commonjs/components/Tab/useTabStyles.styles.js.map +1 -1
- package/lib-commonjs/components/TabList/TabList.js.map +1 -1
- package/lib-commonjs/components/TabList/TabList.types.js.map +1 -1
- package/lib-commonjs/components/TabList/TabListContext.js.map +1 -1
- package/lib-commonjs/components/TabList/index.js.map +1 -1
- package/lib-commonjs/components/TabList/renderTabList.js.map +1 -1
- package/lib-commonjs/components/TabList/useTabList.js.map +1 -1
- package/lib-commonjs/components/TabList/useTabListContextValues.js.map +1 -1
- package/lib-commonjs/components/TabList/useTabListStyles.styles.js +27 -4
- package/lib-commonjs/components/TabList/useTabListStyles.styles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +8 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-tabs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 11 Nov 2024 09:55:22 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.6.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.6.1)
|
|
8
|
+
|
|
9
|
+
Mon, 11 Nov 2024 09:55:22 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.6.0..@fluentui/react-tabs_v9.6.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: replace npm-scripts and just-scrtips with nx inferred tasks ([PR #33074](https://github.com/microsoft/fluentui/pull/33074) by martinhochel@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-context-selector to v9.1.69 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.46 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
17
|
+
- Bump @fluentui/react-shared-contexts to v9.21.0 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
18
|
+
- Bump @fluentui/react-tabster to v9.23.0 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
19
|
+
- Bump @fluentui/react-theme to v9.1.22 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
20
|
+
- Bump @fluentui/react-utilities to v9.18.17 ([PR #31887](https://github.com/microsoft/fluentui/pull/31887) by beachball)
|
|
21
|
+
|
|
22
|
+
## [9.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.6.0)
|
|
23
|
+
|
|
24
|
+
Tue, 15 Oct 2024 17:17:51 GMT
|
|
25
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.5.2..@fluentui/react-tabs_v9.6.0)
|
|
26
|
+
|
|
27
|
+
### Minor changes
|
|
28
|
+
|
|
29
|
+
- feature: add rounded tab variant ([PR #32944](https://github.com/microsoft/fluentui/pull/32944) by kirpadv@gmail.com)
|
|
30
|
+
- Bump @fluentui/react-context-selector to v9.1.68 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
31
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.45 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
32
|
+
- Bump @fluentui/react-shared-contexts to v9.20.2 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
33
|
+
- Bump @fluentui/react-tabster to v9.22.9 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
34
|
+
- Bump @fluentui/react-theme to v9.1.21 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
35
|
+
- Bump @fluentui/react-utilities to v9.18.16 ([PR #32999](https://github.com/microsoft/fluentui/pull/32999) by beachball)
|
|
36
|
+
|
|
7
37
|
## [9.5.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabs_v9.5.2)
|
|
8
38
|
|
|
9
|
-
Tue, 08 Oct 2024 22:
|
|
39
|
+
Tue, 08 Oct 2024 22:05:59 GMT
|
|
10
40
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabs_v9.5.1..@fluentui/react-tabs_v9.5.2)
|
|
11
41
|
|
|
12
42
|
### Patches
|
package/dist/index.d.ts
CHANGED
|
@@ -87,10 +87,13 @@ export declare type TabListProps = ComponentProps<TabListSlots> & {
|
|
|
87
87
|
* A tab list can supports 'transparent' and 'subtle' appearance.
|
|
88
88
|
*- 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
|
|
89
89
|
*- 'transparent': No background and border styling
|
|
90
|
+
*- 'subtle-circular': Adds background and border styling
|
|
91
|
+
*- 'filled-circular': Adds background styling
|
|
92
|
+
*
|
|
90
93
|
* The appearance affects each of the contained tabs.
|
|
91
94
|
* @default 'transparent'
|
|
92
95
|
*/
|
|
93
|
-
appearance?: 'transparent' | 'subtle';
|
|
96
|
+
appearance?: 'transparent' | 'subtle' | 'subtle-circular' | 'filled-circular';
|
|
94
97
|
/**
|
|
95
98
|
* Tab size may change between unselected and selected states.
|
|
96
99
|
* The default scenario is a selected tab has bold text.
|
|
@@ -196,9 +199,9 @@ export declare type TabSlots = {
|
|
|
196
199
|
*/
|
|
197
200
|
export declare type TabState = ComponentState<TabInternalSlots> & Pick<TabProps, 'value'> & Required<Pick<TabProps, 'disabled'>> & {
|
|
198
201
|
/**
|
|
199
|
-
* A tab supports 'transparent'
|
|
202
|
+
* A tab supports 'transparent', 'subtle', `subtle-circular` and `filled-circular` appearance.
|
|
200
203
|
*/
|
|
201
|
-
appearance?: 'transparent' | 'subtle';
|
|
204
|
+
appearance?: 'transparent' | 'subtle' | 'subtle-circular' | 'filled-circular';
|
|
202
205
|
/**
|
|
203
206
|
* A tab can have only an icon slot filled and no content.
|
|
204
207
|
*/
|
package/lib/Tab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Tab.ts"],"sourcesContent":["export * from './components/Tab/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,yBAAyB"}
|
|
1
|
+
{"version":3,"sources":["../src/Tab.ts"],"sourcesContent":["export * from './components/Tab/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,yBAAyB"}
|
package/lib/TabList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["TabList.ts"],"sourcesContent":["export * from './components/TabList/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,6BAA6B"}
|
|
1
|
+
{"version":3,"sources":["../src/TabList.ts"],"sourcesContent":["export * from './components/TabList/index';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Tab.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTab_unstable } from './useTab';\nimport { renderTab_unstable } from './renderTab';\nimport { useTabStyles_unstable } from './useTabStyles.styles';\nimport type { TabProps } from './Tab.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A tab provides a selectable item in a tab list.\n */\nexport const Tab: ForwardRefComponent<TabProps> = React.forwardRef((props, ref) => {\n const state = useTab_unstable(props, ref);\n\n useTabStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTabStyles_unstable')(state);\n\n return renderTab_unstable(state);\n});\n\nTab.displayName = 'Tab';\n"],"names":["React","useTab_unstable","renderTab_unstable","useTabStyles_unstable","useCustomStyleHook_unstable","Tab","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,eAAe,QAAQ,WAAW;AAC3C,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,wBAAwB;AAG9D,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,oBAAqCL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQR,gBAAgBM,OAAOC;IAErCL,sBAAsBM;IAEtBL,4BAA4B,yBAAyBK;IAErD,OAAOP,mBAAmBO;AAC5B,GAAG;AAEHJ,IAAIK,WAAW,GAAG"}
|
|
1
|
+
{"version":3,"sources":["../src/components/Tab/Tab.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTab_unstable } from './useTab';\nimport { renderTab_unstable } from './renderTab';\nimport { useTabStyles_unstable } from './useTabStyles.styles';\nimport type { TabProps } from './Tab.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A tab provides a selectable item in a tab list.\n */\nexport const Tab: ForwardRefComponent<TabProps> = React.forwardRef((props, ref) => {\n const state = useTab_unstable(props, ref);\n\n useTabStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTabStyles_unstable')(state);\n\n return renderTab_unstable(state);\n});\n\nTab.displayName = 'Tab';\n"],"names":["React","useTab_unstable","renderTab_unstable","useTabStyles_unstable","useCustomStyleHook_unstable","Tab","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,eAAe,QAAQ,WAAW;AAC3C,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,wBAAwB;AAG9D,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,oBAAqCL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQR,gBAAgBM,OAAOC;IAErCL,sBAAsBM;IAEtBL,4BAA4B,yBAAyBK;IAErD,OAAOP,mBAAmBO;AAC5B,GAAG;AAEHJ,IAAIK,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Tab.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Any value that identifies a specific tab.\n */\nexport type TabValue = unknown;\n\nexport type TabSlots = {\n /**\n * Root of the component.\n */\n root: Slot<'button'>;\n\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n\n /**\n * Component children are placed in this slot\n * Avoid using the `children` property in this slot in favour of Component children whenever possible.\n */\n content: NonNullable<Slot<'span'>>;\n};\n\nexport type TabInternalSlots = TabSlots & {\n contentReservedSpace?: Slot<'span'>;\n};\n\n/**\n * Tab Props\n */\nexport type TabProps = Omit<ComponentProps<Partial<TabSlots>>, 'content'> &\n Pick<Partial<TabSlots>, 'content'> & {\n /**\n * A tab can be set to disable interaction.\n * @default false\n */\n disabled?: boolean;\n /**\n * The value that identifies this tab when selected.\n */\n value: TabValue;\n };\n\n/**\n * State used in rendering Tab\n */\nexport type TabState = ComponentState<TabInternalSlots> &\n Pick<TabProps, 'value'> &\n Required<Pick<TabProps, 'disabled'>> & {\n /**\n * A tab supports 'transparent'
|
|
1
|
+
{"version":3,"sources":["../src/components/Tab/Tab.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Any value that identifies a specific tab.\n */\nexport type TabValue = unknown;\n\nexport type TabSlots = {\n /**\n * Root of the component.\n */\n root: Slot<'button'>;\n\n /**\n * Icon that renders before the content.\n */\n icon?: Slot<'span'>;\n\n /**\n * Component children are placed in this slot\n * Avoid using the `children` property in this slot in favour of Component children whenever possible.\n */\n content: NonNullable<Slot<'span'>>;\n};\n\nexport type TabInternalSlots = TabSlots & {\n contentReservedSpace?: Slot<'span'>;\n};\n\n/**\n * Tab Props\n */\nexport type TabProps = Omit<ComponentProps<Partial<TabSlots>>, 'content'> &\n Pick<Partial<TabSlots>, 'content'> & {\n /**\n * A tab can be set to disable interaction.\n * @default false\n */\n disabled?: boolean;\n /**\n * The value that identifies this tab when selected.\n */\n value: TabValue;\n };\n\n/**\n * State used in rendering Tab\n */\nexport type TabState = ComponentState<TabInternalSlots> &\n Pick<TabProps, 'value'> &\n Required<Pick<TabProps, 'disabled'>> & {\n /**\n * A tab supports 'transparent', 'subtle', `subtle-circular` and `filled-circular` appearance.\n */\n appearance?: 'transparent' | 'subtle' | 'subtle-circular' | 'filled-circular';\n\n /**\n * A tab can have only an icon slot filled and no content.\n */\n iconOnly: boolean;\n /**\n * If this tab is selected\n */\n selected: boolean;\n /**\n * When defined, tab content with selected style is rendered hidden to reserve space.\n * This keeps consistent content size between unselected and selected states.\n *\n * @deprecated - use `contentReservedSpace` internal slot instead.\n */\n contentReservedSpaceClassName?: string;\n /**\n * A tab can be either 'small', 'medium', or 'large' size.\n */\n size: 'small' | 'medium' | 'large';\n /**\n * A tab can arrange its content based on if the tabs in the list are arranged vertically.\n */\n vertical: boolean;\n };\n"],"names":[],"rangeMappings":";;","mappings":"AA6CA;;CAEC,GACD,WA+BI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Tab';\nexport * from './Tab.types';\nexport * from './renderTab';\nexport * from './useTab';\nexport * from './useTabStyles.styles';\nexport * from './useTabAnimatedIndicator.styles';\n"],"names":[],"rangeMappings":";;;;;","mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,wBAAwB;AACtC,cAAc,mCAAmC"}
|
|
1
|
+
{"version":3,"sources":["../src/components/Tab/index.ts"],"sourcesContent":["export * from './Tab';\nexport * from './Tab.types';\nexport * from './renderTab';\nexport * from './useTab';\nexport * from './useTabStyles.styles';\nexport * from './useTabAnimatedIndicator.styles';\n"],"names":[],"rangeMappings":";;;;;","mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,wBAAwB;AACtC,cAAc,mCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderTab.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { TabState, TabInternalSlots } from './Tab.types';\n\n/**\n * Render the final JSX of Tab\n */\nexport const renderTab_unstable = (state: TabState) => {\n assertSlots<TabInternalSlots>(state);\n\n return (\n <state.root>\n {state.icon && <state.icon />}\n {!state.iconOnly && <state.content />}\n {state.contentReservedSpace && <state.contentReservedSpace />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTab_unstable","state","root","icon","iconOnly","content","contentReservedSpace"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,qBAAqB,CAACC;IACjCF,YAA8BE;IAE9B,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAME,IAAI,kBAAI,KAACF,MAAME,IAAI;YACzB,CAACF,MAAMG,QAAQ,kBAAI,KAACH,MAAMI,OAAO;YACjCJ,MAAMK,oBAAoB,kBAAI,KAACL,MAAMK,oBAAoB;;;AAGhE,EAAE"}
|
|
1
|
+
{"version":3,"sources":["../src/components/Tab/renderTab.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { TabState, TabInternalSlots } from './Tab.types';\n\n/**\n * Render the final JSX of Tab\n */\nexport const renderTab_unstable = (state: TabState) => {\n assertSlots<TabInternalSlots>(state);\n\n return (\n <state.root>\n {state.icon && <state.icon />}\n {!state.iconOnly && <state.content />}\n {state.contentReservedSpace && <state.contentReservedSpace />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderTab_unstable","state","root","icon","iconOnly","content","contentReservedSpace"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD;;CAEC,GACD,OAAO,MAAMC,qBAAqB,CAACC;IACjCF,YAA8BE;IAE9B,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAME,IAAI,kBAAI,KAACF,MAAME,IAAI;YACzB,CAACF,MAAMG,QAAQ,kBAAI,KAACH,MAAMI,OAAO;YACjCJ,MAAMK,oBAAoB,kBAAI,KAACL,MAAMK,oBAAoB;;;AAGhE,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useTab.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n getIntrinsicElementProps,\n mergeCallbacks,\n useEventCallback,\n useMergedRefs,\n slot,\n omit,\n} from '@fluentui/react-utilities';\nimport type { TabProps, TabState } from './Tab.types';\nimport { useTabListContext_unstable } from '../TabList/TabListContext';\nimport { SelectTabEvent } from '../TabList/TabList.types';\n\n/**\n * Create the state required to render Tab.\n *\n * The returned state can be modified with hooks such as useTabStyles_unstable,\n * before being passed to renderTab_unstable.\n *\n * @param props - props from this instance of Tab\n * @param ref - reference to root HTMLElement of Tab\n */\nexport const useTab_unstable = (props: TabProps, ref: React.Ref<HTMLElement>): TabState => {\n const { content, disabled: tabDisabled = false, icon, onClick, onFocus, value } = props;\n\n const appearance = useTabListContext_unstable(ctx => ctx.appearance);\n const reserveSelectedTabSpace = useTabListContext_unstable(ctx => ctx.reserveSelectedTabSpace);\n const selectTabOnFocus = useTabListContext_unstable(ctx => ctx.selectTabOnFocus);\n const listDisabled = useTabListContext_unstable(ctx => ctx.disabled);\n const selected = useTabListContext_unstable(ctx => ctx.selectedValue === value);\n const onRegister = useTabListContext_unstable(ctx => ctx.onRegister);\n const onUnregister = useTabListContext_unstable(ctx => ctx.onUnregister);\n const onSelect = useTabListContext_unstable(ctx => ctx.onSelect);\n const size = useTabListContext_unstable(ctx => ctx.size);\n const vertical = useTabListContext_unstable(ctx => !!ctx.vertical);\n const disabled = listDisabled || tabDisabled;\n\n const innerRef = React.useRef<HTMLElement>(null);\n const onSelectCallback = (event: SelectTabEvent) => onSelect(event, { value });\n const onTabClick = useEventCallback(mergeCallbacks(onClick, onSelectCallback));\n const onTabFocus = useEventCallback(mergeCallbacks(onFocus, onSelectCallback));\n\n React.useEffect(() => {\n onRegister({\n value,\n ref: innerRef,\n });\n\n return () => {\n onUnregister({ value, ref: innerRef });\n };\n }, [onRegister, onUnregister, innerRef, value]);\n\n const iconSlot = slot.optional(icon, { elementType: 'span' });\n const contentSlot = slot.always(content, {\n defaultProps: { children: props.children },\n elementType: 'span',\n });\n const contentReservedSpace: typeof content =\n content && typeof content === 'object' ? omit(content, ['ref' as keyof typeof content]) : content;\n const iconOnly = Boolean(iconSlot?.children && !contentSlot.children);\n return {\n components: { root: 'button', icon: 'span', content: 'span', contentReservedSpace: 'span' },\n root: slot.always(\n getIntrinsicElementProps('button', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLButtonElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, innerRef) as React.Ref<HTMLButtonElement>,\n role: 'tab',\n type: 'button',\n // aria-selected undefined indicates it is not selectable\n // according to https://www.w3.org/TR/wai-aria-1.1/#aria-selected\n 'aria-selected': disabled ? undefined : (`${selected}` as 'true' | 'false'),\n ...props,\n disabled,\n onClick: onTabClick,\n onFocus: selectTabOnFocus ? onTabFocus : onFocus,\n }),\n { elementType: 'button' },\n ),\n icon: iconSlot,\n iconOnly,\n content: contentSlot,\n contentReservedSpace: slot.optional(contentReservedSpace, {\n renderByDefault: !selected && !iconOnly && reserveSelectedTabSpace,\n defaultProps: { children: props.children },\n elementType: 'span',\n }),\n appearance,\n disabled,\n selected,\n size,\n value,\n vertical,\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","useEventCallback","useMergedRefs","slot","omit","useTabListContext_unstable","useTab_unstable","props","ref","content","disabled","tabDisabled","icon","onClick","onFocus","value","appearance","ctx","reserveSelectedTabSpace","selectTabOnFocus","listDisabled","selected","selectedValue","onRegister","onUnregister","onSelect","size","vertical","innerRef","useRef","onSelectCallback","event","onTabClick","onTabFocus","useEffect","iconSlot","optional","elementType","contentSlot","always","defaultProps","children","contentReservedSpace","iconOnly","Boolean","components","root","role","type","undefined","renderByDefault"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
|
|
1
|
+
{"version":3,"sources":["../src/components/Tab/useTab.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n getIntrinsicElementProps,\n mergeCallbacks,\n useEventCallback,\n useMergedRefs,\n slot,\n omit,\n} from '@fluentui/react-utilities';\nimport type { TabProps, TabState } from './Tab.types';\nimport { useTabListContext_unstable } from '../TabList/TabListContext';\nimport { SelectTabEvent } from '../TabList/TabList.types';\n\n/**\n * Create the state required to render Tab.\n *\n * The returned state can be modified with hooks such as useTabStyles_unstable,\n * before being passed to renderTab_unstable.\n *\n * @param props - props from this instance of Tab\n * @param ref - reference to root HTMLElement of Tab\n */\nexport const useTab_unstable = (props: TabProps, ref: React.Ref<HTMLElement>): TabState => {\n const { content, disabled: tabDisabled = false, icon, onClick, onFocus, value } = props;\n\n const appearance = useTabListContext_unstable(ctx => ctx.appearance);\n const reserveSelectedTabSpace = useTabListContext_unstable(ctx => ctx.reserveSelectedTabSpace);\n const selectTabOnFocus = useTabListContext_unstable(ctx => ctx.selectTabOnFocus);\n const listDisabled = useTabListContext_unstable(ctx => ctx.disabled);\n const selected = useTabListContext_unstable(ctx => ctx.selectedValue === value);\n const onRegister = useTabListContext_unstable(ctx => ctx.onRegister);\n const onUnregister = useTabListContext_unstable(ctx => ctx.onUnregister);\n const onSelect = useTabListContext_unstable(ctx => ctx.onSelect);\n const size = useTabListContext_unstable(ctx => ctx.size);\n const vertical = useTabListContext_unstable(ctx => !!ctx.vertical);\n const disabled = listDisabled || tabDisabled;\n\n const innerRef = React.useRef<HTMLElement>(null);\n const onSelectCallback = (event: SelectTabEvent) => onSelect(event, { value });\n const onTabClick = useEventCallback(mergeCallbacks(onClick, onSelectCallback));\n const onTabFocus = useEventCallback(mergeCallbacks(onFocus, onSelectCallback));\n\n React.useEffect(() => {\n onRegister({\n value,\n ref: innerRef,\n });\n\n return () => {\n onUnregister({ value, ref: innerRef });\n };\n }, [onRegister, onUnregister, innerRef, value]);\n\n const iconSlot = slot.optional(icon, { elementType: 'span' });\n const contentSlot = slot.always(content, {\n defaultProps: { children: props.children },\n elementType: 'span',\n });\n const contentReservedSpace: typeof content =\n content && typeof content === 'object' ? omit(content, ['ref' as keyof typeof content]) : content;\n const iconOnly = Boolean(iconSlot?.children && !contentSlot.children);\n return {\n components: { root: 'button', icon: 'span', content: 'span', contentReservedSpace: 'span' },\n root: slot.always(\n getIntrinsicElementProps('button', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLButtonElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, innerRef) as React.Ref<HTMLButtonElement>,\n role: 'tab',\n type: 'button',\n // aria-selected undefined indicates it is not selectable\n // according to https://www.w3.org/TR/wai-aria-1.1/#aria-selected\n 'aria-selected': disabled ? undefined : (`${selected}` as 'true' | 'false'),\n ...props,\n disabled,\n onClick: onTabClick,\n onFocus: selectTabOnFocus ? onTabFocus : onFocus,\n }),\n { elementType: 'button' },\n ),\n icon: iconSlot,\n iconOnly,\n content: contentSlot,\n contentReservedSpace: slot.optional(contentReservedSpace, {\n renderByDefault: !selected && !iconOnly && reserveSelectedTabSpace,\n defaultProps: { children: props.children },\n elementType: 'span',\n }),\n appearance,\n disabled,\n selected,\n size,\n value,\n vertical,\n };\n};\n"],"names":["React","getIntrinsicElementProps","mergeCallbacks","useEventCallback","useMergedRefs","slot","omit","useTabListContext_unstable","useTab_unstable","props","ref","content","disabled","tabDisabled","icon","onClick","onFocus","value","appearance","ctx","reserveSelectedTabSpace","selectTabOnFocus","listDisabled","selected","selectedValue","onRegister","onUnregister","onSelect","size","vertical","innerRef","useRef","onSelectCallback","event","onTabClick","onTabFocus","useEffect","iconSlot","optional","elementType","contentSlot","always","defaultProps","children","contentReservedSpace","iconOnly","Boolean","components","root","role","type","undefined","renderByDefault"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
|
|
@@ -125,25 +125,25 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
|
125
125
|
},
|
|
126
126
|
transparent: {
|
|
127
127
|
De3pzq: "f1c21dwh",
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
B95qlz1: "f9rvdkv",
|
|
129
|
+
B7xitij: "f1051ucx",
|
|
130
130
|
Bptxc3x: "fmmjozx",
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
Bwqhzpy: "fqhzt5g",
|
|
132
|
+
iyk698: "f7l5cgy",
|
|
133
133
|
cl4aha: "fpkze5g",
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
B0q3jbp: "f1iywnoi",
|
|
135
|
+
Be9ayug: "f9n45c4"
|
|
136
136
|
},
|
|
137
137
|
subtle: {
|
|
138
138
|
De3pzq: "fhovq9v",
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
B95qlz1: "f1bifk9c",
|
|
140
|
+
B7xitij: "fo6hitd",
|
|
141
141
|
Bptxc3x: "fmmjozx",
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
Bwqhzpy: "fqhzt5g",
|
|
143
|
+
iyk698: "f7l5cgy",
|
|
144
144
|
cl4aha: "fpkze5g",
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
B0q3jbp: "f1iywnoi",
|
|
146
|
+
Be9ayug: "f9n45c4"
|
|
147
147
|
},
|
|
148
148
|
disabled: {
|
|
149
149
|
De3pzq: "f1c21dwh",
|
|
@@ -153,11 +153,234 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
|
153
153
|
},
|
|
154
154
|
selected: {
|
|
155
155
|
Bptxc3x: "f1cadz5z",
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
Bwqhzpy: "fwhdxxj",
|
|
157
|
+
iyk698: "fintccb",
|
|
158
158
|
cl4aha: "ffplhdr",
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
B0q3jbp: "fjo17wb",
|
|
160
|
+
Be9ayug: "f148789c"
|
|
161
|
+
},
|
|
162
|
+
circular: {
|
|
163
|
+
Beyfa6y: 0,
|
|
164
|
+
Bbmb7ep: 0,
|
|
165
|
+
Btl43ni: 0,
|
|
166
|
+
B7oj6ja: 0,
|
|
167
|
+
Dimara: "f44lkw9",
|
|
168
|
+
Bptxc3x: "ftorr8m",
|
|
169
|
+
cl4aha: "f16lqpmv"
|
|
170
|
+
},
|
|
171
|
+
subtleCircular: {
|
|
172
|
+
De3pzq: "f1c21dwh",
|
|
173
|
+
Bgfg5da: 0,
|
|
174
|
+
B9xav0g: 0,
|
|
175
|
+
oivjwe: 0,
|
|
176
|
+
Bn0qgzm: 0,
|
|
177
|
+
B4g9neb: 0,
|
|
178
|
+
zhjwy3: 0,
|
|
179
|
+
wvpqe5: 0,
|
|
180
|
+
ibv6hh: 0,
|
|
181
|
+
u1mtju: 0,
|
|
182
|
+
h3c5rm: 0,
|
|
183
|
+
vrafjx: 0,
|
|
184
|
+
Bekrc4i: 0,
|
|
185
|
+
i8vvqc: 0,
|
|
186
|
+
g2u3we: 0,
|
|
187
|
+
icvyot: 0,
|
|
188
|
+
B4j52fo: 0,
|
|
189
|
+
irswps: "fp7rvkm",
|
|
190
|
+
sj55zd: "fkfq4zb",
|
|
191
|
+
B95qlz1: "f1yywxnv",
|
|
192
|
+
Eo63ln: 0,
|
|
193
|
+
r9osk6: 0,
|
|
194
|
+
Itrz8y: 0,
|
|
195
|
+
zeg6vx: 0,
|
|
196
|
+
l65xgk: 0,
|
|
197
|
+
Bw4olcx: 0,
|
|
198
|
+
Folb0i: 0,
|
|
199
|
+
I2h8y4: 0,
|
|
200
|
+
Bgxgoyi: 0,
|
|
201
|
+
Bvlkotb: 0,
|
|
202
|
+
Fwyncl: 0,
|
|
203
|
+
Byh5edv: 0,
|
|
204
|
+
Becqvjq: 0,
|
|
205
|
+
uumbiq: 0,
|
|
206
|
+
B73q3dg: 0,
|
|
207
|
+
Bblwbaf: 0,
|
|
208
|
+
B0ezav: "ft57sj0",
|
|
209
|
+
r4wkhp: "f1fcoy83",
|
|
210
|
+
B7xitij: "f1lzpamt",
|
|
211
|
+
d3wsvi: 0,
|
|
212
|
+
Hdqn7s: 0,
|
|
213
|
+
zu5y1p: 0,
|
|
214
|
+
owqphb: 0,
|
|
215
|
+
g9c53k: 0,
|
|
216
|
+
Btmu08z: 0,
|
|
217
|
+
Bthxvy6: 0,
|
|
218
|
+
gluvuq: 0,
|
|
219
|
+
tb88gp: 0,
|
|
220
|
+
wns6jk: 0,
|
|
221
|
+
kdfdk4: 0,
|
|
222
|
+
Bbw008l: 0,
|
|
223
|
+
Bayi1ib: 0,
|
|
224
|
+
B1kkfu3: 0,
|
|
225
|
+
J1oqyp: 0,
|
|
226
|
+
kem6az: 0,
|
|
227
|
+
goa3yj: "fhn220o",
|
|
228
|
+
p743kt: "f15qf7sh"
|
|
229
|
+
},
|
|
230
|
+
subtleCircularSelected: {
|
|
231
|
+
De3pzq: "f16xkysk",
|
|
232
|
+
Bgfg5da: 0,
|
|
233
|
+
B9xav0g: 0,
|
|
234
|
+
oivjwe: 0,
|
|
235
|
+
Bn0qgzm: 0,
|
|
236
|
+
B4g9neb: 0,
|
|
237
|
+
zhjwy3: 0,
|
|
238
|
+
wvpqe5: 0,
|
|
239
|
+
ibv6hh: 0,
|
|
240
|
+
u1mtju: 0,
|
|
241
|
+
h3c5rm: 0,
|
|
242
|
+
vrafjx: 0,
|
|
243
|
+
Bekrc4i: 0,
|
|
244
|
+
i8vvqc: 0,
|
|
245
|
+
g2u3we: 0,
|
|
246
|
+
icvyot: 0,
|
|
247
|
+
B4j52fo: 0,
|
|
248
|
+
irswps: "f1c2pc3t",
|
|
249
|
+
sj55zd: "faj9fo0",
|
|
250
|
+
B95qlz1: "fsm7zmf",
|
|
251
|
+
Eo63ln: 0,
|
|
252
|
+
r9osk6: 0,
|
|
253
|
+
Itrz8y: 0,
|
|
254
|
+
zeg6vx: 0,
|
|
255
|
+
l65xgk: 0,
|
|
256
|
+
Bw4olcx: 0,
|
|
257
|
+
Folb0i: 0,
|
|
258
|
+
I2h8y4: 0,
|
|
259
|
+
Bgxgoyi: 0,
|
|
260
|
+
Bvlkotb: 0,
|
|
261
|
+
Fwyncl: 0,
|
|
262
|
+
Byh5edv: 0,
|
|
263
|
+
Becqvjq: 0,
|
|
264
|
+
uumbiq: 0,
|
|
265
|
+
B73q3dg: 0,
|
|
266
|
+
Bblwbaf: 0,
|
|
267
|
+
B0ezav: "f1wo0sfq",
|
|
268
|
+
r4wkhp: "f1afuynh",
|
|
269
|
+
B7xitij: "f94ddyl",
|
|
270
|
+
d3wsvi: 0,
|
|
271
|
+
Hdqn7s: 0,
|
|
272
|
+
zu5y1p: 0,
|
|
273
|
+
owqphb: 0,
|
|
274
|
+
g9c53k: 0,
|
|
275
|
+
Btmu08z: 0,
|
|
276
|
+
Bthxvy6: 0,
|
|
277
|
+
gluvuq: 0,
|
|
278
|
+
tb88gp: 0,
|
|
279
|
+
wns6jk: 0,
|
|
280
|
+
kdfdk4: 0,
|
|
281
|
+
Bbw008l: 0,
|
|
282
|
+
Bayi1ib: 0,
|
|
283
|
+
B1kkfu3: 0,
|
|
284
|
+
J1oqyp: 0,
|
|
285
|
+
kem6az: 0,
|
|
286
|
+
goa3yj: "fmle6oo",
|
|
287
|
+
p743kt: "f1d3itm4"
|
|
288
|
+
},
|
|
289
|
+
subtleCircularDisabled: {
|
|
290
|
+
De3pzq: "f1c21dwh",
|
|
291
|
+
sj55zd: "f1s2aq7o",
|
|
292
|
+
Bgfg5da: 0,
|
|
293
|
+
B9xav0g: 0,
|
|
294
|
+
oivjwe: 0,
|
|
295
|
+
Bn0qgzm: 0,
|
|
296
|
+
B4g9neb: 0,
|
|
297
|
+
zhjwy3: 0,
|
|
298
|
+
wvpqe5: 0,
|
|
299
|
+
ibv6hh: 0,
|
|
300
|
+
u1mtju: 0,
|
|
301
|
+
h3c5rm: 0,
|
|
302
|
+
vrafjx: 0,
|
|
303
|
+
Bekrc4i: 0,
|
|
304
|
+
i8vvqc: 0,
|
|
305
|
+
g2u3we: 0,
|
|
306
|
+
icvyot: 0,
|
|
307
|
+
B4j52fo: 0,
|
|
308
|
+
irswps: "fp7rvkm"
|
|
309
|
+
},
|
|
310
|
+
subtleCircularDisabledSelected: {
|
|
311
|
+
Bgfg5da: 0,
|
|
312
|
+
B9xav0g: 0,
|
|
313
|
+
oivjwe: 0,
|
|
314
|
+
Bn0qgzm: 0,
|
|
315
|
+
B4g9neb: 0,
|
|
316
|
+
zhjwy3: 0,
|
|
317
|
+
wvpqe5: 0,
|
|
318
|
+
ibv6hh: 0,
|
|
319
|
+
u1mtju: 0,
|
|
320
|
+
h3c5rm: 0,
|
|
321
|
+
vrafjx: 0,
|
|
322
|
+
Bekrc4i: 0,
|
|
323
|
+
i8vvqc: 0,
|
|
324
|
+
g2u3we: 0,
|
|
325
|
+
icvyot: 0,
|
|
326
|
+
B4j52fo: 0,
|
|
327
|
+
irswps: "fegtqic"
|
|
328
|
+
},
|
|
329
|
+
filledCircular: {
|
|
330
|
+
De3pzq: "f16xq7d1",
|
|
331
|
+
sj55zd: "fkfq4zb",
|
|
332
|
+
B95qlz1: "fwwxidx",
|
|
333
|
+
r4wkhp: "f1fcoy83",
|
|
334
|
+
B7xitij: "f14i52sd",
|
|
335
|
+
p743kt: "f15qf7sh"
|
|
336
|
+
},
|
|
337
|
+
filledCircularSelected: {
|
|
338
|
+
De3pzq: "ffp7eso",
|
|
339
|
+
sj55zd: "f1phragk",
|
|
340
|
+
B95qlz1: "f1lm9dni",
|
|
341
|
+
r4wkhp: "f1mn5ei1",
|
|
342
|
+
B7xitij: "f1g6ncd0",
|
|
343
|
+
p743kt: "fl71aob"
|
|
344
|
+
},
|
|
345
|
+
filledCircularDisabled: {
|
|
346
|
+
De3pzq: "f1bg9a2p",
|
|
347
|
+
Bgfg5da: 0,
|
|
348
|
+
B9xav0g: 0,
|
|
349
|
+
oivjwe: 0,
|
|
350
|
+
Bn0qgzm: 0,
|
|
351
|
+
B4g9neb: 0,
|
|
352
|
+
zhjwy3: 0,
|
|
353
|
+
wvpqe5: 0,
|
|
354
|
+
ibv6hh: 0,
|
|
355
|
+
u1mtju: 0,
|
|
356
|
+
h3c5rm: 0,
|
|
357
|
+
vrafjx: 0,
|
|
358
|
+
Bekrc4i: 0,
|
|
359
|
+
i8vvqc: 0,
|
|
360
|
+
g2u3we: 0,
|
|
361
|
+
icvyot: 0,
|
|
362
|
+
B4j52fo: 0,
|
|
363
|
+
irswps: "fp7rvkm",
|
|
364
|
+
sj55zd: "f1s2aq7o"
|
|
365
|
+
},
|
|
366
|
+
filledCircularDisabledSelected: {
|
|
367
|
+
Bgfg5da: 0,
|
|
368
|
+
B9xav0g: 0,
|
|
369
|
+
oivjwe: 0,
|
|
370
|
+
Bn0qgzm: 0,
|
|
371
|
+
B4g9neb: 0,
|
|
372
|
+
zhjwy3: 0,
|
|
373
|
+
wvpqe5: 0,
|
|
374
|
+
ibv6hh: 0,
|
|
375
|
+
u1mtju: 0,
|
|
376
|
+
h3c5rm: 0,
|
|
377
|
+
vrafjx: 0,
|
|
378
|
+
Bekrc4i: 0,
|
|
379
|
+
i8vvqc: 0,
|
|
380
|
+
g2u3we: 0,
|
|
381
|
+
icvyot: 0,
|
|
382
|
+
B4j52fo: 0,
|
|
383
|
+
irswps: "fegtqic"
|
|
161
384
|
}
|
|
162
385
|
}, {
|
|
163
386
|
d: [".f122n59{align-items:center;}", ".f13qh94s{display:grid;}", ".fi64zpg{flex-shrink:0;}", ".f1u07yai{grid-auto-flow:column;}", ".frn2hmy{grid-template-columns:auto;}", ".f1olsevy{grid-template-rows:auto;}", ".f1s6fcnf{outline-style:none;}", ".f10pi13n{position:relative;}", [".f3bhgqh{border:none;}", {
|
|
@@ -178,9 +401,29 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
|
178
401
|
p: -1
|
|
179
402
|
}], [".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}", {
|
|
180
403
|
p: -1
|
|
181
|
-
}], ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}", ".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}", ".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}", ".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}", ".fdrzuqr{cursor:not-allowed;}", ".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}", ".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"
|
|
182
|
-
|
|
183
|
-
|
|
404
|
+
}], ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f9rvdkv:enabled:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f1051ucx:enabled:active{background-color:var(--colorTransparentBackgroundPressed);}", ".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}", ".fqhzt5g:enabled:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}", ".f7l5cgy:enabled:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}", ".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}", ".f1iywnoi:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}", ".f9n45c4:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}", ".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}", ".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}", ".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}", ".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}", ".fdrzuqr{cursor:not-allowed;}", ".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}", ".fwhdxxj:enabled:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}", ".fintccb:enabled:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}", ".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}", ".fjo17wb:enabled:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}", ".f148789c:enabled:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}", [".f44lkw9{border-radius:var(--borderRadiusCircular);}", {
|
|
405
|
+
p: -1
|
|
406
|
+
}], ".ftorr8m .fui-Tab__icon{color:inherit;}", ".f16lqpmv .fui-Tab__content{color:inherit;}", [".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}", {
|
|
407
|
+
p: -2
|
|
408
|
+
}], ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f1yywxnv:enabled:hover{background-color:var(--colorNeutralBackground1Hover);}", [".ft57sj0:enabled:hover{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Hover);}", {
|
|
409
|
+
p: -2
|
|
410
|
+
}], ".f1fcoy83:enabled:hover{color:var(--colorNeutralForeground2Hover);}", ".f1lzpamt:enabled:active{background-color:var(--colorNeutralBackground1Pressed);}", [".fhn220o:enabled:active{border:solid var(--strokeWidthThin) var(--colorNeutralStroke1Pressed);}", {
|
|
411
|
+
p: -2
|
|
412
|
+
}], ".f15qf7sh:enabled:active{color:var(--colorNeutralForeground2Pressed);}", ".f16xkysk{background-color:var(--colorBrandBackground2);}", [".f1c2pc3t{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStroke);}", {
|
|
413
|
+
p: -2
|
|
414
|
+
}], ".faj9fo0{color:var(--colorBrandForeground2);}", ".fsm7zmf:enabled:hover{background-color:var(--colorBrandBackground2Hover);}", [".f1wo0sfq:enabled:hover{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokeHover);}", {
|
|
415
|
+
p: -2
|
|
416
|
+
}], ".f1afuynh:enabled:hover{color:var(--colorBrandForeground2Hover);}", ".f94ddyl:enabled:active{background-color:var(--colorBrandBackground2Pressed);}", [".fmle6oo:enabled:active{border:solid var(--strokeWidthThin) var(--colorCompoundBrandStrokePressed);}", {
|
|
417
|
+
p: -2
|
|
418
|
+
}], ".f1d3itm4:enabled:active{color:var(--colorBrandForeground2Pressed);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", [".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}", {
|
|
419
|
+
p: -2
|
|
420
|
+
}], [".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}", {
|
|
421
|
+
p: -2
|
|
422
|
+
}], ".f16xq7d1{background-color:var(--colorNeutralBackground3);}", ".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}", ".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f1lm9dni:enabled:hover{background-color:var(--colorBrandBackgroundHover);}", ".f1mn5ei1:enabled:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f1g6ncd0:enabled:active{background-color:var(--colorBrandBackgroundPressed);}", ".fl71aob:enabled:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", [".fp7rvkm{border:solid var(--strokeWidthThin) var(--colorTransparentStroke);}", {
|
|
423
|
+
p: -2
|
|
424
|
+
}], [".fegtqic{border:solid var(--strokeWidthThin) var(--colorNeutralStrokeDisabled);}", {
|
|
425
|
+
p: -2
|
|
426
|
+
}]]
|
|
184
427
|
});
|
|
185
428
|
/**
|
|
186
429
|
* Focus styles for the root slot
|
|
@@ -289,11 +532,11 @@ const useActiveIndicatorStyles = /*#__PURE__*/__styles({
|
|
|
289
532
|
},
|
|
290
533
|
selected: {
|
|
291
534
|
Bjyk6c5: "f1ksivud",
|
|
292
|
-
|
|
293
|
-
|
|
535
|
+
Bej4dhw: "f1476jrx",
|
|
536
|
+
B7wqxwa: "f18q216b",
|
|
294
537
|
f7digc: "fy7ktjt",
|
|
295
|
-
|
|
296
|
-
|
|
538
|
+
Bvuzv5k: "f1033yux",
|
|
539
|
+
k4sdgo: "fkh9b8o"
|
|
297
540
|
},
|
|
298
541
|
disabled: {
|
|
299
542
|
Bjyk6c5: "f13lkzet"
|
|
@@ -337,14 +580,12 @@ const useActiveIndicatorStyles = /*#__PURE__*/__styles({
|
|
|
337
580
|
}, {
|
|
338
581
|
d: [".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}", [".f3b9emi::after{border-radius:var(--borderRadiusCircular);}", {
|
|
339
582
|
p: -1
|
|
340
|
-
}], ".f13zj6fq::after{content:\"\";}", ".f1mdlcz9::after{position:absolute;}", ".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}", ".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}", ".fo72kxq::after{bottom:0;}", ".f9bb2ob::after{height:var(--strokeWidthThick);}", ".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}", ".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}", ".fqbue9b::after{bottom:var(--spacingVerticalXS);}", ".f1n6gb5g::after{left:0;}", ".f15yvnhg::after{right:0;}", ".fk1klkt::after{top:var(--spacingVerticalXS);}", ".f1o25lip::after{width:var(--strokeWidthThicker);}", ".f1vx7lu8::after{height:var(--strokeWidthThicker);}", ".fna7m5n::after{left:var(--spacingHorizontalM);}", ".f1oxpfwv::after{right:var(--spacingHorizontalM);}", ".fipylg0::after{bottom:var(--spacingVerticalS);}", ".fqchiol::after{top:var(--spacingVerticalS);}", ".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}", ".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],
|
|
341
|
-
h: [".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],
|
|
342
|
-
a: [".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],
|
|
583
|
+
}], ".f13zj6fq::after{content:\"\";}", ".f1mdlcz9::after{position:absolute;}", ".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}", ".f1476jrx:enabled:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}", ".f18q216b:enabled:active::after{background-color:var(--colorCompoundBrandStrokePressed);}", ".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}", ".fo72kxq::after{bottom:0;}", ".f9bb2ob::after{height:var(--strokeWidthThick);}", ".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}", ".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}", ".fqbue9b::after{bottom:var(--spacingVerticalXS);}", ".f1n6gb5g::after{left:0;}", ".f15yvnhg::after{right:0;}", ".fk1klkt::after{top:var(--spacingVerticalXS);}", ".f1o25lip::after{width:var(--strokeWidthThicker);}", ".f1vx7lu8::after{height:var(--strokeWidthThicker);}", ".fna7m5n::after{left:var(--spacingHorizontalM);}", ".f1oxpfwv::after{right:var(--spacingHorizontalM);}", ".fipylg0::after{bottom:var(--spacingVerticalS);}", ".fqchiol::after{top:var(--spacingVerticalS);}", ".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}", ".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],
|
|
343
584
|
m: [["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}", {
|
|
344
585
|
m: "(forced-colors: active)"
|
|
345
|
-
}], ["@media (forced-colors: active){.
|
|
586
|
+
}], ["@media (forced-colors: active){.f1033yux:enabled:hover::after{background-color:ButtonText;}}", {
|
|
346
587
|
m: "(forced-colors: active)"
|
|
347
|
-
}], ["@media (forced-colors: active){.
|
|
588
|
+
}], ["@media (forced-colors: active){.fkh9b8o:enabled:active::after{background-color:ButtonText;}}", {
|
|
348
589
|
m: "(forced-colors: active)"
|
|
349
590
|
}]]
|
|
350
591
|
});
|
|
@@ -469,16 +710,21 @@ export const useTabIndicatorStyles_unstable = state => {
|
|
|
469
710
|
const pendingIndicatorStyles = usePendingIndicatorStyles();
|
|
470
711
|
const activeIndicatorStyles = useActiveIndicatorStyles();
|
|
471
712
|
const {
|
|
713
|
+
appearance,
|
|
472
714
|
disabled,
|
|
473
715
|
selected,
|
|
474
716
|
size,
|
|
475
717
|
vertical
|
|
476
718
|
} = state;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
719
|
+
const classes = [tabClassNames.root, rootStyles.root];
|
|
720
|
+
if (appearance !== 'subtle-circular' && appearance !== 'filled-circular') {
|
|
721
|
+
classes.push(
|
|
722
|
+
// pending indicator (before pseudo element)
|
|
723
|
+
pendingIndicatorStyles.base, size === 'small' && (vertical ? pendingIndicatorStyles.smallVertical : pendingIndicatorStyles.smallHorizontal), size === 'medium' && (vertical ? pendingIndicatorStyles.mediumVertical : pendingIndicatorStyles.mediumHorizontal), size === 'large' && (vertical ? pendingIndicatorStyles.largeVertical : pendingIndicatorStyles.largeHorizontal), disabled && pendingIndicatorStyles.disabled,
|
|
724
|
+
// active indicator (after pseudo element)
|
|
725
|
+
selected && activeIndicatorStyles.base, selected && !disabled && activeIndicatorStyles.selected, selected && size === 'small' && (vertical ? activeIndicatorStyles.smallVertical : activeIndicatorStyles.smallHorizontal), selected && size === 'medium' && (vertical ? activeIndicatorStyles.mediumVertical : activeIndicatorStyles.mediumHorizontal), selected && size === 'large' && (vertical ? activeIndicatorStyles.largeVertical : activeIndicatorStyles.largeHorizontal), selected && disabled && activeIndicatorStyles.disabled);
|
|
726
|
+
}
|
|
727
|
+
state.root.className = mergeClasses(...classes, state.root.className);
|
|
482
728
|
useTabAnimatedIndicatorStyles_unstable(state);
|
|
483
729
|
return state;
|
|
484
730
|
};
|
|
@@ -504,7 +750,19 @@ export const useTabButtonStyles_unstable = (state, slot) => {
|
|
|
504
750
|
size,
|
|
505
751
|
vertical
|
|
506
752
|
} = state;
|
|
507
|
-
|
|
753
|
+
const isSubtleCircular = appearance === 'subtle-circular';
|
|
754
|
+
const isFilledCircular = appearance === 'filled-circular';
|
|
755
|
+
const isCircular = isSubtleCircular || isFilledCircular;
|
|
756
|
+
const circularAppearance = [rootStyles.circular,
|
|
757
|
+
// subtle-circular appearance
|
|
758
|
+
isSubtleCircular && rootStyles.subtleCircular, selected && isSubtleCircular && rootStyles.subtleCircularSelected, disabled && isSubtleCircular && rootStyles.subtleCircularDisabled, selected && disabled && isSubtleCircular && rootStyles.subtleCircularDisabledSelected,
|
|
759
|
+
// filled-circular appearance
|
|
760
|
+
isFilledCircular && rootStyles.filledCircular, selected && isFilledCircular && rootStyles.filledCircularSelected, disabled && isFilledCircular && rootStyles.filledCircularDisabled, selected && disabled && isFilledCircular && rootStyles.filledCircularDisabledSelected];
|
|
761
|
+
slot.className = mergeClasses(rootStyles.button,
|
|
762
|
+
// orientation
|
|
763
|
+
vertical ? rootStyles.vertical : rootStyles.horizontal,
|
|
764
|
+
// size
|
|
765
|
+
size === 'small' && (vertical ? rootStyles.smallVertical : rootStyles.smallHorizontal), size === 'medium' && (vertical ? rootStyles.mediumVertical : rootStyles.mediumHorizontal), size === 'large' && (vertical ? rootStyles.largeVertical : rootStyles.largeHorizontal), focusStyles.base, !disabled && appearance === 'subtle' && rootStyles.subtle, !disabled && appearance === 'transparent' && rootStyles.transparent, ...(isCircular ? circularAppearance : [!disabled && selected && rootStyles.selected]), disabled && rootStyles.disabled, slot.className);
|
|
508
766
|
return state;
|
|
509
767
|
};
|
|
510
768
|
/**
|
|
@@ -538,5 +796,4 @@ export const useTabContentStyles_unstable = state => {
|
|
|
538
796
|
}
|
|
539
797
|
state.content.className = mergeClasses(tabClassNames.content, contentStyles.base, size === 'large' && contentStyles.large, selected && (size === 'large' ? contentStyles.largeSelected : contentStyles.selected), state.icon ? contentStyles.iconBefore : contentStyles.noIconBefore, state.content.className);
|
|
540
798
|
return state;
|
|
541
|
-
};
|
|
542
|
-
//# sourceMappingURL=useTabStyles.styles.js.map
|
|
799
|
+
};
|