@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.
@@ -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.BACKGROUND};
52
+ color: ${({ theme }) => theme.WHITE};
53
53
 
54
54
  && {
55
55
  a {
56
56
  color: ${({ theme }) =>
57
- Mixins.ColorsHoverDefault("background", theme)};
57
+ Mixins.ColorsHoverDefault("white", theme)};
58
58
 
59
59
  &:hover {
60
60
  color: ${({ theme }) =>
61
- Mixins.ColorsHoverHover("background", theme)};
61
+ Mixins.ColorsHoverHover("white", theme)};
62
62
  }
63
63
 
64
64
  &:active {
65
65
  color: ${({ theme }) =>
66
- Mixins.ColorsHoverActive("background", theme)};
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.BACKGROUND};
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.BACKGROUND};
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") ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julseb-lib/react",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {