+ {startAdornment != null && (
+
{startAdornment}
+ )}
+
+ {endAdornment != null && (
+
{endAdornment}
+ )}
+
)
}
diff --git a/src/styles/_colors.scss b/src/styles/_colors.scss
index a63adb172..47ce82788 100644
--- a/src/styles/_colors.scss
+++ b/src/styles/_colors.scss
@@ -18,6 +18,7 @@ $bg-d: #cbd0d3;
$bg-c: #dde0e2;
$bg-b: #e9edef;
$bg-a: #f1f3f4;
+$bg-gray: #ececec;
$status-red: #e36857;
$status-orange: #f3980f;
$status-green: #27ae60;
diff --git a/src/styles/_device-table.scss b/src/styles/_device-table.scss
index ebd3cdd5e..22594ef0c 100644
--- a/src/styles/_device-table.scss
+++ b/src/styles/_device-table.scss
@@ -2,6 +2,10 @@
@mixin all {
.seam-device-table {
+ .seam-search-text-field {
+ width: 170px;
+ }
+
.seam-table-row {
cursor: pointer;
diff --git a/src/styles/_inputs.scss b/src/styles/_inputs.scss
index efe09069b..676b1c5f6 100644
--- a/src/styles/_inputs.scss
+++ b/src/styles/_inputs.scss
@@ -2,10 +2,82 @@
@mixin text-field {
.seam-text-field {
- padding: 0 8px;
- height: 40px;
border: 1px solid colors.$text-gray-3;
border-radius: 8px;
+ padding: 0 8px;
+ display: flex;
+ align-items: center;
+
+ &:hover {
+ border-color: colors.$text-default;
+ }
+
+ &:focus-within {
+ border-color: colors.$primary;
+ }
+
+ &.seam-disabled {
+ border-color: colors.$text-gray-3;
+ background: colors.$bg-gray;
+ cursor: not-allowed;
+
+ .seam-text-field-input {
+ cursor: not-allowed;
+ }
+ }
+
+ .seam-text-field-input {
+ height: 40px;
+ border: 0;
+
+ &:focus {
+ outline: none;
+ }
+ }
+
+ .seam-adornment {
+ display: flex;
+ align-items: center;
+
+ svg {
+ scale: 0.8333;
+ }
+
+ &.seam-start {
+ margin-right: 4px;
+ }
+
+ button {
+ width: 24px;
+ height: 24px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ appearance: none;
+ background-color: transparent;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ box-shadow: none;
+ border-radius: 4px;
+ cursor: pointer;
+
+ &:hover {
+ background-color: colors.$bg-b;
+ }
+
+ &.seam-hidden {
+ opacity: 0;
+ visibility: hidden;
+ }
+ }
+ }
+
+ &.seam-search-text-field {
+ .seam-text-field-input {
+ width: 100%;
+ }
+ }
}
}
diff --git a/src/styles/_tables.scss b/src/styles/_tables.scss
index 48f555f58..a7d12a20b 100644
--- a/src/styles/_tables.scss
+++ b/src/styles/_tables.scss
@@ -4,9 +4,16 @@
.seam-table-header {
display: flex;
justify-content: space-between;
- align-items: center;
+ align-items: flex-start;
height: 56px;
padding: 0 16px;
+
+ .seam-body {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ }
}
.seam-table-title {