@fluentui/react-button 9.74.3-experimental.esm.20260709-49ee7a20cf.0 → 9.74.7-experimental.cli-api.20261006-ccaa611d58.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 +33 -12
- package/dist/index.d.cts +54 -5
- package/dist/index.d.ts +54 -5
- package/dist/metadata/api/api-root.json +1 -0
- package/dist/metadata/index.json +1 -0
- package/lib/CompoundButton.js +1 -1
- package/lib/CompoundButton.js.map +1 -1
- package/lib/SplitButton.js +1 -1
- package/lib/SplitButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.js +1 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +21 -7
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.js +3 -1
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.js +1 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +58 -18
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/CompoundButton.cjs +3 -0
- package/lib-commonjs/CompoundButton.cjs.map +1 -1
- package/lib-commonjs/SplitButton.cjs +3 -0
- package/lib-commonjs/SplitButton.cjs.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.cjs.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.cjs +3 -0
- package/lib-commonjs/components/CompoundButton/index.cjs.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.cjs.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.cjs +25 -8
- package/lib-commonjs/components/CompoundButton/useCompoundButton.cjs.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.cjs.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.cjs +3 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.cjs.map +1 -1
- package/lib-commonjs/components/SplitButton/index.cjs +3 -0
- package/lib-commonjs/components/SplitButton/index.cjs.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.cjs.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.cjs +60 -21
- package/lib-commonjs/components/SplitButton/useSplitButton.cjs.map +1 -1
- package/lib-commonjs/index.cjs +6 -0
- package/lib-commonjs/index.cjs.map +1 -1
- package/package.json +19 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"capabilities":{"api":{"status":"supported"},"effectiveTypes":{"reasons":["checker-derived type strings do not carry semantic reference spans"],"status":"partial"},"guidance":{"reasons":["guidance is outside the declaration generator MVP"],"status":"unsupported"},"search":{"reasons":["search is outside the declaration generator MVP"],"status":"unsupported"}},"completeness":{"api":{"status":"complete"},"guidance":{"reasons":["not generated"],"status":"unavailable"},"search":{"reasons":["not generated"],"status":"unavailable"}},"declarationInputs":[{"conditions":["types","require"],"fingerprint":{"algorithm":"sha256","value":"f17668e565d617f95dced642168e63aa9771a905eb3c1148ffe5db66515e8395"},"path":"dist/index.d.cts"},{"conditions":["types","import"],"fingerprint":{"algorithm":"sha256","value":"f17668e565d617f95dced642168e63aa9771a905eb3c1148ffe5db66515e8395"},"path":"dist/index.d.ts"}],"diagnostics":[],"exports":[{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"Button","exportKind":"named","id":"route:root:Button:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:Button"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"Button","exportKind":"named","id":"route:root:Button:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:Button"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonBaseProps","exportKind":"named","id":"route:root:ButtonBaseProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonBaseProps","exportKind":"named","id":"route:root:ButtonBaseProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonBaseState","exportKind":"named","id":"route:root:ButtonBaseState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonBaseState","exportKind":"named","id":"route:root:ButtonBaseState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"buttonClassNames","exportKind":"named","id":"route:root:buttonClassNames:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:buttonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"buttonClassNames","exportKind":"named","id":"route:root:buttonClassNames:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:buttonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonContextProvider","exportKind":"named","id":"route:root:ButtonContextProvider:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonContextProvider"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonContextProvider","exportKind":"named","id":"route:root:ButtonContextProvider:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonContextProvider"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonContextValue","exportKind":"named","id":"route:root:ButtonContextValue:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonContextValue"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonContextValue","exportKind":"named","id":"route:root:ButtonContextValue:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonContextValue"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonProps","exportKind":"named","id":"route:root:ButtonProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonProps","exportKind":"named","id":"route:root:ButtonProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonSlots","exportKind":"named","id":"route:root:ButtonSlots:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonSlots","exportKind":"named","id":"route:root:ButtonSlots:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ButtonState","exportKind":"named","id":"route:root:ButtonState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ButtonState","exportKind":"named","id":"route:root:ButtonState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButton","exportKind":"named","id":"route:root:CompoundButton:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButton","exportKind":"named","id":"route:root:CompoundButton:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButtonBaseProps","exportKind":"named","id":"route:root:CompoundButtonBaseProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButtonBaseProps","exportKind":"named","id":"route:root:CompoundButtonBaseProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButtonBaseState","exportKind":"named","id":"route:root:CompoundButtonBaseState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButtonBaseState","exportKind":"named","id":"route:root:CompoundButtonBaseState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"compoundButtonClassNames","exportKind":"named","id":"route:root:compoundButtonClassNames:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:compoundButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"compoundButtonClassNames","exportKind":"named","id":"route:root:compoundButtonClassNames:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:compoundButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButtonProps","exportKind":"named","id":"route:root:CompoundButtonProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButtonProps","exportKind":"named","id":"route:root:CompoundButtonProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButtonSlots","exportKind":"named","id":"route:root:CompoundButtonSlots:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButtonSlots","exportKind":"named","id":"route:root:CompoundButtonSlots:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"CompoundButtonState","exportKind":"named","id":"route:root:CompoundButtonState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"CompoundButtonState","exportKind":"named","id":"route:root:CompoundButtonState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:CompoundButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButton","exportKind":"named","id":"route:root:MenuButton:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButton","exportKind":"named","id":"route:root:MenuButton:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButtonBaseProps","exportKind":"named","id":"route:root:MenuButtonBaseProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButtonBaseProps","exportKind":"named","id":"route:root:MenuButtonBaseProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButtonBaseState","exportKind":"named","id":"route:root:MenuButtonBaseState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButtonBaseState","exportKind":"named","id":"route:root:MenuButtonBaseState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"menuButtonClassNames","exportKind":"named","id":"route:root:menuButtonClassNames:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:menuButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"menuButtonClassNames","exportKind":"named","id":"route:root:menuButtonClassNames:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:menuButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButtonProps","exportKind":"named","id":"route:root:MenuButtonProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButtonProps","exportKind":"named","id":"route:root:MenuButtonProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButtonSlots","exportKind":"named","id":"route:root:MenuButtonSlots:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButtonSlots","exportKind":"named","id":"route:root:MenuButtonSlots:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"MenuButtonState","exportKind":"named","id":"route:root:MenuButtonState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"MenuButtonState","exportKind":"named","id":"route:root:MenuButtonState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:MenuButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"renderButton_unstable","exportKind":"named","id":"route:root:renderButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"renderButton_unstable","exportKind":"named","id":"route:root:renderButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"renderCompoundButton_unstable","exportKind":"named","id":"route:root:renderCompoundButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderCompoundButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"renderCompoundButton_unstable","exportKind":"named","id":"route:root:renderCompoundButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderCompoundButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"renderMenuButton_unstable","exportKind":"named","id":"route:root:renderMenuButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderMenuButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"renderMenuButton_unstable","exportKind":"named","id":"route:root:renderMenuButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderMenuButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"renderSplitButton_unstable","exportKind":"named","id":"route:root:renderSplitButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderSplitButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"renderSplitButton_unstable","exportKind":"named","id":"route:root:renderSplitButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderSplitButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"renderToggleButton_unstable","exportKind":"named","id":"route:root:renderToggleButton_unstable:value:types-import","importedName":"renderButton_unstable","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the renderX convention"],"facet":"render"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"renderToggleButton_unstable","exportKind":"named","id":"route:root:renderToggleButton_unstable:value:types-require","importedName":"renderButton_unstable","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:renderButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButton","exportKind":"named","id":"route:root:SplitButton:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButton","exportKind":"named","id":"route:root:SplitButton:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonBaseProps","exportKind":"named","id":"route:root:SplitButtonBaseProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonBaseProps","exportKind":"named","id":"route:root:SplitButtonBaseProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonBaseSlots","exportKind":"named","id":"route:root:SplitButtonBaseSlots:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonBaseSlots","exportKind":"named","id":"route:root:SplitButtonBaseSlots:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonBaseState","exportKind":"named","id":"route:root:SplitButtonBaseState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonBaseState","exportKind":"named","id":"route:root:SplitButtonBaseState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"splitButtonClassNames","exportKind":"named","id":"route:root:splitButtonClassNames:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:splitButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"splitButtonClassNames","exportKind":"named","id":"route:root:splitButtonClassNames:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:splitButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonProps","exportKind":"named","id":"route:root:SplitButtonProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonProps","exportKind":"named","id":"route:root:SplitButtonProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonSlots","exportKind":"named","id":"route:root:SplitButtonSlots:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Slots"],"facet":"slots"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonSlots","exportKind":"named","id":"route:root:SplitButtonSlots:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonSlots"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"SplitButtonState","exportKind":"named","id":"route:root:SplitButtonState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"SplitButtonState","exportKind":"named","id":"route:root:SplitButtonState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:SplitButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ToggleButton","exportKind":"named","id":"route:root:ToggleButton:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["PascalCase callable API returns JSX or uses ForwardRefComponent"],"facet":"component"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ToggleButton","exportKind":"named","id":"route:root:ToggleButton:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButton"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ToggleButtonBaseProps","exportKind":"named","id":"route:root:ToggleButtonBaseProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ToggleButtonBaseProps","exportKind":"named","id":"route:root:ToggleButtonBaseProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonBaseProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ToggleButtonBaseState","exportKind":"named","id":"route:root:ToggleButtonBaseState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ToggleButtonBaseState","exportKind":"named","id":"route:root:ToggleButtonBaseState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonBaseState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"toggleButtonClassNames","exportKind":"named","id":"route:root:toggleButtonClassNames:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:toggleButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"toggleButtonClassNames","exportKind":"named","id":"route:root:toggleButtonClassNames:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:toggleButtonClassNames"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ToggleButtonProps","exportKind":"named","id":"route:root:ToggleButtonProps:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with Props"],"facet":"props"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ToggleButtonProps","exportKind":"named","id":"route:root:ToggleButtonProps:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonProps"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ToggleButtonState","exportKind":"named","id":"route:root:ToggleButtonState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ToggleButtonState","exportKind":"named","id":"route:root:ToggleButtonState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ToggleButtonState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useButton_unstable","exportKind":"named","id":"route:root:useButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useButton_unstable","exportKind":"named","id":"route:root:useButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useButtonBase_unstable","exportKind":"named","id":"route:root:useButtonBase_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useButtonBase_unstable","exportKind":"named","id":"route:root:useButtonBase_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useButtonContext","exportKind":"named","id":"route:root:useButtonContext:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonContext"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name contains Context"],"facet":"context"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useButtonContext","exportKind":"named","id":"route:root:useButtonContext:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonContext"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useButtonStyles_unstable","exportKind":"named","id":"route:root:useButtonStyles_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useButtonStyles_unstable","exportKind":"named","id":"route:root:useButtonStyles_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useCompoundButton_unstable","exportKind":"named","id":"route:root:useCompoundButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useCompoundButton_unstable","exportKind":"named","id":"route:root:useCompoundButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useCompoundButtonBase_unstable","exportKind":"named","id":"route:root:useCompoundButtonBase_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useCompoundButtonBase_unstable","exportKind":"named","id":"route:root:useCompoundButtonBase_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useCompoundButtonStyles_unstable","exportKind":"named","id":"route:root:useCompoundButtonStyles_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useCompoundButtonStyles_unstable","exportKind":"named","id":"route:root:useCompoundButtonStyles_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useCompoundButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useMenuButton_unstable","exportKind":"named","id":"route:root:useMenuButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useMenuButton_unstable","exportKind":"named","id":"route:root:useMenuButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useMenuButtonBase_unstable","exportKind":"named","id":"route:root:useMenuButtonBase_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useMenuButtonBase_unstable","exportKind":"named","id":"route:root:useMenuButtonBase_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useMenuButtonStyles_unstable","exportKind":"named","id":"route:root:useMenuButtonStyles_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useMenuButtonStyles_unstable","exportKind":"named","id":"route:root:useMenuButtonStyles_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useMenuButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useSplitButton_unstable","exportKind":"named","id":"route:root:useSplitButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useSplitButton_unstable","exportKind":"named","id":"route:root:useSplitButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useSplitButtonBase_unstable","exportKind":"named","id":"route:root:useSplitButtonBase_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useSplitButtonBase_unstable","exportKind":"named","id":"route:root:useSplitButtonBase_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useSplitButtonStyles_unstable","exportKind":"named","id":"route:root:useSplitButtonStyles_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useSplitButtonStyles_unstable","exportKind":"named","id":"route:root:useSplitButtonStyles_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useSplitButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useToggleButton_unstable","exportKind":"named","id":"route:root:useToggleButton_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useToggleButton_unstable","exportKind":"named","id":"route:root:useToggleButton_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButton_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useToggleButtonBase_unstable","exportKind":"named","id":"route:root:useToggleButtonBase_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useToggleButtonBase_unstable","exportKind":"named","id":"route:root:useToggleButtonBase_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButtonBase_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useToggleButtonStyles_unstable","exportKind":"named","id":"route:root:useToggleButtonStyles_unstable:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name follows the useX hook convention"],"facet":"hook"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useToggleButtonStyles_unstable","exportKind":"named","id":"route:root:useToggleButtonStyles_unstable:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleButtonStyles_unstable"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"useToggleState","exportKind":"named","id":"route:root:useToggleState:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleState"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"useToggleState","exportKind":"named","id":"route:root:useToggleState:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:useToggleState"},"typeOnly":false}],"generator":{"name":"@fluentui/api-metadata","version":"0.0.0"},"kind":"package-index","package":{"name":"@fluentui/react-button","version":"9.74.7-experimental.cli-api.20261006-ccaa611d58.0"},"records":[{"fingerprint":{"algorithm":"sha256","value":"f19d345cf37f5499f675a7b83caa6778ee50ba837e443c456249b473ecdb83f4"},"id":"api:root","kind":"api","path":"api/api-root.json","symbols":["symbol:Button","symbol:ButtonBaseProps","symbol:ButtonBaseState","symbol:buttonClassNames","symbol:ButtonContextProvider","symbol:ButtonContextValue","symbol:ButtonProps","symbol:ButtonSize","symbol:ButtonSlots","symbol:ButtonState","symbol:CompoundButton","symbol:CompoundButtonBaseProps","symbol:CompoundButtonBaseState","symbol:compoundButtonClassNames","symbol:CompoundButtonProps","symbol:CompoundButtonSlots","symbol:CompoundButtonState","symbol:MenuButton","symbol:MenuButtonBaseProps","symbol:MenuButtonBaseState","symbol:menuButtonClassNames","symbol:MenuButtonProps","symbol:MenuButtonSlots","symbol:MenuButtonState","symbol:renderButton_unstable","symbol:renderCompoundButton_unstable","symbol:renderMenuButton_unstable","symbol:renderSplitButton_unstable","symbol:SplitButton","symbol:SplitButtonBaseProps","symbol:SplitButtonBaseSlots","symbol:SplitButtonBaseState","symbol:splitButtonClassNames","symbol:SplitButtonProps","symbol:SplitButtonSlots","symbol:SplitButtonState","symbol:ToggleButton","symbol:ToggleButtonBaseProps","symbol:ToggleButtonBaseState","symbol:toggleButtonClassNames","symbol:ToggleButtonProps","symbol:ToggleButtonState","symbol:useButton_unstable","symbol:useButtonBase_unstable","symbol:useButtonContext","symbol:useButtonStyles_unstable","symbol:useCompoundButton_unstable","symbol:useCompoundButtonBase_unstable","symbol:useCompoundButtonStyles_unstable","symbol:useMenuButton_unstable","symbol:useMenuButtonBase_unstable","symbol:useMenuButtonStyles_unstable","symbol:useSplitButton_unstable","symbol:useSplitButtonBase_unstable","symbol:useSplitButtonStyles_unstable","symbol:useToggleButton_unstable","symbol:useToggleButtonBase_unstable","symbol:useToggleButtonStyles_unstable","symbol:useToggleState"]}],"schema":{"major":1,"revision":5},"system":"fluent-v9"}
|
package/lib/CompoundButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CompoundButton, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable } from "./components/CompoundButton/index.js";
|
|
1
|
+
export { CompoundButton, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonBase_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable } from "./components/CompoundButton/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/CompoundButton.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["../src/CompoundButton.ts"],"sourcesContent":["export type {\n CompoundButtonBaseProps,\n CompoundButtonBaseState,\n CompoundButtonProps,\n CompoundButtonSlots,\n CompoundButtonState,\n} from './components/CompoundButton/index';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonBase_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './components/CompoundButton/index';\n"],"names":["CompoundButton","compoundButtonClassNames","renderCompoundButton_unstable","useCompoundButtonBase_unstable","useCompoundButtonStyles_unstable","useCompoundButton_unstable"],"mappings":"AAOA,SACEA,cAAc,EACdC,wBAAwB,EACxBC,6BAA6B,EAC7BC,8BAA8B,EAC9BC,gCAAgC,EAChCC,0BAA0B,QACrB,uCAAoC"}
|
package/lib/SplitButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SplitButton, renderSplitButton_unstable, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable } from "./components/SplitButton/index.js";
|
|
1
|
+
export { SplitButton, renderSplitButton_unstable, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable, useSplitButtonBase_unstable } from "./components/SplitButton/index.js";
|
package/lib/SplitButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/SplitButton.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["../src/SplitButton.ts"],"sourcesContent":["export type {\n SplitButtonBaseProps,\n SplitButtonBaseSlots,\n SplitButtonBaseState,\n SplitButtonProps,\n SplitButtonSlots,\n SplitButtonState,\n} from './components/SplitButton/index';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n useSplitButtonBase_unstable,\n} from './components/SplitButton/index';\n"],"names":["SplitButton","renderSplitButton_unstable","splitButtonClassNames","useSplitButtonStyles_unstable","useSplitButton_unstable","useSplitButtonBase_unstable"],"mappings":"AAQA,SACEA,WAAW,EACXC,0BAA0B,EAC1BC,qBAAqB,EACrBC,6BAA6B,EAC7BC,uBAAuB,EACvBC,2BAA2B,QACtB,oCAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/CompoundButton.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonProps, ButtonSlots, ButtonState } from '../Button/Button.types';\n\nexport type CompoundButtonSlots = ButtonSlots & {\n /**\n * Second line of text that describes the action this button takes.\n */\n secondaryContent?: Slot<'span'>;\n\n /**\n * Container that wraps the children and the secondaryContent slot.\n */\n contentContainer: NonNullable<Slot<'span'>>;\n};\n\nexport type
|
|
1
|
+
{"version":3,"sources":["../src/components/CompoundButton/CompoundButton.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonBaseProps, ButtonBaseState, ButtonProps, ButtonSlots, ButtonState } from '../Button/Button.types';\n\nexport type CompoundButtonSlots = ButtonSlots & {\n /**\n * Second line of text that describes the action this button takes.\n */\n secondaryContent?: Slot<'span'>;\n\n /**\n * Container that wraps the children and the secondaryContent slot.\n */\n contentContainer: NonNullable<Slot<'span'>>;\n};\n\nexport type CompoundButtonBaseProps = ComponentProps<Partial<CompoundButtonSlots>> &\n Pick<ButtonBaseProps, 'disabledFocusable' | 'disabled' | 'iconPosition'>;\n\nexport type CompoundButtonProps = CompoundButtonBaseProps & Pick<ButtonProps, 'appearance' | 'shape' | 'size'>;\n\nexport type CompoundButtonBaseState = ComponentState<CompoundButtonSlots> &\n Omit<ButtonBaseState, keyof ButtonSlots | 'components'>;\n\nexport type CompoundButtonState = CompoundButtonBaseState & Pick<ButtonState, 'appearance' | 'shape' | 'size'>;\n"],"names":[],"mappings":"AAuBA,WAA+G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CompoundButton } from "./CompoundButton.js";
|
|
2
2
|
export { renderCompoundButton_unstable } from "./renderCompoundButton.js";
|
|
3
|
-
export { useCompoundButton_unstable } from "./useCompoundButton.js";
|
|
3
|
+
export { useCompoundButtonBase_unstable, useCompoundButton_unstable } from "./useCompoundButton.js";
|
|
4
4
|
export { compoundButtonClassNames, useCompoundButtonStyles_unstable } from "./useCompoundButtonStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/index.ts"],"sourcesContent":["export { CompoundButton } from './CompoundButton';\nexport type {
|
|
1
|
+
{"version":3,"sources":["../src/components/CompoundButton/index.ts"],"sourcesContent":["export { CompoundButton } from './CompoundButton';\nexport type {\n CompoundButtonBaseProps,\n CompoundButtonBaseState,\n CompoundButtonProps,\n CompoundButtonSlots,\n CompoundButtonState,\n} from './CompoundButton.types';\nexport { renderCompoundButton_unstable } from './renderCompoundButton';\nexport { useCompoundButtonBase_unstable, useCompoundButton_unstable } from './useCompoundButton';\nexport { compoundButtonClassNames, useCompoundButtonStyles_unstable } from './useCompoundButtonStyles.styles';\n"],"names":["CompoundButton","renderCompoundButton_unstable","useCompoundButtonBase_unstable","useCompoundButton_unstable","compoundButtonClassNames","useCompoundButtonStyles_unstable"],"mappings":"AAAA,SAASA,cAAc,QAAQ,sBAAmB;AAQlD,SAASC,6BAA6B,QAAQ,4BAAyB;AACvE,SAASC,8BAA8B,EAAEC,0BAA0B,QAAQ,yBAAsB;AACjG,SAASC,wBAAwB,EAAEC,gCAAgC,QAAQ,sCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/renderCompoundButton.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type {
|
|
1
|
+
{"version":3,"sources":["../src/components/CompoundButton/renderCompoundButton.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type { CompoundButtonBaseState, CompoundButtonSlots } from './CompoundButton.types';\n\n/**\n * Renders a CompoundButton component by passing the state defined props to the appropriate slots.\n */\nexport const renderCompoundButton_unstable = (state: CompoundButtonBaseState): JSXElement => {\n assertSlots<CompoundButtonSlots>(state);\n const { iconOnly, iconPosition } = state;\n\n return (\n <state.root>\n {iconPosition !== 'after' && state.icon && <state.icon />}\n {!iconOnly && (\n <state.contentContainer>\n {state.root.children}\n {state.secondaryContent && <state.secondaryContent />}\n </state.contentContainer>\n )}\n\n {iconPosition === 'after' && state.icon && <state.icon />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderCompoundButton_unstable","state","iconOnly","iconPosition","root","icon","contentContainer","children","secondaryContent"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAKxD;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC;IAC5CF,YAAiCE;IACjC,MAAM,EAAEC,QAAQ,EAAEC,YAAY,EAAE,GAAGF;IAEnC,qBACE,MAACA,MAAMG,IAAI;;YACRD,iBAAiB,WAAWF,MAAMI,IAAI,kBAAI,KAACJ,MAAMI,IAAI;YACrD,CAACH,0BACA,MAACD,MAAMK,gBAAgB;;oBACpBL,MAAMG,IAAI,CAACG,QAAQ;oBACnBN,MAAMO,gBAAgB,kBAAI,KAACP,MAAMO,gBAAgB;;;YAIrDL,iBAAiB,WAAWF,MAAMI,IAAI,kBAAI,KAACJ,MAAMI,IAAI;;;AAG5D,EAAE"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { slot } from "@fluentui/react-utilities";
|
|
3
|
-
import {
|
|
3
|
+
import { useButtonContext } from "../../contexts/ButtonContext.js";
|
|
4
|
+
import { useButtonBase_unstable } from "../Button/index.js";
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* Base hook for CompoundButton, which manages state related to slots structure and ARIA attributes.
|
|
7
|
+
*
|
|
6
8
|
* @param props - User provided props to the CompoundButton component.
|
|
7
9
|
* @param ref - User provided ref to be passed to the CompoundButton component.
|
|
8
|
-
*/ export const
|
|
10
|
+
*/ export const useCompoundButtonBase_unstable = (props, ref)=>{
|
|
9
11
|
var _state_icon, _state_secondaryContent;
|
|
10
12
|
const { contentContainer, secondaryContent, ...buttonProps } = props;
|
|
11
13
|
const state = {
|
|
12
|
-
|
|
13
|
-
...useButton_unstable(buttonProps, ref),
|
|
14
|
-
// Slots definition
|
|
14
|
+
...useButtonBase_unstable(buttonProps, ref),
|
|
15
15
|
components: {
|
|
16
16
|
root: 'button',
|
|
17
17
|
icon: 'span',
|
|
@@ -25,7 +25,21 @@ import { useButton_unstable } from "../Button/index.js";
|
|
|
25
25
|
elementType: 'span'
|
|
26
26
|
})
|
|
27
27
|
};
|
|
28
|
-
// Recalculate iconOnly to take into account secondaryContent.
|
|
29
28
|
state.iconOnly = Boolean(((_state_icon = state.icon) === null || _state_icon === void 0 ? void 0 : _state_icon.children) && !props.children && !((_state_secondaryContent = state.secondaryContent) === null || _state_secondaryContent === void 0 ? void 0 : _state_secondaryContent.children));
|
|
30
29
|
return state;
|
|
31
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
|
|
33
|
+
* @param props - User provided props to the CompoundButton component.
|
|
34
|
+
* @param ref - User provided ref to be passed to the CompoundButton component.
|
|
35
|
+
*/ export const useCompoundButton_unstable = (props, ref)=>{
|
|
36
|
+
const { size: contextSize } = useButtonContext();
|
|
37
|
+
const { appearance = 'secondary', shape = 'rounded', size = contextSize !== null && contextSize !== void 0 ? contextSize : 'medium', ...buttonProps } = props;
|
|
38
|
+
const state = useCompoundButtonBase_unstable(buttonProps, ref);
|
|
39
|
+
return {
|
|
40
|
+
appearance,
|
|
41
|
+
shape,
|
|
42
|
+
size,
|
|
43
|
+
...state
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CompoundButton/useCompoundButton.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/components/CompoundButton/useCompoundButton.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { useButtonContext } from '../../contexts/ButtonContext';\nimport { useButtonBase_unstable } from '../Button/index';\nimport type {\n CompoundButtonBaseProps,\n CompoundButtonBaseState,\n CompoundButtonProps,\n CompoundButtonState,\n} from './CompoundButton.types';\n\n/**\n * Base hook for CompoundButton, which manages state related to slots structure and ARIA attributes.\n *\n * @param props - User provided props to the CompoundButton component.\n * @param ref - User provided ref to be passed to the CompoundButton component.\n */\nexport const useCompoundButtonBase_unstable = (\n props: CompoundButtonBaseProps,\n ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): CompoundButtonBaseState => {\n const { contentContainer, secondaryContent, ...buttonProps } = props;\n const state: CompoundButtonBaseState = {\n ...useButtonBase_unstable(buttonProps, ref),\n components: {\n root: 'button',\n icon: 'span',\n contentContainer: 'span',\n secondaryContent: 'span',\n },\n contentContainer: slot.always(contentContainer, { elementType: 'span' }),\n secondaryContent: slot.optional(secondaryContent, { elementType: 'span' }),\n };\n\n state.iconOnly = Boolean(state.icon?.children && !props.children && !state.secondaryContent?.children);\n return state;\n};\n\n/**\n * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.\n * @param props - User provided props to the CompoundButton component.\n * @param ref - User provided ref to be passed to the CompoundButton component.\n */\nexport const useCompoundButton_unstable = (\n props: CompoundButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): CompoundButtonState => {\n const { size: contextSize } = useButtonContext();\n const { appearance = 'secondary', shape = 'rounded', size = contextSize ?? 'medium', ...buttonProps } = props;\n const state = useCompoundButtonBase_unstable(buttonProps, ref);\n\n return {\n appearance,\n shape,\n size,\n ...state,\n };\n};\n"],"names":["slot","useButtonContext","useButtonBase_unstable","useCompoundButtonBase_unstable","props","ref","state","contentContainer","secondaryContent","buttonProps","components","root","icon","always","elementType","optional","iconOnly","Boolean","children","useCompoundButton_unstable","size","contextSize","appearance","shape"],"mappings":"AAAA;AAGA,SAASA,IAAI,QAAQ,4BAA4B;AACjD,SAASC,gBAAgB,QAAQ,kCAA+B;AAChE,SAASC,sBAAsB,QAAQ,qBAAkB;AAQzD;;;;;CAKC,GACD,OAAO,MAAMC,iCAAiC,CAC5CC,OACAC;QAeyBC,aAA4CA;IAbrE,MAAM,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAE,GAAGC,aAAa,GAAGL;IAC/D,MAAME,QAAiC;QACrC,GAAGJ,uBAAuBO,aAAaJ,IAAI;QAC3CK,YAAY;YACVC,MAAM;YACNC,MAAM;YACNL,kBAAkB;YAClBC,kBAAkB;QACpB;QACAD,kBAAkBP,KAAKa,MAAM,CAACN,kBAAkB;YAAEO,aAAa;QAAO;QACtEN,kBAAkBR,KAAKe,QAAQ,CAACP,kBAAkB;YAAEM,aAAa;QAAO;IAC1E;IAEAR,MAAMU,QAAQ,GAAGC,QAAQX,EAAAA,cAAAA,MAAMM,IAAI,cAAVN,kCAAAA,YAAYY,QAAQ,KAAI,CAACd,MAAMc,QAAQ,IAAI,GAACZ,0BAAAA,MAAME,gBAAgB,cAAtBF,8CAAAA,wBAAwBY,QAAQ;IACrG,OAAOZ;AACT,EAAE;AAEF;;;;CAIC,GACD,OAAO,MAAMa,6BAA6B,CACxCf,OACAC;IAEA,MAAM,EAAEe,MAAMC,WAAW,EAAE,GAAGpB;IAC9B,MAAM,EAAEqB,aAAa,WAAW,EAAEC,QAAQ,SAAS,EAAEH,OAAOC,wBAAAA,yBAAAA,cAAe,QAAQ,EAAE,GAAGZ,aAAa,GAAGL;IACxG,MAAME,QAAQH,+BAA+BM,aAAaJ;IAE1D,OAAO;QACLiB;QACAC;QACAH;QACA,GAAGd,KAAK;IACV;AACF,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/SplitButton.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderSplitButton_unstable } from './renderSplitButton';\nimport { useSplitButton_unstable } from './useSplitButton';\nimport { useSplitButtonStyles_unstable } from './useSplitButtonStyles.styles';\nimport type { SplitButtonProps } from './SplitButton.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * SplitButtons are a grouping of two interactive surfaces where interacting with the first one triggers a primary\n * action, while interacting with the second one opens a menu with secondary actions.\n */\nexport const SplitButton: ForwardRefComponent<SplitButtonProps> = React.forwardRef((props, ref) => {\n
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitButton/SplitButton.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { renderSplitButton_unstable } from './renderSplitButton';\nimport { useSplitButton_unstable } from './useSplitButton';\nimport { useSplitButtonStyles_unstable } from './useSplitButtonStyles.styles';\nimport type { SplitButtonProps } from './SplitButton.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * SplitButtons are a grouping of two interactive surfaces where interacting with the first one triggers a primary\n * action, while interacting with the second one opens a menu with secondary actions.\n */\nexport const SplitButton: ForwardRefComponent<SplitButtonProps> = React.forwardRef<HTMLDivElement, SplitButtonProps>(\n (props, ref) => {\n const state = useSplitButton_unstable(props, ref);\n\n useSplitButtonStyles_unstable(state);\n\n useCustomStyleHook_unstable('useSplitButtonStyles_unstable')(state);\n\n return renderSplitButton_unstable(state);\n // Casting is required due to lack of distributive union to support unions on @types/react\n },\n) as ForwardRefComponent<SplitButtonProps>;\n\nSplitButton.displayName = 'SplitButton';\n"],"names":["React","renderSplitButton_unstable","useSplitButton_unstable","useSplitButtonStyles_unstable","useCustomStyleHook_unstable","SplitButton","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,0BAA0B,QAAQ,yBAAsB;AACjE,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,6BAA6B,QAAQ,mCAAgC;AAG9E,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;;CAGC,GACD,OAAO,MAAMC,4BAAqDL,MAAMM,UAAU,CAChF,CAACC,OAAOC;IACN,MAAMC,QAAQP,wBAAwBK,OAAOC;IAE7CL,8BAA8BM;IAE9BL,4BAA4B,iCAAiCK;IAE7D,OAAOR,2BAA2BQ;AAClC,0FAA0F;AAC5F,GACyC;AAE3CJ,YAAYK,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/SplitButton.types.ts"],"sourcesContent":["import type { Button } from '../Button/Button';\nimport type { MenuButton } from '../MenuButton/MenuButton';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonProps, ButtonState } from '../Button/Button.types';\nimport type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';\n\nexport type SplitButtonSlots = {\n /**\n * Root of the component that wraps the primary action button and menu button.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * Button that opens menu with secondary actions in SplitButton.\n */\n menuButton?: Slot<typeof MenuButton>;\n /**\n * Button to perform primary action in SplitButton.\n */\n primaryActionButton?: Slot<typeof Button>;\n};\n\nexport type SplitButtonProps = ComponentProps<SplitButtonSlots> &\n Omit<ButtonProps, 'root' | 'as'> &\n Omit<MenuButtonProps, 'root' | 'as'>;\n\nexport type SplitButtonState = ComponentState<SplitButtonSlots> &\n Omit<ButtonState, 'components' | 'iconOnly' | 'root'> &\n Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitButton/SplitButton.types.ts"],"sourcesContent":["import type { Button } from '../Button/Button';\nimport type { MenuButton } from '../MenuButton/MenuButton';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { ButtonBaseProps, ButtonProps, ButtonState } from '../Button/Button.types';\nimport type { MenuButtonBaseProps, MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';\n\nexport type SplitButtonSlots = {\n /**\n * Root of the component that wraps the primary action button and menu button.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * Button that opens menu with secondary actions in SplitButton.\n */\n menuButton?: Slot<typeof MenuButton>;\n /**\n * Button to perform primary action in SplitButton.\n */\n primaryActionButton?: Slot<typeof Button>;\n};\n\nexport type SplitButtonProps = ComponentProps<SplitButtonSlots> &\n Omit<ButtonProps, 'root' | 'as'> &\n Omit<MenuButtonProps, 'root' | 'as'>;\n\nexport type SplitButtonState = ComponentState<SplitButtonSlots> &\n Omit<ButtonState, 'components' | 'iconOnly' | 'root'> &\n Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;\n\nexport type SplitButtonBaseSlots = {\n /**\n * Root of the component that wraps the primary action button and menu button.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * Button that opens menu with secondary actions in SplitButton.\n */\n menuButton?: Slot<MenuButtonBaseProps>;\n /**\n * Button to perform primary action in SplitButton.\n */\n primaryActionButton?: Slot<ButtonBaseProps>;\n};\n\n/**\n * SplitButton props without the `appearance`/`size`/`shape` styling props, for headless usage.\n */\nexport type SplitButtonBaseProps = ComponentProps<SplitButtonBaseSlots> &\n Pick<ButtonBaseProps, 'disabled' | 'disabledFocusable' | 'icon' | 'iconPosition'> &\n Pick<MenuButtonBaseProps, 'menuIcon'>;\n\n/**\n * SplitButton state without the `appearance`/`size`/`shape` styling props, for headless usage.\n */\nexport type SplitButtonBaseState = ComponentState<SplitButtonBaseSlots> &\n Required<Pick<SplitButtonBaseProps, 'disabled' | 'disabledFocusable' | 'iconPosition'>>;\n"],"names":[],"mappings":"AAqDA;;CAEC,GACD,WAC0F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { SplitButton } from "./SplitButton.js";
|
|
2
2
|
export { renderSplitButton_unstable } from "./renderSplitButton.js";
|
|
3
|
-
export { useSplitButton_unstable } from "./useSplitButton.js";
|
|
3
|
+
export { useSplitButton_unstable, useSplitButtonBase_unstable } from "./useSplitButton.js";
|
|
4
4
|
export { splitButtonClassNames, useSplitButtonStyles_unstable } from "./useSplitButtonStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/index.ts"],"sourcesContent":["export { SplitButton } from './SplitButton';\nexport type {
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitButton/index.ts"],"sourcesContent":["export { SplitButton } from './SplitButton';\nexport type {\n SplitButtonBaseProps,\n SplitButtonBaseSlots,\n SplitButtonBaseState,\n SplitButtonProps,\n SplitButtonSlots,\n SplitButtonState,\n} from './SplitButton.types';\nexport { renderSplitButton_unstable } from './renderSplitButton';\nexport { useSplitButton_unstable, useSplitButtonBase_unstable } from './useSplitButton';\nexport { splitButtonClassNames, useSplitButtonStyles_unstable } from './useSplitButtonStyles.styles';\n"],"names":["SplitButton","renderSplitButton_unstable","useSplitButton_unstable","useSplitButtonBase_unstable","splitButtonClassNames","useSplitButtonStyles_unstable"],"mappings":"AAAA,SAASA,WAAW,QAAQ,mBAAgB;AAS5C,SAASC,0BAA0B,QAAQ,yBAAsB;AACjE,SAASC,uBAAuB,EAAEC,2BAA2B,QAAQ,sBAAmB;AACxF,SAASC,qBAAqB,EAAEC,6BAA6B,QAAQ,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/renderSplitButton.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type {
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitButton/renderSplitButton.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { ComponentState, JSXElement } from '@fluentui/react-utilities';\n\nimport type { SplitButtonBaseSlots } from './SplitButton.types';\n\n/**\n * Renders a SplitButton component by passing the state defined props to the appropriate slots.\n */\nexport const renderSplitButton_unstable = (\n state: Pick<ComponentState<SplitButtonBaseSlots>, 'root' | 'menuButton' | 'primaryActionButton'>,\n): JSXElement => {\n assertSlots<SplitButtonBaseSlots>(state);\n\n return (\n <state.root>\n {state.primaryActionButton && <state.primaryActionButton />}\n {state.menuButton && <state.menuButton />}\n </state.root>\n );\n};\n"],"names":["assertSlots","renderSplitButton_unstable","state","root","primaryActionButton","menuButton"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAKxD;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CACxCC;IAEAF,YAAkCE;IAElC,qBACE,MAACA,MAAMC,IAAI;;YACRD,MAAME,mBAAmB,kBAAI,KAACF,MAAME,mBAAmB;YACvDF,MAAMG,UAAU,kBAAI,KAACH,MAAMG,UAAU;;;AAG5C,EAAE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { useId, slot } from "@fluentui/react-utilities";
|
|
2
3
|
import { Button } from "../Button/Button.js";
|
|
3
4
|
import { MenuButton } from "../MenuButton/MenuButton.js";
|
|
@@ -6,13 +7,13 @@ import { MenuButton } from "../MenuButton/MenuButton.js";
|
|
|
6
7
|
* @param props - User provided props to the SplitButton component.
|
|
7
8
|
* @param ref - User provided ref to be passed to the SplitButton component.
|
|
8
9
|
*/ export const useSplitButton_unstable = (props, ref)=>{
|
|
9
|
-
const { appearance = 'secondary',
|
|
10
|
-
const
|
|
11
|
-
const menuButtonShorthand = slot.optional(menuButton, {
|
|
10
|
+
const { appearance = 'secondary', icon, menuIcon, shape = 'rounded', size = 'medium', ...rest } = props;
|
|
11
|
+
const baseState = useSplitButtonBase_unstable(rest, ref);
|
|
12
|
+
const menuButtonShorthand = slot.optional(props.menuButton, {
|
|
12
13
|
defaultProps: {
|
|
14
|
+
...baseState.menuButton,
|
|
13
15
|
appearance,
|
|
14
|
-
|
|
15
|
-
disabledFocusable,
|
|
16
|
+
disabledFocusable: baseState.disabledFocusable,
|
|
16
17
|
menuIcon,
|
|
17
18
|
shape,
|
|
18
19
|
size
|
|
@@ -20,41 +21,80 @@ import { MenuButton } from "../MenuButton/MenuButton.js";
|
|
|
20
21
|
renderByDefault: true,
|
|
21
22
|
elementType: MenuButton
|
|
22
23
|
});
|
|
23
|
-
const primaryActionButtonShorthand = slot.optional(primaryActionButton, {
|
|
24
|
+
const primaryActionButtonShorthand = slot.optional(props.primaryActionButton, {
|
|
24
25
|
defaultProps: {
|
|
26
|
+
...baseState.primaryActionButton,
|
|
25
27
|
appearance,
|
|
26
|
-
|
|
27
|
-
disabled,
|
|
28
|
-
disabledFocusable,
|
|
28
|
+
disabledFocusable: baseState.disabledFocusable,
|
|
29
29
|
icon,
|
|
30
|
-
iconPosition,
|
|
31
|
-
id: baseId + '__primaryActionButton',
|
|
30
|
+
iconPosition: baseState.iconPosition,
|
|
32
31
|
shape,
|
|
33
32
|
size
|
|
34
33
|
},
|
|
35
34
|
renderByDefault: true,
|
|
36
35
|
elementType: Button
|
|
37
36
|
});
|
|
37
|
+
return {
|
|
38
|
+
...baseState,
|
|
39
|
+
// Props passed at the top-level
|
|
40
|
+
appearance,
|
|
41
|
+
shape,
|
|
42
|
+
size,
|
|
43
|
+
// Slots definition
|
|
44
|
+
components: {
|
|
45
|
+
root: 'div',
|
|
46
|
+
menuButton: MenuButton,
|
|
47
|
+
primaryActionButton: Button
|
|
48
|
+
},
|
|
49
|
+
menuButton: menuButtonShorthand,
|
|
50
|
+
primaryActionButton: primaryActionButtonShorthand
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Base hook for SplitButton component, which manages design-agnostic state related to slots
|
|
55
|
+
* structure and ARIA attributes, without design-specific props such as `appearance`, `shape`, or
|
|
56
|
+
* `size`.
|
|
57
|
+
*
|
|
58
|
+
* Concrete wrappers recreate child slots from these base prop defaults before rendering.
|
|
59
|
+
*
|
|
60
|
+
* @param props - User provided props to the SplitButton component.
|
|
61
|
+
* @param ref - User provided ref to be passed to the SplitButton component.
|
|
62
|
+
*/ export const useSplitButtonBase_unstable = (props, ref)=>{
|
|
63
|
+
const { children, disabled = false, disabledFocusable = false, icon, iconPosition = 'before', menuButton, menuIcon, primaryActionButton, ...rest } = props;
|
|
64
|
+
const baseId = useId('splitButton-');
|
|
65
|
+
const menuButtonShorthand = slot.optional(menuButton, {
|
|
66
|
+
defaultProps: {
|
|
67
|
+
disabled
|
|
68
|
+
},
|
|
69
|
+
renderByDefault: true,
|
|
70
|
+
elementType: 'button'
|
|
71
|
+
});
|
|
72
|
+
const primaryActionButtonShorthand = slot.optional(primaryActionButton, {
|
|
73
|
+
defaultProps: {
|
|
74
|
+
children,
|
|
75
|
+
disabled,
|
|
76
|
+
id: baseId + '__primaryActionButton'
|
|
77
|
+
},
|
|
78
|
+
renderByDefault: true,
|
|
79
|
+
elementType: 'button'
|
|
80
|
+
});
|
|
38
81
|
// Resolve menu button's aria-labelledby to be labelled by the primary action button if no label was provided by the
|
|
39
82
|
// user.
|
|
40
83
|
if (menuButtonShorthand && primaryActionButtonShorthand && !menuButtonShorthand['aria-label'] && !menuButtonShorthand['aria-labelledby']) {
|
|
41
84
|
menuButtonShorthand['aria-labelledby'] = primaryActionButtonShorthand.id;
|
|
42
85
|
}
|
|
43
86
|
return {
|
|
44
|
-
// Props passed at the top-level
|
|
45
|
-
appearance,
|
|
46
87
|
disabled,
|
|
47
88
|
disabledFocusable,
|
|
48
89
|
iconPosition,
|
|
49
|
-
|
|
50
|
-
size,
|
|
90
|
+
// Slots definition
|
|
51
91
|
components: {
|
|
52
92
|
root: 'div',
|
|
53
|
-
menuButton:
|
|
54
|
-
primaryActionButton:
|
|
93
|
+
menuButton: 'button',
|
|
94
|
+
primaryActionButton: 'button'
|
|
55
95
|
},
|
|
56
96
|
root: slot.always({
|
|
57
|
-
ref
|
|
97
|
+
ref,
|
|
58
98
|
...rest
|
|
59
99
|
}, {
|
|
60
100
|
elementType: 'div'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SplitButton/useSplitButton.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/components/SplitButton/useSplitButton.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useId, slot } from '@fluentui/react-utilities';\nimport { Button } from '../Button/Button';\nimport { MenuButton } from '../MenuButton/MenuButton';\nimport type {\n SplitButtonBaseProps,\n SplitButtonBaseState,\n SplitButtonProps,\n SplitButtonState,\n} from './SplitButton.types';\n\n/**\n * Given user props, defines default props for the SplitButton and returns processed state.\n * @param props - User provided props to the SplitButton component.\n * @param ref - User provided ref to be passed to the SplitButton component.\n */\nexport const useSplitButton_unstable = (props: SplitButtonProps, ref: React.Ref<HTMLDivElement>): SplitButtonState => {\n const { appearance = 'secondary', icon, menuIcon, shape = 'rounded', size = 'medium', ...rest } = props;\n const baseState = useSplitButtonBase_unstable(rest, ref);\n\n const menuButtonShorthand = slot.optional(props.menuButton, {\n defaultProps: {\n ...baseState.menuButton,\n appearance,\n disabledFocusable: baseState.disabledFocusable,\n menuIcon,\n shape,\n size,\n },\n renderByDefault: true,\n elementType: MenuButton,\n });\n const primaryActionButtonShorthand = slot.optional(props.primaryActionButton, {\n defaultProps: {\n ...baseState.primaryActionButton,\n appearance,\n disabledFocusable: baseState.disabledFocusable,\n icon,\n iconPosition: baseState.iconPosition,\n shape,\n size,\n },\n renderByDefault: true,\n elementType: Button,\n });\n\n return {\n ...baseState,\n // Props passed at the top-level\n appearance,\n shape,\n size,\n // Slots definition\n components: { root: 'div', menuButton: MenuButton, primaryActionButton: Button },\n menuButton: menuButtonShorthand,\n primaryActionButton: primaryActionButtonShorthand,\n };\n};\n\n/**\n * Base hook for SplitButton component, which manages design-agnostic state related to slots\n * structure and ARIA attributes, without design-specific props such as `appearance`, `shape`, or\n * `size`.\n *\n * Concrete wrappers recreate child slots from these base prop defaults before rendering.\n *\n * @param props - User provided props to the SplitButton component.\n * @param ref - User provided ref to be passed to the SplitButton component.\n */\nexport const useSplitButtonBase_unstable = (\n props: SplitButtonBaseProps,\n ref: React.Ref<HTMLDivElement>,\n): SplitButtonBaseState => {\n const {\n children,\n disabled = false,\n disabledFocusable = false,\n icon,\n iconPosition = 'before',\n menuButton,\n menuIcon,\n primaryActionButton,\n ...rest\n } = props;\n const baseId = useId('splitButton-');\n\n const menuButtonShorthand = slot.optional(menuButton, {\n defaultProps: {\n disabled,\n },\n renderByDefault: true,\n elementType: 'button',\n });\n\n const primaryActionButtonShorthand = slot.optional(primaryActionButton, {\n defaultProps: {\n children,\n disabled,\n id: baseId + '__primaryActionButton',\n },\n renderByDefault: true,\n elementType: 'button',\n });\n\n // Resolve menu button's aria-labelledby to be labelled by the primary action button if no label was provided by the\n // user.\n if (\n menuButtonShorthand &&\n primaryActionButtonShorthand &&\n !menuButtonShorthand['aria-label'] &&\n !menuButtonShorthand['aria-labelledby']\n ) {\n menuButtonShorthand['aria-labelledby'] = primaryActionButtonShorthand.id;\n }\n\n return {\n disabled,\n disabledFocusable,\n iconPosition,\n // Slots definition\n components: { root: 'div', menuButton: 'button', primaryActionButton: 'button' },\n root: slot.always({ ref, ...rest }, { elementType: 'div' }),\n menuButton: menuButtonShorthand,\n primaryActionButton: primaryActionButtonShorthand,\n };\n};\n"],"names":["useId","slot","Button","MenuButton","useSplitButton_unstable","props","ref","appearance","icon","menuIcon","shape","size","rest","baseState","useSplitButtonBase_unstable","menuButtonShorthand","optional","menuButton","defaultProps","disabledFocusable","renderByDefault","elementType","primaryActionButtonShorthand","primaryActionButton","iconPosition","components","root","children","disabled","baseId","id","always"],"mappings":"AAAA;AAGA,SAASA,KAAK,EAAEC,IAAI,QAAQ,4BAA4B;AACxD,SAASC,MAAM,QAAQ,sBAAmB;AAC1C,SAASC,UAAU,QAAQ,8BAA2B;AAQtD;;;;CAIC,GACD,OAAO,MAAMC,0BAA0B,CAACC,OAAyBC;IAC/D,MAAM,EAAEC,aAAa,WAAW,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,QAAQ,SAAS,EAAEC,OAAO,QAAQ,EAAE,GAAGC,MAAM,GAAGP;IAClG,MAAMQ,YAAYC,4BAA4BF,MAAMN;IAEpD,MAAMS,sBAAsBd,KAAKe,QAAQ,CAACX,MAAMY,UAAU,EAAE;QAC1DC,cAAc;YACZ,GAAGL,UAAUI,UAAU;YACvBV;YACAY,mBAAmBN,UAAUM,iBAAiB;YAC9CV;YACAC;YACAC;QACF;QACAS,iBAAiB;QACjBC,aAAalB;IACf;IACA,MAAMmB,+BAA+BrB,KAAKe,QAAQ,CAACX,MAAMkB,mBAAmB,EAAE;QAC5EL,cAAc;YACZ,GAAGL,UAAUU,mBAAmB;YAChChB;YACAY,mBAAmBN,UAAUM,iBAAiB;YAC9CX;YACAgB,cAAcX,UAAUW,YAAY;YACpCd;YACAC;QACF;QACAS,iBAAiB;QACjBC,aAAanB;IACf;IAEA,OAAO;QACL,GAAGW,SAAS;QACZ,gCAAgC;QAChCN;QACAG;QACAC;QACA,mBAAmB;QACnBc,YAAY;YAAEC,MAAM;YAAOT,YAAYd;YAAYoB,qBAAqBrB;QAAO;QAC/Ee,YAAYF;QACZQ,qBAAqBD;IACvB;AACF,EAAE;AAEF;;;;;;;;;CASC,GACD,OAAO,MAAMR,8BAA8B,CACzCT,OACAC;IAEA,MAAM,EACJqB,QAAQ,EACRC,WAAW,KAAK,EAChBT,oBAAoB,KAAK,EACzBX,IAAI,EACJgB,eAAe,QAAQ,EACvBP,UAAU,EACVR,QAAQ,EACRc,mBAAmB,EACnB,GAAGX,MACJ,GAAGP;IACJ,MAAMwB,SAAS7B,MAAM;IAErB,MAAMe,sBAAsBd,KAAKe,QAAQ,CAACC,YAAY;QACpDC,cAAc;YACZU;QACF;QACAR,iBAAiB;QACjBC,aAAa;IACf;IAEA,MAAMC,+BAA+BrB,KAAKe,QAAQ,CAACO,qBAAqB;QACtEL,cAAc;YACZS;YACAC;YACAE,IAAID,SAAS;QACf;QACAT,iBAAiB;QACjBC,aAAa;IACf;IAEA,oHAAoH;IACpH,QAAQ;IACR,IACEN,uBACAO,gCACA,CAACP,mBAAmB,CAAC,aAAa,IAClC,CAACA,mBAAmB,CAAC,kBAAkB,EACvC;QACAA,mBAAmB,CAAC,kBAAkB,GAAGO,6BAA6BQ,EAAE;IAC1E;IAEA,OAAO;QACLF;QACAT;QACAK;QACA,mBAAmB;QACnBC,YAAY;YAAEC,MAAM;YAAOT,YAAY;YAAUM,qBAAqB;QAAS;QAC/EG,MAAMzB,KAAK8B,MAAM,CAAC;YAAEzB;YAAK,GAAGM,IAAI;QAAC,GAAG;YAAES,aAAa;QAAM;QACzDJ,YAAYF;QACZQ,qBAAqBD;IACvB;AACF,EAAE"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Button, buttonClassNames, renderButton_unstable, useButtonStyles_unstable, useButton_unstable, useButtonBase_unstable } from "./Button.js";
|
|
2
|
-
export { CompoundButton, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable } from "./CompoundButton.js";
|
|
2
|
+
export { CompoundButton, compoundButtonClassNames, renderCompoundButton_unstable, useCompoundButtonBase_unstable, useCompoundButtonStyles_unstable, useCompoundButton_unstable } from "./CompoundButton.js";
|
|
3
3
|
export { MenuButton, menuButtonClassNames, renderMenuButton_unstable, useMenuButtonStyles_unstable, useMenuButton_unstable, useMenuButtonBase_unstable } from "./MenuButton.js";
|
|
4
|
-
export { SplitButton, renderSplitButton_unstable, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable } from "./SplitButton.js";
|
|
4
|
+
export { SplitButton, renderSplitButton_unstable, splitButtonClassNames, useSplitButtonStyles_unstable, useSplitButton_unstable, useSplitButtonBase_unstable } from "./SplitButton.js";
|
|
5
5
|
export { ToggleButton, renderToggleButton_unstable, toggleButtonClassNames, useToggleButtonStyles_unstable, useToggleButton_unstable, useToggleButtonBase_unstable } from "./ToggleButton.js";
|
|
6
6
|
export { useToggleState } from "./utils/index.js";
|
|
7
7
|
export { ButtonContextProvider, useButtonContext } from "./contexts/index.js";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n useButtonBase_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState, ButtonBaseProps, ButtonBaseState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type {
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Button,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n useButtonBase_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState, ButtonBaseProps, ButtonBaseState } from './Button';\nexport {\n CompoundButton,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonBase_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type {\n CompoundButtonBaseProps,\n CompoundButtonBaseState,\n CompoundButtonProps,\n CompoundButtonSlots,\n CompoundButtonState,\n} from './CompoundButton';\nexport {\n MenuButton,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n useMenuButtonBase_unstable,\n} from './MenuButton';\nexport type {\n MenuButtonProps,\n MenuButtonSlots,\n MenuButtonState,\n MenuButtonBaseProps,\n MenuButtonBaseState,\n} from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n useSplitButtonBase_unstable,\n} from './SplitButton';\nexport type {\n SplitButtonBaseProps,\n SplitButtonBaseSlots,\n SplitButtonBaseState,\n SplitButtonProps,\n SplitButtonSlots,\n SplitButtonState,\n} from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n useToggleButtonBase_unstable,\n} from './ToggleButton';\nexport type {\n ToggleButtonProps,\n ToggleButtonState,\n ToggleButtonBaseProps,\n ToggleButtonBaseState,\n} 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","useButtonBase_unstable","CompoundButton","compoundButtonClassNames","renderCompoundButton_unstable","useCompoundButtonBase_unstable","useCompoundButtonStyles_unstable","useCompoundButton_unstable","MenuButton","menuButtonClassNames","renderMenuButton_unstable","useMenuButtonStyles_unstable","useMenuButton_unstable","useMenuButtonBase_unstable","SplitButton","renderSplitButton_unstable","splitButtonClassNames","useSplitButtonStyles_unstable","useSplitButton_unstable","useSplitButtonBase_unstable","ToggleButton","renderToggleButton_unstable","toggleButtonClassNames","useToggleButtonStyles_unstable","useToggleButton_unstable","useToggleButtonBase_unstable","useToggleState","ButtonContextProvider","useButtonContext"],"mappings":"AAAA,SACEA,MAAM,EACNC,gBAAgB,EAChBC,qBAAqB,EACrBC,wBAAwB,EACxBC,kBAAkB,EAClBC,sBAAsB,QACjB,cAAW;AAElB,SACEC,cAAc,EACdC,wBAAwB,EACxBC,6BAA6B,EAC7BC,8BAA8B,EAC9BC,gCAAgC,EAChCC,0BAA0B,QACrB,sBAAmB;AAQ1B,SACEC,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,0BAA0B,QACrB,kBAAe;AAQtB,SACEC,WAAW,EACXC,0BAA0B,EAC1BC,qBAAqB,EACrBC,6BAA6B,EAC7BC,uBAAuB,EACvBC,2BAA2B,QACtB,mBAAgB;AASvB,SACEC,YAAY,EACZC,2BAA2B,EAC3BC,sBAAsB,EACtBC,8BAA8B,EAC9BC,wBAAwB,EACxBC,4BAA4B,QACvB,oBAAiB;AAQxB,SAASC,cAAc,QAAQ,mBAAgB;AAE/C,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ,sBAAmB"}
|