@fluentui/react-button 9.0.0-rc.8 → 9.0.0-rc.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/CHANGELOG.json +52 -1
  2. package/CHANGELOG.md +17 -2
  3. package/{lib → dist}/tsdoc-metadata.json +0 -0
  4. package/package.json +8 -8
  5. package/lib/Button.d.ts +0 -1
  6. package/lib/CompoundButton.d.ts +0 -1
  7. package/lib/MenuButton.d.ts +0 -1
  8. package/lib/SplitButton.d.ts +0 -1
  9. package/lib/ToggleButton.d.ts +0 -1
  10. package/lib/components/Button/Button.d.ts +0 -6
  11. package/lib/components/Button/Button.types.d.ts +0 -64
  12. package/lib/components/Button/index.d.ts +0 -5
  13. package/lib/components/Button/renderButton.d.ts +0 -5
  14. package/lib/components/Button/useButton.d.ts +0 -8
  15. package/lib/components/Button/useButtonStyles.d.ts +0 -8
  16. package/lib/components/CompoundButton/CompoundButton.d.ts +0 -6
  17. package/lib/components/CompoundButton/CompoundButton.types.d.ts +0 -14
  18. package/lib/components/CompoundButton/index.d.ts +0 -5
  19. package/lib/components/CompoundButton/renderCompoundButton.d.ts +0 -5
  20. package/lib/components/CompoundButton/useCompoundButton.d.ts +0 -8
  21. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +0 -8
  22. package/lib/components/MenuButton/MenuButton.d.ts +0 -6
  23. package/lib/components/MenuButton/MenuButton.types.d.ts +0 -10
  24. package/lib/components/MenuButton/index.d.ts +0 -5
  25. package/lib/components/MenuButton/renderMenuButton.d.ts +0 -5
  26. package/lib/components/MenuButton/useMenuButton.d.ts +0 -6
  27. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +0 -8
  28. package/lib/components/SplitButton/SplitButton.d.ts +0 -7
  29. package/lib/components/SplitButton/SplitButton.types.d.ts +0 -21
  30. package/lib/components/SplitButton/index.d.ts +0 -5
  31. package/lib/components/SplitButton/renderSplitButton.d.ts +0 -5
  32. package/lib/components/SplitButton/useSplitButton.d.ts +0 -8
  33. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +0 -8
  34. package/lib/components/ToggleButton/ToggleButton.d.ts +0 -6
  35. package/lib/components/ToggleButton/ToggleButton.types.d.ts +0 -20
  36. package/lib/components/ToggleButton/index.d.ts +0 -5
  37. package/lib/components/ToggleButton/renderToggleButton.d.ts +0 -1
  38. package/lib/components/ToggleButton/useToggleButton.d.ts +0 -9
  39. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +0 -11
  40. package/lib/index.d.ts +0 -11
  41. package/lib/utils/index.d.ts +0 -1
  42. package/lib/utils/useToggleState.d.ts +0 -3
  43. package/lib-commonjs/Button.d.ts +0 -1
  44. package/lib-commonjs/CompoundButton.d.ts +0 -1
  45. package/lib-commonjs/MenuButton.d.ts +0 -1
  46. package/lib-commonjs/SplitButton.d.ts +0 -1
  47. package/lib-commonjs/ToggleButton.d.ts +0 -1
  48. package/lib-commonjs/components/Button/Button.d.ts +0 -6
  49. package/lib-commonjs/components/Button/Button.types.d.ts +0 -64
  50. package/lib-commonjs/components/Button/index.d.ts +0 -5
  51. package/lib-commonjs/components/Button/renderButton.d.ts +0 -5
  52. package/lib-commonjs/components/Button/useButton.d.ts +0 -8
  53. package/lib-commonjs/components/Button/useButtonStyles.d.ts +0 -8
  54. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +0 -6
  55. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +0 -14
  56. package/lib-commonjs/components/CompoundButton/index.d.ts +0 -5
  57. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +0 -5
  58. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +0 -8
  59. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +0 -8
  60. package/lib-commonjs/components/MenuButton/MenuButton.d.ts +0 -6
  61. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +0 -10
  62. package/lib-commonjs/components/MenuButton/index.d.ts +0 -5
  63. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +0 -5
  64. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +0 -6
  65. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +0 -8
  66. package/lib-commonjs/components/SplitButton/SplitButton.d.ts +0 -7
  67. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +0 -21
  68. package/lib-commonjs/components/SplitButton/index.d.ts +0 -5
  69. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +0 -5
  70. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +0 -8
  71. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +0 -8
  72. package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +0 -6
  73. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +0 -20
  74. package/lib-commonjs/components/ToggleButton/index.d.ts +0 -5
  75. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +0 -1
  76. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +0 -9
  77. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +0 -11
  78. package/lib-commonjs/index.d.ts +0 -11
  79. package/lib-commonjs/utils/index.d.ts +0 -1
  80. package/lib-commonjs/utils/useToggleState.d.ts +0 -3
