Skip to content

Commit 750d033

Browse files
committed
Remove deprecated withModule method
1 parent 838f133 commit 750d033

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/elements/forms/text-field.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

src/elements/label.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

src/utils/class-names.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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

5447
ClassNames.use = use
5548
ClassNames.from = from
56-
ClassNames.withModule = from
5749

5850
export default ClassNames
59-
export { use, from, from as withModule }
51+
export { use, from }

0 commit comments

Comments
 (0)