@redis-ui/styles 14.6.0 → 14.9.3

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 { BreadcrumbsTheme } from '../../../types/theme/components/breadcrumbs.types';
2
+ declare const theme: BreadcrumbsTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { KeyValueListTheme } from '../../../types/theme/components/keyValueList.types';
2
+ declare const theme: KeyValueListTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { SliderTheme } from '../../../types/theme/components/slider.types';
2
+ declare const theme: SliderTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { BreadcrumbsTheme } from '../../../types/theme/components/breadcrumbs.types';
2
+ declare const theme: BreadcrumbsTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { KeyValueListTheme } from '../../../types/theme/components/keyValueList.types';
2
+ declare const theme: KeyValueListTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { SliderTheme } from '../../../types/theme/components/slider.types';
2
+ declare const theme: SliderTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { BreadcrumbsTheme } from '../../../types/theme/components/breadcrumbs.types';
2
+ declare const theme: BreadcrumbsTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { KeyValueListTheme } from '../../../types/theme/components/keyValueList.types';
2
+ declare const theme: KeyValueListTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { SliderTheme } from '../../../types/theme/components/slider.types';
2
+ declare const theme: SliderTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { BreadcrumbsTheme } from '../../../types/theme/components/breadcrumbs.types';
2
+ declare const theme: BreadcrumbsTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { KeyValueListTheme } from '../../../types/theme/components/keyValueList.types';
2
+ declare const theme: KeyValueListTheme;
3
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import { SliderTheme } from '../../../types/theme/components/slider.types';
2
+ declare const theme: SliderTheme;
3
+ export default theme;
@@ -0,0 +1,18 @@
1
+ export type BreadcrumbsState = 'normal' | 'hover' | 'active' | 'disabled';
2
+ export type BreadcrumbsStateColors = {
3
+ textColor: string;
4
+ };
5
+ export type BreadcrumbsStatesTheme = Partial<Record<BreadcrumbsState, BreadcrumbsStateColors>>;
6
+ export type BreadcrumbsTheme = {
7
+ gap: string;
8
+ link: {
9
+ states: BreadcrumbsStatesTheme;
10
+ };
11
+ current: {
12
+ textColor: string;
13
+ fontWeight: string;
14
+ };
15
+ separator: {
16
+ textColor: string;
17
+ };
18
+ };
@@ -5,6 +5,7 @@ export * from './autoComplete.types';
5
5
  export * from './badge.types';
6
6
  export * from './banner.types';
7
7
  export * from './boxSelectionGroup.types';
8
+ export * from './breadcrumbs.types';
8
9
  export * from './button.types';
9
10
  export * from './buttonGroup.types';
10
11
  export * from './card.types';
@@ -18,6 +19,7 @@ export * from './filters.types';
18
19
  export * from './formField.types';
19
20
  export * from './iconButton.types';
20
21
  export * from './input.types';
22
+ export * from './keyValueList.types';
21
23
  export * from './label.types';
22
24
  export * from './layouts.types';
23
25
  export * from './link.types';
@@ -39,6 +41,7 @@ export * from './semanticContainer.types';
39
41
  export * from './semanticIcon.types';
40
42
  export * from './sideBar.types';
41
43
  export * from './skeleton.types';
44
+ export * from './slider.types';
42
45
  export * from './stepper.types';
43
46
  export * from './switch.types';
44
47
  export * from './table.types';
