@lumx/vue 4.11.0 → 4.12.0-next.0

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,28 @@
1
+ import { BaseLightboxProps } from '@lumx/core/js/components/Lightbox';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type LightboxProps = VueToJSXProps<BaseLightboxProps, 'theme' | 'aria-label' | 'aria-labelledby'> & {
4
+ /** Reference to the element that triggered lightbox opening (gets focus back on close). */
5
+ parentElement?: HTMLElement;
6
+ /** Element that should receive focus when the lightbox opens. By default the first focusable child. */
7
+ focusElement?: HTMLElement;
8
+ /** Props to pass to the close button. */
9
+ closeButtonProps?: any;
10
+ };
11
+ export declare const emitSchema: {
12
+ close: () => boolean;
13
+ };
14
+ declare const Lightbox: import('vue').DefineSetupFnComponent<LightboxProps, {
15
+ close: () => boolean;
16
+ }, {}, Omit<BaseLightboxProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "theme" | "aria-labelledby"> & {
17
+ class?: string;
18
+ } & {
19
+ /** Reference to the element that triggered lightbox opening (gets focus back on close). */
20
+ parentElement?: HTMLElement;
21
+ /** Element that should receive focus when the lightbox opens. By default the first focusable child. */
22
+ focusElement?: HTMLElement;
23
+ /** Props to pass to the close button. */
24
+ closeButtonProps?: any;
25
+ } & {
26
+ onClose?: (() => any) | undefined;
27
+ }, import('vue').PublicProps>;
28
+ export default Lightbox;
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ component: any;
3
+ render: any;
4
+ play: ({ canvas }: any) => Promise<void>;
5
+ argTypes: {
6
+ children: {
7
+ control: boolean;
8
+ };
9
+ };
10
+ title: string;
11
+ };
12
+ export default _default;
13
+ export declare const Image: {
14
+ render: ({ children, ...args }: any) => any;
15
+ args: {
16
+ 'aria-label': string;
17
+ };
18
+ };
19
+ export declare const WithCloseButton: {
20
+ render: ({ children, ...args }: any) => any;
21
+ args: {
22
+ closeButtonProps: {
23
+ label: string;
24
+ };
25
+ 'aria-label': string;
26
+ };
27
+ };
@@ -0,0 +1 @@
1
+ export { default as Lightbox, type LightboxProps } from './Lightbox';
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './components/button';
8
8
  export * from './components/checkbox';
9
9
  export * from './components/chip';
10
10
  export * from './components/dialog';
11
+ export * from './components/lightbox';
11
12
  export * from './components/divider';
12
13
  export * from './components/drag-handle';
13
14
  export * from './components/expansion-panel';