@yh-ui/components 1.0.1 → 1.0.5
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.
|
@@ -124,14 +124,16 @@ export type CarouselEmits = typeof carouselEmits;
|
|
|
124
124
|
export interface CarouselSlots {
|
|
125
125
|
default?: () => unknown;
|
|
126
126
|
dots?: (props: {
|
|
127
|
+
total: number;
|
|
127
128
|
currentIndex: number;
|
|
128
|
-
|
|
129
|
-
goTo: (index: number) => void;
|
|
129
|
+
to: (index: number) => void;
|
|
130
130
|
}) => unknown;
|
|
131
131
|
arrow?: (props: {
|
|
132
|
+
total: number;
|
|
133
|
+
currentIndex: number;
|
|
134
|
+
to: (index: number) => void;
|
|
132
135
|
prev: () => void;
|
|
133
136
|
next: () => void;
|
|
134
|
-
currentIndex: number;
|
|
135
137
|
}) => unknown;
|
|
136
138
|
'prev-arrow'?: () => unknown;
|
|
137
139
|
'next-arrow'?: () => unknown;
|
|
@@ -101,6 +101,15 @@ module.exports = (0, _vue.defineComponent)({
|
|
|
101
101
|
}));
|
|
102
102
|
const themeStyles = (0, _vue.computed)(() => {
|
|
103
103
|
const manager = getThemeManager();
|
|
104
|
+
const themeState = manager.state;
|
|
105
|
+
void themeState.theme;
|
|
106
|
+
void themeState.dark;
|
|
107
|
+
void themeState.density;
|
|
108
|
+
void themeState.colorBlindMode;
|
|
109
|
+
void themeState.algorithm;
|
|
110
|
+
void themeState.componentThemeVersion;
|
|
111
|
+
void themeState.breakpoint;
|
|
112
|
+
void JSON.stringify(themeState.colors);
|
|
104
113
|
const colors = {};
|
|
105
114
|
if (!isValidPreset(props.theme) && props.theme.startsWith("#")) {
|
|
106
115
|
colors.primary = props.theme;
|
|
@@ -92,6 +92,15 @@ export default defineComponent({
|
|
|
92
92
|
}));
|
|
93
93
|
const themeStyles = computed(() => {
|
|
94
94
|
const manager = getThemeManager();
|
|
95
|
+
const themeState = manager.state;
|
|
96
|
+
void themeState.theme;
|
|
97
|
+
void themeState.dark;
|
|
98
|
+
void themeState.density;
|
|
99
|
+
void themeState.colorBlindMode;
|
|
100
|
+
void themeState.algorithm;
|
|
101
|
+
void themeState.componentThemeVersion;
|
|
102
|
+
void themeState.breakpoint;
|
|
103
|
+
void JSON.stringify(themeState.colors);
|
|
95
104
|
const colors = {};
|
|
96
105
|
if (!isValidPreset(props.theme) && props.theme.startsWith("#")) {
|
|
97
106
|
colors.primary = props.theme;
|
|
@@ -128,7 +128,10 @@ export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|
|
|
128
128
|
export type PopoverEmits = typeof popoverEmits;
|
|
129
129
|
export interface PopoverSlots {
|
|
130
130
|
default?: () => unknown;
|
|
131
|
-
|
|
131
|
+
header?: () => unknown;
|
|
132
|
+
content?: () => unknown;
|
|
133
|
+
icon?: () => unknown;
|
|
134
|
+
footer?: () => unknown;
|
|
132
135
|
}
|
|
133
136
|
export interface PopoverExpose {
|
|
134
137
|
toggle: (val: boolean) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yh-ui/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "YH-UI Vue 3 Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@webcontainer/api": "^1.6.1",
|
|
39
39
|
"@floating-ui/dom": "^1.7.4",
|
|
40
|
-
"@yh-ui/hooks": "^1.0.
|
|
41
|
-
"@yh-ui/locale": "^1.0.
|
|
42
|
-
"@yh-ui/theme": "^1.0.
|
|
43
|
-
"@yh-ui/utils": "^1.0.
|
|
40
|
+
"@yh-ui/hooks": "^1.0.5",
|
|
41
|
+
"@yh-ui/locale": "^1.0.5",
|
|
42
|
+
"@yh-ui/theme": "^1.0.5",
|
|
43
|
+
"@yh-ui/utils": "^1.0.5",
|
|
44
44
|
"async-validator": "^4.2.5",
|
|
45
45
|
"dayjs": "^1.11.19",
|
|
46
46
|
"markdown-it": "^14.1.1",
|