@fluentui/react-toolbar 9.8.2 → 9.8.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.
- package/CHANGELOG.md +29 -2
- package/dist/index.d.cts +381 -0
- package/lib/Toolbar.js +1 -1
- package/lib/Toolbar.js.map +1 -1
- package/lib/ToolbarButton.js +1 -1
- package/lib/ToolbarButton.js.map +1 -1
- package/lib/ToolbarDivider.js +1 -1
- package/lib/ToolbarDivider.js.map +1 -1
- package/lib/ToolbarGroup.js +1 -1
- package/lib/ToolbarGroup.js.map +1 -1
- package/lib/ToolbarRadioButton.js +1 -1
- package/lib/ToolbarRadioButton.js.map +1 -1
- package/lib/ToolbarRadioGroup.js +1 -1
- package/lib/ToolbarRadioGroup.js.map +1 -1
- package/lib/ToolbarToggleButton.js +1 -1
- package/lib/ToolbarToggleButton.js.map +1 -1
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/Toolbar.js.map +1 -1
- package/lib/components/Toolbar/ToolbarContext.js +1 -1
- package/lib/components/Toolbar/index.js +6 -6
- package/lib/components/Toolbar/index.js.map +1 -1
- package/lib/components/Toolbar/renderToolbar.js +2 -2
- package/lib/components/Toolbar/renderToolbar.js.map +1 -1
- package/lib/components/Toolbar/useToolbar.js +2 -2
- package/lib/components/Toolbar/useToolbarContextValues.js +1 -1
- package/lib/components/Toolbar/useToolbarStyles.styles.js +1 -1
- package/lib/components/Toolbar/useToolbarStyles.styles.js.map +1 -1
- package/lib/components/Toolbar/useToolbarStyles.styles.raw.js +1 -1
- package/lib/components/ToolbarButton/ToolbarButton.js +5 -5
- package/lib/components/ToolbarButton/ToolbarButton.js.map +1 -1
- package/lib/components/ToolbarButton/index.js +3 -3
- package/lib/components/ToolbarButton/index.js.map +1 -1
- package/lib/components/ToolbarButton/useToolbarButton.js +1 -1
- package/lib/components/ToolbarButton/useToolbarButtonStyles.styles.js +2 -2
- package/lib/components/ToolbarButton/useToolbarButtonStyles.styles.js.map +1 -1
- package/lib/components/ToolbarButton/useToolbarButtonStyles.styles.raw.js +2 -2
- package/lib/components/ToolbarDivider/ToolbarDivider.js +5 -5
- package/lib/components/ToolbarDivider/ToolbarDivider.js.map +1 -1
- package/lib/components/ToolbarDivider/index.js +3 -3
- package/lib/components/ToolbarDivider/index.js.map +1 -1
- package/lib/components/ToolbarDivider/useToolbarDivider.js +2 -2
- package/lib/components/ToolbarDivider/useToolbarDivider.js.map +1 -1
- package/lib/components/ToolbarDivider/useToolbarDividerStyles.styles.js +2 -2
- package/lib/components/ToolbarDivider/useToolbarDividerStyles.styles.js.map +1 -1
- package/lib/components/ToolbarDivider/useToolbarDividerStyles.styles.raw.js +2 -2
- package/lib/components/ToolbarGroup/ToolbarGroup.js +5 -5
- package/lib/components/ToolbarGroup/ToolbarGroup.js.map +1 -1
- package/lib/components/ToolbarGroup/index.js +4 -4
- package/lib/components/ToolbarGroup/index.js.map +1 -1
- package/lib/components/ToolbarGroup/renderToolbarGroup.js +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroup.js +2 -2
- package/lib/components/ToolbarGroup/useToolbarGroup.js.map +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroupStyles.styles.js +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroupStyles.styles.js.map +1 -1
- package/lib/components/ToolbarGroup/useToolbarGroupStyles.styles.raw.js +1 -1
- package/lib/components/ToolbarRadioButton/ToolbarRadioButton.js +5 -5
- package/lib/components/ToolbarRadioButton/ToolbarRadioButton.js.map +1 -1
- package/lib/components/ToolbarRadioButton/index.js +3 -3
- package/lib/components/ToolbarRadioButton/index.js.map +1 -1
- package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js +3 -3
- package/lib/components/ToolbarRadioButton/useToolbarRadioButton.js.map +1 -1
- package/lib/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js +3 -3
- package/lib/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js.map +1 -1
- package/lib/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.raw.js +3 -3
- package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.js +3 -3
- package/lib/components/ToolbarRadioGroup/ToolbarRadioGroup.js.map +1 -1
- package/lib/components/ToolbarRadioGroup/index.js +1 -1
- package/lib/components/ToolbarRadioGroup/index.js.map +1 -1
- package/lib/components/ToolbarToggleButton/ToolbarToggleButton.js +5 -5
- package/lib/components/ToolbarToggleButton/ToolbarToggleButton.js.map +1 -1
- package/lib/components/ToolbarToggleButton/index.js +3 -3
- package/lib/components/ToolbarToggleButton/index.js.map +1 -1
- package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js +2 -2
- package/lib/components/ToolbarToggleButton/useToolbarToggleButton.js.map +1 -1
- package/lib/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js +3 -3
- package/lib/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js.map +1 -1
- package/lib/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.raw.js +3 -3
- package/lib/index.js +7 -7
- package/lib/index.js.map +1 -1
- package/lib-commonjs/{Toolbar.js → Toolbar.cjs} +1 -1
- package/lib-commonjs/{Toolbar.js.map → Toolbar.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarButton.js → ToolbarButton.cjs} +1 -1
- package/lib-commonjs/{ToolbarButton.js.map → ToolbarButton.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarDivider.js → ToolbarDivider.cjs} +1 -1
- package/lib-commonjs/{ToolbarDivider.js.map → ToolbarDivider.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarGroup.js → ToolbarGroup.cjs} +1 -1
- package/lib-commonjs/{ToolbarGroup.js.map → ToolbarGroup.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarRadioButton.js → ToolbarRadioButton.cjs} +1 -1
- package/lib-commonjs/{ToolbarRadioButton.js.map → ToolbarRadioButton.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarRadioGroup.js → ToolbarRadioGroup.cjs} +1 -1
- package/lib-commonjs/{ToolbarRadioGroup.js.map → ToolbarRadioGroup.cjs.map} +1 -1
- package/lib-commonjs/{ToolbarToggleButton.js → ToolbarToggleButton.cjs} +1 -1
- package/lib-commonjs/{ToolbarToggleButton.js.map → ToolbarToggleButton.cjs.map} +1 -1
- package/lib-commonjs/components/Toolbar/{Toolbar.js → Toolbar.cjs} +4 -4
- package/lib-commonjs/components/Toolbar/{Toolbar.js.map → Toolbar.cjs.map} +1 -1
- package/lib-commonjs/components/Toolbar/{index.js → index.cjs} +6 -6
- package/lib-commonjs/components/Toolbar/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/Toolbar/{renderToolbar.js → renderToolbar.cjs} +1 -1
- package/lib-commonjs/components/Toolbar/{renderToolbar.js.map → renderToolbar.cjs.map} +1 -1
- package/lib-commonjs/components/Toolbar/useToolbarStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/ToolbarButton/{ToolbarButton.js → ToolbarButton.cjs} +2 -2
- package/lib-commonjs/components/ToolbarButton/{ToolbarButton.js.map → ToolbarButton.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarButton/{index.js → index.cjs} +3 -3
- package/lib-commonjs/components/ToolbarButton/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/ToolbarDivider/{ToolbarDivider.js → ToolbarDivider.cjs} +2 -2
- package/lib-commonjs/components/ToolbarDivider/{ToolbarDivider.js.map → ToolbarDivider.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarDivider/{index.js → index.cjs} +3 -3
- package/lib-commonjs/components/ToolbarDivider/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarDivider/{useToolbarDivider.js → useToolbarDivider.cjs} +1 -1
- package/lib-commonjs/components/ToolbarDivider/{useToolbarDivider.js.map → useToolbarDivider.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/ToolbarGroup/{ToolbarGroup.js → ToolbarGroup.cjs} +3 -3
- package/lib-commonjs/components/ToolbarGroup/{ToolbarGroup.js.map → ToolbarGroup.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarGroup/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/ToolbarGroup/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarGroup/{useToolbarGroup.js → useToolbarGroup.cjs} +1 -1
- package/lib-commonjs/components/ToolbarGroup/{useToolbarGroup.js.map → useToolbarGroup.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/ToolbarRadioButton/{ToolbarRadioButton.js → ToolbarRadioButton.cjs} +2 -2
- package/lib-commonjs/components/ToolbarRadioButton/{ToolbarRadioButton.js.map → ToolbarRadioButton.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/{index.js → index.cjs} +3 -3
- package/lib-commonjs/components/ToolbarRadioButton/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/{useToolbarRadioButton.js → useToolbarRadioButton.cjs} +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/{useToolbarRadioButton.js.map → useToolbarRadioButton.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/ToolbarRadioGroup/{ToolbarRadioGroup.js → ToolbarRadioGroup.cjs} +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/{ToolbarRadioGroup.js.map → ToolbarRadioGroup.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/{index.js → index.cjs} +1 -1
- package/lib-commonjs/components/ToolbarRadioGroup/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/{ToolbarToggleButton.js → ToolbarToggleButton.cjs} +2 -2
- package/lib-commonjs/components/ToolbarToggleButton/{ToolbarToggleButton.js.map → ToolbarToggleButton.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/{index.js → index.cjs} +3 -3
- package/lib-commonjs/components/ToolbarToggleButton/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/{useToolbarToggleButton.js → useToolbarToggleButton.cjs} +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/{useToolbarToggleButton.js.map → useToolbarToggleButton.cjs.map} +1 -1
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.cjs.map +1 -0
- package/lib-commonjs/{index.js → index.cjs} +7 -7
- package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
- package/package.json +22 -16
- package/lib-commonjs/components/Toolbar/useToolbarStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ToolbarButton/useToolbarButtonStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ToolbarDivider/useToolbarDividerStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ToolbarGroup/useToolbarGroupStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ToolbarRadioButton/useToolbarRadioButtonStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ToolbarToggleButton/useToolbarToggleButtonStyles.styles.js.map +0 -1
- /package/lib-commonjs/components/Toolbar/{Toolbar.types.js → Toolbar.types.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{Toolbar.types.js.map → Toolbar.types.cjs.map} +0 -0
- /package/lib-commonjs/components/Toolbar/{ToolbarContext.js → ToolbarContext.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{ToolbarContext.js.map → ToolbarContext.cjs.map} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbar.js → useToolbar.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbar.js.map → useToolbar.cjs.map} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbarContextValues.js → useToolbarContextValues.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbarContextValues.js.map → useToolbarContextValues.cjs.map} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbarStyles.styles.js → useToolbarStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbarStyles.styles.raw.js → useToolbarStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/Toolbar/{useToolbarStyles.styles.raw.js.map → useToolbarStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{ToolbarButton.types.js → ToolbarButton.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{ToolbarButton.types.js.map → ToolbarButton.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{useToolbarButton.js → useToolbarButton.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{useToolbarButton.js.map → useToolbarButton.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{useToolbarButtonStyles.styles.js → useToolbarButtonStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{useToolbarButtonStyles.styles.raw.js → useToolbarButtonStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarButton/{useToolbarButtonStyles.styles.raw.js.map → useToolbarButtonStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarDivider/{ToolbarDivider.types.js → ToolbarDivider.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarDivider/{ToolbarDivider.types.js.map → ToolbarDivider.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarDivider/{useToolbarDividerStyles.styles.js → useToolbarDividerStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarDivider/{useToolbarDividerStyles.styles.raw.js → useToolbarDividerStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarDivider/{useToolbarDividerStyles.styles.raw.js.map → useToolbarDividerStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{ToolbarGroup.types.js → ToolbarGroup.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{ToolbarGroup.types.js.map → ToolbarGroup.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{renderToolbarGroup.js → renderToolbarGroup.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{renderToolbarGroup.js.map → renderToolbarGroup.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{useToolbarGroupStyles.styles.js → useToolbarGroupStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{useToolbarGroupStyles.styles.raw.js → useToolbarGroupStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarGroup/{useToolbarGroupStyles.styles.raw.js.map → useToolbarGroupStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarRadioButton/{ToolbarRadioButton.types.js → ToolbarRadioButton.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarRadioButton/{ToolbarRadioButton.types.js.map → ToolbarRadioButton.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarRadioButton/{useToolbarRadioButtonStyles.styles.js → useToolbarRadioButtonStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarRadioButton/{useToolbarRadioButtonStyles.styles.raw.js → useToolbarRadioButtonStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarRadioButton/{useToolbarRadioButtonStyles.styles.raw.js.map → useToolbarRadioButtonStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarRadioGroup/{ToolbarRadioGroup.types.js → ToolbarRadioGroup.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarRadioGroup/{ToolbarRadioGroup.types.js.map → ToolbarRadioGroup.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarToggleButton/{ToolbarToggleButton.types.js → ToolbarToggleButton.types.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarToggleButton/{ToolbarToggleButton.types.js.map → ToolbarToggleButton.types.cjs.map} +0 -0
- /package/lib-commonjs/components/ToolbarToggleButton/{useToolbarToggleButtonStyles.styles.js → useToolbarToggleButtonStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarToggleButton/{useToolbarToggleButtonStyles.styles.raw.js → useToolbarToggleButtonStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/ToolbarToggleButton/{useToolbarToggleButtonStyles.styles.raw.js.map → useToolbarToggleButtonStyles.styles.raw.cjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,39 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-toolbar
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 11 Aug 2026 17:16:03 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.8.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.8.4)
|
|
8
|
+
|
|
9
|
+
Tue, 11 Aug 2026 17:16:03 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.8.3..@fluentui/react-toolbar_v9.8.4)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-button to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-context-selector to v9.2.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-divider to v9.7.4 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-jsx-runtime to v9.4.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-radio to v9.6.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-shared-contexts to v9.26.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
|
+
- Bump @fluentui/react-tabster to v9.26.17 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
22
|
+
- Bump @fluentui/react-theme to v9.2.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
23
|
+
- Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
24
|
+
|
|
25
|
+
## [9.8.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.8.3)
|
|
26
|
+
|
|
27
|
+
Mon, 29 Jun 2026 15:15:07 GMT
|
|
28
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.8.2..@fluentui/react-toolbar_v9.8.3)
|
|
29
|
+
|
|
30
|
+
### Patches
|
|
31
|
+
|
|
32
|
+
- Bump @fluentui/react-button to v9.10.1 ([commit](https://github.com/microsoft/fluentui/commit/aedc345f58bc16bb8540615b5afdf3d2d3569db4) by beachball)
|
|
33
|
+
|
|
7
34
|
## [9.8.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-toolbar_v9.8.2)
|
|
8
35
|
|
|
9
|
-
Wed, 24 Jun 2026 11:03
|
|
36
|
+
Wed, 24 Jun 2026 11:10:03 GMT
|
|
10
37
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toolbar_v9.8.1..@fluentui/react-toolbar_v9.8.2)
|
|
11
38
|
|
|
12
39
|
### Patches
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import type { ButtonProps } from '@fluentui/react-button';
|
|
2
|
+
import type { ButtonSlots } from '@fluentui/react-button';
|
|
3
|
+
import type { ButtonState } from '@fluentui/react-button';
|
|
4
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
5
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
|
6
|
+
import type { ContextSelector } from '@fluentui/react-context-selector';
|
|
7
|
+
import type { DistributiveOmit } from '@fluentui/react-utilities';
|
|
8
|
+
import type { DividerBaseState } from '@fluentui/react-divider';
|
|
9
|
+
import type { DividerSlots } from '@fluentui/react-divider';
|
|
10
|
+
import type { DividerState } from '@fluentui/react-divider';
|
|
11
|
+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
12
|
+
import type { JSXElement } from '@fluentui/react-utilities';
|
|
13
|
+
import type * as React_2 from 'react';
|
|
14
|
+
import type { Slot } from '@fluentui/react-utilities';
|
|
15
|
+
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
16
|
+
import type { ToggleButtonProps } from '@fluentui/react-button';
|
|
17
|
+
import type { ToggleButtonState } from '@fluentui/react-button';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Render the final JSX of Toolbar
|
|
21
|
+
*/
|
|
22
|
+
export declare const renderToolbar_unstable: (state: ToolbarBaseState, contextValues: ToolbarContextValues) => JSXElement;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Render the final JSX of ToolbarGroup
|
|
26
|
+
*/
|
|
27
|
+
export declare const renderToolbarGroup_unstable: (state: ToolbarGroupState) => JSXElement;
|
|
28
|
+
|
|
29
|
+
declare type ToggableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked?: boolean) => void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Toolbar component
|
|
33
|
+
*/
|
|
34
|
+
export declare const Toolbar: ForwardRefComponent<ToolbarProps>;
|
|
35
|
+
|
|
36
|
+
export declare type ToolbarBaseProps = Omit<ToolbarProps, 'size'>;
|
|
37
|
+
|
|
38
|
+
export declare type ToolbarBaseState = Omit<ToolbarState, 'size'>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* ToolbarButton component is a Button to be used inside Toolbar
|
|
42
|
+
* which will respect toolbar props such as `size`
|
|
43
|
+
*/
|
|
44
|
+
export declare const ToolbarButton: ForwardRefComponent<ToolbarButtonProps>;
|
|
45
|
+
|
|
46
|
+
export declare type ToolbarButtonBaseProps = DistributiveOmit<ToolbarButtonProps, 'appearance'>;
|
|
47
|
+
|
|
48
|
+
export declare type ToolbarButtonBaseState = DistributiveOmit<ToolbarButtonState, 'appearance' | 'size' | 'shape'>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* ToolbarButton Props
|
|
52
|
+
*/
|
|
53
|
+
export declare type ToolbarButtonProps = ComponentProps<ButtonSlots> & Partial<Pick<ButtonProps, 'disabled' | 'disabledFocusable'>> & {
|
|
54
|
+
appearance?: 'primary' | 'subtle' | 'transparent';
|
|
55
|
+
} & {
|
|
56
|
+
vertical?: boolean;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* State used in rendering ToolbarButton
|
|
61
|
+
*/
|
|
62
|
+
export declare type ToolbarButtonState = ComponentState<Partial<ButtonSlots>> & ButtonState & Required<Pick<ToolbarButtonProps, 'vertical'>>;
|
|
63
|
+
|
|
64
|
+
declare type ToolbarCheckedValueChangeData = {
|
|
65
|
+
/** The items for this value that are checked */
|
|
66
|
+
checkedItems: string[];
|
|
67
|
+
/** The name of the value */
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare type ToolbarCheckedValueChangeEvent = React_2.MouseEvent | React_2.KeyboardEvent;
|
|
72
|
+
|
|
73
|
+
export declare const toolbarClassNames: SlotClassNames<ToolbarSlots>;
|
|
74
|
+
|
|
75
|
+
export declare type ToolbarContextValue = Pick<ToolbarState, 'size' | 'vertical' | 'checkedValues'> & {
|
|
76
|
+
handleToggleButton?: ToggableHandler;
|
|
77
|
+
handleRadio?: ToggableHandler;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export declare type ToolbarContextValues = {
|
|
81
|
+
toolbar: ToolbarContextValue;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* ToolbarDivider component
|
|
86
|
+
*/
|
|
87
|
+
export declare const ToolbarDivider: ForwardRefComponent<ToolbarDividerProps>;
|
|
88
|
+
|
|
89
|
+
export declare type ToolbarDividerBaseProps = ToolbarDividerProps;
|
|
90
|
+
|
|
91
|
+
export declare type ToolbarDividerBaseState = ComponentState<Partial<DividerSlots>> & DividerBaseState;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* ToolbarDivider Props
|
|
95
|
+
*/
|
|
96
|
+
export declare type ToolbarDividerProps = ComponentProps<Partial<DividerSlots>> & {
|
|
97
|
+
/**
|
|
98
|
+
* A divider can be horizontal or vertical (default).
|
|
99
|
+
*
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
vertical?: boolean;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* State used in rendering ToolbarDivider
|
|
107
|
+
*/
|
|
108
|
+
export declare type ToolbarDividerState = ComponentState<Partial<DividerSlots>> & DividerState;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* ToolbarGroup component is a Button to be used inside Toolbar
|
|
112
|
+
* which will respect toolbar props such as `size`
|
|
113
|
+
*/
|
|
114
|
+
export declare const ToolbarGroup: ForwardRefComponent<ToolbarGroupProps>;
|
|
115
|
+
|
|
116
|
+
export declare const toolbarGroupClassNames: SlotClassNames<ToolbarGroupSlots>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* ToolbarButton Props
|
|
120
|
+
*/
|
|
121
|
+
export declare type ToolbarGroupProps = ComponentProps<ToolbarGroupSlots>;
|
|
122
|
+
|
|
123
|
+
declare type ToolbarGroupSlots = {
|
|
124
|
+
root: Slot<'div'>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* State used in rendering ToolbarButton
|
|
129
|
+
*/
|
|
130
|
+
export declare type ToolbarGroupState = ComponentState<ToolbarGroupSlots> & {
|
|
131
|
+
vertical?: boolean;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Toolbar Props
|
|
136
|
+
*/
|
|
137
|
+
export declare type ToolbarProps = ComponentProps<ToolbarSlots> & {
|
|
138
|
+
/**
|
|
139
|
+
* Toolbar can have small or medium size
|
|
140
|
+
*
|
|
141
|
+
* @default medium
|
|
142
|
+
*/
|
|
143
|
+
size?: 'small' | 'medium' | 'large';
|
|
144
|
+
/**
|
|
145
|
+
* Toolbar can be vertical styled
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
vertical?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Map of all checked values
|
|
151
|
+
*/
|
|
152
|
+
checkedValues?: Record<string, string[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Default values to be checked on mount
|
|
155
|
+
*/
|
|
156
|
+
defaultCheckedValues?: Record<string, string[]>;
|
|
157
|
+
/**
|
|
158
|
+
* Callback when checked items change for value with a name
|
|
159
|
+
*
|
|
160
|
+
* @param event - React's original SyntheticEvent
|
|
161
|
+
* @param data - A data object with relevant information
|
|
162
|
+
*/
|
|
163
|
+
onCheckedValueChange?: (e: ToolbarCheckedValueChangeEvent, data: ToolbarCheckedValueChangeData) => void;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* ToolbarRadioButton component
|
|
168
|
+
*/
|
|
169
|
+
export declare const ToolbarRadioButton: ForwardRefComponent<ToolbarRadioButtonProps>;
|
|
170
|
+
|
|
171
|
+
export declare type ToolbarRadioButtonBaseProps = DistributiveOmit<ToolbarRadioButtonProps, 'appearance'>;
|
|
172
|
+
|
|
173
|
+
export declare type ToolbarRadioButtonBaseState = DistributiveOmit<ToolbarRadioButtonState, 'appearance' | 'size' | 'shape'>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ToolbarRadioButton Props
|
|
177
|
+
*/
|
|
178
|
+
export declare type ToolbarRadioButtonProps = ComponentProps<ButtonSlots> & Partial<Pick<ToggleButtonProps, 'disabled' | 'disabledFocusable' | 'size'>> & {
|
|
179
|
+
appearance?: 'primary' | 'subtle' | 'transparent';
|
|
180
|
+
name: string;
|
|
181
|
+
value: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* State used in rendering ToolbarRadioButton
|
|
186
|
+
*/
|
|
187
|
+
export declare type ToolbarRadioButtonState = ComponentState<Partial<ButtonSlots>> & ToggleButtonState & Required<Pick<ToggleButtonProps, 'checked'>> & Pick<ToolbarRadioButtonProps, 'name' | 'value'>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* ToolbarRadioGroup component is a Button to be used inside Toolbar
|
|
191
|
+
* which will respect toolbar props such as `size`
|
|
192
|
+
*/
|
|
193
|
+
export declare const ToolbarRadioGroup: ForwardRefComponent<ToolbarRadioGroupProps>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* ToolbarButton Props
|
|
197
|
+
*/
|
|
198
|
+
export declare type ToolbarRadioGroupProps = ComponentProps<ToolbarRadioGroupSlots>;
|
|
199
|
+
|
|
200
|
+
declare type ToolbarRadioGroupSlots = {
|
|
201
|
+
root: Slot<'div'>;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* State used in rendering ToolbarButton
|
|
206
|
+
*/
|
|
207
|
+
export declare type ToolbarRadioGroupState = ComponentState<ToolbarRadioGroupSlots>;
|
|
208
|
+
|
|
209
|
+
export declare type ToolbarSlots = {
|
|
210
|
+
root: Slot<'div'>;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* State used in rendering Toolbar
|
|
215
|
+
*/
|
|
216
|
+
export declare type ToolbarState = ComponentState<ToolbarSlots> & Required<Pick<ToolbarProps, 'size' | 'checkedValues' | 'vertical'>> & Pick<ToolbarProps, 'defaultCheckedValues' | 'onCheckedValueChange'> & {
|
|
217
|
+
handleToggleButton: ToggableHandler;
|
|
218
|
+
handleRadio: ToggableHandler;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* ToolbarToggleButton component
|
|
223
|
+
*/
|
|
224
|
+
export declare const ToolbarToggleButton: ForwardRefComponent<ToolbarToggleButtonProps>;
|
|
225
|
+
|
|
226
|
+
export declare type ToolbarToggleButtonBaseProps = DistributiveOmit<ToolbarToggleButtonProps, 'appearance'>;
|
|
227
|
+
|
|
228
|
+
export declare type ToolbarToggleButtonBaseState = DistributiveOmit<ToolbarToggleButtonState, 'appearance' | 'size' | 'shape'>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* ToolbarToggleButton Props
|
|
232
|
+
*/
|
|
233
|
+
export declare type ToolbarToggleButtonProps = ComponentProps<ButtonSlots> & Partial<Pick<ToggleButtonProps, 'disabled' | 'disabledFocusable' | 'size'>> & {
|
|
234
|
+
appearance?: 'primary' | 'subtle' | 'transparent';
|
|
235
|
+
name: string;
|
|
236
|
+
value: string;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* State used in rendering ToolbarToggleButton
|
|
241
|
+
*/
|
|
242
|
+
export declare type ToolbarToggleButtonState = ComponentState<Partial<ButtonSlots>> & ToggleButtonState & Required<Pick<ToggleButtonProps, 'checked'>> & Pick<ToolbarToggleButtonProps, 'name' | 'value'>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Create the state required to render Toolbar.
|
|
246
|
+
*
|
|
247
|
+
* The returned state can be modified with hooks such as useToolbarStyles_unstable,
|
|
248
|
+
* before being passed to renderToolbar_unstable.
|
|
249
|
+
*
|
|
250
|
+
* @param props - props from this instance of Toolbar
|
|
251
|
+
* @param ref - reference to root HTMLElement of Toolbar
|
|
252
|
+
*/
|
|
253
|
+
export declare const useToolbar_unstable: (props: ToolbarProps, ref: React_2.Ref<HTMLElement>) => ToolbarState;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Base hook that builds Toolbar state for behavior and structure only.
|
|
257
|
+
* It does not add arrow key navigation, which is handled by `useToolbar_unstable`.
|
|
258
|
+
*
|
|
259
|
+
* @internal
|
|
260
|
+
* @param props - Props for this Toolbar instance.
|
|
261
|
+
* @param ref - Ref to the root HTMLElement.
|
|
262
|
+
*/
|
|
263
|
+
export declare const useToolbarBase_unstable: (props: ToolbarBaseProps, ref: React_2.Ref<HTMLElement>) => ToolbarBaseState;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Given user props, defines default props for the Button, calls useButtonState and useChecked, and returns
|
|
267
|
+
* processed state.
|
|
268
|
+
* @param props - User provided props to the Button component.
|
|
269
|
+
* @param ref - User provided ref to be passed to the Button component.
|
|
270
|
+
*/
|
|
271
|
+
export declare const useToolbarButton_unstable: (props: ToolbarButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarButtonState;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Base hook that builds Toolbar Button state for behavior and structure only.
|
|
275
|
+
* It does not provide any design-related defaults.
|
|
276
|
+
*
|
|
277
|
+
* @internal
|
|
278
|
+
* @param props - User provided props to the Button component.
|
|
279
|
+
* @param ref - User provided ref to be passed to the Button component.
|
|
280
|
+
*/
|
|
281
|
+
export declare const useToolbarButtonBase_unstable: (props: ToolbarButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarButtonBaseState;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Apply styling to the ToolbarButton slots based on the state
|
|
285
|
+
*/
|
|
286
|
+
export declare const useToolbarButtonStyles_unstable: (state: ToolbarButtonState) => void;
|
|
287
|
+
|
|
288
|
+
export declare const useToolbarContext_unstable: <T>(selector: ContextSelector<ToolbarContextValue, T>) => T;
|
|
289
|
+
|
|
290
|
+
export declare function useToolbarContextValues_unstable(state: ToolbarState): ToolbarContextValues;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Create the state required to render ToolbarDivider.
|
|
294
|
+
*
|
|
295
|
+
* The returned state can be modified with hooks such as useToolbarDividerStyles_unstable,
|
|
296
|
+
* before being passed to renderToolbar_unstable.
|
|
297
|
+
*
|
|
298
|
+
* @param props - props from this instance of ToolbarDivider
|
|
299
|
+
* @param ref - reference to root HTMLElement of ToolbarDivider
|
|
300
|
+
*/
|
|
301
|
+
export declare const useToolbarDivider_unstable: (props: ToolbarDividerProps, ref: React_2.Ref<HTMLElement>) => ToolbarDividerState;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Base hook that builds ToolbarDivider state for behavior and structure only.
|
|
305
|
+
* It does not provide any design-related defaults.
|
|
306
|
+
*
|
|
307
|
+
* @internal
|
|
308
|
+
* @param props - props from this instance of ToolbarDivider
|
|
309
|
+
* @param ref - reference to root HTMLElement of ToolbarDivider
|
|
310
|
+
*/
|
|
311
|
+
export declare const useToolbarDividerBase_unstable: (props: ToolbarDividerBaseProps, ref: React_2.Ref<HTMLElement>) => ToolbarDividerBaseState;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Apply styling to the ToolbarDivider slots based on the state
|
|
315
|
+
*/
|
|
316
|
+
export declare const useToolbarDividerStyles_unstable: (state: ToolbarDividerState) => ToolbarDividerState;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Given user props, defines default props for the Group
|
|
320
|
+
* @param props - User provided props to the Group component.
|
|
321
|
+
* @param ref - User provided ref to be passed to the Group component.
|
|
322
|
+
*/
|
|
323
|
+
export declare const useToolbarGroup_unstable: (props: ToolbarGroupProps, ref: React_2.Ref<HTMLDivElement>) => ToolbarGroupState;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Apply styling to the Toolbar slots based on the state
|
|
327
|
+
*/
|
|
328
|
+
export declare const useToolbarGroupStyles_unstable: (state: ToolbarGroupState) => ToolbarGroupState;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Given user props, defines default props for the RadioButton, calls useButtonState and useChecked, and returns
|
|
332
|
+
* processed state.
|
|
333
|
+
* @param props - User provided props to the RadioButton component.
|
|
334
|
+
* @param ref - User provided ref to be passed to the RadioButton component.
|
|
335
|
+
*/
|
|
336
|
+
export declare const useToolbarRadioButton_unstable: (props: ToolbarRadioButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarRadioButtonState;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Base hook that builds Toolbar RadioButton state for behavior and structure only.
|
|
340
|
+
* It does not provide any design-related defaults.
|
|
341
|
+
*
|
|
342
|
+
* @internal
|
|
343
|
+
* @param props - User provided props to the RadioButton component.
|
|
344
|
+
* @param ref - User provided ref to be passed to the RadioButton component.
|
|
345
|
+
*/
|
|
346
|
+
export declare const useToolbarRadioButtonBase_unstable: (props: ToolbarRadioButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarRadioButtonBaseState;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Apply styling to the ToolbarRadioButton slots based on the state
|
|
350
|
+
*/
|
|
351
|
+
export declare const useToolbarRadioButtonStyles_unstable: (state: ToolbarRadioButtonState) => ToolbarRadioButtonState;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Apply styling to the Toolbar slots based on the state
|
|
355
|
+
*/
|
|
356
|
+
export declare const useToolbarStyles_unstable: (state: ToolbarState) => ToolbarState;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
|
|
360
|
+
* processed state.
|
|
361
|
+
* @param props - User provided props to the ToggleButton component.
|
|
362
|
+
* @param ref - User provided ref to be passed to the ToggleButton component.
|
|
363
|
+
*/
|
|
364
|
+
export declare const useToolbarToggleButton_unstable: (props: ToolbarToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarToggleButtonState;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Base hook that builds Toolbar ToggleButton state for behavior and structure only.
|
|
368
|
+
* It does not provide any design-related defaults.
|
|
369
|
+
*
|
|
370
|
+
* @internal
|
|
371
|
+
* @param props - User provided props to the ToggleButton component.
|
|
372
|
+
* @param ref - User provided ref to be passed to the ToggleButton component.
|
|
373
|
+
*/
|
|
374
|
+
export declare const useToolbarToggleButtonBase_unstable: (props: ToolbarToggleButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToolbarToggleButtonBaseState;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Apply styling to the ToolbarToggleButton slots based on the state
|
|
378
|
+
*/
|
|
379
|
+
export declare const useToolbarToggleButtonStyles_unstable: (state: ToolbarToggleButtonState) => ToolbarToggleButtonState;
|
|
380
|
+
|
|
381
|
+
export { }
|
package/lib/Toolbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Toolbar, renderToolbar_unstable, toolbarClassNames, useToolbarStyles_unstable, useToolbar_unstable, useToolbarBase_unstable, useToolbarContext_unstable, useToolbarContextValues_unstable } from
|
|
1
|
+
export { Toolbar, renderToolbar_unstable, toolbarClassNames, useToolbarStyles_unstable, useToolbar_unstable, useToolbarBase_unstable, useToolbarContext_unstable, useToolbarContextValues_unstable } from "./components/Toolbar/index.js";
|
package/lib/Toolbar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Toolbar.ts"],"sourcesContent":["export type {\n ToggableHandler,\n ToolbarCheckedValueChangeData,\n ToolbarCheckedValueChangeEvent,\n ToolbarContextValue,\n ToolbarContextValues,\n ToolbarBaseProps,\n ToolbarProps,\n ToolbarSlots,\n ToolbarBaseState,\n ToolbarState,\n UninitializedToolbarState,\n} from './components/Toolbar/index';\nexport {\n Toolbar,\n renderToolbar_unstable,\n toolbarClassNames,\n useToolbarStyles_unstable,\n useToolbar_unstable,\n useToolbarBase_unstable,\n useToolbarContext_unstable,\n useToolbarContextValues_unstable,\n} from './components/Toolbar/index';\n"],"names":["Toolbar","renderToolbar_unstable","toolbarClassNames","useToolbarStyles_unstable","useToolbar_unstable","useToolbarBase_unstable","useToolbarContext_unstable","useToolbarContextValues_unstable"],"mappings":"AAaA,SACEA,OAAO,EACPC,sBAAsB,EACtBC,iBAAiB,EACjBC,yBAAyB,EACzBC,mBAAmB,EACnBC,uBAAuB,EACvBC,0BAA0B,EAC1BC,gCAAgC,QAC3B,
|
|
1
|
+
{"version":3,"sources":["../src/Toolbar.ts"],"sourcesContent":["export type {\n ToggableHandler,\n ToolbarCheckedValueChangeData,\n ToolbarCheckedValueChangeEvent,\n ToolbarContextValue,\n ToolbarContextValues,\n ToolbarBaseProps,\n ToolbarProps,\n ToolbarSlots,\n ToolbarBaseState,\n ToolbarState,\n UninitializedToolbarState,\n} from './components/Toolbar/index';\nexport {\n Toolbar,\n renderToolbar_unstable,\n toolbarClassNames,\n useToolbarStyles_unstable,\n useToolbar_unstable,\n useToolbarBase_unstable,\n useToolbarContext_unstable,\n useToolbarContextValues_unstable,\n} from './components/Toolbar/index';\n"],"names":["Toolbar","renderToolbar_unstable","toolbarClassNames","useToolbarStyles_unstable","useToolbar_unstable","useToolbarBase_unstable","useToolbarContext_unstable","useToolbarContextValues_unstable"],"mappings":"AAaA,SACEA,OAAO,EACPC,sBAAsB,EACtBC,iBAAiB,EACjBC,yBAAyB,EACzBC,mBAAmB,EACnBC,uBAAuB,EACvBC,0BAA0B,EAC1BC,gCAAgC,QAC3B,gCAA6B"}
|
package/lib/ToolbarButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarButton, useToolbarButtonStyles_unstable, useToolbarButton_unstable, useToolbarButtonBase_unstable } from
|
|
1
|
+
export { ToolbarButton, useToolbarButtonStyles_unstable, useToolbarButton_unstable, useToolbarButtonBase_unstable } from "./components/ToolbarButton/index.js";
|
package/lib/ToolbarButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarButton.ts"],"sourcesContent":["export type {\n ToolbarButtonBaseState,\n ToolbarButtonProps,\n ToolbarButtonBaseProps,\n ToolbarButtonState,\n} from './components/ToolbarButton/index';\nexport {\n ToolbarButton,\n useToolbarButtonStyles_unstable,\n useToolbarButton_unstable,\n useToolbarButtonBase_unstable,\n} from './components/ToolbarButton/index';\n"],"names":["ToolbarButton","useToolbarButtonStyles_unstable","useToolbarButton_unstable","useToolbarButtonBase_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,+BAA+B,EAC/BC,yBAAyB,EACzBC,6BAA6B,QACxB,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarButton.ts"],"sourcesContent":["export type {\n ToolbarButtonBaseState,\n ToolbarButtonProps,\n ToolbarButtonBaseProps,\n ToolbarButtonState,\n} from './components/ToolbarButton/index';\nexport {\n ToolbarButton,\n useToolbarButtonStyles_unstable,\n useToolbarButton_unstable,\n useToolbarButtonBase_unstable,\n} from './components/ToolbarButton/index';\n"],"names":["ToolbarButton","useToolbarButtonStyles_unstable","useToolbarButton_unstable","useToolbarButtonBase_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,+BAA+B,EAC/BC,yBAAyB,EACzBC,6BAA6B,QACxB,sCAAmC"}
|
package/lib/ToolbarDivider.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarDivider, useToolbarDividerStyles_unstable, useToolbarDivider_unstable, useToolbarDividerBase_unstable } from
|
|
1
|
+
export { ToolbarDivider, useToolbarDividerStyles_unstable, useToolbarDivider_unstable, useToolbarDividerBase_unstable } from "./components/ToolbarDivider/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarDivider.ts"],"sourcesContent":["export type {\n ToolbarDividerBaseState,\n ToolbarDividerProps,\n ToolbarDividerBaseProps,\n ToolbarDividerState,\n} from './components/ToolbarDivider/index';\nexport {\n ToolbarDivider,\n useToolbarDividerStyles_unstable,\n useToolbarDivider_unstable,\n useToolbarDividerBase_unstable,\n} from './components/ToolbarDivider/index';\n"],"names":["ToolbarDivider","useToolbarDividerStyles_unstable","useToolbarDivider_unstable","useToolbarDividerBase_unstable"],"mappings":"AAMA,SACEA,cAAc,EACdC,gCAAgC,EAChCC,0BAA0B,EAC1BC,8BAA8B,QACzB,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarDivider.ts"],"sourcesContent":["export type {\n ToolbarDividerBaseState,\n ToolbarDividerProps,\n ToolbarDividerBaseProps,\n ToolbarDividerState,\n} from './components/ToolbarDivider/index';\nexport {\n ToolbarDivider,\n useToolbarDividerStyles_unstable,\n useToolbarDivider_unstable,\n useToolbarDividerBase_unstable,\n} from './components/ToolbarDivider/index';\n"],"names":["ToolbarDivider","useToolbarDividerStyles_unstable","useToolbarDivider_unstable","useToolbarDividerBase_unstable"],"mappings":"AAMA,SACEA,cAAc,EACdC,gCAAgC,EAChCC,0BAA0B,EAC1BC,8BAA8B,QACzB,uCAAoC"}
|
package/lib/ToolbarGroup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarGroup, renderToolbarGroup_unstable, toolbarGroupClassNames, useToolbarGroupStyles_unstable, useToolbarGroup_unstable } from
|
|
1
|
+
export { ToolbarGroup, renderToolbarGroup_unstable, toolbarGroupClassNames, useToolbarGroupStyles_unstable, useToolbarGroup_unstable } from "./components/ToolbarGroup/index.js";
|
package/lib/ToolbarGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarGroup.ts"],"sourcesContent":["export type { ToolbarGroupProps, ToolbarGroupSlots, ToolbarGroupState } from './components/ToolbarGroup/index';\nexport {\n ToolbarGroup,\n renderToolbarGroup_unstable,\n toolbarGroupClassNames,\n useToolbarGroupStyles_unstable,\n useToolbarGroup_unstable,\n} from './components/ToolbarGroup/index';\n"],"names":["ToolbarGroup","renderToolbarGroup_unstable","toolbarGroupClassNames","useToolbarGroupStyles_unstable","useToolbarGroup_unstable"],"mappings":"AACA,SACEA,YAAY,EACZC,2BAA2B,EAC3BC,sBAAsB,EACtBC,8BAA8B,EAC9BC,wBAAwB,QACnB,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarGroup.ts"],"sourcesContent":["export type { ToolbarGroupProps, ToolbarGroupSlots, ToolbarGroupState } from './components/ToolbarGroup/index';\nexport {\n ToolbarGroup,\n renderToolbarGroup_unstable,\n toolbarGroupClassNames,\n useToolbarGroupStyles_unstable,\n useToolbarGroup_unstable,\n} from './components/ToolbarGroup/index';\n"],"names":["ToolbarGroup","renderToolbarGroup_unstable","toolbarGroupClassNames","useToolbarGroupStyles_unstable","useToolbarGroup_unstable"],"mappings":"AACA,SACEA,YAAY,EACZC,2BAA2B,EAC3BC,sBAAsB,EACtBC,8BAA8B,EAC9BC,wBAAwB,QACnB,qCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarRadioButton, useToolbarRadioButtonStyles_unstable, useToolbarRadioButton_unstable, useToolbarRadioButtonBase_unstable } from
|
|
1
|
+
export { ToolbarRadioButton, useToolbarRadioButtonStyles_unstable, useToolbarRadioButton_unstable, useToolbarRadioButtonBase_unstable } from "./components/ToolbarRadioButton/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarRadioButton.ts"],"sourcesContent":["export type {\n ToolbarRadioButtonBaseProps,\n ToolbarRadioButtonProps,\n ToolbarRadioButtonBaseState,\n ToolbarRadioButtonState,\n} from './components/ToolbarRadioButton/index';\nexport {\n ToolbarRadioButton,\n useToolbarRadioButtonStyles_unstable,\n useToolbarRadioButton_unstable,\n useToolbarRadioButtonBase_unstable,\n} from './components/ToolbarRadioButton/index';\n"],"names":["ToolbarRadioButton","useToolbarRadioButtonStyles_unstable","useToolbarRadioButton_unstable","useToolbarRadioButtonBase_unstable"],"mappings":"AAMA,SACEA,kBAAkB,EAClBC,oCAAoC,EACpCC,8BAA8B,EAC9BC,kCAAkC,QAC7B,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarRadioButton.ts"],"sourcesContent":["export type {\n ToolbarRadioButtonBaseProps,\n ToolbarRadioButtonProps,\n ToolbarRadioButtonBaseState,\n ToolbarRadioButtonState,\n} from './components/ToolbarRadioButton/index';\nexport {\n ToolbarRadioButton,\n useToolbarRadioButtonStyles_unstable,\n useToolbarRadioButton_unstable,\n useToolbarRadioButtonBase_unstable,\n} from './components/ToolbarRadioButton/index';\n"],"names":["ToolbarRadioButton","useToolbarRadioButtonStyles_unstable","useToolbarRadioButton_unstable","useToolbarRadioButtonBase_unstable"],"mappings":"AAMA,SACEA,kBAAkB,EAClBC,oCAAoC,EACpCC,8BAA8B,EAC9BC,kCAAkC,QAC7B,2CAAwC"}
|
package/lib/ToolbarRadioGroup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarRadioGroup } from
|
|
1
|
+
export { ToolbarRadioGroup } from "./components/ToolbarRadioGroup/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarRadioGroup.ts"],"sourcesContent":["export type {\n ToolbarRadioGroupProps,\n ToolbarRadioGroupSlots,\n ToolbarRadioGroupState,\n} from './components/ToolbarRadioGroup/index';\nexport { ToolbarRadioGroup } from './components/ToolbarRadioGroup/index';\n"],"names":["ToolbarRadioGroup"],"mappings":"AAKA,SAASA,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarRadioGroup.ts"],"sourcesContent":["export type {\n ToolbarRadioGroupProps,\n ToolbarRadioGroupSlots,\n ToolbarRadioGroupState,\n} from './components/ToolbarRadioGroup/index';\nexport { ToolbarRadioGroup } from './components/ToolbarRadioGroup/index';\n"],"names":["ToolbarRadioGroup"],"mappings":"AAKA,SAASA,iBAAiB,QAAQ,0CAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ToolbarToggleButton, useToolbarToggleButtonStyles_unstable, useToolbarToggleButton_unstable, useToolbarToggleButtonBase_unstable } from
|
|
1
|
+
export { ToolbarToggleButton, useToolbarToggleButtonStyles_unstable, useToolbarToggleButton_unstable, useToolbarToggleButtonBase_unstable } from "./components/ToolbarToggleButton/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ToolbarToggleButton.ts"],"sourcesContent":["export type {\n ToolbarToggleButtonBaseProps,\n ToolbarToggleButtonProps,\n ToolbarToggleButtonBaseState,\n ToolbarToggleButtonState,\n} from './components/ToolbarToggleButton/index';\nexport {\n ToolbarToggleButton,\n useToolbarToggleButtonStyles_unstable,\n useToolbarToggleButton_unstable,\n useToolbarToggleButtonBase_unstable,\n} from './components/ToolbarToggleButton/index';\n"],"names":["ToolbarToggleButton","useToolbarToggleButtonStyles_unstable","useToolbarToggleButton_unstable","useToolbarToggleButtonBase_unstable"],"mappings":"AAMA,SACEA,mBAAmB,EACnBC,qCAAqC,EACrCC,+BAA+B,EAC/BC,mCAAmC,QAC9B,
|
|
1
|
+
{"version":3,"sources":["../src/ToolbarToggleButton.ts"],"sourcesContent":["export type {\n ToolbarToggleButtonBaseProps,\n ToolbarToggleButtonProps,\n ToolbarToggleButtonBaseState,\n ToolbarToggleButtonState,\n} from './components/ToolbarToggleButton/index';\nexport {\n ToolbarToggleButton,\n useToolbarToggleButtonStyles_unstable,\n useToolbarToggleButton_unstable,\n useToolbarToggleButtonBase_unstable,\n} from './components/ToolbarToggleButton/index';\n"],"names":["ToolbarToggleButton","useToolbarToggleButtonStyles_unstable","useToolbarToggleButton_unstable","useToolbarToggleButtonBase_unstable"],"mappings":"AAMA,SACEA,mBAAmB,EACnBC,qCAAqC,EACrCC,+BAA+B,EAC/BC,mCAAmC,QAC9B,4CAAyC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { useToolbar_unstable } from
|
|
4
|
-
import { renderToolbar_unstable } from
|
|
5
|
-
import { useToolbarStyles_unstable } from
|
|
6
|
-
import { useToolbarContextValues_unstable } from
|
|
7
|
-
import { useCustomStyleHook_unstable } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useToolbar_unstable } from "./useToolbar.js";
|
|
4
|
+
import { renderToolbar_unstable } from "./renderToolbar.js";
|
|
5
|
+
import { useToolbarStyles_unstable } from "./useToolbarStyles.styles.js";
|
|
6
|
+
import { useToolbarContextValues_unstable } from "./useToolbarContextValues.js";
|
|
7
|
+
import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
|
|
8
8
|
/**
|
|
9
9
|
* Toolbar component
|
|
10
10
|
*/ export const Toolbar = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Toolbar/Toolbar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useToolbar_unstable } from './useToolbar';\nimport { renderToolbar_unstable } from './renderToolbar';\nimport { useToolbarStyles_unstable } from './useToolbarStyles.styles';\nimport type { ToolbarProps } from './Toolbar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Toolbar component\n */\nexport const Toolbar: ForwardRefComponent<ToolbarProps> = React.forwardRef((props, ref) => {\n const state = useToolbar_unstable(props, ref);\n const contextValues = useToolbarContextValues_unstable(state);\n\n useToolbarStyles_unstable(state);\n\n useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);\n\n return renderToolbar_unstable(state, contextValues);\n});\n\nToolbar.displayName = 'Toolbar';\n"],"names":["React","useToolbar_unstable","renderToolbar_unstable","useToolbarStyles_unstable","useToolbarContextValues_unstable","useCustomStyleHook_unstable","Toolbar","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/Toolbar/Toolbar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useToolbar_unstable } from './useToolbar';\nimport { renderToolbar_unstable } from './renderToolbar';\nimport { useToolbarStyles_unstable } from './useToolbarStyles.styles';\nimport type { ToolbarProps } from './Toolbar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Toolbar component\n */\nexport const Toolbar: ForwardRefComponent<ToolbarProps> = React.forwardRef((props, ref) => {\n const state = useToolbar_unstable(props, ref);\n const contextValues = useToolbarContextValues_unstable(state);\n\n useToolbarStyles_unstable(state);\n\n useCustomStyleHook_unstable('useToolbarStyles_unstable')(state);\n\n return renderToolbar_unstable(state, contextValues);\n});\n\nToolbar.displayName = 'Toolbar';\n"],"names":["React","useToolbar_unstable","renderToolbar_unstable","useToolbarStyles_unstable","useToolbarContextValues_unstable","useCustomStyleHook_unstable","Toolbar","forwardRef","props","ref","state","contextValues","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,sBAAsB,QAAQ,qBAAkB;AACzD,SAASC,yBAAyB,QAAQ,+BAA4B;AAGtE,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,wBAA6CN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQT,oBAAoBO,OAAOC;IACzC,MAAME,gBAAgBP,iCAAiCM;IAEvDP,0BAA0BO;IAE1BL,4BAA4B,6BAA6BK;IAEzD,OAAOR,uBAAuBQ,OAAOC;AACvC,GAAG;AAEHL,QAAQM,WAAW,GAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { createContext, useContextSelector } from
|
|
2
|
+
import { createContext, useContextSelector } from "@fluentui/react-context-selector";
|
|
3
3
|
export const ToolbarContext = createContext(undefined);
|
|
4
4
|
const toolbarContextDefaultValue = {
|
|
5
5
|
size: 'medium',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { useToolbarContext_unstable } from
|
|
2
|
-
export { Toolbar } from
|
|
3
|
-
export { renderToolbar_unstable } from
|
|
4
|
-
export { useToolbar_unstable, useToolbarBase_unstable } from
|
|
5
|
-
export { useToolbarContextValues_unstable } from
|
|
6
|
-
export { toolbarClassNames, useToolbarStyles_unstable } from
|
|
1
|
+
export { useToolbarContext_unstable } from "./ToolbarContext.js";
|
|
2
|
+
export { Toolbar } from "./Toolbar.js";
|
|
3
|
+
export { renderToolbar_unstable } from "./renderToolbar.js";
|
|
4
|
+
export { useToolbar_unstable, useToolbarBase_unstable } from "./useToolbar.js";
|
|
5
|
+
export { useToolbarContextValues_unstable } from "./useToolbarContextValues.js";
|
|
6
|
+
export { toolbarClassNames, useToolbarStyles_unstable } from "./useToolbarStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Toolbar/index.ts"],"sourcesContent":["export { useToolbarContext_unstable } from './ToolbarContext';\nexport { Toolbar } from './Toolbar';\nexport type {\n ToggableHandler,\n ToolbarCheckedValueChangeData,\n ToolbarCheckedValueChangeEvent,\n ToolbarContextValue,\n ToolbarContextValues,\n ToolbarBaseProps,\n ToolbarProps,\n ToolbarSlots,\n ToolbarBaseState,\n ToolbarState,\n UninitializedToolbarState,\n} from './Toolbar.types';\nexport { renderToolbar_unstable } from './renderToolbar';\nexport { useToolbar_unstable, useToolbarBase_unstable } from './useToolbar';\nexport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nexport { toolbarClassNames, useToolbarStyles_unstable } from './useToolbarStyles.styles';\n"],"names":["useToolbarContext_unstable","Toolbar","renderToolbar_unstable","useToolbar_unstable","useToolbarBase_unstable","useToolbarContextValues_unstable","toolbarClassNames","useToolbarStyles_unstable"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/Toolbar/index.ts"],"sourcesContent":["export { useToolbarContext_unstable } from './ToolbarContext';\nexport { Toolbar } from './Toolbar';\nexport type {\n ToggableHandler,\n ToolbarCheckedValueChangeData,\n ToolbarCheckedValueChangeEvent,\n ToolbarContextValue,\n ToolbarContextValues,\n ToolbarBaseProps,\n ToolbarProps,\n ToolbarSlots,\n ToolbarBaseState,\n ToolbarState,\n UninitializedToolbarState,\n} from './Toolbar.types';\nexport { renderToolbar_unstable } from './renderToolbar';\nexport { useToolbar_unstable, useToolbarBase_unstable } from './useToolbar';\nexport { useToolbarContextValues_unstable } from './useToolbarContextValues';\nexport { toolbarClassNames, useToolbarStyles_unstable } from './useToolbarStyles.styles';\n"],"names":["useToolbarContext_unstable","Toolbar","renderToolbar_unstable","useToolbar_unstable","useToolbarBase_unstable","useToolbarContextValues_unstable","toolbarClassNames","useToolbarStyles_unstable"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,sBAAmB;AAC9D,SAASC,OAAO,QAAQ,eAAY;AAcpC,SAASC,sBAAsB,QAAQ,qBAAkB;AACzD,SAASC,mBAAmB,EAAEC,uBAAuB,QAAQ,kBAAe;AAC5E,SAASC,gCAAgC,QAAQ,+BAA4B;AAC7E,SAASC,iBAAiB,EAAEC,yBAAyB,QAAQ,+BAA4B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
-
import { assertSlots } from
|
|
3
|
-
import { ToolbarContext } from
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
|
+
import { ToolbarContext } from "./ToolbarContext.js";
|
|
4
4
|
/**
|
|
5
5
|
* Render the final JSX of Toolbar
|
|
6
6
|
*/ export const renderToolbar_unstable = (state, contextValues)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Toolbar/renderToolbar.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { ToolbarBaseState, ToolbarSlots, ToolbarContextValues } from './Toolbar.types';\nimport { ToolbarContext } from './ToolbarContext';\n\n/**\n * Render the final JSX of Toolbar\n */\nexport const renderToolbar_unstable = (state: ToolbarBaseState, contextValues: ToolbarContextValues): JSXElement => {\n assertSlots<ToolbarSlots>(state);\n\n return (\n <ToolbarContext.Provider value={contextValues.toolbar}>\n <state.root>{state.root.children}</state.root>\n </ToolbarContext.Provider>\n );\n};\n"],"names":["assertSlots","ToolbarContext","renderToolbar_unstable","state","contextValues","Provider","value","toolbar","root","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,cAAc,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/Toolbar/renderToolbar.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { ToolbarBaseState, ToolbarSlots, ToolbarContextValues } from './Toolbar.types';\nimport { ToolbarContext } from './ToolbarContext';\n\n/**\n * Render the final JSX of Toolbar\n */\nexport const renderToolbar_unstable = (state: ToolbarBaseState, contextValues: ToolbarContextValues): JSXElement => {\n assertSlots<ToolbarSlots>(state);\n\n return (\n <ToolbarContext.Provider value={contextValues.toolbar}>\n <state.root>{state.root.children}</state.root>\n </ToolbarContext.Provider>\n );\n};\n"],"names":["assertSlots","ToolbarContext","renderToolbar_unstable","state","contextValues","Provider","value","toolbar","root","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AACjD,SAASA,WAAW,QAAQ,4BAA4B;AAGxD,SAASC,cAAc,QAAQ,sBAAmB;AAElD;;CAEC,GACD,OAAO,MAAMC,yBAAyB,CAACC,OAAyBC;IAC9DJ,YAA0BG;IAE1B,qBACE,KAACF,eAAeI,QAAQ;QAACC,OAAOF,cAAcG,OAAO;kBACnD,cAAA,KAACJ,MAAMK,IAAI;sBAAEL,MAAMK,IAAI,CAACC,QAAQ;;;AAGtC,EAAE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useEventCallback, useControllableState, getIntrinsicElementProps, slot } from
|
|
3
|
-
import { useArrowNavigationGroup } from
|
|
2
|
+
import { useEventCallback, useControllableState, getIntrinsicElementProps, slot } from "@fluentui/react-utilities";
|
|
3
|
+
import { useArrowNavigationGroup } from "@fluentui/react-tabster";
|
|
4
4
|
/**
|
|
5
5
|
* Create the state required to render Toolbar.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","toolbarClassNames","root","useStyles","mc9l5x","Bt984gj","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","vertical","Beiy3e4","a9b677","small","medium","large","d","p","useToolbarStyles_unstable","state","styles","size","className"],"sources":["useToolbarStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","toolbarClassNames","root","useStyles","mc9l5x","Bt984gj","Byoj8tv","uwmqm3","z189sj","z8tnut","B0ocmuz","vertical","Beiy3e4","a9b677","small","medium","large","d","p","useToolbarStyles_unstable","state","styles","size","className"],"sources":["useToolbarStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nexport const toolbarClassNames = {\n root: 'fui-Toolbar'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n padding: '4px 8px'\n },\n vertical: {\n flexDirection: 'column',\n width: 'fit-content'\n },\n small: {\n padding: '0px 4px'\n },\n medium: {\n padding: '4px 8px'\n },\n large: {\n padding: '4px 20px'\n }\n});\n/**\n * Apply styling to the Toolbar slots based on the state\n */ export const useToolbarStyles_unstable = (state)=>{\n const styles = useStyles();\n const { vertical, size } = state;\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(toolbarClassNames.root, styles.root, vertical && styles.vertical, size === 'small' && !vertical && styles.small, size === 'medium' && !vertical && styles.medium, size === 'large' && !vertical && styles.large, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,OAAO,MAAMC,iBAAiB,GAAG;EAC7BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGJ,QAAA;EAAAG,IAAA;IAAAE,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,QAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAR,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAK,MAAA;IAAAT,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAM,KAAA;IAAAV,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;AAAA;EAAAO,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CAmBrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,yBAAyB,GAAIC,KAAK,IAAG;EAClD,MAAMC,MAAM,GAAGlB,SAAS,CAAC,CAAC;EAC1B,MAAM;IAAEQ,QAAQ;IAAEW;EAAK,CAAC,GAAGF,KAAK;EAChC;EACAA,KAAK,CAAClB,IAAI,CAACqB,SAAS,GAAGvB,YAAY,CAACC,iBAAiB,CAACC,IAAI,EAAEmB,MAAM,CAACnB,IAAI,EAAES,QAAQ,IAAIU,MAAM,CAACV,QAAQ,EAAEW,IAAI,KAAK,OAAO,IAAI,CAACX,QAAQ,IAAIU,MAAM,CAACP,KAAK,EAAEQ,IAAI,KAAK,QAAQ,IAAI,CAACX,QAAQ,IAAIU,MAAM,CAACN,MAAM,EAAEO,IAAI,KAAK,OAAO,IAAI,CAACX,QAAQ,IAAIU,MAAM,CAACL,KAAK,EAAEI,KAAK,CAAClB,IAAI,CAACqB,SAAS,CAAC;EAC1Q,OAAOH,KAAK;AAChB,CAAC","ignoreList":[]}
|