@redis-ui/styles 14.9.2 → 14.13.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.
- package/dist/index.js +1532 -916
- package/dist/index.umd.cjs +18 -18
- package/dist/normalized-styles.css +1 -1
- package/dist/themes/themeDark/theme/components/breadcrumbs.d.ts +3 -0
- package/dist/themes/themeDark2/theme/components/breadcrumbs.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/breadcrumbs.d.ts +3 -0
- package/dist/themes/themeLight2/theme/components/breadcrumbs.d.ts +3 -0
- package/dist/themes/types/theme/components/breadcrumbs.types.d.ts +18 -0
- package/dist/themes/types/theme/components/button.types.d.ts +1 -1
- package/dist/themes/types/theme/components/index.d.ts +1 -0
- package/dist/themes/types/theme/components/textButton.types.d.ts +1 -1
- package/dist/themes/types/theme/components/typography.types.d.ts +1 -1
- package/dist/themes/types/theme/theme.types.d.ts +2 -1
- package/package.json +7 -5
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -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';
|
|
@@ -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, 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, 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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis-ui/styles",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.13.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
|
|
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": "
|
|
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": "^
|
|
38
|
+
"type-fest": "^5.4.4",
|
|
37
39
|
"typescript": "^5.9.3"
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|