@lumx/vue 4.11.0 → 4.12.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.
@@ -109,6 +109,7 @@ export declare const ComboboxWithEmptyState: {
109
109
  value: string;
110
110
  };
111
111
  decorators: ((story: any, context: any) => any)[];
112
+ play({ canvas }: any): Promise<void>;
112
113
  render: ({ value, onChange }: {
113
114
  value: string;
114
115
  onChange: (v: string) => void;
@@ -12,5 +12,9 @@ export interface ComboboxProviderProps {
12
12
  * @param props Component props.
13
13
  * @return Vue element.
14
14
  */
15
- declare const ComboboxProvider: import('vue').DefineSetupFnComponent<ComboboxProviderProps, {}, {}, ComboboxProviderProps & {}, import('vue').PublicProps>;
15
+ declare const ComboboxProvider: import('vue').DefineSetupFnComponent<ComboboxProviderProps, {
16
+ open: (isOpen: boolean) => true;
17
+ }, {}, ComboboxProviderProps & {
18
+ onOpen?: ((isOpen: boolean) => any) | undefined;
19
+ }, import('vue').PublicProps>;
16
20
  export default ComboboxProvider;
@@ -17,7 +17,11 @@ export type { ComboboxHandle, ComboboxCallbacks } from '@lumx/core/js/components
17
17
  */
18
18
  export declare const Combobox: {
19
19
  /** Provides shared combobox context (handle, listbox ID, anchor ref) to all sub-components. */
20
- Provider: import('vue').DefineSetupFnComponent<import('./ComboboxProvider').ComboboxProviderProps, {}, {}, import('./ComboboxProvider').ComboboxProviderProps & {}, import('vue').PublicProps>;
20
+ Provider: import('vue').DefineSetupFnComponent<import('./ComboboxProvider').ComboboxProviderProps, {
21
+ open: (isOpen: boolean) => true;
22
+ }, {}, import('./ComboboxProvider').ComboboxProviderProps & {
23
+ onOpen?: ((isOpen: boolean) => any) | undefined;
24
+ }, import('vue').PublicProps>;
21
25
  /** Button trigger for select-only combobox mode with keyboard navigation and typeahead. */
22
26
  Button: import('vue').DefineSetupFnComponent<import('./ComboboxButton').ComboboxButtonProps, {
23
27
  select: (option: {
@@ -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';