@redis-ui/styles 21.22.0 → 21.24.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 +2897 -2729
- package/dist/index.umd.cjs +14 -14
- package/dist/themes/themeDark/theme/components/codeBlock.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/codeBlock.js +17 -0
- package/dist/themes/themeDark/theme/components/copyToClipboardButton.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/copyToClipboardButton.js +34 -0
- package/dist/themes/themeDark/theme.js +4 -0
- package/dist/themes/themeDarkNext/theme/components/codeBlock.d.ts +3 -0
- package/dist/themes/themeDarkNext/theme/components/codeBlock.js +17 -0
- package/dist/themes/themeDarkNext/theme/components/copyToClipboardButton.d.ts +3 -0
- package/dist/themes/themeDarkNext/theme/components/copyToClipboardButton.js +34 -0
- package/dist/themes/themeDarkNext/theme.js +4 -0
- package/dist/themes/themeLight/theme/components/codeBlock.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/codeBlock.js +17 -0
- package/dist/themes/themeLight/theme/components/copyToClipboardButton.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/copyToClipboardButton.js +34 -0
- package/dist/themes/themeLight/theme.js +4 -0
- package/dist/themes/themeLightNext/theme/components/codeBlock.d.ts +3 -0
- package/dist/themes/themeLightNext/theme/components/codeBlock.js +17 -0
- package/dist/themes/themeLightNext/theme/components/copyToClipboardButton.d.ts +3 -0
- package/dist/themes/themeLightNext/theme/components/copyToClipboardButton.js +34 -0
- package/dist/themes/themeLightNext/theme.js +4 -0
- package/dist/themes/types/theme/components/codeBlock.types.d.ts +16 -0
- package/dist/themes/types/theme/components/codeBlock.types.js +1 -0
- package/dist/themes/types/theme/components/copyToClipboardButton.types.d.ts +20 -0
- package/dist/themes/types/theme/components/copyToClipboardButton.types.js +1 -0
- package/dist/themes/types/theme/components/index.d.ts +2 -0
- package/dist/themes/types/theme/components/index.js +2 -0
- package/dist/themes/types/theme/theme.types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
bgColor: tokens.semantic.color.background.secondary900,
|
|
4
|
+
textColor: tokens.semantic.color.text.neutral0,
|
|
5
|
+
borderRadius: '0.5rem',
|
|
6
|
+
border: 'none',
|
|
7
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
8
|
+
lineHeight: '1.7',
|
|
9
|
+
paddingY: '1.4rem',
|
|
10
|
+
paddingX: '1.6rem',
|
|
11
|
+
paddingRightWithCopy: '4.8rem',
|
|
12
|
+
sizes: {
|
|
13
|
+
M: { fontSize: '1.25rem' },
|
|
14
|
+
S: { fontSize: '1.15rem' }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const { background, border, icon } = tokens.semantic.color;
|
|
3
|
+
const theme = {
|
|
4
|
+
variants: {
|
|
5
|
+
outline: {
|
|
6
|
+
size: '3.2rem',
|
|
7
|
+
iconSize: '1.4rem',
|
|
8
|
+
borderRadius: '0.4rem',
|
|
9
|
+
states: {
|
|
10
|
+
normal: {
|
|
11
|
+
bgColor: background.secondary990,
|
|
12
|
+
borderColor: border.secondary600,
|
|
13
|
+
iconColor: icon.secondary400
|
|
14
|
+
},
|
|
15
|
+
hover: {
|
|
16
|
+
bgColor: background.secondary700,
|
|
17
|
+
borderColor: border.secondary700,
|
|
18
|
+
iconColor: icon.neutral0
|
|
19
|
+
},
|
|
20
|
+
copied: {
|
|
21
|
+
bgColor: background.secondary300,
|
|
22
|
+
borderColor: border.secondary300,
|
|
23
|
+
iconColor: icon.secondary950
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
bgColor: background.secondary990,
|
|
27
|
+
borderColor: border.secondary700,
|
|
28
|
+
iconColor: icon.secondary600
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default theme;
|
|
@@ -15,6 +15,8 @@ import charts from './theme/components/charts';
|
|
|
15
15
|
import checkbox from './theme/components/checkbox';
|
|
16
16
|
import chip from './theme/components/chip';
|
|
17
17
|
import chipList from './theme/components/chipList';
|
|
18
|
+
import codeBlock from './theme/components/codeBlock';
|
|
19
|
+
import copyToClipboardButton from './theme/components/copyToClipboardButton';
|
|
18
20
|
import countryFlag from './theme/components/countryFlag';
|
|
19
21
|
import drawer from './theme/components/drawer';
|
|
20
22
|
import filters from './theme/components/filters';
|
|
@@ -83,6 +85,8 @@ export const theme = {
|
|
|
83
85
|
checkbox,
|
|
84
86
|
chip,
|
|
85
87
|
chipList,
|
|
88
|
+
codeBlock,
|
|
89
|
+
copyToClipboardButton,
|
|
86
90
|
countryFlag,
|
|
87
91
|
drawer,
|
|
88
92
|
filters,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
bgColor: tokens.semantic.color.background.secondary990,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary300,
|
|
5
|
+
borderRadius: '0.5rem',
|
|
6
|
+
border: `1px solid ${tokens.semantic.color.border.secondary500}`,
|
|
7
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
8
|
+
lineHeight: '1.7',
|
|
9
|
+
paddingY: '1.4rem',
|
|
10
|
+
paddingX: '1.6rem',
|
|
11
|
+
paddingRightWithCopy: '4.8rem',
|
|
12
|
+
sizes: {
|
|
13
|
+
M: { fontSize: '1.25rem' },
|
|
14
|
+
S: { fontSize: '1.15rem' }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const { background, border, icon } = tokens.semantic.color;
|
|
3
|
+
const theme = {
|
|
4
|
+
variants: {
|
|
5
|
+
outline: {
|
|
6
|
+
size: '3.2rem',
|
|
7
|
+
iconSize: '1.4rem',
|
|
8
|
+
borderRadius: '0.4rem',
|
|
9
|
+
states: {
|
|
10
|
+
normal: {
|
|
11
|
+
bgColor: background.secondary950,
|
|
12
|
+
borderColor: border.secondary500,
|
|
13
|
+
iconColor: icon.secondary300
|
|
14
|
+
},
|
|
15
|
+
hover: {
|
|
16
|
+
bgColor: background.secondary700,
|
|
17
|
+
borderColor: border.secondary700,
|
|
18
|
+
iconColor: icon.neutral0
|
|
19
|
+
},
|
|
20
|
+
copied: {
|
|
21
|
+
bgColor: background.secondary950,
|
|
22
|
+
borderColor: border.secondary500,
|
|
23
|
+
iconColor: icon.success500
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
bgColor: background.secondary950,
|
|
27
|
+
borderColor: border.secondary700,
|
|
28
|
+
iconColor: icon.secondary500
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default theme;
|
|
@@ -15,6 +15,8 @@ import charts from './theme/components/charts';
|
|
|
15
15
|
import checkbox from './theme/components/checkbox';
|
|
16
16
|
import chip from './theme/components/chip';
|
|
17
17
|
import chipList from './theme/components/chipList';
|
|
18
|
+
import codeBlock from './theme/components/codeBlock';
|
|
19
|
+
import copyToClipboardButton from './theme/components/copyToClipboardButton';
|
|
18
20
|
import countryFlag from './theme/components/countryFlag';
|
|
19
21
|
import drawer from './theme/components/drawer';
|
|
20
22
|
import filters from './theme/components/filters';
|
|
@@ -83,6 +85,8 @@ export const theme = {
|
|
|
83
85
|
checkbox,
|
|
84
86
|
chip,
|
|
85
87
|
chipList,
|
|
88
|
+
codeBlock,
|
|
89
|
+
copyToClipboardButton,
|
|
86
90
|
countryFlag,
|
|
87
91
|
drawer,
|
|
88
92
|
filters,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
5
|
+
borderRadius: '0.5rem',
|
|
6
|
+
border: 'none',
|
|
7
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
8
|
+
lineHeight: '1.7',
|
|
9
|
+
paddingY: '1.4rem',
|
|
10
|
+
paddingX: '1.6rem',
|
|
11
|
+
paddingRightWithCopy: '4.8rem',
|
|
12
|
+
sizes: {
|
|
13
|
+
M: { fontSize: '1.25rem' },
|
|
14
|
+
S: { fontSize: '1.15rem' }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const { background, border, icon } = tokens.semantic.color;
|
|
3
|
+
const theme = {
|
|
4
|
+
variants: {
|
|
5
|
+
outline: {
|
|
6
|
+
size: '3.2rem',
|
|
7
|
+
iconSize: '1.4rem',
|
|
8
|
+
borderRadius: '0.4rem',
|
|
9
|
+
states: {
|
|
10
|
+
normal: {
|
|
11
|
+
bgColor: background.neutral0,
|
|
12
|
+
borderColor: border.secondary500,
|
|
13
|
+
iconColor: icon.secondary700
|
|
14
|
+
},
|
|
15
|
+
hover: {
|
|
16
|
+
bgColor: background.secondary700,
|
|
17
|
+
borderColor: border.secondary700,
|
|
18
|
+
iconColor: icon.neutral0
|
|
19
|
+
},
|
|
20
|
+
copied: {
|
|
21
|
+
bgColor: background.secondary300,
|
|
22
|
+
borderColor: border.secondary300,
|
|
23
|
+
iconColor: icon.secondary950
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
bgColor: background.neutral0,
|
|
27
|
+
borderColor: border.secondary300,
|
|
28
|
+
iconColor: icon.secondary400
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default theme;
|
|
@@ -15,6 +15,8 @@ import charts from './theme/components/charts';
|
|
|
15
15
|
import checkbox from './theme/components/checkbox';
|
|
16
16
|
import chip from './theme/components/chip';
|
|
17
17
|
import chipList from './theme/components/chipList';
|
|
18
|
+
import codeBlock from './theme/components/codeBlock';
|
|
19
|
+
import copyToClipboardButton from './theme/components/copyToClipboardButton';
|
|
18
20
|
import countryFlag from './theme/components/countryFlag';
|
|
19
21
|
import drawer from './theme/components/drawer';
|
|
20
22
|
import filters from './theme/components/filters';
|
|
@@ -83,6 +85,8 @@ export const theme = {
|
|
|
83
85
|
checkbox,
|
|
84
86
|
chip,
|
|
85
87
|
chipList,
|
|
88
|
+
codeBlock,
|
|
89
|
+
copyToClipboardButton,
|
|
86
90
|
countryFlag,
|
|
87
91
|
drawer,
|
|
88
92
|
filters,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
4
|
+
textColor: tokens.semantic.color.text.secondary950,
|
|
5
|
+
borderRadius: '0.5rem',
|
|
6
|
+
border: 'none',
|
|
7
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
8
|
+
lineHeight: '1.7',
|
|
9
|
+
paddingY: '1.4rem',
|
|
10
|
+
paddingX: '1.6rem',
|
|
11
|
+
paddingRightWithCopy: '4.8rem',
|
|
12
|
+
sizes: {
|
|
13
|
+
M: { fontSize: '1.25rem' },
|
|
14
|
+
S: { fontSize: '1.15rem' }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const { background, border, icon } = tokens.semantic.color;
|
|
3
|
+
const theme = {
|
|
4
|
+
variants: {
|
|
5
|
+
outline: {
|
|
6
|
+
size: '3.2rem',
|
|
7
|
+
iconSize: '1.4rem',
|
|
8
|
+
borderRadius: '0.4rem',
|
|
9
|
+
states: {
|
|
10
|
+
normal: {
|
|
11
|
+
bgColor: background.neutral0,
|
|
12
|
+
borderColor: border.secondary400,
|
|
13
|
+
iconColor: icon.secondary700
|
|
14
|
+
},
|
|
15
|
+
hover: {
|
|
16
|
+
bgColor: background.secondary700,
|
|
17
|
+
borderColor: border.secondary700,
|
|
18
|
+
iconColor: icon.neutral0
|
|
19
|
+
},
|
|
20
|
+
copied: {
|
|
21
|
+
bgColor: background.secondary200,
|
|
22
|
+
borderColor: border.secondary200,
|
|
23
|
+
iconColor: icon.secondary950
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
bgColor: background.neutral0,
|
|
27
|
+
borderColor: border.secondary200,
|
|
28
|
+
iconColor: icon.secondary300
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default theme;
|
|
@@ -15,6 +15,8 @@ import charts from './theme/components/charts';
|
|
|
15
15
|
import checkbox from './theme/components/checkbox';
|
|
16
16
|
import chip from './theme/components/chip';
|
|
17
17
|
import chipList from './theme/components/chipList';
|
|
18
|
+
import codeBlock from './theme/components/codeBlock';
|
|
19
|
+
import copyToClipboardButton from './theme/components/copyToClipboardButton';
|
|
18
20
|
import countryFlag from './theme/components/countryFlag';
|
|
19
21
|
import drawer from './theme/components/drawer';
|
|
20
22
|
import filters from './theme/components/filters';
|
|
@@ -83,6 +85,8 @@ export const theme = {
|
|
|
83
85
|
checkbox,
|
|
84
86
|
chip,
|
|
85
87
|
chipList,
|
|
88
|
+
codeBlock,
|
|
89
|
+
copyToClipboardButton,
|
|
86
90
|
countryFlag,
|
|
87
91
|
drawer,
|
|
88
92
|
filters,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type CodeBlockSize = 'M' | 'S';
|
|
2
|
+
export type CodeBlockTheme = {
|
|
3
|
+
bgColor: string;
|
|
4
|
+
textColor: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
border: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
paddingY: string;
|
|
10
|
+
paddingX: string;
|
|
11
|
+
/** Right padding that leaves room for the copy button */
|
|
12
|
+
paddingRightWithCopy: string;
|
|
13
|
+
sizes: Record<CodeBlockSize, {
|
|
14
|
+
fontSize: string;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type CopyToClipboardButtonStateTheme = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
borderColor: string;
|
|
4
|
+
iconColor: string;
|
|
5
|
+
};
|
|
6
|
+
export type CopyToClipboardButtonTheme = {
|
|
7
|
+
variants: {
|
|
8
|
+
outline: {
|
|
9
|
+
size: string;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
borderRadius: string;
|
|
12
|
+
states: {
|
|
13
|
+
normal: CopyToClipboardButtonStateTheme;
|
|
14
|
+
hover: CopyToClipboardButtonStateTheme;
|
|
15
|
+
copied: CopyToClipboardButtonStateTheme;
|
|
16
|
+
disabled: CopyToClipboardButtonStateTheme;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,8 @@ export * from './charts.types';
|
|
|
13
13
|
export * from './checkbox.types';
|
|
14
14
|
export * from './chip.types';
|
|
15
15
|
export * from './chipList.types';
|
|
16
|
+
export * from './codeBlock.types';
|
|
17
|
+
export * from './copyToClipboardButton.types';
|
|
16
18
|
export * from './countryFlag.types';
|
|
17
19
|
export * from './drawer.types';
|
|
18
20
|
export * from './filters.types';
|
|
@@ -13,6 +13,8 @@ export * from './charts.types';
|
|
|
13
13
|
export * from './checkbox.types';
|
|
14
14
|
export * from './chip.types';
|
|
15
15
|
export * from './chipList.types';
|
|
16
|
+
export * from './codeBlock.types';
|
|
17
|
+
export * from './copyToClipboardButton.types';
|
|
16
18
|
export * from './countryFlag.types';
|
|
17
19
|
export * from './drawer.types';
|
|
18
20
|
export * from './filters.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tokens } from './tokens.types';
|
|
2
|
-
import { ActionIconButtonTheme, AppBarTheme, AppSelectionMenuTheme, AutoCompleteTheme, BadgeTheme, BannerTheme, BoxSelectionGroupTheme, BreadcrumbsTheme, ButtonGroupTheme, ButtonTheme, CardTheme, ChartsTheme, CheckboxTheme, ChipListTheme, ChipTheme, CountryFlagTheme, DrawerTheme, FiltersTheme, FormFieldTheme, GaugeTheme, HighlightedIconTheme, IconTheme, 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, ChartsTheme, CheckboxTheme, ChipListTheme, CodeBlockTheme, CopyToClipboardButtonTheme, ChipTheme, CountryFlagTheme, DrawerTheme, FiltersTheme, FormFieldTheme, GaugeTheme, HighlightedIconTheme, IconTheme, 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 {
|
|
@@ -19,6 +19,8 @@ export interface Theme extends ThemeCore, Tokens {
|
|
|
19
19
|
checkbox: CheckboxTheme;
|
|
20
20
|
chip: ChipTheme;
|
|
21
21
|
chipList: ChipListTheme;
|
|
22
|
+
codeBlock: CodeBlockTheme;
|
|
23
|
+
copyToClipboardButton: CopyToClipboardButtonTheme;
|
|
22
24
|
countryFlag: CountryFlagTheme;
|
|
23
25
|
drawer: DrawerTheme;
|
|
24
26
|
filters: FiltersTheme;
|