@redis-ui/styles 16.4.4 → 17.0.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,120 +1,81 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
- collapsed: {
4
- bgColor: tokens.semantic.color.background.neutral100,
5
- shadow: 'none',
6
- width: '5.8rem',
7
- borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
8
- divider: {
9
- color: tokens.semantic.color.background.neutral400,
10
- thickness: '1px',
11
- blockMargin: '2rem',
12
- sidePadding: '0'
13
- },
14
- button: {
15
- height: '3.6rem',
16
- width: '3.6rem',
17
- tooltip: {
18
- textColor: tokens.semantic.color.text.neutral700
19
- }
3
+ bgColor: tokens.semantic.color.background.neutral100,
4
+ borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
5
+ divider: {
6
+ color: tokens.semantic.color.background.neutral400
7
+ },
8
+ button: {
9
+ tooltip: {
10
+ textColor: tokens.semantic.color.text.neutral700
11
+ }
12
+ },
13
+ collapseButton: {
14
+ border: {
15
+ collapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
16
+ expanded: `none`
20
17
  },
21
- collapseButton: {
22
- size: '2.2rem',
23
- borderRadius: '100%',
24
- borderCollapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
25
- borderExpanded: `none`,
26
- filterShadow: 'none',
27
- iconColor: tokens.semantic.color.icon.neutral800,
28
- rightCollapsed: 'calc(2.2rem * -0.45)',
29
- rightExpanded: '1.6rem'
18
+ filterShadow: 'none',
19
+ iconColor: tokens.semantic.color.icon.neutral800,
20
+ right: {
21
+ collapsed: 'calc(2.2rem * -0.45)',
22
+ expanded: '1.6rem'
23
+ }
24
+ },
25
+ header: {
26
+ dividerColor: tokens.semantic.color.border.neutral400
27
+ },
28
+ footer: {
29
+ dividerColor: tokens.semantic.color.background.neutral700,
30
+ link: {
31
+ textColor: tokens.semantic.color.text.neutral700
30
32
  },
31
- header: {
32
- height: '7rem',
33
- dividerColor: tokens.semantic.color.border.neutral400,
34
- margin: '0 0 3rem 0'
33
+ text: {
34
+ textColor: tokens.semantic.color.text.neutral700
35
35
  },
36
- footer: {
37
- dividerColor: tokens.semantic.color.background.neutral700,
38
- link: {
39
- textColor: tokens.semantic.color.text.neutral700
40
- },
41
- text: {
42
- textColor: tokens.semantic.color.text.neutral700
36
+ meta: {
37
+ visibility: {
38
+ collapsed: 'hidden',
39
+ expanded: 'visible'
43
40
  },
44
- meta: {
45
- padding: '0 1.8rem 2rem 1.8rem',
46
- visibility: 'hidden',
47
- whiteSpace: 'nowrap'
41
+ whiteSpace: {
42
+ collapsed: 'nowrap',
43
+ expanded: 'normal'
48
44
  }
49
- },
50
- item: {
51
- margin: '0.2rem 0.5rem 0.2rem 1rem',
52
- height: '3.2rem',
53
- padding: '0 0.8rem',
54
- gap: '0.8rem',
55
- borderRadius: '0.4rem',
56
- itemWithButtonOffset: '1.8rem',
57
- states: {
58
- normal: {
59
- textColor: tokens.semantic.color.text.neutral700,
60
- bgColor: 'transparent'
61
- },
62
- hover: {
63
- textColor: tokens.semantic.color.text.neutral100,
64
- bgColor: tokens.semantic.color.background.neutral950
65
- },
66
- active: {
67
- textColor: tokens.semantic.color.text.secondary800,
68
- bgColor: tokens.semantic.color.background.secondary200
69
- },
70
- activeHover: {
71
- textColor: tokens.semantic.color.text.primary600
72
- }
45
+ }
46
+ },
47
+ item: {
48
+ states: {
49
+ normal: {
50
+ textColor: tokens.semantic.color.text.neutral700,
51
+ bgColor: 'transparent'
73
52
  },
74
- tooltip: {
75
- textColor: tokens.semantic.color.text.neutral700
53
+ hover: {
54
+ textColor: tokens.semantic.color.text.neutral100,
55
+ bgColor: tokens.semantic.color.background.neutral950
76
56
  },
77
- button: {
78
- bgColor: tokens.semantic.color.background.primary400,
79
- borderColor: tokens.semantic.color.border.secondary800,
80
- borderSize: '1px',
81
- textColor: tokens.semantic.color.text.secondary800
57
+ active: {
58
+ textColor: tokens.semantic.color.text.secondary800,
59
+ bgColor: tokens.semantic.color.background.secondary200
82
60
  },
83
- activeIndicator: {
84
- left: '-1rem',
85
- top: '0.5rem',
86
- bottom: '0.5rem',
87
- width: '3px',
88
- bgColor: tokens.semantic.color.background.danger500,
89
- borderRadius: '0 2px 2px 0'
61
+ activeHover: {
62
+ textColor: tokens.semantic.color.text.primary600
90
63
  }
91
64
  },
92
- logo: {
93
- offset: '1.6rem'
94
- },
95
- groupTitle: {
96
- padding: '1.4rem 1.6rem 0.4rem',
97
- textColor: tokens.semantic.color.text.secondary500
98
- }
99
- },
100
- expanded: {
101
- width: '20rem',
102
- divider: {
103
- sidePadding: '1rem'
104
- },
105
- button: { width: '14.5rem' },
106
- logo: {
107
- offset: '1.6rem'
65
+ tooltip: {
66
+ textColor: tokens.semantic.color.text.neutral700
108
67
  },
109
- header: {
110
- dividerColor: tokens.semantic.color.border.neutral400
68
+ button: {
69
+ bgColor: tokens.semantic.color.background.primary400,
70
+ borderColor: tokens.semantic.color.border.secondary800,
71
+ textColor: tokens.semantic.color.text.secondary800
111
72
  },
112
- footer: {
113
- meta: {
114
- visibility: 'visible',
115
- whiteSpace: 'normal'
116
- }
73
+ activeIndicator: {
74
+ bgColor: tokens.semantic.color.background.danger500
117
75
  }
76
+ },
77
+ groupTitle: {
78
+ textColor: tokens.semantic.color.text.secondary500
118
79
  }
119
80
  };
120
81
  export default theme;
@@ -1,120 +1,81 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
- collapsed: {
4
- bgColor: tokens.semantic.color.background.secondary950,
5
- shadow: 'none',
6
- width: '5.8rem',
7
- borderRight: `1px solid ${tokens.semantic.color.border.secondary800}`,
8
- divider: {
9
- color: tokens.semantic.color.background.secondary800,
10
- thickness: '1px',
11
- blockMargin: '2rem',
12
- sidePadding: '0'
13
- },
14
- button: {
15
- height: '3.6rem',
16
- width: '3.6rem',
17
- tooltip: {
18
- textColor: tokens.semantic.color.text.secondary200
19
- }
3
+ bgColor: tokens.semantic.color.background.secondary950,
4
+ borderRight: `1px solid ${tokens.semantic.color.border.secondary800}`,
5
+ divider: {
6
+ color: tokens.semantic.color.background.secondary800
7
+ },
8
+ button: {
9
+ tooltip: {
10
+ textColor: tokens.semantic.color.text.secondary200
11
+ }
12
+ },
13
+ collapseButton: {
14
+ border: {
15
+ collapsed: `1px solid ${tokens.semantic.color.border.secondary800}`,
16
+ expanded: `none`
20
17
  },
21
- collapseButton: {
22
- size: '2.2rem',
23
- borderRadius: '100%',
24
- borderCollapsed: `1px solid ${tokens.semantic.color.border.secondary800}`,
25
- borderExpanded: `none`,
26
- filterShadow: 'none',
27
- iconColor: tokens.semantic.color.icon.primary0,
28
- rightCollapsed: 'calc(2.2rem * -0.45)',
29
- rightExpanded: '1.6rem'
18
+ filterShadow: 'none',
19
+ iconColor: tokens.semantic.color.icon.primary0,
20
+ right: {
21
+ collapsed: 'calc(2.2rem * -0.45)',
22
+ expanded: '1.6rem'
23
+ }
24
+ },
25
+ header: {
26
+ dividerColor: tokens.semantic.color.border.secondary800
27
+ },
28
+ footer: {
29
+ dividerColor: tokens.semantic.color.background.secondary600,
30
+ link: {
31
+ textColor: tokens.semantic.color.text.secondary600
30
32
  },
31
- header: {
32
- height: '7rem',
33
- dividerColor: tokens.semantic.color.border.secondary800,
34
- margin: '0 0 3rem 0'
33
+ text: {
34
+ textColor: tokens.semantic.color.text.secondary600
35
35
  },
36
- footer: {
37
- dividerColor: tokens.semantic.color.background.secondary600,
38
- link: {
39
- textColor: tokens.semantic.color.text.secondary600
36
+ meta: {
37
+ visibility: {
38
+ collapsed: 'hidden',
39
+ expanded: 'visible'
40
40
  },
41
- text: {
42
- textColor: tokens.semantic.color.text.secondary600
43
- },
44
- meta: {
45
- padding: '0 1.8rem 2rem 1.8rem',
46
- visibility: 'hidden',
47
- whiteSpace: 'nowrap'
41
+ whiteSpace: {
42
+ collapsed: 'nowrap',
43
+ expanded: 'normal'
48
44
  }
49
- },
50
- item: {
51
- margin: '0.2rem 0.5rem 0.2rem 1rem',
52
- height: '3.2rem',
53
- padding: '0 0.8rem',
54
- gap: '0.8rem',
55
- borderRadius: '0.4rem',
56
- itemWithButtonOffset: '1.8rem',
57
- states: {
58
- normal: {
59
- textColor: tokens.semantic.color.text.secondary300,
60
- bgColor: 'transparent'
61
- },
62
- hover: {
63
- textColor: tokens.semantic.color.text.secondary200,
64
- bgColor: tokens.semantic.color.background.secondary700
65
- },
66
- active: {
67
- textColor: tokens.semantic.color.text.secondary50,
68
- bgColor: tokens.semantic.color.background.primary950
69
- },
70
- activeHover: {
71
- textColor: tokens.semantic.color.text.secondary300
72
- }
45
+ }
46
+ },
47
+ item: {
48
+ states: {
49
+ normal: {
50
+ textColor: tokens.semantic.color.text.secondary300,
51
+ bgColor: 'transparent'
73
52
  },
74
- tooltip: {
75
- textColor: tokens.semantic.color.text.secondary300
53
+ hover: {
54
+ textColor: tokens.semantic.color.text.secondary200,
55
+ bgColor: tokens.semantic.color.background.secondary700
76
56
  },
77
- button: {
78
- bgColor: tokens.semantic.color.background.primary400,
79
- borderColor: tokens.semantic.color.border.primary400,
80
- borderSize: '1px',
81
- textColor: tokens.semantic.color.text.secondary50
57
+ active: {
58
+ textColor: tokens.semantic.color.text.secondary50,
59
+ bgColor: tokens.semantic.color.background.primary950
82
60
  },
83
- activeIndicator: {
84
- left: '-1rem',
85
- top: '0.5rem',
86
- bottom: '0.5rem',
87
- width: '3px',
88
- bgColor: tokens.semantic.color.background.danger500,
89
- borderRadius: '0 2px 2px 0'
61
+ activeHover: {
62
+ textColor: tokens.semantic.color.text.secondary300
90
63
  }
91
64
  },
92
- logo: {
93
- offset: '1.6rem'
65
+ tooltip: {
66
+ textColor: tokens.semantic.color.text.secondary300
94
67
  },
95
- groupTitle: {
96
- padding: '1.4rem 1.6rem 0.4rem',
97
- textColor: tokens.semantic.color.text.secondary500
98
- }
99
- },
100
- expanded: {
101
- width: '20rem',
102
- divider: {
103
- sidePadding: '1rem'
104
- },
105
- button: { width: '14.5rem' },
106
- logo: {
107
- offset: '1.6rem'
108
- },
109
- header: {
110
- dividerColor: tokens.semantic.color.border.secondary800
68
+ button: {
69
+ bgColor: tokens.semantic.color.background.primary400,
70
+ borderColor: tokens.semantic.color.border.primary400,
71
+ textColor: tokens.semantic.color.text.secondary50
111
72
  },
112
- footer: {
113
- meta: {
114
- visibility: 'visible',
115
- whiteSpace: 'normal'
116
- }
73
+ activeIndicator: {
74
+ bgColor: tokens.semantic.color.background.danger500
117
75
  }
76
+ },
77
+ groupTitle: {
78
+ textColor: tokens.semantic.color.text.secondary500
118
79
  }
119
80
  };
120
81
  export default theme;
@@ -1,120 +1,81 @@
1
1
  import { tokens } from '../../tokens';
2
2
  const theme = {
3
- collapsed: {
4
- bgColor: tokens.semantic.color.background.neutral300,
5
- shadow: 'none',
6
- width: '5.8rem',
7
- borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
8
- divider: {
9
- color: tokens.semantic.color.background.neutral400,
10
- thickness: '1px',
11
- blockMargin: '2rem',
12
- sidePadding: '0'
13
- },
14
- button: {
15
- height: '3.6rem',
16
- width: '3.6rem',
17
- tooltip: {
18
- textColor: tokens.semantic.color.text.neutral700
19
- }
3
+ bgColor: tokens.semantic.color.background.neutral300,
4
+ borderRight: `1px solid ${tokens.semantic.color.border.primary100}`,
5
+ divider: {
6
+ color: tokens.semantic.color.background.neutral400
7
+ },
8
+ button: {
9
+ tooltip: {
10
+ textColor: tokens.semantic.color.text.neutral700
11
+ }
12
+ },
13
+ collapseButton: {
14
+ border: {
15
+ collapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
16
+ expanded: `none`
20
17
  },
21
- collapseButton: {
22
- size: '2.2rem',
23
- borderRadius: '100%',
24
- borderCollapsed: `1px solid ${tokens.semantic.color.border.primary100}`,
25
- borderExpanded: `none`,
26
- filterShadow: 'none',
27
- iconColor: tokens.semantic.color.icon.neutral800,
28
- rightCollapsed: 'calc(2.2rem * -0.45)',
29
- rightExpanded: '1.6rem'
18
+ filterShadow: 'none',
19
+ iconColor: tokens.semantic.color.icon.neutral800,
20
+ right: {
21
+ collapsed: 'calc(2.2rem * -0.45)',
22
+ expanded: '1.6rem'
23
+ }
24
+ },
25
+ header: {
26
+ dividerColor: tokens.semantic.color.border.neutral400
27
+ },
28
+ footer: {
29
+ dividerColor: tokens.semantic.color.background.neutral700,
30
+ link: {
31
+ textColor: tokens.semantic.color.text.neutral700
30
32
  },
31
- header: {
32
- height: '7rem',
33
- dividerColor: tokens.semantic.color.border.neutral400,
34
- margin: '0 0 3rem 0'
33
+ text: {
34
+ textColor: tokens.semantic.color.text.neutral700
35
35
  },
36
- footer: {
37
- dividerColor: tokens.semantic.color.background.neutral700,
38
- link: {
39
- textColor: tokens.semantic.color.text.neutral700
40
- },
41
- text: {
42
- textColor: tokens.semantic.color.text.neutral700
36
+ meta: {
37
+ visibility: {
38
+ collapsed: 'hidden',
39
+ expanded: 'visible'
43
40
  },
44
- meta: {
45
- padding: '0 1.8rem 2rem 1.8rem',
46
- visibility: 'hidden',
47
- whiteSpace: 'nowrap'
41
+ whiteSpace: {
42
+ collapsed: 'nowrap',
43
+ expanded: 'normal'
48
44
  }
49
- },
50
- item: {
51
- margin: '0.2rem 0.5rem 0.2rem 1rem',
52
- height: '3.2rem',
53
- padding: '0 0.8rem',
54
- gap: '0.8rem',
55
- borderRadius: '0.4rem',
56
- itemWithButtonOffset: '1.8rem',
57
- states: {
58
- normal: {
59
- textColor: tokens.semantic.color.text.secondary800,
60
- bgColor: 'transparent'
61
- },
62
- hover: {
63
- textColor: tokens.semantic.color.text.secondary800,
64
- bgColor: tokens.semantic.color.background.secondary200
65
- },
66
- active: {
67
- textColor: tokens.semantic.color.text.secondary100,
68
- bgColor: tokens.semantic.color.background.secondary800
69
- },
70
- activeHover: {
71
- textColor: tokens.semantic.color.text.primary600
72
- }
45
+ }
46
+ },
47
+ item: {
48
+ states: {
49
+ normal: {
50
+ textColor: tokens.semantic.color.text.secondary800,
51
+ bgColor: 'transparent'
73
52
  },
74
- tooltip: {
75
- textColor: tokens.semantic.color.text.neutral700
53
+ hover: {
54
+ textColor: tokens.semantic.color.text.secondary800,
55
+ bgColor: tokens.semantic.color.background.secondary200
76
56
  },
77
- button: {
78
- bgColor: tokens.semantic.color.background.primary200,
79
- borderColor: tokens.semantic.color.border.secondary800,
80
- borderSize: '1px',
81
- textColor: tokens.semantic.color.text.secondary800
57
+ active: {
58
+ textColor: tokens.semantic.color.text.secondary100,
59
+ bgColor: tokens.semantic.color.background.secondary800
82
60
  },
83
- activeIndicator: {
84
- left: '-1rem',
85
- top: '0.5rem',
86
- bottom: '0.5rem',
87
- width: '3px',
88
- bgColor: tokens.semantic.color.background.danger500,
89
- borderRadius: '0 2px 2px 0'
61
+ activeHover: {
62
+ textColor: tokens.semantic.color.text.primary600
90
63
  }
91
64
  },
92
- logo: {
93
- offset: '1.6rem'
94
- },
95
- groupTitle: {
96
- padding: '1.4rem 1.6rem 0.4rem',
97
- textColor: tokens.semantic.color.text.secondary500
98
- }
99
- },
100
- expanded: {
101
- width: '20rem',
102
- divider: {
103
- sidePadding: '1rem'
104
- },
105
- button: { width: '14.5rem' },
106
- logo: {
107
- offset: '1.6rem'
65
+ tooltip: {
66
+ textColor: tokens.semantic.color.text.neutral700
108
67
  },
109
- header: {
110
- dividerColor: tokens.semantic.color.border.neutral400
68
+ button: {
69
+ bgColor: tokens.semantic.color.background.primary200,
70
+ borderColor: tokens.semantic.color.border.secondary800,
71
+ textColor: tokens.semantic.color.text.secondary800
111
72
  },
112
- footer: {
113
- meta: {
114
- visibility: 'visible',
115
- whiteSpace: 'normal'
116
- }
73
+ activeIndicator: {
74
+ bgColor: tokens.semantic.color.background.danger500
117
75
  }
76
+ },
77
+ groupTitle: {
78
+ textColor: tokens.semantic.color.text.secondary500
118
79
  }
119
80
  };
120
81
  export default theme;