@lumx/vue 4.8.0-next.0 → 4.8.0-next.2

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,13 @@
1
+ import { InlineListProps as UIProps } from '@lumx/core/js/components/InlineList';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type InlineListProps = VueToJSXProps<UIProps, 'items'>;
4
+ /**
5
+ * InlineList component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const InlineList: import('vue').DefineSetupFnComponent<InlineListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "items"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default InlineList;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ component: any;
3
+ argTypes: {
4
+ typography: {
5
+ control: {
6
+ type: "select" | "inline-radio";
7
+ };
8
+ options: ("caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button")[];
9
+ mapping: Record<string, "caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button"> | undefined;
10
+ };
11
+ color: {
12
+ control: {
13
+ type: "select" | "inline-radio";
14
+ };
15
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
16
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
17
+ };
18
+ colorVariant: {
19
+ control: {
20
+ type: "select" | "inline-radio";
21
+ };
22
+ options: ("D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N")[];
23
+ mapping: Record<string, "D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N"> | undefined;
24
+ };
25
+ children: {
26
+ control: boolean;
27
+ };
28
+ };
29
+ title: string;
30
+ };
31
+ export default _default;
32
+ export declare const WithElements: {
33
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
34
+ };
35
+ export declare const MixedNoWrapAndTruncate: {
36
+ args: {
37
+ typography: string;
38
+ color: string;
39
+ colorVariant: string;
40
+ style: {
41
+ width: string;
42
+ };
43
+ };
44
+ render: ({ children, ...args }: any) => import("vue/jsx-runtime").JSX.Element;
45
+ decorators: ((story: any, context: any) => any)[];
46
+ };
47
+ export declare const Wrap: {
48
+ args: {
49
+ wrap: boolean;
50
+ };
51
+ render: ({ children, ...args }: any) => import("vue/jsx-runtime").JSX.Element;
52
+ decorators: ((story: any, context: any) => any)[];
53
+ };
@@ -0,0 +1,3 @@
1
+ import { default as InlineList, InlineListProps } from './InlineList';
2
+ export { InlineList };
3
+ export type { InlineListProps };
@@ -0,0 +1,13 @@
1
+ import { ListProps as UIProps } from '@lumx/core/js/components/List';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ListProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * List component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const List: import('vue').DefineSetupFnComponent<ListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default List;
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ component: any;
3
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
4
+ argTypes: {
5
+ itemPadding: {
6
+ control: {
7
+ type: "select" | "inline-radio";
8
+ };
9
+ options: ("big" | "huge" | undefined)[];
10
+ mapping: Record<string, "big" | "huge" | undefined> | undefined;
11
+ };
12
+ };
13
+ title: string;
14
+ };
15
+ export default _default;
16
+ export declare const Default: {};
17
+ export declare const ItemPadding: {
18
+ argTypes: {
19
+ itemPadding: {
20
+ control: boolean;
21
+ };
22
+ };
23
+ decorators: ((story: any, context: any) => any)[];
24
+ };
@@ -0,0 +1,13 @@
1
+ import { ListDividerProps as UIProps } from '@lumx/core/js/components/List/ListDivider';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ListDividerProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * ListDivider component.
6
+ * Purely decorative, consider a `ListSection` with label for a better list structure.
7
+ *
8
+ * @return Vue element.
9
+ */
10
+ declare const ListDivider: import('vue').DefineSetupFnComponent<ListDividerProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default ListDivider;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ component: any;
3
+ decorators: ((story: any, context: any) => any)[];
4
+ title: string;
5
+ };
6
+ export default _default;
7
+ export declare const Default: {};
@@ -0,0 +1,26 @@
1
+ import { ListItemProps as UIProps, ListItemSize } from '@lumx/core/js/components/List/ListItem';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type { ListItemSize };
4
+ export type ListItemProps = VueToJSXProps<UIProps, 'after' | 'before' | 'linkRef'>;
5
+ export declare const emitSchema: {
6
+ click: (event: MouseEvent) => boolean;
7
+ };
8
+ declare const _default: import('vue').DefineSetupFnComponent<ListItemProps, {
9
+ click: (event: MouseEvent) => boolean;
10
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "before" | "linkRef"> & {
11
+ class?: string;
12
+ } & {
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }, import('vue').PublicProps> & {
15
+ Action: import('vue').DefineSetupFnComponent<import('./ListItemAction').ListItemActionProps, {
16
+ click: (event: MouseEvent) => boolean;
17
+ }, {}, Omit<import('@lumx/core/js/components/RawClickable').BaseClickableProps & import('@lumx/core/js/types').HasClassName, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
18
+ class?: string;
19
+ } & {
20
+ as?: import('@lumx/core/js/components/RawClickable').ClickableElement;
21
+ href?: string;
22
+ } & {
23
+ onClick?: ((event: MouseEvent) => any) | undefined;
24
+ }, import('vue').PublicProps>;
25
+ };
26
+ export default _default;
@@ -0,0 +1,80 @@
1
+ declare const _default: {
2
+ args: Partial<import('@lumx/core/js/components/List/ListItem').ListItemProps>;
3
+ argTypes: {
4
+ size: {
5
+ control: {
6
+ type: "select" | "inline-radio";
7
+ };
8
+ options: import('../..').ListItemSize[];
9
+ mapping: Record<string, import('../..').ListItemSize> | undefined;
10
+ };
11
+ };
12
+ render?: any;
13
+ component: any;
14
+ title: string;
15
+ };
16
+ export default _default;
17
+ export declare const Default: {
18
+ args: {
19
+ children: string;
20
+ };
21
+ decorators: ((story: any, context: any) => any)[];
22
+ };
23
+ export declare const AllStates: {
24
+ args: {
25
+ children: string;
26
+ };
27
+ decorators: ((story: any, context: any) => any)[];
28
+ };
29
+ export declare const ActionArea: {
30
+ argTypes: {
31
+ onClick: {
32
+ action: boolean;
33
+ };
34
+ };
35
+ render({ onClick, size }: any): import("vue/jsx-runtime").JSX.Element;
36
+ };
37
+ /** Inject a custom link component */
38
+ export declare const CustomLink_: {
39
+ args: {
40
+ linkAs: {
41
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
42
+ to?: string;
43
+ }> & Readonly<{}>, {
44
+ linkRef: import('vue').Ref<HTMLAnchorElement | undefined, HTMLAnchorElement | undefined>;
45
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
46
+ linkRef: HTMLAnchorElement;
47
+ }, any, import('vue').ComponentProvideOptions, {
48
+ P: {};
49
+ B: {};
50
+ D: {};
51
+ C: {};
52
+ M: {};
53
+ Defaults: {};
54
+ }, Readonly<{
55
+ to?: string;
56
+ }> & Readonly<{}>, {
57
+ linkRef: import('vue').Ref<HTMLAnchorElement | undefined, HTMLAnchorElement | undefined>;
58
+ }, {}, {}, {}, {}>;
59
+ __isFragment?: never;
60
+ __isTeleport?: never;
61
+ __isSuspense?: never;
62
+ } & import('vue').ComponentOptionsBase<Readonly<{
63
+ to?: string;
64
+ }> & Readonly<{}>, {
65
+ linkRef: import('vue').Ref<HTMLAnchorElement | undefined, HTMLAnchorElement | undefined>;
66
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
67
+ $slots: {
68
+ default?(_: {}): any;
69
+ };
70
+ });
71
+ children: string;
72
+ };
73
+ decorators: ((story: any, context: any) => {
74
+ setup(): {
75
+ as: string | object;
76
+ overriddenProps: any;
77
+ };
78
+ template: string;
79
+ })[];
80
+ };
@@ -0,0 +1,31 @@
1
+ import { BaseClickableProps, ClickableElement } from '@lumx/core/js/components/RawClickable';
2
+ import { HasClassName } from '@lumx/core/js/types';
3
+ import { VueToJSXProps } from '../../utils/VueToJSX';
4
+ export type ListItemActionProps = VueToJSXProps<BaseClickableProps & HasClassName> & {
5
+ /** Customize the rendered element. */
6
+ as?: ClickableElement;
7
+ /** Link href. */
8
+ href?: string;
9
+ };
10
+ export declare const emitSchema: {
11
+ click: (event: MouseEvent) => boolean;
12
+ };
13
+ /**
14
+ * ListItemAction component.
15
+ *
16
+ * @param props Component props.
17
+ * @return Vue element.
18
+ */
19
+ declare const ListItemAction: import('vue').DefineSetupFnComponent<ListItemActionProps, {
20
+ click: (event: MouseEvent) => boolean;
21
+ }, {}, Omit<BaseClickableProps & HasClassName, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
22
+ class?: string;
23
+ } & {
24
+ /** Customize the rendered element. */
25
+ as?: ClickableElement;
26
+ /** Link href. */
27
+ href?: string;
28
+ } & {
29
+ onClick?: ((event: MouseEvent) => any) | undefined;
30
+ }, import('vue').PublicProps>;
31
+ export default ListItemAction;
@@ -0,0 +1,13 @@
1
+ import { ListSectionProps as UIProps } from '@lumx/core/js/components/List/ListSection';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ListSectionProps = VueToJSXProps<UIProps, 'id' | 'Text'>;
4
+ /**
5
+ * ListSection component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const ListSection: import('vue').DefineSetupFnComponent<ListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Text" | "id"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default ListSection;
@@ -0,0 +1,114 @@
1
+ declare const _default: {
2
+ component: any;
3
+ argTypes: {
4
+ 'list.itemPadding': {
5
+ control: {
6
+ type: "select" | "inline-radio";
7
+ };
8
+ options: ("big" | "huge" | undefined)[];
9
+ mapping: Record<string, "big" | "huge" | undefined> | undefined;
10
+ };
11
+ 'listItem.size': {
12
+ control: {
13
+ type: "select" | "inline-radio";
14
+ };
15
+ options: ("big" | "tiny" | "regular" | undefined)[];
16
+ mapping: Record<string, "big" | "tiny" | "regular" | undefined> | undefined;
17
+ };
18
+ };
19
+ title: string;
20
+ };
21
+ export default _default;
22
+ export declare const Default: {
23
+ args: {
24
+ label: string;
25
+ };
26
+ argTypes: {
27
+ icon: {
28
+ control: {
29
+ type: string;
30
+ };
31
+ options: {
32
+ undefined: undefined;
33
+ mdiAbTesting: string;
34
+ mdiAbjadArabic: string;
35
+ mdiAccount: string;
36
+ mdiAccountBox: string;
37
+ mdiAlert: string;
38
+ mdiAlertCircle: string;
39
+ mdiArrowDown: string;
40
+ mdiArrowUp: string;
41
+ mdiAtom: string;
42
+ mdiBee: string;
43
+ mdiBell: string;
44
+ mdiBullhornOutline: string;
45
+ mdiCheck: string;
46
+ mdiCheckCircle: string;
47
+ mdiChevronDown: string;
48
+ mdiChevronLeft: string;
49
+ mdiChevronRight: string;
50
+ mdiChevronUp: string;
51
+ mdiClose: string;
52
+ mdiCloseCircle: string;
53
+ mdiDelete: string;
54
+ mdiDotsHorizontal: string;
55
+ mdiDragVertical: string;
56
+ mdiEarth: string;
57
+ mdiEmail: string;
58
+ mdiEye: string;
59
+ mdiFileEdit: string;
60
+ mdiFlag: string;
61
+ mdiFolder: string;
62
+ mdiFolderGoogleDrive: string;
63
+ mdiFoodApple: string;
64
+ mdiGoogleCirclesExtended: string;
65
+ mdiHeart: string;
66
+ mdiHome: string;
67
+ mdiImageBroken: string;
68
+ mdiInformation: string;
69
+ mdiLink: string;
70
+ mdiMagnifyMinusOutline: string;
71
+ mdiMagnifyPlusOutline: string;
72
+ mdiMenuDown: string;
73
+ mdiMessageTextOutline: string;
74
+ mdiMinus: string;
75
+ mdiOpenInNew: string;
76
+ mdiPauseCircleOutline: string;
77
+ mdiPencil: string;
78
+ mdiPlay: string;
79
+ mdiPlayCircleOutline: string;
80
+ mdiPlus: string;
81
+ mdiRadioboxBlank: string;
82
+ mdiRadioboxMarked: string;
83
+ mdiReply: string;
84
+ mdiSend: string;
85
+ mdiStar: string;
86
+ mdiTextBox: string;
87
+ mdiTextBoxPlus: string;
88
+ mdiTram: string;
89
+ mdiTranslate: string;
90
+ mdiViewList: string;
91
+ };
92
+ };
93
+ };
94
+ render({ "list.itemPadding": itemPadding, "listItem.size": itemSize, ...args }: any): import("vue/jsx-runtime").JSX.Element;
95
+ };
96
+ export declare const AutoDividerEdgeCases: {
97
+ render({ "list.itemPadding": itemPadding, "listItem.size": itemSize }: any): import("vue/jsx-runtime").JSX.Element;
98
+ };
99
+ export declare const LabelVariants: {
100
+ render({ "list.itemPadding": itemPadding, "listItem.size": itemSize }: any): import("vue/jsx-runtime").JSX.Element;
101
+ decorators: ((story: any, context: any) => any)[];
102
+ };
103
+ export declare const ClickableItems: {
104
+ argTypes: {
105
+ onClick: {
106
+ action: boolean;
107
+ };
108
+ };
109
+ args: {
110
+ 'list.itemPadding': "big";
111
+ 'listItem.size': "tiny";
112
+ };
113
+ render({ onClick, "list.itemPadding": itemPadding, "listItem.size": itemSize }: any): import("vue/jsx-runtime").JSX.Element;
114
+ };
@@ -0,0 +1,5 @@
1
+ export { default as List, type ListProps } from './List';
2
+ export { default as ListDivider, type ListDividerProps } from './ListDivider';
3
+ export { default as ListItem, type ListItemProps, type ListItemSize } from './ListItem';
4
+ export { default as ListItemAction, type ListItemActionProps } from './ListItemAction';
5
+ export { default as ListSection, type ListSectionProps } from './ListSection';
package/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './components/icon';
15
15
  export * from './components/input-helper';
16
16
  export * from './components/input-label';
17
17
  export * from './components/link';
18
+ export * from './components/list';
18
19
  export * from './components/message';
19
20
  export * from './components/popover';
20
21
  export * from './components/popover-dialog';
@@ -25,6 +26,7 @@ export * from './components/switch';
25
26
  export * from './components/text-field';
26
27
  export * from './components/uploader';
27
28
  export * from './components/generic-block';
29
+ export * from './components/inline-list';
28
30
  export * from './components/table';
29
31
  export * from './components/text';
30
32
  export * from './components/thumbnail';