@quen-ui/theme 0.0.14 → 1.0.1
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/colors/generateCommonColorTokens.cjs.js +21 -0
- package/dist/colors/generateCommonColorTokens.d.ts +3 -0
- package/dist/colors/generateCommonColorTokens.es.js +21 -0
- package/dist/colors/types.d.ts +17 -0
- package/dist/componentTokens/generateAccordionTokens.cjs.js +10 -0
- package/dist/componentTokens/generateAccordionTokens.d.ts +15 -0
- package/dist/componentTokens/generateAccordionTokens.es.js +10 -0
- package/dist/componentTokens/generateAlertTokens.cjs.js +25 -0
- package/dist/componentTokens/generateAlertTokens.d.ts +26 -0
- package/dist/componentTokens/generateAlertTokens.es.js +25 -0
- package/dist/componentTokens/generateAvatarTokens.cjs.js +11 -0
- package/dist/componentTokens/generateAvatarTokens.d.ts +14 -0
- package/dist/componentTokens/generateAvatarTokens.es.js +11 -0
- package/dist/componentTokens/generateBadgeTokens.cjs.js +13 -0
- package/dist/componentTokens/generateBadgeTokens.d.ts +20 -0
- package/dist/componentTokens/generateBadgeTokens.es.js +13 -0
- package/dist/componentTokens/generateBreadcrumbsTokens.cjs.js +8 -0
- package/dist/componentTokens/generateBreadcrumbsTokens.d.ts +10 -0
- package/dist/componentTokens/generateBreadcrumbsTokens.es.js +8 -0
- package/dist/componentTokens/generateButtonTokens.cjs.js +14 -0
- package/dist/componentTokens/generateButtonTokens.d.ts +22 -0
- package/dist/componentTokens/generateButtonTokens.es.js +14 -0
- package/dist/componentTokens/generateCalendarTokens.cjs.js +10 -0
- package/dist/componentTokens/generateCalendarTokens.d.ts +10 -0
- package/dist/componentTokens/generateCalendarTokens.es.js +10 -0
- package/dist/componentTokens/generateCardTokens.cjs.js +7 -0
- package/dist/componentTokens/generateCardTokens.d.ts +8 -0
- package/dist/componentTokens/generateCardTokens.es.js +7 -0
- package/dist/componentTokens/generateCheckboxTokens.cjs.js +14 -0
- package/dist/componentTokens/generateCheckboxTokens.d.ts +22 -0
- package/dist/componentTokens/generateCheckboxTokens.es.js +14 -0
- package/dist/componentTokens/generateColorPickerTokens.cjs.js +14 -0
- package/dist/componentTokens/generateColorPickerTokens.d.ts +10 -0
- package/dist/componentTokens/generateColorPickerTokens.es.js +14 -0
- package/dist/componentTokens/generateDividerTokens.cjs.js +11 -0
- package/dist/componentTokens/generateDividerTokens.d.ts +16 -0
- package/dist/componentTokens/generateDividerTokens.es.js +11 -0
- package/dist/componentTokens/generateDrawerTokens.cjs.js +7 -0
- package/dist/componentTokens/generateDrawerTokens.d.ts +8 -0
- package/dist/componentTokens/generateDrawerTokens.es.js +7 -0
- package/dist/componentTokens/generateDropdownTokens.cjs.js +12 -0
- package/dist/componentTokens/generateDropdownTokens.d.ts +18 -0
- package/dist/componentTokens/generateDropdownTokens.es.js +12 -0
- package/dist/componentTokens/generateImageTokens.cjs.js +7 -0
- package/dist/componentTokens/generateImageTokens.d.ts +8 -0
- package/dist/componentTokens/generateImageTokens.es.js +7 -0
- package/dist/componentTokens/generateInputTokens.cjs.js +11 -0
- package/dist/componentTokens/generateInputTokens.d.ts +16 -0
- package/dist/componentTokens/generateInputTokens.es.js +11 -0
- package/dist/componentTokens/generateLayoutTokens.cjs.js +9 -0
- package/dist/componentTokens/generateLayoutTokens.d.ts +12 -0
- package/dist/componentTokens/generateLayoutTokens.es.js +9 -0
- package/dist/componentTokens/generateLoaderTokens.cjs.js +6 -0
- package/dist/componentTokens/generateLoaderTokens.d.ts +6 -0
- package/dist/componentTokens/generateLoaderTokens.es.js +6 -0
- package/dist/componentTokens/generateLoadingOverlayTokens.cjs.js +7 -0
- package/dist/componentTokens/generateLoadingOverlayTokens.d.ts +8 -0
- package/dist/componentTokens/generateLoadingOverlayTokens.es.js +7 -0
- package/dist/componentTokens/generateMenuTokens.cjs.js +9 -0
- package/dist/componentTokens/generateMenuTokens.d.ts +12 -0
- package/dist/componentTokens/generateMenuTokens.es.js +9 -0
- package/dist/componentTokens/generateMessageTokens.cjs.js +13 -0
- package/dist/componentTokens/generateMessageTokens.d.ts +20 -0
- package/dist/componentTokens/generateMessageTokens.es.js +13 -0
- package/dist/componentTokens/generateModalTokens.cjs.js +7 -0
- package/dist/componentTokens/generateModalTokens.d.ts +8 -0
- package/dist/componentTokens/generateModalTokens.es.js +7 -0
- package/dist/componentTokens/generateNotificationTokens.cjs.js +11 -0
- package/dist/componentTokens/generateNotificationTokens.d.ts +16 -0
- package/dist/componentTokens/generateNotificationTokens.es.js +11 -0
- package/dist/componentTokens/generatePaginationTokens.cjs.js +11 -0
- package/dist/componentTokens/generatePaginationTokens.d.ts +16 -0
- package/dist/componentTokens/generatePaginationTokens.es.js +11 -0
- package/dist/componentTokens/generateProgressTokens.cjs.js +6 -0
- package/dist/componentTokens/generateProgressTokens.d.ts +6 -0
- package/dist/componentTokens/generateProgressTokens.es.js +6 -0
- package/dist/componentTokens/generateRadioButtonTokens.cjs.js +14 -0
- package/dist/componentTokens/generateRadioButtonTokens.d.ts +22 -0
- package/dist/componentTokens/generateRadioButtonTokens.es.js +14 -0
- package/dist/componentTokens/generateRichTextEditorTokens.cjs.js +9 -0
- package/dist/componentTokens/generateRichTextEditorTokens.d.ts +9 -0
- package/dist/componentTokens/generateRichTextEditorTokens.es.js +9 -0
- package/dist/componentTokens/generateSkeletonTokens.cjs.js +6 -0
- package/dist/componentTokens/generateSkeletonTokens.d.ts +6 -0
- package/dist/componentTokens/generateSkeletonTokens.es.js +6 -0
- package/dist/componentTokens/generateSliderTokens.cjs.js +11 -0
- package/dist/componentTokens/generateSliderTokens.d.ts +16 -0
- package/dist/componentTokens/generateSliderTokens.es.js +11 -0
- package/dist/componentTokens/generateSwitchTokens.cjs.js +12 -0
- package/dist/componentTokens/generateSwitchTokens.d.ts +18 -0
- package/dist/componentTokens/generateSwitchTokens.es.js +12 -0
- package/dist/componentTokens/generateTabsTokens.cjs.js +13 -0
- package/dist/componentTokens/generateTabsTokens.d.ts +18 -0
- package/dist/componentTokens/generateTabsTokens.es.js +13 -0
- package/dist/componentTokens/generateTagTokens.cjs.js +10 -0
- package/dist/componentTokens/generateTagTokens.d.ts +14 -0
- package/dist/componentTokens/generateTagTokens.es.js +10 -0
- package/dist/componentTokens/index.cjs.js +69 -0
- package/dist/componentTokens/index.d.ts +66 -0
- package/dist/componentTokens/index.es.js +69 -0
- package/dist/createTheme.cjs.js +13 -1
- package/dist/createTheme.d.ts +2 -2
- package/dist/createTheme.es.js +13 -1
- package/dist/index.d.ts +1 -0
- package/dist/theme/darkTheme.cjs.js +6 -1
- package/dist/theme/darkTheme.es.js +6 -1
- package/dist/theme/lightTheme.cjs.js +6 -1
- package/dist/theme/lightTheme.es.js +6 -1
- package/dist/theme/types.d.ts +4 -2
- package/package.json +9 -9
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const polished = require("polished");
|
|
4
|
+
const generateCommonColorTokens = (theme) => ({
|
|
5
|
+
successColor: theme.commonColorTokens?.successColor ?? theme.colors.green[9],
|
|
6
|
+
successBackground: theme.commonColorTokens?.successBackground ?? theme.colors.green[7],
|
|
7
|
+
secondaryColor: theme.commonColorTokens?.secondaryColor ?? theme.colors.grayViolet[9],
|
|
8
|
+
secondaryBackground: theme.commonColorTokens?.secondaryBackground ?? theme.colors.gray[6],
|
|
9
|
+
warningColor: theme.commonColorTokens?.warningColor ?? theme.colors.orange[9],
|
|
10
|
+
warningBackground: theme.commonColorTokens?.warningBackground ?? theme.colors.orange[7],
|
|
11
|
+
dangerColor: theme.commonColorTokens?.dangerColor ?? theme.colors.red[9],
|
|
12
|
+
dangerBackground: theme.commonColorTokens?.dangerBackground ?? theme.colors.red[7],
|
|
13
|
+
disabledColor: theme.commonColorTokens?.disabledColor ?? theme.colors.gray[4],
|
|
14
|
+
disabledBackground: theme.commonColorTokens?.disabledBackground ?? theme.colors.gray[2],
|
|
15
|
+
primaryBackground: theme.commonColorTokens?.primaryBackground ?? theme.colors[theme.primaryColor][9],
|
|
16
|
+
borderColor: theme.commonColorTokens?.borderColor ?? theme.colors.grayViolet[9],
|
|
17
|
+
overlayBackground: theme.commonColorTokens.overlayBackground ?? polished.rgba(theme.colors.grayViolet[5], 0.7),
|
|
18
|
+
hoverBackground: theme.commonColorTokens.hoverBackground ?? theme.colors.grayViolet[5],
|
|
19
|
+
activeBackground: theme.commonColorTokens.activeBackground ?? theme.colors[theme.primaryColor][5]
|
|
20
|
+
});
|
|
21
|
+
exports.generateCommonColorTokens = generateCommonColorTokens;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { rgba } from "polished";
|
|
2
|
+
const generateCommonColorTokens = (theme) => ({
|
|
3
|
+
successColor: theme.commonColorTokens?.successColor ?? theme.colors.green[9],
|
|
4
|
+
successBackground: theme.commonColorTokens?.successBackground ?? theme.colors.green[7],
|
|
5
|
+
secondaryColor: theme.commonColorTokens?.secondaryColor ?? theme.colors.grayViolet[9],
|
|
6
|
+
secondaryBackground: theme.commonColorTokens?.secondaryBackground ?? theme.colors.gray[6],
|
|
7
|
+
warningColor: theme.commonColorTokens?.warningColor ?? theme.colors.orange[9],
|
|
8
|
+
warningBackground: theme.commonColorTokens?.warningBackground ?? theme.colors.orange[7],
|
|
9
|
+
dangerColor: theme.commonColorTokens?.dangerColor ?? theme.colors.red[9],
|
|
10
|
+
dangerBackground: theme.commonColorTokens?.dangerBackground ?? theme.colors.red[7],
|
|
11
|
+
disabledColor: theme.commonColorTokens?.disabledColor ?? theme.colors.gray[4],
|
|
12
|
+
disabledBackground: theme.commonColorTokens?.disabledBackground ?? theme.colors.gray[2],
|
|
13
|
+
primaryBackground: theme.commonColorTokens?.primaryBackground ?? theme.colors[theme.primaryColor][9],
|
|
14
|
+
borderColor: theme.commonColorTokens?.borderColor ?? theme.colors.grayViolet[9],
|
|
15
|
+
overlayBackground: theme.commonColorTokens.overlayBackground ?? rgba(theme.colors.grayViolet[5], 0.7),
|
|
16
|
+
hoverBackground: theme.commonColorTokens.hoverBackground ?? theme.colors.grayViolet[5],
|
|
17
|
+
activeBackground: theme.commonColorTokens.activeBackground ?? theme.colors[theme.primaryColor][5]
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
generateCommonColorTokens
|
|
21
|
+
};
|
package/dist/colors/types.d.ts
CHANGED
|
@@ -12,3 +12,20 @@ export interface IQuenUIColor {
|
|
|
12
12
|
}
|
|
13
13
|
export type TDefaultQuenUIColors = typeof QUENUI_COlORS_PALETTE[number];
|
|
14
14
|
export type TQuenUIColors = Record<TDefaultQuenUIColors, IQuenUIColor>;
|
|
15
|
+
export interface IQuenUICommonTokensColor {
|
|
16
|
+
successColor: string;
|
|
17
|
+
warningColor: string;
|
|
18
|
+
dangerColor: string;
|
|
19
|
+
dangerBackground: string;
|
|
20
|
+
secondaryColor: string;
|
|
21
|
+
secondaryBackground: string;
|
|
22
|
+
disabledColor: string;
|
|
23
|
+
disabledBackground: string;
|
|
24
|
+
successBackground: string;
|
|
25
|
+
warningBackground: string;
|
|
26
|
+
primaryBackground: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
overlayBackground: string;
|
|
29
|
+
hoverBackground: string;
|
|
30
|
+
activeBackground: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateAccordionTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Accordion?.radius ?? theme.control.radius,
|
|
5
|
+
disabledColor: theme.components.Accordion?.colorDisabled ?? theme.commonColorTokens.disabledColor,
|
|
6
|
+
borderColor: theme.components.Accordion?.borderColor ?? theme.commonColorTokens.borderColor,
|
|
7
|
+
padding: theme.components.Accordion?.paddingHeader ?? theme.space,
|
|
8
|
+
hoverHeaderBackground: theme.components.Accordion?.hoverHeaderBackground ?? theme.commonColorTokens.hoverBackground
|
|
9
|
+
});
|
|
10
|
+
exports.generateAccordionTokens = generateAccordionTokens;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IAccordionTokens {
|
|
3
|
+
/** Container corner radius */
|
|
4
|
+
radius: string;
|
|
5
|
+
disabledColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
padding: {
|
|
8
|
+
xs: string;
|
|
9
|
+
s: string;
|
|
10
|
+
m: string;
|
|
11
|
+
l: string;
|
|
12
|
+
};
|
|
13
|
+
hoverHeaderBackground: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const generateAccordionTokens: (theme: IQuenUITheme) => IAccordionTokens;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const generateAccordionTokens = (theme) => ({
|
|
2
|
+
radius: theme.components.Accordion?.radius ?? theme.control.radius,
|
|
3
|
+
disabledColor: theme.components.Accordion?.colorDisabled ?? theme.commonColorTokens.disabledColor,
|
|
4
|
+
borderColor: theme.components.Accordion?.borderColor ?? theme.commonColorTokens.borderColor,
|
|
5
|
+
padding: theme.components.Accordion?.paddingHeader ?? theme.space,
|
|
6
|
+
hoverHeaderBackground: theme.components.Accordion?.hoverHeaderBackground ?? theme.commonColorTokens.hoverBackground
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
generateAccordionTokens
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateAlertTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Alert?.radius ?? theme.control.radius,
|
|
5
|
+
successBackground: theme.components.Alert?.successBackground ?? [
|
|
6
|
+
theme.colors.green[1],
|
|
7
|
+
theme.colors.green[4]
|
|
8
|
+
],
|
|
9
|
+
dangerBackground: theme.components.Alert?.dangerBackground ?? [
|
|
10
|
+
theme.colors.red[1],
|
|
11
|
+
theme.colors.red[4]
|
|
12
|
+
],
|
|
13
|
+
warningBackground: theme.components.Alert?.warningBackground ?? [
|
|
14
|
+
theme.colors.orange[1],
|
|
15
|
+
theme.colors.orange[4]
|
|
16
|
+
],
|
|
17
|
+
infoBackground: theme.components.Alert?.infoBackground ?? theme.colors.grayViolet[9],
|
|
18
|
+
colorSuccessIcon: theme.components.Alert?.colorSuccessIcon ?? theme.colors.green[9],
|
|
19
|
+
colorDangerIcon: theme.components.Alert?.colorDangerIcon ?? theme.colors.red[9],
|
|
20
|
+
colorWarningIcon: theme.components.Alert?.colorWarningIcon ?? theme.colors.orange[9],
|
|
21
|
+
colorInfoIcon: theme.components.Alert?.colorInfoIcon ?? theme.colors.grayViolet[9],
|
|
22
|
+
colorText: theme.components.Alert?.colorText ?? theme.textColor,
|
|
23
|
+
colorIcon: theme.components.Alert?.colorIcon ?? theme.colors.grayViolet[1]
|
|
24
|
+
});
|
|
25
|
+
exports.generateAlertTokens = generateAlertTokens;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IAlertTokens {
|
|
3
|
+
/** Container corner radius */
|
|
4
|
+
radius: string;
|
|
5
|
+
/** Background gradient for the "success" state */
|
|
6
|
+
successBackground: [string, string];
|
|
7
|
+
/** Background gradient for the "warning" state */
|
|
8
|
+
warningBackground: [string, string];
|
|
9
|
+
/** Background gradient for the "danger" state */
|
|
10
|
+
dangerBackground: [string, string];
|
|
11
|
+
/** Background gradient for the "default" state */
|
|
12
|
+
infoBackground: string;
|
|
13
|
+
/** Background color of the icon for the "success" state */
|
|
14
|
+
colorSuccessIcon: string;
|
|
15
|
+
/** Background color of the icon for the "danger" state */
|
|
16
|
+
colorDangerIcon: string;
|
|
17
|
+
/** Background color of the icon for the "warning" state */
|
|
18
|
+
colorWarningIcon: string;
|
|
19
|
+
/** Background color of the icon for the "default" state */
|
|
20
|
+
colorInfoIcon: string;
|
|
21
|
+
/** Text color */
|
|
22
|
+
colorText: string;
|
|
23
|
+
/** Icon Color */
|
|
24
|
+
colorIcon: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const generateAlertTokens: (theme: IQuenUITheme) => IAlertTokens;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const generateAlertTokens = (theme) => ({
|
|
2
|
+
radius: theme.components.Alert?.radius ?? theme.control.radius,
|
|
3
|
+
successBackground: theme.components.Alert?.successBackground ?? [
|
|
4
|
+
theme.colors.green[1],
|
|
5
|
+
theme.colors.green[4]
|
|
6
|
+
],
|
|
7
|
+
dangerBackground: theme.components.Alert?.dangerBackground ?? [
|
|
8
|
+
theme.colors.red[1],
|
|
9
|
+
theme.colors.red[4]
|
|
10
|
+
],
|
|
11
|
+
warningBackground: theme.components.Alert?.warningBackground ?? [
|
|
12
|
+
theme.colors.orange[1],
|
|
13
|
+
theme.colors.orange[4]
|
|
14
|
+
],
|
|
15
|
+
infoBackground: theme.components.Alert?.infoBackground ?? theme.colors.grayViolet[9],
|
|
16
|
+
colorSuccessIcon: theme.components.Alert?.colorSuccessIcon ?? theme.colors.green[9],
|
|
17
|
+
colorDangerIcon: theme.components.Alert?.colorDangerIcon ?? theme.colors.red[9],
|
|
18
|
+
colorWarningIcon: theme.components.Alert?.colorWarningIcon ?? theme.colors.orange[9],
|
|
19
|
+
colorInfoIcon: theme.components.Alert?.colorInfoIcon ?? theme.colors.grayViolet[9],
|
|
20
|
+
colorText: theme.components.Alert?.colorText ?? theme.textColor,
|
|
21
|
+
colorIcon: theme.components.Alert?.colorIcon ?? theme.colors.grayViolet[1]
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
generateAlertTokens
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const polished = require("polished");
|
|
4
|
+
const generateAvatarTokens = (theme) => ({
|
|
5
|
+
radius: theme.components.Avatar?.radius ?? polished.math(`${theme.control.radius} * 4`),
|
|
6
|
+
borderWidth: theme.components.Avatar?.borderWidth ?? polished.math(`${theme.control.borderWidth} * 2`),
|
|
7
|
+
borderColorOnline: theme.components.Avatar?.borderColorOnline ?? theme.colors.green[5],
|
|
8
|
+
borderColorDefault: theme.components.Avatar?.borderColorDefault ?? theme.colors.grayViolet[5],
|
|
9
|
+
color: theme.components.Avatar?.color ?? theme.textColor
|
|
10
|
+
});
|
|
11
|
+
exports.generateAvatarTokens = generateAvatarTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IAvatarTokens {
|
|
3
|
+
/** Border radius of the avatar shape */
|
|
4
|
+
radius: string;
|
|
5
|
+
/** Thickness of the avatar border */
|
|
6
|
+
borderWidth: string;
|
|
7
|
+
/** Border color when the avatar is in an “online” state */
|
|
8
|
+
borderColorOnline: string;
|
|
9
|
+
/** Default border color when the avatar is not in an “online” state. */
|
|
10
|
+
borderColorDefault: string;
|
|
11
|
+
/** Text and icon color inside the avatar */
|
|
12
|
+
color: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const generateAvatarTokens: (theme: IQuenUITheme) => IAvatarTokens;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { math } from "polished";
|
|
2
|
+
const generateAvatarTokens = (theme) => ({
|
|
3
|
+
radius: theme.components.Avatar?.radius ?? math(`${theme.control.radius} * 4`),
|
|
4
|
+
borderWidth: theme.components.Avatar?.borderWidth ?? math(`${theme.control.borderWidth} * 2`),
|
|
5
|
+
borderColorOnline: theme.components.Avatar?.borderColorOnline ?? theme.colors.green[5],
|
|
6
|
+
borderColorDefault: theme.components.Avatar?.borderColorDefault ?? theme.colors.grayViolet[5],
|
|
7
|
+
color: theme.components.Avatar?.color ?? theme.textColor
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
generateAvatarTokens
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateBadgeTokens = (theme) => ({
|
|
4
|
+
successBackground: theme.components.Badge?.successBackground ?? theme.commonColorTokens.successColor,
|
|
5
|
+
warningBackground: theme.components.Badge?.warningBackground ?? theme.commonColorTokens.warningColor,
|
|
6
|
+
dangerBackground: theme.components.Badge?.dangerBackground ?? theme.commonColorTokens.dangerColor,
|
|
7
|
+
secondaryBackground: theme.components.Badge?.secondaryBackground ?? theme.commonColorTokens.secondaryColor,
|
|
8
|
+
disabledBackground: theme.components.Badge?.disabledBackground ?? theme.commonColorTokens.disabledColor,
|
|
9
|
+
primaryBackground: theme.components.Badge?.primaryBackground ?? theme.colors[theme.primaryColor][9],
|
|
10
|
+
radius: theme.components.Badge?.radius ?? theme.control.radius,
|
|
11
|
+
disabledColor: theme.components.Badge?.disabledColor ?? theme.commonColorTokens.disabledColor
|
|
12
|
+
});
|
|
13
|
+
exports.generateBadgeTokens = generateBadgeTokens;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IBadgeTokens {
|
|
3
|
+
/** Background color for success badges */
|
|
4
|
+
successBackground: string;
|
|
5
|
+
/** Background color for warning badges */
|
|
6
|
+
warningBackground: string;
|
|
7
|
+
/** Background color for danger badges */
|
|
8
|
+
dangerBackground: string;
|
|
9
|
+
/** Background color for secondary badges */
|
|
10
|
+
secondaryBackground: string;
|
|
11
|
+
/** Background color for disabled badges */
|
|
12
|
+
disabledBackground: string;
|
|
13
|
+
/** Background color for primary badges */
|
|
14
|
+
primaryBackground: string;
|
|
15
|
+
/** Border radius applied to all badges */
|
|
16
|
+
radius: string;
|
|
17
|
+
/** Text color for disabled badges */
|
|
18
|
+
disabledColor: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const generateBadgeTokens: (theme: IQuenUITheme) => IBadgeTokens;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const generateBadgeTokens = (theme) => ({
|
|
2
|
+
successBackground: theme.components.Badge?.successBackground ?? theme.commonColorTokens.successColor,
|
|
3
|
+
warningBackground: theme.components.Badge?.warningBackground ?? theme.commonColorTokens.warningColor,
|
|
4
|
+
dangerBackground: theme.components.Badge?.dangerBackground ?? theme.commonColorTokens.dangerColor,
|
|
5
|
+
secondaryBackground: theme.components.Badge?.secondaryBackground ?? theme.commonColorTokens.secondaryColor,
|
|
6
|
+
disabledBackground: theme.components.Badge?.disabledBackground ?? theme.commonColorTokens.disabledColor,
|
|
7
|
+
primaryBackground: theme.components.Badge?.primaryBackground ?? theme.colors[theme.primaryColor][9],
|
|
8
|
+
radius: theme.components.Badge?.radius ?? theme.control.radius,
|
|
9
|
+
disabledColor: theme.components.Badge?.disabledColor ?? theme.commonColorTokens.disabledColor
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
generateBadgeTokens
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateBreadcrumbsTokens = (theme) => ({
|
|
4
|
+
color: theme.components.Breadcrumbs?.color ?? theme.textColor,
|
|
5
|
+
primaryColor: theme.components.Breadcrumbs?.primaryColor ?? theme.colors[theme.primaryColor][9],
|
|
6
|
+
hoverColor: theme.components.Breadcrumbs?.hoverColor ?? theme.colors.grayViolet[6]
|
|
7
|
+
});
|
|
8
|
+
exports.generateBreadcrumbsTokens = generateBreadcrumbsTokens;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IBreadcrumbsTokens {
|
|
3
|
+
/** Default text color for breadcrumb items */
|
|
4
|
+
color: string;
|
|
5
|
+
/** Color for the active or last breadcrumb item */
|
|
6
|
+
primaryColor: string;
|
|
7
|
+
/** Text color when hovering over a breadcrumb item */
|
|
8
|
+
hoverColor: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const generateBreadcrumbsTokens: (theme: IQuenUITheme) => IBreadcrumbsTokens;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const generateBreadcrumbsTokens = (theme) => ({
|
|
2
|
+
color: theme.components.Breadcrumbs?.color ?? theme.textColor,
|
|
3
|
+
primaryColor: theme.components.Breadcrumbs?.primaryColor ?? theme.colors[theme.primaryColor][9],
|
|
4
|
+
hoverColor: theme.components.Breadcrumbs?.hoverColor ?? theme.colors.grayViolet[6]
|
|
5
|
+
});
|
|
6
|
+
export {
|
|
7
|
+
generateBreadcrumbsTokens
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateButtonTokens = (theme) => ({
|
|
4
|
+
disabledColor: theme.components.Button?.disabledColor ?? theme.commonColorTokens.disabledColor,
|
|
5
|
+
disabledBackground: theme.components.Button?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
6
|
+
radius: theme.components.Button?.radius ?? theme.control.radius,
|
|
7
|
+
color: theme.components.Button?.color ?? "white",
|
|
8
|
+
secondaryBackground: theme.components.Button?.secondaryBackground ?? theme.commonColorTokens.secondaryBackground,
|
|
9
|
+
dangerBackground: theme.components.Button?.dangerBackground ?? theme.commonColorTokens.dangerBackground,
|
|
10
|
+
successBackground: theme.components.Button?.successBackground ?? theme.commonColorTokens.successBackground,
|
|
11
|
+
warningBackground: theme.components.Button?.warningBackground ?? theme.commonColorTokens.warningBackground,
|
|
12
|
+
ghostColor: theme.components.Button?.ghostColor ?? theme.textColor
|
|
13
|
+
});
|
|
14
|
+
exports.generateButtonTokens = generateButtonTokens;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IButtonTokens {
|
|
3
|
+
/** Background color for disabled buttons */
|
|
4
|
+
disabledBackground: string;
|
|
5
|
+
/** Text color for disabled buttons */
|
|
6
|
+
disabledColor: string;
|
|
7
|
+
/** Border radius for all buttons */
|
|
8
|
+
radius: string;
|
|
9
|
+
/** Default text color for button content */
|
|
10
|
+
color: string;
|
|
11
|
+
/** Background color for secondary buttons */
|
|
12
|
+
secondaryBackground: string;
|
|
13
|
+
/** Background color for danger (error) buttons */
|
|
14
|
+
dangerBackground: string;
|
|
15
|
+
/** Background color for success buttons */
|
|
16
|
+
successBackground: string;
|
|
17
|
+
/** Background color for warning buttons */
|
|
18
|
+
warningBackground: string;
|
|
19
|
+
/** Text color for ghost (transparent) button variant */
|
|
20
|
+
ghostColor: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const generateButtonTokens: (theme: IQuenUITheme) => IButtonTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const generateButtonTokens = (theme) => ({
|
|
2
|
+
disabledColor: theme.components.Button?.disabledColor ?? theme.commonColorTokens.disabledColor,
|
|
3
|
+
disabledBackground: theme.components.Button?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
4
|
+
radius: theme.components.Button?.radius ?? theme.control.radius,
|
|
5
|
+
color: theme.components.Button?.color ?? "white",
|
|
6
|
+
secondaryBackground: theme.components.Button?.secondaryBackground ?? theme.commonColorTokens.secondaryBackground,
|
|
7
|
+
dangerBackground: theme.components.Button?.dangerBackground ?? theme.commonColorTokens.dangerBackground,
|
|
8
|
+
successBackground: theme.components.Button?.successBackground ?? theme.commonColorTokens.successBackground,
|
|
9
|
+
warningBackground: theme.components.Button?.warningBackground ?? theme.commonColorTokens.warningBackground,
|
|
10
|
+
ghostColor: theme.components.Button?.ghostColor ?? theme.textColor
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
generateButtonTokens
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateCalendarTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Calendar?.radius ?? theme.control.radius,
|
|
5
|
+
activeBackground: theme.components.Calendar?.activeBackground ?? theme.commonColorTokens.primaryBackground,
|
|
6
|
+
secondaryColor: theme.components.Calendar?.secondaryColor ?? theme.commonColorTokens.secondaryColor,
|
|
7
|
+
background: theme.components.Calendar?.background ?? theme.colorBody,
|
|
8
|
+
borderColor: theme.components.Calendar?.borderColor ?? theme.commonColorTokens.borderColor
|
|
9
|
+
});
|
|
10
|
+
exports.generateCalendarTokens = generateCalendarTokens;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface ICalendarTokens {
|
|
3
|
+
/** Container corner radius */
|
|
4
|
+
radius: string;
|
|
5
|
+
activeBackground: string;
|
|
6
|
+
secondaryColor: string;
|
|
7
|
+
background: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const generateCalendarTokens: (theme: IQuenUITheme) => ICalendarTokens;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const generateCalendarTokens = (theme) => ({
|
|
2
|
+
radius: theme.components.Calendar?.radius ?? theme.control.radius,
|
|
3
|
+
activeBackground: theme.components.Calendar?.activeBackground ?? theme.commonColorTokens.primaryBackground,
|
|
4
|
+
secondaryColor: theme.components.Calendar?.secondaryColor ?? theme.commonColorTokens.secondaryColor,
|
|
5
|
+
background: theme.components.Calendar?.background ?? theme.colorBody,
|
|
6
|
+
borderColor: theme.components.Calendar?.borderColor ?? theme.commonColorTokens.borderColor
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
generateCalendarTokens
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateCardTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Card?.radius ?? theme.control.radius,
|
|
5
|
+
borderColor: theme.components.Card?.borderColor ?? theme.colors.grayViolet[5]
|
|
6
|
+
});
|
|
7
|
+
exports.generateCardTokens = generateCardTokens;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface ICardTokens {
|
|
3
|
+
/** Border radius of the card */
|
|
4
|
+
radius: string;
|
|
5
|
+
/** Border color of the card */
|
|
6
|
+
borderColor: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const generateCardTokens: (theme: IQuenUITheme) => ICardTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateCheckboxTokens = (theme) => ({
|
|
4
|
+
backgroundFilled: theme.components.Checkbox?.backgroundFilled ?? theme.colors[theme.primaryColor][9],
|
|
5
|
+
disabledBackground: theme.components.Checkbox?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
6
|
+
errorColor: theme.components.Checkbox?.errorColor ?? theme.commonColorTokens.dangerColor,
|
|
7
|
+
borderErrorColor: theme.components.Checkbox?.borderErrorColor ?? theme.commonColorTokens.dangerBackground,
|
|
8
|
+
borderDisabledColor: theme.components.Checkbox?.borderDisabledColor ?? theme.colors[theme.primaryColor][3],
|
|
9
|
+
checkColor: theme.components.Checkbox?.checkColor ?? theme.colors.grayViolet[9],
|
|
10
|
+
borderColor: theme.components.Checkbox?.borderColor ?? theme.colors.grayViolet[7],
|
|
11
|
+
disabledCheckColor: theme.components.Checkbox?.disabledCheckColor ?? theme.commonColorTokens.disabledColor,
|
|
12
|
+
radius: theme.components.Checkbox?.radius ?? theme.control.radius
|
|
13
|
+
});
|
|
14
|
+
exports.generateCheckboxTokens = generateCheckboxTokens;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface ICheckboxTokens {
|
|
3
|
+
/** Background color for the filled (checked) checkbox state */
|
|
4
|
+
backgroundFilled: string;
|
|
5
|
+
/** Background color for the disabled checkbox state */
|
|
6
|
+
disabledBackground: string;
|
|
7
|
+
/** Text and icon color used for error messages or states */
|
|
8
|
+
errorColor: string;
|
|
9
|
+
/** Border color applied when the checkbox is in an error state */
|
|
10
|
+
borderErrorColor: string;
|
|
11
|
+
/** Border color for the disabled checkbox */
|
|
12
|
+
borderDisabledColor: string;
|
|
13
|
+
/** Color of the checkmark icon in the checked state */
|
|
14
|
+
checkColor: string;
|
|
15
|
+
/** Default border color of the checkbox */
|
|
16
|
+
borderColor: string;
|
|
17
|
+
/** Color of the checkmark when the checkbox is disabled */
|
|
18
|
+
disabledCheckColor: string;
|
|
19
|
+
/** Border radius of the checkbox element */
|
|
20
|
+
radius: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const generateCheckboxTokens: (theme: IQuenUITheme) => ICheckboxTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const generateCheckboxTokens = (theme) => ({
|
|
2
|
+
backgroundFilled: theme.components.Checkbox?.backgroundFilled ?? theme.colors[theme.primaryColor][9],
|
|
3
|
+
disabledBackground: theme.components.Checkbox?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
4
|
+
errorColor: theme.components.Checkbox?.errorColor ?? theme.commonColorTokens.dangerColor,
|
|
5
|
+
borderErrorColor: theme.components.Checkbox?.borderErrorColor ?? theme.commonColorTokens.dangerBackground,
|
|
6
|
+
borderDisabledColor: theme.components.Checkbox?.borderDisabledColor ?? theme.colors[theme.primaryColor][3],
|
|
7
|
+
checkColor: theme.components.Checkbox?.checkColor ?? theme.colors.grayViolet[9],
|
|
8
|
+
borderColor: theme.components.Checkbox?.borderColor ?? theme.colors.grayViolet[7],
|
|
9
|
+
disabledCheckColor: theme.components.Checkbox?.disabledCheckColor ?? theme.commonColorTokens.disabledColor,
|
|
10
|
+
radius: theme.components.Checkbox?.radius ?? theme.control.radius
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
generateCheckboxTokens
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateColorPickerTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.ColorPicker?.radius ?? theme.control.radius,
|
|
5
|
+
padding: theme.components.ColorPicker?.padding ?? {
|
|
6
|
+
l: "1rem",
|
|
7
|
+
m: "0.75rem",
|
|
8
|
+
s: "0.625rem",
|
|
9
|
+
xs: "0.5rem"
|
|
10
|
+
},
|
|
11
|
+
borderColor: theme.components.ColorPicker?.borderColor ?? theme.commonColorTokens.borderColor,
|
|
12
|
+
background: theme.components.ColorPicker?.background ?? theme.colorBody
|
|
13
|
+
});
|
|
14
|
+
exports.generateColorPickerTokens = generateColorPickerTokens;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
import { IQuenUIThemeSpace } from '../types/space';
|
|
3
|
+
export interface IColorPickerTokens {
|
|
4
|
+
/** Container corner radius */
|
|
5
|
+
radius: string;
|
|
6
|
+
padding: IQuenUIThemeSpace;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
background: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const generateColorPickerTokens: (theme: IQuenUITheme) => IColorPickerTokens;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const generateColorPickerTokens = (theme) => ({
|
|
2
|
+
radius: theme.components.ColorPicker?.radius ?? theme.control.radius,
|
|
3
|
+
padding: theme.components.ColorPicker?.padding ?? {
|
|
4
|
+
l: "1rem",
|
|
5
|
+
m: "0.75rem",
|
|
6
|
+
s: "0.625rem",
|
|
7
|
+
xs: "0.5rem"
|
|
8
|
+
},
|
|
9
|
+
borderColor: theme.components.ColorPicker?.borderColor ?? theme.commonColorTokens.borderColor,
|
|
10
|
+
background: theme.components.ColorPicker?.background ?? theme.colorBody
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
generateColorPickerTokens
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateDividerTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Divider?.radius ?? theme.control.radius,
|
|
5
|
+
disabledBackground: theme.components.Divider?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
6
|
+
dangerBackground: theme.components.Divider?.dangerBackground ?? theme.commonColorTokens.dangerBackground,
|
|
7
|
+
successBackground: theme.components.Divider?.successBackground ?? theme.commonColorTokens.successBackground,
|
|
8
|
+
warningBackground: theme.components.Divider?.warningBackground ?? theme.commonColorTokens.warningBackground,
|
|
9
|
+
primaryBackground: theme.components.Divider?.primaryBackground ?? theme.commonColorTokens.primaryBackground
|
|
10
|
+
});
|
|
11
|
+
exports.generateDividerTokens = generateDividerTokens;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IDividerTokens {
|
|
3
|
+
/** The border radius applied to the edges of the divider */
|
|
4
|
+
radius: string;
|
|
5
|
+
/** Background color used when the divider is in a disabled state */
|
|
6
|
+
disabledBackground: string;
|
|
7
|
+
/** Background color for dividers indicating an error or danger state */
|
|
8
|
+
dangerBackground: string;
|
|
9
|
+
/** Background color for dividers indicating success or confirmation */
|
|
10
|
+
successBackground: string;
|
|
11
|
+
/** Background color for dividers representing warnings or alerts */
|
|
12
|
+
warningBackground: string;
|
|
13
|
+
/** Default background color for the divider in its primary state */
|
|
14
|
+
primaryBackground: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const generateDividerTokens: (theme: IQuenUITheme) => IDividerTokens;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const generateDividerTokens = (theme) => ({
|
|
2
|
+
radius: theme.components.Divider?.radius ?? theme.control.radius,
|
|
3
|
+
disabledBackground: theme.components.Divider?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
4
|
+
dangerBackground: theme.components.Divider?.dangerBackground ?? theme.commonColorTokens.dangerBackground,
|
|
5
|
+
successBackground: theme.components.Divider?.successBackground ?? theme.commonColorTokens.successBackground,
|
|
6
|
+
warningBackground: theme.components.Divider?.warningBackground ?? theme.commonColorTokens.warningBackground,
|
|
7
|
+
primaryBackground: theme.components.Divider?.primaryBackground ?? theme.commonColorTokens.primaryBackground
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
generateDividerTokens
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateDrawerTokens = (theme) => ({
|
|
4
|
+
background: theme.components.Drawer?.background ?? theme.colors.grayViolet[2],
|
|
5
|
+
overlayBackground: theme.components.Drawer?.overlayBackground ?? theme.commonColorTokens.overlayBackground
|
|
6
|
+
});
|
|
7
|
+
exports.generateDrawerTokens = generateDrawerTokens;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuenUITheme } from '../theme/types';
|
|
2
|
+
export interface IDrawerTokens {
|
|
3
|
+
/** Background color of the drawer panel */
|
|
4
|
+
background: string;
|
|
5
|
+
/** Background color of the overlay (the semi-transparent layer behind the drawer) */
|
|
6
|
+
overlayBackground: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const generateDrawerTokens: (theme: IQuenUITheme) => IDrawerTokens;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const generateDrawerTokens = (theme) => ({
|
|
2
|
+
background: theme.components.Drawer?.background ?? theme.colors.grayViolet[2],
|
|
3
|
+
overlayBackground: theme.components.Drawer?.overlayBackground ?? theme.commonColorTokens.overlayBackground
|
|
4
|
+
});
|
|
5
|
+
export {
|
|
6
|
+
generateDrawerTokens
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const generateDropdownTokens = (theme) => ({
|
|
4
|
+
radius: theme.components.Dropdown?.radius ?? theme.control.radius,
|
|
5
|
+
background: theme.components.Dropdown?.background ?? theme.colors.grayViolet[1],
|
|
6
|
+
borderColor: theme.components.Dropdown?.borderColor ?? theme.commonColorTokens.borderColor,
|
|
7
|
+
disabledBackground: theme.components.Dropdown?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
|
|
8
|
+
disabledColor: theme.components.Dropdown?.disabledColor ?? theme.commonColorTokens.disabledColor,
|
|
9
|
+
borderLeftColor: theme.components.Dropdown?.borderLeftColor ?? theme.commonColorTokens.primaryBackground,
|
|
10
|
+
hoverBackground: theme.components.Dropdown?.hoverBackground ?? theme.colors.grayViolet[5]
|
|
11
|
+
});
|
|
12
|
+
exports.generateDropdownTokens = generateDropdownTokens;
|