@solfacil/girassol 0.2.4 → 0.2.5

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.
@@ -1,51 +1,65 @@
1
+ export declare const sizings: {
2
+ quark: string;
3
+ nano: string;
4
+ micro: string;
5
+ '3xs': string;
6
+ '2xs': string;
7
+ xs: string;
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ xl: string;
12
+ '2xl': string;
13
+ '3xl': string;
14
+ mega: string;
15
+ '2mega': string;
16
+ '3mega': string;
17
+ giga: string;
18
+ };
1
19
  declare const _default: {
2
- space: {
3
- nano: string;
4
- micro: string;
5
- '3xs': string;
6
- '2xs': string;
7
- xs: string;
8
- sm: string;
9
- md: string;
10
- lg: string;
11
- xl: string;
12
- '2xl': string;
13
- '3xl': string;
14
- mega: string;
15
- huge: string;
16
- giga: string;
17
- };
18
20
  padding: {
19
- nano: string;
20
- micro: string;
21
- '3xs': string;
22
- '2xs': string;
23
- xs: string;
24
- sm: string;
25
- md: string;
26
- lg: string;
27
- xl: string;
28
- '2xl': string;
29
- '3xl': string;
30
- mega: string;
31
- huge: string;
32
- giga: string;
21
+ auto: string;
22
+ '0': string;
23
+ sizings: {
24
+ quark: string;
25
+ nano: string;
26
+ micro: string;
27
+ '3xs': string;
28
+ '2xs': string;
29
+ xs: string;
30
+ sm: string;
31
+ md: string;
32
+ lg: string;
33
+ xl: string;
34
+ '2xl': string;
35
+ '3xl': string;
36
+ mega: string;
37
+ '2mega': string;
38
+ '3mega': string;
39
+ giga: string;
40
+ };
33
41
  };
34
42
  margin: {
35
- nano: string;
36
- micro: string;
37
- '3xs': string;
38
- '2xs': string;
39
- xs: string;
40
- sm: string;
41
- md: string;
42
- lg: string;
43
- xl: string;
44
- '2xl': string;
45
- '3xl': string;
46
- mega: string;
47
- huge: string;
48
- giga: string;
43
+ auto: string;
44
+ '0': string;
45
+ sizings: {
46
+ quark: string;
47
+ nano: string;
48
+ micro: string;
49
+ '3xs': string;
50
+ '2xs': string;
51
+ xs: string;
52
+ sm: string;
53
+ md: string;
54
+ lg: string;
55
+ xl: string;
56
+ '2xl': string;
57
+ '3xl': string;
58
+ mega: string;
59
+ '2mega': string;
60
+ '3mega': string;
61
+ giga: string;
62
+ };
49
63
  };
50
64
  };
51
65
  export default _default;
