@platformatic/ui-components 0.1.135 → 0.1.137
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
|
@@ -22,7 +22,7 @@ function Button ({
|
|
|
22
22
|
selected,
|
|
23
23
|
...rest
|
|
24
24
|
}) {
|
|
25
|
-
|
|
25
|
+
let containerClassName = `${styles.container} ${styles['color-' + color]} ${commonStyles['background-color-' + backgroundColor]} `
|
|
26
26
|
let buttonClassName = classes
|
|
27
27
|
buttonClassName += ` ${styles.button} ${commonStyles['background-color-' + backgroundColor]} ${styles['color-' + color]} ${styles['button-' + size]}`
|
|
28
28
|
if (!bordered) buttonClassName += ` ${styles['no-border']}`
|
|
@@ -44,7 +44,10 @@ function Button ({
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
if (bold) buttonClassName += ` ${styles.fontBold}`
|
|
47
|
-
if (fullWidth)
|
|
47
|
+
if (fullWidth) {
|
|
48
|
+
buttonClassName += ` ${styles.fullWidth}`
|
|
49
|
+
containerClassName += ` ${styles.fullWidth}`
|
|
50
|
+
}
|
|
48
51
|
if (selected) buttonClassName += ' ' + commonStyles[`selected-background-color-${color}`]
|
|
49
52
|
return (
|
|
50
53
|
<div className={containerClassName}>
|
|
@@ -173,8 +173,8 @@ function Select ({
|
|
|
173
173
|
<div className={styles.selectContainer}>
|
|
174
174
|
<input type='text' name={name} value={value} className={wrapperClassName} ref={inputRef} onChange={onChange} disabled={disabled} placeholder={placeholder} onFocus={() => handleFocus()} onBlur={(e) => handleBlur(e)} />
|
|
175
175
|
<div className={styles.icons}>
|
|
176
|
-
{value?.length > 0 && <PlatformaticIcon iconName='CloseIcon' color={borderColor} onClick={() => clearValue()} />}
|
|
177
|
-
<PlatformaticIcon iconName={showOptions ? 'ArrowUpIcon' : 'ArrowDownIcon'} color={borderColor} onClick={() => disabled ? null : setShowOptions(!showOptions)} />
|
|
176
|
+
{value?.length > 0 && <PlatformaticIcon iconName='CloseIcon' color={borderColor} onClick={() => clearValue()} size={SMALL} />}
|
|
177
|
+
<PlatformaticIcon iconName={showOptions ? 'ArrowUpIcon' : 'ArrowDownIcon'} color={borderColor} onClick={() => disabled ? null : setShowOptions(!showOptions)} size={SMALL} />
|
|
178
178
|
</div>
|
|
179
179
|
</div>
|
|
180
180
|
{showOptions && !showError && renderOptions()}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
@apply flex flex-col w-full relative
|
|
2
|
+
@apply flex flex-col w-full relative
|
|
3
3
|
}
|
|
4
4
|
.selectContainer {
|
|
5
|
-
@apply w-full flex items-center
|
|
5
|
+
@apply w-full flex items-center relative z-10;
|
|
6
6
|
}
|
|
7
7
|
.select {
|
|
8
|
-
@apply px-2 h-full border border-solid box-border rounded-md ;
|
|
8
|
+
@apply px-2 h-full border border-solid box-border rounded-md py-1.5;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.select-main-dark-blue.active,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
.select-white.active,
|
|
16
16
|
.select-white:focus {
|
|
17
|
-
@apply
|
|
17
|
+
@apply outline-none;
|
|
18
18
|
}
|
|
19
19
|
.options {
|
|
20
20
|
@apply absolute left-0 top-[42px] w-full max-h-[216px] overflow-y-scroll z-20;
|