@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.
Files changed (110) hide show
  1. package/dist/colors/generateCommonColorTokens.cjs.js +21 -0
  2. package/dist/colors/generateCommonColorTokens.d.ts +3 -0
  3. package/dist/colors/generateCommonColorTokens.es.js +21 -0
  4. package/dist/colors/types.d.ts +17 -0
  5. package/dist/componentTokens/generateAccordionTokens.cjs.js +10 -0
  6. package/dist/componentTokens/generateAccordionTokens.d.ts +15 -0
  7. package/dist/componentTokens/generateAccordionTokens.es.js +10 -0
  8. package/dist/componentTokens/generateAlertTokens.cjs.js +25 -0
  9. package/dist/componentTokens/generateAlertTokens.d.ts +26 -0
  10. package/dist/componentTokens/generateAlertTokens.es.js +25 -0
  11. package/dist/componentTokens/generateAvatarTokens.cjs.js +11 -0
  12. package/dist/componentTokens/generateAvatarTokens.d.ts +14 -0
  13. package/dist/componentTokens/generateAvatarTokens.es.js +11 -0
  14. package/dist/componentTokens/generateBadgeTokens.cjs.js +13 -0
  15. package/dist/componentTokens/generateBadgeTokens.d.ts +20 -0
  16. package/dist/componentTokens/generateBadgeTokens.es.js +13 -0
  17. package/dist/componentTokens/generateBreadcrumbsTokens.cjs.js +8 -0
  18. package/dist/componentTokens/generateBreadcrumbsTokens.d.ts +10 -0
  19. package/dist/componentTokens/generateBreadcrumbsTokens.es.js +8 -0
  20. package/dist/componentTokens/generateButtonTokens.cjs.js +14 -0
  21. package/dist/componentTokens/generateButtonTokens.d.ts +22 -0
  22. package/dist/componentTokens/generateButtonTokens.es.js +14 -0
  23. package/dist/componentTokens/generateCalendarTokens.cjs.js +10 -0
  24. package/dist/componentTokens/generateCalendarTokens.d.ts +10 -0
  25. package/dist/componentTokens/generateCalendarTokens.es.js +10 -0
  26. package/dist/componentTokens/generateCardTokens.cjs.js +7 -0
  27. package/dist/componentTokens/generateCardTokens.d.ts +8 -0
  28. package/dist/componentTokens/generateCardTokens.es.js +7 -0
  29. package/dist/componentTokens/generateCheckboxTokens.cjs.js +14 -0
  30. package/dist/componentTokens/generateCheckboxTokens.d.ts +22 -0
  31. package/dist/componentTokens/generateCheckboxTokens.es.js +14 -0
  32. package/dist/componentTokens/generateColorPickerTokens.cjs.js +14 -0
  33. package/dist/componentTokens/generateColorPickerTokens.d.ts +10 -0
  34. package/dist/componentTokens/generateColorPickerTokens.es.js +14 -0
  35. package/dist/componentTokens/generateDividerTokens.cjs.js +11 -0
  36. package/dist/componentTokens/generateDividerTokens.d.ts +16 -0
  37. package/dist/componentTokens/generateDividerTokens.es.js +11 -0
  38. package/dist/componentTokens/generateDrawerTokens.cjs.js +7 -0
  39. package/dist/componentTokens/generateDrawerTokens.d.ts +8 -0
  40. package/dist/componentTokens/generateDrawerTokens.es.js +7 -0
  41. package/dist/componentTokens/generateDropdownTokens.cjs.js +12 -0
  42. package/dist/componentTokens/generateDropdownTokens.d.ts +18 -0
  43. package/dist/componentTokens/generateDropdownTokens.es.js +12 -0
  44. package/dist/componentTokens/generateImageTokens.cjs.js +7 -0
  45. package/dist/componentTokens/generateImageTokens.d.ts +8 -0
  46. package/dist/componentTokens/generateImageTokens.es.js +7 -0
  47. package/dist/componentTokens/generateInputTokens.cjs.js +11 -0
  48. package/dist/componentTokens/generateInputTokens.d.ts +16 -0
  49. package/dist/componentTokens/generateInputTokens.es.js +11 -0
  50. package/dist/componentTokens/generateLayoutTokens.cjs.js +9 -0
  51. package/dist/componentTokens/generateLayoutTokens.d.ts +12 -0
  52. package/dist/componentTokens/generateLayoutTokens.es.js +9 -0
  53. package/dist/componentTokens/generateLoaderTokens.cjs.js +6 -0
  54. package/dist/componentTokens/generateLoaderTokens.d.ts +6 -0
  55. package/dist/componentTokens/generateLoaderTokens.es.js +6 -0
  56. package/dist/componentTokens/generateLoadingOverlayTokens.cjs.js +7 -0
  57. package/dist/componentTokens/generateLoadingOverlayTokens.d.ts +8 -0
  58. package/dist/componentTokens/generateLoadingOverlayTokens.es.js +7 -0
  59. package/dist/componentTokens/generateMenuTokens.cjs.js +9 -0
  60. package/dist/componentTokens/generateMenuTokens.d.ts +12 -0
  61. package/dist/componentTokens/generateMenuTokens.es.js +9 -0
  62. package/dist/componentTokens/generateMessageTokens.cjs.js +13 -0
  63. package/dist/componentTokens/generateMessageTokens.d.ts +20 -0
  64. package/dist/componentTokens/generateMessageTokens.es.js +13 -0
  65. package/dist/componentTokens/generateModalTokens.cjs.js +7 -0
  66. package/dist/componentTokens/generateModalTokens.d.ts +8 -0
  67. package/dist/componentTokens/generateModalTokens.es.js +7 -0
  68. package/dist/componentTokens/generateNotificationTokens.cjs.js +11 -0
  69. package/dist/componentTokens/generateNotificationTokens.d.ts +16 -0
  70. package/dist/componentTokens/generateNotificationTokens.es.js +11 -0
  71. package/dist/componentTokens/generatePaginationTokens.cjs.js +11 -0
  72. package/dist/componentTokens/generatePaginationTokens.d.ts +16 -0
  73. package/dist/componentTokens/generatePaginationTokens.es.js +11 -0
  74. package/dist/componentTokens/generateProgressTokens.cjs.js +6 -0
  75. package/dist/componentTokens/generateProgressTokens.d.ts +6 -0
  76. package/dist/componentTokens/generateProgressTokens.es.js +6 -0
  77. package/dist/componentTokens/generateRadioButtonTokens.cjs.js +14 -0
  78. package/dist/componentTokens/generateRadioButtonTokens.d.ts +22 -0
  79. package/dist/componentTokens/generateRadioButtonTokens.es.js +14 -0
  80. package/dist/componentTokens/generateRichTextEditorTokens.cjs.js +9 -0
  81. package/dist/componentTokens/generateRichTextEditorTokens.d.ts +9 -0
  82. package/dist/componentTokens/generateRichTextEditorTokens.es.js +9 -0
  83. package/dist/componentTokens/generateSkeletonTokens.cjs.js +6 -0
  84. package/dist/componentTokens/generateSkeletonTokens.d.ts +6 -0
  85. package/dist/componentTokens/generateSkeletonTokens.es.js +6 -0
  86. package/dist/componentTokens/generateSliderTokens.cjs.js +11 -0
  87. package/dist/componentTokens/generateSliderTokens.d.ts +16 -0
  88. package/dist/componentTokens/generateSliderTokens.es.js +11 -0
  89. package/dist/componentTokens/generateSwitchTokens.cjs.js +12 -0
  90. package/dist/componentTokens/generateSwitchTokens.d.ts +18 -0
  91. package/dist/componentTokens/generateSwitchTokens.es.js +12 -0
  92. package/dist/componentTokens/generateTabsTokens.cjs.js +13 -0
  93. package/dist/componentTokens/generateTabsTokens.d.ts +18 -0
  94. package/dist/componentTokens/generateTabsTokens.es.js +13 -0
  95. package/dist/componentTokens/generateTagTokens.cjs.js +10 -0
  96. package/dist/componentTokens/generateTagTokens.d.ts +14 -0
  97. package/dist/componentTokens/generateTagTokens.es.js +10 -0
  98. package/dist/componentTokens/index.cjs.js +69 -0
  99. package/dist/componentTokens/index.d.ts +66 -0
  100. package/dist/componentTokens/index.es.js +69 -0
  101. package/dist/createTheme.cjs.js +13 -1
  102. package/dist/createTheme.d.ts +2 -2
  103. package/dist/createTheme.es.js +13 -1
  104. package/dist/index.d.ts +1 -0
  105. package/dist/theme/darkTheme.cjs.js +6 -1
  106. package/dist/theme/darkTheme.es.js +6 -1
  107. package/dist/theme/lightTheme.cjs.js +6 -1
  108. package/dist/theme/lightTheme.es.js +6 -1
  109. package/dist/theme/types.d.ts +4 -2
  110. package/package.json +9 -9
