diff --git a/lib/src/components/data-table/__snapshots__/DataTable.test.tsx.snap b/lib/src/components/data-table/__snapshots__/DataTable.test.tsx.snap
index 0610600e5..420348890 100644
--- a/lib/src/components/data-table/__snapshots__/DataTable.test.tsx.snap
+++ b/lib/src/components/data-table/__snapshots__/DataTable.test.tsx.snap
@@ -8,6 +8,21 @@ exports[`DataTable EmptyState renders custom empty state 1`] = `
margin: 0;
}
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -48,21 +63,6 @@ exports[`DataTable EmptyState renders custom empty state 1`] = `
display: none;
}
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
-
.c-cwQMhQ {
border-collapse: separate;
border-spacing: 0;
@@ -333,24 +333,24 @@ exports[`DataTable EmptyState renders custom empty state 1`] = `
font-weight: 600;
}
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
+
.c-cwQMhQ-urYIk-size-md .c-ihQtuj,
.c-cwQMhQ-urYIk-size-md .c-jhJxGZ,
.c-cwQMhQ-urYIk-size-md .c-jwhJBv {
@@ -577,17 +577,17 @@ exports[`DataTable EmptyState renders custom empty state 1`] = `
margin-bottom: var(--space-4);
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
+
.c-cwQMhQ-illIiIE-css {
margin-bottom: var(--space-4);
}
@@ -656,11 +656,10 @@ exports[`DataTable EmptyState renders custom empty state 1`] = `
height: max-content;
}
- .c-fDzwZw-igyKUXm-css {
+ .c-fDzwZw-ijGdhFN-css {
position: absolute;
top: 50%;
transform: translateY(-50%);
- right: var(--space-1);
}
.c-dhzjXW-ibICGYT-css {
@@ -733,6 +732,21 @@ exports[`DataTable component Renders drag handles for draggable table rows 1`] =
margin: 0;
}
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -773,21 +787,6 @@ exports[`DataTable component Renders drag handles for draggable table rows 1`] =
display: none;
}
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
-
.c-cwQMhQ {
border-collapse: separate;
border-spacing: 0;
@@ -989,24 +988,24 @@ exports[`DataTable component Renders drag handles for draggable table rows 1`] =
font-weight: 600;
}
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
+
.c-cwQMhQ-urYIk-size-md .c-ihQtuj,
.c-cwQMhQ-urYIk-size-md .c-jhJxGZ,
.c-cwQMhQ-urYIk-size-md .c-jwhJBv {
@@ -1147,17 +1146,17 @@ exports[`DataTable component Renders drag handles for draggable table rows 1`] =
margin-bottom: var(--space-4);
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
+
.c-cwQMhQ-illIiIE-css {
margin-bottom: var(--space-4);
}
@@ -2240,6 +2239,21 @@ exports[`DataTable component renders 1`] = `
margin: 0;
}
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -2280,21 +2294,6 @@ exports[`DataTable component renders 1`] = `
display: none;
}
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
-
.c-cwQMhQ {
border-collapse: separate;
border-spacing: 0;
@@ -2482,24 +2481,24 @@ exports[`DataTable component renders 1`] = `
font-weight: 600;
}
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
+
.c-cwQMhQ-urYIk-size-md .c-ihQtuj,
.c-cwQMhQ-urYIk-size-md .c-jhJxGZ,
.c-cwQMhQ-urYIk-size-md .c-jwhJBv {
@@ -2606,17 +2605,17 @@ exports[`DataTable component renders 1`] = `
margin-bottom: var(--space-4);
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
+
.c-cwQMhQ-illIiIE-css {
margin-bottom: var(--space-4);
}
@@ -2677,15 +2676,9 @@ exports[`DataTable component renders 1`] = `
-
+
-
+
-
+
@@ -483,6 +483,21 @@ exports[`SearchField component renders a field with a search input - has no prog
margin: 0;
}
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -522,21 +537,6 @@ exports[`SearchField component renders a field with a search input - has no prog
.c-cNcGUX input[type="search"]::-webkit-search-results-decoration {
display: none;
}
-
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
}
@media {
@@ -562,23 +562,23 @@ exports[`SearchField component renders a field with a search input - has no prog
font-weight: 600;
}
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
}
@media {
@@ -593,16 +593,16 @@ exports[`SearchField component renders a field with a search input - has no prog
height: max-content;
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
+
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
}
diff --git a/lib/src/components/search-input/SearchInput.tsx b/lib/src/components/search-input/SearchInput.tsx
index 164f59c28..660ee0942 100644
--- a/lib/src/components/search-input/SearchInput.tsx
+++ b/lib/src/components/search-input/SearchInput.tsx
@@ -25,21 +25,21 @@ enum INPUT_ICON {
}
const StyledIcon = styled(Icon, {
- color: '$tonal300',
+ color: '$grey700',
position: 'absolute',
pointerEvents: 'none',
variants: {
size: {
sm: {
- right: '$2',
+ left: '$2',
size: '$1'
},
md: {
- right: 10,
+ left: 10,
size: 20
},
lg: {
- right: 10,
+ left: 10,
size: 20
}
}
@@ -131,8 +131,7 @@ export const SearchInput: React.FC = React.forwardRef(
css={{
position: 'absolute',
top: '50%',
- transform: 'translateY(-50%)',
- right: '$1'
+ transform: 'translateY(-50%)'
}}
onClick={handleClear}
>
@@ -143,6 +142,7 @@ export const SearchInput: React.FC = React.forwardRef(
return (
+ {getIcon()}
= React.forwardRef(
{...remainingProps}
value={innerValue}
onChange={handleOnChange}
- css={{ pr: size === 'sm' ? '$5' : '$6' }}
+ css={{ pl: size === 'sm' ? '$5' : '$6' }}
/>
- {getIcon()}
)
}
diff --git a/lib/src/components/search-input/__snapshots__/SearchInput.test.tsx.snap b/lib/src/components/search-input/__snapshots__/SearchInput.test.tsx.snap
index b02f3e5c8..a8227bf88 100644
--- a/lib/src/components/search-input/__snapshots__/SearchInput.test.tsx.snap
+++ b/lib/src/components/search-input/__snapshots__/SearchInput.test.tsx.snap
@@ -2,6 +2,21 @@
exports[`SearchInput component renders 1`] = `
@media {
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -41,41 +56,26 @@ exports[`SearchInput component renders 1`] = `
.c-cNcGUX input[type="search"]::-webkit-search-results-decoration {
display: none;
}
-
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
}
@media {
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
}
@media {
@@ -84,30 +84,25 @@ exports[`SearchInput component renders 1`] = `
height: max-content;
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
+
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
}
`;
exports[`SearchInput component renders clear button when non-empty defaultValue 1`] = `
@media {
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -166,21 +181,6 @@ exports[`SearchInput component renders clear button when non-empty defaultValue
display: none;
}
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
-
.c-fDzwZw {
align-items: center;
-webkit-appearance: none;
@@ -246,24 +246,24 @@ exports[`SearchInput component renders clear button when non-empty defaultValue
}
@media {
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
+
.c-fDzwZw-PrXKS-size-md {
height: var(--sizes-4);
width: var(--sizes-4);
@@ -301,22 +301,21 @@ exports[`SearchInput component renders clear button when non-empty defaultValue
height: max-content;
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
- .c-fDzwZw-igyKUXm-css {
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
+
+ .c-fDzwZw-ijGdhFN-css {
position: absolute;
top: 50%;
transform: translateY(-50%);
- right: var(--space-1);
}
}
@@ -324,14 +323,9 @@ exports[`SearchInput component renders clear button when non-empty defaultValue
-
+
`;
exports[`SearchInput component renders lg size 1`] = `
@media {
+ .c-dbrbZt {
+ display: inline-block;
+ fill: none;
+ stroke: currentcolor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vertical-align: middle;
+ }
+
+ .c-jTFaKU {
+ color: var(--colors-grey700);
+ position: absolute;
+ pointer-events: none;
+ }
+
.c-fZTBsJ {
-webkit-appearance: none;
appearance: none;
@@ -392,21 +406,6 @@ exports[`SearchInput component renders lg size 1`] = `
display: none;
}
- .c-dbrbZt {
- display: inline-block;
- fill: none;
- stroke: currentcolor;
- stroke-linecap: round;
- stroke-linejoin: round;
- vertical-align: middle;
- }
-
- .c-hvMhuR {
- color: var(--colors-tonal300);
- position: absolute;
- pointer-events: none;
- }
-
.c-fDzwZw {
align-items: center;
-webkit-appearance: none;
@@ -472,24 +471,24 @@ exports[`SearchInput component renders lg size 1`] = `
}
@media {
- .c-fZTBsJ-fwoCmE-size-md {
- height: var(--sizes-4);
- font-size: var(--fontSizes-md);
- line-height: 2;
- }
-
.c-dbrbZt-dMrjnF-size-md {
height: var(--sizes-2);
width: var(--sizes-2);
stroke-width: 1.75;
}
- .c-hvMhuR-koUlob-size-md {
- right: 10px;
+ .c-jTFaKU-kCbngQ-size-md {
+ left: 10px;
height: 20px;
width: 20px;
}
+ .c-fZTBsJ-fwoCmE-size-md {
+ height: var(--sizes-4);
+ font-size: var(--fontSizes-md);
+ line-height: 2;
+ }
+
.c-fDzwZw-PrXKS-size-md {
height: var(--sizes-4);
width: var(--sizes-4);
@@ -499,17 +498,17 @@ exports[`SearchInput component renders lg size 1`] = `
max-width: 250px;
}
+ .c-jTFaKU-kCbngQ-size-lg {
+ left: 10px;
+ height: 20px;
+ width: 20px;
+ }
+
.c-fZTBsJ-jAZHIx-size-lg {
height: var(--sizes-5);
font-size: var(--fontSizes-md);
line-height: 2;
}
-
- .c-hvMhuR-koUlob-size-lg {
- right: 10px;
- height: 20px;
- width: 20px;
- }
}
@media {
@@ -518,22 +517,21 @@ exports[`SearchInput component renders lg size 1`] = `
height: max-content;
}
- .c-cNcGUX-icRYcAH-css {
- padding-right: var(--space-6);
- }
-
- .c-hvMhuR-icDTsBU-css {
+ .c-jTFaKU-icDTsBU-css {
height: 20px;
width: 20px;
top: 50%;
transform: translateY(-50%);
}
- .c-fDzwZw-igyKUXm-css {
+ .c-cNcGUX-icSgxUp-css {
+ padding-left: var(--space-6);
+ }
+
+ .c-fDzwZw-ijGdhFN-css {
position: absolute;
top: 50%;
transform: translateY(-50%);
- right: var(--space-1);
}
}
@@ -541,14 +539,9 @@ exports[`SearchInput component renders lg size 1`] = `
-
+
`;