@codemonster-ru/vueforge 0.69.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
+ };
@@ -0,0 +1,33 @@
1
+ type SpinnerVariant = 'inline' | 'overlay';
2
+ type SpinnerSize = 'small' | 'normal' | 'large';
3
+ type SpinnerSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
4
+ interface Props {
5
+ variant?: SpinnerVariant;
6
+ size?: SpinnerSize;
7
+ severity?: SpinnerSeverity;
8
+ label?: string;
9
+ ariaLabel?: string;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
21
+ label: string;
22
+ size: SpinnerSize;
23
+ variant: SpinnerVariant;
24
+ severity: SpinnerSeverity;
25
+ ariaLabel: string;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -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;
@@ -1423,6 +1428,42 @@ export type ProgressTokens = {
1423
1428
  circularThickness?: string;
1424
1429
  };
1425
1430
  };
1431
+ export type SpinnerTokens = {
1432
+ size?: string;
1433
+ thickness?: string;
1434
+ color?: string;
1435
+ trackColor?: string;
1436
+ gap?: string;
1437
+ labelColor?: string;
1438
+ labelFontSize?: string;
1439
+ animationDuration?: string;
1440
+ overlayMinHeight?: string;
1441
+ overlayPadding?: string;
1442
+ overlayBorderRadius?: string;
1443
+ overlayBackgroundColor?: string;
1444
+ info?: {
1445
+ color?: string;
1446
+ };
1447
+ success?: {
1448
+ color?: string;
1449
+ };
1450
+ warn?: {
1451
+ color?: string;
1452
+ };
1453
+ danger?: {
1454
+ color?: string;
1455
+ };
1456
+ small?: {
1457
+ size?: string;
1458
+ thickness?: string;
1459
+ labelFontSize?: string;
1460
+ };
1461
+ large?: {
1462
+ size?: string;
1463
+ thickness?: string;
1464
+ labelFontSize?: string;
1465
+ };
1466
+ };
1426
1467
  export type SliderTokens = {
1427
1468
  width?: string;
1428
1469
  gap?: string;
@@ -2049,6 +2090,7 @@ export type AvatarTokens = {
2049
2090
  };
2050
2091
  export type ThemeComponentTokens = {
2051
2092
  button?: ButtonTokens;
2093
+ buttonGroup?: ButtonGroupTokens;
2052
2094
  card?: CardTokens;
2053
2095
  checkbox?: CheckboxTokens;
2054
2096
  radio?: RadioTokens;
@@ -2101,6 +2143,7 @@ export type ThemeComponentTokens = {
2101
2143
  tour?: TourTokens;
2102
2144
  skeleton?: SkeletonTokens;
2103
2145
  progress?: ProgressTokens;
2146
+ spinner?: SpinnerTokens;
2104
2147
  slider?: SliderTokens;
2105
2148
  splitter?: SplitterTokens;
2106
2149
  stepper?: StepperTokens;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ borderRadius: string;
4
+ disabledOpacity: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ size: string;
3
+ thickness: string;
4
+ color: string;
5
+ trackColor: string;
6
+ gap: string;
7
+ labelColor: string;
8
+ labelFontSize: string;
9
+ animationDuration: string;
10
+ overlayMinHeight: string;
11
+ overlayPadding: string;
12
+ overlayBorderRadius: string;
13
+ overlayBackgroundColor: string;
14
+ info: {
15
+ color: string;
16
+ };
17
+ success: {
18
+ color: string;
19
+ };
20
+ warn: {
21
+ color: string;
22
+ };
23
+ danger: {
24
+ color: string;
25
+ };
26
+ small: {
27
+ size: string;
28
+ thickness: string;
29
+ labelFontSize: string;
30
+ };
31
+ large: {
32
+ size: string;
33
+ thickness: string;
34
+ labelFontSize: string;
35
+ };
36
+ };
37
+ 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;
@@ -1986,6 +1991,42 @@ declare const _default: {
1986
1991
  statusSize: string;
1987
1992
  };
1988
1993
  };
1994
+ spinner: {
1995
+ size: string;
1996
+ thickness: string;
1997
+ color: string;
1998
+ trackColor: string;
1999
+ gap: string;
2000
+ labelColor: string;
2001
+ labelFontSize: string;
2002
+ animationDuration: string;
2003
+ overlayMinHeight: string;
2004
+ overlayPadding: string;
2005
+ overlayBorderRadius: string;
2006
+ overlayBackgroundColor: string;
2007
+ info: {
2008
+ color: string;
2009
+ };
2010
+ success: {
2011
+ color: string;
2012
+ };
2013
+ warn: {
2014
+ color: string;
2015
+ };
2016
+ danger: {
2017
+ color: string;
2018
+ };
2019
+ small: {
2020
+ size: string;
2021
+ thickness: string;
2022
+ labelFontSize: string;
2023
+ };
2024
+ large: {
2025
+ size: string;
2026
+ thickness: string;
2027
+ labelFontSize: string;
2028
+ };
2029
+ };
1989
2030
  slider: {
1990
2031
  width: string;
1991
2032
  gap: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.69.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",