@fluentui/react-button 9.8.0 → 9.72.9-experimental.component-base-hooks.20260122-49fc330360.0
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 +13 -16
- package/dist/index.d.ts +62 -0
- package/lib/index.js +6 -11
- package/lib/index.js.map +1 -1
- package/lib-commonjs/index.js +15 -11
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-button
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu, 22 Jan 2026
|
|
3
|
+
This log was last generated on Thu, 22 Jan 2026 16:12:56 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.
|
|
7
|
+
## [9.72.9-experimental.component-base-hooks.20260122-49fc330360.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0)
|
|
8
8
|
|
|
9
|
-
Thu, 22 Jan 2026
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.7.1..@fluentui/react-button_v9.
|
|
9
|
+
Thu, 22 Jan 2026 16:12:56 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.7.1..@fluentui/react-button_v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0)
|
|
11
11
|
|
|
12
|
-
###
|
|
13
|
-
|
|
14
|
-
- feat: add base hooks for button components ([PR #35631](https://github.com/microsoft/fluentui/pull/35631) by dmytrokirpa@microsoft.com)
|
|
15
|
-
- Bump @fluentui/react-aria to v9.17.8 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
16
|
-
- Bump @fluentui/react-jsx-runtime to v9.3.5 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
17
|
-
- Bump @fluentui/react-shared-contexts to v9.26.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
18
|
-
- Bump @fluentui/react-tabster to v9.26.12 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
19
|
-
- Bump @fluentui/react-theme to v9.2.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
20
|
-
- Bump @fluentui/react-utilities to v9.26.1 ([PR #35574](https://github.com/microsoft/fluentui/pull/35574) by beachball)
|
|
21
|
-
|
|
22
|
-
### Patches
|
|
12
|
+
### Changes
|
|
23
13
|
|
|
24
|
-
-
|
|
14
|
+
- Release 9.72.9-experimental.component-base-hooks.20260122-49fc330360 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
+
- Bump @fluentui/keyboard-keys to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
16
|
+
- Bump @fluentui/react-aria to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
17
|
+
- Bump @fluentui/react-jsx-runtime to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
18
|
+
- Bump @fluentui/react-shared-contexts to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
19
|
+
- Bump @fluentui/react-tabster to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
20
|
+
- Bump @fluentui/react-theme to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
21
|
+
- Bump @fluentui/react-utilities to v9.72.9-experimental.component-base-hooks.20260122-49fc330360.0 ([commit](https://github.com/microsoft/fluentui/commit/373001c3e19d022ef1fcf745ea96375cf4f3aff1) by beachball)
|
|
25
22
|
|
|
26
23
|
## [9.7.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.7.1)
|
|
27
24
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
|
2
2
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
3
3
|
import type { ComponentState } from '@fluentui/react-utilities';
|
|
4
|
+
import type { DistributiveOmit } from '@fluentui/react-utilities';
|
|
4
5
|
import { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
5
6
|
import type { JSXElement } from '@fluentui/react-utilities';
|
|
6
7
|
import * as React_2 from 'react';
|
|
@@ -12,6 +13,10 @@ import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
|
12
13
|
*/
|
|
13
14
|
export declare const Button: ForwardRefComponent<ButtonProps>;
|
|
14
15
|
|
|
16
|
+
export declare type ButtonBaseProps = DistributiveOmit<ButtonProps, ButtonDesignPropNames>;
|
|
17
|
+
|
|
18
|
+
export declare type ButtonBaseState = DistributiveOmit<ButtonState, ButtonDesignPropNames>;
|
|
19
|
+
|
|
15
20
|
export declare const buttonClassNames: SlotClassNames<ButtonSlots>;
|
|
16
21
|
|
|
17
22
|
/**
|
|
@@ -28,6 +33,13 @@ export declare interface ButtonContextValue {
|
|
|
28
33
|
size?: ButtonSize;
|
|
29
34
|
}
|
|
30
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Internal use only: lists prop names related to Button design for use within Button components.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
declare type ButtonDesignPropNames = 'appearance' | 'size' | 'shape';
|
|
42
|
+
|
|
31
43
|
export declare type ButtonProps = ComponentProps<ButtonSlots> & {
|
|
32
44
|
/**
|
|
33
45
|
* A button can have its content and borders styled for greater emphasis or to be subtle.
|
|
@@ -104,6 +116,10 @@ export declare type ButtonState = ComponentState<ButtonSlots> & Required<Pick<Bu
|
|
|
104
116
|
*/
|
|
105
117
|
export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
|
|
106
118
|
|
|
119
|
+
export declare type CompoundButtonBaseProps = DistributiveOmit<CompoundButtonProps, ButtonDesignPropNames>;
|
|
120
|
+
|
|
121
|
+
export declare type CompoundButtonBaseState = DistributiveOmit<CompoundButtonState, ButtonDesignPropNames>;
|
|
122
|
+
|
|
107
123
|
export declare const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots>;
|
|
108
124
|
|
|
109
125
|
export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Pick<ButtonProps, 'appearance' | 'disabledFocusable' | 'disabled' | 'iconPosition' | 'shape' | 'size'>;
|
|
@@ -127,6 +143,10 @@ export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> &
|
|
|
127
143
|
*/
|
|
128
144
|
export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
|
|
129
145
|
|
|
146
|
+
export declare type MenuButtonBaseProps = DistributiveOmit<MenuButtonProps, ButtonDesignPropNames>;
|
|
147
|
+
|
|
148
|
+
export declare type MenuButtonBaseState = DistributiveOmit<MenuButtonState, ButtonDesignPropNames>;
|
|
149
|
+
|
|
130
150
|
export declare const menuButtonClassNames: SlotClassNames<MenuButtonSlots>;
|
|
131
151
|
|
|
132
152
|
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Pick<ButtonProps, 'appearance' | 'disabledFocusable' | 'disabled' | 'shape' | 'size'>;
|
|
@@ -168,6 +188,10 @@ export declare const renderSplitButton_unstable: (state: SplitButtonState) => JS
|
|
|
168
188
|
*/
|
|
169
189
|
export declare const SplitButton: ForwardRefComponent<SplitButtonProps>;
|
|
170
190
|
|
|
191
|
+
export declare type SplitButtonBaseProps = DistributiveOmit<SplitButtonProps, ButtonDesignPropNames>;
|
|
192
|
+
|
|
193
|
+
export declare type SplitButtonBaseState = DistributiveOmit<SplitButtonState, ButtonDesignPropNames>;
|
|
194
|
+
|
|
171
195
|
export declare const splitButtonClassNames: SlotClassNames<SplitButtonSlots>;
|
|
172
196
|
|
|
173
197
|
export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root' | 'as'> & Omit<MenuButtonProps, 'root' | 'as'>;
|
|
@@ -194,6 +218,10 @@ export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<B
|
|
|
194
218
|
*/
|
|
195
219
|
export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
|
|
196
220
|
|
|
221
|
+
export declare type ToggleButtonBaseProps = DistributiveOmit<ToggleButtonProps, ButtonDesignPropNames>;
|
|
222
|
+
|
|
223
|
+
export declare type ToggleButtonBaseState = DistributiveOmit<ToggleButtonState, ButtonDesignPropNames>;
|
|
224
|
+
|
|
197
225
|
export declare const toggleButtonClassNames: SlotClassNames<ButtonSlots>;
|
|
198
226
|
|
|
199
227
|
export declare type ToggleButtonProps = ButtonProps & {
|
|
@@ -223,6 +251,13 @@ export declare type ToggleButtonState = ButtonState & Required<Pick<ToggleButton
|
|
|
223
251
|
*/
|
|
224
252
|
export declare const useButton_unstable: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
|
|
225
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Given user props, defines default props for the Button, calls useButtonState, and returns processed state.
|
|
256
|
+
* @param props - User provided props to the Button component.
|
|
257
|
+
* @param ref - User provided ref to be passed to the Button component.
|
|
258
|
+
*/
|
|
259
|
+
export declare const useButtonBase_unstable: (props: ButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonBaseState;
|
|
260
|
+
|
|
226
261
|
/**
|
|
227
262
|
* @internal
|
|
228
263
|
* Internal context hook used to update default values between internal components
|
|
@@ -238,6 +273,13 @@ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonSta
|
|
|
238
273
|
*/
|
|
239
274
|
export declare const useCompoundButton_unstable: (props: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
|
|
240
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
|
|
278
|
+
* @param props - User provided props to the CompoundButton component.
|
|
279
|
+
* @param ref - User provided ref to be passed to the CompoundButton component.
|
|
280
|
+
*/
|
|
281
|
+
export declare const useCompoundButtonBase_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonBaseState;
|
|
282
|
+
|
|
241
283
|
export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
|
|
242
284
|
|
|
243
285
|
/**
|
|
@@ -245,6 +287,11 @@ export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonSta
|
|
|
245
287
|
*/
|
|
246
288
|
export declare const useMenuButton_unstable: (props: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
|
|
247
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Given user props, returns the final state for a MenuButton.
|
|
292
|
+
*/
|
|
293
|
+
export declare const useMenuButtonBase_unstable: ({ menuIcon, ...props }: MenuButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonBaseState;
|
|
294
|
+
|
|
248
295
|
export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
|
|
249
296
|
|
|
250
297
|
/**
|
|
@@ -254,6 +301,13 @@ export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => M
|
|
|
254
301
|
*/
|
|
255
302
|
export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
|
|
256
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Given user props, defines default props for the SplitButton and returns processed state.
|
|
306
|
+
* @param props - User provided props to the SplitButton component.
|
|
307
|
+
* @param ref - User provided ref to be passed to the SplitButton component.
|
|
308
|
+
*/
|
|
309
|
+
export declare const useSplitButtonBase_unstable: (props: SplitButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonBaseState;
|
|
310
|
+
|
|
257
311
|
export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
|
|
258
312
|
|
|
259
313
|
/**
|
|
@@ -264,6 +318,14 @@ export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) =>
|
|
|
264
318
|
*/
|
|
265
319
|
export declare const useToggleButton_unstable: (props: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
|
|
266
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Given user props, defines base props (including behavioral and structural ones) for the ToggleButton returns
|
|
323
|
+
* processed state.
|
|
324
|
+
* @param props - User provided props to the ToggleButton component.
|
|
325
|
+
* @param ref - User provided ref to be passed to the ToggleButton component.
|
|
326
|
+
*/
|
|
327
|
+
export declare const useToggleButtonBase_unstable: (props: ToggleButtonBaseProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonBaseState;
|
|
328
|
+
|
|
267
329
|
export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
|
|
268
330
|
|
|
269
331
|
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;
|
package/lib/index.js
CHANGED
|
@@ -5,14 +5,9 @@ export { SplitButton, renderSplitButton_unstable, splitButtonClassNames, useSpli
|
|
|
5
5
|
export { ToggleButton, renderToggleButton_unstable, toggleButtonClassNames, useToggleButtonStyles_unstable, useToggleButton_unstable } from './ToggleButton';
|
|
6
6
|
export { useToggleState } from './utils/index';
|
|
7
7
|
export { ButtonContextProvider, useButtonContext } from './contexts/index';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// export type { MenuButtonBaseProps, MenuButtonBaseState } from './MenuButton';
|
|
15
|
-
// export { useSplitButtonBase_unstable } from './SplitButton';
|
|
16
|
-
// export type { SplitButtonBaseProps, SplitButtonBaseState } from './SplitButton';
|
|
17
|
-
// export { useToggleButtonBase_unstable } from './ToggleButton';
|
|
18
|
-
// export type { ToggleButtonBaseProps, ToggleButtonBaseState } from './ToggleButton';
|
|
8
|
+
// Experimental APIs - will be uncommented in the experimental release branch
|
|
9
|
+
export { useButtonBase_unstable } from './Button';
|
|
10
|
+
export { useCompoundButtonBase_unstable } from './CompoundButton';
|
|
11
|
+
export { useMenuButtonBase_unstable } from './MenuButton';
|
|
12
|
+
export { useSplitButtonBase_unstable } from './SplitButton';
|
|
13
|
+
export { useToggleButtonBase_unstable } from './ToggleButton';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n\nexport { useToggleState } from './utils/index';\n\nexport { ButtonContextProvider, useButtonContext } from './contexts/index';\nexport type { ButtonContextValue } from './contexts/index';\n\n// Experimental APIs - will be uncommented in the experimental release branch\
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n\nexport { useToggleState } from './utils/index';\n\nexport { ButtonContextProvider, useButtonContext } from './contexts/index';\nexport type { ButtonContextValue } from './contexts/index';\n\n// Experimental APIs - will be uncommented in the experimental release branch\nexport { useButtonBase_unstable } from './Button';\nexport type { ButtonBaseProps, ButtonBaseState } from './Button';\nexport { useCompoundButtonBase_unstable } from './CompoundButton';\nexport type { CompoundButtonBaseProps, CompoundButtonBaseState } from './CompoundButton';\nexport { useMenuButtonBase_unstable } from './MenuButton';\nexport type { MenuButtonBaseProps, MenuButtonBaseState } from './MenuButton';\nexport { useSplitButtonBase_unstable } from './SplitButton';\nexport type { SplitButtonBaseProps, SplitButtonBaseState } from './SplitButton';\nexport { useToggleButtonBase_unstable } from './ToggleButton';\nexport type { ToggleButtonBaseProps, ToggleButtonBaseState } from './ToggleButton';\n"],"names":["Button","buttonClassNames","renderButton_unstable","useButtonStyles_unstable","useButton_unstable","CompoundButton","compoundButtonClassNames","renderCompoundButton_unstable","useCompoundButtonStyles_unstable","useCompoundButton_unstable","MenuButton","menuButtonClassNames","renderMenuButton_unstable","useMenuButtonStyles_unstable","useMenuButton_unstable","SplitButton","renderSplitButton_unstable","splitButtonClassNames","useSplitButtonStyles_unstable","useSplitButton_unstable","ToggleButton","renderToggleButton_unstable","toggleButtonClassNames","useToggleButtonStyles_unstable","useToggleButton_unstable","useToggleState","ButtonContextProvider","useButtonContext","useButtonBase_unstable","useCompoundButtonBase_unstable","useMenuButtonBase_unstable","useSplitButtonBase_unstable","useToggleButtonBase_unstable"],"mappings":"AAAA,SACEA,MAAM,EACNC,gBAAgB,EAChBC,qBAAqB,EACrBC,wBAAwB,EACxBC,kBAAkB,QACb,WAAW;AAElB,SACEC,cAAc,EACdC,wBAAwB,EACxBC,6BAA6B,EAC7BC,gCAAgC,EAChCC,0BAA0B,QACrB,mBAAmB;AAE1B,SACEC,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,eAAe;AAEtB,SACEC,WAAW,EACXC,0BAA0B,EAC1BC,qBAAqB,EACrBC,6BAA6B,EAC7BC,uBAAuB,QAClB,gBAAgB;AAEvB,SACEC,YAAY,EACZC,2BAA2B,EAC3BC,sBAAsB,EACtBC,8BAA8B,EAC9BC,wBAAwB,QACnB,iBAAiB;AAGxB,SAASC,cAAc,QAAQ,gBAAgB;AAE/C,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ,mBAAmB;AAG3E,6EAA6E;AAC7E,SAASC,sBAAsB,QAAQ,WAAW;AAElD,SAASC,8BAA8B,QAAQ,mBAAmB;AAElE,SAASC,0BAA0B,QAAQ,eAAe;AAE1D,SAASC,2BAA2B,QAAQ,gBAAgB;AAE5D,SAASC,4BAA4B,QAAQ,iBAAiB"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -57,6 +57,9 @@ _export(exports, {
|
|
|
57
57
|
toggleButtonClassNames: function() {
|
|
58
58
|
return _ToggleButton.toggleButtonClassNames;
|
|
59
59
|
},
|
|
60
|
+
useButtonBase_unstable: function() {
|
|
61
|
+
return _Button.useButtonBase_unstable;
|
|
62
|
+
},
|
|
60
63
|
useButtonContext: function() {
|
|
61
64
|
return _index1.useButtonContext;
|
|
62
65
|
},
|
|
@@ -66,24 +69,36 @@ _export(exports, {
|
|
|
66
69
|
useButton_unstable: function() {
|
|
67
70
|
return _Button.useButton_unstable;
|
|
68
71
|
},
|
|
72
|
+
useCompoundButtonBase_unstable: function() {
|
|
73
|
+
return _CompoundButton.useCompoundButtonBase_unstable;
|
|
74
|
+
},
|
|
69
75
|
useCompoundButtonStyles_unstable: function() {
|
|
70
76
|
return _CompoundButton.useCompoundButtonStyles_unstable;
|
|
71
77
|
},
|
|
72
78
|
useCompoundButton_unstable: function() {
|
|
73
79
|
return _CompoundButton.useCompoundButton_unstable;
|
|
74
80
|
},
|
|
81
|
+
useMenuButtonBase_unstable: function() {
|
|
82
|
+
return _MenuButton.useMenuButtonBase_unstable;
|
|
83
|
+
},
|
|
75
84
|
useMenuButtonStyles_unstable: function() {
|
|
76
85
|
return _MenuButton.useMenuButtonStyles_unstable;
|
|
77
86
|
},
|
|
78
87
|
useMenuButton_unstable: function() {
|
|
79
88
|
return _MenuButton.useMenuButton_unstable;
|
|
80
89
|
},
|
|
90
|
+
useSplitButtonBase_unstable: function() {
|
|
91
|
+
return _SplitButton.useSplitButtonBase_unstable;
|
|
92
|
+
},
|
|
81
93
|
useSplitButtonStyles_unstable: function() {
|
|
82
94
|
return _SplitButton.useSplitButtonStyles_unstable;
|
|
83
95
|
},
|
|
84
96
|
useSplitButton_unstable: function() {
|
|
85
97
|
return _SplitButton.useSplitButton_unstable;
|
|
86
98
|
},
|
|
99
|
+
useToggleButtonBase_unstable: function() {
|
|
100
|
+
return _ToggleButton.useToggleButtonBase_unstable;
|
|
101
|
+
},
|
|
87
102
|
useToggleButtonStyles_unstable: function() {
|
|
88
103
|
return _ToggleButton.useToggleButtonStyles_unstable;
|
|
89
104
|
},
|
|
@@ -101,14 +116,3 @@ const _SplitButton = require("./SplitButton");
|
|
|
101
116
|
const _ToggleButton = require("./ToggleButton");
|
|
102
117
|
const _index = require("./utils/index");
|
|
103
118
|
const _index1 = require("./contexts/index");
|
|
104
|
-
// Experimental APIs - will be uncommented in the experimental release branch
|
|
105
|
-
// export { useButtonBase_unstable } from './Button';
|
|
106
|
-
// export type { ButtonBaseProps, ButtonBaseState } from './Button';
|
|
107
|
-
// export { useCompoundButtonBase_unstable } from './CompoundButton';
|
|
108
|
-
// export type { CompoundButtonBaseProps, CompoundButtonBaseState } from './CompoundButton';
|
|
109
|
-
// export { useMenuButtonBase_unstable } from './MenuButton';
|
|
110
|
-
// export type { MenuButtonBaseProps, MenuButtonBaseState } from './MenuButton';
|
|
111
|
-
// export { useSplitButtonBase_unstable } from './SplitButton';
|
|
112
|
-
// export type { SplitButtonBaseProps, SplitButtonBaseState } from './SplitButton';
|
|
113
|
-
// export { useToggleButtonBase_unstable } from './ToggleButton';
|
|
114
|
-
// export type { ToggleButtonBaseProps, ToggleButtonBaseState } from './ToggleButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n\nexport { useToggleState } from './utils/index';\n\nexport { ButtonContextProvider, useButtonContext } from './contexts/index';\nexport type { ButtonContextValue } from './contexts/index';\n\n// Experimental APIs - will be uncommented in the experimental release branch\
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n\nexport { useToggleState } from './utils/index';\n\nexport { ButtonContextProvider, useButtonContext } from './contexts/index';\nexport type { ButtonContextValue } from './contexts/index';\n\n// Experimental APIs - will be uncommented in the experimental release branch\nexport { useButtonBase_unstable } from './Button';\nexport type { ButtonBaseProps, ButtonBaseState } from './Button';\nexport { useCompoundButtonBase_unstable } from './CompoundButton';\nexport type { CompoundButtonBaseProps, CompoundButtonBaseState } from './CompoundButton';\nexport { useMenuButtonBase_unstable } from './MenuButton';\nexport type { MenuButtonBaseProps, MenuButtonBaseState } from './MenuButton';\nexport { useSplitButtonBase_unstable } from './SplitButton';\nexport type { SplitButtonBaseProps, SplitButtonBaseState } from './SplitButton';\nexport { useToggleButtonBase_unstable } from './ToggleButton';\nexport type { ToggleButtonBaseProps, ToggleButtonBaseState } from './ToggleButton';\n"],"names":["Button","buttonClassNames","renderButton_unstable","useButtonStyles_unstable","useButton_unstable","CompoundButton","compoundButtonClassNames","renderCompoundButton_unstable","useCompoundButtonStyles_unstable","useCompoundButton_unstable","MenuButton","menuButtonClassNames","renderMenuButton_unstable","useMenuButtonStyles_unstable","useMenuButton_unstable","SplitButton","renderSplitButton_unstable","splitButtonClassNames","useSplitButtonStyles_unstable","useSplitButton_unstable","ToggleButton","renderToggleButton_unstable","toggleButtonClassNames","useToggleButtonStyles_unstable","useToggleButton_unstable","useToggleState","ButtonContextProvider","useButtonContext","useButtonBase_unstable","useCompoundButtonBase_unstable","useMenuButtonBase_unstable","useSplitButtonBase_unstable","useToggleButtonBase_unstable"],"mappings":";;;;;;;;;;;IACEA,MAAM;;;;eA0CC0B,6BAAqB;;;eAlC5BrB,8BAAc;;;eAQdK,sBAAU;;IAQVK,WAAW;;;;eAQXK,0BAAY;;;eA/BZnB,wBAAgB;;;eAQhBK,wCAAwB;;;eAQxBK,gCAAoB;;;eAfpBT,6BAAqB;;iCAQQ;eAA7BK;;;eAQAK,qCAAyB;;IAOzBI,0BAA0B;;;;eAQ1BK,yCAA2B;;;eAP3BJ,kCAAqB;;0BAQC;eAAtBK;;;eAYOM,8BAAsB,QAAQ,WAAW;;;eAJlBD,wBAAgB;;;eAvC9CxB,gCAAwB;;;eACxBC,0BAAkB;;kCA4CmB,QAAQ,mBAAmB;eAAzDyB;;;eArCPrB,gDAAgC;;;eAChCC,0CAA0B;;;eAsCnBqB,sCAA0B,QAAQ,eAAe;;;eA/BxDjB,wCAA4B;;IAC5BC;iDAAsB;;+BAgCY,QAAQ,gBAAgB;eAAnDiB;;;eAzBPb,0CAA6B;;;eAC7BC,oCAAuB;;;eA0BhBa,0CAA4B,QAAQ,iBAAiB;;;eAnB5DT,4CAA8B;;4BACN;eAAxBC;;;eAIOC,qBAAc;;;wBAnChB,WAAW;gCAQX,mBAAmB;4BAQnB,eAAe;6BAQf,gBAAgB;8BAQhB,iBAAiB;uBAGO,gBAAgB;wBAES,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-button",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
4
4
|
"description": "Fluent UI React Button component.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui/keyboard-keys": "
|
|
16
|
-
"@fluentui/react-aria": "
|
|
15
|
+
"@fluentui/keyboard-keys": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
16
|
+
"@fluentui/react-aria": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
17
17
|
"@fluentui/react-icons": "^2.0.245",
|
|
18
|
-
"@fluentui/react-jsx-runtime": "
|
|
19
|
-
"@fluentui/react-shared-contexts": "
|
|
20
|
-
"@fluentui/react-tabster": "
|
|
21
|
-
"@fluentui/react-theme": "
|
|
22
|
-
"@fluentui/react-utilities": "
|
|
18
|
+
"@fluentui/react-jsx-runtime": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
19
|
+
"@fluentui/react-shared-contexts": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
20
|
+
"@fluentui/react-tabster": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
21
|
+
"@fluentui/react-theme": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
22
|
+
"@fluentui/react-utilities": "9.72.9-experimental.component-base-hooks.20260122-49fc330360.0",
|
|
23
23
|
"@griffel/react": "^1.5.32",
|
|
24
24
|
"@swc/helpers": "^0.5.1"
|
|
25
25
|
},
|
|
@@ -29,12 +29,7 @@
|
|
|
29
29
|
"react": ">=16.14.0 <20.0.0",
|
|
30
30
|
"react-dom": ">=16.14.0 <20.0.0"
|
|
31
31
|
},
|
|
32
|
-
"beachball": {
|
|
33
|
-
"disallowedChangeTypes": [
|
|
34
|
-
"major",
|
|
35
|
-
"prerelease"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
32
|
+
"beachball": {},
|
|
38
33
|
"exports": {
|
|
39
34
|
".": {
|
|
40
35
|
"types": "./dist/index.d.ts",
|