@lumx/vue 4.11.0-next.7 → 4.11.0-next.9

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,26 +1,13 @@
1
- import { inject as d, computed as p, unref as y, defineComponent as i, provide as s, ref as P, watch as b, onBeforeUnmount as v, createVNode as C, Teleport as R, isVNode as x, onMounted as L } from "vue";
1
+ import { defineComponent as i, provide as d, inject as s, ref as y, watch as P, onBeforeUnmount as p, createVNode as b, Teleport as C, isVNode as R, onMounted as x, computed as v, unref as L } from "vue";
2
2
  import { Theme as T } from "@lumx/core/js/constants";
3
- function O(e = { defaultTheme: T.light }) {
4
- const { defaultTheme: n } = e, o = d("theme", void 0);
5
- return p(() => y(o) || n);
6
- }
7
- const S = () => (...e) => e.reduce(
3
+ const O = () => (...e) => e.reduce(
8
4
  (n, o) => (n[o] = { required: !1 }, n),
9
5
  {}
10
- ), g = i(
11
- (e, { slots: n }) => (s(
12
- "theme",
13
- p(() => e.value)
14
- ), () => n.default?.()),
15
- {
16
- name: "LumxThemeProvider",
17
- props: { value: { type: String, default: void 0 } }
18
- }
19
6
  ), h = /* @__PURE__ */ Symbol("LumxPortal"), A = () => ({
20
7
  container: "body"
21
- }), N = /* @__PURE__ */ i((e, {
8
+ }), S = /* @__PURE__ */ i((e, {
22
9
  slots: n
23
- }) => (s(h, e.value), () => n.default?.()), {
10
+ }) => (d(h, e.value), () => n.default?.()), {
24
11
  name: "LumxPortalProvider",
25
12
  props: {
26
13
  value: {
@@ -30,19 +17,19 @@ const S = () => (...e) => e.reduce(
30
17
  }
31
18
  });
32
19
  function w(e) {
33
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !x(e);
20
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !R(e);
34
21
  }
35
- const Y = /* @__PURE__ */ i((e, {
22
+ const g = /* @__PURE__ */ i((e, {
36
23
  slots: n
37
24
  }) => {
38
- const o = d(h, A), t = P(null), u = () => {
25
+ const o = s(h, A), t = y(null), u = () => {
39
26
  e.enabled ? t.value = o() : t.value = null;
40
27
  };
41
- return u(), b(() => e.enabled, u), v(() => {
28
+ return u(), P(() => e.enabled, u), p(() => {
42
29
  t.value?.teardown?.();
43
30
  }), () => {
44
31
  const a = n.default?.(), r = t.value?.container;
45
- return !e.enabled || !r ? a : C(R, {
32
+ return !e.enabled || !r ? a : b(C, {
46
33
  to: r
47
34
  }, w(a) ? a : {
48
35
  default: () => [a]
@@ -71,10 +58,10 @@ function k(e, n) {
71
58
  f.forEach((t) => document.removeEventListener(t, o));
72
59
  };
73
60
  }
74
- const m = /* @__PURE__ */ Symbol("LumxClickAway"), I = /* @__PURE__ */ i((e, {
61
+ const m = /* @__PURE__ */ Symbol("LumxClickAway"), N = /* @__PURE__ */ i((e, {
75
62
  slots: n
76
63
  }) => {
77
- const o = d(m, null), t = [], u = {
64
+ const o = s(m, null), t = [], u = {
78
65
  childrenRefs: t,
79
66
  addRefs(...r) {
80
67
  for (const l of r) {
@@ -84,15 +71,15 @@ const m = /* @__PURE__ */ Symbol("LumxClickAway"), I = /* @__PURE__ */ i((e, {
84
71
  o && (o.addRefs(...r), e.parentRef && o.addRefs(e.parentRef));
85
72
  }
86
73
  };
87
- s(m, u);
74
+ d(m, u);
88
75
  let a;
89
- return L(() => {
76
+ return x(() => {
90
77
  const r = e.childrenRefs.value;
91
78
  r && u.addRefs(...r), a = k(() => t, (l) => {
92
79
  const c = e.callback;
93
80
  typeof c == "function" && c(l);
94
81
  });
95
- }), v(() => {
82
+ }), p(() => {
96
83
  a?.();
97
84
  }), () => n.default?.();
98
85
  }, {
@@ -111,14 +98,27 @@ const m = /* @__PURE__ */ Symbol("LumxClickAway"), I = /* @__PURE__ */ i((e, {
111
98
  default: void 0
112
99
  }
113
100
  }
114
- });
101
+ }), Y = i(
102
+ (e, { slots: n }) => (d(
103
+ "theme",
104
+ v(() => e.value)
105
+ ), () => n.default?.()),
106
+ {
107
+ name: "LumxThemeProvider",
108
+ props: { value: { type: String, default: void 0 } }
109
+ }
110
+ );
111
+ function I(e = { defaultTheme: T.light }) {
112
+ const { defaultTheme: n } = e, o = s("theme", void 0);
113
+ return v(() => L(o) || n);
114
+ }
115
115
  export {
116
- I as C,
117
- Y as P,
118
- g as T,
119
- N as a,
120
- S as k,
116
+ N as C,
117
+ g as P,
118
+ Y as T,
119
+ S as a,
120
+ O as k,
121
121
  k as s,
122
- O as u
122
+ I as u
123
123
  };
124
- //# sourceMappingURL=C6sf-SYQ.js.map
124
+ //# sourceMappingURL=BiLpoFMC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BiLpoFMC.js","sources":["../../src/utils/VueToJSX.ts","../../src/utils/Portal/PortalProvider.tsx","../../src/utils/Portal/Portal.tsx","../../../lumx-core/src/js/utils/ClickAway/index.ts","../../src/utils/ClickAway/ClickAwayProvider.tsx","../../src/utils/theme/ThemeProvider.ts","../../src/utils/theme/useTheme.ts"],"sourcesContent":["import { PropsToOverride } from '@lumx/core/js/types';\n/**\n * Props interface for components wrapped with VueToJSX.\n * It omits JSX-specific props like `children` and `className` and adds Vue's `class`.\n *\n * @template Props - The base props type\n * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)\n */\nexport type VueToJSXProps<Props, OmitProps extends keyof Props = never> = Omit<\n Props,\n PropsToOverride | 'children' | 'className' | OmitProps\n> & {\n /** Class name forwarded to the root element of the component. */\n class?: string;\n};\n\n/**\n * Hyphenated aria-* prop keys that must NOT be declared as Vue component props.\n * When declared, Vue normalizes them to camelCase (e.g. aria-haspopup → ariaHaspopup),\n * which breaks hyphenated key destructuring in core component templates.\n * By excluding them from props, they flow through `attrs` with their original hyphenated keys.\n */\nexport type HyphenatedAriaProps = 'aria-expanded' | 'aria-haspopup' | 'aria-label' | 'aria-pressed';\n\nexport const keysOf = <T>() => {\n return <K extends readonly (keyof T)[]>(\n ...keys: [keyof T] extends [K[number]]\n ? K\n : [Error: '❌ Missing keys in your list:', Exclude<keyof T, K[number]>]\n ) => {\n // Return an object with all props marked as optional (not required)\n // This ensures Vue's type system correctly infers props as optional\n return keys.reduce(\n (acc, key) => {\n acc[key as K[number]] = { required: false };\n return acc;\n },\n {} as Record<K[number], { required: false }>,\n );\n };\n};\n","import { defineComponent, provide, type PropType, type InjectionKey } from 'vue';\n\nexport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalInit, PortalProviderProps } from '@lumx/core/js/utils/Portal';\n\nexport const PORTAL_KEY: InjectionKey<PortalInit> = Symbol('LumxPortal');\n\nexport const defaultPortalInit: PortalInit = () => ({ container: 'body' });\n\n/**\n * Customize where <Portal> wrapped elements render (tooltip, popover, dialog, etc.)\n */\nexport const PortalProvider = defineComponent(\n (props: PortalProviderProps, { slots }) => {\n provide(PORTAL_KEY, props.value);\n return () => slots.default?.();\n },\n {\n name: 'LumxPortalProvider',\n props: {\n value: {\n type: Function as PropType<PortalInit>,\n required: true,\n },\n },\n },\n);\n","import { defineComponent, inject, onBeforeUnmount, Teleport, ref, watch } from 'vue';\nimport { PORTAL_KEY, defaultPortalInit } from './PortalProvider';\n\nexport type { PortalProps } from '@lumx/core/js/utils/Portal';\nimport type { PortalProps } from '@lumx/core/js/utils/Portal';\n\n/**\n * Render children in a portal outside the current DOM position\n * (defaults to `document.body` but can be customized with the PortalProvider)\n */\nexport const Portal = defineComponent(\n (props: PortalProps, { slots }) => {\n const portalInit = inject(PORTAL_KEY, defaultPortalInit);\n const context = ref<ReturnType<typeof portalInit> | null>(null);\n\n // Initialize portal context when enabled\n const initializePortal = () => {\n if (props.enabled) {\n context.value = portalInit();\n } else {\n context.value = null;\n }\n };\n\n // Initialize on mount and when enabled changes\n initializePortal();\n watch(() => props.enabled, initializePortal);\n\n // Register teardown on unmount\n onBeforeUnmount(() => {\n context.value?.teardown?.();\n });\n\n return () => {\n const content = slots.default?.();\n const container = context.value?.container;\n\n // If disabled or no container, render inline\n if (!props.enabled || !container) {\n return content;\n }\n\n // Render in portal using Teleport\n return <Teleport to={container}>{content}</Teleport>;\n };\n },\n {\n name: 'LumxPortal',\n props: {\n enabled: {\n type: Boolean,\n default: true,\n },\n },\n },\n);\n","/**\n * Shared types and logic for ClickAway detection.\n *\n * ClickAway detects clicks outside a set of elements and triggers a callback.\n * The core logic (event listening + target checking) is framework-agnostic.\n * Framework-specific wrappers (React hook, Vue composable) and context providers\n * (React context, Vue provide/inject) are implemented in each framework package.\n */\n\nimport type { Falsy } from '@lumx/core/js/types';\n\n/** Event types that trigger click away detection. */\nexport const CLICK_AWAY_EVENT_TYPES = ['mousedown', 'touchstart'] as const;\n\n/** Callback triggered when a click away is detected. */\nexport type ClickAwayCallback = EventListener | Falsy;\n\n/**\n * Check if the click event targets are outside all the given elements.\n *\n * @param targets - The event target elements (from `event.target` and `event.composedPath()`).\n * @param elements - The elements considered \"inside\" the click away context.\n * @returns `true` if the click is outside all elements (i.e. a click away).\n */\nexport function isClickAway(targets: HTMLElement[], elements: HTMLElement[]): boolean {\n return !elements.some((element) => element instanceof Node && targets.some((target) => element.contains(target)));\n}\n\n/**\n * Imperative setup for click away detection.\n * Adds mousedown/touchstart listeners on `document` and calls the callback when a click\n * occurs outside the elements returned by `getElements`.\n *\n * Note: when `getElements` returns an empty array, any click is considered a click away.\n * Callers should guard against calling `setupClickAway` when no refs are registered.\n *\n * @param getElements - Getter returning the current list of elements considered \"inside\".\n * @param callback - Callback to invoke on click away.\n * @returns A teardown function that removes the event listeners.\n */\nexport function setupClickAway(\n getElements: () => HTMLElement[],\n callback: ClickAwayCallback,\n): (() => void) | undefined {\n if (!callback) {\n return undefined;\n }\n\n const listener: EventListener = (evt) => {\n const targets = [evt.composedPath?.()[0], evt.target].filter((t): t is HTMLElement => t instanceof Node);\n const elements = getElements();\n if (isClickAway(targets, elements)) {\n callback(evt);\n }\n };\n\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.addEventListener(evtType, listener));\n return () => {\n CLICK_AWAY_EVENT_TYPES.forEach((evtType) => document.removeEventListener(evtType, listener));\n };\n}\n","import {\n defineComponent,\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n type InjectionKey,\n type PropType,\n type Ref,\n} from 'vue';\nimport { setupClickAway, type ClickAwayCallback } from '@lumx/core/js/utils/ClickAway';\n\ninterface ContextValue {\n childrenRefs: HTMLElement[];\n addRefs(...newChildrenRefs: Array<Ref<HTMLElement | undefined>>): void;\n}\n\nexport const CLICK_AWAY_KEY: InjectionKey<ContextValue> = Symbol('LumxClickAway');\n\n/**\n * Component combining click away detection with Vue's provide/inject to hook into the component tree\n * and take into account both the DOM tree and the component tree to detect click away.\n */\nexport const ClickAwayProvider = defineComponent(\n (\n props: {\n callback: ClickAwayCallback;\n childrenRefs: Ref<Array<Ref<HTMLElement | undefined>>>;\n parentRef?: Ref<HTMLElement | undefined>;\n },\n { slots },\n ) => {\n const parentContext = inject(CLICK_AWAY_KEY, null);\n\n const contextChildrenRefs: HTMLElement[] = [];\n\n const currentContext: ContextValue = {\n childrenRefs: contextChildrenRefs,\n addRefs(...newChildrenRefs) {\n for (const newRef of newChildrenRefs) {\n const el = newRef.value;\n if (el) {\n contextChildrenRefs.push(el);\n }\n }\n if (parentContext) {\n parentContext.addRefs(...newChildrenRefs);\n if (props.parentRef) {\n parentContext.addRefs(props.parentRef);\n }\n }\n },\n };\n\n provide(CLICK_AWAY_KEY, currentContext);\n\n let teardown: (() => void) | undefined;\n\n onMounted(() => {\n const refs = props.childrenRefs.value;\n if (refs) {\n currentContext.addRefs(...refs);\n }\n\n // Setup click away using a closure that always reads the latest callback prop.\n // This handles transitions like closeMode=\"hide\" where the callback changes\n // between open (handleClose) and closed (undefined) without re-creating the listener.\n teardown = setupClickAway(\n () => contextChildrenRefs,\n (event) => {\n const cb = props.callback;\n if (typeof cb === 'function') cb(event);\n },\n );\n });\n\n onBeforeUnmount(() => {\n teardown?.();\n });\n\n return () => slots.default?.();\n },\n {\n name: 'LumxClickAwayProvider',\n props: {\n callback: {\n type: [Function, Boolean, undefined] as PropType<ClickAwayCallback>,\n default: undefined,\n },\n childrenRefs: {\n type: Object as PropType<Ref<Array<Ref<HTMLElement | undefined>>>>,\n required: true,\n },\n parentRef: {\n type: Object as PropType<Ref<HTMLElement | undefined>>,\n default: undefined,\n },\n },\n },\n);\n","import { computed, defineComponent, provide, type PropType } from 'vue';\nimport type { Theme } from '@lumx/core/js/constants';\n\n/**\n * ThemeProvider for Vue: wraps children with `provide('theme', value)` for theme isolation.\n * Vue's `provide()` requires a component boundary, so this is a component.\n */\nexport const ThemeProvider = defineComponent(\n (props: { value: Theme | undefined }, { slots }) => {\n provide(\n 'theme',\n computed(() => props.value),\n );\n return () => slots.default?.();\n },\n {\n name: 'LumxThemeProvider',\n props: { value: { type: String as PropType<Theme | undefined>, default: undefined } },\n },\n);\n","import { type ComputedRef, type Ref, computed, inject, unref } from 'vue';\n\nimport { Theme } from '@lumx/core/js/constants';\n\nexport interface UseTheme {\n defaultTheme?: Theme;\n}\n/**\n * Retrieves the globally applied theme.\n * @returns computed theme value (auto-updates when the provided theme changes)\n */\nexport function useTheme(options: UseTheme = { defaultTheme: Theme.light }): ComputedRef<Theme | undefined> {\n const { defaultTheme } = options;\n const injected = inject<Theme | Ref<Theme | undefined> | undefined>('theme', undefined);\n return computed(() => unref(injected) || defaultTheme);\n}\n"],"names":["keysOf","keys","acc","key","PORTAL_KEY","Symbol","defaultPortalInit","container","PortalProvider","props","slots","provide","value","default","name","type","Function","required","_isSlot","s","Object","prototype","toString","call","_isVNode","Portal","portalInit","inject","context","ref","initializePortal","enabled","watch","onBeforeUnmount","teardown","content","_createVNode","Teleport","Boolean","CLICK_AWAY_EVENT_TYPES","isClickAway","targets","elements","element","target","setupClickAway","getElements","callback","listener","evt","t","evtType","CLICK_AWAY_KEY","ClickAwayProvider","parentContext","contextChildrenRefs","currentContext","childrenRefs","addRefs","newChildrenRefs","newRef","el","push","parentRef","onMounted","refs","event","cb","undefined","ThemeProvider","defineComponent","computed","useTheme","options","Theme","defaultTheme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AMD,CAAQ,KAAKD,CAAY;AACzD;"}
@@ -0,0 +1,44 @@
1
+ import { BaseAlertDialogProps } from '@lumx/core/js/components/AlertDialog';
2
+ import { DialogSizes } from '@lumx/core/js/components/Dialog';
3
+ import { GenericProps } from '@lumx/core/js/types';
4
+ type ButtonActionProps = {
5
+ label: string;
6
+ onClick?: () => void;
7
+ [key: string]: any;
8
+ };
9
+ export interface AlertDialogProps extends Pick<BaseAlertDialogProps, 'kind' | 'title'> {
10
+ /** Additional class name. */
11
+ class?: string;
12
+ /** Size variant. */
13
+ size?: DialogSizes;
14
+ /** Whether the dialog is open. */
15
+ isOpen?: boolean;
16
+ /** Reference to the parent element that triggered modal opening. */
17
+ parentElement?: HTMLElement;
18
+ /** Additional props for the dialog container element. */
19
+ dialogProps?: GenericProps;
20
+ /** Props forwarded to the confirm button. */
21
+ confirmProps: ButtonActionProps;
22
+ /** Props forwarded to the cancel button. Will not render a cancel button if undefined. */
23
+ cancelProps?: ButtonActionProps;
24
+ /** Unique identifier for the dialog. Generated automatically if not provided. */
25
+ id?: string;
26
+ }
27
+ export declare const emitSchema: {
28
+ close: () => boolean;
29
+ };
30
+ /**
31
+ * AlertDialog component.
32
+ *
33
+ * An alert dialog is a modal dialog that interrupts the user's workflow to
34
+ * communicate an important message and acquire a response.
35
+ *
36
+ * It should not have a complex content.
37
+ * Children of this component should only be strings, paragraphs or links.
38
+ */
39
+ declare const AlertDialog: import('vue').DefineSetupFnComponent<AlertDialogProps, {
40
+ close: () => boolean;
41
+ }, {}, AlertDialogProps & {
42
+ onClose?: (() => any) | undefined;
43
+ }, import('vue').PublicProps>;
44
+ export default AlertDialog;
@@ -0,0 +1,104 @@
1
+ declare const _default: {
2
+ component: any;
3
+ render: any;
4
+ args: {
5
+ 'confirmProps.label': string;
6
+ confirmProps?: any;
7
+ cancelProps?: any;
8
+ dialogProps?: any;
9
+ ref?: import('../..').CommonRef;
10
+ cancelButtonRef?: import('../..').CommonRef;
11
+ confirmationButtonRef?: import('../..').CommonRef;
12
+ DescriptionElement?: any;
13
+ Dialog?: any;
14
+ Toolbar?: any;
15
+ Button?: any;
16
+ Icon?: any;
17
+ id?: string | undefined;
18
+ focusElement?: any;
19
+ className?: string | undefined;
20
+ kind?: import('../..').Kind | undefined;
21
+ title?: string | undefined;
22
+ children?: import('react').ReactNode;
23
+ size?: import('../..').DialogSizes | undefined;
24
+ };
25
+ argTypes: {
26
+ size: {
27
+ control: {
28
+ type: "select" | "inline-radio";
29
+ };
30
+ options: ("big" | "tiny" | "regular" | "huge")[];
31
+ mapping: Record<string, "big" | "tiny" | "regular" | "huge"> | undefined;
32
+ };
33
+ kind: {
34
+ control: {
35
+ type: "select" | "inline-radio";
36
+ };
37
+ options: ("info" | "success" | "warning" | "error")[];
38
+ mapping: Record<string, "info" | "success" | "warning" | "error"> | undefined;
39
+ };
40
+ 'confirmProps.onClick': {
41
+ action: boolean;
42
+ };
43
+ };
44
+ parameters: {
45
+ chromatic: {
46
+ pauseAnimationAtEnd: boolean;
47
+ delay: number;
48
+ };
49
+ };
50
+ decorators: ((story: any, context: any) => any)[];
51
+ title: string;
52
+ };
53
+ export default _default;
54
+ export declare const DefaultKind: {
55
+ args: {
56
+ title: string;
57
+ children: string;
58
+ };
59
+ };
60
+ export declare const Warning: {
61
+ args: {
62
+ kind: "warning";
63
+ title: string;
64
+ children: string;
65
+ };
66
+ };
67
+ export declare const Success: {
68
+ args: {
69
+ kind: "success";
70
+ title: string;
71
+ children: string;
72
+ };
73
+ };
74
+ export declare const Error: {
75
+ args: {
76
+ kind: "error";
77
+ title: string;
78
+ children: string;
79
+ };
80
+ };
81
+ export declare const WithCancel: {
82
+ argTypes: {
83
+ 'cancelProps.onClick': {
84
+ action: boolean;
85
+ };
86
+ };
87
+ args: {
88
+ title: string;
89
+ 'cancelProps.label': string;
90
+ children: string;
91
+ };
92
+ };
93
+ export declare const RichDescription: {
94
+ argTypes: {
95
+ children: {
96
+ control: boolean;
97
+ };
98
+ };
99
+ args: {
100
+ title: string;
101
+ children: string;
102
+ };
103
+ render: ({ children, ...args }: any) => any;
104
+ };
@@ -0,0 +1 @@
1
+ export { default as AlertDialog, type AlertDialogProps } from './AlertDialog';
@@ -15,7 +15,7 @@ export type AvatarProps = VueToJSXProps<UIProps, 'image' | 'actions' | 'badge'>
15
15
  /** Props to pass to the thumbnail (minus those already set by the Avatar props). */
16
16
  thumbnailProps?: Omit<ThumbnailProps, 'image' | 'alt' | 'size' | 'theme' | 'aspectRatio'>;
17
17
  };
18
- declare const Avatar: import('vue').DefineSetupFnComponent<AvatarProps, {}, {}, Omit<UIProps, "className" | "image" | import('@lumx/core/js/types').PropsToOverride | "actions" | "badge" | "children"> & {
18
+ declare const Avatar: import('vue').DefineSetupFnComponent<AvatarProps, {}, {}, Omit<UIProps, "className" | "image" | import('@lumx/core/js/types').PropsToOverride | "children" | "actions" | "badge"> & {
19
19
  class?: string;
20
20
  } & {
21
21
  /** Image URL. */
@@ -8,7 +8,7 @@ export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy
8
8
  * @param props Component props.
9
9
  * @return Vue element.
10
10
  */
11
- declare const ComboboxList: import('vue').DefineSetupFnComponent<ComboboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
11
+ declare const ComboboxList: import('vue').DefineSetupFnComponent<ComboboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "children" | "aria-label" | "aria-busy"> & {
12
12
  class?: string;
13
13
  } & {}, import('vue').PublicProps>;
14
14
  export { COMPONENT_NAME, CLASSNAME };
@@ -15,7 +15,7 @@ export type ComboboxOptionProps = VueToJSXProps<UIProps, ComboboxOptionPropsToOv
15
15
  * @param props Component props.
16
16
  * @return Vue element.
17
17
  */
18
- declare const ComboboxOption: import('vue').DefineSetupFnComponent<ComboboxOptionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | "id" | "descriptionId" | "isGrid" | ComboboxOptionPropsToOverride> & {
18
+ declare const ComboboxOption: import('vue').DefineSetupFnComponent<ComboboxOptionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | ComboboxOptionPropsToOverride> & {
19
19
  class?: string;
20
20
  } & {
21
21
  /** Props forwarded to a Tooltip wrapping the option trigger element. */
@@ -12,7 +12,7 @@ export type ComboboxOptionActionProps = Pick<VueToJSXProps<UIProps>, 'isDisabled
12
12
  * @param props Component props.
13
13
  * @return Vue element.
14
14
  */
15
- declare const ComboboxOptionAction: import('vue').DefineSetupFnComponent<ComboboxOptionActionProps, {}, {}, Pick<VueToJSXProps<UIProps>, "isDisabled" | "class"> & {
15
+ declare const ComboboxOptionAction: import('vue').DefineSetupFnComponent<ComboboxOptionActionProps, {}, {}, Pick<VueToJSXProps<UIProps>, "class" | "isDisabled"> & {
16
16
  /** On click callback. */
17
17
  onClick?: (evt: MouseEvent) => void;
18
18
  } & {}, import('vue').PublicProps>;
@@ -13,8 +13,8 @@ export type ComboboxPopoverProps = VueToJSXProps<UIProps, 'isOpen' | 'anchorRef'
13
13
  * @param props Component props.
14
14
  * @return Vue element.
15
15
  */
16
- declare const ComboboxPopover: import('vue').DefineSetupFnComponent<ComboboxPopoverProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "isOpen" | "anchorRef"> & {
16
+ declare const ComboboxPopover: import('vue').DefineSetupFnComponent<ComboboxPopoverProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "children" | "anchorRef"> & {
17
17
  class?: string;
18
- } & Partial<Omit<PopoverProps, "class" | "isOpen" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
18
+ } & Partial<Omit<PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
19
19
  export { COMPONENT_NAME, CLASSNAME };
20
20
  export default ComboboxPopover;
@@ -7,7 +7,7 @@ export type ComboboxSectionProps = VueToJSXProps<UIProps, ComboboxSectionPropsTo
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const ComboboxSection: import('vue').DefineSetupFnComponent<ComboboxSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "hidden" | "aria-hidden"> & {
10
+ declare const ComboboxSection: import('vue').DefineSetupFnComponent<ComboboxSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export { COMPONENT_NAME, CLASSNAME };
@@ -65,11 +65,11 @@ export declare const Combobox: {
65
65
  onClear?: ((_event?: MouseEvent | undefined) => any) | undefined;
66
66
  }, import('vue').PublicProps>;
67
67
  /** Listbox container that registers with the combobox handle and tracks loading state. */
68
- List: import('vue').DefineSetupFnComponent<import('./ComboboxList').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxList').ComboboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy"> & {
68
+ List: import('vue').DefineSetupFnComponent<import('./ComboboxList').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxList').ComboboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "children" | "aria-label" | "aria-busy"> & {
69
69
  class?: string;
70
70
  } & {}, import('vue').PublicProps>;
71
71
  /** Selectable option item with filtering and keyboard navigation support. */
72
- Option: import('vue').DefineSetupFnComponent<import('./ComboboxOption').ComboboxOptionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | "id" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
72
+ Option: import('vue').DefineSetupFnComponent<import('./ComboboxOption').ComboboxOptionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Combobox/ComboboxOption').ComboboxOptionPropsToOverride> & {
73
73
  class?: string;
74
74
  } & {
75
75
  tooltipProps?: Partial<import('../tooltip').TooltipProps>;
@@ -77,7 +77,7 @@ export declare const Combobox: {
77
77
  actionProps?: Record<string, any>;
78
78
  } & {}, import('vue').PublicProps>;
79
79
  /** Secondary action button within a grid-mode option row, rendered as an independent gridcell. */
80
- OptionAction: import('vue').DefineSetupFnComponent<import('./ComboboxOptionAction').ComboboxOptionActionProps, {}, {}, Pick<import('../../utils/VueToJSX').VueToJSXProps<import('@lumx/core/js/components/Combobox/ComboboxOptionAction').ComboboxOptionActionProps>, "isDisabled" | "class"> & {
80
+ OptionAction: import('vue').DefineSetupFnComponent<import('./ComboboxOptionAction').ComboboxOptionActionProps, {}, {}, Pick<import('../../utils/VueToJSX').VueToJSXProps<import('@lumx/core/js/components/Combobox/ComboboxOptionAction').ComboboxOptionActionProps>, "class" | "isDisabled"> & {
81
81
  onClick?: (evt: MouseEvent) => void;
82
82
  } & {}, import('vue').PublicProps>;
83
83
  /** Info button on an option that shows a popover on hover or keyboard highlight. */
@@ -95,11 +95,11 @@ export declare const Combobox: {
95
95
  class?: string;
96
96
  } & {}, import('vue').PublicProps>;
97
97
  /** Floating popover container that auto-binds to the combobox anchor and open/close state. */
98
- Popover: import('vue').DefineSetupFnComponent<import('./ComboboxPopover').ComboboxPopoverProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxPopover').ComboboxPopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "isOpen" | "anchorRef"> & {
98
+ Popover: import('vue').DefineSetupFnComponent<import('./ComboboxPopover').ComboboxPopoverProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxPopover').ComboboxPopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "children" | "anchorRef"> & {
99
99
  class?: string;
100
- } & Partial<Omit<import('../popover').PopoverProps, "class" | "isOpen" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
100
+ } & Partial<Omit<import('../popover').PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
101
101
  /** Labelled group of options that auto-hides when all its child options are filtered out. */
102
- Section: import('vue').DefineSetupFnComponent<import('./ComboboxSection').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxSection').ComboboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "hidden" | "aria-hidden"> & {
102
+ Section: import('vue').DefineSetupFnComponent<import('./ComboboxSection').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxSection').ComboboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
103
103
  class?: string;
104
104
  } & {}, import('vue').PublicProps>;
105
105
  /** Displays empty, error, and loading state messages for the combobox list. */
@@ -34,7 +34,7 @@ export declare const emitSchema: {
34
34
  declare const Dialog: import('vue').DefineSetupFnComponent<DialogProps, {
35
35
  close: () => boolean;
36
36
  visibilityChange: (isVisible: boolean) => boolean;
37
- }, {}, Pick<BaseDialogProps, "isLoading" | "forceFooterDivider" | "forceHeaderDivider"> & HasCloseMode & {
37
+ }, {}, Pick<BaseDialogProps, "forceFooterDivider" | "forceHeaderDivider" | "isLoading"> & HasCloseMode & {
38
38
  /** Additional class name. */
39
39
  class?: string;
40
40
  /** Whether the dialog is open. */
@@ -23,7 +23,7 @@ declare const ExpansionPanel: import('vue').DefineSetupFnComponent<ExpansionPane
23
23
  open: (event: MouseEvent) => boolean;
24
24
  close: (event: MouseEvent) => boolean;
25
25
  toggleOpen: (shouldOpen: boolean, event: MouseEvent) => boolean;
26
- }, {}, Omit<UIProps, "className" | "footer" | "ref" | "handleClick" | "handleChange" | "handleInput" | "handleKeyPress" | "handleClose" | "handleFocus" | "handleBeforeClick" | "handleAfterClick" | "handleMouseEnter" | "handleMouseLeave" | "handleKeyDown" | "children" | "content" | "IconButton" | "toggleButtonProps" | "wrapperRef" | "handleOpen" | "handleToggleOpen" | "headerProps" | "headerContent" | "dragHandle" | "isChildrenVisible"> & {
26
+ }, {}, Omit<UIProps, "className" | "footer" | "ref" | "handleClick" | "handleChange" | "handleInput" | "handleKeyPress" | "handleClose" | "handleFocus" | "handleBeforeClick" | "handleAfterClick" | "handleMouseEnter" | "handleMouseLeave" | "handleKeyDown" | "wrapperRef" | "content" | "children" | "IconButton" | "toggleButtonProps" | "handleOpen" | "handleToggleOpen" | "headerProps" | "headerContent" | "dragHandle" | "isChildrenVisible"> & {
27
27
  class?: string;
28
28
  } & {
29
29
  /** Props to pass to the toggle button (minus those already set by the ExpansionPanel). */
@@ -36,7 +36,7 @@ export type GenericBlockProps = VueToJSXProps<UIProps, GenericBlockPropsToOverri
36
36
  * - default slot => The main content displayed.
37
37
  * - `actions` slot => One or more actions to set after the element.
38
38
  */
39
- 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"> & {
39
+ declare const GenericBlock: import('vue').DefineSetupFnComponent<GenericBlockProps, {}, {}, Omit<UIProps, "className" | "figure" | import('@lumx/core/js/types').PropsToOverride | "children" | "actions" | "hAlign" | "vAlign" | GenericBlockPropsToOverride | "contentProps" | "actionsProps" | "figureProps"> & {
40
40
  class?: string;
41
41
  } & {
42
42
  /** Customize the root element tag. */
@@ -7,7 +7,7 @@ export declare const emitSchema: {
7
7
  };
8
8
  declare const _default: import('vue').DefineSetupFnComponent<ListItemProps, {
9
9
  click: (event: MouseEvent) => boolean;
10
- }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "before" | "linkRef"> & {
10
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "before" | "after" | "linkRef"> & {
11
11
  class?: string;
12
12
  } & {
13
13
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -7,7 +7,7 @@ export type ListSectionProps = VueToJSXProps<UIProps, 'id' | 'Text'>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const ListSection: import('vue').DefineSetupFnComponent<ListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Text" | "id"> & {
10
+ declare const ListSection: import('vue').DefineSetupFnComponent<ListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "children" | "Text"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default ListSection;
@@ -25,7 +25,7 @@ export declare const emitSchema: {
25
25
  };
26
26
  declare const Popover: import('vue').DefineSetupFnComponent<PopoverProps, {
27
27
  close: () => boolean;
28
- }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "isOpen" | "anchorRef" | "boundaryRef" | "focusElement" | "parentElement" | "focusTrapZoneElement"> & {
28
+ }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
29
29
  class?: string;
30
30
  } & {
31
31
  /** Reference to the DOM element used to set the position of the popover. Accepts a Vue Ref for reactive positioning. */
@@ -11,7 +11,7 @@ export declare const emitSchema: {
11
11
  };
12
12
  declare const PopoverDialog: import('vue').DefineSetupFnComponent<PopoverDialogProps, {
13
13
  close: () => boolean;
14
- }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "isOpen" | "anchorRef" | "boundaryRef" | "focusElement" | "parentElement" | "focusTrapZoneElement"> & {
14
+ }, {}, Omit<CorePopoverProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
15
15
  class?: string;
16
16
  } & {
17
17
  anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  title: string;
3
3
  component: import('vue').DefineSetupFnComponent<import('../..').PopoverDialogProps, {
4
4
  close: () => boolean;
5
- }, {}, Omit<import('@lumx/core/js/components/Popover').PopoverProps, "className" | import('../..').PropsToOverride | "children" | "isOpen" | "anchorRef" | "boundaryRef" | "focusElement" | "parentElement" | "focusTrapZoneElement"> & {
5
+ }, {}, Omit<import('@lumx/core/js/components/Popover').PopoverProps, "className" | import('../..').PropsToOverride | "isOpen" | "focusElement" | "children" | "parentElement" | "anchorRef" | "boundaryRef" | "focusTrapZoneElement"> & {
6
6
  class?: string;
7
7
  } & {
8
8
  anchorRef?: import('vue').Ref<HTMLElement | undefined> | HTMLElement;
@@ -21,7 +21,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
21
21
  declare const Thumbnail: import('vue').DefineSetupFnComponent<ThumbnailProps, {
22
22
  click: (event: Event) => boolean;
23
23
  keyPress: (event: Event) => boolean;
24
- }, {}, Omit<Omit<UIProps, "badge" | "fallback" | "loadingState" | "imgRef" | "focusPointStyle" | "disabledStateProps" | "isAnyDisabled">, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
24
+ }, {}, Omit<Omit<UIProps, "isAnyDisabled" | "disabledStateProps" | "badge" | "fallback" | "loadingState" | "imgRef" | "focusPointStyle">, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
25
25
  class?: string;
26
26
  } & {
27
27
  /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
@@ -2,7 +2,7 @@ import { ToolbarProps as UIProps, CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS } from
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
3
  export type ToolbarProps = VueToJSXProps<UIProps, 'label' | 'after' | 'before'>;
4
4
  export { CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS };
5
- declare const Toolbar: import('vue').DefineSetupFnComponent<ToolbarProps, {}, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "after" | "before"> & {
5
+ declare const Toolbar: import('vue').DefineSetupFnComponent<ToolbarProps, {}, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "before" | "after"> & {
6
6
  class?: string;
7
7
  } & {}, import('vue').PublicProps>;
8
8
  export default Toolbar;
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from '@lumx/core/js/constants';
2
2
  export * from '@lumx/core/js/types';
3
+ export * from './components/alert-dialog';
3
4
  export * from './components/avatar';
4
5
  export * from './components/combobox';
5
6
  export * from './components/badge';