File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const TextField = ({
3939 className = { classNames
4040 // prevents passing 'default' to the class list
4141 . use ( 'container' , { [ size ] : size !== 'default' } , className )
42- . withModule ( textFieldClassNames ) }
42+ . from ( textFieldClassNames ) }
4343 >
4444 < input id = { controlId } { ...inputProps } />
4545 < label htmlFor = { controlId } > { label } </ label >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Label = ({
1515 < Tag
1616 className = { classNames
1717 . use ( 'label' , color !== 'default' && color , className )
18- . withModule ( labelStyles ) }
18+ . from ( labelStyles ) }
1919 { ...restProps }
2020 >
2121 { children }
Original file line number Diff line number Diff line change @@ -26,13 +26,6 @@ class ClassNames {
2626 return this
2727 }
2828
29- /**
30- * @deprecated
31- */
32- withModule ( ...args ) {
33- return this . from ( ...args )
34- }
35-
3629 join ( className ) {
3730 this . appendix = className
3831 return this
@@ -53,7 +46,6 @@ const from = (...args) => new ClassNames().from(...args)
5346
5447ClassNames . use = use
5548ClassNames . from = from
56- ClassNames . withModule = from
5749
5850export default ClassNames
59- export { use , from , from as withModule }
51+ export { use , from }
You can’t perform that action at this time.
0 commit comments