@redis-ui/styles 14.13.0 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ import { HighlightedIconTheme } from '../../../types/theme/components/highlightedIcon.types';
2
+ declare const theme: HighlightedIconTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { HighlightedIconTheme } from '../../../types/theme/components/highlightedIcon.types';
2
+ declare const theme: HighlightedIconTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { HighlightedIconTheme } from '../../../types/theme/components/highlightedIcon.types';
2
+ declare const theme: HighlightedIconTheme;
3
+ export default theme;
@@ -575,6 +575,7 @@ export declare const tokens: {
575
575
  M: string;
576
576
  L: string;
577
577
  XL: string;
578
+ XXL: string;
578
579
  'for-text': string;
579
580
  'by-font': string;
580
581
  };
@@ -0,0 +1,3 @@
1
+ import { HighlightedIconTheme } from '../../../types/theme/components/highlightedIcon.types';
2
+ declare const theme: HighlightedIconTheme;
3
+ export default theme;
@@ -1,4 +1,4 @@
1
- export type BadgeVariant = 'white' | 'light' | 'default' | 'informative' | 'success' | 'notice' | 'danger' | 'attention' | 'disabled';
1
+ export type BadgeVariant = 'white' | 'light' | 'default' | 'informative' | 'success' | 'notice' | 'danger' | 'attention' | 'upsell' | 'disabled';
2
2
  export type BadgeVariantStyle = {
3
3
  backgroundColor: string;
4
4
  color: string;
@@ -1,3 +1,3 @@
1
- export type IconSizeType = 'XS' | 'S' | 'M' | 'L' | 'XL';
1
+ export type IconSizeType = 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';
2
2
  export type IconButtonSizes = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
3
3
  export type BodySizesType = 'XL' | 'L' | 'M' | 'S' | 'XS';
@@ -0,0 +1,9 @@
1
+ export declare const highlightedIconVariants: readonly ["primary", "secondary", "informative", "notice", "success", "attention", "error", "upsell", "neutral"];
2
+ export type HighlightedIconVariant = (typeof highlightedIconVariants)[number];
3
+ export type HighlightedIconVariantStyle = {
4
+ background: string;
5
+ text: string;
6
+ };
7
+ export type HighlightedIconTheme = {
8
+ variants: Record<HighlightedIconVariant, HighlightedIconVariantStyle>;
9
+ };
@@ -17,6 +17,8 @@ export * from './datePicker.types';
17
17
  export * from './drawer.types';
18
18
  export * from './filters.types';
19
19
  export * from './formField.types';
20
+ export * from './global.types';
21
+ export * from './highlightedIcon.types';
20
22
  export * from './iconButton.types';
21
23
  export * from './input.types';
22
24
  export * from './keyValueList.types';
@@ -1,3 +1,4 @@
1
+ import type { LoaderSize } from './loader.types';
1
2
  type InputVariant = 'outline' | 'underline';
2
3
  type InputState = 'normal' | 'focused' | 'disabled' | 'error' | 'success' | 'readonly';
3
4
  export type InputTheme = {
@@ -19,7 +20,7 @@ export type InputTheme = {
19
20
  textColor: string;
20
21
  };
21
22
  loader: {
22
- size: string;
23
+ size: LoaderSize;
23
24
  };
24
25
  variants: Record<InputVariant, {
25
26
  borderRadius: string;
@@ -1,4 +1,4 @@
1
- export type LoaderSize = 'M' | 'S';
1
+ export type LoaderSize = 'XS' | 'S' | 'M' | 'L' | 'XL';
2
2
  export type LoaderLayout = 'inline' | 'block';
3
3
  export type LoaderShade = 'light' | 'dark';
4
4
  type LoaderVariants = 'regular' | 'pending' | 'inverse';
@@ -8,7 +8,7 @@ type LoaderColors = {
8
8
  textColor: string;
9
9
  };
10
10
  export type LoaderTheme = {
11
- size: string;
11
+ sizes: Record<LoaderSize, string>;
12
12
  gap: string;
13
13
  variants: Record<LoaderVariants, LoaderColors>;
14
14
  };
@@ -15,10 +15,16 @@ export type StepperTheme = {
15
15
  letterSpacing: string;
16
16
  fontWeight: string;
17
17
  };
18
+ separator: {
19
+ bgColor: string;
20
+ };
18
21
  }>;
19
22
  indicator: {
20
23
  size: string;
21
24
  };
25
+ separator: {
26
+ height: string;
27
+ };
22
28
  };
23
29
  };
24
30
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Tokens } from './tokens.types';
2
- import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, BreadcrumbsTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, IconButtonTheme, InputTheme, KeyValueListTheme, LabelTheme, LayoutsTheme, LinkTheme, LoaderTheme, MenuTheme, MidBarTheme, ModalTheme, MoreInfoIconTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, SliderTheme, StepperTheme, SwitchTheme, TableHeadingTheme, TableTheme, TabsTheme, TextButtonTheme, ThemeModeSwitchTheme, ToastTheme, ToggleButtonTheme, TooltipTheme, TreeViewTheme, TypoTheme, WindowBarTheme } from './components';
2
+ import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, BreadcrumbsTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, HighlightedIconTheme, IconButtonTheme, InputTheme, KeyValueListTheme, LabelTheme, LayoutsTheme, LinkTheme, LoaderTheme, MenuTheme, MidBarTheme, ModalTheme, MoreInfoIconTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, SliderTheme, StepperTheme, SwitchTheme, TableHeadingTheme, TableTheme, TabsTheme, TextButtonTheme, ThemeModeSwitchTheme, ToastTheme, ToggleButtonTheme, TooltipTheme, TreeViewTheme, TypoTheme, WindowBarTheme } from './components';
3
3
  import { BodyTheme, ScrollbarTheme } from './globals';
4
4
  import { ThemeCore } from './themeCore.types';
5
5
  export interface Theme extends ThemeCore, Tokens {
@@ -23,6 +23,7 @@ export interface Theme extends ThemeCore, Tokens {
23
23
  drawer: DrawerTheme;
24
24
  filters: FiltersTheme;
25
25
  formField: FormFieldTheme;
26
+ highlightedIcon: HighlightedIconTheme;
26
27
  iconButton: IconButtonTheme;
27
28
  input: InputTheme;
28
29
  keyValueList: KeyValueListTheme;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "14.13.0",
4
+ "version": "15.1.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "modern-normalize": "^3.0.1",
32
- "react": "^17.0.0 || ^18.0.0",
33
- "react-dom": "^17.0.0 || ^18.0.0",
32
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
33
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
34
34
  "styled-components": "^5.0.0"
35
35
  },
36
36
  "devDependencies": {