@redis-ui/styles 11.0.2
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/focus-indicator.d.ts +2 -0
- package/dist/fonts.css +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8240 -0
- package/dist/index.umd.cjs +9 -0
- package/dist/normalized-styles.css +23 -0
- package/dist/themes/hooks/useTheme.d.ts +2 -0
- package/dist/themes/themeDark/theme/components/actionIconButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/appBar.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/appSelectionMenu.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/autoComplete.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/badge.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/banner.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/boxSelectionGroup.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/button.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/buttonGroup.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/card.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/checkbox.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/chip.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/chipList.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/countryFlag.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/datePicker.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/drawer.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/filters.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/formField.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/iconButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/input.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/label.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/link.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/loader.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/menu.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/modal.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/popover.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/popupCard.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/profileIcon.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/progressBar.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/radio.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/searchBar.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/section.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/select.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/semanticButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/semanticContainer.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/semanticIcon.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/sideBar.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/skeleton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/stepper.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/switch.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/table.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/tableHeading.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/tabs.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/textButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/toast.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/toggleButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/tooltip.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/treeView.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/typography.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/windowBar.d.ts +3 -0
- package/dist/themes/themeDark/theme.d.ts +2 -0
- package/dist/themes/themeDark/tokens.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/actionIconButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/appBar.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/appSelectionMenu.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/autoComplete.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/badge.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/banner.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/boxSelectionGroup.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/button.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/buttonGroup.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/card.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/checkbox.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/chip.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/chipList.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/countryFlag.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/datePicker.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/drawer.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/filters.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/formField.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/iconButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/input.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/label.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/link.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/loader.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/menu.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/modal.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/popover.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/popupCard.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/profileIcon.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/progressBar.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/radio.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/searchBar.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/section.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/select.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/semanticButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/semanticContainer.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/semanticIcon.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/sideBar.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/skeleton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/stepper.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/switch.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/table.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/tableHeading.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/tabs.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/textButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/toast.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/toggleButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/tooltip.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/treeView.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/typography.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/windowBar.d.ts +3 -0
- package/dist/themes/themeLight/theme.d.ts +2 -0
- package/dist/themes/themeLight/tokens.d.ts +3 -0
- package/dist/themes/themeOld/components/actionIconButton.d.ts +3 -0
- package/dist/themes/themeOld/components/appBar.d.ts +3 -0
- package/dist/themes/themeOld/components/appSelectionMenu.d.ts +3 -0
- package/dist/themes/themeOld/components/autoComplete.d.ts +3 -0
- package/dist/themes/themeOld/components/badge.d.ts +3 -0
- package/dist/themes/themeOld/components/banner.d.ts +3 -0
- package/dist/themes/themeOld/components/boxSelectionGroup.d.ts +3 -0
- package/dist/themes/themeOld/components/button.d.ts +3 -0
- package/dist/themes/themeOld/components/buttonGroup.d.ts +3 -0
- package/dist/themes/themeOld/components/card.d.ts +3 -0
- package/dist/themes/themeOld/components/checkbox.d.ts +3 -0
- package/dist/themes/themeOld/components/chip.d.ts +3 -0
- package/dist/themes/themeOld/components/chipList.d.ts +3 -0
- package/dist/themes/themeOld/components/countryFlag.d.ts +3 -0
- package/dist/themes/themeOld/components/datePicker.d.ts +3 -0
- package/dist/themes/themeOld/components/drawer.d.ts +3 -0
- package/dist/themes/themeOld/components/filters.d.ts +3 -0
- package/dist/themes/themeOld/components/formField.d.ts +3 -0
- package/dist/themes/themeOld/components/iconButton.d.ts +3 -0
- package/dist/themes/themeOld/components/input.d.ts +3 -0
- package/dist/themes/themeOld/components/label.d.ts +3 -0
- package/dist/themes/themeOld/components/link.d.ts +3 -0
- package/dist/themes/themeOld/components/loader.d.ts +3 -0
- package/dist/themes/themeOld/components/menu.d.ts +3 -0
- package/dist/themes/themeOld/components/modal.d.ts +3 -0
- package/dist/themes/themeOld/components/popover.d.ts +3 -0
- package/dist/themes/themeOld/components/popupCard.d.ts +3 -0
- package/dist/themes/themeOld/components/profileIcon.d.ts +3 -0
- package/dist/themes/themeOld/components/progressBar.d.ts +3 -0
- package/dist/themes/themeOld/components/radio.d.ts +3 -0
- package/dist/themes/themeOld/components/searchBar.d.ts +3 -0
- package/dist/themes/themeOld/components/section.d.ts +3 -0
- package/dist/themes/themeOld/components/select.d.ts +3 -0
- package/dist/themes/themeOld/components/semanticButton.d.ts +15 -0
- package/dist/themes/themeOld/components/semanticContainer.d.ts +3 -0
- package/dist/themes/themeOld/components/semanticIcon.d.ts +3 -0
- package/dist/themes/themeOld/components/sideBar.d.ts +3 -0
- package/dist/themes/themeOld/components/skeleton.d.ts +3 -0
- package/dist/themes/themeOld/components/stepper.d.ts +3 -0
- package/dist/themes/themeOld/components/switch.d.ts +3 -0
- package/dist/themes/themeOld/components/table.d.ts +3 -0
- package/dist/themes/themeOld/components/tableHeading.d.ts +3 -0
- package/dist/themes/themeOld/components/tabs.d.ts +3 -0
- package/dist/themes/themeOld/components/textButton.d.ts +3 -0
- package/dist/themes/themeOld/components/toast.d.ts +3 -0
- package/dist/themes/themeOld/components/toggleButton.d.ts +3 -0
- package/dist/themes/themeOld/components/tooltip.d.ts +3 -0
- package/dist/themes/themeOld/components/treeView.d.ts +3 -0
- package/dist/themes/themeOld/components/typography.d.ts +3 -0
- package/dist/themes/themeOld/components/windowBar.d.ts +3 -0
- package/dist/themes/themeOld/theme.d.ts +445 -0
- package/dist/themes/themeOld/tokens.d.ts +393 -0
- package/dist/themes/types/theme/components/actionIconButton.types.d.ts +11 -0
- package/dist/themes/types/theme/components/appBar.types.d.ts +15 -0
- package/dist/themes/types/theme/components/appSelectionMenu.types.d.ts +32 -0
- package/dist/themes/types/theme/components/autoComplete.types.d.ts +6 -0
- package/dist/themes/types/theme/components/badge.types.d.ts +16 -0
- package/dist/themes/types/theme/components/banner.types.d.ts +13 -0
- package/dist/themes/types/theme/components/boxSelectionGroup.types.d.ts +25 -0
- package/dist/themes/types/theme/components/button.types.d.ts +20 -0
- package/dist/themes/types/theme/components/buttonGroup.types.d.ts +20 -0
- package/dist/themes/types/theme/components/card.types.d.ts +7 -0
- package/dist/themes/types/theme/components/checkbox.types.d.ts +19 -0
- package/dist/themes/types/theme/components/chip.types.d.ts +24 -0
- package/dist/themes/types/theme/components/chipList.types.d.ts +14 -0
- package/dist/themes/types/theme/components/countryFlag.types.d.ts +7 -0
- package/dist/themes/types/theme/components/datePicker.types.d.ts +65 -0
- package/dist/themes/types/theme/components/drawer.types.d.ts +23 -0
- package/dist/themes/types/theme/components/filters.types.d.ts +34 -0
- package/dist/themes/types/theme/components/formField.types.d.ts +15 -0
- package/dist/themes/types/theme/components/global.types.d.ts +3 -0
- package/dist/themes/types/theme/components/iconButton.types.d.ts +11 -0
- package/dist/themes/types/theme/components/input.types.d.ts +70 -0
- package/dist/themes/types/theme/components/label.types.d.ts +22 -0
- package/dist/themes/types/theme/components/link.types.d.ts +14 -0
- package/dist/themes/types/theme/components/loader.types.d.ts +19 -0
- package/dist/themes/types/theme/components/menu.types.d.ts +43 -0
- package/dist/themes/types/theme/components/modal.types.d.ts +27 -0
- package/dist/themes/types/theme/components/popover.types.d.ts +14 -0
- package/dist/themes/types/theme/components/popupCard.types.d.ts +20 -0
- package/dist/themes/types/theme/components/profileIcon.types.d.ts +13 -0
- package/dist/themes/types/theme/components/progressBar.types.d.ts +27 -0
- package/dist/themes/types/theme/components/radio.types.d.ts +28 -0
- package/dist/themes/types/theme/components/searchBar.types.d.ts +23 -0
- package/dist/themes/types/theme/components/section.types.d.ts +49 -0
- package/dist/themes/types/theme/components/select.types.d.ts +70 -0
- package/dist/themes/types/theme/components/semanticButton.types.d.ts +14 -0
- package/dist/themes/types/theme/components/semanticContainer.types.d.ts +16 -0
- package/dist/themes/types/theme/components/semanticIcon.types.d.ts +8 -0
- package/dist/themes/types/theme/components/sideBar.types.d.ts +79 -0
- package/dist/themes/types/theme/components/skeleton.types.d.ts +24 -0
- package/dist/themes/types/theme/components/stepper.types.d.ts +23 -0
- package/dist/themes/types/theme/components/switch.types.d.ts +20 -0
- package/dist/themes/types/theme/components/table.types.d.ts +46 -0
- package/dist/themes/types/theme/components/tableHeading.types.d.ts +19 -0
- package/dist/themes/types/theme/components/tabs.types.d.ts +35 -0
- package/dist/themes/types/theme/components/textButton.types.d.ts +13 -0
- package/dist/themes/types/theme/components/toast.types.d.ts +13 -0
- package/dist/themes/types/theme/components/toggleButton.types.d.ts +20 -0
- package/dist/themes/types/theme/components/tooltip.types.d.ts +15 -0
- package/dist/themes/types/theme/components/treeView.types.d.ts +15 -0
- package/dist/themes/types/theme/components/typography.types.d.ts +26 -0
- package/dist/themes/types/theme/components/windowBar.types.d.ts +13 -0
- package/dist/themes/types/theme/theme.types.d.ts +50 -0
- package/dist/themes/types/theme.types.d.ts +4 -0
- package/dist/utils.d.ts +5 -0
- package/package.json +43 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { PartialDeep } from 'type-fest';
|
|
2
|
+
type SideBarItemState = 'normal' | 'hover' | 'active' | 'activeHover';
|
|
3
|
+
export type SideBarStateTheme = {
|
|
4
|
+
bgColor: string;
|
|
5
|
+
shadow: string;
|
|
6
|
+
width: string;
|
|
7
|
+
borderRight: string;
|
|
8
|
+
divider: {
|
|
9
|
+
color: string;
|
|
10
|
+
thickness: string;
|
|
11
|
+
blockMargin: string;
|
|
12
|
+
sidePadding: string;
|
|
13
|
+
};
|
|
14
|
+
button: {
|
|
15
|
+
height: string;
|
|
16
|
+
width: string;
|
|
17
|
+
tooltip: {
|
|
18
|
+
textColor: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
collapseButton: {
|
|
22
|
+
size: string;
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
borderCollapsed: string;
|
|
25
|
+
borderExpanded: string;
|
|
26
|
+
filterShadow: string;
|
|
27
|
+
iconColor: string;
|
|
28
|
+
rightCollapsed: string;
|
|
29
|
+
rightExpanded: string;
|
|
30
|
+
};
|
|
31
|
+
header: {
|
|
32
|
+
height: string;
|
|
33
|
+
dividerColor: string;
|
|
34
|
+
margin: string;
|
|
35
|
+
};
|
|
36
|
+
footer: {
|
|
37
|
+
dividerColor: string;
|
|
38
|
+
link: {
|
|
39
|
+
textColor: string;
|
|
40
|
+
};
|
|
41
|
+
text: {
|
|
42
|
+
textColor: string;
|
|
43
|
+
};
|
|
44
|
+
meta: {
|
|
45
|
+
padding: string;
|
|
46
|
+
visibility: string;
|
|
47
|
+
whiteSpace: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
item: {
|
|
51
|
+
margin: string;
|
|
52
|
+
height: string;
|
|
53
|
+
padding: string;
|
|
54
|
+
gap: string;
|
|
55
|
+
borderRadius: string;
|
|
56
|
+
itemWithButtonOffset: string;
|
|
57
|
+
states: Record<SideBarItemState, {
|
|
58
|
+
bgColor?: string;
|
|
59
|
+
textColor?: string;
|
|
60
|
+
}>;
|
|
61
|
+
tooltip: {
|
|
62
|
+
textColor: string;
|
|
63
|
+
};
|
|
64
|
+
button: {
|
|
65
|
+
bgColor: string;
|
|
66
|
+
borderColor: string;
|
|
67
|
+
borderSize: string;
|
|
68
|
+
textColor: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
logo: {
|
|
72
|
+
offset: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export type SideBarTheme = {
|
|
76
|
+
collapsed: SideBarStateTheme;
|
|
77
|
+
expanded: PartialDeep<SideBarStateTheme>;
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type Shade = 'light' | 'dark';
|
|
2
|
+
export type SkeletonTheme = {
|
|
3
|
+
card: {
|
|
4
|
+
gap: string;
|
|
5
|
+
bgColor: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
};
|
|
10
|
+
shades: Record<Shade, {
|
|
11
|
+
baseColor: string;
|
|
12
|
+
highlightColor: string;
|
|
13
|
+
}>;
|
|
14
|
+
circle: {
|
|
15
|
+
gap: string;
|
|
16
|
+
};
|
|
17
|
+
square: {
|
|
18
|
+
gap: string;
|
|
19
|
+
};
|
|
20
|
+
grid: {
|
|
21
|
+
gap: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type StepState = 'completed' | 'idle' | 'focused';
|
|
2
|
+
export type StepperTheme = {
|
|
3
|
+
gap: string;
|
|
4
|
+
step: {
|
|
5
|
+
gap: string;
|
|
6
|
+
states: Record<StepState, {
|
|
7
|
+
indicator: {
|
|
8
|
+
bgColor: string;
|
|
9
|
+
iconColor: string;
|
|
10
|
+
padding?: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
textColor: string;
|
|
15
|
+
letterSpacing: string;
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
indicator: {
|
|
19
|
+
size: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonState, ButtonStateColors } from './button.types';
|
|
2
|
+
type SwitchToggleStates = 'on' | 'off';
|
|
3
|
+
export type SwitchStates = ButtonState | 'readonly';
|
|
4
|
+
export type SwitchStatesTheme<T extends Record<string, unknown>> = Partial<Record<SwitchStates, Partial<T>>>;
|
|
5
|
+
type SwitchStateColors = ButtonStateColors & {
|
|
6
|
+
thumbColor?: string;
|
|
7
|
+
};
|
|
8
|
+
export type SwitchTheme = {
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
padding: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
borderWidth: string;
|
|
14
|
+
gap: string;
|
|
15
|
+
thumb: {
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
};
|
|
18
|
+
toggleStates: Record<SwitchToggleStates, SwitchStatesTheme<SwitchStateColors>>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type TableTheme = {
|
|
2
|
+
table: {
|
|
3
|
+
tableContainer: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
boxShadow: string;
|
|
6
|
+
};
|
|
7
|
+
tableTh: {
|
|
8
|
+
color: string;
|
|
9
|
+
borderRight: string;
|
|
10
|
+
};
|
|
11
|
+
tableBodyRow: {
|
|
12
|
+
borderTop: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
hoverBoxShadow: string;
|
|
15
|
+
};
|
|
16
|
+
tableBodyCell: {
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
components: {
|
|
21
|
+
tablePagination: {
|
|
22
|
+
paginationIconButton: {
|
|
23
|
+
enabledColor: string;
|
|
24
|
+
disabledColor: string;
|
|
25
|
+
};
|
|
26
|
+
paginationRow: {
|
|
27
|
+
borderTop: string;
|
|
28
|
+
};
|
|
29
|
+
countInfoText: {
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
itemPerPageText: {
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
35
|
+
paginationIndexText: {
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
pageLabelText: {
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
totalPagesText: {
|
|
42
|
+
color: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TableHeadingTheme = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
gap: string;
|
|
4
|
+
padding: string;
|
|
5
|
+
separator: {
|
|
6
|
+
height: string;
|
|
7
|
+
width: string;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
searchInput: {
|
|
11
|
+
width: string;
|
|
12
|
+
states: Record<'normal' | 'hover', {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
actionsBar: {
|
|
17
|
+
gap: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SetRequired } from 'type-fest';
|
|
2
|
+
type TabVariant = 'default' | 'sub';
|
|
3
|
+
type TabState = 'normal' | 'hover' | 'focus' | 'active' | 'disabled';
|
|
4
|
+
export type TabsTheme = {
|
|
5
|
+
variants: SetRequired<Partial<Record<TabVariant, {
|
|
6
|
+
gap: string;
|
|
7
|
+
tabsLine: {
|
|
8
|
+
color: string;
|
|
9
|
+
size: string;
|
|
10
|
+
};
|
|
11
|
+
tab: {
|
|
12
|
+
states: Partial<Record<TabState, {
|
|
13
|
+
padding?: string;
|
|
14
|
+
bgColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
borderWidth?: string;
|
|
18
|
+
borderRadius?: string;
|
|
19
|
+
fontWeight?: number;
|
|
20
|
+
fontSize?: string;
|
|
21
|
+
letterSpacing?: string;
|
|
22
|
+
}>>;
|
|
23
|
+
};
|
|
24
|
+
tabMarker: {
|
|
25
|
+
states: Partial<Record<TabState, {
|
|
26
|
+
color?: string;
|
|
27
|
+
size?: string;
|
|
28
|
+
inset?: string;
|
|
29
|
+
borderRadius?: string;
|
|
30
|
+
display?: string;
|
|
31
|
+
}>>;
|
|
32
|
+
};
|
|
33
|
+
}>>, 'default'>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
type TextButtonVariants = 'primary' | 'destructive' | 'primary-inline' | 'destructive-inline';
|
|
3
|
+
export type TextButtonTheme = {
|
|
4
|
+
gap: string;
|
|
5
|
+
height: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
variants: Record<TextButtonVariants, {
|
|
8
|
+
padding: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
states: ButtonStatesTheme<ButtonStateColors>;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
type ToggleButtonStates = 'on' | 'off';
|
|
3
|
+
export type ToggleButtonTheme = {
|
|
4
|
+
gap: string;
|
|
5
|
+
height: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
toggleStates: Record<ToggleButtonStates, ButtonStatesTheme<ButtonStateColors>>;
|
|
10
|
+
counter: {
|
|
11
|
+
bgColor: string;
|
|
12
|
+
textColor: string;
|
|
13
|
+
disabledOpacity: string;
|
|
14
|
+
padding: string;
|
|
15
|
+
height: string;
|
|
16
|
+
minWidth: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type TooltipTheme = {
|
|
2
|
+
textColor: string;
|
|
3
|
+
bgColor: string;
|
|
4
|
+
shadow: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
minWidth: string;
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
blockPadding: string;
|
|
9
|
+
inlinePadding: string;
|
|
10
|
+
arrow: {
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
shadow: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type TreeViewTheme = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
levelOffset: string;
|
|
4
|
+
item: {
|
|
5
|
+
inlinePadding: string;
|
|
6
|
+
blockPadding: string;
|
|
7
|
+
checkboxGap: string;
|
|
8
|
+
selectedBgColor: string;
|
|
9
|
+
height: string;
|
|
10
|
+
};
|
|
11
|
+
arrow: {
|
|
12
|
+
iconColor: string;
|
|
13
|
+
gap: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type HeadingSize = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
2
|
+
export type BodySize = 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
3
|
+
export type BodyVariant = 'regular' | 'semiBold' | 'italic';
|
|
4
|
+
export type CodeSize = 'L' | 'M' | 'S';
|
|
5
|
+
export type CodeVariant = 'regular' | 'semiBold';
|
|
6
|
+
export type TypoTheme = {
|
|
7
|
+
heading: {
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
sizes: Record<HeadingSize, {
|
|
10
|
+
fontSize: string;
|
|
11
|
+
fontWeight: string;
|
|
12
|
+
margin?: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
body: {
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontSizes: Record<BodySize, string>;
|
|
18
|
+
fontWeight: Record<BodyVariant, string>;
|
|
19
|
+
fontStyle: Record<BodyVariant, string>;
|
|
20
|
+
};
|
|
21
|
+
code: {
|
|
22
|
+
fontFamily: string;
|
|
23
|
+
fontSizes: Record<CodeSize, string>;
|
|
24
|
+
fontWeight: Record<CodeVariant, string>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type WindowBarVariant = 'white' | 'light' | 'default' | 'informative' | 'success' | 'notice' | 'danger' | 'attention' | 'disabled';
|
|
2
|
+
export type WindowBarVariantStyle = {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
};
|
|
7
|
+
export type WindowBarTheme = {
|
|
8
|
+
gap: string;
|
|
9
|
+
header: {
|
|
10
|
+
gap: string;
|
|
11
|
+
};
|
|
12
|
+
variants: Record<WindowBarVariant, WindowBarVariantStyle>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * from './components/actionIconButton.types';
|
|
2
|
+
export * from './components/appBar.types';
|
|
3
|
+
export * from './components/appSelectionMenu.types';
|
|
4
|
+
export * from './components/autoComplete.types';
|
|
5
|
+
export * from './components/badge.types';
|
|
6
|
+
export * from './components/banner.types';
|
|
7
|
+
export * from './components/boxSelectionGroup.types';
|
|
8
|
+
export * from './components/button.types';
|
|
9
|
+
export * from './components/buttonGroup.types';
|
|
10
|
+
export * from './components/card.types';
|
|
11
|
+
export * from './components/checkbox.types';
|
|
12
|
+
export * from './components/chip.types';
|
|
13
|
+
export * from './components/chipList.types';
|
|
14
|
+
export * from './components/countryFlag.types';
|
|
15
|
+
export * from './components/datePicker.types';
|
|
16
|
+
export * from './components/drawer.types';
|
|
17
|
+
export * from './components/filters.types';
|
|
18
|
+
export * from './components/formField.types';
|
|
19
|
+
export * from './components/iconButton.types';
|
|
20
|
+
export * from './components/input.types';
|
|
21
|
+
export * from './components/label.types';
|
|
22
|
+
export * from './components/link.types';
|
|
23
|
+
export * from './components/loader.types';
|
|
24
|
+
export * from './components/menu.types';
|
|
25
|
+
export * from './components/modal.types';
|
|
26
|
+
export * from './components/popover.types';
|
|
27
|
+
export * from './components/popupCard.types';
|
|
28
|
+
export * from './components/profileIcon.types';
|
|
29
|
+
export * from './components/progressBar.types';
|
|
30
|
+
export * from './components/radio.types';
|
|
31
|
+
export * from './components/searchBar.types';
|
|
32
|
+
export * from './components/section.types';
|
|
33
|
+
export * from './components/select.types';
|
|
34
|
+
export * from './components/semanticButton.types';
|
|
35
|
+
export * from './components/semanticContainer.types';
|
|
36
|
+
export * from './components/semanticIcon.types';
|
|
37
|
+
export * from './components/sideBar.types';
|
|
38
|
+
export * from './components/skeleton.types';
|
|
39
|
+
export * from './components/stepper.types';
|
|
40
|
+
export * from './components/switch.types';
|
|
41
|
+
export * from './components/table.types';
|
|
42
|
+
export * from './components/tableHeading.types';
|
|
43
|
+
export * from './components/tabs.types';
|
|
44
|
+
export * from './components/textButton.types';
|
|
45
|
+
export * from './components/toast.types';
|
|
46
|
+
export * from './components/toggleButton.types';
|
|
47
|
+
export * from './components/tooltip.types';
|
|
48
|
+
export * from './components/treeView.types';
|
|
49
|
+
export * from './components/typography.types';
|
|
50
|
+
export * from './components/windowBar.types';
|
package/dist/utils.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@redis-ui/styles",
|
|
3
|
+
"version": "11.0.2",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://npm.pkg.github.com/"
|
|
6
|
+
},
|
|
7
|
+
"repository": "git@github.com:redislabsdev/redis-ui.git",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.umd.cjs",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.umd.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./fonts.css": "./dist/fonts.css",
|
|
20
|
+
"./normalized-styles.css": "./dist/normalized-styles.css"
|
|
21
|
+
},
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"transform": "style-dictionary build --config src/style-dictionary.config.cjs && npm run lint -- --fix src/tokens.ts",
|
|
25
|
+
"build": "vite build",
|
|
26
|
+
"deploy": "node ../../scripts/deploy.js",
|
|
27
|
+
"lint": "eslint ./ --color --max-warnings=0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
31
|
+
"react-dom": "^17.0.0 || ^18.0.0",
|
|
32
|
+
"styled-components": "^5.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@redislabsdev/eslint-config-redis-ui": "^2.0.0",
|
|
36
|
+
"style-dictionary": "^3.7.2",
|
|
37
|
+
"type-fest": "^3.13.1",
|
|
38
|
+
"typescript": "^4.9.3"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"color-alpha": "^2.0.0"
|
|
42
|
+
}
|
|
43
|
+
}
|