@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,65 @@
|
|
|
1
|
+
type DayMarker = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
textColor: string;
|
|
4
|
+
border: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
transform?: string;
|
|
7
|
+
};
|
|
8
|
+
export type DatePickerTheme = {
|
|
9
|
+
fontSize: string;
|
|
10
|
+
fontWeight: string;
|
|
11
|
+
fontFamily: string;
|
|
12
|
+
focusOutline: string;
|
|
13
|
+
dayCell: {
|
|
14
|
+
width: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
textColor: string;
|
|
17
|
+
hoverColor: string;
|
|
18
|
+
padding: string;
|
|
19
|
+
fontSize?: string;
|
|
20
|
+
fontWeight?: string;
|
|
21
|
+
};
|
|
22
|
+
weekDayCell: {
|
|
23
|
+
height?: string;
|
|
24
|
+
textColor: string;
|
|
25
|
+
fontSize?: string;
|
|
26
|
+
fontWeight?: string;
|
|
27
|
+
};
|
|
28
|
+
today: {
|
|
29
|
+
border: string;
|
|
30
|
+
fontSize?: string;
|
|
31
|
+
fontWeight?: string;
|
|
32
|
+
};
|
|
33
|
+
selectedDay: {
|
|
34
|
+
bgColor: string;
|
|
35
|
+
textColor: string;
|
|
36
|
+
borderRadius: string;
|
|
37
|
+
border: string;
|
|
38
|
+
singleDayMarker: DayMarker;
|
|
39
|
+
startDayMarker: DayMarker;
|
|
40
|
+
endDayMarker: DayMarker;
|
|
41
|
+
};
|
|
42
|
+
navArrow: {
|
|
43
|
+
gap: string;
|
|
44
|
+
width: string;
|
|
45
|
+
height: string;
|
|
46
|
+
padding: string;
|
|
47
|
+
iconColor: string;
|
|
48
|
+
};
|
|
49
|
+
navSelect: {
|
|
50
|
+
textColor: string;
|
|
51
|
+
gap: string;
|
|
52
|
+
month: {
|
|
53
|
+
width: string;
|
|
54
|
+
};
|
|
55
|
+
year: {
|
|
56
|
+
width: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
weekNumCell: {
|
|
60
|
+
fontSize: string;
|
|
61
|
+
fontWeight?: string;
|
|
62
|
+
fontFamily?: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type DrawerTheme = {
|
|
2
|
+
shadow: string;
|
|
3
|
+
bgColor: string;
|
|
4
|
+
sidePadding: string;
|
|
5
|
+
width: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
header: {
|
|
8
|
+
blockPadding: string;
|
|
9
|
+
closeIconColor: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
};
|
|
12
|
+
body: {
|
|
13
|
+
blockPadding: string;
|
|
14
|
+
};
|
|
15
|
+
footer: {
|
|
16
|
+
blockPadding: string;
|
|
17
|
+
border: string;
|
|
18
|
+
buttonsGap: string;
|
|
19
|
+
};
|
|
20
|
+
overlay: {
|
|
21
|
+
bgColor: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type FiltersTheme = {
|
|
2
|
+
chipList: {
|
|
3
|
+
padding: string;
|
|
4
|
+
border: string;
|
|
5
|
+
};
|
|
6
|
+
filtersBar: {
|
|
7
|
+
gap: string;
|
|
8
|
+
padding: string;
|
|
9
|
+
separator: {
|
|
10
|
+
width: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
trigger: {
|
|
14
|
+
margin: string;
|
|
15
|
+
gap: string;
|
|
16
|
+
on: {
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
off: {
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
filterDropdown: {
|
|
25
|
+
padding: string;
|
|
26
|
+
maxHeight: string;
|
|
27
|
+
item: {
|
|
28
|
+
padding: string;
|
|
29
|
+
};
|
|
30
|
+
searchBar: {
|
|
31
|
+
padding: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
type IconButtonSizes = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
3
|
+
export type IconButtonTheme = {
|
|
4
|
+
sizes: Record<IconButtonSizes, {
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
}>;
|
|
8
|
+
states: ButtonStatesTheme<ButtonStateColors>;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type InputVariant = 'outline' | 'underline';
|
|
2
|
+
type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly';
|
|
3
|
+
export type InputTheme = {
|
|
4
|
+
padding: string;
|
|
5
|
+
height: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
fontSize: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
resetButton: {
|
|
11
|
+
iconColor: string;
|
|
12
|
+
};
|
|
13
|
+
indicator: {
|
|
14
|
+
errorTooltipTextColor: string;
|
|
15
|
+
errorIconColor: string;
|
|
16
|
+
successIconColor: string;
|
|
17
|
+
};
|
|
18
|
+
placeholder: {
|
|
19
|
+
textColor: string;
|
|
20
|
+
};
|
|
21
|
+
loader: {
|
|
22
|
+
size: string;
|
|
23
|
+
};
|
|
24
|
+
variants: Record<InputVariant, {
|
|
25
|
+
borderRadius: string;
|
|
26
|
+
borderWidth: string;
|
|
27
|
+
}>;
|
|
28
|
+
states: Record<InputState, {
|
|
29
|
+
bgColor?: string;
|
|
30
|
+
textColor?: string;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
}>;
|
|
33
|
+
textarea: {
|
|
34
|
+
padding: string;
|
|
35
|
+
statusPadding: string;
|
|
36
|
+
minHeight: string;
|
|
37
|
+
maxHeight: string;
|
|
38
|
+
readonly: {
|
|
39
|
+
minHeight: string;
|
|
40
|
+
maxHeight: string;
|
|
41
|
+
};
|
|
42
|
+
indicatorMargin: string;
|
|
43
|
+
};
|
|
44
|
+
search: {
|
|
45
|
+
iconColor: string;
|
|
46
|
+
resetButton: {
|
|
47
|
+
iconColor: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
counter: {
|
|
51
|
+
minWidth: string;
|
|
52
|
+
padding: string;
|
|
53
|
+
valueLabel: {
|
|
54
|
+
textColor: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
password: {
|
|
58
|
+
padding: string;
|
|
59
|
+
};
|
|
60
|
+
additionalText: {
|
|
61
|
+
margin: string;
|
|
62
|
+
normal: {
|
|
63
|
+
textColor: string;
|
|
64
|
+
};
|
|
65
|
+
error: {
|
|
66
|
+
textColor: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type LabelTheme = {
|
|
2
|
+
gap: string;
|
|
3
|
+
margin: string;
|
|
4
|
+
minHeight: string;
|
|
5
|
+
state: {
|
|
6
|
+
normal: {
|
|
7
|
+
textColor: string;
|
|
8
|
+
};
|
|
9
|
+
readonly: {
|
|
10
|
+
textColor: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
infoIcon: {
|
|
14
|
+
iconColor: string;
|
|
15
|
+
};
|
|
16
|
+
optional: {
|
|
17
|
+
textColor: string;
|
|
18
|
+
};
|
|
19
|
+
required: {
|
|
20
|
+
textColor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
type LinkLayout = 'block' | 'inline';
|
|
3
|
+
type LinkSize = 'regular' | 'small';
|
|
4
|
+
export type LinkTheme = {
|
|
5
|
+
variants: Record<LinkLayout, {
|
|
6
|
+
sizes: Record<LinkSize, {
|
|
7
|
+
padding: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
gap: string;
|
|
10
|
+
}>;
|
|
11
|
+
states: ButtonStatesTheme<ButtonStateColors>;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type LoaderSize = 'M' | 'S';
|
|
2
|
+
export type LoaderLayout = 'inline' | 'block';
|
|
3
|
+
export type LoaderShade = 'light' | 'dark';
|
|
4
|
+
type LoaderVariants = 'regular' | 'pending' | 'inverse';
|
|
5
|
+
type LoaderColors = {
|
|
6
|
+
bgColor: string;
|
|
7
|
+
color: string;
|
|
8
|
+
textColor: string;
|
|
9
|
+
};
|
|
10
|
+
export type LoaderTheme = {
|
|
11
|
+
size: string;
|
|
12
|
+
gap: string;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use textColor of specific variants instead
|
|
15
|
+
*/
|
|
16
|
+
textColor: string;
|
|
17
|
+
variants: Record<LoaderVariants, LoaderColors>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type MenuItemVariant = 'primary' | 'destructive';
|
|
2
|
+
type MenuItemState = 'normal' | 'hover' | 'selected' | 'disabled';
|
|
3
|
+
type MenuItemStateColors = {
|
|
4
|
+
bgColor?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
};
|
|
7
|
+
export type MenuTheme = {
|
|
8
|
+
dropDown: {
|
|
9
|
+
minWidth: string;
|
|
10
|
+
maxWidth: string;
|
|
11
|
+
bgColor: string;
|
|
12
|
+
shadow: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
arrow: {
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
bgColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
separator: {
|
|
21
|
+
size: string;
|
|
22
|
+
bgColor: string;
|
|
23
|
+
};
|
|
24
|
+
label: {
|
|
25
|
+
color: string;
|
|
26
|
+
padding: string;
|
|
27
|
+
};
|
|
28
|
+
item: {
|
|
29
|
+
padding: string;
|
|
30
|
+
gap: string;
|
|
31
|
+
variants: Record<MenuItemVariant, Partial<Record<MenuItemState, MenuItemStateColors>>>;
|
|
32
|
+
subHead: {
|
|
33
|
+
textColor: string;
|
|
34
|
+
};
|
|
35
|
+
check: {
|
|
36
|
+
size: string;
|
|
37
|
+
};
|
|
38
|
+
split: {
|
|
39
|
+
minWidth: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ModalTheme = {
|
|
2
|
+
inlinePadding: string;
|
|
3
|
+
blockPadding: string;
|
|
4
|
+
inlineScreenMargin: string;
|
|
5
|
+
blockScreenMargin: string;
|
|
6
|
+
shadow: string;
|
|
7
|
+
bgColor: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
header: {
|
|
10
|
+
blockPadding: string;
|
|
11
|
+
closeIconColor: string;
|
|
12
|
+
textColor: string;
|
|
13
|
+
gap: string;
|
|
14
|
+
};
|
|
15
|
+
body: {
|
|
16
|
+
minWidth: string;
|
|
17
|
+
maxWidth: string;
|
|
18
|
+
textColor: string;
|
|
19
|
+
};
|
|
20
|
+
footer: {
|
|
21
|
+
blockPadding: string;
|
|
22
|
+
buttonsGap: string;
|
|
23
|
+
};
|
|
24
|
+
overlay: {
|
|
25
|
+
bgColor: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type PopoverTheme = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
shadow: string;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
minWidth: string;
|
|
6
|
+
maxWidth: string;
|
|
7
|
+
blockPadding: string;
|
|
8
|
+
inlinePadding: string;
|
|
9
|
+
arrow: {
|
|
10
|
+
width: string;
|
|
11
|
+
height: string;
|
|
12
|
+
shadow: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PopupCardTheme = {
|
|
2
|
+
closeButton: {
|
|
3
|
+
iconColor: string;
|
|
4
|
+
};
|
|
5
|
+
header: {
|
|
6
|
+
textColor: string;
|
|
7
|
+
margin: string;
|
|
8
|
+
};
|
|
9
|
+
body: {
|
|
10
|
+
margin: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
};
|
|
13
|
+
footer: {
|
|
14
|
+
margin: string;
|
|
15
|
+
};
|
|
16
|
+
windowBar: {
|
|
17
|
+
margin: string;
|
|
18
|
+
padding: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ColorGroup = {
|
|
2
|
+
primaryColor: string;
|
|
3
|
+
secondaryColor: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
};
|
|
6
|
+
type ProfileIconSize = 'S' | 'M' | 'L';
|
|
7
|
+
export type ProfileIconTheme = {
|
|
8
|
+
textColor: string;
|
|
9
|
+
border: string;
|
|
10
|
+
colorGroups: ColorGroup[];
|
|
11
|
+
sizes: Record<ProfileIconSize, string>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ProgressBarTextPosition = 'top' | 'left' | 'bottom' | 'right';
|
|
2
|
+
export type ProgressBarSize = 'M';
|
|
3
|
+
export type ProgressBarVariant = 'normal' | 'danger' | 'attention' | 'success';
|
|
4
|
+
export interface ProgressBarTextPositionProperties {
|
|
5
|
+
gap: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProgressBarSizeProperties {
|
|
8
|
+
size: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProgressBarVariantProperties {
|
|
11
|
+
color: string;
|
|
12
|
+
}
|
|
13
|
+
export type TextPositionStyles = Record<ProgressBarTextPosition, ProgressBarTextPositionProperties>;
|
|
14
|
+
export type SizeStyles = Record<ProgressBarSize, ProgressBarSizeProperties>;
|
|
15
|
+
export type VariantStyles = Record<ProgressBarVariant, ProgressBarVariantProperties>;
|
|
16
|
+
export interface ProgressBarTheme {
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
textPosition: TextPositionStyles;
|
|
19
|
+
size: SizeStyles;
|
|
20
|
+
variant: VariantStyles;
|
|
21
|
+
indicator: {
|
|
22
|
+
variant: VariantStyles;
|
|
23
|
+
};
|
|
24
|
+
text: {
|
|
25
|
+
color: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
type RadioVariants = 'primary';
|
|
3
|
+
type RadioStates = 'on' | 'off';
|
|
4
|
+
type Layout = 'vertical' | 'horizontal';
|
|
5
|
+
type RadioStateColors = ButtonStateColors & {
|
|
6
|
+
iconColor?: string;
|
|
7
|
+
};
|
|
8
|
+
export type RadioTheme = {
|
|
9
|
+
size: string;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
padding: string;
|
|
12
|
+
borderWidth: string;
|
|
13
|
+
gap: string;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use `group.gap` instead
|
|
16
|
+
*/
|
|
17
|
+
groupGap: string;
|
|
18
|
+
group: Record<Layout, {
|
|
19
|
+
gap: string;
|
|
20
|
+
blockPadding: string;
|
|
21
|
+
}>;
|
|
22
|
+
label: {
|
|
23
|
+
gap: string;
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
};
|
|
26
|
+
variants: Record<RadioVariants, Record<RadioStates, ButtonStatesTheme<RadioStateColors>>>;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type SearchBarTheme = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
shadow: string;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
filtersSection: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
borderWidth: string;
|
|
8
|
+
};
|
|
9
|
+
searchSection: {
|
|
10
|
+
padding: string;
|
|
11
|
+
};
|
|
12
|
+
actionsBar: {
|
|
13
|
+
gap: string;
|
|
14
|
+
separator: {
|
|
15
|
+
height: string;
|
|
16
|
+
width: string;
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
customActions: {
|
|
20
|
+
gap: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type SectionTheme = {
|
|
2
|
+
width: string;
|
|
3
|
+
height: string;
|
|
4
|
+
bgColor: string;
|
|
5
|
+
shadow: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
header: {
|
|
8
|
+
minHeight: string;
|
|
9
|
+
padding: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
group: {
|
|
12
|
+
gap: string;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
textColor: string;
|
|
16
|
+
};
|
|
17
|
+
collapsedInfo: {
|
|
18
|
+
minHeight: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
collapsableBackgroundColor: string;
|
|
22
|
+
};
|
|
23
|
+
categoryValueList: {
|
|
24
|
+
gap: string;
|
|
25
|
+
categoryValueChip: {
|
|
26
|
+
gap: string;
|
|
27
|
+
minWidth: string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
categoryTextColor: string;
|
|
30
|
+
valueTextColor: string;
|
|
31
|
+
};
|
|
32
|
+
divider: {
|
|
33
|
+
width: string;
|
|
34
|
+
height: string;
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
};
|
|
37
|
+
counter: {
|
|
38
|
+
textColor: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
body: {
|
|
43
|
+
padding: string;
|
|
44
|
+
};
|
|
45
|
+
separator: {
|
|
46
|
+
width: string;
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type SelectState = 'normal' | 'focused' | 'opened' | 'error' | 'success' | 'disabled' | 'readonly';
|
|
2
|
+
type OptionState = 'normal' | 'highlighted' | 'checked' | 'disabled';
|
|
3
|
+
export type SelectTheme = {
|
|
4
|
+
padding: string;
|
|
5
|
+
height: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
fontSize: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
borderWidth: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
indicator: {
|
|
13
|
+
errorTooltipTextColor: string;
|
|
14
|
+
errorIconColor: string;
|
|
15
|
+
successIconColor: string;
|
|
16
|
+
};
|
|
17
|
+
placeholder: {
|
|
18
|
+
textColor: string;
|
|
19
|
+
};
|
|
20
|
+
reset: {
|
|
21
|
+
iconColor: string;
|
|
22
|
+
};
|
|
23
|
+
arrow: {
|
|
24
|
+
iconColor: string;
|
|
25
|
+
};
|
|
26
|
+
value: {
|
|
27
|
+
gap: string;
|
|
28
|
+
};
|
|
29
|
+
multiValue: {
|
|
30
|
+
margin: string;
|
|
31
|
+
};
|
|
32
|
+
states: Record<SelectState, {
|
|
33
|
+
bgColor?: string;
|
|
34
|
+
textColor?: string;
|
|
35
|
+
borderColor?: string;
|
|
36
|
+
}>;
|
|
37
|
+
dropdown: {
|
|
38
|
+
padding: string;
|
|
39
|
+
bgColor: string;
|
|
40
|
+
shadow: string;
|
|
41
|
+
borderRadius: string;
|
|
42
|
+
triggerOffset: string;
|
|
43
|
+
maxHeight: string;
|
|
44
|
+
search: {
|
|
45
|
+
margin: string;
|
|
46
|
+
};
|
|
47
|
+
footer: {
|
|
48
|
+
blockPadding: string;
|
|
49
|
+
inlinePadding: string;
|
|
50
|
+
separator: {
|
|
51
|
+
size: string;
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
option: {
|
|
56
|
+
height: string;
|
|
57
|
+
fontSize: string;
|
|
58
|
+
padding: string;
|
|
59
|
+
gap: string;
|
|
60
|
+
content: {
|
|
61
|
+
gap: string;
|
|
62
|
+
};
|
|
63
|
+
states: Record<OptionState, {
|
|
64
|
+
bgColor?: string;
|
|
65
|
+
textColor?: string;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonStateColors, ButtonStatesTheme } from './button.types';
|
|
2
|
+
export type SemanticVariant = 'informative' | 'notice' | 'danger' | 'attention' | 'success';
|
|
3
|
+
type OutlineVariant = 'primary' | 'secondary';
|
|
4
|
+
type SemanticButtonSize = 'M' | 'S';
|
|
5
|
+
export type SemanticButtonTheme = {
|
|
6
|
+
sizes: Record<SemanticButtonSize, {
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
padding: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
height: string;
|
|
11
|
+
}>;
|
|
12
|
+
variants: Record<SemanticVariant, Record<OutlineVariant, ButtonStatesTheme<ButtonStateColors>>>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SemanticVariant } from './semanticButton.types';
|
|
2
|
+
type SemanticContainerSize = 'M' | 'S';
|
|
3
|
+
type SemanticContainerColors = {
|
|
4
|
+
bgColor: string;
|
|
5
|
+
textColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
8
|
+
export type SemanticContainerTheme = {
|
|
9
|
+
sizes: Record<SemanticContainerSize, {
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
borderWidth: string;
|
|
12
|
+
padding: string;
|
|
13
|
+
}>;
|
|
14
|
+
variants: Record<SemanticVariant, SemanticContainerColors>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|