@lumx/vue 4.9.0-next.3 → 4.9.0-next.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.
@@ -0,0 +1,39 @@
1
+ import { UserBlockProps as UIProps, UserBlockPropsToOverride, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, UserBlockSize } from '@lumx/core/js/components/UserBlock';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ import { AvatarProps } from '../avatar';
4
+ export type { UserBlockSize };
5
+ export type UserBlockProps = VueToJSXProps<UIProps, UserBlockPropsToOverride | 'handleClick' | 'handleMouseEnter' | 'handleMouseLeave' | 'simpleAction' | 'multipleActions' | 'additionalFields' | 'after'> & {
6
+ /** Props to pass to the avatar. */
7
+ avatarProps?: Omit<AvatarProps, 'alt'>;
8
+ /** Props to pass to the link wrapping the avatar thumbnail. */
9
+ linkProps?: Record<string, any>;
10
+ };
11
+ export declare const emitSchema: {
12
+ click: () => boolean;
13
+ mouseenter: () => boolean;
14
+ mouseleave: () => boolean;
15
+ };
16
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
17
+ /**
18
+ * UserBlock component.
19
+ *
20
+ * @param props Component props.
21
+ * @return Vue element.
22
+ */
23
+ declare const UserBlock: import('vue').DefineSetupFnComponent<UserBlockProps, {
24
+ click: () => boolean;
25
+ mouseenter: () => boolean;
26
+ mouseleave: () => boolean;
27
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "multipleActions" | "simpleAction" | "additionalFields" | UserBlockPropsToOverride> & {
28
+ class?: string;
29
+ } & {
30
+ /** Props to pass to the avatar. */
31
+ avatarProps?: Omit<AvatarProps, "alt">;
32
+ /** Props to pass to the link wrapping the avatar thumbnail. */
33
+ linkProps?: Record<string, any>;
34
+ } & {
35
+ onClick?: (() => any) | undefined;
36
+ onMouseenter?: (() => any) | undefined;
37
+ onMouseleave?: (() => any) | undefined;
38
+ }, import('vue').PublicProps>;
39
+ export default UserBlock;
@@ -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';
package/index.d.ts CHANGED
@@ -32,3 +32,4 @@ export * from './components/text';
32
32
  export * from './components/thumbnail';
33
33
  export * from './components/toolbar';
34
34
  export * from './components/tooltip';
35
+ export * from './components/user-block';