@histoire/controls 0.2.5 → 0.3.2
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/components/design-tokens/HstTokenGrid.vue.d.ts +5 -5
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +4 -4
- package/dist/components/select/HstSelect.story.vue.d.ts +2 -0
- package/dist/components/select/HstSelect.vue.d.ts +43 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.es.js +298 -81
- package/dist/style-standalone.css +667 -0
- package/dist/style.css +1 -656
- package/package.json +8 -9
- package/src/components/design-tokens/HstColorShades.vue +10 -6
- package/src/components/design-tokens/HstTokenGrid.vue +23 -14
- package/src/components/design-tokens/HstTokenList.vue +15 -11
- package/src/components/select/HstSelect.story.vue +110 -0
- package/src/components/select/HstSelect.vue +67 -0
- package/src/index.ts +9 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
tokens: Record<string, string | number
|
|
2
|
+
tokens: Record<string, string | number | any[] | Record<string, any>>;
|
|
3
3
|
colSize?: number;
|
|
4
|
-
getName?: (key: string, value: string | number) => string;
|
|
4
|
+
getName?: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
5
5
|
}>, {
|
|
6
6
|
colSize: number;
|
|
7
7
|
getName: any;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
tokens: Record<string, string | number
|
|
9
|
+
tokens: Record<string, string | number | any[] | Record<string, any>>;
|
|
10
10
|
colSize?: number;
|
|
11
|
-
getName?: (key: string, value: string | number) => string;
|
|
11
|
+
getName?: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
12
12
|
}>, {
|
|
13
13
|
colSize: number;
|
|
14
14
|
getName: any;
|
|
15
15
|
}>>>, {
|
|
16
|
-
getName: (key: string, value: string | number) => string;
|
|
16
|
+
getName: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
17
17
|
colSize: number;
|
|
18
18
|
}>;
|
|
19
19
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
tokens: Record<string, string | number
|
|
3
|
-
getName?: (key: string, value: string | number) => string;
|
|
2
|
+
tokens: Record<string, string | number | any[] | Record<string, any>>;
|
|
3
|
+
getName?: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
tokens: Record<string, string | number
|
|
6
|
-
getName?: (key: string, value: string | number) => string;
|
|
5
|
+
tokens: Record<string, string | number | any[] | Record<string, any>>;
|
|
6
|
+
getName?: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
7
7
|
}>>>, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface HstSelectOptions {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
options: {
|
|
16
|
+
type: PropType<string[] | HstSelectOptions[]>;
|
|
17
|
+
required: true;
|
|
18
|
+
default: () => any[];
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
'update:modelValue': (newValue: string) => true;
|
|
22
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: PropType<string[] | HstSelectOptions[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
default: () => any[];
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
"onUpdate:modelValue"?: (newValue: string) => any;
|
|
38
|
+
}, {
|
|
39
|
+
title: string;
|
|
40
|
+
modelValue: string;
|
|
41
|
+
options: string[] | HstSelectOptions[];
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,57 @@ export declare const HstColorShades: import("vue").DefineComponent<{
|
|
|
106
106
|
type: import("vue").PropType<string>;
|
|
107
107
|
};
|
|
108
108
|
}>>, {}>;
|
|
109
|
+
export declare const HstTokenList: import("vue").DefineComponent<{
|
|
110
|
+
tokens: {
|
|
111
|
+
type: import("vue").PropType<Record<string, string | number | any[] | Record<string, any>>>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
getName: {
|
|
115
|
+
type: import("vue").PropType<(key: string, value: string | number | any[] | Record<string, any>) => string>;
|
|
116
|
+
};
|
|
117
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
tokens: {
|
|
119
|
+
type: import("vue").PropType<Record<string, string | number | any[] | Record<string, any>>>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
getName: {
|
|
123
|
+
type: import("vue").PropType<(key: string, value: string | number | any[] | Record<string, any>) => string>;
|
|
124
|
+
};
|
|
125
|
+
}>>, {}>;
|
|
126
|
+
export declare const HstTokenGrid: import("vue").DefineComponent<{
|
|
127
|
+
getName: {
|
|
128
|
+
type: import("vue").PropType<(key: string, value: string | number | any[] | Record<string, any>) => string>;
|
|
129
|
+
} & {
|
|
130
|
+
default: any;
|
|
131
|
+
};
|
|
132
|
+
colSize: {
|
|
133
|
+
type: import("vue").PropType<number>;
|
|
134
|
+
} & {
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
tokens: {
|
|
138
|
+
type: import("vue").PropType<Record<string, string | number | any[] | Record<string, any>>>;
|
|
139
|
+
required: true;
|
|
140
|
+
};
|
|
141
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
142
|
+
getName: {
|
|
143
|
+
type: import("vue").PropType<(key: string, value: string | number | any[] | Record<string, any>) => string>;
|
|
144
|
+
} & {
|
|
145
|
+
default: any;
|
|
146
|
+
};
|
|
147
|
+
colSize: {
|
|
148
|
+
type: import("vue").PropType<number>;
|
|
149
|
+
} & {
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
tokens: {
|
|
153
|
+
type: import("vue").PropType<Record<string, string | number | any[] | Record<string, any>>>;
|
|
154
|
+
required: true;
|
|
155
|
+
};
|
|
156
|
+
}>>, {
|
|
157
|
+
getName: (key: string, value: string | number | any[] | Record<string, any>) => string;
|
|
158
|
+
colSize: number;
|
|
159
|
+
}>;
|
|
109
160
|
export declare const HstCopyIcon: import("vue").DefineComponent<{
|
|
110
161
|
content: {
|
|
111
162
|
type: import("vue").PropType<string>;
|