@lumx/vue 4.9.0-next.10 → 4.9.0-next.11
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 { ExpansionPanelProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, ExpansionPanelPropsToOverride } from '@lumx/core/js/components/ExpansionPanel';
|
|
2
|
+
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
|
+
export type ExpansionPanelProps = VueToJSXProps<UIProps, ExpansionPanelPropsToOverride> & {
|
|
4
|
+
/** Props to pass to the toggle button (minus those already set by the ExpansionPanel). */
|
|
5
|
+
toggleButtonProps?: {
|
|
6
|
+
label: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const emitSchema: {
|
|
11
|
+
open: (event: MouseEvent) => boolean;
|
|
12
|
+
close: (event: MouseEvent) => boolean;
|
|
13
|
+
toggleOpen: (shouldOpen: boolean, event: MouseEvent) => boolean;
|
|
14
|
+
};
|
|
15
|
+
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
16
|
+
/**
|
|
17
|
+
* ExpansionPanel component.
|
|
18
|
+
*
|
|
19
|
+
* @param props Component props.
|
|
20
|
+
* @return Vue element.
|
|
21
|
+
*/
|
|
22
|
+
declare const ExpansionPanel: import('vue').DefineSetupFnComponent<ExpansionPanelProps, {
|
|
23
|
+
open: (event: MouseEvent) => boolean;
|
|
24
|
+
close: (event: MouseEvent) => boolean;
|
|
25
|
+
toggleOpen: (shouldOpen: boolean, event: MouseEvent) => boolean;
|
|
26
|
+
}, {}, Omit<UIProps, "className" | "footer" | "ref" | "handleClick" | "handleChange" | "handleKeyPress" | "handleClose" | "handleFocus" | "handleBeforeClick" | "handleAfterClick" | "handleMouseEnter" | "handleMouseLeave" | "handleKeyDown" | "children" | "content" | "IconButton" | "handleOpen" | "toggleButtonProps" | "handleToggleOpen" | "wrapperRef" | "headerProps" | "headerContent" | "dragHandle" | "isChildrenVisible"> & {
|
|
27
|
+
class?: string;
|
|
28
|
+
} & {
|
|
29
|
+
/** Props to pass to the toggle button (minus those already set by the ExpansionPanel). */
|
|
30
|
+
toggleButtonProps?: {
|
|
31
|
+
label: string;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
} & {
|
|
35
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
36
|
+
onOpen?: ((event: MouseEvent) => any) | undefined;
|
|
37
|
+
onToggleOpen?: ((shouldOpen: boolean, event: MouseEvent) => any) | undefined;
|
|
38
|
+
}, import('vue').PublicProps>;
|
|
39
|
+
export default ExpansionPanel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: any;
|
|
3
|
+
render: ({ children, ...args }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
4
|
+
args: {
|
|
5
|
+
'toggleButtonProps.label': string;
|
|
6
|
+
label: string;
|
|
7
|
+
hasBackground?: boolean | undefined;
|
|
8
|
+
hasHeaderDivider?: boolean | undefined;
|
|
9
|
+
isOpen?: boolean | undefined;
|
|
10
|
+
handleOpen?: ((event: any) => void) | undefined;
|
|
11
|
+
handleClose?: ((event: any) => void) | undefined;
|
|
12
|
+
toggleButtonProps?: any;
|
|
13
|
+
handleToggleOpen?: ((shouldOpen: boolean, event: any) => void) | undefined;
|
|
14
|
+
children?: import('react').ReactNode;
|
|
15
|
+
ref?: import('../..').CommonRef;
|
|
16
|
+
wrapperRef?: import('../..').CommonRef;
|
|
17
|
+
headerProps?: import('../..').GenericProps | undefined;
|
|
18
|
+
headerContent?: import('react').ReactNode;
|
|
19
|
+
dragHandle?: import('react').ReactNode;
|
|
20
|
+
content?: import('react').ReactNode;
|
|
21
|
+
footer?: import('react').ReactNode;
|
|
22
|
+
IconButton?: any;
|
|
23
|
+
isChildrenVisible?: boolean | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
closeMode?: "hide" | "unmount" | undefined;
|
|
26
|
+
theme?: import('../..').Theme | undefined;
|
|
27
|
+
};
|
|
28
|
+
decorators: ((story: any, context: any) => any)[];
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
export declare const Default: {};
|
|
33
|
+
export declare const HasBackground: {
|
|
34
|
+
args: {
|
|
35
|
+
hasBackground: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const HasHeaderDivider: {
|
|
39
|
+
args: {
|
|
40
|
+
isOpen: boolean;
|
|
41
|
+
hasBackground: boolean;
|
|
42
|
+
hasHeaderDivider: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const Nested: {
|
|
46
|
+
args: {};
|
|
47
|
+
render: ({ children, isOpen, ...args }: any) => import("vue/jsx-runtime").JSX.Element;
|
|
48
|
+
};
|
|
49
|
+
export declare const HideChildren: {
|
|
50
|
+
args: {
|
|
51
|
+
hasBackground: boolean;
|
|
52
|
+
closeMode: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ExpansionPanel, type ExpansionPanelProps } from './ExpansionPanel';
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './components/checkbox';
|
|
|
7
7
|
export * from './components/chip';
|
|
8
8
|
export * from './components/divider';
|
|
9
9
|
export * from './components/drag-handle';
|
|
10
|
+
export * from './components/expansion-panel';
|
|
10
11
|
export * from './components/flag';
|
|
11
12
|
export * from './components/flex-box';
|
|
12
13
|
export * from './components/grid-column';
|