@fluentui/react-button 9.7.1 → 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 +18 -2
- package/dist/index.d.ts +65 -3
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/CompoundButton.js +1 -1
- package/lib/CompoundButton.js.map +1 -1
- package/lib/MenuButton.js +1 -1
- package/lib/MenuButton.js.map +1 -1
- package/lib/SplitButton.js +1 -1
- package/lib/SplitButton.js.map +1 -1
- package/lib/ToggleButton.js +1 -1
- package/lib/ToggleButton.js.map +1 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/useButton.js +4 -22
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonBase.js +34 -0
- package/lib/components/Button/useButtonBase.js.map +1 -0
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.js +1 -0
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +11 -23
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonBase.js +31 -0
- package/lib/components/CompoundButton/useCompoundButtonBase.js.map +1 -0
- package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib/components/MenuButton/index.js +1 -0
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js +14 -23
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonBase.js +27 -0
- package/lib/components/MenuButton/useMenuButtonBase.js.map +1 -0
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.js +1 -0
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +16 -53
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonBase.js +57 -0
- package/lib/components/SplitButton/useSplitButtonBase.js.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib/components/ToggleButton/index.js +1 -0
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +13 -5
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonBase.js +13 -0
- package/lib/components/ToggleButton/useToggleButtonBase.js.map +1 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Button.js +3 -0
- package/lib-commonjs/Button.js.map +1 -1
- package/lib-commonjs/CompoundButton.js +3 -0
- package/lib-commonjs/CompoundButton.js.map +1 -1
- package/lib-commonjs/MenuButton.js +3 -0
- package/lib-commonjs/MenuButton.js.map +1 -1
- package/lib-commonjs/SplitButton.js +3 -0
- package/lib-commonjs/SplitButton.js.map +1 -1
- package/lib-commonjs/ToggleButton.js +3 -0
- package/lib-commonjs/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +4 -0
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +4 -22
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonBase.js +41 -0
- package/lib-commonjs/components/Button/useButtonBase.js.map +1 -0
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +4 -0
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +11 -23
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonBase.js +38 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonBase.js.map +1 -0
- package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.js +4 -0
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +14 -23
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonBase.js +36 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonBase.js.map +1 -0
- package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.js +4 -0
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +16 -53
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonBase.js +64 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonBase.js.map +1 -0
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +4 -0
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +12 -4
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonBase.js +19 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonBase.js.map +1 -0
- package/lib-commonjs/index.js +15 -0
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -21
- package/lib/components/Button/useButtonStyles.styles.headless.js +0 -36
- package/lib/components/Button/useButtonStyles.styles.headless.js.map +0 -1
- package/lib/components/Button/useButtonStyles.styles.raw.headless.js +0 -36
- package/lib/components/Button/useButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.headless.js +0 -49
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.headless.js.map +0 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.raw.headless.js +0 -49
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib/components/MenuButton/useMenuButtonStyles.styles.headless.js +0 -44
- package/lib/components/MenuButton/useMenuButtonStyles.styles.headless.js.map +0 -1
- package/lib/components/MenuButton/useMenuButtonStyles.styles.raw.headless.js +0 -44
- package/lib/components/MenuButton/useMenuButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib/components/SplitButton/useSplitButtonStyles.styles.headless.js +0 -39
- package/lib/components/SplitButton/useSplitButtonStyles.styles.headless.js.map +0 -1
- package/lib/components/SplitButton/useSplitButtonStyles.styles.raw.headless.js +0 -39
- package/lib/components/SplitButton/useSplitButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.headless.js +0 -36
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.headless.js.map +0 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.raw.headless.js +0 -36
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib-commonjs/components/Button/useButtonStyles.styles.headless.js +0 -52
- package/lib-commonjs/components/Button/useButtonStyles.styles.headless.js.map +0 -1
- package/lib-commonjs/components/Button/useButtonStyles.styles.raw.headless.js +0 -52
- package/lib-commonjs/components/Button/useButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.headless.js +0 -64
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.headless.js.map +0 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.raw.headless.js +0 -64
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.headless.js +0 -60
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.headless.js.map +0 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.raw.headless.js +0 -60
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.headless.js +0 -55
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.headless.js.map +0 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.raw.headless.js +0 -55
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.raw.headless.js.map +0 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.headless.js +0 -52
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.headless.js.map +0 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.raw.headless.js +0 -52
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.raw.headless.js.map +0 -1
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
|
},
|
|
@@ -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"],"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"],"mappings":";;;;;;;;;;;IACEA,MAAM;;;;eA0CC0B,6BAAqB;;;eAlC5BrB,8BAAc;;;eAQdK,sBAAU;;
|
|
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",
|
|
@@ -11,22 +11,15 @@
|
|
|
11
11
|
"url": "https://github.com/microsoft/fluentui"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@fluentui/a11y-testing": "*",
|
|
16
|
-
"@fluentui/eslint-plugin": "*",
|
|
17
|
-
"@fluentui/react-conformance": "*",
|
|
18
|
-
"@fluentui/react-conformance-griffel": "*",
|
|
19
|
-
"@fluentui/scripts-api-extractor": "*"
|
|
20
|
-
},
|
|
21
14
|
"dependencies": {
|
|
22
|
-
"@fluentui/keyboard-keys": "
|
|
23
|
-
"@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",
|
|
24
17
|
"@fluentui/react-icons": "^2.0.245",
|
|
25
|
-
"@fluentui/react-jsx-runtime": "
|
|
26
|
-
"@fluentui/react-shared-contexts": "
|
|
27
|
-
"@fluentui/react-tabster": "
|
|
28
|
-
"@fluentui/react-theme": "
|
|
29
|
-
"@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",
|
|
30
23
|
"@griffel/react": "^1.5.32",
|
|
31
24
|
"@swc/helpers": "^0.5.1"
|
|
32
25
|
},
|
|
@@ -36,12 +29,7 @@
|
|
|
36
29
|
"react": ">=16.14.0 <20.0.0",
|
|
37
30
|
"react-dom": ">=16.14.0 <20.0.0"
|
|
38
31
|
},
|
|
39
|
-
"beachball": {
|
|
40
|
-
"disallowedChangeTypes": [
|
|
41
|
-
"major",
|
|
42
|
-
"prerelease"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
32
|
+
"beachball": {},
|
|
45
33
|
"exports": {
|
|
46
34
|
".": {
|
|
47
35
|
"types": "./dist/index.d.ts",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const buttonClassNames = {
|
|
3
|
-
root: 'fui-Button',
|
|
4
|
-
icon: 'fui-Button__icon'
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Attaches only semantic slot class names and state modifiers
|
|
8
|
-
*/ export const useButtonStyles_unstable = (state)=>{
|
|
9
|
-
'use no memo';
|
|
10
|
-
const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;
|
|
11
|
-
state.root.className = [
|
|
12
|
-
buttonClassNames.root,
|
|
13
|
-
// Appearance
|
|
14
|
-
appearance && `${buttonClassNames.root}--${appearance}`,
|
|
15
|
-
// Size
|
|
16
|
-
`${buttonClassNames.root}--${size}`,
|
|
17
|
-
// Shape
|
|
18
|
-
`${buttonClassNames.root}--${shape}`,
|
|
19
|
-
// Disabled styles
|
|
20
|
-
disabled && `${buttonClassNames.root}--disabled`,
|
|
21
|
-
disabledFocusable && `${buttonClassNames.root}--disabledFocusable`,
|
|
22
|
-
// Icon styles
|
|
23
|
-
icon && iconPosition === 'before' && `${buttonClassNames.root}--iconBefore`,
|
|
24
|
-
icon && iconPosition === 'after' && `${buttonClassNames.root}--iconAfter`,
|
|
25
|
-
iconOnly && `${buttonClassNames.root}--iconOnly`,
|
|
26
|
-
// User provided class name
|
|
27
|
-
state.root.className
|
|
28
|
-
].filter(Boolean).join(' ');
|
|
29
|
-
if (state.icon) {
|
|
30
|
-
state.icon.className = [
|
|
31
|
-
buttonClassNames.icon,
|
|
32
|
-
state.icon.className
|
|
33
|
-
].filter(Boolean).join(' ');
|
|
34
|
-
}
|
|
35
|
-
return state;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Button/useButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ButtonSlots, ButtonState } from './Button.types';\n\nexport const buttonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-Button',\n icon: 'fui-Button__icon',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useButtonStyles_unstable = (state: ButtonState): ButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;\n\n state.root.className = [\n buttonClassNames.root,\n\n // Appearance\n appearance && `${buttonClassNames.root}--${appearance}`,\n\n // Size\n `${buttonClassNames.root}--${size}`,\n\n // Shape\n `${buttonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${buttonClassNames.root}--disabled`,\n disabledFocusable && `${buttonClassNames.root}--disabledFocusable`,\n\n // Icon styles\n icon && iconPosition === 'before' && `${buttonClassNames.root}--iconBefore`,\n icon && iconPosition === 'after' && `${buttonClassNames.root}--iconAfter`,\n iconOnly && `${buttonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [buttonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n return state;\n};\n"],"names":["buttonClassNames","root","icon","useButtonStyles_unstable","state","appearance","disabled","disabledFocusable","iconOnly","iconPosition","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,mBAAgD;IAC3DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,2BAA2B,CAACC;IACvC;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEL,IAAI,EAAEM,QAAQ,EAAEC,YAAY,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGP;IAE/FA,MAAMH,IAAI,CAACW,SAAS,GAAG;QACrBZ,iBAAiBC,IAAI;QAErB,aAAa;QACbI,cAAc,GAAGL,iBAAiBC,IAAI,CAAC,EAAE,EAAEI,YAAY;QAEvD,OAAO;QACP,GAAGL,iBAAiBC,IAAI,CAAC,EAAE,EAAEU,MAAM;QAEnC,QAAQ;QACR,GAAGX,iBAAiBC,IAAI,CAAC,EAAE,EAAES,OAAO;QAEpC,kBAAkB;QAClBJ,YAAY,GAAGN,iBAAiBC,IAAI,CAAC,UAAU,CAAC;QAChDM,qBAAqB,GAAGP,iBAAiBC,IAAI,CAAC,mBAAmB,CAAC;QAElE,cAAc;QACdC,QAAQO,iBAAiB,YAAY,GAAGT,iBAAiBC,IAAI,CAAC,YAAY,CAAC;QAC3EC,QAAQO,iBAAiB,WAAW,GAAGT,iBAAiBC,IAAI,CAAC,WAAW,CAAC;QACzEO,YAAY,GAAGR,iBAAiBC,IAAI,CAAC,UAAU,CAAC;QAEhD,2BAA2B;QAC3BG,MAAMH,IAAI,CAACW,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACU,SAAS,GAAG;YAACZ,iBAAiBE,IAAI;YAAEE,MAAMF,IAAI,CAACU,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAC5F;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const buttonClassNames = {
|
|
3
|
-
root: 'fui-Button',
|
|
4
|
-
icon: 'fui-Button__icon'
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Attaches only semantic slot class names and state modifiers
|
|
8
|
-
*/ export const useButtonStyles_unstable = (state)=>{
|
|
9
|
-
'use no memo';
|
|
10
|
-
const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;
|
|
11
|
-
state.root.className = [
|
|
12
|
-
buttonClassNames.root,
|
|
13
|
-
// Appearance
|
|
14
|
-
appearance && `${buttonClassNames.root}--${appearance}`,
|
|
15
|
-
// Size
|
|
16
|
-
`${buttonClassNames.root}--${size}`,
|
|
17
|
-
// Shape
|
|
18
|
-
`${buttonClassNames.root}--${shape}`,
|
|
19
|
-
// Disabled styles
|
|
20
|
-
disabled && `${buttonClassNames.root}--disabled`,
|
|
21
|
-
disabledFocusable && `${buttonClassNames.root}--disabledFocusable`,
|
|
22
|
-
// Icon styles
|
|
23
|
-
icon && iconPosition === 'before' && `${buttonClassNames.root}--iconBefore`,
|
|
24
|
-
icon && iconPosition === 'after' && `${buttonClassNames.root}--iconAfter`,
|
|
25
|
-
iconOnly && `${buttonClassNames.root}--iconOnly`,
|
|
26
|
-
// User provided class name
|
|
27
|
-
state.root.className
|
|
28
|
-
].filter(Boolean).join(' ');
|
|
29
|
-
if (state.icon) {
|
|
30
|
-
state.icon.className = [
|
|
31
|
-
buttonClassNames.icon,
|
|
32
|
-
state.icon.className
|
|
33
|
-
].filter(Boolean).join(' ');
|
|
34
|
-
}
|
|
35
|
-
return state;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Button/useButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ButtonSlots, ButtonState } from './Button.types';\n\nexport const buttonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-Button',\n icon: 'fui-Button__icon',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useButtonStyles_unstable = (state: ButtonState): ButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;\n\n state.root.className = [\n buttonClassNames.root,\n\n // Appearance\n appearance && `${buttonClassNames.root}--${appearance}`,\n\n // Size\n `${buttonClassNames.root}--${size}`,\n\n // Shape\n `${buttonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${buttonClassNames.root}--disabled`,\n disabledFocusable && `${buttonClassNames.root}--disabledFocusable`,\n\n // Icon styles\n icon && iconPosition === 'before' && `${buttonClassNames.root}--iconBefore`,\n icon && iconPosition === 'after' && `${buttonClassNames.root}--iconAfter`,\n iconOnly && `${buttonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [buttonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n return state;\n};\n"],"names":["buttonClassNames","root","icon","useButtonStyles_unstable","state","appearance","disabled","disabledFocusable","iconOnly","iconPosition","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,mBAAgD;IAC3DC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,2BAA2B,CAACC;IACvC;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEL,IAAI,EAAEM,QAAQ,EAAEC,YAAY,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGP;IAE/FA,MAAMH,IAAI,CAACW,SAAS,GAAG;QACrBZ,iBAAiBC,IAAI;QAErB,aAAa;QACbI,cAAc,GAAGL,iBAAiBC,IAAI,CAAC,EAAE,EAAEI,YAAY;QAEvD,OAAO;QACP,GAAGL,iBAAiBC,IAAI,CAAC,EAAE,EAAEU,MAAM;QAEnC,QAAQ;QACR,GAAGX,iBAAiBC,IAAI,CAAC,EAAE,EAAES,OAAO;QAEpC,kBAAkB;QAClBJ,YAAY,GAAGN,iBAAiBC,IAAI,CAAC,UAAU,CAAC;QAChDM,qBAAqB,GAAGP,iBAAiBC,IAAI,CAAC,mBAAmB,CAAC;QAElE,cAAc;QACdC,QAAQO,iBAAiB,YAAY,GAAGT,iBAAiBC,IAAI,CAAC,YAAY,CAAC;QAC3EC,QAAQO,iBAAiB,WAAW,GAAGT,iBAAiBC,IAAI,CAAC,WAAW,CAAC;QACzEO,YAAY,GAAGR,iBAAiBC,IAAI,CAAC,UAAU,CAAC;QAEhD,2BAA2B;QAC3BG,MAAMH,IAAI,CAACW,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACU,SAAS,GAAG;YAACZ,iBAAiBE,IAAI;YAAEE,MAAMF,IAAI,CAACU,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAC5F;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
// Re-export the same slot class names mapping used by the griffel styles file
|
|
3
|
-
export const compoundButtonClassNames = {
|
|
4
|
-
root: 'fui-CompoundButton',
|
|
5
|
-
icon: 'fui-CompoundButton__icon',
|
|
6
|
-
contentContainer: 'fui-CompoundButton__contentContainer',
|
|
7
|
-
secondaryContent: 'fui-CompoundButton__secondaryContent'
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Attaches only semantic slot class names and state modifiers
|
|
11
|
-
*/ export const useCompoundButtonStyles_unstable = (state)=>{
|
|
12
|
-
'use no memo';
|
|
13
|
-
const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;
|
|
14
|
-
state.root.className = [
|
|
15
|
-
compoundButtonClassNames.root,
|
|
16
|
-
// Appearance
|
|
17
|
-
appearance && `${compoundButtonClassNames.root}--${appearance}`,
|
|
18
|
-
// Size
|
|
19
|
-
size && `${compoundButtonClassNames.root}--${size}`,
|
|
20
|
-
// Shape
|
|
21
|
-
shape && `${compoundButtonClassNames.root}--${shape}`,
|
|
22
|
-
// Disabled styles
|
|
23
|
-
disabled && `${compoundButtonClassNames.root}--disabled`,
|
|
24
|
-
disabledFocusable && `${compoundButtonClassNames.root}--disabledFocusable`,
|
|
25
|
-
// Icon styles
|
|
26
|
-
icon && iconPosition === 'before' && `${compoundButtonClassNames.root}--iconBefore`,
|
|
27
|
-
icon && iconPosition === 'after' && `${compoundButtonClassNames.root}--iconAfter`,
|
|
28
|
-
icon && iconOnly && `${compoundButtonClassNames.root}--iconOnly`,
|
|
29
|
-
// User provided class name
|
|
30
|
-
state.root.className
|
|
31
|
-
].filter(Boolean).join(' ');
|
|
32
|
-
if (state.icon) {
|
|
33
|
-
state.icon.className = [
|
|
34
|
-
compoundButtonClassNames.icon,
|
|
35
|
-
state.icon.className
|
|
36
|
-
].filter(Boolean).join(' ');
|
|
37
|
-
}
|
|
38
|
-
state.contentContainer.className = [
|
|
39
|
-
compoundButtonClassNames.contentContainer,
|
|
40
|
-
state.contentContainer.className
|
|
41
|
-
].filter(Boolean).join(' ');
|
|
42
|
-
if (state.secondaryContent) {
|
|
43
|
-
state.secondaryContent.className = [
|
|
44
|
-
compoundButtonClassNames.secondaryContent,
|
|
45
|
-
state.secondaryContent.className
|
|
46
|
-
].filter(Boolean).join(' ');
|
|
47
|
-
}
|
|
48
|
-
return state;
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/useCompoundButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';\n\n// Re-export the same slot class names mapping used by the griffel styles file\nexport const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots> = {\n root: 'fui-CompoundButton',\n icon: 'fui-CompoundButton__icon',\n contentContainer: 'fui-CompoundButton__contentContainer',\n secondaryContent: 'fui-CompoundButton__secondaryContent',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useCompoundButtonStyles_unstable = (state: CompoundButtonState): CompoundButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;\n\n state.root.className = [\n compoundButtonClassNames.root,\n\n // Appearance\n appearance && `${compoundButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${compoundButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${compoundButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${compoundButtonClassNames.root}--disabled`,\n disabledFocusable && `${compoundButtonClassNames.root}--disabledFocusable`,\n\n // Icon styles\n icon && iconPosition === 'before' && `${compoundButtonClassNames.root}--iconBefore`,\n icon && iconPosition === 'after' && `${compoundButtonClassNames.root}--iconAfter`,\n icon && iconOnly && `${compoundButtonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [compoundButtonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n state.contentContainer.className = [compoundButtonClassNames.contentContainer, state.contentContainer.className]\n .filter(Boolean)\n .join(' ');\n\n if (state.secondaryContent) {\n state.secondaryContent.className = [compoundButtonClassNames.secondaryContent, state.secondaryContent.className]\n .filter(Boolean)\n .join(' ');\n }\n\n return state;\n};\n"],"names":["compoundButtonClassNames","root","icon","contentContainer","secondaryContent","useCompoundButtonStyles_unstable","state","appearance","disabled","disabledFocusable","iconOnly","iconPosition","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,8EAA8E;AAC9E,OAAO,MAAMA,2BAAgE;IAC3EC,MAAM;IACNC,MAAM;IACNC,kBAAkB;IAClBC,kBAAkB;AACpB,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEP,IAAI,EAAEQ,QAAQ,EAAEC,YAAY,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGP;IAE/FA,MAAML,IAAI,CAACa,SAAS,GAAG;QACrBd,yBAAyBC,IAAI;QAE7B,aAAa;QACbM,cAAc,GAAGP,yBAAyBC,IAAI,CAAC,EAAE,EAAEM,YAAY;QAE/D,OAAO;QACPM,QAAQ,GAAGb,yBAAyBC,IAAI,CAAC,EAAE,EAAEY,MAAM;QAEnD,QAAQ;QACRD,SAAS,GAAGZ,yBAAyBC,IAAI,CAAC,EAAE,EAAEW,OAAO;QAErD,kBAAkB;QAClBJ,YAAY,GAAGR,yBAAyBC,IAAI,CAAC,UAAU,CAAC;QACxDQ,qBAAqB,GAAGT,yBAAyBC,IAAI,CAAC,mBAAmB,CAAC;QAE1E,cAAc;QACdC,QAAQS,iBAAiB,YAAY,GAAGX,yBAAyBC,IAAI,CAAC,YAAY,CAAC;QACnFC,QAAQS,iBAAiB,WAAW,GAAGX,yBAAyBC,IAAI,CAAC,WAAW,CAAC;QACjFC,QAAQQ,YAAY,GAAGV,yBAAyBC,IAAI,CAAC,UAAU,CAAC;QAEhE,2BAA2B;QAC3BK,MAAML,IAAI,CAACa,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMJ,IAAI,EAAE;QACdI,MAAMJ,IAAI,CAACY,SAAS,GAAG;YAACd,yBAAyBE,IAAI;YAAEI,MAAMJ,IAAI,CAACY,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IACpG;IAEAX,MAAMH,gBAAgB,CAACW,SAAS,GAAG;QAACd,yBAAyBG,gBAAgB;QAAEG,MAAMH,gBAAgB,CAACW,SAAS;KAAC,CAC7GC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMF,gBAAgB,EAAE;QAC1BE,MAAMF,gBAAgB,CAACU,SAAS,GAAG;YAACd,yBAAyBI,gBAAgB;YAAEE,MAAMF,gBAAgB,CAACU,SAAS;SAAC,CAC7GC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
// Re-export the same slot class names mapping used by the griffel styles file
|
|
3
|
-
export const compoundButtonClassNames = {
|
|
4
|
-
root: 'fui-CompoundButton',
|
|
5
|
-
icon: 'fui-CompoundButton__icon',
|
|
6
|
-
contentContainer: 'fui-CompoundButton__contentContainer',
|
|
7
|
-
secondaryContent: 'fui-CompoundButton__secondaryContent'
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Attaches only semantic slot class names and state modifiers
|
|
11
|
-
*/ export const useCompoundButtonStyles_unstable = (state)=>{
|
|
12
|
-
'use no memo';
|
|
13
|
-
const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;
|
|
14
|
-
state.root.className = [
|
|
15
|
-
compoundButtonClassNames.root,
|
|
16
|
-
// Appearance
|
|
17
|
-
appearance && `${compoundButtonClassNames.root}--${appearance}`,
|
|
18
|
-
// Size
|
|
19
|
-
size && `${compoundButtonClassNames.root}--${size}`,
|
|
20
|
-
// Shape
|
|
21
|
-
shape && `${compoundButtonClassNames.root}--${shape}`,
|
|
22
|
-
// Disabled styles
|
|
23
|
-
disabled && `${compoundButtonClassNames.root}--disabled`,
|
|
24
|
-
disabledFocusable && `${compoundButtonClassNames.root}--disabledFocusable`,
|
|
25
|
-
// Icon styles
|
|
26
|
-
icon && iconPosition === 'before' && `${compoundButtonClassNames.root}--iconBefore`,
|
|
27
|
-
icon && iconPosition === 'after' && `${compoundButtonClassNames.root}--iconAfter`,
|
|
28
|
-
icon && iconOnly && `${compoundButtonClassNames.root}--iconOnly`,
|
|
29
|
-
// User provided class name
|
|
30
|
-
state.root.className
|
|
31
|
-
].filter(Boolean).join(' ');
|
|
32
|
-
if (state.icon) {
|
|
33
|
-
state.icon.className = [
|
|
34
|
-
compoundButtonClassNames.icon,
|
|
35
|
-
state.icon.className
|
|
36
|
-
].filter(Boolean).join(' ');
|
|
37
|
-
}
|
|
38
|
-
state.contentContainer.className = [
|
|
39
|
-
compoundButtonClassNames.contentContainer,
|
|
40
|
-
state.contentContainer.className
|
|
41
|
-
].filter(Boolean).join(' ');
|
|
42
|
-
if (state.secondaryContent) {
|
|
43
|
-
state.secondaryContent.className = [
|
|
44
|
-
compoundButtonClassNames.secondaryContent,
|
|
45
|
-
state.secondaryContent.className
|
|
46
|
-
].filter(Boolean).join(' ');
|
|
47
|
-
}
|
|
48
|
-
return state;
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/useCompoundButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';\n\n// Re-export the same slot class names mapping used by the griffel styles file\nexport const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots> = {\n root: 'fui-CompoundButton',\n icon: 'fui-CompoundButton__icon',\n contentContainer: 'fui-CompoundButton__contentContainer',\n secondaryContent: 'fui-CompoundButton__secondaryContent',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useCompoundButtonStyles_unstable = (state: CompoundButtonState): CompoundButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, icon, iconOnly, iconPosition, shape, size } = state;\n\n state.root.className = [\n compoundButtonClassNames.root,\n\n // Appearance\n appearance && `${compoundButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${compoundButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${compoundButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${compoundButtonClassNames.root}--disabled`,\n disabledFocusable && `${compoundButtonClassNames.root}--disabledFocusable`,\n\n // Icon styles\n icon && iconPosition === 'before' && `${compoundButtonClassNames.root}--iconBefore`,\n icon && iconPosition === 'after' && `${compoundButtonClassNames.root}--iconAfter`,\n icon && iconOnly && `${compoundButtonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [compoundButtonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n state.contentContainer.className = [compoundButtonClassNames.contentContainer, state.contentContainer.className]\n .filter(Boolean)\n .join(' ');\n\n if (state.secondaryContent) {\n state.secondaryContent.className = [compoundButtonClassNames.secondaryContent, state.secondaryContent.className]\n .filter(Boolean)\n .join(' ');\n }\n\n return state;\n};\n"],"names":["compoundButtonClassNames","root","icon","contentContainer","secondaryContent","useCompoundButtonStyles_unstable","state","appearance","disabled","disabledFocusable","iconOnly","iconPosition","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,8EAA8E;AAC9E,OAAO,MAAMA,2BAAgE;IAC3EC,MAAM;IACNC,MAAM;IACNC,kBAAkB;IAClBC,kBAAkB;AACpB,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEP,IAAI,EAAEQ,QAAQ,EAAEC,YAAY,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGP;IAE/FA,MAAML,IAAI,CAACa,SAAS,GAAG;QACrBd,yBAAyBC,IAAI;QAE7B,aAAa;QACbM,cAAc,GAAGP,yBAAyBC,IAAI,CAAC,EAAE,EAAEM,YAAY;QAE/D,OAAO;QACPM,QAAQ,GAAGb,yBAAyBC,IAAI,CAAC,EAAE,EAAEY,MAAM;QAEnD,QAAQ;QACRD,SAAS,GAAGZ,yBAAyBC,IAAI,CAAC,EAAE,EAAEW,OAAO;QAErD,kBAAkB;QAClBJ,YAAY,GAAGR,yBAAyBC,IAAI,CAAC,UAAU,CAAC;QACxDQ,qBAAqB,GAAGT,yBAAyBC,IAAI,CAAC,mBAAmB,CAAC;QAE1E,cAAc;QACdC,QAAQS,iBAAiB,YAAY,GAAGX,yBAAyBC,IAAI,CAAC,YAAY,CAAC;QACnFC,QAAQS,iBAAiB,WAAW,GAAGX,yBAAyBC,IAAI,CAAC,WAAW,CAAC;QACjFC,QAAQQ,YAAY,GAAGV,yBAAyBC,IAAI,CAAC,UAAU,CAAC;QAEhE,2BAA2B;QAC3BK,MAAML,IAAI,CAACa,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMJ,IAAI,EAAE;QACdI,MAAMJ,IAAI,CAACY,SAAS,GAAG;YAACd,yBAAyBE,IAAI;YAAEI,MAAMJ,IAAI,CAACY,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IACpG;IAEAX,MAAMH,gBAAgB,CAACW,SAAS,GAAG;QAACd,yBAAyBG,gBAAgB;QAAEG,MAAMH,gBAAgB,CAACW,SAAS;KAAC,CAC7GC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMF,gBAAgB,EAAE;QAC1BE,MAAMF,gBAAgB,CAACU,SAAS,GAAG;YAACd,yBAAyBI,gBAAgB;YAAEE,MAAMF,gBAAgB,CAACU,SAAS;SAAC,CAC7GC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const menuButtonClassNames = {
|
|
3
|
-
root: 'fui-MenuButton',
|
|
4
|
-
icon: 'fui-MenuButton__icon',
|
|
5
|
-
menuIcon: 'fui-MenuButton__menuIcon'
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Attaches only semantic slot class names and state modifiers
|
|
9
|
-
*/ export const useMenuButtonStyles_unstable = (state)=>{
|
|
10
|
-
'use no memo';
|
|
11
|
-
const { appearance, disabled, disabledFocusable, shape, size, icon, iconOnly } = state;
|
|
12
|
-
const expanded = !!state.root['aria-expanded'];
|
|
13
|
-
state.root.className = [
|
|
14
|
-
menuButtonClassNames.root,
|
|
15
|
-
// Appearance
|
|
16
|
-
appearance && `${menuButtonClassNames.root}--${appearance}`,
|
|
17
|
-
// Size
|
|
18
|
-
size && `${menuButtonClassNames.root}--${size}`,
|
|
19
|
-
// Shape
|
|
20
|
-
shape && `${menuButtonClassNames.root}--${shape}`,
|
|
21
|
-
// Disabled styles
|
|
22
|
-
disabled && `${menuButtonClassNames.root}--disabled`,
|
|
23
|
-
disabledFocusable && `${menuButtonClassNames.root}--disabledFocusable`,
|
|
24
|
-
// Expanded
|
|
25
|
-
expanded && `${menuButtonClassNames.root}--expanded`,
|
|
26
|
-
// Icons
|
|
27
|
-
icon && iconOnly && `${menuButtonClassNames.root}--iconOnly`,
|
|
28
|
-
// User provided class name
|
|
29
|
-
state.root.className
|
|
30
|
-
].filter(Boolean).join(' ');
|
|
31
|
-
if (state.icon) {
|
|
32
|
-
state.icon.className = [
|
|
33
|
-
menuButtonClassNames.icon,
|
|
34
|
-
state.icon.className
|
|
35
|
-
].filter(Boolean).join(' ');
|
|
36
|
-
}
|
|
37
|
-
if (state.menuIcon) {
|
|
38
|
-
state.menuIcon.className = [
|
|
39
|
-
menuButtonClassNames.menuIcon,
|
|
40
|
-
state.menuIcon.className
|
|
41
|
-
].filter(Boolean).join(' ');
|
|
42
|
-
}
|
|
43
|
-
return state;
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/MenuButton/useMenuButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MenuButtonSlots, MenuButtonState } from './MenuButton.types';\n\nexport const menuButtonClassNames: SlotClassNames<MenuButtonSlots> = {\n root: 'fui-MenuButton',\n icon: 'fui-MenuButton__icon',\n menuIcon: 'fui-MenuButton__menuIcon',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useMenuButtonStyles_unstable = (state: MenuButtonState): MenuButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, shape, size, icon, iconOnly } = state;\n const expanded = !!state.root['aria-expanded'];\n\n state.root.className = [\n menuButtonClassNames.root,\n\n // Appearance\n appearance && `${menuButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${menuButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${menuButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${menuButtonClassNames.root}--disabled`,\n disabledFocusable && `${menuButtonClassNames.root}--disabledFocusable`,\n\n // Expanded\n expanded && `${menuButtonClassNames.root}--expanded`,\n\n // Icons\n icon && iconOnly && `${menuButtonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [menuButtonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n if (state.menuIcon) {\n state.menuIcon.className = [menuButtonClassNames.menuIcon, state.menuIcon.className].filter(Boolean).join(' ');\n }\n\n return state;\n};\n"],"names":["menuButtonClassNames","root","icon","menuIcon","useMenuButtonStyles_unstable","state","appearance","disabled","disabledFocusable","shape","size","iconOnly","expanded","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,uBAAwD;IACnEC,MAAM;IACNC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,+BAA+B,CAACC;IAC3C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,KAAK,EAAEC,IAAI,EAAER,IAAI,EAAES,QAAQ,EAAE,GAAGN;IACjF,MAAMO,WAAW,CAAC,CAACP,MAAMJ,IAAI,CAAC,gBAAgB;IAE9CI,MAAMJ,IAAI,CAACY,SAAS,GAAG;QACrBb,qBAAqBC,IAAI;QAEzB,aAAa;QACbK,cAAc,GAAGN,qBAAqBC,IAAI,CAAC,EAAE,EAAEK,YAAY;QAE3D,OAAO;QACPI,QAAQ,GAAGV,qBAAqBC,IAAI,CAAC,EAAE,EAAES,MAAM;QAE/C,QAAQ;QACRD,SAAS,GAAGT,qBAAqBC,IAAI,CAAC,EAAE,EAAEQ,OAAO;QAEjD,kBAAkB;QAClBF,YAAY,GAAGP,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QACpDO,qBAAqB,GAAGR,qBAAqBC,IAAI,CAAC,mBAAmB,CAAC;QAEtE,WAAW;QACXW,YAAY,GAAGZ,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QAEpD,QAAQ;QACRC,QAAQS,YAAY,GAAGX,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QAE5D,2BAA2B;QAC3BI,MAAMJ,IAAI,CAACY,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMH,IAAI,EAAE;QACdG,MAAMH,IAAI,CAACW,SAAS,GAAG;YAACb,qBAAqBE,IAAI;YAAEG,MAAMH,IAAI,CAACW,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAChG;IAEA,IAAIX,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACU,SAAS,GAAG;YAACb,qBAAqBG,QAAQ;YAAEE,MAAMF,QAAQ,CAACU,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAC5G;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const menuButtonClassNames = {
|
|
3
|
-
root: 'fui-MenuButton',
|
|
4
|
-
icon: 'fui-MenuButton__icon',
|
|
5
|
-
menuIcon: 'fui-MenuButton__menuIcon'
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Attaches only semantic slot class names and state modifiers
|
|
9
|
-
*/ export const useMenuButtonStyles_unstable = (state)=>{
|
|
10
|
-
'use no memo';
|
|
11
|
-
const { appearance, disabled, disabledFocusable, shape, size, icon, iconOnly } = state;
|
|
12
|
-
const expanded = !!state.root['aria-expanded'];
|
|
13
|
-
state.root.className = [
|
|
14
|
-
menuButtonClassNames.root,
|
|
15
|
-
// Appearance
|
|
16
|
-
appearance && `${menuButtonClassNames.root}--${appearance}`,
|
|
17
|
-
// Size
|
|
18
|
-
size && `${menuButtonClassNames.root}--${size}`,
|
|
19
|
-
// Shape
|
|
20
|
-
shape && `${menuButtonClassNames.root}--${shape}`,
|
|
21
|
-
// Disabled styles
|
|
22
|
-
disabled && `${menuButtonClassNames.root}--disabled`,
|
|
23
|
-
disabledFocusable && `${menuButtonClassNames.root}--disabledFocusable`,
|
|
24
|
-
// Expanded
|
|
25
|
-
expanded && `${menuButtonClassNames.root}--expanded`,
|
|
26
|
-
// Icons
|
|
27
|
-
icon && iconOnly && `${menuButtonClassNames.root}--iconOnly`,
|
|
28
|
-
// User provided class name
|
|
29
|
-
state.root.className
|
|
30
|
-
].filter(Boolean).join(' ');
|
|
31
|
-
if (state.icon) {
|
|
32
|
-
state.icon.className = [
|
|
33
|
-
menuButtonClassNames.icon,
|
|
34
|
-
state.icon.className
|
|
35
|
-
].filter(Boolean).join(' ');
|
|
36
|
-
}
|
|
37
|
-
if (state.menuIcon) {
|
|
38
|
-
state.menuIcon.className = [
|
|
39
|
-
menuButtonClassNames.menuIcon,
|
|
40
|
-
state.menuIcon.className
|
|
41
|
-
].filter(Boolean).join(' ');
|
|
42
|
-
}
|
|
43
|
-
return state;
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/MenuButton/useMenuButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { MenuButtonSlots, MenuButtonState } from './MenuButton.types';\n\nexport const menuButtonClassNames: SlotClassNames<MenuButtonSlots> = {\n root: 'fui-MenuButton',\n icon: 'fui-MenuButton__icon',\n menuIcon: 'fui-MenuButton__menuIcon',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useMenuButtonStyles_unstable = (state: MenuButtonState): MenuButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, shape, size, icon, iconOnly } = state;\n const expanded = !!state.root['aria-expanded'];\n\n state.root.className = [\n menuButtonClassNames.root,\n\n // Appearance\n appearance && `${menuButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${menuButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${menuButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${menuButtonClassNames.root}--disabled`,\n disabledFocusable && `${menuButtonClassNames.root}--disabledFocusable`,\n\n // Expanded\n expanded && `${menuButtonClassNames.root}--expanded`,\n\n // Icons\n icon && iconOnly && `${menuButtonClassNames.root}--iconOnly`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [menuButtonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n if (state.menuIcon) {\n state.menuIcon.className = [menuButtonClassNames.menuIcon, state.menuIcon.className].filter(Boolean).join(' ');\n }\n\n return state;\n};\n"],"names":["menuButtonClassNames","root","icon","menuIcon","useMenuButtonStyles_unstable","state","appearance","disabled","disabledFocusable","shape","size","iconOnly","expanded","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,uBAAwD;IACnEC,MAAM;IACNC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,+BAA+B,CAACC;IAC3C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,KAAK,EAAEC,IAAI,EAAER,IAAI,EAAES,QAAQ,EAAE,GAAGN;IACjF,MAAMO,WAAW,CAAC,CAACP,MAAMJ,IAAI,CAAC,gBAAgB;IAE9CI,MAAMJ,IAAI,CAACY,SAAS,GAAG;QACrBb,qBAAqBC,IAAI;QAEzB,aAAa;QACbK,cAAc,GAAGN,qBAAqBC,IAAI,CAAC,EAAE,EAAEK,YAAY;QAE3D,OAAO;QACPI,QAAQ,GAAGV,qBAAqBC,IAAI,CAAC,EAAE,EAAES,MAAM;QAE/C,QAAQ;QACRD,SAAS,GAAGT,qBAAqBC,IAAI,CAAC,EAAE,EAAEQ,OAAO;QAEjD,kBAAkB;QAClBF,YAAY,GAAGP,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QACpDO,qBAAqB,GAAGR,qBAAqBC,IAAI,CAAC,mBAAmB,CAAC;QAEtE,WAAW;QACXW,YAAY,GAAGZ,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QAEpD,QAAQ;QACRC,QAAQS,YAAY,GAAGX,qBAAqBC,IAAI,CAAC,UAAU,CAAC;QAE5D,2BAA2B;QAC3BI,MAAMJ,IAAI,CAACY,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMH,IAAI,EAAE;QACdG,MAAMH,IAAI,CAACW,SAAS,GAAG;YAACb,qBAAqBE,IAAI;YAAEG,MAAMH,IAAI,CAACW,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAChG;IAEA,IAAIX,MAAMF,QAAQ,EAAE;QAClBE,MAAMF,QAAQ,CAACU,SAAS,GAAG;YAACb,qBAAqBG,QAAQ;YAAEE,MAAMF,QAAQ,CAACU,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAC5G;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const splitButtonClassNames = {
|
|
3
|
-
root: 'fui-SplitButton',
|
|
4
|
-
menuButton: 'fui-SplitButton__menuButton',
|
|
5
|
-
primaryActionButton: 'fui-SplitButton__primaryActionButton'
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Attaches only semantic slot class names and state modifiers
|
|
9
|
-
*/ export const useSplitButtonStyles_unstable = (state)=>{
|
|
10
|
-
'use no memo';
|
|
11
|
-
const { appearance, disabled, disabledFocusable, shape, size } = state;
|
|
12
|
-
state.root.className = [
|
|
13
|
-
splitButtonClassNames.root,
|
|
14
|
-
// Appearance
|
|
15
|
-
appearance && `${splitButtonClassNames.root}--${appearance}`,
|
|
16
|
-
// Size
|
|
17
|
-
size && `${splitButtonClassNames.root}--${size}`,
|
|
18
|
-
// Shape
|
|
19
|
-
shape && `${splitButtonClassNames.root}--${shape}`,
|
|
20
|
-
// Disabled styles
|
|
21
|
-
disabled && `${splitButtonClassNames.root}--disabled`,
|
|
22
|
-
disabledFocusable && !disabled && `${splitButtonClassNames.root}--disabledFocusable`,
|
|
23
|
-
// User provided class name
|
|
24
|
-
state.root.className
|
|
25
|
-
].filter(Boolean).join(' ');
|
|
26
|
-
if (state.primaryActionButton) {
|
|
27
|
-
state.primaryActionButton.className = [
|
|
28
|
-
splitButtonClassNames.primaryActionButton,
|
|
29
|
-
state.primaryActionButton.className
|
|
30
|
-
].filter(Boolean).join(' ');
|
|
31
|
-
}
|
|
32
|
-
if (state.menuButton) {
|
|
33
|
-
state.menuButton.className = [
|
|
34
|
-
splitButtonClassNames.menuButton,
|
|
35
|
-
state.menuButton.className
|
|
36
|
-
].filter(Boolean).join(' ');
|
|
37
|
-
}
|
|
38
|
-
return state;
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/useSplitButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SplitButtonSlots, SplitButtonState } from './SplitButton.types';\n\nexport const splitButtonClassNames: SlotClassNames<SplitButtonSlots> = {\n root: 'fui-SplitButton',\n menuButton: 'fui-SplitButton__menuButton',\n primaryActionButton: 'fui-SplitButton__primaryActionButton',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useSplitButtonStyles_unstable = (state: SplitButtonState): SplitButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, shape, size } = state;\n\n state.root.className = [\n splitButtonClassNames.root,\n\n // Appearance\n appearance && `${splitButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${splitButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${splitButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${splitButtonClassNames.root}--disabled`,\n disabledFocusable && !disabled && `${splitButtonClassNames.root}--disabledFocusable`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.primaryActionButton) {\n state.primaryActionButton.className = [\n splitButtonClassNames.primaryActionButton,\n state.primaryActionButton.className,\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n if (state.menuButton) {\n state.menuButton.className = [splitButtonClassNames.menuButton, state.menuButton.className]\n .filter(Boolean)\n .join(' ');\n }\n\n return state;\n};\n"],"names":["splitButtonClassNames","root","menuButton","primaryActionButton","useSplitButtonStyles_unstable","state","appearance","disabled","disabledFocusable","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,wBAA0D;IACrEC,MAAM;IACNC,YAAY;IACZC,qBAAqB;AACvB,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC;IAC5C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGL;IAEjEA,MAAMJ,IAAI,CAACU,SAAS,GAAG;QACrBX,sBAAsBC,IAAI;QAE1B,aAAa;QACbK,cAAc,GAAGN,sBAAsBC,IAAI,CAAC,EAAE,EAAEK,YAAY;QAE5D,OAAO;QACPI,QAAQ,GAAGV,sBAAsBC,IAAI,CAAC,EAAE,EAAES,MAAM;QAEhD,QAAQ;QACRD,SAAS,GAAGT,sBAAsBC,IAAI,CAAC,EAAE,EAAEQ,OAAO;QAElD,kBAAkB;QAClBF,YAAY,GAAGP,sBAAsBC,IAAI,CAAC,UAAU,CAAC;QACrDO,qBAAqB,CAACD,YAAY,GAAGP,sBAAsBC,IAAI,CAAC,mBAAmB,CAAC;QAEpF,2BAA2B;QAC3BI,MAAMJ,IAAI,CAACU,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIT,MAAMF,mBAAmB,EAAE;QAC7BE,MAAMF,mBAAmB,CAACQ,SAAS,GAAG;YACpCX,sBAAsBG,mBAAmB;YACzCE,MAAMF,mBAAmB,CAACQ,SAAS;SACpC,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,IAAIT,MAAMH,UAAU,EAAE;QACpBG,MAAMH,UAAU,CAACS,SAAS,GAAG;YAACX,sBAAsBE,UAAU;YAAEG,MAAMH,UAAU,CAACS,SAAS;SAAC,CACxFC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,OAAOT;AACT,EAAE"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const splitButtonClassNames = {
|
|
3
|
-
root: 'fui-SplitButton',
|
|
4
|
-
menuButton: 'fui-SplitButton__menuButton',
|
|
5
|
-
primaryActionButton: 'fui-SplitButton__primaryActionButton'
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Attaches only semantic slot class names and state modifiers
|
|
9
|
-
*/ export const useSplitButtonStyles_unstable = (state)=>{
|
|
10
|
-
'use no memo';
|
|
11
|
-
const { appearance, disabled, disabledFocusable, shape, size } = state;
|
|
12
|
-
state.root.className = [
|
|
13
|
-
splitButtonClassNames.root,
|
|
14
|
-
// Appearance
|
|
15
|
-
appearance && `${splitButtonClassNames.root}--${appearance}`,
|
|
16
|
-
// Size
|
|
17
|
-
size && `${splitButtonClassNames.root}--${size}`,
|
|
18
|
-
// Shape
|
|
19
|
-
shape && `${splitButtonClassNames.root}--${shape}`,
|
|
20
|
-
// Disabled styles
|
|
21
|
-
disabled && `${splitButtonClassNames.root}--disabled`,
|
|
22
|
-
disabledFocusable && !disabled && `${splitButtonClassNames.root}--disabledFocusable`,
|
|
23
|
-
// User provided class name
|
|
24
|
-
state.root.className
|
|
25
|
-
].filter(Boolean).join(' ');
|
|
26
|
-
if (state.primaryActionButton) {
|
|
27
|
-
state.primaryActionButton.className = [
|
|
28
|
-
splitButtonClassNames.primaryActionButton,
|
|
29
|
-
state.primaryActionButton.className
|
|
30
|
-
].filter(Boolean).join(' ');
|
|
31
|
-
}
|
|
32
|
-
if (state.menuButton) {
|
|
33
|
-
state.menuButton.className = [
|
|
34
|
-
splitButtonClassNames.menuButton,
|
|
35
|
-
state.menuButton.className
|
|
36
|
-
].filter(Boolean).join(' ');
|
|
37
|
-
}
|
|
38
|
-
return state;
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/useSplitButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SplitButtonSlots, SplitButtonState } from './SplitButton.types';\n\nexport const splitButtonClassNames: SlotClassNames<SplitButtonSlots> = {\n root: 'fui-SplitButton',\n menuButton: 'fui-SplitButton__menuButton',\n primaryActionButton: 'fui-SplitButton__primaryActionButton',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useSplitButtonStyles_unstable = (state: SplitButtonState): SplitButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, shape, size } = state;\n\n state.root.className = [\n splitButtonClassNames.root,\n\n // Appearance\n appearance && `${splitButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${splitButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${splitButtonClassNames.root}--${shape}`,\n\n // Disabled styles\n disabled && `${splitButtonClassNames.root}--disabled`,\n disabledFocusable && !disabled && `${splitButtonClassNames.root}--disabledFocusable`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.primaryActionButton) {\n state.primaryActionButton.className = [\n splitButtonClassNames.primaryActionButton,\n state.primaryActionButton.className,\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n if (state.menuButton) {\n state.menuButton.className = [splitButtonClassNames.menuButton, state.menuButton.className]\n .filter(Boolean)\n .join(' ');\n }\n\n return state;\n};\n"],"names":["splitButtonClassNames","root","menuButton","primaryActionButton","useSplitButtonStyles_unstable","state","appearance","disabled","disabledFocusable","shape","size","className","filter","Boolean","join"],"mappings":"AAAA;AAKA,OAAO,MAAMA,wBAA0D;IACrEC,MAAM;IACNC,YAAY;IACZC,qBAAqB;AACvB,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC;IAC5C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGL;IAEjEA,MAAMJ,IAAI,CAACU,SAAS,GAAG;QACrBX,sBAAsBC,IAAI;QAE1B,aAAa;QACbK,cAAc,GAAGN,sBAAsBC,IAAI,CAAC,EAAE,EAAEK,YAAY;QAE5D,OAAO;QACPI,QAAQ,GAAGV,sBAAsBC,IAAI,CAAC,EAAE,EAAES,MAAM;QAEhD,QAAQ;QACRD,SAAS,GAAGT,sBAAsBC,IAAI,CAAC,EAAE,EAAEQ,OAAO;QAElD,kBAAkB;QAClBF,YAAY,GAAGP,sBAAsBC,IAAI,CAAC,UAAU,CAAC;QACrDO,qBAAqB,CAACD,YAAY,GAAGP,sBAAsBC,IAAI,CAAC,mBAAmB,CAAC;QAEpF,2BAA2B;QAC3BI,MAAMJ,IAAI,CAACU,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIT,MAAMF,mBAAmB,EAAE;QAC7BE,MAAMF,mBAAmB,CAACQ,SAAS,GAAG;YACpCX,sBAAsBG,mBAAmB;YACzCE,MAAMF,mBAAmB,CAACQ,SAAS;SACpC,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,IAAIT,MAAMH,UAAU,EAAE;QACpBG,MAAMH,UAAU,CAACS,SAAS,GAAG;YAACX,sBAAsBE,UAAU;YAAEG,MAAMH,UAAU,CAACS,SAAS;SAAC,CACxFC,MAAM,CAACC,SACPC,IAAI,CAAC;IACV;IAEA,OAAOT;AACT,EAAE"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const toggleButtonClassNames = {
|
|
3
|
-
root: 'fui-ToggleButton',
|
|
4
|
-
icon: 'fui-ToggleButton__icon'
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Attaches only semantic slot class names and state modifiers
|
|
8
|
-
*/ export const useToggleButtonStyles_unstable = (state)=>{
|
|
9
|
-
'use no memo';
|
|
10
|
-
const { appearance, disabled, disabledFocusable, shape, size, checked, iconOnly } = state;
|
|
11
|
-
state.root.className = [
|
|
12
|
-
toggleButtonClassNames.root,
|
|
13
|
-
// Appearance
|
|
14
|
-
appearance && `${toggleButtonClassNames.root}--${appearance}`,
|
|
15
|
-
// Size
|
|
16
|
-
size && `${toggleButtonClassNames.root}--${size}`,
|
|
17
|
-
// Shape
|
|
18
|
-
shape && `${toggleButtonClassNames.root}--${shape}`,
|
|
19
|
-
// Checked
|
|
20
|
-
checked && `${toggleButtonClassNames.root}--checked`,
|
|
21
|
-
// Icons
|
|
22
|
-
iconOnly && `${toggleButtonClassNames.root}--iconOnly`,
|
|
23
|
-
// Disabled
|
|
24
|
-
disabled && `${toggleButtonClassNames.root}--disabled`,
|
|
25
|
-
disabledFocusable && `${toggleButtonClassNames.root}--disabledFocusable`,
|
|
26
|
-
// User provided class name
|
|
27
|
-
state.root.className
|
|
28
|
-
].filter(Boolean).join(' ');
|
|
29
|
-
if (state.icon) {
|
|
30
|
-
state.icon.className = [
|
|
31
|
-
toggleButtonClassNames.icon,
|
|
32
|
-
state.icon.className
|
|
33
|
-
].filter(Boolean).join(' ');
|
|
34
|
-
}
|
|
35
|
-
return state;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ToggleButton/useToggleButtonStyles.styles.headless.ts"],"sourcesContent":["'use client';\n\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ButtonSlots } from '../Button/Button.types';\nimport type { ToggleButtonState } from './ToggleButton.types';\n\nexport const toggleButtonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-ToggleButton',\n icon: 'fui-ToggleButton__icon',\n};\n\n/**\n * Attaches only semantic slot class names and state modifiers\n */\nexport const useToggleButtonStyles_unstable = (state: ToggleButtonState): ToggleButtonState => {\n 'use no memo';\n\n const { appearance, disabled, disabledFocusable, shape, size, checked, iconOnly } = state;\n\n state.root.className = [\n toggleButtonClassNames.root,\n\n // Appearance\n appearance && `${toggleButtonClassNames.root}--${appearance}`,\n\n // Size\n size && `${toggleButtonClassNames.root}--${size}`,\n\n // Shape\n shape && `${toggleButtonClassNames.root}--${shape}`,\n\n // Checked\n checked && `${toggleButtonClassNames.root}--checked`,\n\n // Icons\n iconOnly && `${toggleButtonClassNames.root}--iconOnly`,\n\n // Disabled\n disabled && `${toggleButtonClassNames.root}--disabled`,\n disabledFocusable && `${toggleButtonClassNames.root}--disabledFocusable`,\n\n // User provided class name\n state.root.className,\n ]\n .filter(Boolean)\n .join(' ');\n\n if (state.icon) {\n state.icon.className = [toggleButtonClassNames.icon, state.icon.className].filter(Boolean).join(' ');\n }\n\n return state;\n};\n"],"names":["toggleButtonClassNames","root","icon","useToggleButtonStyles_unstable","state","appearance","disabled","disabledFocusable","shape","size","checked","iconOnly","className","filter","Boolean","join"],"mappings":"AAAA;AAMA,OAAO,MAAMA,yBAAsD;IACjEC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAACC;IAC7C;IAEA,MAAM,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,iBAAiB,EAAEC,KAAK,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ,EAAE,GAAGP;IAEpFA,MAAMH,IAAI,CAACW,SAAS,GAAG;QACrBZ,uBAAuBC,IAAI;QAE3B,aAAa;QACbI,cAAc,GAAGL,uBAAuBC,IAAI,CAAC,EAAE,EAAEI,YAAY;QAE7D,OAAO;QACPI,QAAQ,GAAGT,uBAAuBC,IAAI,CAAC,EAAE,EAAEQ,MAAM;QAEjD,QAAQ;QACRD,SAAS,GAAGR,uBAAuBC,IAAI,CAAC,EAAE,EAAEO,OAAO;QAEnD,UAAU;QACVE,WAAW,GAAGV,uBAAuBC,IAAI,CAAC,SAAS,CAAC;QAEpD,QAAQ;QACRU,YAAY,GAAGX,uBAAuBC,IAAI,CAAC,UAAU,CAAC;QAEtD,WAAW;QACXK,YAAY,GAAGN,uBAAuBC,IAAI,CAAC,UAAU,CAAC;QACtDM,qBAAqB,GAAGP,uBAAuBC,IAAI,CAAC,mBAAmB,CAAC;QAExE,2BAA2B;QAC3BG,MAAMH,IAAI,CAACW,SAAS;KACrB,CACEC,MAAM,CAACC,SACPC,IAAI,CAAC;IAER,IAAIX,MAAMF,IAAI,EAAE;QACdE,MAAMF,IAAI,CAACU,SAAS,GAAG;YAACZ,uBAAuBE,IAAI;YAAEE,MAAMF,IAAI,CAACU,SAAS;SAAC,CAACC,MAAM,CAACC,SAASC,IAAI,CAAC;IAClG;IAEA,OAAOX;AACT,EAAE"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
export const toggleButtonClassNames = {
|
|
3
|
-
root: 'fui-ToggleButton',
|
|
4
|
-
icon: 'fui-ToggleButton__icon'
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Attaches only semantic slot class names and state modifiers
|
|
8
|
-
*/ export const useToggleButtonStyles_unstable = (state)=>{
|
|
9
|
-
'use no memo';
|
|
10
|
-
const { appearance, disabled, disabledFocusable, shape, size, checked, iconOnly } = state;
|
|
11
|
-
state.root.className = [
|
|
12
|
-
toggleButtonClassNames.root,
|
|
13
|
-
// Appearance
|
|
14
|
-
appearance && `${toggleButtonClassNames.root}--${appearance}`,
|
|
15
|
-
// Size
|
|
16
|
-
size && `${toggleButtonClassNames.root}--${size}`,
|
|
17
|
-
// Shape
|
|
18
|
-
shape && `${toggleButtonClassNames.root}--${shape}`,
|
|
19
|
-
// Checked
|
|
20
|
-
checked && `${toggleButtonClassNames.root}--checked`,
|
|
21
|
-
// Icons
|
|
22
|
-
iconOnly && `${toggleButtonClassNames.root}--iconOnly`,
|
|
23
|
-
// Disabled
|
|
24
|
-
disabled && `${toggleButtonClassNames.root}--disabled`,
|
|
25
|
-
disabledFocusable && `${toggleButtonClassNames.root}--disabledFocusable`,
|
|
26
|
-
// User provided class name
|
|
27
|
-
state.root.className
|
|
28
|
-
].filter(Boolean).join(' ');
|
|
29
|
-
if (state.icon) {
|
|
30
|
-
state.icon.className = [
|
|
31
|
-
toggleButtonClassNames.icon,
|
|
32
|
-
state.icon.className
|
|
33
|
-
].filter(Boolean).join(' ');
|
|
34
|
-
}
|
|
35
|
-
return state;
|
|
36
|
-
};
|