@lumx/vue 4.18.0-next.0 → 4.18.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.
@@ -1,12 +1,13 @@
1
1
  import { Ref } from 'vue';
2
2
  import { PopoverProps as CorePopoverProps } from '@lumx/core/js/components/Popover';
3
+ import { PopoverSizes } from '@lumx/core/js/components/Popover/types';
3
4
  import { VueToJSXProps } from '../../utils/VueToJSX';
4
5
  /**
5
6
  * Vue Popover props derived from core PopoverProps.
6
7
  * Omits framework-specific props and narrows element ref types to raw HTMLElement.
7
8
  * `isOpen` is made optional (defaults to false at runtime via keysOf).
8
9
  */
9
- export type PopoverProps = VueToJSXProps<CorePopoverProps, 'anchorRef' | 'boundaryRef' | 'focusElement' | 'parentElement' | 'focusTrapZoneElement' | 'isOpen'> & {
10
+ export type PopoverProps = VueToJSXProps<CorePopoverProps, 'anchorRef' | 'boundaryRef' | 'focusElement' | 'parentElement' | 'focusTrapZoneElement' | 'isOpen'> & PopoverSizes & {
10
11
  /** Reference to the DOM element used to set the position of the popover. Accepts a Vue Ref for reactive positioning. */
11
12
  anchorRef?: Ref<HTMLElement | undefined> | HTMLElement;
12
13
  /** Element which will act as boundary when opening the popover. Accepts a Vue Ref for reactive positioning. */
@@ -27,7 +28,7 @@ declare const Popover: import('vue').DefineSetupFnComponent<PopoverProps, {
27
28
  close: () => boolean;
28
29
  }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
29
30
  class?: import('../../utils/VueToJSX').ClassValue;
30
- } & {
31
+ } & PopoverSizes & {
31
32
  /** Reference to the DOM element used to set the position of the popover. Accepts a Vue Ref for reactive positioning. */
32
33
  anchorRef?: Ref<HTMLElement | undefined> | HTMLElement;
33
34
  /** Element which will act as boundary when opening the popover. Accepts a Vue Ref for reactive positioning. */
@@ -120,3 +120,19 @@ export declare const FitToAnchorWidth: {
120
120
  };
121
121
  decorators: ((story: any, context: any) => any)[];
122
122
  };
123
+ export declare const Width: {
124
+ args: {
125
+ anchorClassName: string;
126
+ popoverClassName: string;
127
+ placement: "bottom";
128
+ };
129
+ decorators: ((story: any, context: any) => any)[];
130
+ };
131
+ export declare const Height: {
132
+ args: {
133
+ anchorClassName: string;
134
+ popoverClassName: string;
135
+ placement: "bottom";
136
+ };
137
+ decorators: ((story: any, context: any) => any)[];
138
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as Popover, type PopoverProps } from './Popover';
2
- export { Placement, type Offset, type Elevation } from '@lumx/core/js/components/Popover/constants';
2
+ export { Placement } from '@lumx/core/js/components/Popover/constants';
3
+ export type { Offset, Elevation, PopoverHeight, PopoverWidth } from '@lumx/core/js/components/Popover/types';
@@ -1,11 +1,18 @@
1
1
  import { Ref, CSSProperties } from 'vue';
2
- import { Placement, Offset } from '@lumx/core/js/components/Popover/constants';
2
+ import { Placement } from '@lumx/core/js/components/Popover/constants';
3
+ import { Offset, PopoverSizes } from '@lumx/core/js/components/Popover/types';
3
4
  export interface UsePopoverStyleOptions {
4
5
  anchorRef: Ref<HTMLElement | undefined>;
5
6
  offset?: Ref<Offset | undefined>;
6
7
  hasArrow?: Ref<boolean | undefined>;
7
8
  fitToAnchorWidth?: Ref<string | boolean | undefined>;
8
9
  fitWithinViewportHeight?: Ref<boolean | undefined>;
10
+ width?: Ref<PopoverSizes['width']>;
11
+ minWidth?: Ref<PopoverSizes['minWidth']>;
12
+ maxWidth?: Ref<PopoverSizes['maxWidth']>;
13
+ height?: Ref<PopoverSizes['height']>;
14
+ minHeight?: Ref<PopoverSizes['minHeight']>;
15
+ maxHeight?: Ref<PopoverSizes['maxHeight']>;
9
16
  boundaryRef?: Ref<HTMLElement | undefined>;
10
17
  placement?: Ref<Placement | undefined>;
11
18
  style?: Ref<CSSProperties | undefined>;
@@ -13,7 +13,7 @@ declare const PopoverDialog: import('vue').DefineSetupFnComponent<PopoverDialogP
13
13
  close: () => boolean;
14
14
  }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
15
15
  class?: import('../../utils/VueToJSX').ClassValue;
16
- } & {
16
+ } & import('@lumx/core/js/components/Popover/types').PopoverSizes & {
17
17
  anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
18
18
  boundaryRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
19
19
  focusElement?: HTMLElement;
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  close: () => boolean;
5
5
  }, {}, Omit<import('@lumx/core/js/components/Popover').PopoverProps, "className" | import('../..').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
6
6
  class?: import('../../utils/VueToJSX').ClassValue;
7
- } & {
7
+ } & import('@lumx/core/js/components/Popover/types').PopoverSizes & {
8
8
  anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
9
9
  boundaryRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
10
10
  focusElement?: HTMLElement;