@codemonster-ru/vueforge 0.36.0 → 0.38.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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ type RatingSize = 'small' | 'normal' | 'large';
2
+ interface Props {
3
+ modelValue?: number;
4
+ max?: number;
5
+ size?: RatingSize;
6
+ allowHalf?: boolean;
7
+ readonly?: boolean;
8
+ disabled?: boolean;
9
+ ariaLabel?: string;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ icon?(_: {}): any;
15
+ 'active-icon'?(_: {}): any;
16
+ };
17
+ refs: {
18
+ rootRef: HTMLDivElement;
19
+ itemRefs: HTMLButtonElement[];
20
+ };
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ blur: (...args: any[]) => void;
26
+ change: (...args: any[]) => void;
27
+ focus: (...args: any[]) => void;
28
+ "update:modelValue": (...args: any[]) => void;
29
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
30
+ onBlur?: ((...args: any[]) => any) | undefined;
31
+ onChange?: ((...args: any[]) => any) | undefined;
32
+ onFocus?: ((...args: any[]) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
34
+ }>, {
35
+ disabled: boolean;
36
+ size: RatingSize;
37
+ modelValue: number;
38
+ readonly: boolean;
39
+ max: number;
40
+ ariaLabel: string;
41
+ allowHalf: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
+ rootRef: HTMLDivElement;
44
+ itemRefs: HTMLButtonElement[];
45
+ }, HTMLDivElement>;
46
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
+ export default _default;
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,41 @@
1
+ import { TreeItem, TreeValue } from './tree.vue';
2
+ interface Props {
3
+ node: TreeItem;
4
+ level: number;
5
+ size: 'small' | 'normal' | 'large';
6
+ variant: 'filled' | 'outlined';
7
+ disabled: boolean;
8
+ expandOnClick: boolean;
9
+ selectable: boolean;
10
+ isSelected: (key: TreeValue) => boolean;
11
+ isExpanded: (key: TreeValue) => boolean;
12
+ isDisabled: (node: TreeItem) => boolean;
13
+ onSelect: (node: TreeItem, event: Event) => void;
14
+ onToggle: (node: TreeItem, event: Event) => void;
15
+ }
16
+ type TreeLabelSlotProps = {
17
+ node: TreeItem;
18
+ level: number;
19
+ selected: boolean;
20
+ expanded: boolean;
21
+ disabled: boolean;
22
+ };
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: Readonly<{
26
+ label?: (props: TreeLabelSlotProps) => unknown;
27
+ }> & {
28
+ label?: (props: TreeLabelSlotProps) => unknown;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLLIElement;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,71 @@
1
+ export type TreeValue = string | number;
2
+ export interface TreeItem {
3
+ key: TreeValue;
4
+ label: string;
5
+ disabled?: boolean;
6
+ children?: Array<TreeItem>;
7
+ }
8
+ type TreeModelValue = TreeValue | Array<TreeValue> | undefined;
9
+ type TreeLabelSlotProps = {
10
+ node: TreeItem;
11
+ level: number;
12
+ selected: boolean;
13
+ expanded: boolean;
14
+ disabled: boolean;
15
+ };
16
+ interface Props {
17
+ items?: Array<TreeItem>;
18
+ modelValue?: TreeModelValue;
19
+ expandedKeys?: Array<TreeValue>;
20
+ multiple?: boolean;
21
+ selectable?: boolean;
22
+ expandOnClick?: boolean;
23
+ disabled?: boolean;
24
+ size?: 'small' | 'normal' | 'large';
25
+ variant?: 'filled' | 'outlined';
26
+ ariaLabel?: string;
27
+ ariaLabelledby?: string;
28
+ }
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: Readonly<{
32
+ label?: (props: TreeLabelSlotProps) => unknown;
33
+ }> & {
34
+ label?: (props: TreeLabelSlotProps) => unknown;
35
+ };
36
+ refs: {};
37
+ rootEl: HTMLDivElement;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ change: (...args: any[]) => void;
42
+ toggle: (...args: any[]) => void;
43
+ "update:modelValue": (...args: any[]) => void;
44
+ "update:expandedKeys": (...args: any[]) => void;
45
+ nodeClick: (...args: any[]) => void;
46
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
47
+ onChange?: ((...args: any[]) => any) | undefined;
48
+ onToggle?: ((...args: any[]) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
+ "onUpdate:expandedKeys"?: ((...args: any[]) => any) | undefined;
51
+ onNodeClick?: ((...args: any[]) => any) | undefined;
52
+ }>, {
53
+ disabled: boolean;
54
+ items: Array<TreeItem>;
55
+ size: "small" | "normal" | "large";
56
+ variant: "filled" | "outlined";
57
+ modelValue: TreeValue | TreeValue[];
58
+ ariaLabel: string;
59
+ multiple: boolean;
60
+ ariaLabelledby: string;
61
+ expandOnClick: boolean;
62
+ selectable: boolean;
63
+ expandedKeys: Array<TreeValue>;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -746,6 +746,57 @@ export type SliderTokens = {
746
746
  valueFontSize?: string;
747
747
  };
748
748
  };
749
+ export type RatingTokens = {
750
+ gap?: string;
751
+ size?: string;
752
+ color?: string;
753
+ activeColor?: string;
754
+ hoverColor?: string;
755
+ focusRingShadow?: string;
756
+ focusRadius?: string;
757
+ disabledOpacity?: string;
758
+ small?: {
759
+ size?: string;
760
+ };
761
+ large?: {
762
+ size?: string;
763
+ };
764
+ };
765
+ export type TreeTokens = {
766
+ gap?: string;
767
+ indent?: string;
768
+ rowGap?: string;
769
+ rowPadding?: string;
770
+ rowPaddingInline?: string;
771
+ rowBorderRadius?: string;
772
+ rowBorderColor?: string;
773
+ rowFontSize?: string;
774
+ rowTextColor?: string;
775
+ rowBackgroundColor?: string;
776
+ rowHoverBackgroundColor?: string;
777
+ rowSelectedBackgroundColor?: string;
778
+ rowSelectedTextColor?: string;
779
+ toggleSize?: string;
780
+ toggleRadius?: string;
781
+ toggleBorderColor?: string;
782
+ toggleBackgroundColor?: string;
783
+ toggleTextColor?: string;
784
+ toggleHoverBackgroundColor?: string;
785
+ focusRingShadow?: string;
786
+ disabledOpacity?: string;
787
+ small?: {
788
+ rowPadding?: string;
789
+ rowPaddingInline?: string;
790
+ rowFontSize?: string;
791
+ toggleSize?: string;
792
+ };
793
+ large?: {
794
+ rowPadding?: string;
795
+ rowPaddingInline?: string;
796
+ rowFontSize?: string;
797
+ toggleSize?: string;
798
+ };
799
+ };
749
800
  export type StepperTokens = {
750
801
  gap?: string;
751
802
  itemGap?: string;
@@ -1053,6 +1104,8 @@ export type ThemeComponentTokens = {
1053
1104
  badge?: BadgeTokens;
1054
1105
  chip?: ChipTokens;
1055
1106
  avatar?: AvatarTokens;
1107
+ rating?: RatingTokens;
1108
+ tree?: TreeTokens;
1056
1109
  [key: string]: unknown;
1057
1110
  };
1058
1111
  export type ThemeTokens = {
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ size: string;
4
+ color: string;
5
+ activeColor: string;
6
+ hoverColor: string;
7
+ focusRingShadow: string;
8
+ focusRadius: string;
9
+ disabledOpacity: string;
10
+ small: {
11
+ size: string;
12
+ };
13
+ large: {
14
+ size: string;
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,36 @@
1
+ declare const _default: {
2
+ gap: string;
3
+ indent: string;
4
+ rowGap: string;
5
+ rowPadding: string;
6
+ rowPaddingInline: string;
7
+ rowBorderRadius: string;
8
+ rowBorderColor: string;
9
+ rowFontSize: string;
10
+ rowTextColor: string;
11
+ rowBackgroundColor: string;
12
+ rowHoverBackgroundColor: string;
13
+ rowSelectedBackgroundColor: string;
14
+ rowSelectedTextColor: string;
15
+ toggleSize: string;
16
+ toggleRadius: string;
17
+ toggleBorderColor: string;
18
+ toggleBackgroundColor: string;
19
+ toggleTextColor: string;
20
+ toggleHoverBackgroundColor: string;
21
+ focusRingShadow: string;
22
+ disabledOpacity: string;
23
+ small: {
24
+ rowPadding: string;
25
+ rowPaddingInline: string;
26
+ rowFontSize: string;
27
+ toggleSize: string;
28
+ };
29
+ large: {
30
+ rowPadding: string;
31
+ rowPaddingInline: string;
32
+ rowFontSize: string;
33
+ toggleSize: string;
34
+ };
35
+ };
36
+ export default _default;
@@ -1249,6 +1249,57 @@ declare const _default: {
1249
1249
  itemGap: string;
1250
1250
  };
1251
1251
  };
1252
+ rating: {
1253
+ gap: string;
1254
+ size: string;
1255
+ color: string;
1256
+ activeColor: string;
1257
+ hoverColor: string;
1258
+ focusRingShadow: string;
1259
+ focusRadius: string;
1260
+ disabledOpacity: string;
1261
+ small: {
1262
+ size: string;
1263
+ };
1264
+ large: {
1265
+ size: string;
1266
+ };
1267
+ };
1268
+ tree: {
1269
+ gap: string;
1270
+ indent: string;
1271
+ rowGap: string;
1272
+ rowPadding: string;
1273
+ rowPaddingInline: string;
1274
+ rowBorderRadius: string;
1275
+ rowBorderColor: string;
1276
+ rowFontSize: string;
1277
+ rowTextColor: string;
1278
+ rowBackgroundColor: string;
1279
+ rowHoverBackgroundColor: string;
1280
+ rowSelectedBackgroundColor: string;
1281
+ rowSelectedTextColor: string;
1282
+ toggleSize: string;
1283
+ toggleRadius: string;
1284
+ toggleBorderColor: string;
1285
+ toggleBackgroundColor: string;
1286
+ toggleTextColor: string;
1287
+ toggleHoverBackgroundColor: string;
1288
+ focusRingShadow: string;
1289
+ disabledOpacity: string;
1290
+ small: {
1291
+ rowPadding: string;
1292
+ rowPaddingInline: string;
1293
+ rowFontSize: string;
1294
+ toggleSize: string;
1295
+ };
1296
+ large: {
1297
+ rowPadding: string;
1298
+ rowPaddingInline: string;
1299
+ rowFontSize: string;
1300
+ toggleSize: string;
1301
+ };
1302
+ };
1252
1303
  };
1253
1304
  colors: {
1254
1305
  white: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",