@platformatic/ui-components 0.1.139 → 0.1.140

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.1.139",
4
+ "version": "0.1.140",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -14,7 +14,8 @@
14
14
  }
15
15
  .afterInputIcon,
16
16
  .beforeInputIcon {
17
- @apply absolute top-[50%] translate-y-[-50%] z-20;
17
+ @apply absolute top-[50%] z-20;
18
+ transform: translateY(-50%);
18
19
  }
19
20
  .beforeInputIcon {
20
21
  @apply left-0 ml-2
@@ -8,7 +8,8 @@
8
8
  @apply border border-solid box-border rounded-md px-2 py-2.5;
9
9
  }
10
10
  .afterInputIcon {
11
- @apply absolute top-[50%] translate-y-[-50%] z-10 ;
11
+ @apply absolute top-[50%] z-10 ;
12
+ transform: translateY(-50%);
12
13
  }
13
14
  .afterInputIcon {
14
15
  @apply right-0 mr-2
@@ -112,7 +112,7 @@ function Select ({
112
112
  }}
113
113
  >
114
114
  <div className={styles.liContent}>
115
- {option.iconName && <PlatformaticIcon iconName={option.iconName} color={mainColor} size={SMALL} onClick={null} />}
115
+ {option.iconName && <PlatformaticIcon iconName={option.iconName} color={option.iconColor || mainColor} size={option.iconSize ?? SMALL} onClick={null} />}
116
116
  <span className={optionSpanClassName}>{option.label}</span>
117
117
  </div>
118
118
  {option.descriptionValue && <span className={`${optionSpanClassName} ${styles.descriptionValue}`}>{option.descriptionValue}</span>}
@@ -212,7 +212,9 @@ Select.propTypes = {
212
212
  PropTypes.string,
213
213
  PropTypes.number
214
214
  ]),
215
- icon: PropTypes.string,
215
+ iconName: PropTypes.string,
216
+ iconSize: PropTypes.string,
217
+ iconColor: PropTypes.string,
216
218
  notSelectable: PropTypes.bool,
217
219
  notFilterable: PropTypes.bool,
218
220
  onClick: PropTypes.func,