@platformatic/ui-components 0.7.24 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -14,10 +14,11 @@ function SearchBarV2 ({
|
|
|
14
14
|
placeholder = 'Search',
|
|
15
15
|
dataAttrName = '',
|
|
16
16
|
dataAttrValue = '',
|
|
17
|
-
inputTextClassName = ''
|
|
17
|
+
inputTextClassName = '',
|
|
18
|
+
paddingClass = ''
|
|
18
19
|
}) {
|
|
19
20
|
const inputRef = useRef()
|
|
20
|
-
const baseClassName = `${styles.container} ${styles.
|
|
21
|
+
const baseClassName = `${styles.container} ${paddingClass || styles.defaultPaddingClass} ` + commonStyles[`background-color-${backgroundColor}`]
|
|
21
22
|
const [wrapperClassName, setWrapperClassName] = useState(normalClassName())
|
|
22
23
|
const inputClassName = `${styles.input} ${inputTextClassName} `
|
|
23
24
|
const [isOnFocus, setIsOnFocus] = useState(false)
|
|
@@ -116,7 +117,11 @@ SearchBarV2.propTypes = {
|
|
|
116
117
|
/**
|
|
117
118
|
* inputTextClassName
|
|
118
119
|
*/
|
|
119
|
-
inputTextClassName: PropTypes.string
|
|
120
|
+
inputTextClassName: PropTypes.string,
|
|
121
|
+
/**
|
|
122
|
+
* paddingClass
|
|
123
|
+
*/
|
|
124
|
+
paddingClass: PropTypes.string
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
export default SearchBarV2
|