@lumx/vue 4.8.0-alpha.0 → 4.8.0-next.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,14 @@
1
+ import { DragHandleProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/DragHandle';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type DragHandleProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ /**
6
+ * DragHandle component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const DragHandle: import('vue').DefineSetupFnComponent<DragHandleProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
12
+ class?: string;
13
+ } & {}, import('vue').PublicProps>;
14
+ export default DragHandle;
@@ -0,0 +1,2 @@
1
+ export { default as DragHandle } from './DragHandle';
2
+ export type { DragHandleProps } from './DragHandle';
@@ -3,6 +3,12 @@ import { VueToJSXProps } from '../../utils/VueToJSX';
3
3
  export type FlexBoxProps = VueToJSXProps<UIProps, 'vAlign' | 'hAlign'> & {
4
4
  /** Customize the root element. */
5
5
  as?: string;
6
+ /**
7
+ * @deprecated please use `class`
8
+ * custom class name, used for compatibility when using
9
+ * FlexBox as a nested component.
10
+ */
11
+ className?: string;
6
12
  /** FlexBox vertical alignment */
7
13
  verticalAlign?: UIProps['vAlign'];
8
14
  /** FlexBox horizontal alignment */
@@ -20,6 +26,12 @@ declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}
20
26
  } & {
21
27
  /** Customize the root element. */
22
28
  as?: string;
29
+ /**
30
+ * @deprecated please use `class`
31
+ * custom class name, used for compatibility when using
32
+ * FlexBox as a nested component.
33
+ */
34
+ className?: string;
23
35
  /** FlexBox vertical alignment */
24
36
  verticalAlign?: UIProps["vAlign"];
25
37
  /** FlexBox horizontal alignment */
@@ -0,0 +1,57 @@
1
+ import { GenericBlockProps as UIProps, GenericBlockPropsToOverride } from '@lumx/core/js/components/GenericBlock';
2
+ import { FlexBoxProps } from '../flex-box';
3
+ import { VueToJSXProps } from '../../utils/VueToJSX';
4
+ export type GenericBlockProps = VueToJSXProps<UIProps, GenericBlockPropsToOverride | 'figure' | 'actions' | 'vAlign' | 'hAlign' | 'actionsProps' | 'contentProps' | 'figureProps'> & {
5
+ /** Customize the root element tag. */
6
+ as?: string;
7
+ /** Vertical alignment (maps to core's vAlign). */
8
+ verticalAlign?: UIProps['vAlign'];
9
+ /** Horizontal alignment (maps to core's hAlign). */
10
+ horizontalAlign?: UIProps['hAlign'];
11
+ /**
12
+ * The props to forward to the content.
13
+ * By default, the content will have the same alignment as wrapper.
14
+ */
15
+ contentProps?: FlexBoxProps;
16
+ /**
17
+ * props to forward to the actions element.
18
+ */
19
+ actionsProps?: FlexBoxProps;
20
+ /**
21
+ * props to forward to the figure element.
22
+ */
23
+ figureProps?: FlexBoxProps;
24
+ };
25
+ /**
26
+ * The GenericBlock is a layout component made of 3 sections that can be
27
+ * displayed either horizontally or vertically with the same gap between each section.
28
+ *
29
+ * The sections are provided via named slots:
30
+ * - `figure` slot => A visual element to display before the main content.
31
+ * - default slot => The main content displayed.
32
+ * - `actions` slot => One or more actions to set after the element.
33
+ */
34
+ declare const GenericBlock: import('vue').DefineSetupFnComponent<GenericBlockProps, {}, {}, Omit<UIProps, "className" | "figure" | import('@lumx/core/js/types').PropsToOverride | "actions" | "children" | "hAlign" | "vAlign" | GenericBlockPropsToOverride | "contentProps" | "actionsProps" | "figureProps"> & {
35
+ class?: string;
36
+ } & {
37
+ /** Customize the root element tag. */
38
+ as?: string;
39
+ /** Vertical alignment (maps to core's vAlign). */
40
+ verticalAlign?: UIProps["vAlign"];
41
+ /** Horizontal alignment (maps to core's hAlign). */
42
+ horizontalAlign?: UIProps["hAlign"];
43
+ /**
44
+ * The props to forward to the content.
45
+ * By default, the content will have the same alignment as wrapper.
46
+ */
47
+ contentProps?: FlexBoxProps;
48
+ /**
49
+ * props to forward to the actions element.
50
+ */
51
+ actionsProps?: FlexBoxProps;
52
+ /**
53
+ * props to forward to the figure element.
54
+ */
55
+ figureProps?: FlexBoxProps;
56
+ } & {}, import('vue').PublicProps>;
57
+ export default GenericBlock;
@@ -0,0 +1,65 @@
1
+ declare const _default: {
2
+ component: any;
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const SectionsInProps: {
7
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
8
+ };
9
+ export declare const SectionsInChildren: {
10
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
11
+ };
12
+ export declare const Vertical: {
13
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
14
+ args: {
15
+ orientation: string;
16
+ };
17
+ };
18
+ export declare const VerticalAlignCenter: {
19
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
20
+ args: {
21
+ orientation: string;
22
+ vAlign: string;
23
+ };
24
+ };
25
+ export declare const VerticalOverflow: {
26
+ args: {
27
+ orientation: string;
28
+ style: {
29
+ width: string;
30
+ };
31
+ };
32
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
33
+ };
34
+ export declare const Horizontal: {
35
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
36
+ args: {
37
+ orientation: string;
38
+ };
39
+ };
40
+ export declare const HorizontalAlignRightBottom: {
41
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
42
+ args: {
43
+ orientation: string;
44
+ vAlign: string;
45
+ hAlign: string;
46
+ };
47
+ };
48
+ export declare const HorizontalOverflow: {
49
+ args: {
50
+ orientation: string;
51
+ style: {
52
+ width: string;
53
+ };
54
+ };
55
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
56
+ };
57
+ export declare const GapSizes: {
58
+ render: (args: any) => import("vue/jsx-runtime").JSX.Element;
59
+ };
60
+ export declare const AsAFigure: {
61
+ render: () => import("vue/jsx-runtime").JSX.Element;
62
+ };
63
+ export declare const AsAnArticle: {
64
+ render: () => import("vue/jsx-runtime").JSX.Element;
65
+ };
@@ -0,0 +1,4 @@
1
+ import { default as GenericBlock, GenericBlockProps } from './GenericBlock';
2
+ export { GenericBlock };
3
+ export type { GenericBlockProps };
4
+ export { GenericBlockGapSize } from '@lumx/core/js/components/GenericBlock/constants';
@@ -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 };
package/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './components/button';
6
6
  export * from './components/checkbox';
7
7
  export * from './components/chip';
8
8
  export * from './components/divider';
9
+ export * from './components/drag-handle';
9
10
  export * from './components/flag';
10
11
  export * from './components/flex-box';
11
12
  export * from './components/grid-column';
@@ -23,6 +24,8 @@ export * from './components/skeleton';
23
24
  export * from './components/switch';
24
25
  export * from './components/text-field';
25
26
  export * from './components/uploader';
27
+ export * from './components/generic-block';
28
+ export * from './components/inline-list';
26
29
  export * from './components/table';
27
30
  export * from './components/text';
28
31
  export * from './components/thumbnail';