@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@platformatic/ui-components",
3
3
  "description": "Platformatic UI Components",
4
- "version": "0.7.24",
4
+ "version": "0.7.25",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -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.wrapperPadding} ` + commonStyles[`background-color-${backgroundColor}`]
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
@@ -24,7 +24,7 @@
24
24
  .clearContainer {
25
25
  @apply absolute right-[1rem];
26
26
  }
27
- .wrapperPadding {
27
+ .defaultPaddingClass {
28
28
  @apply px-2 py-1.5 md:px-3 md:py-[8.5px];
29
29
  }
30
30