@julseb-lib/react 0.0.77 → 0.0.79
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/dist/index.cjs.js +9 -9
- package/dist/index.es.js +267 -266
- package/dist/index.umd.js +90 -90
- package/dist/lib/components/InputComponents/components/InputIcon.tsx +7 -0
- package/dist/lib/components/Table/styles.tsx +4 -4
- package/dist/lib/components/Tabs/styles.tsx +3 -3
- package/dist/lib/context/Theme.context.tsx +3 -1
- package/package.json +1 -1
|
@@ -43,6 +43,13 @@ export const InputIcon = ({
|
|
|
43
43
|
data-testid={testid && `${testid}.IconContainer.Icon`}
|
|
44
44
|
className={className && "IconLeft"}
|
|
45
45
|
icon={icon}
|
|
46
|
+
color={
|
|
47
|
+
validationStatus === false
|
|
48
|
+
? "danger"
|
|
49
|
+
: disabled
|
|
50
|
+
? "gray"
|
|
51
|
+
: "primary"
|
|
52
|
+
}
|
|
46
53
|
size={iconSize}
|
|
47
54
|
baseUrl={iconBaseUrl}
|
|
48
55
|
/>
|
|
@@ -49,21 +49,21 @@ const StyledTable = styled.table<{
|
|
|
49
49
|
thead {
|
|
50
50
|
background-color: ${({ theme }) => theme.PRIMARY_500};
|
|
51
51
|
text-align: left;
|
|
52
|
-
color: ${({ theme }) => theme.
|
|
52
|
+
color: ${({ theme }) => theme.WHITE};
|
|
53
53
|
|
|
54
54
|
&& {
|
|
55
55
|
a {
|
|
56
56
|
color: ${({ theme }) =>
|
|
57
|
-
Mixins.ColorsHoverDefault("
|
|
57
|
+
Mixins.ColorsHoverDefault("white", theme)};
|
|
58
58
|
|
|
59
59
|
&:hover {
|
|
60
60
|
color: ${({ theme }) =>
|
|
61
|
-
Mixins.ColorsHoverHover("
|
|
61
|
+
Mixins.ColorsHoverHover("white", theme)};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&:active {
|
|
65
65
|
color: ${({ theme }) =>
|
|
66
|
-
Mixins.ColorsHoverActive("
|
|
66
|
+
Mixins.ColorsHoverActive("white", theme)};
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -127,7 +127,7 @@ const StyledTabButton = styled.button<{
|
|
|
127
127
|
"primary",
|
|
128
128
|
theme
|
|
129
129
|
)};
|
|
130
|
-
color: ${theme.
|
|
130
|
+
color: ${theme.WHITE};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&:active {
|
|
@@ -135,11 +135,11 @@ const StyledTabButton = styled.button<{
|
|
|
135
135
|
"primary",
|
|
136
136
|
theme
|
|
137
137
|
)};
|
|
138
|
-
}
|
|
138
|
+
}()
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
&.Active {
|
|
142
|
-
color: ${theme.
|
|
142
|
+
color: ${theme.WHITE};
|
|
143
143
|
background-color: ${Mixins.ColorsHoverDefault(
|
|
144
144
|
"primary",
|
|
145
145
|
theme
|
|
@@ -54,10 +54,12 @@ export const ThemeProviderWrapper = ({
|
|
|
54
54
|
if (
|
|
55
55
|
window.matchMedia &&
|
|
56
56
|
window.matchMedia("(prefers-color-scheme: dark)").matches &&
|
|
57
|
-
!selectedTheme
|
|
57
|
+
!selectedTheme &&
|
|
58
|
+
!localStorage.getItem("theme")
|
|
58
59
|
) {
|
|
59
60
|
setSelectedTheme("dark")
|
|
60
61
|
setTheme(Themes.dark)
|
|
62
|
+
localStorage.setItem("theme", "dark")
|
|
61
63
|
body.classList.add("dark")
|
|
62
64
|
} else if (
|
|
63
65
|
!localStorage.getItem("theme") ||
|