@@ -10,9 +10,9 @@ import {
1010 getComponentType ,
1111 getUnhandledProps ,
1212 SUI ,
13- useKeyOnly ,
14- useKeyOrValueAndKey ,
15- useValueAndKey ,
13+ getKeyOnly ,
14+ getKeyOrValueAndKey ,
15+ getValueAndKey ,
1616 useMergedRefs ,
1717} from '../../lib'
1818import Icon from '../Icon/Icon'
@@ -103,24 +103,24 @@ const Button = React.forwardRef(function (props, ref) {
103103 const baseClasses = cx (
104104 color ,
105105 size ,
106- useKeyOnly ( active , 'active' ) ,
107- useKeyOnly ( basic , 'basic' ) ,
108- useKeyOnly ( circular , 'circular' ) ,
109- useKeyOnly ( compact , 'compact' ) ,
110- useKeyOnly ( fluid , 'fluid' ) ,
111- useKeyOnly ( hasIconClass ( props ) , 'icon' ) ,
112- useKeyOnly ( inverted , 'inverted' ) ,
113- useKeyOnly ( loading , 'loading' ) ,
114- useKeyOnly ( negative , 'negative' ) ,
115- useKeyOnly ( positive , 'positive' ) ,
116- useKeyOnly ( primary , 'primary' ) ,
117- useKeyOnly ( secondary , 'secondary' ) ,
118- useKeyOnly ( toggle , 'toggle' ) ,
119- useKeyOrValueAndKey ( animated , 'animated' ) ,
120- useKeyOrValueAndKey ( attached , 'attached' ) ,
106+ getKeyOnly ( active , 'active' ) ,
107+ getKeyOnly ( basic , 'basic' ) ,
108+ getKeyOnly ( circular , 'circular' ) ,
109+ getKeyOnly ( compact , 'compact' ) ,
110+ getKeyOnly ( fluid , 'fluid' ) ,
111+ getKeyOnly ( hasIconClass ( props ) , 'icon' ) ,
112+ getKeyOnly ( inverted , 'inverted' ) ,
113+ getKeyOnly ( loading , 'loading' ) ,
114+ getKeyOnly ( negative , 'negative' ) ,
115+ getKeyOnly ( positive , 'positive' ) ,
116+ getKeyOnly ( primary , 'primary' ) ,
117+ getKeyOnly ( secondary , 'secondary' ) ,
118+ getKeyOnly ( toggle , 'toggle' ) ,
119+ getKeyOrValueAndKey ( animated , 'animated' ) ,
120+ getKeyOrValueAndKey ( attached , 'attached' ) ,
121121 )
122- const labeledClasses = cx ( useKeyOrValueAndKey ( labelPosition || ! ! label , 'labeled' ) )
123- const wrapperClasses = cx ( useKeyOnly ( disabled , 'disabled' ) , useValueAndKey ( floated , 'floated' ) )
122+ const labeledClasses = cx ( getKeyOrValueAndKey ( labelPosition || ! ! label , 'labeled' ) )
123+ const wrapperClasses = cx ( getKeyOnly ( disabled , 'disabled' ) , getValueAndKey ( floated , 'floated' ) )
124124
125125 const rest = getUnhandledProps ( Button , props )
126126 const ElementType = getComponentType ( props , {
0 commit comments