@@ -0,0 +1,18 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IDropdownTokens {
3
+ /** Background color of the dropdown panel */
4
+ background: string;
5
+ /** Border radius applied to the dropdown panel corners */
6
+ radius: string;
7
+ /** Border color of the dropdown container */
8
+ borderColor: string;
9
+ /** Background color of a disabled dropdown item */
10
+ disabledBackground: string;
11
+ /** Text color of a disabled dropdown item */
12
+ disabledColor: string;
13
+ /** eft border color that appears on hover for active dropdown items */
14
+ borderLeftColor: string;
15
+ /** Background color of a dropdown item when hovered */
16
+ hoverBackground: string;
17
+ }
18
+ export declare const generateDropdownTokens: (theme: IQuenUITheme) => IDropdownTokens;
@@ -0,0 +1,12 @@
1
+ const generateDropdownTokens = (theme) => ({
2
+ radius: theme.components.Dropdown?.radius ?? theme.control.radius,
3
+ background: theme.components.Dropdown?.background ?? theme.colors.grayViolet[1],
4
+ borderColor: theme.components.Dropdown?.borderColor ?? theme.commonColorTokens.borderColor,
5
+ disabledBackground: theme.components.Dropdown?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
6
+ disabledColor: theme.components.Dropdown?.disabledColor ?? theme.commonColorTokens.disabledColor,
7
+ borderLeftColor: theme.components.Dropdown?.borderLeftColor ?? theme.commonColorTokens.primaryBackground,
8
+ hoverBackground: theme.components.Dropdown?.hoverBackground ?? theme.colors.grayViolet[5]
9
+ });
10
+ export {
11
+ generateDropdownTokens
12
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateImageTokens = (theme) => ({
4
+ overlayBackground: theme.components.Image?.overlayBackground ?? theme.commonColorTokens.overlayBackground,
5
+ color: theme.components.Image?.color ?? "white"
6
+ });
7
+ exports.generateImageTokens = generateImageTokens;
@@ -0,0 +1,8 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IImageTokens {
3
+ /** Background color of the image overlay */
4
+ overlayBackground: string;
5
+ /** Text or icon color displayed over the image */
6
+ color: string;
7
+ }
8
+ export declare const generateImageTokens: (theme: IQuenUITheme) => IImageTokens;
@@ -0,0 +1,7 @@
1
+ const generateImageTokens = (theme) => ({
2
+ overlayBackground: theme.components.Image?.overlayBackground ?? theme.commonColorTokens.overlayBackground,
3
+ color: theme.components.Image?.color ?? "white"
4
+ });
5
+ export {
6
+ generateImageTokens
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateInputTokens = (theme) => ({
4
+ errorColor: theme.components.Input?.errorColor ?? theme.commonColorTokens.dangerColor,
5
+ disabledBackground: theme.components.Input?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
6
+ disabledColor: theme.components.Input?.disabledColor ?? theme.commonColorTokens.disabledColor,
7
+ iconColor: theme.components.Input?.iconColor ?? theme.colors.gray[9],
8
+ borderColor: theme.components.Input?.borderColor ?? theme.commonColorTokens.borderColor,
9
+ color: theme.components.Input?.color ?? theme.textColor
10
+ });
11
+ exports.generateInputTokens = generateInputTokens;
@@ -0,0 +1,16 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IInputTokens {
3
+ /** Color used to indicate an error state */
4
+ errorColor: string;
5
+ /** Text color used when the input is disabled */
6
+ disabledColor: string;
7
+ /** Background color used when the input is disabled */
8
+ disabledBackground: string;
9
+ /** Color of icons displayed inside the input */
10
+ iconColor: string;
11
+ /** Default border color of the input */
12
+ borderColor: string;
13
+ /** Default text color inside the input */
14
+ color: string;
15
+ }
16
+ export declare const generateInputTokens: (theme: IQuenUITheme) => IInputTokens;
@@ -0,0 +1,11 @@
1
+ const generateInputTokens = (theme) => ({
2
+ errorColor: theme.components.Input?.errorColor ?? theme.commonColorTokens.dangerColor,
3
+ disabledBackground: theme.components.Input?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
4
+ disabledColor: theme.components.Input?.disabledColor ?? theme.commonColorTokens.disabledColor,
5
+ iconColor: theme.components.Input?.iconColor ?? theme.colors.gray[9],
6
+ borderColor: theme.components.Input?.borderColor ?? theme.commonColorTokens.borderColor,
7
+ color: theme.components.Input?.color ?? theme.textColor
8
+ });
9
+ export {
10
+ generateInputTokens
11
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateLayoutTokens = (theme) => ({
4
+ headerBackground: theme.components.Layout?.backgroundHeader ?? theme.colors[theme.primaryColor][7],
5
+ iconColor: theme.components.Layout?.iconColor ?? theme.colors.grayViolet[9],
6
+ borderColor: theme.components.Layout?.borderColor ?? theme.commonColorTokens.borderColor,
7
+ sidebarBackground: theme.components.Layout?.sidebarBackground ?? theme.colors.grayViolet[2]
8
+ });
9
+ exports.generateLayoutTokens = generateLayoutTokens;
@@ -0,0 +1,12 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ILayoutTokens {
3
+ /** Background color of the header section */
4
+ headerBackground: string;
5
+ /** Color of icons displayed in the layout */
6
+ iconColor: string;
7
+ /** Border color used throughout the layout */
8
+ borderColor: string;
9
+ /** Background color of the sidebar section */
10
+ sidebarBackground: string;
11
+ }
12
+ export declare const generateLayoutTokens: (theme: IQuenUITheme) => ILayoutTokens;
@@ -0,0 +1,9 @@
1
+ const generateLayoutTokens = (theme) => ({
2
+ headerBackground: theme.components.Layout?.backgroundHeader ?? theme.colors[theme.primaryColor][7],
3
+ iconColor: theme.components.Layout?.iconColor ?? theme.colors.grayViolet[9],
4
+ borderColor: theme.components.Layout?.borderColor ?? theme.commonColorTokens.borderColor,
5
+ sidebarBackground: theme.components.Layout?.sidebarBackground ?? theme.colors.grayViolet[2]
6
+ });
7
+ export {
8
+ generateLayoutTokens
9
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateLoaderTokens = (theme) => ({
4
+ color: theme.components.Loader?.color ?? theme.colors[theme.primaryColor][5]
5
+ });
6
+ exports.generateLoaderTokens = generateLoaderTokens;
@@ -0,0 +1,6 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ILoaderTokens {
3
+ /** The primary color used for the loader animation or indicator */
4
+ color: string;
5
+ }
6
+ export declare const generateLoaderTokens: (theme: IQuenUITheme) => ILoaderTokens;
@@ -0,0 +1,6 @@
1
+ const generateLoaderTokens = (theme) => ({
2
+ color: theme.components.Loader?.color ?? theme.colors[theme.primaryColor][5]
3
+ });
4
+ export {
5
+ generateLoaderTokens
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateLoadingOverlayTokens = (theme) => ({
4
+ background: theme.components.LoadingOverlay?.background ?? theme.commonColorTokens.overlayBackground,
5
+ blur: theme.components.LoadingOverlay?.blur ?? "blur(2px)"
6
+ });
7
+ exports.generateLoadingOverlayTokens = generateLoadingOverlayTokens;
@@ -0,0 +1,8 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ILoadingOverlayTokens {
3
+ /** Background color of the overlay */
4
+ background: string;
5
+ /** Blur style of the overlay */
6
+ blur: string;
7
+ }
8
+ export declare const generateLoadingOverlayTokens: (theme: IQuenUITheme) => ILoadingOverlayTokens;
@@ -0,0 +1,7 @@
1
+ const generateLoadingOverlayTokens = (theme) => ({
2
+ background: theme.components.LoadingOverlay?.background ?? theme.commonColorTokens.overlayBackground,
3
+ blur: theme.components.LoadingOverlay?.blur ?? "blur(2px)"
4
+ });
5
+ export {
6
+ generateLoadingOverlayTokens
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateMenuTokens = (theme) => ({
4
+ color: theme.components.Menu?.color ?? theme.textColor,
5
+ disabledColor: theme.components.Menu?.disabledColor ?? theme.commonColorTokens.disabledColor,
6
+ hoverBackground: theme.components.Menu?.hoverColor ?? theme.commonColorTokens.hoverBackground,
7
+ activeBackground: theme.components.Menu?.activeBackground ?? theme.commonColorTokens.activeBackground
8
+ });
9
+ exports.generateMenuTokens = generateMenuTokens;
@@ -0,0 +1,12 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IMenuTokens {
3
+ /** Default text color for menu items */
4
+ color: string;
5
+ /** Text color for disabled menu items */
6
+ disabledColor: string;
7
+ /** Background color for menu items when hovered */
8
+ hoverBackground: string;
9
+ /** Background color for active or selected menu items */
10
+ activeBackground: string;
11
+ }
12
+ export declare const generateMenuTokens: (theme: IQuenUITheme) => IMenuTokens;
@@ -0,0 +1,9 @@
1
+ const generateMenuTokens = (theme) => ({
2
+ color: theme.components.Menu?.color ?? theme.textColor,
3
+ disabledColor: theme.components.Menu?.disabledColor ?? theme.commonColorTokens.disabledColor,
4
+ hoverBackground: theme.components.Menu?.hoverColor ?? theme.commonColorTokens.hoverBackground,
5
+ activeBackground: theme.components.Menu?.activeBackground ?? theme.commonColorTokens.activeBackground
6
+ });
7
+ export {
8
+ generateMenuTokens
9
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateMessageTokens = (theme) => ({
4
+ radius: theme.components.Message?.radius ?? theme.control.radius,
5
+ borderColor: theme.components.Message?.borderColor ?? theme.commonColorTokens.borderColor,
6
+ padding: theme.components.Message?.padding ?? "0.5rem 1rem",
7
+ background: theme.components.Message?.background ?? theme.commonColorTokens.overlayBackground,
8
+ iconSuccessColor: theme.components.Message?.iconSuccessColor ?? theme.commonColorTokens.successColor,
9
+ iconWarningColor: theme.components.Message?.iconWarningColor ?? theme.commonColorTokens.warningColor,
10
+ iconErrorColor: theme.components.Message?.iconErrorColor ?? theme.commonColorTokens.dangerColor,
11
+ iconInfoColor: theme.components.Message?.iconInfoColor ?? theme.commonColorTokens.primaryBackground
12
+ });
13
+ exports.generateMessageTokens = generateMessageTokens;
@@ -0,0 +1,20 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IMessageTokens {
3
+ /** Border radius of the tag */
4
+ radius: string;
5
+ /** Border color of the tag */
6
+ borderColor: string;
7
+ /** Padding applied inside the message */
8
+ padding: string;
9
+ /** Background color of the message */
10
+ background: string;
11
+ /** Color of the success icon inside the message */
12
+ iconSuccessColor: string;
13
+ /** Color of the warning icon inside the message */
14
+ iconWarningColor: string;
15
+ /** Color of the error icon inside the message */
16
+ iconErrorColor: string;
17
+ /** Color of the info icon inside the message */
18
+ iconInfoColor: string;
19
+ }
20
+ export declare const generateMessageTokens: (theme: IQuenUITheme) => IMessageTokens;
@@ -0,0 +1,13 @@
1
+ const generateMessageTokens = (theme) => ({
2
+ radius: theme.components.Message?.radius ?? theme.control.radius,
3
+ borderColor: theme.components.Message?.borderColor ?? theme.commonColorTokens.borderColor,
4
+ padding: theme.components.Message?.padding ?? "0.5rem 1rem",
5
+ background: theme.components.Message?.background ?? theme.commonColorTokens.overlayBackground,
6
+ iconSuccessColor: theme.components.Message?.iconSuccessColor ?? theme.commonColorTokens.successColor,
7
+ iconWarningColor: theme.components.Message?.iconWarningColor ?? theme.commonColorTokens.warningColor,
8
+ iconErrorColor: theme.components.Message?.iconErrorColor ?? theme.commonColorTokens.dangerColor,
9
+ iconInfoColor: theme.components.Message?.iconInfoColor ?? theme.commonColorTokens.primaryBackground
10
+ });
11
+ export {
12
+ generateMessageTokens
13
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateModalTokens = (theme) => ({
4
+ overlayBackground: theme.components.Modal?.overlayBackground ?? theme.commonColorTokens.overlayBackground,
5
+ backgroundColor: theme.components.Modal?.backgroundColor ?? theme.colors.grayViolet[2]
6
+ });
7
+ exports.generateModalTokens = generateModalTokens;
@@ -0,0 +1,8 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IModalTokens {
3
+ /** Background color of the overlay layer behind the modal */
4
+ overlayBackground: string;
5
+ /** Background color of the modal content area */
6
+ backgroundColor: string;
7
+ }
8
+ export declare const generateModalTokens: (theme: IQuenUITheme) => IModalTokens;
@@ -0,0 +1,7 @@
1
+ const generateModalTokens = (theme) => ({
2
+ overlayBackground: theme.components.Modal?.overlayBackground ?? theme.commonColorTokens.overlayBackground,
3
+ backgroundColor: theme.components.Modal?.backgroundColor ?? theme.colors.grayViolet[2]
4
+ });
5
+ export {
6
+ generateModalTokens
7
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateNotificationTokens = (theme) => ({
4
+ background: theme.components.Modal?.backgroundColor ?? theme.colors.grayViolet[2],
5
+ radius: theme.components.Notification?.radius ?? theme.control.radius,
6
+ successColor: theme.components.Notification?.successColor ?? theme.commonColorTokens.successColor,
7
+ warningColor: theme.components.Notification?.warningColor ?? theme.commonColorTokens.warningColor,
8
+ errorColor: theme.components.Notification?.errorColor ?? theme.commonColorTokens.dangerColor,
9
+ infoColor: theme.components.Notification?.infoColor ?? theme.colors[theme.primaryColor][9]
10
+ });
11
+ exports.generateNotificationTokens = generateNotificationTokens;
@@ -0,0 +1,16 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface INotificationTokens {
3
+ /** The background color of the notification container */
4
+ background: string;
5
+ /** The border radius applied to the notification box */
6
+ radius: string;
7
+ /** The color used for success notifications */
8
+ successColor: string;
9
+ /** The color used for warning notifications */
10
+ warningColor: string;
11
+ /** The color used for error notifications */
12
+ errorColor: string;
13
+ /** The color used for informational notifications */
14
+ infoColor: string;
15
+ }
16
+ export declare const generateNotificationTokens: (theme: IQuenUITheme) => INotificationTokens;
@@ -0,0 +1,11 @@
1
+ const generateNotificationTokens = (theme) => ({
2
+ background: theme.components.Modal?.backgroundColor ?? theme.colors.grayViolet[2],
3
+ radius: theme.components.Notification?.radius ?? theme.control.radius,
4
+ successColor: theme.components.Notification?.successColor ?? theme.commonColorTokens.successColor,
5
+ warningColor: theme.components.Notification?.warningColor ?? theme.commonColorTokens.warningColor,
6
+ errorColor: theme.components.Notification?.errorColor ?? theme.commonColorTokens.dangerColor,
7
+ infoColor: theme.components.Notification?.infoColor ?? theme.colors[theme.primaryColor][9]
8
+ });
9
+ export {
10
+ generateNotificationTokens
11
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generatePaginationTokens = (theme) => ({
4
+ color: theme.components.Pagination?.color ?? theme.textColor,
5
+ borderColor: theme.components.Pagination?.borderColor ?? theme.commonColorTokens.borderColor,
6
+ radius: theme.components.Pagination?.radius ?? theme.control.radius,
7
+ activeBackground: theme.components.Pagination?.activeBackground ?? theme.commonColorTokens.activeBackground,
8
+ background: theme.components.Pagination?.background ?? theme.colors.grayViolet[3],
9
+ hoverBackground: theme.components.Pagination?.hoverBackground ?? theme.commonColorTokens.hoverBackground
10
+ });
11
+ exports.generatePaginationTokens = generatePaginationTokens;
@@ -0,0 +1,16 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IPaginationTokens {
3
+ /** The text color of pagination items */
4
+ color: string;
5
+ /** The border color of pagination items */
6
+ borderColor: string;
7
+ /** The border radius of pagination items */
8
+ radius: string;
9
+ /** The background color for the active pagination item */
10
+ activeBackground: string;
11
+ /** The default background color for pagination items */
12
+ background: string;
13
+ /** The background color when hovering over a pagination item */
14
+ hoverBackground: string;
15
+ }
16
+ export declare const generatePaginationTokens: (theme: IQuenUITheme) => IPaginationTokens;
@@ -0,0 +1,11 @@
1
+ const generatePaginationTokens = (theme) => ({
2
+ color: theme.components.Pagination?.color ?? theme.textColor,
3
+ borderColor: theme.components.Pagination?.borderColor ?? theme.commonColorTokens.borderColor,
4
+ radius: theme.components.Pagination?.radius ?? theme.control.radius,
5
+ activeBackground: theme.components.Pagination?.activeBackground ?? theme.commonColorTokens.activeBackground,
6
+ background: theme.components.Pagination?.background ?? theme.colors.grayViolet[3],
7
+ hoverBackground: theme.components.Pagination?.hoverBackground ?? theme.commonColorTokens.hoverBackground
8
+ });
9
+ export {
10
+ generatePaginationTokens
11
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateProgressTokens = (theme) => ({
4
+ radius: theme.components.Progress?.radius ?? theme.control.radius
5
+ });
6
+ exports.generateProgressTokens = generateProgressTokens;
@@ -0,0 +1,6 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IProgressTokens {
3
+ /** The border radius of the progress bar */
4
+ radius: string;
5
+ }
6
+ export declare const generateProgressTokens: (theme: IQuenUITheme) => IProgressTokens;
@@ -0,0 +1,6 @@
1
+ const generateProgressTokens = (theme) => ({
2
+ radius: theme.components.Progress?.radius ?? theme.control.radius
3
+ });
4
+ export {
5
+ generateProgressTokens
6
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateRadioButtonTokens = (theme) => ({
4
+ radius: theme.components.Progress?.radius ?? theme.control.radius,
5
+ borderColor: theme.components.RadioButton?.borderColor ?? theme.commonColorTokens.borderColor,
6
+ disabledBackground: theme.components.RadioButton?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
7
+ checkedBorderColor: theme.components.RadioButton?.checkedBorderColor ?? theme.commonColorTokens.primaryBackground,
8
+ disabledCheckedBorderColor: theme.components.RadioButton?.disabledCheckedBorderColor ?? theme.colors[theme.primaryColor][5],
9
+ checkedBackground: theme.components.RadioButton?.checkedBackground ?? theme.colors.grayViolet[4],
10
+ hoverBorderColor: theme.components.RadioButton?.hoverBorderColor ?? theme.commonColorTokens.hoverBackground,
11
+ errorColor: theme.components.RadioButton?.errorColor ?? theme.commonColorTokens.dangerColor,
12
+ borderErrorColor: theme.components.RadioButton?.borderErrorColor ?? theme.commonColorTokens.dangerBackground
13
+ });
14
+ exports.generateRadioButtonTokens = generateRadioButtonTokens;
@@ -0,0 +1,22 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IRadioButtonTokens {
3
+ /** The border radius of the radio button */
4
+ radius: string;
5
+ /** The default border color of the radio button */
6
+ borderColor: string;
7
+ /** Background color when the radio button is disabled */
8
+ disabledBackground: string;
9
+ /** Border color when the radio button is checked */
10
+ checkedBorderColor: string;
11
+ /** Border color when the radio button is checked and disabled */
12
+ disabledCheckedBorderColor: string;
13
+ /** Background color when the radio button is checked */
14
+ checkedBackground: string;
15
+ /** Border color when hovering over the radio button */
16
+ hoverBorderColor: string;
17
+ /** Color representing an error state */
18
+ errorColor: string;
19
+ /** Border color representing an error state */
20
+ borderErrorColor: string;
21
+ }
22
+ export declare const generateRadioButtonTokens: (theme: IQuenUITheme) => IRadioButtonTokens;
@@ -0,0 +1,14 @@
1
+ const generateRadioButtonTokens = (theme) => ({
2
+ radius: theme.components.Progress?.radius ?? theme.control.radius,
3
+ borderColor: theme.components.RadioButton?.borderColor ?? theme.commonColorTokens.borderColor,
4
+ disabledBackground: theme.components.RadioButton?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
5
+ checkedBorderColor: theme.components.RadioButton?.checkedBorderColor ?? theme.commonColorTokens.primaryBackground,
6
+ disabledCheckedBorderColor: theme.components.RadioButton?.disabledCheckedBorderColor ?? theme.colors[theme.primaryColor][5],
7
+ checkedBackground: theme.components.RadioButton?.checkedBackground ?? theme.colors.grayViolet[4],
8
+ hoverBorderColor: theme.components.RadioButton?.hoverBorderColor ?? theme.commonColorTokens.hoverBackground,
9
+ errorColor: theme.components.RadioButton?.errorColor ?? theme.commonColorTokens.dangerColor,
10
+ borderErrorColor: theme.components.RadioButton?.borderErrorColor ?? theme.commonColorTokens.dangerBackground
11
+ });
12
+ export {
13
+ generateRadioButtonTokens
14
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateRichTextEditorTokens = (theme) => ({
4
+ radius: theme.components.RichTextEditor?.radius ?? theme.control.radius,
5
+ padding: theme.components.RichTextEditor?.padding ?? "0.75rem",
6
+ borderColor: theme.components.RichTextEditor?.borderColor ?? theme.commonColorTokens.borderColor,
7
+ background: theme.components.RichTextEditor?.background ?? theme.colorBody
8
+ });
9
+ exports.generateRichTextEditorTokens = generateRichTextEditorTokens;
@@ -0,0 +1,9 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface IRichTextEditorTokens {
3
+ /** Container corner radius */
4
+ radius: string;
5
+ padding: string;
6
+ borderColor: string;
7
+ background: string;
8
+ }
9
+ export declare const generateRichTextEditorTokens: (theme: IQuenUITheme) => IRichTextEditorTokens;
@@ -0,0 +1,9 @@
1
+ const generateRichTextEditorTokens = (theme) => ({
2
+ radius: theme.components.RichTextEditor?.radius ?? theme.control.radius,
3
+ padding: theme.components.RichTextEditor?.padding ?? "0.75rem",
4
+ borderColor: theme.components.RichTextEditor?.borderColor ?? theme.commonColorTokens.borderColor,
5
+ background: theme.components.RichTextEditor?.background ?? theme.colorBody
6
+ });
7
+ export {
8
+ generateRichTextEditorTokens
9
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateSkeletonTokens = (theme) => ({
4
+ background: theme.components.Skeleton?.background ?? theme.colors.grayViolet[5]
5
+ });
6
+ exports.generateSkeletonTokens = generateSkeletonTokens;
@@ -0,0 +1,6 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ISkeletonTokens {
3
+ /** Default background color of the skeleton */
4
+ background: string;
5
+ }
6
+ export declare const generateSkeletonTokens: (theme: IQuenUITheme) => ISkeletonTokens;
@@ -0,0 +1,6 @@
1
+ const generateSkeletonTokens = (theme) => ({
2
+ background: theme.components.Skeleton?.background ?? theme.colors.grayViolet[5]
3
+ });
4
+ export {
5
+ generateSkeletonTokens
6
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateSliderTokens = (theme) => ({
4
+ radius: theme.components.Slider?.radius ?? theme.control.radius,
5
+ trackBackgroundColor: theme.components.Slider?.trackBackground ?? theme.colors.grayViolet[5],
6
+ trackDisabledBackgroundColor: theme.components.Slider?.trackDisabledBackgroundColor ?? theme.commonColorTokens.disabledBackground,
7
+ progressDisabledBackgroundColor: theme.components.Slider?.progressDisabledBackgroundColor ?? theme.commonColorTokens.disabledColor,
8
+ height: theme.components.Slider?.height ?? "0.375rem",
9
+ markColor: theme.components.Slider?.markColor ?? theme.colors.grayViolet[9]
10
+ });
11
+ exports.generateSliderTokens = generateSliderTokens;
@@ -0,0 +1,16 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ISliderTokens {
3
+ /** Container corner radius */
4
+ radius: string;
5
+ /** Background track */
6
+ trackBackgroundColor: string;
7
+ /** Background track of disabled state */
8
+ trackDisabledBackgroundColor: string;
9
+ /** Background progress of disabled state */
10
+ progressDisabledBackgroundColor: string;
11
+ /** Height slider */
12
+ height: number;
13
+ /** Mark color */
14
+ markColor: string;
15
+ }
16
+ export declare const generateSliderTokens: (theme: IQuenUITheme) => ISliderTokens;
@@ -0,0 +1,11 @@
1
+ const generateSliderTokens = (theme) => ({
2
+ radius: theme.components.Slider?.radius ?? theme.control.radius,
3
+ trackBackgroundColor: theme.components.Slider?.trackBackground ?? theme.colors.grayViolet[5],
4
+ trackDisabledBackgroundColor: theme.components.Slider?.trackDisabledBackgroundColor ?? theme.commonColorTokens.disabledBackground,
5
+ progressDisabledBackgroundColor: theme.components.Slider?.progressDisabledBackgroundColor ?? theme.commonColorTokens.disabledColor,
6
+ height: theme.components.Slider?.height ?? "0.375rem",
7
+ markColor: theme.components.Slider?.markColor ?? theme.colors.grayViolet[9]
8
+ });
9
+ export {
10
+ generateSliderTokens
11
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const generateSwitchTokens = (theme) => ({
4
+ radius: theme.components.Switch?.radius ?? theme.control.radius,
5
+ background: theme.components.Switch?.background ?? theme.commonColorTokens.secondaryBackground,
6
+ borderColor: theme.components.Switch?.borderColor ?? theme.commonColorTokens.borderColor,
7
+ checkedBackground: theme.components.Switch?.checkedBackground ?? theme.commonColorTokens.primaryBackground,
8
+ disabledColor: theme.components.Switch?.disabledColor ?? theme.commonColorTokens.disabledColor,
9
+ disabledBackground: theme.components.Switch?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
10
+ backgroundBefore: theme.components.Switch?.backgroundBefore ?? theme.colors.grayViolet[9]
11
+ });
12
+ exports.generateSwitchTokens = generateSwitchTokens;
@@ -0,0 +1,18 @@
1
+ import { IQuenUITheme } from '../theme/types';
2
+ export interface ISwitchTokens {
3
+ /** The border radius of the switch */
4
+ radius: string;
5
+ /** The default background color of the switch */
6
+ background: string;
7
+ /** The border color of the switch */
8
+ borderColor: string;
9
+ /** Background color when the switch is checked */
10
+ checkedBackground: string;
11
+ /** Color used when the switch is disabled */
12
+ disabledColor: string;
13
+ /** Background color used when the switch is disabled */
14
+ disabledBackground: string;
15
+ /** Background color of the switch before being toggled */
16
+ backgroundBefore: string;
17
+ }
18
+ export declare const generateSwitchTokens: (theme: IQuenUITheme) => ISwitchTokens;
@@ -0,0 +1,12 @@
1
+ const generateSwitchTokens = (theme) => ({
2
+ radius: theme.components.Switch?.radius ?? theme.control.radius,
3
+ background: theme.components.Switch?.background ?? theme.commonColorTokens.secondaryBackground,
4
+ borderColor: theme.components.Switch?.borderColor ?? theme.commonColorTokens.borderColor,
5
+ checkedBackground: theme.components.Switch?.checkedBackground ?? theme.commonColorTokens.primaryBackground,
6
+ disabledColor: theme.components.Switch?.disabledColor ?? theme.commonColorTokens.disabledColor,
7
+ disabledBackground: theme.components.Switch?.disabledBackground ?? theme.commonColorTokens.disabledBackground,
8
+ backgroundBefore: theme.components.Switch?.backgroundBefore ?? theme.colors.grayViolet[9]
9
+ });
10
+ export {
11
+ generateSwitchTokens
12
+ };