Skip to content

Commit e8a41d6

Browse files
chore: remove deprecaetd unused classNameBuilders
1 parent f6460e2 commit e8a41d6

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

src/lib/classNameBuilders.js

-35
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ import { numberToWord } from './numberToWord'
2121
*/
2222
export const getKeyOnly = (val, key) => val && key
2323

24-
/**
25-
* @deprecated
26-
*/
27-
export const useKeyOnly = getKeyOnly
28-
2924
/**
3025
* Props that require both a key and value to create a className.
3126
* @param {*} val A props value
@@ -37,11 +32,6 @@ export const useKeyOnly = getKeyOnly
3732
*/
3833
export const getValueAndKey = (val, key) => val && val !== true && `${val} ${key}`
3934

40-
/**
41-
* @deprecated
42-
*/
43-
export const useValueAndKey = getValueAndKey
44-
4535
/**
4636
* Props whose key will be used in className, or value and key.
4737
* @param {*} val A props value
@@ -57,11 +47,6 @@ export const useValueAndKey = getValueAndKey
5747
*/
5848
export const getKeyOrValueAndKey = (val, key) => val && (val === true ? key : `${val} ${key}`)
5949

60-
/**
61-
* @deprecated
62-
*/
63-
export const useKeyOrValueAndKey = getKeyOrValueAndKey
64-
6550
//
6651
// Prop to className exceptions
6752
//
@@ -89,11 +74,6 @@ export const getMultipleProp = (val, key) => {
8974
.join(' ')
9075
}
9176

92-
/**
93-
* @deprecated
94-
*/
95-
export const useMultipleProp = getMultipleProp
96-
9777
/**
9878
* The "textAlign" prop follows the useValueAndKey except when the value is "justified'.
9979
* In this case, only the class "justified" is used, ignoring the "aligned" class.
@@ -110,11 +90,6 @@ export const useMultipleProp = getMultipleProp
11090
export const getTextAlignProp = (val) =>
11191
val === 'justified' ? 'justified' : getValueAndKey(val, 'aligned')
11292

113-
/**
114-
* @deprecated
115-
*/
116-
export const useTextAlignProp = getTextAlignProp
117-
11893
/**
11994
* The "verticalAlign" prop follows the useValueAndKey.
12095
*
@@ -126,11 +101,6 @@ export const useTextAlignProp = getTextAlignProp
126101
*/
127102
export const getVerticalAlignProp = (val) => getValueAndKey(val, 'aligned')
128103

129-
/**
130-
* @deprecated
131-
*/
132-
export const useVerticalAlignProp = getVerticalAlignProp
133-
134104
/**
135105
* Create "X", "X wide" and "equal width" classNames.
136106
* "X" is a numberToWord value and "wide" is configurable.
@@ -162,8 +132,3 @@ export const getWidthProp = (val, widthClass = '', canEqual = false) => {
162132
}
163133
return numberToWord(val)
164134
}
165-
166-
/**
167-
* @deprecated
168-
*/
169-
export const useWidthProp = getWidthProp

src/lib/index.js

-7
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,12 @@ export ModernAutoControlledComponent from './ModernAutoControlledComponent'
44
export * as childrenUtils from './childrenUtils'
55

66
export {
7-
useKeyOnly,
87
getKeyOnly,
9-
useKeyOrValueAndKey,
108
getKeyOrValueAndKey,
11-
useValueAndKey,
129
getValueAndKey,
13-
useMultipleProp,
1410
getMultipleProp,
15-
useTextAlignProp,
1611
getTextAlignProp,
17-
useVerticalAlignProp,
1812
getVerticalAlignProp,
19-
useWidthProp,
2013
getWidthProp,
2114
} from './classNameBuilders'
2215

0 commit comments

Comments
 (0)