@redis-ui/styles 21.3.0 → 21.4.0

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.
@@ -1,5 +1,6 @@
1
1
  import { tokens } from '../../tokens';
2
- import icon from '../assets/Moon.svg';
2
+ import sunIcon from '../assets/Sun.svg';
3
+ import moonIcon from '../assets/Moon.svg';
3
4
  const theme = {
4
5
  width: '3.6rem',
5
6
  height: '2.2rem',
@@ -9,10 +10,14 @@ const theme = {
9
10
  borderColor: tokens.semantic.color.border.transparent,
10
11
  bgColor: tokens.semantic.color.background.secondary700,
11
12
  thumb: {
12
- icon: `url("${icon}")`,
13
+ icon: `url("${moonIcon}")`,
13
14
  iconAspectRatio: '1/1',
14
15
  borderRadius: '0',
15
16
  bgColor: 'transparent'
17
+ },
18
+ modeIcon: {
19
+ light: `url("${sunIcon}")`,
20
+ dark: `url("${moonIcon}")`
16
21
  }
17
22
  };
18
23
  export default theme;
@@ -1,5 +1,6 @@
1
1
  import { tokens } from '../../tokens';
2
- import icon from '../assets/Moon.svg';
2
+ import sunIcon from '../assets/Sun.svg';
3
+ import moonIcon from '../assets/Moon.svg';
3
4
  const theme = {
4
5
  width: '3.6rem',
5
6
  height: '2.2rem',
@@ -9,10 +10,14 @@ const theme = {
9
10
  borderColor: tokens.semantic.color.border.transparent,
10
11
  bgColor: tokens.semantic.color.background.secondary700,
11
12
  thumb: {
12
- icon: `url("${icon}")`,
13
+ icon: `url("${moonIcon}")`,
13
14
  iconAspectRatio: '1/1',
14
15
  borderRadius: '0',
15
16
  bgColor: 'transparent'
17
+ },
18
+ modeIcon: {
19
+ light: `url("${sunIcon}")`,
20
+ dark: `url("${moonIcon}")`
16
21
  }
17
22
  };
18
23
  export default theme;
@@ -1,5 +1,6 @@
1
1
  import { tokens } from '../../tokens';
2
- import icon from '../assets/Sun.svg';
2
+ import sunIcon from '../assets/Sun.svg';
3
+ import moonIcon from '../assets/Moon.svg';
3
4
  const theme = {
4
5
  width: '3.6rem',
5
6
  height: '2.2rem',
@@ -9,10 +10,14 @@ const theme = {
9
10
  borderColor: tokens.semantic.color.border.transparent,
10
11
  bgColor: tokens.semantic.color.background.secondary200,
11
12
  thumb: {
12
- icon: `url("${icon}")`,
13
+ icon: `url("${sunIcon}")`,
13
14
  iconAspectRatio: '1/1',
14
15
  borderRadius: '0',
15
16
  bgColor: 'transparent'
17
+ },
18
+ modeIcon: {
19
+ light: `url("${sunIcon}")`,
20
+ dark: `url("${moonIcon}")`
16
21
  }
17
22
  };
18
23
  export default theme;
@@ -1,5 +1,6 @@
1
1
  import { tokens } from '../../tokens';
2
- import icon from '../assets/Sun.svg';
2
+ import sunIcon from '../assets/Sun.svg';
3
+ import moonIcon from '../assets/Moon.svg';
3
4
  const theme = {
4
5
  width: '3.6rem',
5
6
  height: '2.2rem',
@@ -9,10 +10,14 @@ const theme = {
9
10
  borderColor: tokens.semantic.color.border.transparent,
10
11
  bgColor: tokens.semantic.color.background.secondary200,
11
12
  thumb: {
12
- icon: `url("${icon}")`,
13
+ icon: `url("${sunIcon}")`,
13
14
  iconAspectRatio: '1/1',
14
15
  borderRadius: '0',
15
16
  bgColor: 'transparent'
17
+ },
18
+ modeIcon: {
19
+ light: `url("${sunIcon}")`,
20
+ dark: `url("${moonIcon}")`
16
21
  }
17
22
  };
18
23
  export default theme;
@@ -12,4 +12,9 @@ export type ThemeModeSwitchTheme = {
12
12
  borderRadius: string;
13
13
  bgColor: string;
14
14
  };
15
+ /** Icon standing for each theme mode, for controls that show a mode other than the active one. */
16
+ modeIcon: {
17
+ light: string;
18
+ dark: string;
19
+ };
15
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "21.3.0",
4
+ "version": "21.4.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [