@fluentui/react-button 0.0.0-nightlyc0273fdc6920211123.1 → 0.0.0-nightlyc0e3a0a1f320220217.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +269 -21
- package/CHANGELOG.md +63 -13
- package/dist/react-button.d.ts +31 -36
- package/lib/components/Button/Button.js +6 -6
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.d.ts +5 -5
- package/lib/components/Button/index.d.ts +2 -2
- package/lib/components/Button/index.js +1 -2
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.d.ts +1 -1
- package/lib/components/Button/renderButton.js +6 -3
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.d.ts +1 -1
- package/lib/components/Button/useButton.js +3 -2
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +1 -9
- package/lib/components/Button/useButtonStyles.js +95 -70
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js +6 -6
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.d.ts +4 -4
- package/lib/components/CompoundButton/index.d.ts +1 -1
- package/lib/components/CompoundButton/index.js +1 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +8 -3
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +3 -3
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +14 -13
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +6 -6
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib/components/MenuButton/index.d.ts +1 -1
- package/lib/components/MenuButton/index.js +1 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
- package/lib/components/MenuButton/renderMenuButton.js +6 -3
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
- package/lib/components/MenuButton/useMenuButton.js +5 -5
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js +6 -6
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +6 -4
- package/lib/components/SplitButton/index.d.ts +1 -1
- package/lib/components/SplitButton/index.js +1 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +6 -3
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
- package/lib/components/SplitButton/useSplitButton.js +17 -5
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js +3 -2
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +6 -6
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.types.d.ts +2 -1
- package/lib/components/ToggleButton/index.d.ts +1 -1
- package/lib/components/ToggleButton/index.js +1 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +13 -9
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +35 -34
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js +3 -3
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +5 -5
- package/lib-commonjs/components/Button/index.d.ts +2 -2
- package/lib-commonjs/components/Button/index.js +3 -5
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
- package/lib-commonjs/components/Button/renderButton.js +8 -5
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.d.ts +1 -1
- package/lib-commonjs/components/Button/useButton.js +5 -4
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -9
- package/lib-commonjs/components/Button/useButtonStyles.js +104 -78
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +4 -4
- package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +3 -3
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +10 -5
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +25 -23
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/index.js +3 -3
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +8 -5
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -5
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +6 -4
- package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.js +3 -3
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -5
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +18 -6
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +11 -9
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +2 -1
- package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +3 -3
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +14 -10
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +40 -38
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/package.json +12 -13
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { renderButton_unstable } from './renderButton';
|
3
|
+
import { useButton_unstable } from './useButton';
|
4
|
+
import { useButtonStyles_unstable } from './useButtonStyles';
|
5
5
|
/**
|
6
6
|
* Buttons give people a way to trigger an action.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useButton_unstable(props, ref);
|
11
|
+
useButtonStyles_unstable(state);
|
12
|
+
return renderButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
|
13
13
|
});
|
14
14
|
Button.displayName = 'Button';
|
15
15
|
//# sourceMappingURL=Button.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
2
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
3
3
|
export declare type ButtonSlots = {
|
4
4
|
/**
|
5
5
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
6
6
|
*/
|
7
|
-
root:
|
7
|
+
root: Slot<ARIAButtonSlotProps>;
|
8
8
|
/**
|
9
9
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
10
10
|
*/
|
11
|
-
icon?:
|
11
|
+
icon?: Slot<'span'>;
|
12
12
|
};
|
13
13
|
export declare type ButtonCommons = {
|
14
14
|
/**
|
@@ -40,7 +40,7 @@ export declare type ButtonCommons = {
|
|
40
40
|
* A button can format its icon to appear before or after its content.
|
41
41
|
* @default 'before'
|
42
42
|
*/
|
43
|
-
iconPosition
|
43
|
+
iconPosition?: 'before' | 'after';
|
44
44
|
/**
|
45
45
|
* A button can be rounded, circular, or square.
|
46
46
|
* @default 'rounded'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './Button';
|
2
|
-
export
|
2
|
+
export type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';
|
3
3
|
export * from './renderButton';
|
4
4
|
export * from './useButton';
|
5
|
-
export { buttonClassName,
|
5
|
+
export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export * from './Button';
|
2
|
-
export * from './Button.types';
|
3
2
|
export * from './renderButton';
|
4
3
|
export * from './useButton';
|
5
|
-
export { buttonClassName,
|
4
|
+
export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
|
6
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAGzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -2,4 +2,4 @@ import type { ButtonState } from './Button.types';
|
|
2
2
|
/**
|
3
3
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
4
4
|
*/
|
5
|
-
export declare const
|
5
|
+
export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
|
@@ -4,15 +4,18 @@ import { getSlots } from '@fluentui/react-utilities';
|
|
4
4
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
5
5
|
*/
|
6
6
|
|
7
|
-
export const
|
7
|
+
export const renderButton_unstable = state => {
|
8
8
|
const {
|
9
9
|
slots,
|
10
10
|
slotProps
|
11
|
-
} = getSlots(state
|
11
|
+
} = getSlots(state);
|
12
12
|
const {
|
13
13
|
iconOnly,
|
14
14
|
iconPosition
|
15
15
|
} = state;
|
16
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
16
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
17
|
+
}, iconPosition !== 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && state.root.children, iconPosition === 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
19
|
+
}));
|
17
20
|
};
|
18
21
|
//# sourceMappingURL=renderButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD7C,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH7C,CADF;AAOD,CAXM","sourceRoot":""}
|
@@ -5,4 +5,4 @@ import type { ButtonProps, ButtonState } from './Button.types';
|
|
5
5
|
* @param props - User provided props to the Button component.
|
6
6
|
* @param ref - User provided ref to be passed to the Button component.
|
7
7
|
*/
|
8
|
-
export declare const
|
8
|
+
export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
|
@@ -6,7 +6,7 @@ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utiliti
|
|
6
6
|
* @param ref - User provided ref to be passed to the Button component.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export const
|
9
|
+
export const useButton_unstable = (props, ref) => {
|
10
10
|
const {
|
11
11
|
appearance,
|
12
12
|
as,
|
@@ -40,7 +40,8 @@ export const useButton = (props, ref) => {
|
|
40
40
|
defaultProps: {
|
41
41
|
// useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>
|
42
42
|
ref: ref,
|
43
|
-
type: 'button'
|
43
|
+
type: 'button' // This is added because the default for type is 'submit'
|
44
|
+
|
44
45
|
}
|
45
46
|
})),
|
46
47
|
icon: iconShorthand
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AAEA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAChC,KADgC,EAEhC,GAFgC,KAGjB;AACf,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAAI,EAAE,qBAAqB,CACzB,EAAE,IAAI,QADmB,EAEzB,aAAa,CAAsB,KAAtB,EAA6B;AACxC,MAAA,QAAQ,EAAE,IAD8B;AAExC,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE,QAHM,CAGI;;AAHJ;AAF0B,KAA7B,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CAjDM","sourceRoot":""}
|
@@ -1,11 +1,3 @@
|
|
1
1
|
import type { ButtonState } from './Button.types';
|
2
2
|
export declare const buttonClassName = "fui-Button";
|
3
|
-
export declare const
|
4
|
-
smallest: string;
|
5
|
-
smaller: string;
|
6
|
-
small: string;
|
7
|
-
medium: string;
|
8
|
-
large: string;
|
9
|
-
larger: string;
|
10
|
-
};
|
11
|
-
export declare const useButtonStyles: (state: ButtonState) => ButtonState;
|
3
|
+
export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
|
@@ -1,16 +1,7 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@griffel/react';
|
2
2
|
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
export const buttonSpacing = {
|
7
|
-
smallest: '2px',
|
8
|
-
smaller: '4px',
|
9
|
-
small: '6px',
|
10
|
-
medium: '8px',
|
11
|
-
large: '12px',
|
12
|
-
larger: '16px'
|
13
|
-
};
|
3
|
+
import { tokens } from '@fluentui/react-theme';
|
4
|
+
export const buttonClassName = 'fui-Button';
|
14
5
|
|
15
6
|
const useRootStyles = /*#__PURE__*/__styles({
|
16
7
|
"base": {
|
@@ -23,33 +14,34 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
23
14
|
"jrapky": "f19f4twv",
|
24
15
|
"Frg6f3": ["f1tyq0we", "f11qmguv"],
|
25
16
|
"B2u0y6b": "f1n52uh2",
|
26
|
-
"
|
17
|
+
"B68tc82": "f1p9o1ba",
|
18
|
+
"Bmxbyg5": "f1sil6mw",
|
27
19
|
"ygn44y": "f1cmbuwj",
|
28
20
|
"Huce71": "fz5stix",
|
29
|
-
"
|
21
|
+
"De3pzq": "fxugw4r",
|
30
22
|
"sj55zd": "f19n0e5",
|
31
|
-
"g2u3we": "fj3muxo",
|
32
|
-
"h3c5rm": ["f1akhkt", "f1lxtadh"],
|
33
|
-
"B9xav0g": "f1aperda",
|
34
|
-
"zhjwy3": ["f1lxtadh", "f1akhkt"],
|
35
|
-
"icvyot": "fzkkow9",
|
36
|
-
"vrafjx": ["fcdblym", "fjik90z"],
|
37
|
-
"oivjwe": "fg706s2",
|
38
|
-
"wvpqe5": ["fjik90z", "fcdblym"],
|
39
23
|
"B4j52fo": "f192inf7",
|
40
24
|
"Bekrc4i": ["f5tn483", "f1ojsxk5"],
|
41
25
|
"Bn0qgzm": "f1vxd6vx",
|
42
26
|
"ibv6hh": ["f1ojsxk5", "f5tn483"],
|
27
|
+
"icvyot": "fzkkow9",
|
28
|
+
"vrafjx": ["fcdblym", "fjik90z"],
|
29
|
+
"oivjwe": "fg706s2",
|
30
|
+
"wvpqe5": ["fjik90z", "fcdblym"],
|
31
|
+
"g2u3we": "fj3muxo",
|
32
|
+
"h3c5rm": ["f1akhkt", "f1lxtadh"],
|
33
|
+
"B9xav0g": "f1aperda",
|
34
|
+
"zhjwy3": ["f1lxtadh", "f1akhkt"],
|
43
35
|
"Bahqtrf": "fk6fouc",
|
44
36
|
"oeaueh": "f1s6fcnf",
|
45
|
-
"
|
37
|
+
"Jwef8y": "f1knas48",
|
46
38
|
"Bgoe8wy": "fvcxoqz",
|
47
39
|
"Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
|
48
40
|
"oetu4i": "f1xlaoq0",
|
49
41
|
"gg5e9n": ["f1m52nbi", "f1ub3y4t"],
|
50
42
|
"Bi91k9c": "fax3udt",
|
51
43
|
"eoavqd": "f8491dx",
|
52
|
-
"
|
44
|
+
"ecr2s2": "fb40n2d",
|
53
45
|
"B6oc9vd": "fvs00aa",
|
54
46
|
"ak43y8": ["f1assf6x", "f4ruux4"],
|
55
47
|
"wmxk5l": "fumykes",
|
@@ -62,24 +54,24 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
62
54
|
"a9b677": "fly5x3f"
|
63
55
|
},
|
64
56
|
"outline": {
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
57
|
+
"De3pzq": "f1c21dwh",
|
58
|
+
"Jwef8y": "fjxutwb",
|
59
|
+
"ecr2s2": "fophhak"
|
68
60
|
},
|
69
61
|
"primary": {
|
70
|
-
"
|
62
|
+
"De3pzq": "ffp7eso",
|
71
63
|
"g2u3we": "f1p3nwhy",
|
72
64
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
73
65
|
"B9xav0g": "f1q5o8ev",
|
74
66
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
75
67
|
"sj55zd": "f1phragk",
|
76
|
-
"
|
68
|
+
"Jwef8y": "f15wkkf3",
|
77
69
|
"Bgoe8wy": "f1s2uweq",
|
78
70
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
79
71
|
"oetu4i": "f1ukrpxl",
|
80
72
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
81
73
|
"Bi91k9c": "f1rq72xc",
|
82
|
-
"
|
74
|
+
"ecr2s2": "fsp1bjw",
|
83
75
|
"B6oc9vd": "ff472gp",
|
84
76
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
85
77
|
"wmxk5l": "fggejwh",
|
@@ -87,19 +79,19 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
87
79
|
"lj723h": "f18otbis"
|
88
80
|
},
|
89
81
|
"subtle": {
|
90
|
-
"
|
82
|
+
"De3pzq": "fhovq9v",
|
91
83
|
"g2u3we": "f1p3nwhy",
|
92
84
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
93
85
|
"B9xav0g": "f1q5o8ev",
|
94
86
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
95
87
|
"sj55zd": "fkfq4zb",
|
96
|
-
"
|
88
|
+
"Jwef8y": "f1t94bn6",
|
97
89
|
"Bgoe8wy": "f1s2uweq",
|
98
90
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
99
91
|
"oetu4i": "f1ukrpxl",
|
100
92
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
101
93
|
"Bi91k9c": "f139oj5f",
|
102
|
-
"
|
94
|
+
"ecr2s2": "f1wfn5kd",
|
103
95
|
"B6oc9vd": "ff472gp",
|
104
96
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
105
97
|
"wmxk5l": "fggejwh",
|
@@ -107,19 +99,19 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
107
99
|
"lj723h": "f19au66r"
|
108
100
|
},
|
109
101
|
"transparent": {
|
110
|
-
"
|
102
|
+
"De3pzq": "f1c21dwh",
|
111
103
|
"g2u3we": "f1p3nwhy",
|
112
104
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
113
105
|
"B9xav0g": "f1q5o8ev",
|
114
106
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
115
107
|
"sj55zd": "fkfq4zb",
|
116
|
-
"
|
108
|
+
"Jwef8y": "fjxutwb",
|
117
109
|
"Bgoe8wy": "f1s2uweq",
|
118
110
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
119
111
|
"oetu4i": "f1ukrpxl",
|
120
112
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
121
113
|
"Bi91k9c": "f139oj5f",
|
122
|
-
"
|
114
|
+
"ecr2s2": "fophhak",
|
123
115
|
"B6oc9vd": "ff472gp",
|
124
116
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
125
117
|
"wmxk5l": "fggejwh",
|
@@ -127,74 +119,92 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
127
119
|
"lj723h": "f19au66r"
|
128
120
|
},
|
129
121
|
"circular": {
|
130
|
-
"
|
122
|
+
"Bbmb7ep": ["f8fbkgy", "f1nfllo7"],
|
123
|
+
"Beyfa6y": ["f1nfllo7", "f8fbkgy"],
|
124
|
+
"B7oj6ja": ["f1djnp8u", "f1s8kh49"],
|
125
|
+
"Btl43ni": ["f1s8kh49", "f1djnp8u"]
|
131
126
|
},
|
132
127
|
"rounded": {},
|
133
128
|
"square": {
|
134
|
-
"
|
129
|
+
"Bbmb7ep": ["fzi6hpg", "fyowgf4"],
|
130
|
+
"Beyfa6y": ["fyowgf4", "fzi6hpg"],
|
131
|
+
"B7oj6ja": ["f3fg2lr", "f13av6d4"],
|
132
|
+
"Btl43ni": ["f13av6d4", "f3fg2lr"]
|
135
133
|
},
|
136
134
|
"small": {
|
137
|
-
"
|
135
|
+
"i8kkvl": "f1q8lukm",
|
136
|
+
"Belr9w4": "f1ma2n7n",
|
138
137
|
"z8tnut": "f1g0x7ka",
|
139
138
|
"z189sj": ["f19lj068", "f177v4lu"],
|
140
139
|
"Byoj8tv": "f1qch9an",
|
141
140
|
"uwmqm3": ["f177v4lu", "f19lj068"],
|
142
141
|
"Bqenvij": "frvgh55",
|
143
142
|
"Bf4jedk": "fh7ncta",
|
144
|
-
"
|
143
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
144
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
145
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
146
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
145
147
|
"Be2twd7": "fy9rknc",
|
146
148
|
"Bhrd7zp": "figsok6",
|
147
149
|
"Bg96gwp": "fwrc4pm"
|
148
150
|
},
|
149
151
|
"medium": {
|
150
|
-
"
|
152
|
+
"i8kkvl": "fgfbwa2",
|
153
|
+
"Belr9w4": "f1y3hx6l",
|
151
154
|
"z8tnut": "f1g0x7ka",
|
152
155
|
"z189sj": ["f11qrl6u", "fjlbh76"],
|
153
156
|
"Byoj8tv": "f1qch9an",
|
154
157
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
155
158
|
"Bqenvij": "f1d2rq10",
|
156
159
|
"Bf4jedk": "f14es27b",
|
157
|
-
"
|
160
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
161
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
162
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
163
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
158
164
|
"Be2twd7": "fkhj508",
|
159
165
|
"Bhrd7zp": "fl43uef",
|
160
166
|
"Bg96gwp": "f1i3iumi"
|
161
167
|
},
|
162
168
|
"large": {
|
163
|
-
"
|
169
|
+
"i8kkvl": "fgfbwa2",
|
170
|
+
"Belr9w4": "f1y3hx6l",
|
164
171
|
"z8tnut": "f1g0x7ka",
|
165
172
|
"z189sj": ["f1gbmcue", "f1rh9g5y"],
|
166
173
|
"Byoj8tv": "f1qch9an",
|
167
174
|
"uwmqm3": ["f1rh9g5y", "f1gbmcue"],
|
168
175
|
"Bqenvij": "fbhnoac",
|
169
176
|
"Bf4jedk": "f14es27b",
|
170
|
-
"
|
177
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
178
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
179
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
180
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
171
181
|
"Be2twd7": "fod5ikn",
|
172
182
|
"Bhrd7zp": "fl43uef",
|
173
183
|
"Bg96gwp": "faaz57k"
|
174
184
|
}
|
175
185
|
}, {
|
176
|
-
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".
|
177
|
-
"h": [".
|
178
|
-
"a": [".
|
186
|
+
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".fz5stix{white-space:nowrap;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1s6fcnf{outline-style:none;}", ".f6dzj5z{max-width:100%;}", ".fly5x3f{width:100%;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}", ".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}", ".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}", ".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1g0x7ka{padding-top:0;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f1qch9an{padding-bottom:0;}", ".frvgh55{height:24px;}", ".fh7ncta{min-width:64px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f1d2rq10{height:32px;}", ".f14es27b{min-width:96px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fbhnoac{height:40px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}"],
|
187
|
+
"h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".f8491dx:hover{cursor:pointer;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
|
188
|
+
"a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".fb0xa7e:active{outline-style:none;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".fsp1bjw:active{background-color:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
|
179
189
|
});
|
180
190
|
|
181
191
|
const useRootDisabledStyles = /*#__PURE__*/__styles({
|
182
192
|
"base": {
|
183
|
-
"
|
193
|
+
"De3pzq": "f1bg9a2p",
|
184
194
|
"g2u3we": "f1jj8ep1",
|
185
195
|
"h3c5rm": ["f15xbau", "fy0fskl"],
|
186
196
|
"B9xav0g": "f4ikngz",
|
187
197
|
"zhjwy3": ["fy0fskl", "f15xbau"],
|
188
198
|
"sj55zd": "f1s2aq7o",
|
189
199
|
"Bceei9c": "fdrzuqr",
|
190
|
-
"
|
200
|
+
"Jwef8y": "f1falr9n",
|
191
201
|
"Bgoe8wy": "f12mpcsy",
|
192
202
|
"Bwzppfd": ["f1gwvigk", "f18rmfxp"],
|
193
203
|
"oetu4i": "f1jnshp0",
|
194
204
|
"gg5e9n": ["f18rmfxp", "f1gwvigk"],
|
195
205
|
"Bi91k9c": "fvgxktp",
|
196
206
|
"eoavqd": "fphbwmw",
|
197
|
-
"
|
207
|
+
"ecr2s2": "f1ryyzvn",
|
198
208
|
"B6oc9vd": "fdi4vxw",
|
199
209
|
"ak43y8": ["f4ryxzl", "fkdgpbx"],
|
200
210
|
"wmxk5l": "fcmhn06",
|
@@ -203,9 +213,9 @@ const useRootDisabledStyles = /*#__PURE__*/__styles({
|
|
203
213
|
"Bwh3duv": "fq67hom"
|
204
214
|
},
|
205
215
|
"outline": {
|
206
|
-
"
|
207
|
-
"
|
208
|
-
"
|
216
|
+
"De3pzq": "f1c21dwh",
|
217
|
+
"Jwef8y": "fjxutwb",
|
218
|
+
"ecr2s2": "fophhak"
|
209
219
|
},
|
210
220
|
"primary": {
|
211
221
|
"g2u3we": "f1p3nwhy",
|
@@ -222,43 +232,43 @@ const useRootDisabledStyles = /*#__PURE__*/__styles({
|
|
222
232
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
223
233
|
},
|
224
234
|
"subtle": {
|
225
|
-
"
|
235
|
+
"De3pzq": "f3rmtva",
|
226
236
|
"g2u3we": "f1p3nwhy",
|
227
237
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
228
238
|
"B9xav0g": "f1q5o8ev",
|
229
239
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
230
|
-
"
|
240
|
+
"Jwef8y": "f1cio4g9",
|
231
241
|
"Bgoe8wy": "f1s2uweq",
|
232
242
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
233
243
|
"oetu4i": "f1ukrpxl",
|
234
244
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
235
|
-
"
|
245
|
+
"ecr2s2": "f1rot6hk",
|
236
246
|
"B6oc9vd": "ff472gp",
|
237
247
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
238
248
|
"wmxk5l": "fggejwh",
|
239
249
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
240
250
|
},
|
241
251
|
"transparent": {
|
242
|
-
"
|
252
|
+
"De3pzq": "f3rmtva",
|
243
253
|
"g2u3we": "f1p3nwhy",
|
244
254
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
245
255
|
"B9xav0g": "f1q5o8ev",
|
246
256
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
247
|
-
"
|
257
|
+
"Jwef8y": "f1cio4g9",
|
248
258
|
"Bgoe8wy": "f1s2uweq",
|
249
259
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
250
260
|
"oetu4i": "f1ukrpxl",
|
251
261
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
252
|
-
"
|
262
|
+
"ecr2s2": "f1rot6hk",
|
253
263
|
"B6oc9vd": "ff472gp",
|
254
264
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
255
265
|
"wmxk5l": "fggejwh",
|
256
266
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
257
267
|
}
|
258
268
|
}, {
|
259
|
-
"d": [".
|
260
|
-
"h": [".
|
261
|
-
"a": [".
|
269
|
+
"d": [".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".fdrzuqr{cursor:not-allowed;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f3rmtva{background-color:transparent;}"],
|
270
|
+
"h": [".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".fphbwmw:hover{cursor:not-allowed;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1cio4g9:hover{background-color:transparent;}"],
|
271
|
+
"a": [".f1ryyzvn:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".fq67hom:active{cursor:not-allowed;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f1rot6hk:active{background-color:transparent;}"]
|
262
272
|
});
|
263
273
|
|
264
274
|
const useRootFocusStyles = /*#__PURE__*/__styles({
|
@@ -268,15 +278,18 @@ const useRootFocusStyles = /*#__PURE__*/__styles({
|
|
268
278
|
"Jopkrh": ["f1781m5e", "flvaaa9"],
|
269
279
|
"hhrs2v": "f50u1b5",
|
270
280
|
"B7jbng7": ["flvaaa9", "f1781m5e"],
|
281
|
+
"Bh48x57": "f19j8a82",
|
271
282
|
"B32s92o": "f4mghqd",
|
272
283
|
"B5hngm5": "fhcq1yo",
|
273
|
-
"Bh48x57": "f19j8a82",
|
274
284
|
"D4py6b": "f9ycirn",
|
275
285
|
"Bgwpjed": "fpt6wn7"
|
276
286
|
},
|
277
287
|
"circular": {
|
278
288
|
"B486eqv": "f2hkw1w",
|
279
|
-
"
|
289
|
+
"B8j0l6": ["f11yy61d", "f5edc3x"],
|
290
|
+
"Ekyhi": ["f5edc3x", "f11yy61d"],
|
291
|
+
"Bmrpcm6": ["f1aea4n", "f4jo73o"],
|
292
|
+
"Beswxhl": ["f4jo73o", "f1aea4n"]
|
280
293
|
},
|
281
294
|
"rounded": {},
|
282
295
|
"primary": {
|
@@ -289,23 +302,35 @@ const useRootFocusStyles = /*#__PURE__*/__styles({
|
|
289
302
|
},
|
290
303
|
"square": {
|
291
304
|
"B486eqv": "f2hkw1w",
|
292
|
-
"
|
305
|
+
"B8j0l6": ["f5oco9f", "fiz44lb"],
|
306
|
+
"Ekyhi": ["fiz44lb", "f5oco9f"],
|
307
|
+
"Bmrpcm6": ["f1d1ywej", "flv4e1y"],
|
308
|
+
"Beswxhl": ["flv4e1y", "f1d1ywej"]
|
293
309
|
},
|
294
310
|
"small": {
|
295
311
|
"B486eqv": "f2hkw1w",
|
296
|
-
"
|
312
|
+
"B8j0l6": ["f1dzjeht", "f1fw97sp"],
|
313
|
+
"Ekyhi": ["f1fw97sp", "f1dzjeht"],
|
314
|
+
"Bmrpcm6": ["f1hr3vfr", "f1fepg9x"],
|
315
|
+
"Beswxhl": ["f1fepg9x", "f1hr3vfr"]
|
297
316
|
},
|
298
317
|
"medium": {
|
299
318
|
"B486eqv": "f2hkw1w",
|
300
|
-
"
|
319
|
+
"B8j0l6": ["f1ezw2km", "f18buiid"],
|
320
|
+
"Ekyhi": ["f18buiid", "f1ezw2km"],
|
321
|
+
"Bmrpcm6": ["f1hat8c3", "f10ee3ek"],
|
322
|
+
"Beswxhl": ["f10ee3ek", "f1hat8c3"]
|
301
323
|
},
|
302
324
|
"large": {
|
303
325
|
"B486eqv": "f2hkw1w",
|
304
|
-
"
|
326
|
+
"B8j0l6": ["f8iz5lg", "fzmqelg"],
|
327
|
+
"Ekyhi": ["fzmqelg", "f8iz5lg"],
|
328
|
+
"Bmrpcm6": ["f1ywuu4l", "f721nif"],
|
329
|
+
"Beswxhl": ["f721nif", "f1ywuu4l"]
|
305
330
|
}
|
306
331
|
}, {
|
307
332
|
"i": [".f2hkw1w:focus-visible{outline-style:none;}"],
|
308
|
-
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .
|
333
|
+
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f19j8a82:focus{outline-color:transparent;}", "[data-keyboard-nav] .f4mghqd:focus{outline-width:2px;}", "[data-keyboard-nav] .fhcq1yo:focus{outline-style:solid;}", "[data-keyboard-nav] .f9ycirn:focus{box-shadow:var(--shadow4),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fpt6wn7:focus{z-index:1;}", "[data-keyboard-nav] .f11yy61d:focus{border-bottom-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f5edc3x:focus{border-bottom-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f1aea4n:focus{border-top-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f4jo73o:focus{border-top-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .fbugrqt:focus{border-top-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .fhoxsto:focus{border-right-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f19qf7vm:focus{border-left-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f1tl0rof:focus{border-bottom-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f15m8qn2:focus{box-shadow:var(--shadow2),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f5oco9f:focus{border-bottom-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .fiz44lb:focus{border-bottom-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1d1ywej:focus{border-top-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .flv4e1y:focus{border-top-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1dzjeht:focus{border-bottom-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fw97sp:focus{border-bottom-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1hr3vfr:focus{border-top-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fepg9x:focus{border-top-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1ezw2km:focus{border-bottom-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f18buiid:focus{border-bottom-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1hat8c3:focus{border-top-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f10ee3ek:focus{border-top-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f8iz5lg:focus{border-bottom-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .fzmqelg:focus{border-bottom-left-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f1ywuu4l:focus{border-top-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f721nif:focus{border-top-left-radius:var(--borderRadiusLarge);}"]
|
309
334
|
});
|
310
335
|
|
311
336
|
const useRootIconOnlyStyles = /*#__PURE__*/__styles({
|
@@ -362,7 +387,7 @@ const useIconStyles = /*#__PURE__*/__styles({
|
|
362
387
|
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
|
363
388
|
});
|
364
389
|
|
365
|
-
export const
|
390
|
+
export const useButtonStyles_unstable = state => {
|
366
391
|
const rootStyles = useRootStyles();
|
367
392
|
const rootDisabledStyles = useRootDisabledStyles();
|
368
393
|
const rootFocusStyles = useRootFocusStyles();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA,
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