@@ -0,0 +1,112 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ label: string;
7
+ position: ("top" | "bottom") | ("right" | "left");
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ id: string;
10
+ label?: string | undefined;
11
+ position?: (("top" | "bottom") | ("right" | "left")) | undefined;
12
+ }>, {
13
+ label: string;
14
+ position: string;
15
+ }>>> & {
16
+ onChange?: ((value: string) => any) | undefined;
17
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "position">;
18
+ $attrs: {
19
+ [x: string]: unknown;
20
+ };
21
+ $refs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $slots: Readonly<{
25
+ [name: string]: import("vue").Slot | undefined;
26
+ }>;
27
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
28
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
29
+ $emit: (event: "change", value: string) => void;
30
+ $el: any;
31
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
32
+ id: string;
33
+ label?: string | undefined;
34
+ position?: (("top" | "bottom") | ("right" | "left")) | undefined;
35
+ }>, {
36
+ label: string;
37
+ position: string;
38
+ }>>> & {
39
+ onChange?: ((value: string) => any) | undefined;
40
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ change: (value: string) => void;
42
+ }, string, {
43
+ label: string;
44
+ position: ("top" | "bottom") | ("right" | "left");
45
+ }> & {
46
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
47
+ created?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
49
+ mounted?: ((() => void) | (() => void)[]) | undefined;
50
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
51
+ updated?: ((() => void) | (() => void)[]) | undefined;
52
+ activated?: ((() => void) | (() => void)[]) | undefined;
53
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
54
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
55
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
56
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
57
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
58
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
59
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
60
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
61
+ };
62
+ $forceUpdate: () => void;
63
+ $nextTick: typeof import("vue").nextTick;
64
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
65
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
66
+ id: string;
67
+ label?: string | undefined;
68
+ position?: (("top" | "bottom") | ("right" | "left")) | undefined;
69
+ }>, {
70
+ label: string;
71
+ position: string;
72
+ }>>> & {
73
+ onChange?: ((value: string) => any) | undefined;
74
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
75
+ __isFragment?: undefined;
76
+ __isTeleport?: undefined;
77
+ __isSuspense?: undefined;
78
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
79
+ id: string;
80
+ label?: string | undefined;
81
+ position?: (("top" | "bottom") | ("right" | "left")) | undefined;
82
+ }>, {
83
+ label: string;
84
+ position: string;
85
+ }>>> & {
86
+ onChange?: ((value: string) => any) | undefined;
87
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
88
+ change: (value: string) => void;
89
+ }, string, {
90
+ label: string;
91
+ position: ("top" | "bottom") | ("right" | "left");
92
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
93
+ $slots: {
94
+ label: (_: {}) => any;
95
+ default: (_: {}) => any;
96
+ };
97
+ });
98
+ export default _default;
99
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
100
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
101
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
102
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
103
+ } : {
104
+ type: import('vue').PropType<T[K]>;
105
+ required: true;
106
+ };
107
+ };
108
+ declare type __VLS_WithDefaults<P, D> = {
109
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
110
+ default: D[K];
111
+ } : P[K];
112
+ };
@@ -0,0 +1,2 @@
1
+ import SolMenu from './Menu.vue';
2
+ export { SolMenu, };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,87 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ id: string;
7
+ text?: string | undefined;
8
+ link?: string | undefined;
9
+ active?: boolean | undefined;
10
+ external?: boolean | undefined;
11
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
12
+ $attrs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $refs: {
16
+ [x: string]: unknown;
17
+ };
18
+ $slots: Readonly<{
19
+ [name: string]: import("vue").Slot | undefined;
20
+ }>;
21
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
22
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $emit: (event: string, ...args: any[]) => void;
24
+ $el: any;
25
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
26
+ id: string;
27
+ text?: string | undefined;
28
+ link?: string | undefined;
29
+ active?: boolean | undefined;
30
+ external?: boolean | undefined;
31
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
32
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
33
+ created?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
35
+ mounted?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
37
+ updated?: ((() => void) | (() => void)[]) | undefined;
38
+ activated?: ((() => void) | (() => void)[]) | undefined;
39
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
42
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
43
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
44
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
47
+ };
48
+ $forceUpdate: () => void;
49
+ $nextTick: typeof import("vue").nextTick;
50
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
51
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
52
+ id: string;
53
+ text?: string | undefined;
54
+ link?: string | undefined;
55
+ active?: boolean | undefined;
56
+ external?: boolean | undefined;
57
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
58
+ __isFragment?: undefined;
59
+ __isTeleport?: undefined;
60
+ __isSuspense?: undefined;
61
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
62
+ id: string;
63
+ text?: string | undefined;
64
+ link?: string | undefined;
65
+ active?: boolean | undefined;
66
+ external?: boolean | undefined;
67
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
68
+ $slots: {
69
+ default: (_: {
70
+ id: string;
71
+ active: boolean | undefined;
72
+ link: string | undefined;
73
+ text: string | undefined;
74
+ external: boolean | undefined;
75
+ }) => any;
76
+ };
77
+ });
78
+ export default _default;
79
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
80
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
81
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
82
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
83
+ } : {
84
+ type: import('vue').PropType<T[K]>;
85
+ required: true;
86
+ };
87
+ };
@@ -0,0 +1,2 @@
1
+ import SolMenuItemLink from './MenuItemLink.vue';
2
+ export { SolMenuItemLink, };
@@ -0,0 +1,20 @@
1
+ import type { Args, Codes, UseNavigateArgs } from './types';
2
+ export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
3
+ navigate: ({ code }: KeyboardEvent) => void;
4
+ };
5
+ export declare function useNavigateProvider({ target, query }: Args): {
6
+ elementFocus: {
7
+ id: string;
8
+ index: number;
9
+ };
10
+ isItemFocused: (arg: {
11
+ index?: number;
12
+ id?: string;
13
+ }) => boolean;
14
+ resetStateFocus: () => void;
15
+ focusListItem: (index?: number) => void;
16
+ focusOnPreviousItem: () => void;
17
+ focusOnNextItem: (dataLength: number) => void;
18
+ focusOnFirstItem: () => void;
19
+ focusOnLastItem: (dataLength: number) => void;
20
+ };
@@ -0,0 +1,19 @@
1
+ import type { Ref, VNodeRef } from "vue";
2
+ declare type Arrows = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight';
3
+ declare type Commands = 'Home' | 'End' | 'Space' | 'Enter' | 'NumpadEnter' | 'Escape' | 'Tab' | 'Delete' | 'Backspace';
4
+ declare type Numbers = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
5
+ declare type Alphabetic = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'U' | 'T' | 'W' | 'X' | 'Y' | 'Z';
6
+ declare type DigitNumbers = `Digit${Numbers}`;
7
+ declare type NumpadNumbers = `Numpad${Numbers}`;
8
+ declare type KeyLetters = `Key${Alphabetic}`;
9
+ export declare type Code = Commands | Arrows | KeyLetters | DigitNumbers | NumpadNumbers;
10
+ export declare type Codes = Partial<Record<Code, () => void>>;
11
+ export declare type UseNavigateArgs = {
12
+ fallback: () => void;
13
+ exclude?: Code | Code[];
14
+ };
15
+ export declare type Args = {
16
+ target: Ref<VNodeRef> | undefined;
17
+ query?: string;
18
+ };
19
+ export {};
@@ -5,8 +5,8 @@ declare const _default: {
5
5
  $data: {};
6
6
  $props: Partial<{
7
7
  type: ToastType;
8
- offset: number;
9
8
  position: Position;
9
+ offset: number;
10
10
  visible: boolean;
11
11
  hideProgressBar: boolean;
12
12
  showIcon: boolean;
@@ -31,7 +31,7 @@ declare const _default: {
31
31
  hideProgressBar: boolean | undefined;
32
32
  offset: number;
33
33
  visible: boolean;
34
- }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "offset" | "position" | "visible" | "hideProgressBar" | "showIcon">;
34
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "position" | "offset" | "visible" | "hideProgressBar" | "showIcon">;
35
35
  $attrs: {
36
36
  [x: string]: unknown;
37
37
  };
@@ -68,8 +68,8 @@ declare const _default: {
68
68
  visible: boolean;
69
69
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
70
70
  type: ToastType;
71
- offset: number;
72
71
  position: Position;
72
+ offset: number;
73
73
  visible: boolean;
74
74
  hideProgressBar: boolean;
75
75
  showIcon: boolean;
@@ -141,8 +141,8 @@ declare const _default: {
141
141
  visible: boolean;
142
142
  }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
143
143
  type: ToastType;
144
- offset: number;
145
144
  position: Position;
145
+ offset: number;
146
146
  visible: boolean;
147
147
  hideProgressBar: boolean;
148
148
  showIcon: boolean;