@redis-ui/styles 14.13.0 → 15.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.
- package/dist/hooks/usePrefersReducedMotion.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1179 -884
- package/dist/index.umd.cjs +32 -18
- package/dist/themes/themeDark/theme/components/highlightedIcon.d.ts +3 -0
- package/dist/themes/themeDark2/theme/components/highlightedIcon.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/highlightedIcon.d.ts +3 -0
- package/dist/themes/themeLight/tokens.d.ts +1 -0
- package/dist/themes/themeLight2/theme/components/highlightedIcon.d.ts +3 -0
- package/dist/themes/types/theme/components/badge.types.d.ts +1 -1
- package/dist/themes/types/theme/components/global.types.d.ts +1 -1
- package/dist/themes/types/theme/components/highlightedIcon.types.d.ts +9 -0
- package/dist/themes/types/theme/components/index.d.ts +2 -0
- package/dist/themes/types/theme/components/input.types.d.ts +2 -1
- package/dist/themes/types/theme/components/loader.types.d.ts +2 -2
- package/dist/themes/types/theme/components/stepper.types.d.ts +6 -0
- package/dist/themes/types/theme/theme.types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type BadgeVariant = 'white' | 'light' | 'default' | 'informative' | 'success' | 'notice' | 'danger' | 'attention' | 'disabled';
|
|
1
|
+
export type BadgeVariant = 'white' | 'light' | 'default' | 'informative' | 'success' | 'notice' | 'danger' | 'attention' | 'upsell' | 'disabled';
|
|
2
2
|
export type BadgeVariantStyle = {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
color: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const highlightedIconVariants: readonly ["primary", "secondary", "informative", "notice", "success", "attention", "error", "upsell", "neutral"];
|
|
2
|
+
export type HighlightedIconVariant = (typeof highlightedIconVariants)[number];
|
|
3
|
+
export type HighlightedIconVariantStyle = {
|
|
4
|
+
background: string;
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
export type HighlightedIconTheme = {
|
|
8
|
+
variants: Record<HighlightedIconVariant, HighlightedIconVariantStyle>;
|
|
9
|
+
};
|
|
@@ -17,6 +17,8 @@ export * from './datePicker.types';
|
|
|
17
17
|
export * from './drawer.types';
|
|
18
18
|
export * from './filters.types';
|
|
19
19
|
export * from './formField.types';
|
|
20
|
+
export * from './global.types';
|
|
21
|
+
export * from './highlightedIcon.types';
|
|
20
22
|
export * from './iconButton.types';
|
|
21
23
|
export * from './input.types';
|
|
22
24
|
export * from './keyValueList.types';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LoaderSize } from './loader.types';
|
|
1
2
|
type InputVariant = 'outline' | 'underline';
|
|
2
3
|
type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly';
|
|
3
4
|
export type InputTheme = {
|
|
@@ -19,7 +20,7 @@ export type InputTheme = {
|
|
|
19
20
|
textColor: string;
|
|
20
21
|
};
|
|
21
22
|
loader: {
|
|
22
|
-
size:
|
|
23
|
+
size: LoaderSize;
|
|
23
24
|
};
|
|
24
25
|
variants: Record<InputVariant, {
|
|
25
26
|
borderRadius: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type LoaderSize = '
|
|
1
|
+
export type LoaderSize = 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
2
2
|
export type LoaderLayout = 'inline' | 'block';
|
|
3
3
|
export type LoaderShade = 'light' | 'dark';
|
|
4
4
|
type LoaderVariants = 'regular' | 'pending' | 'inverse';
|
|
@@ -8,7 +8,7 @@ type LoaderColors = {
|
|
|
8
8
|
textColor: string;
|
|
9
9
|
};
|
|
10
10
|
export type LoaderTheme = {
|
|
11
|
-
|
|
11
|
+
sizes: Record<LoaderSize, string>;
|
|
12
12
|
gap: string;
|
|
13
13
|
variants: Record<LoaderVariants, LoaderColors>;
|
|
14
14
|
};
|
|
@@ -15,10 +15,16 @@ export type StepperTheme = {
|
|
|
15
15
|
letterSpacing: string;
|
|
16
16
|
fontWeight: string;
|
|
17
17
|
};
|
|
18
|
+
separator: {
|
|
19
|
+
bgColor: string;
|
|
20
|
+
};
|
|
18
21
|
}>;
|
|
19
22
|
indicator: {
|
|
20
23
|
size: string;
|
|
21
24
|
};
|
|
25
|
+
separator: {
|
|
26
|
+
height: string;
|
|
27
|
+
};
|
|
22
28
|
};
|
|
23
29
|
};
|
|
24
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tokens } from './tokens.types';
|
|
2
|
-
import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, BreadcrumbsTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, IconButtonTheme, InputTheme, KeyValueListTheme, LabelTheme, LayoutsTheme, LinkTheme, LoaderTheme, MenuTheme, MidBarTheme, ModalTheme, MoreInfoIconTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, SliderTheme, StepperTheme, SwitchTheme, TableHeadingTheme, TableTheme, TabsTheme, TextButtonTheme, ThemeModeSwitchTheme, ToastTheme, ToggleButtonTheme, TooltipTheme, TreeViewTheme, TypoTheme, WindowBarTheme } from './components';
|
|
2
|
+
import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, BreadcrumbsTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, HighlightedIconTheme, IconButtonTheme, InputTheme, KeyValueListTheme, LabelTheme, LayoutsTheme, LinkTheme, LoaderTheme, MenuTheme, MidBarTheme, ModalTheme, MoreInfoIconTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, SliderTheme, StepperTheme, SwitchTheme, TableHeadingTheme, TableTheme, TabsTheme, TextButtonTheme, ThemeModeSwitchTheme, ToastTheme, ToggleButtonTheme, TooltipTheme, TreeViewTheme, TypoTheme, WindowBarTheme } from './components';
|
|
3
3
|
import { BodyTheme, ScrollbarTheme } from './globals';
|
|
4
4
|
import { ThemeCore } from './themeCore.types';
|
|
5
5
|
export interface Theme extends ThemeCore, Tokens {
|
|
@@ -23,6 +23,7 @@ export interface Theme extends ThemeCore, Tokens {
|
|
|
23
23
|
drawer: DrawerTheme;
|
|
24
24
|
filters: FiltersTheme;
|
|
25
25
|
formField: FormFieldTheme;
|
|
26
|
+
highlightedIcon: HighlightedIconTheme;
|
|
26
27
|
iconButton: IconButtonTheme;
|
|
27
28
|
input: InputTheme;
|
|
28
29
|
keyValueList: KeyValueListTheme;
|