@lumx/vue 4.9.0-next.0 → 4.9.0-next.10

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,151 @@
1
+ declare const _default: {
2
+ decorators: ((story: any, context: any) => {
3
+ setup(): {
4
+ as: string | object;
5
+ overriddenProps: any;
6
+ };
7
+ template: string;
8
+ })[];
9
+ component: any;
10
+ render: any;
11
+ argTypes: {
12
+ size: {
13
+ control: {
14
+ type: "select" | "inline-radio";
15
+ };
16
+ options: ("s" | "xs" | "m" | "l")[];
17
+ mapping: Record<string, "s" | "xs" | "m" | "l"> | undefined;
18
+ };
19
+ orientation: {
20
+ control: {
21
+ type: "select" | "inline-radio";
22
+ };
23
+ options: ("vertical" | "horizontal")[];
24
+ mapping: Record<string, "vertical" | "horizontal"> | undefined;
25
+ };
26
+ };
27
+ args: Partial<import('@lumx/core/js/components/UserBlock').UserBlockProps>;
28
+ title: string;
29
+ };
30
+ export default _default;
31
+ export declare const AvatarOnly: {
32
+ args: {
33
+ avatarProps: {
34
+ image: string;
35
+ };
36
+ };
37
+ };
38
+ export declare const AvatarAndName: {
39
+ args: {
40
+ name: string;
41
+ avatarProps: {
42
+ image: string;
43
+ };
44
+ };
45
+ };
46
+ export declare const AvatarAndCustomName: {
47
+ args: {
48
+ avatarProps: {
49
+ image: string;
50
+ };
51
+ };
52
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
53
+ };
54
+ export declare const AvatarAndNameAndSecondaryFields: {
55
+ args: {
56
+ fields: string[];
57
+ name: string;
58
+ avatarProps: {
59
+ image: string;
60
+ };
61
+ };
62
+ };
63
+ export declare const WithAfter: {
64
+ args: {
65
+ fields: string[];
66
+ name: string;
67
+ avatarProps: {
68
+ image: string;
69
+ };
70
+ };
71
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
72
+ };
73
+ export declare const WithAdditionalFields: {
74
+ args: {
75
+ name: string;
76
+ avatarProps: {
77
+ image: string;
78
+ };
79
+ };
80
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
81
+ parameters: {
82
+ wrapperProps: {
83
+ style: {
84
+ width: string;
85
+ };
86
+ };
87
+ };
88
+ };
89
+ export declare const SizesAndOrientations: {
90
+ args: {
91
+ fields: string[];
92
+ name: string;
93
+ avatarProps: {
94
+ image: string;
95
+ };
96
+ };
97
+ decorators: ((story: any, context: any) => any)[];
98
+ };
99
+ export declare const WithConstrainedSize: {
100
+ args: {
101
+ fields: string[];
102
+ name: string;
103
+ avatarProps: {
104
+ image: string;
105
+ };
106
+ };
107
+ parameters: {
108
+ wrapperProps: {
109
+ style: {
110
+ width: string;
111
+ resize: string;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ export declare const AsButton: {
117
+ argTypes: {
118
+ onClick: {
119
+ action: boolean;
120
+ };
121
+ };
122
+ args: {
123
+ fields: string[];
124
+ name: string;
125
+ avatarProps: {
126
+ image: string;
127
+ };
128
+ };
129
+ };
130
+ export declare const AsLink: {
131
+ args: {
132
+ linkProps: {
133
+ href: string;
134
+ };
135
+ fields: string[];
136
+ name: string;
137
+ avatarProps: {
138
+ image: string;
139
+ };
140
+ };
141
+ };
142
+ export declare const WithBadge: {
143
+ args: {
144
+ fields: string[];
145
+ name: string;
146
+ avatarProps: {
147
+ image: string;
148
+ };
149
+ };
150
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
151
+ };
@@ -0,0 +1 @@
1
+ export { default as UserBlock, type UserBlockProps, type UserBlockSize } from './UserBlock';
@@ -0,0 +1,25 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseRovingTabIndexContainerOptions {
3
+ /** Ref to the container element holding the focusable items. */
4
+ containerRef: Ref<HTMLElement | null | undefined>;
5
+ /** CSS selector to identify focusable items within the container. */
6
+ itemSelector: string;
7
+ /** Callback invoked when an item receives focus via keyboard navigation. */
8
+ onItemFocused?: (item: HTMLElement) => void;
9
+ /**
10
+ * Primary navigation axis — determines which arrow keys navigate.
11
+ * Default: 'horizontal' (ArrowLeft/ArrowRight).
12
+ */
13
+ direction?: 'horizontal' | 'vertical';
14
+ /**
15
+ * CSS selector matching disabled items within the container.
16
+ * Disabled items are skipped during keyboard navigation.
17
+ */
18
+ itemDisabledSelector?: string;
19
+ }
20
+ /**
21
+ * Vue composable equivalent of React's useRovingTabIndexContainer.
22
+ * Sets up roving tab index keyboard navigation on a container element.
23
+ * Automatically tears down when the container is removed or the composable is unmounted.
24
+ */
25
+ export declare function useRovingTabIndexContainer({ containerRef, itemSelector, onItemFocused, direction, itemDisabledSelector, }: UseRovingTabIndexContainerOptions): void;
package/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export * from './components/input-label';
17
17
  export * from './components/link';
18
18
  export * from './components/list';
19
19
  export * from './components/message';
20
+ export * from './components/mosaic';
20
21
  export * from './components/popover';
21
22
  export * from './components/popover-dialog';
22
23
  export * from './components/progress';
@@ -28,7 +29,9 @@ export * from './components/uploader';
28
29
  export * from './components/generic-block';
29
30
  export * from './components/inline-list';
30
31
  export * from './components/table';
32
+ export * from './components/tabs';
31
33
  export * from './components/text';
32
34
  export * from './components/thumbnail';
33
35
  export * from './components/toolbar';
34
36
  export * from './components/tooltip';
37
+ export * from './components/user-block';