@codemonster-ru/vueforge 0.70.0 → 0.71.0
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/README.md +40 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +3621 -3583
- package/dist/index.ts.umd.js +10 -10
- package/dist/package/components/__tests__/button-group.test.d.ts +1 -0
- package/dist/package/components/button-group-context.d.ts +8 -0
- package/dist/package/components/button-group.vue.d.ts +36 -0
- package/dist/package/config/theme-core.d.ts +6 -0
- package/dist/package/themes/default/components/button-group.d.ts +6 -0
- package/dist/package/themes/default/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export interface ButtonGroupContext {
|
|
3
|
+
size?: 'small' | 'normal' | 'large';
|
|
4
|
+
variant?: 'filled' | 'outlined' | 'text';
|
|
5
|
+
severity?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const buttonGroupContextKey: InjectionKey<ComputedRef<ButtonGroupContext>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined' | 'text';
|
|
3
|
+
type Severity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
4
|
+
type Orientation = 'horizontal' | 'vertical';
|
|
5
|
+
interface Props {
|
|
6
|
+
size?: Size;
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
severity?: Severity;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
orientation?: Orientation;
|
|
11
|
+
attached?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
orientation: Orientation;
|
|
25
|
+
size: Size;
|
|
26
|
+
variant: Variant;
|
|
27
|
+
severity: Severity;
|
|
28
|
+
attached: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -22,6 +22,11 @@ export type ButtonTokens = {
|
|
|
22
22
|
};
|
|
23
23
|
colorScheme?: Record<string, Record<string, Record<string, string>>>;
|
|
24
24
|
};
|
|
25
|
+
export type ButtonGroupTokens = {
|
|
26
|
+
gap?: string;
|
|
27
|
+
borderRadius?: string;
|
|
28
|
+
disabledOpacity?: string;
|
|
29
|
+
};
|
|
25
30
|
export type CardTokens = {
|
|
26
31
|
padding?: string;
|
|
27
32
|
borderColor?: string;
|
|
@@ -2085,6 +2090,7 @@ export type AvatarTokens = {
|
|
|
2085
2090
|
};
|
|
2086
2091
|
export type ThemeComponentTokens = {
|
|
2087
2092
|
button?: ButtonTokens;
|
|
2093
|
+
buttonGroup?: ButtonGroupTokens;
|
|
2088
2094
|
card?: CardTokens;
|
|
2089
2095
|
checkbox?: CheckboxTokens;
|
|
2090
2096
|
radio?: RadioTokens;
|