@redis-ui/styles 14.9.3 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,6 @@ svg:not([fill]) {
24
24
  font-size: 62.5%;
25
25
  }
26
26
 
27
- body{
27
+ body {
28
28
  min-height: 100vh;
29
29
  }
@@ -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;
@@ -6,7 +6,7 @@ export type ButtonStateColors = {
6
6
  textColor: string;
7
7
  borderColor?: string;
8
8
  };
9
- type ButtonVariants = 'primary' | 'destructive' | 'secondary-fill' | 'secondary-invert' | 'secondary-ghost' | 'upsell';
9
+ type ButtonVariants = 'primary' | 'destructive' | 'secondary-fill' | 'secondary-invert' | 'secondary-ghost' | 'upsell' | 'upsell-invert' | 'upsell-ghost';
10
10
  type ButtonSizes = 'large' | 'medium' | 'small';
11
11
  export type ButtonTheme = {
12
12
  gap: 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,6 +1,6 @@
1
1
  import { ButtonStateColors, ButtonStatesTheme } from './button.types';
2
2
  type TextButtonLayout = 'block' | 'inline';
3
- type TextButtonVariants = 'primary' | 'destructive' | 'primary-inline' | 'destructive-inline';
3
+ type TextButtonVariants = 'primary' | 'destructive' | 'secondary' | 'upsell' | 'primary-inline' | 'destructive-inline' | 'secondary-inline' | 'upsell-inline';
4
4
  type TextButtonSizes = 'medium' | 'small';
5
5
  export type TextButtonTheme = {
6
6
  layouts: Record<TextButtonLayout, {
@@ -4,7 +4,7 @@ export type BodySize = 'XL' | 'L' | 'M' | 'S' | 'XS';
4
4
  export type BodyVariant = 'regular' | 'semiBold' | 'italic';
5
5
  export type CodeSize = 'L' | 'M' | 'S';
6
6
  export type CodeVariant = 'regular' | 'semiBold';
7
- export type ColorType = 'primary' | 'secondary';
7
+ export type ColorType = 'primary' | 'secondary' | 'notice' | 'success' | 'attention' | 'danger' | 'upsell' | 'informative';
8
8
  export type TypoTheme = {
9
9
  colors: Record<ColorType, string>;
10
10
  heading: {
@@ -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.9.3",
4
+ "version": "15.0.0",
5
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
6
6
  "type": "module",
7
7
  "files": [
@@ -19,10 +19,13 @@
19
19
  },
20
20
  "types": "./dist/index.d.ts",
21
21
  "scripts": {
22
- "transform": "style-dictionary build --config src/style-dictionary.config.cjs && npm run lint -- --fix src/tokens.ts",
22
+ "transform": "style-dictionary build --config src/style-dictionary.config.cjs && npm run format:fix -- src/tokens.ts",
23
23
  "build": "vite build",
24
24
  "deploy": "node ../../scripts/deploy.js",
25
- "lint": "eslint ./ --color --max-warnings=0"
25
+ "lint": "oxlint --deny-warnings",
26
+ "lint:fix": "oxlint --fix --deny-warnings",
27
+ "format": "oxfmt --check",
28
+ "format:fix": "oxfmt --write"
26
29
  },
27
30
  "peerDependencies": {
28
31
  "modern-normalize": "^3.0.1",
@@ -31,9 +34,8 @@
31
34
  "styled-components": "^5.0.0"
32
35
  },
33
36
  "devDependencies": {
34
- "@redislabsdev/eslint-config-redis-ui": "^2.0.0",
35
37
  "style-dictionary": "^3.7.2",
36
- "type-fest": "^3.13.1",
38
+ "type-fest": "^5.4.4",
37
39
  "typescript": "^5.9.3"
38
40
  },
39
41
  "dependencies": {