package/CHANGELOG.json CHANGED
@@ -2,7 +2,58 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 04 May 2022 13:24:05 GMT",
5
+ "date": "Thu, 05 May 2022 18:24:36 GMT",
6
+ "tag": "@fluentui/react-button_v9.0.0-rc.9",
7
+ "version": "9.0.0-rc.9",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-button",
13
+ "commit": "e465622ca241f3dd0534da50823a51e7311fd9ef",
14
+ "comment": "feat: ship rolluped only dts"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-button",
19
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.6",
20
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-button",
25
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.8",
26
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-button",
31
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.9",
32
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-button",
37
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.7",
38
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-button",
43
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
44
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-button",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5",
50
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Wed, 04 May 2022 13:26:38 GMT",
6
57
  "tag": "@fluentui/react-button_v9.0.0-rc.8",
7
58
  "version": "9.0.0-rc.8",
8
59
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,27 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Wed, 04 May 2022 13:24:05 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 05 May 2022 18:24:36 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.9)
8
+
9
+ Thu, 05 May 2022 18:24:36 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.8..@fluentui/react-button_v9.0.0-rc.9)
11
+
12
+ ### Changes
13
+
14
+ - feat: ship rolluped only dts ([PR #22823](https://github.com/microsoft/fluentui/pull/22823) by martinhochel@microsoft.com)
15
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.6 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
16
+ - Bump @fluentui/react-aria to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
17
+ - Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
18
+ - Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
21
+
7
22
  ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.8)
8
23
 
9
- Wed, 04 May 2022 13:24:05 GMT
24
+ Wed, 04 May 2022 13:26:38 GMT
10
25
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.7..@fluentui/react-button_v9.0.0-rc.8)
11
26
 
12
27
  ### Changes
File without changes
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-button",
3
- "version": "9.0.0-rc.8",
3
+ "version": "9.0.0-rc.9",
4
4
  "description": "Fluent UI React Button component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -29,16 +29,16 @@
29
29
  "@fluentui/a11y-testing": "^0.1.0",
30
30
  "@fluentui/eslint-plugin": "*",
31
31
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-griffel": "9.0.0-beta.4",
32
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.5",
33
33
  "@fluentui/scripts": "^1.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui/keyboard-keys": "9.0.0-rc.5",
37
- "@fluentui/react-aria": "9.0.0-rc.7",
36
+ "@fluentui/keyboard-keys": "9.0.0-rc.6",
37
+ "@fluentui/react-aria": "9.0.0-rc.8",
38
38
  "@fluentui/react-icons": "^2.0.166-rc.3",
39
- "@fluentui/react-tabster": "9.0.0-rc.8",
40
- "@fluentui/react-theme": "9.0.0-rc.6",
41
- "@fluentui/react-utilities": "9.0.0-rc.7",
39
+ "@fluentui/react-tabster": "9.0.0-rc.9",
40
+ "@fluentui/react-theme": "9.0.0-rc.7",
41
+ "@fluentui/react-utilities": "9.0.0-rc.8",
42
42
  "@griffel/react": "1.0.3",
43
43
  "tslib": "^2.1.0"
44
44
  },
