@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
|
@@ -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
|
-
|
|
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,
|