@lumx/vue 4.4.0 → 4.4.1-alpha.1

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,32 @@
1
+ import { AvatarProps as UIProps, AvatarSize } from '@lumx/core/js/components/Avatar';
2
+ import { GenericProps } from '@lumx/core/js/types';
3
+ import { VueToJSXProps } from '../../utils/VueToJSX';
4
+ import { ThumbnailProps } from '../thumbnail';
5
+ export type { AvatarSize };
6
+ export type AvatarProps = VueToJSXProps<UIProps, 'image' | 'actions' | 'badge'> & {
7
+ /** Image URL. */
8
+ image: string;
9
+ /** Image alternative text. */
10
+ alt: string;
11
+ /** Props to pass to the link wrapping the thumbnail. */
12
+ linkProps?: GenericProps;
13
+ /** Custom component for the link (can be used to inject vue-router RouterLink). */
14
+ linkAs?: 'a' | any;
15
+ /** Props to pass to the thumbnail (minus those already set by the Avatar props). */
16
+ thumbnailProps?: Omit<ThumbnailProps, 'image' | 'alt' | 'size' | 'theme' | 'aspectRatio'>;
17
+ };
18
+ declare const Avatar: import('vue').DefineSetupFnComponent<AvatarProps, {}, {}, Omit<UIProps, "className" | "image" | import('@lumx/core/js/types').PropsToOverride | "actions" | "badge" | "children"> & {
19
+ class?: string;
20
+ } & {
21
+ /** Image URL. */
22
+ image: string;
23
+ /** Image alternative text. */
24
+ alt: string;
25
+ /** Props to pass to the link wrapping the thumbnail. */
26
+ linkProps?: GenericProps;
27
+ /** Custom component for the link (can be used to inject vue-router RouterLink). */
28
+ linkAs?: "a" | any;
29
+ /** Props to pass to the thumbnail (minus those already set by the Avatar props). */
30
+ thumbnailProps?: Omit<ThumbnailProps, "image" | "alt" | "size" | "theme" | "aspectRatio">;
31
+ } & {}, import('vue').PublicProps>;
32
+ export default Avatar;
@@ -0,0 +1,146 @@
1
+ declare const _default: {
2
+ component: any;
3
+ argTypes: {
4
+ image: {
5
+ control: {
6
+ type: "select" | "inline-radio";
7
+ };
8
+ options: string[];
9
+ mapping: Record<string, string> | undefined;
10
+ };
11
+ size: {
12
+ control: {
13
+ type: "select" | "inline-radio";
14
+ };
15
+ options: import('../..').AvatarSize[];
16
+ mapping: Record<string, import('../..').AvatarSize> | undefined;
17
+ };
18
+ };
19
+ args: {
20
+ image: string;
21
+ alt: string;
22
+ };
23
+ title: string;
24
+ };
25
+ export default _default;
26
+ export declare const Default: {};
27
+ export declare const AvatarButton: {
28
+ argTypes: {
29
+ onClick: {
30
+ action: boolean;
31
+ };
32
+ };
33
+ };
34
+ export declare const AvatarLink: {
35
+ args: {
36
+ href: string;
37
+ target: string;
38
+ linkAs: string;
39
+ };
40
+ };
41
+ export declare const AllSizes: {
42
+ argTypes: {
43
+ size: {
44
+ control: boolean;
45
+ };
46
+ };
47
+ decorators: ((story: any, context: any) => any)[];
48
+ };
49
+ /**
50
+ * Avatar with actions
51
+ */
52
+ export declare const WithActions: {
53
+ args: {
54
+ size: "xl";
55
+ };
56
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
57
+ };
58
+ /**
59
+ * All sizes with badge
60
+ */
61
+ export declare const AllSizesWithBadge: {
62
+ args: {
63
+ 'badge.color': "blue";
64
+ 'badge.icon': string;
65
+ };
66
+ argTypes: {
67
+ 'badge.color': {
68
+ control: {
69
+ type: "select" | "inline-radio";
70
+ };
71
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
72
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
73
+ };
74
+ 'badge.icon': {
75
+ control: {
76
+ type: string;
77
+ };
78
+ options: {
79
+ undefined: undefined;
80
+ mdiAbTesting: string;
81
+ mdiAbjadArabic: string;
82
+ mdiAccount: string;
83
+ mdiAccountBox: string;
84
+ mdiAlert: string;
85
+ mdiAlertCircle: string;
86
+ mdiArrowDown: string;
87
+ mdiArrowUp: string;
88
+ mdiAtom: string;
89
+ mdiBee: string;
90
+ mdiBell: string;
91
+ mdiBullhornOutline: string;
92
+ mdiCheck: string;
93
+ mdiCheckCircle: string;
94
+ mdiChevronDown: string;
95
+ mdiChevronLeft: string;
96
+ mdiChevronRight: string;
97
+ mdiChevronUp: string;
98
+ mdiClose: string;
99
+ mdiCloseCircle: string;
100
+ mdiDelete: string;
101
+ mdiDotsHorizontal: string;
102
+ mdiDragVertical: string;
103
+ mdiEarth: string;
104
+ mdiEmail: string;
105
+ mdiEye: string;
106
+ mdiFileEdit: string;
107
+ mdiFlag: string;
108
+ mdiFolder: string;
109
+ mdiFolderGoogleDrive: string;
110
+ mdiFoodApple: string;
111
+ mdiGoogleCirclesExtended: string;
112
+ mdiHeart: string;
113
+ mdiHome: string;
114
+ mdiImageBroken: string;
115
+ mdiInformation: string;
116
+ mdiLink: string;
117
+ mdiMagnifyMinusOutline: string;
118
+ mdiMagnifyPlusOutline: string;
119
+ mdiMenuDown: string;
120
+ mdiMessageTextOutline: string;
121
+ mdiMinus: string;
122
+ mdiOpenInNew: string;
123
+ mdiPauseCircleOutline: string;
124
+ mdiPencil: string;
125
+ mdiPlay: string;
126
+ mdiPlayCircleOutline: string;
127
+ mdiPlus: string;
128
+ mdiRadioboxBlank: string;
129
+ mdiRadioboxMarked: string;
130
+ mdiReply: string;
131
+ mdiSend: string;
132
+ mdiStar: string;
133
+ mdiTextBox: string;
134
+ mdiTextBoxPlus: string;
135
+ mdiTram: string;
136
+ mdiTranslate: string;
137
+ mdiViewList: string;
138
+ };
139
+ };
140
+ size: {
141
+ control: boolean;
142
+ };
143
+ };
144
+ decorators: ((story: any, context: any) => any)[];
145
+ render: ({ badge, ...props }: any) => import("vue/jsx-runtime").JSX.Element;
146
+ };
@@ -0,0 +1 @@
1
+ export { default as Avatar, type AvatarProps, type AvatarSize } from './Avatar';
@@ -1,8 +1,12 @@
1
1
  import { FlexBoxProps as UIProps, CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/FlexBox';
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
- export type FlexBoxProps = VueToJSXProps<UIProps> & {
3
+ export type FlexBoxProps = VueToJSXProps<UIProps, 'vAlign' | 'hAlign'> & {
4
4
  /** Customize the root element. */
5
5
  as?: string;
6
+ /** FlexBox vertical alignment */
7
+ verticalAlign?: UIProps['vAlign'];
8
+ /** FlexBox horizontal alignment */
9
+ horizontalAlign?: UIProps['hAlign'];
6
10
  };
7
11
  export { CLASSNAME, COMPONENT_NAME };
8
12
  /**
@@ -11,10 +15,14 @@ export { CLASSNAME, COMPONENT_NAME };
11
15
  * @param props Component props.
12
16
  * @return Vue element.
13
17
  */
14
- declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
18
+ declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "hAlign" | "vAlign"> & {
15
19
  class?: string;
16
20
  } & {
17
21
  /** Customize the root element. */
18
22
  as?: string;
23
+ /** FlexBox vertical alignment */
24
+ verticalAlign?: UIProps["vAlign"];
25
+ /** FlexBox horizontal alignment */
26
+ horizontalAlign?: UIProps["hAlign"];
19
27
  } & {}, import('vue').PublicProps>;
20
28
  export default FlexBox;
@@ -21,7 +21,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
21
21
  declare const Thumbnail: import('vue').DefineSetupFnComponent<ThumbnailProps, {
22
22
  click: (event: Event) => boolean;
23
23
  keyPress: (event: Event) => boolean;
24
- }, {}, Omit<Omit<UIProps, "badge" | "isAnyDisabled" | "disabledStateProps" | "fallback" | "loadingState" | "imgRef" | "focusPointStyle">, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
24
+ }, {}, Omit<Omit<UIProps, "badge" | "fallback" | "loadingState" | "imgRef" | "focusPointStyle" | "disabledStateProps" | "isAnyDisabled">, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
25
25
  class?: string;
26
26
  } & {
27
27
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from '@lumx/core/js/constants';
2
2
  export * from '@lumx/core/js/types';
3
+ export * from './components/avatar';
3
4
  export * from './components/badge';
4
5
  export * from './components/button';
5
6
  export * from './components/checkbox';