@@ -21,11 +21,6 @@ import { numberToWord } from './numberToWord'
21
21
*/
22
22
export const getKeyOnly = ( val , key ) => val && key
23
23
24
- /**
25
- * @deprecated
26
- */
27
- export const useKeyOnly = getKeyOnly
28
-
29
24
/**
30
25
* Props that require both a key and value to create a className.
31
26
* @param {* } val A props value
@@ -37,11 +32,6 @@ export const useKeyOnly = getKeyOnly
37
32
*/
38
33
export const getValueAndKey = ( val , key ) => val && val !== true && `${ val } ${ key } `
39
34
40
- /**
41
- * @deprecated
42
- */
43
- export const useValueAndKey = getValueAndKey
44
-
45
35
/**
46
36
* Props whose key will be used in className, or value and key.
47
37
* @param {* } val A props value
@@ -57,11 +47,6 @@ export const useValueAndKey = getValueAndKey
57
47
*/
58
48
export const getKeyOrValueAndKey = ( val , key ) => val && ( val === true ? key : `${ val } ${ key } ` )
59
49
60
- /**
61
- * @deprecated
62
- */
63
- export const useKeyOrValueAndKey = getKeyOrValueAndKey
64
-
65
50
//
66
51
// Prop to className exceptions
67
52
//
@@ -89,11 +74,6 @@ export const getMultipleProp = (val, key) => {
89
74
. join ( ' ' )
90
75
}
91
76
92
- /**
93
- * @deprecated
94
- */
95
- export const useMultipleProp = getMultipleProp
96
-
97
77
/**
98
78
* The "textAlign" prop follows the useValueAndKey except when the value is "justified'.
99
79
* In this case, only the class "justified" is used, ignoring the "aligned" class.
@@ -110,11 +90,6 @@ export const useMultipleProp = getMultipleProp
110
90
export const getTextAlignProp = ( val ) =>
111
91
val === 'justified' ? 'justified' : getValueAndKey ( val , 'aligned' )
112
92
113
- /**
114
- * @deprecated
115
- */
116
- export const useTextAlignProp = getTextAlignProp
117
-
118
93
/**
119
94
* The "verticalAlign" prop follows the useValueAndKey.
120
95
*
@@ -126,11 +101,6 @@ export const useTextAlignProp = getTextAlignProp
126
101
*/
127
102
export const getVerticalAlignProp = ( val ) => getValueAndKey ( val , 'aligned' )
128
103
129
- /**
130
- * @deprecated
131
- */
132
- export const useVerticalAlignProp = getVerticalAlignProp
133
-
134
104
/**
135
105
* Create "X", "X wide" and "equal width" classNames.
136
106
* "X" is a numberToWord value and "wide" is configurable.
@@ -162,8 +132,3 @@ export const getWidthProp = (val, widthClass = '', canEqual = false) => {
162
132
}
163
133
return numberToWord ( val )
164
134
}
165
-
166
- /**
167
- * @deprecated
168
- */
169
- export const useWidthProp = getWidthProp
0 commit comments