package/lib/Button.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Button/index';
@@ -1 +0,0 @@
1
- export * from './components/CompoundButton/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuButton/index';
@@ -1 +0,0 @@
1
- export * from './components/SplitButton/index';
@@ -1 +0,0 @@
1
- export * from './components/ToggleButton/index';
@@ -1,6 +0,0 @@
1
- import type { ButtonProps } from './Button.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Buttons give people a way to trigger an action.
5
- */
6
- export declare const Button: ForwardRefComponent<ButtonProps>;
@@ -1,64 +0,0 @@
1
- import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
2
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
- export declare type ButtonSlots = {
4
- /**
5
- * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
6
- */
7
- root: NonNullable<Slot<ARIAButtonSlotProps>>;
8
- /**
9
- * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
10
- */
11
- icon?: Slot<'span'>;
12
- };
13
- export declare type ButtonCommons = {
14
- /**
15
- * A button can have its content and borders styled for greater emphasis or to be subtle.
16
- * - 'primary': Emphasizes the button as a primary action.
17
- * - 'outline': Removes background styling.
18
- * - 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
19
- * - 'transparent': Removes background and border styling.
20
- */
21
- appearance?: 'primary' | 'outline' | 'subtle' | 'transparent';
22
- /**
23
- * A button can fill the width of its container.
24
- * @default false
25
- *
26
- * @deprecated - Use style overrides instead.
27
- */
28
- block: boolean;
29
- /**
30
- * When set, allows the button to be focusable even when it has been disabled. This is used in scenarios where it
31
- * is important to keep a consistent tab order for screen reader and keyboard users. The primary example of this
32
- * pattern is when the disabled button is in a menu or a commandbar and is seldom used for standalone buttons.
33
- * @default false
34
- */
35
- disabledFocusable: boolean;
36
- /**
37
- * A button can show that it cannot be interacted with.
38
- * @default false
39
- */
40
- disabled: boolean;
41
- /**
42
- * A button can format its icon to appear before or after its content.
43
- * @default 'before'
44
- */
45
- iconPosition?: 'before' | 'after';
46
- /**
47
- * A button can be rounded, circular, or square.
48
- * @default 'rounded'
49
- */
50
- shape: 'rounded' | 'circular' | 'square';
51
- /**
52
- * A button supports different sizes.
53
- * @default 'medium'
54
- */
55
- size: 'small' | 'medium' | 'large';
56
- };
57
- export declare type ButtonProps = ComponentProps<ButtonSlots> & Partial<ButtonCommons>;
58
- export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons & {
59
- /**
60
- * A button can contain only an icon.
61
- * @default false
62
- */
63
- iconOnly: boolean;
64
- };
@@ -1,5 +0,0 @@
1
- export * from './Button';
2
- export type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';
3
- export * from './renderButton';
4
- export * from './useButton';
5
- export { buttonClassName, buttonClassNames, useButtonStyles_unstable, } from './useButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { ButtonState } from './Button.types';
2
- /**
3
- * Renders a Button component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { ButtonProps, ButtonState } from './Button.types';
3
- /**
4
- * Given user props, defines default props for the Button, calls useButtonState, and returns processed state.
5
- * @param props - User provided props to the Button component.
6
- * @param ref - User provided ref to be passed to the Button component.
7
- */
8
- export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { ButtonSlots, ButtonState } from './Button.types';
3
- export declare const buttonClassNames: SlotClassNames<ButtonSlots>;
4
- /**
5
- * @deprecated Use `buttonClassNames.root` instead.
6
- */
7
- export declare const buttonClassName: string;
8
- export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
@@ -1,6 +0,0 @@
1
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
2
- import type { CompoundButtonProps } from './CompoundButton.types';
3
- /**
4
- * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
5
- */
6
- export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
@@ -1,14 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
- export declare type CompoundButtonSlots = ButtonSlots & {
4
- /**
5
- * Second line of text that describes the action this button takes.
6
- */
7
- secondaryContent?: Slot<'span'>;
8
- /**
9
- * Container that wraps the children and the secondaryContent slot.
10
- */
11
- contentContainer: NonNullable<Slot<'span'>>;
12
- };
13
- export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;
14
- export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -1,5 +0,0 @@
1
- export * from './CompoundButton';
2
- export * from './CompoundButton.types';
3
- export * from './renderCompoundButton';
4
- export * from './useCompoundButton';
5
- export { compoundButtonClassName, compoundButtonClassNames, useCompoundButtonStyles_unstable, } from './useCompoundButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { CompoundButtonState } from './CompoundButton.types';
2
- /**
3
- * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.types';
3
- /**
4
- * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
- * @param props - User provided props to the CompoundButton component.
6
- * @param ref - User provided ref to be passed to the CompoundButton component.
7
- */
8
- export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';
3
- export declare const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots>;
4
- /**
5
- * @deprecated Use `compoundButtonClassName.root` instead.
6
- */
7
- export declare const compoundButtonClassName: string;
8
- export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
@@ -1,6 +0,0 @@
1
- import type { MenuButtonProps } from './MenuButton.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * MenuButtons are buttons that handle opening and closing a menu when they are triggered.
5
- */
6
- export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
@@ -1,10 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
- export declare type MenuButtonSlots = ButtonSlots & {
4
- /**
5
- * Menu icon that indicates that this button has a menu that can be expanded.
6
- */
7
- menuIcon?: Slot<'span'>;
8
- };
9
- export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>>;
10
- export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
@@ -1,5 +0,0 @@
1
- export * from './MenuButton.types';
2
- export * from './MenuButton';
3
- export * from './renderMenuButton';
4
- export * from './useMenuButton';
5
- export { menuButtonClassName, menuButtonClassNames, useMenuButtonStyles_unstable, } from './useMenuButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { MenuButtonState } from './MenuButton.types';
2
- /**
3
- * Renders a MenuButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuButtonProps, MenuButtonState } from './MenuButton.types';
3
- /**
4
- * Given user props, returns the final state for a MenuButton.
5
- */
6
- export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { MenuButtonSlots, MenuButtonState } from './MenuButton.types';
3
- export declare const menuButtonClassNames: SlotClassNames<MenuButtonSlots>;
4
- /**
5
- * @deprecated Use `menuButtonClassName.root` instead.
6
- */
7
- export declare const menuButtonClassName: string;
8
- export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
@@ -1,7 +0,0 @@
1
- import type { SplitButtonProps } from './SplitButton.types';
2
- import { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
5
- * action, while interacting with the second one opens a menu with secondary actions.
6
- */
7
- export declare const SplitButton: ForwardRefComponent<SplitButtonProps>;
@@ -1,21 +0,0 @@
1
- import { Button } from '../Button/Button';
2
- import { MenuButton } from '../MenuButton/MenuButton';
3
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
4
- import type { ButtonProps, ButtonState } from '../Button/Button.types';
5
- import type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';
6
- export declare type SplitButtonSlots = {
7
- /**
8
- * Root of the component that wraps the primary action button and menu button.
9
- */
10
- root: NonNullable<Slot<'div'>>;
11
- /**
12
- * Button that opens menu with secondary actions in SplitButton.
13
- */
14
- menuButton?: Slot<typeof MenuButton>;
15
- /**
16
- * Button to perform primary action in SplitButton.
17
- */
18
- primaryActionButton?: Slot<typeof Button>;
19
- };
20
- export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root'> & Omit<MenuButtonProps, 'root'>;
21
- export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
@@ -1,5 +0,0 @@
1
- export * from './SplitButton';
2
- export * from './SplitButton.types';
3
- export * from './renderSplitButton';
4
- export * from './useSplitButton';
5
- export { splitButtonClassName, splitButtonClassNames, useSplitButtonStyles_unstable, } from './useSplitButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { SplitButtonState } from './SplitButton.types';
2
- /**
3
- * Renders a SplitButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { SplitButtonProps, SplitButtonState } from './SplitButton.types';
3
- /**
4
- * Given user props, defines default props for the SplitButton and returns processed state.
5
- * @param props - User provided props to the SplitButton component.
6
- * @param ref - User provided ref to be passed to the SplitButton component.
7
- */
8
- export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { SplitButtonSlots, SplitButtonState } from './SplitButton.types';
3
- export declare const splitButtonClassNames: SlotClassNames<SplitButtonSlots>;
4
- /**
5
- * @deprecated Use `splitButtonClassName.root` instead.
6
- */
7
- export declare const splitButtonClassName: string;
8
- export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
@@ -1,6 +0,0 @@
1
- import type { ToggleButtonProps } from './ToggleButton.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * ToggleButtons are buttons that toggle between two defined states when triggered.
5
- */
6
- export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
@@ -1,20 +0,0 @@
1
- import type { ButtonProps, ButtonState } from '../Button/Button.types';
2
- declare type ToggleButtonCommons = {
3
- /**
4
- * Defines the controlled checked state of the `ToggleButton`.
5
- * If passed, `ToggleButton` ignores the `defaultChecked` property.
6
- * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
7
- * correct value based on handling `onClick` events and re-rendering.
8
- * @default false
9
- */
10
- checked: boolean;
11
- };
12
- export declare type ToggleButtonProps = ButtonProps & Partial<ToggleButtonCommons> & {
13
- /**
14
- * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.
15
- * @default false
16
- */
17
- defaultChecked?: boolean;
18
- };
19
- export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
20
- export {};
@@ -1,5 +0,0 @@
1
- export * from './ToggleButton';
2
- export * from './ToggleButton.types';
3
- export * from './renderToggleButton';
4
- export * from './useToggleButton';
5
- export { toggleButtonClassName, toggleButtonClassNames, useToggleButtonStyles_unstable, } from './useToggleButtonStyles';
@@ -1 +0,0 @@
1
- export { renderButton_unstable as renderToggleButton_unstable } from '../Button/renderButton';
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import type { ToggleButtonProps, ToggleButtonState } from './ToggleButton.types';
3
- /**
4
- * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
5
- * processed state.
6
- * @param props - User provided props to the ToggleButton component.
7
- * @param ref - User provided ref to be passed to the ToggleButton component.
8
- */
9
- export declare const useToggleButton_unstable: (props: ToggleButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
@@ -1,11 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { ButtonSlots } from '../Button/Button.types';
3
- import type { ToggleButtonState } from './ToggleButton.types';
4
- export declare const toggleButtonClassNames: SlotClassNames<ButtonSlots>;
5
- /**
6
- * @deprecated Use `toggleButtonClassName.root` instead.
7
- */
8
- export declare const toggleButtonClassName: string;
9
- export declare const useCheckedStyles: () => Record<"base" | "primary" | "outline" | "subtle" | "transparent" | "highContrast", string>;
10
- export declare const useDisabledStyles: () => Record<"base" | "primary" | "outline" | "subtle" | "transparent", string>;
11
- export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
package/lib/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export { Button, buttonClassName, buttonClassNames, renderButton_unstable, useButtonStyles_unstable, useButton_unstable, } from './Button';
2
- export type { ButtonProps, ButtonSlots, ButtonState } from './Button';
3
- export { CompoundButton, compoundButtonClassName, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable, } from './CompoundButton';
4
- export type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';
5
- export { MenuButton, menuButtonClassName, menuButtonClassNames, renderMenuButton_unstable, useMenuButtonStyles_unstable, useMenuButton_unstable, } from './MenuButton';
6
- export type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';
7
- export { SplitButton, renderSplitButton_unstable, splitButtonClassName, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable, } from './SplitButton';
8
- export type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';
9
- export { ToggleButton, renderToggleButton_unstable, toggleButtonClassName, toggleButtonClassNames, useToggleButtonStyles_unstable, useToggleButton_unstable, } from './ToggleButton';
10
- export type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';
11
- export { useToggleState } from './utils/index';
@@ -1 +0,0 @@
1
- export * from './useToggleState';
@@ -1,3 +0,0 @@
1
- import type { ButtonState } from '../Button';
2
- import type { ToggleButtonProps, ToggleButtonState } from '../ToggleButton';
3
- export declare function useToggleState<TToggleButtonProps extends Pick<ToggleButtonProps, 'checked' | 'defaultChecked' | 'disabled' | 'disabledFocusable'>, TButtonState extends Pick<ButtonState, 'root'>, TToggleButtonState extends Pick<ToggleButtonState, 'checked' | 'root'>>(props: TToggleButtonProps, state: TButtonState): TToggleButtonState;
@@ -1 +0,0 @@
1
- export * from './components/Button/index';
@@ -1 +0,0 @@
1
- export * from './components/CompoundButton/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuButton/index';
@@ -1 +0,0 @@
1
- export * from './components/SplitButton/index';
@@ -1 +0,0 @@
1
- export * from './components/ToggleButton/index';
@@ -1,6 +0,0 @@
1
- import type { ButtonProps } from './Button.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Buttons give people a way to trigger an action.
5
- */
6
- export declare const Button: ForwardRefComponent<ButtonProps>;
@@ -1,64 +0,0 @@
1
- import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
2
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
- export declare type ButtonSlots = {
4
- /**
5
- * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
6
- */
7
- root: NonNullable<Slot<ARIAButtonSlotProps>>;
8
- /**
9
- * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
10
- */
11
- icon?: Slot<'span'>;
12
- };
13
- export declare type ButtonCommons = {
14
- /**
15
- * A button can have its content and borders styled for greater emphasis or to be subtle.
16
- * - 'primary': Emphasizes the button as a primary action.
17
- * - 'outline': Removes background styling.
18
- * - 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
19
- * - 'transparent': Removes background and border styling.
20
- */
21
- appearance?: 'primary' | 'outline' | 'subtle' | 'transparent';
22
- /**
23
- * A button can fill the width of its container.
24
- * @default false
25
- *
26
- * @deprecated - Use style overrides instead.
27
- */
28
- block: boolean;
29
- /**
30
- * When set, allows the button to be focusable even when it has been disabled. This is used in scenarios where it
31
- * is important to keep a consistent tab order for screen reader and keyboard users. The primary example of this
32
- * pattern is when the disabled button is in a menu or a commandbar and is seldom used for standalone buttons.
33
- * @default false
34
- */
35
- disabledFocusable: boolean;
36
- /**
37
- * A button can show that it cannot be interacted with.
38
- * @default false
39
- */
40
- disabled: boolean;
41
- /**
42
- * A button can format its icon to appear before or after its content.
43
- * @default 'before'
44
- */
45
- iconPosition?: 'before' | 'after';
46
- /**
47
- * A button can be rounded, circular, or square.
48
- * @default 'rounded'
49
- */
50
- shape: 'rounded' | 'circular' | 'square';
51
- /**
52
- * A button supports different sizes.
53
- * @default 'medium'
54
- */
55
- size: 'small' | 'medium' | 'large';
56
- };
57
- export declare type ButtonProps = ComponentProps<ButtonSlots> & Partial<ButtonCommons>;
58
- export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons & {
59
- /**
60
- * A button can contain only an icon.
61
- * @default false
62
- */
63
- iconOnly: boolean;
64
- };
@@ -1,5 +0,0 @@
1
- export * from './Button';
2
- export type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';
3
- export * from './renderButton';
4
- export * from './useButton';
5
- export { buttonClassName, buttonClassNames, useButtonStyles_unstable, } from './useButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { ButtonState } from './Button.types';
2
- /**
3
- * Renders a Button component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { ButtonProps, ButtonState } from './Button.types';
3
- /**
4
- * Given user props, defines default props for the Button, calls useButtonState, and returns processed state.
5
- * @param props - User provided props to the Button component.
6
- * @param ref - User provided ref to be passed to the Button component.
7
- */
8
- export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { ButtonSlots, ButtonState } from './Button.types';
3
- export declare const buttonClassNames: SlotClassNames<ButtonSlots>;
4
- /**
5
- * @deprecated Use `buttonClassNames.root` instead.
6
- */
7
- export declare const buttonClassName: string;
8
- export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
@@ -1,6 +0,0 @@
1
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
2
- import type { CompoundButtonProps } from './CompoundButton.types';
3
- /**
4
- * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
5
- */
6
- export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
@@ -1,14 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
- export declare type CompoundButtonSlots = ButtonSlots & {
4
- /**
5
- * Second line of text that describes the action this button takes.
6
- */
7
- secondaryContent?: Slot<'span'>;
8
- /**
9
- * Container that wraps the children and the secondaryContent slot.
10
- */
11
- contentContainer: NonNullable<Slot<'span'>>;
12
- };
13
- export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;
14
- export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -1,5 +0,0 @@
1
- export * from './CompoundButton';
2
- export * from './CompoundButton.types';
3
- export * from './renderCompoundButton';
4
- export * from './useCompoundButton';
5
- export { compoundButtonClassName, compoundButtonClassNames, useCompoundButtonStyles_unstable, } from './useCompoundButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { CompoundButtonState } from './CompoundButton.types';
2
- /**
3
- * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.types';
3
- /**
4
- * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
- * @param props - User provided props to the CompoundButton component.
6
- * @param ref - User provided ref to be passed to the CompoundButton component.
7
- */
8
- export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';
3
- export declare const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots>;
4
- /**
5
- * @deprecated Use `compoundButtonClassName.root` instead.
6
- */
7
- export declare const compoundButtonClassName: string;
8
- export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
@@ -1,6 +0,0 @@
1
- import type { MenuButtonProps } from './MenuButton.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * MenuButtons are buttons that handle opening and closing a menu when they are triggered.
5
- */
6
- export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
@@ -1,10 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
- export declare type MenuButtonSlots = ButtonSlots & {
4
- /**
5
- * Menu icon that indicates that this button has a menu that can be expanded.
6
- */
7
- menuIcon?: Slot<'span'>;
8
- };
9
- export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>>;
10
- export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
@@ -1,5 +0,0 @@
1
- export * from './MenuButton.types';
2
- export * from './MenuButton';
3
- export * from './renderMenuButton';
4
- export * from './useMenuButton';
5
- export { menuButtonClassName, menuButtonClassNames, useMenuButtonStyles_unstable, } from './useMenuButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { MenuButtonState } from './MenuButton.types';
2
- /**
3
- * Renders a MenuButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuButtonProps, MenuButtonState } from './MenuButton.types';
3
- /**
4
- * Given user props, returns the final state for a MenuButton.
5
- */
6
- export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { MenuButtonSlots, MenuButtonState } from './MenuButton.types';
3
- export declare const menuButtonClassNames: SlotClassNames<MenuButtonSlots>;
4
- /**
5
- * @deprecated Use `menuButtonClassName.root` instead.
6
- */
7
- export declare const menuButtonClassName: string;
8
- export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
@@ -1,7 +0,0 @@
1
- import type { SplitButtonProps } from './SplitButton.types';
2
- import { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
5
- * action, while interacting with the second one opens a menu with secondary actions.
6
- */
7
- export declare const SplitButton: ForwardRefComponent<SplitButtonProps>;
@@ -1,21 +0,0 @@
1
- import { Button } from '../Button/Button';
2
- import { MenuButton } from '../MenuButton/MenuButton';
3
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
4
- import type { ButtonProps, ButtonState } from '../Button/Button.types';
5
- import type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';
6
- export declare type SplitButtonSlots = {
7
- /**
8
- * Root of the component that wraps the primary action button and menu button.
9
- */
10
- root: NonNullable<Slot<'div'>>;
11
- /**
12
- * Button that opens menu with secondary actions in SplitButton.
13
- */
14
- menuButton?: Slot<typeof MenuButton>;
15
- /**
16
- * Button to perform primary action in SplitButton.
17
- */
18
- primaryActionButton?: Slot<typeof Button>;
19
- };
20
- export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root'> & Omit<MenuButtonProps, 'root'>;
21
- export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
@@ -1,5 +0,0 @@
1
- export * from './SplitButton';
2
- export * from './SplitButton.types';
3
- export * from './renderSplitButton';
4
- export * from './useSplitButton';
5
- export { splitButtonClassName, splitButtonClassNames, useSplitButtonStyles_unstable, } from './useSplitButtonStyles';
@@ -1,5 +0,0 @@
1
- import type { SplitButtonState } from './SplitButton.types';
2
- /**
3
- * Renders a SplitButton component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { SplitButtonProps, SplitButtonState } from './SplitButton.types';
3
- /**
4
- * Given user props, defines default props for the SplitButton and returns processed state.
5
- * @param props - User provided props to the SplitButton component.
6
- * @param ref - User provided ref to be passed to the SplitButton component.
7
- */
8
- export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
@@ -1,8 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { SplitButtonSlots, SplitButtonState } from './SplitButton.types';
3
- export declare const splitButtonClassNames: SlotClassNames<SplitButtonSlots>;
4
- /**
5
- * @deprecated Use `splitButtonClassName.root` instead.
6
- */
7
- export declare const splitButtonClassName: string;
8
- export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
@@ -1,6 +0,0 @@
1
- import type { ToggleButtonProps } from './ToggleButton.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * ToggleButtons are buttons that toggle between two defined states when triggered.
5
- */
6
- export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
@@ -1,20 +0,0 @@
1
- import type { ButtonProps, ButtonState } from '../Button/Button.types';
2
- declare type ToggleButtonCommons = {
3
- /**
4
- * Defines the controlled checked state of the `ToggleButton`.
5
- * If passed, `ToggleButton` ignores the `defaultChecked` property.
6
- * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
7
- * correct value based on handling `onClick` events and re-rendering.
8
- * @default false
9
- */
10
- checked: boolean;
11
- };
12
- export declare type ToggleButtonProps = ButtonProps & Partial<ToggleButtonCommons> & {
13
- /**
14
- * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.
15
- * @default false
16
- */
17
- defaultChecked?: boolean;
18
- };
19
- export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
20
- export {};
@@ -1,5 +0,0 @@
1
- export * from './ToggleButton';
2
- export * from './ToggleButton.types';
3
- export * from './renderToggleButton';
4
- export * from './useToggleButton';
5
- export { toggleButtonClassName, toggleButtonClassNames, useToggleButtonStyles_unstable, } from './useToggleButtonStyles';
@@ -1 +0,0 @@
1
- export { renderButton_unstable as renderToggleButton_unstable } from '../Button/renderButton';
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import type { ToggleButtonProps, ToggleButtonState } from './ToggleButton.types';
3
- /**
4
- * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
5
- * processed state.
6
- * @param props - User provided props to the ToggleButton component.
7
- * @param ref - User provided ref to be passed to the ToggleButton component.
8
- */
9
- export declare const useToggleButton_unstable: (props: ToggleButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
@@ -1,11 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { ButtonSlots } from '../Button/Button.types';
3
- import type { ToggleButtonState } from './ToggleButton.types';
4
- export declare const toggleButtonClassNames: SlotClassNames<ButtonSlots>;
5
- /**
6
- * @deprecated Use `toggleButtonClassName.root` instead.
7
- */
8
- export declare const toggleButtonClassName: string;
9
- export declare const useCheckedStyles: () => Record<"base" | "primary" | "outline" | "subtle" | "transparent" | "highContrast", string>;
10
- export declare const useDisabledStyles: () => Record<"base" | "primary" | "outline" | "subtle" | "transparent", string>;
11
- export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
@@ -1,11 +0,0 @@
1
- export { Button, buttonClassName, buttonClassNames, renderButton_unstable, useButtonStyles_unstable, useButton_unstable, } from './Button';
2
- export type { ButtonProps, ButtonSlots, ButtonState } from './Button';
3
- export { CompoundButton, compoundButtonClassName, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable, } from './CompoundButton';
4
- export type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';
5
- export { MenuButton, menuButtonClassName, menuButtonClassNames, renderMenuButton_unstable, useMenuButtonStyles_unstable, useMenuButton_unstable, } from './MenuButton';
6
- export type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';
7
- export { SplitButton, renderSplitButton_unstable, splitButtonClassName, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable, } from './SplitButton';
8
- export type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';
9
- export { ToggleButton, renderToggleButton_unstable, toggleButtonClassName, toggleButtonClassNames, useToggleButtonStyles_unstable, useToggleButton_unstable, } from './ToggleButton';
10
- export type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';
11
- export { useToggleState } from './utils/index';
@@ -1 +0,0 @@
1
- export * from './useToggleState';
@@ -1,3 +0,0 @@
1
- import type { ButtonState } from '../Button';
2
- import type { ToggleButtonProps, ToggleButtonState } from '../ToggleButton';
3
- export declare function useToggleState<TToggleButtonProps extends Pick<ToggleButtonProps, 'checked' | 'defaultChecked' | 'disabled' | 'disabledFocusable'>, TButtonState extends Pick<ButtonState, 'root'>, TToggleButtonState extends Pick<ToggleButtonState, 'checked' | 'root'>>(props: TToggleButtonProps, state: TButtonState): TToggleButtonState;