@axzydev/axzy_ui_system 1.0.164 → 1.0.166
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.cjs +3195 -2563
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +61 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +401 -222
- package/dist/index.d.ts +401 -222
- package/dist/index.js +3362 -2732
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/theme.ts +50 -29
- package/src/theme/theme.types.ts +65 -0
package/package.json
CHANGED
package/src/theme/theme.ts
CHANGED
|
@@ -86,52 +86,52 @@ export const semanticColors = {
|
|
|
86
86
|
*/
|
|
87
87
|
export const components = {
|
|
88
88
|
layout: {
|
|
89
|
-
backgroundColor: semanticColors.gray[50]
|
|
90
|
-
contentPadding: '1.5rem',
|
|
89
|
+
backgroundColor: `var(--layout-bg, ${semanticColors.gray[50]})`,
|
|
90
|
+
contentPadding: 'var(--layout-padding, 1.5rem)',
|
|
91
91
|
},
|
|
92
92
|
topbar: {
|
|
93
|
-
backgroundColor: 'rgba(255, 255, 255, 0.90)',
|
|
94
|
-
borderColor: semanticColors.gray[200]
|
|
95
|
-
iconColor: semanticColors.gray[500]
|
|
96
|
-
iconHoverColor: semanticColors.gray[700]
|
|
97
|
-
shadow: '0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.025)',
|
|
98
|
-
textColor: semanticColors.gray[700]
|
|
99
|
-
textHoverColor: semanticColors.gray[900]
|
|
93
|
+
backgroundColor: 'var(--topbar-bg, rgba(255, 255, 255, 0.90))',
|
|
94
|
+
borderColor: `var(--topbar-border, ${semanticColors.gray[200]})`,
|
|
95
|
+
iconColor: `var(--topbar-icon, ${semanticColors.gray[500]})`,
|
|
96
|
+
iconHoverColor: `var(--topbar-icon-hover, ${semanticColors.gray[700]})`,
|
|
97
|
+
shadow: 'var(--topbar-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.025))',
|
|
98
|
+
textColor: `var(--topbar-text, ${semanticColors.gray[700]})`,
|
|
99
|
+
textHoverColor: `var(--topbar-text-hover, ${semanticColors.gray[900]})`,
|
|
100
100
|
userMenu: {
|
|
101
|
-
backgroundColor: semanticColors.gray[50]
|
|
102
|
-
hoverBackground: semanticColors.gray[100]
|
|
103
|
-
textColor: semanticColors.gray[900]
|
|
104
|
-
subtitleColor: semanticColors.gray[500]
|
|
101
|
+
backgroundColor: `var(--topbar-user-bg, ${semanticColors.gray[50]})`,
|
|
102
|
+
hoverBackground: `var(--topbar-user-hover, ${semanticColors.gray[100]})`,
|
|
103
|
+
textColor: `var(--topbar-user-text, ${semanticColors.gray[900]})`,
|
|
104
|
+
subtitleColor: `var(--topbar-user-subtitle, ${semanticColors.gray[500]})`,
|
|
105
105
|
dropdown: {
|
|
106
|
-
backgroundColor: '#ffffff',
|
|
107
|
-
borderColor: semanticColors.gray[200]
|
|
108
|
-
itemHoverBackground: semanticColors.gray[50]
|
|
106
|
+
backgroundColor: 'var(--topbar-user-dropdown-bg, #ffffff)',
|
|
107
|
+
borderColor: `var(--topbar-user-dropdown-border, ${semanticColors.gray[200]})`,
|
|
108
|
+
itemHoverBackground: `var(--topbar-user-item-hover, ${semanticColors.gray[50]})`,
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
sidebar: {
|
|
113
|
-
backgroundColor: 'rgba(255, 255, 255, 0.90)',
|
|
114
|
-
borderColor: semanticColors.gray[200]
|
|
113
|
+
backgroundColor: 'var(--sidebar-bg, rgba(255, 255, 255, 0.90))',
|
|
114
|
+
borderColor: `var(--sidebar-border, ${semanticColors.gray[200]})`,
|
|
115
115
|
label: {
|
|
116
|
-
color: semanticColors.gray[700]
|
|
117
|
-
size: '0.9rem',
|
|
118
|
-
weight: '500',
|
|
116
|
+
color: `var(--sidebar-label-color, ${semanticColors.gray[700]})`,
|
|
117
|
+
size: 'var(--sidebar-label-size, 0.9rem)',
|
|
118
|
+
weight: 'var(--sidebar-label-weight, 500)',
|
|
119
119
|
},
|
|
120
120
|
icon: {
|
|
121
|
-
color: semanticColors.gray[500]
|
|
122
|
-
size: '1.25rem',
|
|
121
|
+
color: `var(--sidebar-icon-color, ${semanticColors.gray[500]})`,
|
|
122
|
+
size: 'var(--sidebar-icon-size, 1.25rem)',
|
|
123
123
|
},
|
|
124
124
|
hover: {
|
|
125
|
-
backgroundColor: semanticColors.gray[100]
|
|
125
|
+
backgroundColor: `var(--sidebar-hover-bg, ${semanticColors.gray[100]})`,
|
|
126
126
|
},
|
|
127
127
|
active: {
|
|
128
|
-
backgroundColor: semanticColors.gray[50]
|
|
129
|
-
color: semanticColors.gray[900]
|
|
130
|
-
iconColor: semanticColors.primary[500]
|
|
128
|
+
backgroundColor: `var(--sidebar-active-bg, ${semanticColors.gray[50]})`,
|
|
129
|
+
color: `var(--sidebar-active-color, ${semanticColors.gray[900]})`,
|
|
130
|
+
iconColor: `var(--sidebar-active-icon, ${semanticColors.primary[500]})`,
|
|
131
131
|
},
|
|
132
132
|
badge: {
|
|
133
|
-
backgroundColor: semanticColors.primary[500]
|
|
134
|
-
color: '#ffffff',
|
|
133
|
+
backgroundColor: `var(--sidebar-badge-bg, ${semanticColors.primary[500]})`,
|
|
134
|
+
color: 'var(--sidebar-badge-color, #ffffff)',
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
|
|
@@ -380,6 +380,27 @@ export const components = {
|
|
|
380
380
|
backgroundColor: semanticColors.gray[50],
|
|
381
381
|
},
|
|
382
382
|
},
|
|
383
|
+
|
|
384
|
+
calendar: {
|
|
385
|
+
backgroundColor: 'var(--calendar-bg, #ffffff)',
|
|
386
|
+
borderColor: `var(--calendar-border, ${semanticColors.gray[200]})`,
|
|
387
|
+
header: {
|
|
388
|
+
textColor: `var(--calendar-header-text, ${semanticColors.gray[800]})`,
|
|
389
|
+
hoverBackground: `var(--calendar-header-hover, ${semanticColors.gray[100]})`,
|
|
390
|
+
},
|
|
391
|
+
days: {
|
|
392
|
+
textColor: `var(--calendar-days-text, ${semanticColors.gray[700]})`,
|
|
393
|
+
weekendColor: `var(--calendar-days-weekend, ${semanticColors.gray[500]})`,
|
|
394
|
+
outsideMonthColor: `var(--calendar-days-outside, ${semanticColors.gray[300]})`,
|
|
395
|
+
},
|
|
396
|
+
selection: {
|
|
397
|
+
selectedColor: 'var(--calendar-selected-text, #ffffff)',
|
|
398
|
+
selectedBackground: `var(--calendar-selected-bg, ${semanticColors.primary[600]})`,
|
|
399
|
+
rangeBackground: `var(--calendar-range-bg, ${semanticColors.primary[50]})`,
|
|
400
|
+
todayBackground: `var(--calendar-today-bg, ${semanticColors.primary[50]})`,
|
|
401
|
+
todayColor: `var(--calendar-today-text, ${semanticColors.primary[600]})`,
|
|
402
|
+
},
|
|
403
|
+
},
|
|
383
404
|
};
|
|
384
405
|
|
|
385
406
|
/**
|
package/src/theme/theme.types.ts
CHANGED
|
@@ -29,4 +29,69 @@ export interface ITThemeConfig {
|
|
|
29
29
|
backgroundColor?: string;
|
|
30
30
|
contentPadding?: string;
|
|
31
31
|
};
|
|
32
|
+
topbar?: {
|
|
33
|
+
backgroundColor?: string;
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
iconColor?: string;
|
|
36
|
+
iconHoverColor?: string;
|
|
37
|
+
shadow?: string;
|
|
38
|
+
textColor?: string;
|
|
39
|
+
textHoverColor?: string;
|
|
40
|
+
userMenu?: {
|
|
41
|
+
backgroundColor?: string;
|
|
42
|
+
hoverBackground?: string;
|
|
43
|
+
textColor?: string;
|
|
44
|
+
subtitleColor?: string;
|
|
45
|
+
dropdown?: {
|
|
46
|
+
backgroundColor?: string;
|
|
47
|
+
borderColor?: string;
|
|
48
|
+
itemHoverBackground?: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
sidebar?: {
|
|
53
|
+
backgroundColor?: string;
|
|
54
|
+
borderColor?: string;
|
|
55
|
+
label?: {
|
|
56
|
+
color?: string;
|
|
57
|
+
size?: string;
|
|
58
|
+
weight?: string;
|
|
59
|
+
};
|
|
60
|
+
icon?: {
|
|
61
|
+
color?: string;
|
|
62
|
+
size?: string;
|
|
63
|
+
};
|
|
64
|
+
hover?: {
|
|
65
|
+
backgroundColor?: string;
|
|
66
|
+
};
|
|
67
|
+
active?: {
|
|
68
|
+
backgroundColor?: string;
|
|
69
|
+
color?: string;
|
|
70
|
+
iconColor?: string;
|
|
71
|
+
};
|
|
72
|
+
badge?: {
|
|
73
|
+
backgroundColor?: string;
|
|
74
|
+
color?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
calendar?: {
|
|
78
|
+
backgroundColor?: string;
|
|
79
|
+
borderColor?: string;
|
|
80
|
+
header?: {
|
|
81
|
+
textColor?: string;
|
|
82
|
+
hoverBackground?: string;
|
|
83
|
+
};
|
|
84
|
+
days?: {
|
|
85
|
+
textColor?: string;
|
|
86
|
+
weekendColor?: string;
|
|
87
|
+
outsideMonthColor?: string;
|
|
88
|
+
};
|
|
89
|
+
selection?: {
|
|
90
|
+
selectedColor?: string;
|
|
91
|
+
selectedBackground?: string;
|
|
92
|
+
rangeBackground?: string;
|
|
93
|
+
todayBackground?: string;
|
|
94
|
+
todayColor?: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
32
97
|
}
|