@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.
@@ -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;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ borderRadius: string;
4
+ disabledOpacity: string;
5
+ };
6
+ export default _default;
@@ -207,6 +207,11 @@ declare const _default: {
207
207
  };
208
208
  };
209
209
  };
210
+ buttonGroup: {
211
+ gap: string;
212
+ borderRadius: string;
213
+ disabledOpacity: string;
214
+ };
210
215
  card: {
211
216
  padding: string;
212
217
  borderColor: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.70.0",
3
+ "version": "0.71.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",