@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.
Files changed (218) hide show
  1. package/dist/focus-indicator.d.ts +2 -0
  2. package/dist/fonts.css +1 -0
  3. package/dist/index.d.ts +8 -0
  4. package/dist/index.js +8240 -0
  5. package/dist/index.umd.cjs +9 -0
  6. package/dist/normalized-styles.css +23 -0
  7. package/dist/themes/hooks/useTheme.d.ts +2 -0
  8. package/dist/themes/themeDark/theme/components/actionIconButton.d.ts +3 -0
  9. package/dist/themes/themeDark/theme/components/appBar.d.ts +3 -0
  10. package/dist/themes/themeDark/theme/components/appSelectionMenu.d.ts +3 -0
  11. package/dist/themes/themeDark/theme/components/autoComplete.d.ts +3 -0
  12. package/dist/themes/themeDark/theme/components/badge.d.ts +3 -0
  13. package/dist/themes/themeDark/theme/components/banner.d.ts +3 -0
  14. package/dist/themes/themeDark/theme/components/boxSelectionGroup.d.ts +3 -0
  15. package/dist/themes/themeDark/theme/components/button.d.ts +3 -0
  16. package/dist/themes/themeDark/theme/components/buttonGroup.d.ts +3 -0
  17. package/dist/themes/themeDark/theme/components/card.d.ts +3 -0
  18. package/dist/themes/themeDark/theme/components/checkbox.d.ts +3 -0
  19. package/dist/themes/themeDark/theme/components/chip.d.ts +3 -0
  20. package/dist/themes/themeDark/theme/components/chipList.d.ts +3 -0
  21. package/dist/themes/themeDark/theme/components/countryFlag.d.ts +3 -0
  22. package/dist/themes/themeDark/theme/components/datePicker.d.ts +3 -0
  23. package/dist/themes/themeDark/theme/components/drawer.d.ts +3 -0
  24. package/dist/themes/themeDark/theme/components/filters.d.ts +3 -0
  25. package/dist/themes/themeDark/theme/components/formField.d.ts +3 -0
  26. package/dist/themes/themeDark/theme/components/iconButton.d.ts +3 -0
  27. package/dist/themes/themeDark/theme/components/input.d.ts +3 -0
  28. package/dist/themes/themeDark/theme/components/label.d.ts +3 -0
  29. package/dist/themes/themeDark/theme/components/link.d.ts +3 -0
  30. package/dist/themes/themeDark/theme/components/loader.d.ts +3 -0
  31. package/dist/themes/themeDark/theme/components/menu.d.ts +3 -0
  32. package/dist/themes/themeDark/theme/components/modal.d.ts +3 -0
  33. package/dist/themes/themeDark/theme/components/popover.d.ts +3 -0
  34. package/dist/themes/themeDark/theme/components/popupCard.d.ts +3 -0
  35. package/dist/themes/themeDark/theme/components/profileIcon.d.ts +3 -0
  36. package/dist/themes/themeDark/theme/components/progressBar.d.ts +3 -0
  37. package/dist/themes/themeDark/theme/components/radio.d.ts +3 -0
  38. package/dist/themes/themeDark/theme/components/searchBar.d.ts +3 -0
  39. package/dist/themes/themeDark/theme/components/section.d.ts +3 -0
  40. package/dist/themes/themeDark/theme/components/select.d.ts +3 -0
  41. package/dist/themes/themeDark/theme/components/semanticButton.d.ts +3 -0
  42. package/dist/themes/themeDark/theme/components/semanticContainer.d.ts +3 -0
  43. package/dist/themes/themeDark/theme/components/semanticIcon.d.ts +3 -0
  44. package/dist/themes/themeDark/theme/components/sideBar.d.ts +3 -0
  45. package/dist/themes/themeDark/theme/components/skeleton.d.ts +3 -0
  46. package/dist/themes/themeDark/theme/components/stepper.d.ts +3 -0
  47. package/dist/themes/themeDark/theme/components/switch.d.ts +3 -0
  48. package/dist/themes/themeDark/theme/components/table.d.ts +3 -0
  49. package/dist/themes/themeDark/theme/components/tableHeading.d.ts +3 -0
  50. package/dist/themes/themeDark/theme/components/tabs.d.ts +3 -0
  51. package/dist/themes/themeDark/theme/components/textButton.d.ts +3 -0
  52. package/dist/themes/themeDark/theme/components/toast.d.ts +3 -0
  53. package/dist/themes/themeDark/theme/components/toggleButton.d.ts +3 -0
  54. package/dist/themes/themeDark/theme/components/tooltip.d.ts +3 -0
  55. package/dist/themes/themeDark/theme/components/treeView.d.ts +3 -0
  56. package/dist/themes/themeDark/theme/components/typography.d.ts +3 -0
  57. package/dist/themes/themeDark/theme/components/windowBar.d.ts +3 -0
  58. package/dist/themes/themeDark/theme.d.ts +2 -0
  59. package/dist/themes/themeDark/tokens.d.ts +3 -0
  60. package/dist/themes/themeLight/theme/components/actionIconButton.d.ts +3 -0
  61. package/dist/themes/themeLight/theme/components/appBar.d.ts +3 -0
  62. package/dist/themes/themeLight/theme/components/appSelectionMenu.d.ts +3 -0
  63. package/dist/themes/themeLight/theme/components/autoComplete.d.ts +3 -0
  64. package/dist/themes/themeLight/theme/components/badge.d.ts +3 -0
  65. package/dist/themes/themeLight/theme/components/banner.d.ts +3 -0
  66. package/dist/themes/themeLight/theme/components/boxSelectionGroup.d.ts +3 -0
  67. package/dist/themes/themeLight/theme/components/button.d.ts +3 -0
  68. package/dist/themes/themeLight/theme/components/buttonGroup.d.ts +3 -0
  69. package/dist/themes/themeLight/theme/components/card.d.ts +3 -0
  70. package/dist/themes/themeLight/theme/components/checkbox.d.ts +3 -0
  71. package/dist/themes/themeLight/theme/components/chip.d.ts +3 -0
  72. package/dist/themes/themeLight/theme/components/chipList.d.ts +3 -0
  73. package/dist/themes/themeLight/theme/components/countryFlag.d.ts +3 -0
  74. package/dist/themes/themeLight/theme/components/datePicker.d.ts +3 -0
  75. package/dist/themes/themeLight/theme/components/drawer.d.ts +3 -0
  76. package/dist/themes/themeLight/theme/components/filters.d.ts +3 -0
  77. package/dist/themes/themeLight/theme/components/formField.d.ts +3 -0
  78. package/dist/themes/themeLight/theme/components/iconButton.d.ts +3 -0
  79. package/dist/themes/themeLight/theme/components/input.d.ts +3 -0
  80. package/dist/themes/themeLight/theme/components/label.d.ts +3 -0
  81. package/dist/themes/themeLight/theme/components/link.d.ts +3 -0
  82. package/dist/themes/themeLight/theme/components/loader.d.ts +3 -0
  83. package/dist/themes/themeLight/theme/components/menu.d.ts +3 -0
  84. package/dist/themes/themeLight/theme/components/modal.d.ts +3 -0
  85. package/dist/themes/themeLight/theme/components/popover.d.ts +3 -0
  86. package/dist/themes/themeLight/theme/components/popupCard.d.ts +3 -0
  87. package/dist/themes/themeLight/theme/components/profileIcon.d.ts +3 -0
  88. package/dist/themes/themeLight/theme/components/progressBar.d.ts +3 -0
  89. package/dist/themes/themeLight/theme/components/radio.d.ts +3 -0
  90. package/dist/themes/themeLight/theme/components/searchBar.d.ts +3 -0
  91. package/dist/themes/themeLight/theme/components/section.d.ts +3 -0
  92. package/dist/themes/themeLight/theme/components/select.d.ts +3 -0
  93. package/dist/themes/themeLight/theme/components/semanticButton.d.ts +3 -0
  94. package/dist/themes/themeLight/theme/components/semanticContainer.d.ts +3 -0
  95. package/dist/themes/themeLight/theme/components/semanticIcon.d.ts +3 -0
  96. package/dist/themes/themeLight/theme/components/sideBar.d.ts +3 -0
  97. package/dist/themes/themeLight/theme/components/skeleton.d.ts +3 -0
  98. package/dist/themes/themeLight/theme/components/stepper.d.ts +3 -0
  99. package/dist/themes/themeLight/theme/components/switch.d.ts +3 -0
  100. package/dist/themes/themeLight/theme/components/table.d.ts +3 -0
  101. package/dist/themes/themeLight/theme/components/tableHeading.d.ts +3 -0
  102. package/dist/themes/themeLight/theme/components/tabs.d.ts +3 -0
  103. package/dist/themes/themeLight/theme/components/textButton.d.ts +3 -0
  104. package/dist/themes/themeLight/theme/components/toast.d.ts +3 -0
  105. package/dist/themes/themeLight/theme/components/toggleButton.d.ts +3 -0
  106. package/dist/themes/themeLight/theme/components/tooltip.d.ts +3 -0
  107. package/dist/themes/themeLight/theme/components/treeView.d.ts +3 -0
  108. package/dist/themes/themeLight/theme/components/typography.d.ts +3 -0
  109. package/dist/themes/themeLight/theme/components/windowBar.d.ts +3 -0
  110. package/dist/themes/themeLight/theme.d.ts +2 -0
  111. package/dist/themes/themeLight/tokens.d.ts +3 -0
  112. package/dist/themes/themeOld/components/actionIconButton.d.ts +3 -0
  113. package/dist/themes/themeOld/components/appBar.d.ts +3 -0
  114. package/dist/themes/themeOld/components/appSelectionMenu.d.ts +3 -0
  115. package/dist/themes/themeOld/components/autoComplete.d.ts +3 -0
  116. package/dist/themes/themeOld/components/badge.d.ts +3 -0
  117. package/dist/themes/themeOld/components/banner.d.ts +3 -0
  118. package/dist/themes/themeOld/components/boxSelectionGroup.d.ts +3 -0
  119. package/dist/themes/themeOld/components/button.d.ts +3 -0
  120. package/dist/themes/themeOld/components/buttonGroup.d.ts +3 -0
  121. package/dist/themes/themeOld/components/card.d.ts +3 -0
  122. package/dist/themes/themeOld/components/checkbox.d.ts +3 -0
  123. package/dist/themes/themeOld/components/chip.d.ts +3 -0
  124. package/dist/themes/themeOld/components/chipList.d.ts +3 -0
  125. package/dist/themes/themeOld/components/countryFlag.d.ts +3 -0
  126. package/dist/themes/themeOld/components/datePicker.d.ts +3 -0
  127. package/dist/themes/themeOld/components/drawer.d.ts +3 -0
  128. package/dist/themes/themeOld/components/filters.d.ts +3 -0
  129. package/dist/themes/themeOld/components/formField.d.ts +3 -0
  130. package/dist/themes/themeOld/components/iconButton.d.ts +3 -0
  131. package/dist/themes/themeOld/components/input.d.ts +3 -0
  132. package/dist/themes/themeOld/components/label.d.ts +3 -0
  133. package/dist/themes/themeOld/components/link.d.ts +3 -0
  134. package/dist/themes/themeOld/components/loader.d.ts +3 -0
  135. package/dist/themes/themeOld/components/menu.d.ts +3 -0
  136. package/dist/themes/themeOld/components/modal.d.ts +3 -0
  137. package/dist/themes/themeOld/components/popover.d.ts +3 -0
  138. package/dist/themes/themeOld/components/popupCard.d.ts +3 -0
  139. package/dist/themes/themeOld/components/profileIcon.d.ts +3 -0
  140. package/dist/themes/themeOld/components/progressBar.d.ts +3 -0
  141. package/dist/themes/themeOld/components/radio.d.ts +3 -0
  142. package/dist/themes/themeOld/components/searchBar.d.ts +3 -0
  143. package/dist/themes/themeOld/components/section.d.ts +3 -0
  144. package/dist/themes/themeOld/components/select.d.ts +3 -0
  145. package/dist/themes/themeOld/components/semanticButton.d.ts +15 -0
  146. package/dist/themes/themeOld/components/semanticContainer.d.ts +3 -0
  147. package/dist/themes/themeOld/components/semanticIcon.d.ts +3 -0
  148. package/dist/themes/themeOld/components/sideBar.d.ts +3 -0
  149. package/dist/themes/themeOld/components/skeleton.d.ts +3 -0
  150. package/dist/themes/themeOld/components/stepper.d.ts +3 -0
  151. package/dist/themes/themeOld/components/switch.d.ts +3 -0
  152. package/dist/themes/themeOld/components/table.d.ts +3 -0
  153. package/dist/themes/themeOld/components/tableHeading.d.ts +3 -0
  154. package/dist/themes/themeOld/components/tabs.d.ts +3 -0
  155. package/dist/themes/themeOld/components/textButton.d.ts +3 -0
  156. package/dist/themes/themeOld/components/toast.d.ts +3 -0
  157. package/dist/themes/themeOld/components/toggleButton.d.ts +3 -0
  158. package/dist/themes/themeOld/components/tooltip.d.ts +3 -0
  159. package/dist/themes/themeOld/components/treeView.d.ts +3 -0
  160. package/dist/themes/themeOld/components/typography.d.ts +3 -0
  161. package/dist/themes/themeOld/components/windowBar.d.ts +3 -0
  162. package/dist/themes/themeOld/theme.d.ts +445 -0
  163. package/dist/themes/themeOld/tokens.d.ts +393 -0
  164. package/dist/themes/types/theme/components/actionIconButton.types.d.ts +11 -0
  165. package/dist/themes/types/theme/components/appBar.types.d.ts +15 -0
  166. package/dist/themes/types/theme/components/appSelectionMenu.types.d.ts +32 -0
  167. package/dist/themes/types/theme/components/autoComplete.types.d.ts +6 -0
  168. package/dist/themes/types/theme/components/badge.types.d.ts +16 -0
  169. package/dist/themes/types/theme/components/banner.types.d.ts +13 -0
  170. package/dist/themes/types/theme/components/boxSelectionGroup.types.d.ts +25 -0
  171. package/dist/themes/types/theme/components/button.types.d.ts +20 -0
  172. package/dist/themes/types/theme/components/buttonGroup.types.d.ts +20 -0
  173. package/dist/themes/types/theme/components/card.types.d.ts +7 -0
  174. package/dist/themes/types/theme/components/checkbox.types.d.ts +19 -0
  175. package/dist/themes/types/theme/components/chip.types.d.ts +24 -0
  176. package/dist/themes/types/theme/components/chipList.types.d.ts +14 -0
  177. package/dist/themes/types/theme/components/countryFlag.types.d.ts +7 -0
  178. package/dist/themes/types/theme/components/datePicker.types.d.ts +65 -0
  179. package/dist/themes/types/theme/components/drawer.types.d.ts +23 -0
  180. package/dist/themes/types/theme/components/filters.types.d.ts +34 -0
  181. package/dist/themes/types/theme/components/formField.types.d.ts +15 -0
  182. package/dist/themes/types/theme/components/global.types.d.ts +3 -0
  183. package/dist/themes/types/theme/components/iconButton.types.d.ts +11 -0
  184. package/dist/themes/types/theme/components/input.types.d.ts +70 -0
  185. package/dist/themes/types/theme/components/label.types.d.ts +22 -0
  186. package/dist/themes/types/theme/components/link.types.d.ts +14 -0
  187. package/dist/themes/types/theme/components/loader.types.d.ts +19 -0
  188. package/dist/themes/types/theme/components/menu.types.d.ts +43 -0
  189. package/dist/themes/types/theme/components/modal.types.d.ts +27 -0
  190. package/dist/themes/types/theme/components/popover.types.d.ts +14 -0
  191. package/dist/themes/types/theme/components/popupCard.types.d.ts +20 -0
  192. package/dist/themes/types/theme/components/profileIcon.types.d.ts +13 -0
  193. package/dist/themes/types/theme/components/progressBar.types.d.ts +27 -0
  194. package/dist/themes/types/theme/components/radio.types.d.ts +28 -0
  195. package/dist/themes/types/theme/components/searchBar.types.d.ts +23 -0
  196. package/dist/themes/types/theme/components/section.types.d.ts +49 -0
  197. package/dist/themes/types/theme/components/select.types.d.ts +70 -0
  198. package/dist/themes/types/theme/components/semanticButton.types.d.ts +14 -0
  199. package/dist/themes/types/theme/components/semanticContainer.types.d.ts +16 -0
  200. package/dist/themes/types/theme/components/semanticIcon.types.d.ts +8 -0
  201. package/dist/themes/types/theme/components/sideBar.types.d.ts +79 -0
  202. package/dist/themes/types/theme/components/skeleton.types.d.ts +24 -0
  203. package/dist/themes/types/theme/components/stepper.types.d.ts +23 -0
  204. package/dist/themes/types/theme/components/switch.types.d.ts +20 -0
  205. package/dist/themes/types/theme/components/table.types.d.ts +46 -0
  206. package/dist/themes/types/theme/components/tableHeading.types.d.ts +19 -0
  207. package/dist/themes/types/theme/components/tabs.types.d.ts +35 -0
  208. package/dist/themes/types/theme/components/textButton.types.d.ts +13 -0
  209. package/dist/themes/types/theme/components/toast.types.d.ts +13 -0
  210. package/dist/themes/types/theme/components/toggleButton.types.d.ts +20 -0
  211. package/dist/themes/types/theme/components/tooltip.types.d.ts +15 -0
  212. package/dist/themes/types/theme/components/treeView.types.d.ts +15 -0
  213. package/dist/themes/types/theme/components/typography.types.d.ts +26 -0
  214. package/dist/themes/types/theme/components/windowBar.types.d.ts +13 -0
  215. package/dist/themes/types/theme/theme.types.d.ts +50 -0
  216. package/dist/themes/types/theme.types.d.ts +4 -0
  217. package/dist/utils.d.ts +5 -0
  218. 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,15 @@
1
+ export type FormFieldTheme = {
2
+ columnGap: string;
3
+ group: {
4
+ rowGap: string;
5
+ };
6
+ additionalText: {
7
+ margin: string;
8
+ normal: {
9
+ textColor: string;
10
+ };
11
+ error: {
12
+ textColor: string;
13
+ };
14
+ };
15
+ };
@@ -0,0 +1,3 @@
1
+ export type IconSizeType = 'XS' | 'S' | 'M' | 'L' | 'XL';
2
+ export type IconButtonSizes = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
3
+ export type BodySizesType = 'XL' | 'L' | 'M' | 'S' | 'XS';
@@ -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 {};
@@ -0,0 +1,8 @@
1
+ import { SemanticVariant } from './semanticButton.types';
2
+ type SemanticIconColors = {
3
+ iconColor: string;
4
+ };
5
+ export type SemanticIconTheme = {
6
+ variants: Record<SemanticVariant, SemanticIconColors>;
7
+ };
8
+ export {};