@@ -0,0 +1,28 @@
1
+ export type KeyValueListTheme = {
2
+ container: {
3
+ borderRadius: string;
4
+ backgroundColor: string;
5
+ boxShadow: string;
6
+ };
7
+ headerRow: {
8
+ minHeight: string;
9
+ bgColor: string;
10
+ separator: {
11
+ color: string;
12
+ width: string;
13
+ };
14
+ };
15
+ headerCell: {
16
+ padding: string;
17
+ color: string;
18
+ separator: {
19
+ color: string;
20
+ width: string;
21
+ blockPadding: string;
22
+ };
23
+ };
24
+ bodyCell: {
25
+ padding: string;
26
+ color: string;
27
+ };
28
+ };
@@ -0,0 +1,38 @@
1
+ type SliderState = 'normal' | 'disabled';
2
+ type MarkRangeState = 'inRange' | 'outOfRange';
3
+ export type SliderTheme = {
4
+ gap: string;
5
+ controlsHeight: string;
6
+ track: {
7
+ height: string;
8
+ states: Record<SliderState, {
9
+ bgColor: string;
10
+ }>;
11
+ };
12
+ range: {
13
+ states: Record<SliderState, {
14
+ bgColor: string;
15
+ }>;
16
+ };
17
+ thumb: {
18
+ width: string;
19
+ height: string;
20
+ borderWidth: string;
21
+ borderRadius: string;
22
+ states: Record<SliderState, {
23
+ bgColor: string;
24
+ borderColor: string;
25
+ }>;
26
+ };
27
+ mark: {
28
+ width: string;
29
+ height: string;
30
+ rangeStates: Record<MarkRangeState, Record<SliderState, {
31
+ bgColor: string;
32
+ }>>;
33
+ };
34
+ label: {
35
+ offset: string;
36
+ };
37
+ };
38
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { ButtonStateColors, ButtonStatesTheme } from './button.types';
2
2
  type TextButtonLayout = 'block' | 'inline';
3
3
  type TextButtonVariants = 'primary' | 'destructive' | 'primary-inline' | 'destructive-inline';
4
- type TextButtonSizes = 'M';
4
+ type TextButtonSizes = 'medium' | 'small';
5
5
  export type TextButtonTheme = {
6
6
  layouts: Record<TextButtonLayout, {
7
7
  sizes: Record<TextButtonSizes, {
@@ -1,5 +1,5 @@
1
1
  import { Tokens } from './tokens.types';
2
- import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, ButtonGroupTheme, ButtonTheme, CardTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DatePickerTheme, DrawerTheme, FiltersTheme, FormFieldTheme, IconButtonTheme, InputTheme, LabelTheme, LayoutsTheme, LinkTheme, LoaderTheme, MenuTheme, MidBarTheme, ModalTheme, MoreInfoIconTheme, PopoverTheme, PopupCardTheme, ProfileIconTheme, ProgressBarTheme, RadioTheme, SearchBarTheme, SectionTheme, SelectTheme, SemanticButtonTheme, SemanticContainerTheme, SemanticIconTheme, SideBarTheme, SkeletonTheme, 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, 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 {
@@ -11,6 +11,7 @@ export interface Theme extends ThemeCore, Tokens {
11
11
  badge: BadgeTheme;
12
12
  banner: BannerTheme;
13
13
  boxSelectionGroup: BoxSelectionGroupTheme;
14
+ breadcrumbs: BreadcrumbsTheme;
14
15
  button: ButtonTheme;
15
16
  buttonGroup: ButtonGroupTheme;
16
17
  card: CardTheme;
@@ -24,6 +25,7 @@ export interface Theme extends ThemeCore, Tokens {
24
25
  formField: FormFieldTheme;
25
26
  iconButton: IconButtonTheme;
26
27
  input: InputTheme;
28
+ keyValueList: KeyValueListTheme;
27
29
  label: LabelTheme;
28
30
  layouts: LayoutsTheme;
29
31
  link: LinkTheme;
@@ -45,6 +47,7 @@ export interface Theme extends ThemeCore, Tokens {
45
47
  semanticIcon: SemanticIconTheme;
46
48
  sideBar: SideBarTheme;
47
49
  skeleton: SkeletonTheme;
50
+ slider: SliderTheme;
48
51
  stepper: StepperTheme;
49
52
  switchButton: SwitchTheme;
50
53
  table: TableTheme;
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/styles",
3
3
  "license": "UNLICENSED",
4
- "version": "14.6.0",
5
- "publishConfig": {
6
- "registry": "https://npm.pkg.github.com/"
7
- },
4
+ "version": "14.9.3",
8
5
  "repository": "git@github.com:redislabsdev/redis-ui.git",
9
6
  "type": "module",
10
7
  "files": [
@@ -37,7 +34,7 @@
37
34
  "@redislabsdev/eslint-config-redis-ui": "^2.0.0",
38
35
  "style-dictionary": "^3.7.2",
39
36
  "type-fest": "^3.13.1",
40
- "typescript": "^4.9.3"
37
+ "typescript": "^5.9.3"
41
38
  },
42
39
  "dependencies": {
43
40
  "color-alpha": "^2.0.0",