@platformatic/ui-components 0.6.2 → 0.6.4
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
|
@@ -84,7 +84,7 @@ function ButtonOnlyIcon ({
|
|
|
84
84
|
return (
|
|
85
85
|
<button className={`${baseButtonClassName} ${buttonClassName} ${restClassName()}`} disabled={disabled} alt={altLabel} {...rest} onMouseLeave={() => setHover(false)} onMouseOver={() => setHover(true)}>
|
|
86
86
|
<div className={`${contentClassName} ${backgroundClassName}`}>
|
|
87
|
-
{platformaticIcon ? <PlatformaticIcon key='center' iconName={platformaticIcon.iconName} color={platformaticIcon.color} data-testid='button-icon' size={MEDIUM} onClick={null} disabled={disabled} /> : null}
|
|
87
|
+
{platformaticIcon ? <PlatformaticIcon key='center' iconName={platformaticIcon.iconName} color={platformaticIcon.color} data-testid='button-icon' size={platformaticIcon?.size ?? MEDIUM} onClick={null} disabled={disabled} /> : null}
|
|
88
88
|
</div>
|
|
89
89
|
</button>
|
|
90
90
|
)
|
|
@@ -136,7 +136,8 @@ ButtonOnlyIcon.propTypes = {
|
|
|
136
136
|
*/
|
|
137
137
|
platformaticIcon: PropTypes.shape({
|
|
138
138
|
iconName: PropTypes.string,
|
|
139
|
-
color: PropTypes.string
|
|
139
|
+
color: PropTypes.string,
|
|
140
|
+
size: PropTypes.string
|
|
140
141
|
}),
|
|
141
142
|
/**
|
|
142
143
|
* Selected: default false
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.checkbox--white {
|
|
14
|
-
@apply border-
|
|
14
|
+
@apply border-white bg-rich-black
|
|
15
15
|
}
|
|
16
16
|
.checkbox--white:checked {
|
|
17
|
-
@apply bg-
|
|
17
|
+
@apply bg-rich-black text-white;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
19
|
.checkbox--main-dark-blue:checked:after,
|
|
21
20
|
.checkbox--white:checked:after {
|
|
22
|
-
@apply absolute
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
@apply absolute h-full w-full;
|
|
22
|
+
top: -4.5px;
|
|
23
|
+
left: 1.5px;
|
|
24
|
+
content: url('data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%229%22%20viewBox%3D%220%200%2013%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%204L5%208L12%201%22%20stroke%3D%22white%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.disabled {
|