@redis-ui/styles 11.4.0 → 12.3.1
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/commonStyles.d.ts +1 -0
- package/dist/fonts.css +4 -0
- package/dist/hooks/ThemeSwitch/SwitchableThemeProvider.d.ts +20 -0
- package/dist/hooks/ThemeSwitch/index.d.ts +3 -0
- package/dist/hooks/ThemeSwitch/useStorage.d.ts +9 -0
- package/dist/hooks/ThemeSwitch/useThemeSelector.d.ts +26 -0
- package/dist/{themes/hooks → hooks}/useTheme.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4507 -2889
- package/dist/index.umd.cjs +234 -7
- package/dist/normalized-styles.css +18 -8
- package/dist/themes/themeDark/theme/globals/body.d.ts +3 -0
- package/dist/themes/themeDark/theme/globals/scrollbar.d.ts +3 -0
- package/dist/themes/themeLight/theme/globals/body.d.ts +3 -0
- package/dist/themes/themeLight/theme/globals/scrollbar.d.ts +3 -0
- package/dist/themes/themeOld/globals/body.d.ts +3 -0
- package/dist/themes/themeOld/globals/scrollbar.d.ts +3 -0
- package/dist/themes/types/theme/components/link.types.d.ts +1 -0
- package/dist/themes/types/theme/components/menu.types.d.ts +5 -1
- package/dist/themes/types/theme/components/treeView.types.d.ts +4 -1
- package/dist/themes/types/theme/globals/body.types.d.ts +7 -0
- package/dist/themes/types/theme/globals/index.d.ts +2 -0
- package/dist/themes/types/theme/globals/scrollbar.types.d.ts +10 -0
- package/dist/themes/types/theme/theme.types.d.ts +5 -0
- package/dist/utils.d.ts +7 -0
- package/package.json +4 -2
|
@@ -4,14 +4,8 @@
|
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
[class*='RedisUI'] h1,
|
|
8
|
-
|
|
9
|
-
[class*='RedisUI'] h3,
|
|
10
|
-
[class*='RedisUI'] h4,
|
|
11
|
-
[class*='RedisUI'] h5,
|
|
12
|
-
[class*='RedisUI'] h6 {
|
|
13
|
-
margin-bottom: 0;
|
|
14
|
-
margin-top: 0;
|
|
7
|
+
:where([class*='RedisUI']) :is(h1, h2, h3, h4, h5, h6, p, pre) {
|
|
8
|
+
margin-block: 0;
|
|
15
9
|
}
|
|
16
10
|
|
|
17
11
|
[class*='RedisUI'] svg {
|
|
@@ -21,3 +15,19 @@
|
|
|
21
15
|
svg:not([fill]) {
|
|
22
16
|
fill: currentColor;
|
|
23
17
|
}
|
|
18
|
+
|
|
19
|
+
svg {
|
|
20
|
+
color: unset; /* fixes icons color attribute */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:focus {
|
|
24
|
+
outline: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:root {
|
|
28
|
+
font-size: 62.5%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body{
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tokens } from './tokens.types';
|
|
2
2
|
import { ActionIconButtonTheme, AppBarTheme, AppSeletionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, IconButtonTheme, InputTheme, LabelTheme, LinkTheme, LoaderTheme, MenuTheme, ModalTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, StepperTheme, SwitchTheme, TableHeadingTheme, TableTheme, TabsTheme, TextButtonTheme, ToastTheme, ToggleButtonTheme, TooltipTheme, TreeViewTheme, TypoTheme, WindowBarTheme } from './components';
|
|
3
|
+
import { BodyTheme, ScrollbarTheme } from './globals';
|
|
3
4
|
export interface Theme extends Tokens {
|
|
4
5
|
name: string;
|
|
5
6
|
components: {
|
|
@@ -54,4 +55,8 @@ export interface Theme extends Tokens {
|
|
|
54
55
|
typography: TypoTheme;
|
|
55
56
|
windowBar: WindowBarTheme;
|
|
56
57
|
};
|
|
58
|
+
globals: {
|
|
59
|
+
body: BodyTheme;
|
|
60
|
+
scrollbar: ScrollbarTheme;
|
|
61
|
+
};
|
|
57
62
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -3,3 +3,10 @@
|
|
|
3
3
|
* Opacity needs to be between 0 and 1.
|
|
4
4
|
*/
|
|
5
5
|
export declare const withOpacity: (cssColor: string, opacity: number) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Returns a lighter or darker variant of `base`
|
|
8
|
+
* that preserves hue & saturation.
|
|
9
|
+
*
|
|
10
|
+
* @param base Any CSS color string.
|
|
11
|
+
*/
|
|
12
|
+
export declare function withContrast(base: string): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis-ui/styles",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "12.3.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://npm.pkg.github.com/"
|
|
7
7
|
},
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"lint": "eslint ./ --color --max-warnings=0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
+
"modern-normalize": "^3.0.1",
|
|
31
32
|
"react": "^17.0.0 || ^18.0.0",
|
|
32
33
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
33
34
|
"styled-components": "^5.0.0"
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"typescript": "^4.9.3"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"color-alpha": "^2.0.0"
|
|
43
|
+
"color-alpha": "^2.0.0",
|
|
44
|
+
"polished": "^4.3.1"
|
|
43
45
|
}
|
|
44
46
|
}
|