@lumx/vue 4.30.0-next.1 → 4.30.0-next.2

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.
Files changed (95) hide show
  1. package/_internal/CyyFz9NC.js +166 -0
  2. package/_internal/CyyFz9NC.js.map +1 -0
  3. package/components/avatar/Avatar.d.ts +4 -1
  4. package/components/badge/Badge.d.ts +3 -1
  5. package/components/badge/BadgeWrapper.d.ts +3 -1
  6. package/components/button/ButtonGroup.d.ts +1 -1
  7. package/components/card/Card.d.ts +3 -1
  8. package/components/checkbox/Checkbox.d.ts +14 -1
  9. package/components/chip/Chip.d.ts +12 -1
  10. package/components/chip/ChipGroup.d.ts +3 -1
  11. package/components/chip/SelectionChipGroup.d.ts +10 -1
  12. package/components/combobox/ComboboxButton.d.ts +9 -1
  13. package/components/combobox/ComboboxPopover.d.ts +12 -1
  14. package/components/combobox/index.d.ts +47 -9
  15. package/components/composite/CompositeStatus.d.ts +7 -1
  16. package/components/dialog/DialogHeading.d.ts +14 -1
  17. package/components/divider/Divider.d.ts +3 -1
  18. package/components/drag-handle/DragHandle.d.ts +3 -1
  19. package/components/expansion-panel/ExpansionPanel.d.ts +8 -1
  20. package/components/flag/Flag.d.ts +6 -1
  21. package/components/flex-box/FlexBox.d.ts +8 -1
  22. package/components/generic-block/GenericBlock.d.ts +10 -1
  23. package/components/grid-column/GridColumn.d.ts +7 -1
  24. package/components/heading/Heading.d.ts +13 -1
  25. package/components/icon/Icon.d.ts +10 -1
  26. package/components/inline-list/InlineList.d.ts +6 -1
  27. package/components/input-helper/InputHelper.d.ts +5 -1
  28. package/components/input-label/InputLabel.d.ts +8 -1
  29. package/components/input-required-legend/InputRequiredLegend.d.ts +5 -1
  30. package/components/lightbox/Lightbox.d.ts +6 -1
  31. package/components/lightbox/LightboxContent.d.ts +6 -1
  32. package/components/lightbox/constants.d.ts +29 -3
  33. package/components/link/Link.d.ts +11 -1
  34. package/components/link-preview/LinkPreview.d.ts +10 -1
  35. package/components/list/List.d.ts +3 -1
  36. package/components/list/ListDivider.d.ts +1 -1
  37. package/components/list/ListItem.d.ts +14 -2
  38. package/components/list/ListItemAction.d.ts +5 -1
  39. package/components/list/ListSection.d.ts +5 -1
  40. package/components/listbox/ListboxList.d.ts +3 -1
  41. package/components/listbox/ListboxOption.d.ts +6 -1
  42. package/components/listbox/ListboxOptionAction.d.ts +1 -1
  43. package/components/listbox/ListboxOptionMoreInfo.d.ts +1 -1
  44. package/components/listbox/ListboxOptionSkeleton.d.ts +4 -1
  45. package/components/listbox/ListboxSection.d.ts +4 -1
  46. package/components/listbox/index.d.ts +25 -6
  47. package/components/menu-button/MenuButton.d.ts +5 -1
  48. package/components/menu-button/MenuItem.d.ts +3 -1
  49. package/components/menu-button/MenuList.d.ts +1 -1
  50. package/components/menu-button/MenuPopover.d.ts +4 -1
  51. package/components/menu-button/MenuTrigger.d.ts +3 -1
  52. package/components/message/Message.d.ts +5 -1
  53. package/components/mosaic/Mosaic.d.ts +3 -1
  54. package/components/popover/Popover.d.ts +18 -1
  55. package/components/popover-dialog/PopoverDialog.d.ts +17 -1
  56. package/components/popover-dialog/PopoverDialog.test.stories.d.ts +17 -1
  57. package/components/popover-dialog/PopoverDialogContent.d.ts +17 -1
  58. package/components/popover-dialog/constants.d.ts +104 -3
  59. package/components/progress/ProgressCircular.d.ts +5 -1
  60. package/components/progress/ProgressLinear.d.ts +3 -1
  61. package/components/radio-button/RadioButton.d.ts +14 -1
  62. package/components/scroll-box/ScrollBox.d.ts +4 -1
  63. package/components/select-button/index.d.ts +6 -1
  64. package/components/select-text-field/SelectTextField.test.stories.d.ts +16 -2
  65. package/components/select-text-field/Stories/InlineInPopoverDialog.vue.d.ts +16 -2
  66. package/components/select-text-field/index.d.ts +16 -5
  67. package/components/skeleton/SkeletonCircle.d.ts +5 -1
  68. package/components/skeleton/SkeletonRectangle.d.ts +8 -1
  69. package/components/skeleton/SkeletonTypography.d.ts +7 -1
  70. package/components/switch/Switch.d.ts +15 -1
  71. package/components/table/Table.d.ts +5 -1
  72. package/components/table/TableBody.d.ts +1 -1
  73. package/components/table/TableCell.d.ts +6 -1
  74. package/components/table/TableHeader.d.ts +1 -1
  75. package/components/table/TableRow.d.ts +4 -1
  76. package/components/tabs/TabList.d.ts +5 -1
  77. package/components/tabs/TabPanel.d.ts +4 -1
  78. package/components/text/Text.d.ts +13 -1
  79. package/components/text-field/RawInputText.d.ts +6 -1
  80. package/components/text-field/RawInputTextarea.d.ts +6 -1
  81. package/components/text-field/TextField.d.ts +21 -1
  82. package/components/thumbnail/Thumbnail.d.ts +19 -1
  83. package/components/toolbar/Toolbar.d.ts +1 -1
  84. package/components/tree-list/TreeListItem.d.ts +4 -1
  85. package/components/tree-list/TreeListSection.d.ts +3 -1
  86. package/components/tree-list/index.d.ts +7 -2
  87. package/components/uploader/Uploader.d.ts +11 -1
  88. package/components/user-block/UserBlock.d.ts +9 -1
  89. package/index.js +2218 -2216
  90. package/index.js.map +1 -1
  91. package/package.json +3 -3
  92. package/utils/VueToJSX.d.ts +44 -4
  93. package/utils/index.js +2 -2
  94. package/_internal/GIQod6ql.js +0 -160
  95. package/_internal/GIQod6ql.js.map +0 -1
@@ -0,0 +1,166 @@
1
+ import { defineComponent as i, provide as l, inject as u, ref as p, watch as L, onBeforeUnmount as v, createVNode as h, Teleport as P, isVNode as A, onMounted as I, computed as y, unref as x, watchEffect as C } from "vue";
2
+ import { Theme as E } from "@lumx/core/js/constants";
3
+ const Y = (e) => `Lumx${e}`, R = (e) => Array.isArray(e), S = () => (...e) => {
4
+ const n = {};
5
+ for (const o of e)
6
+ if (R(o)) {
7
+ const [t, ...r] = o;
8
+ n[t] = { type: r.length > 1 ? r : Boolean, default: void 0 };
9
+ } else
10
+ n[o] = { required: !1 };
11
+ return n;
12
+ }, b = /* @__PURE__ */ Symbol("LumxPortal"), T = () => ({
13
+ container: "body"
14
+ }), K = /* @__PURE__ */ i((e, {
15
+ slots: n
16
+ }) => (l(b, e.value), () => n.default?.()), {
17
+ name: "LumxPortalProvider",
18
+ props: {
19
+ value: {
20
+ type: Function,
21
+ required: !0
22
+ }
23
+ }
24
+ });
25
+ function w(e) {
26
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !A(e);
27
+ }
28
+ const q = /* @__PURE__ */ i((e, {
29
+ slots: n
30
+ }) => {
31
+ const o = u(b, T), t = p(null), r = () => {
32
+ e.enabled ? t.value = o() : t.value = null;
33
+ };
34
+ return r(), L(() => e.enabled, r), v(() => {
35
+ t.value?.teardown?.();
36
+ }), () => {
37
+ const c = n.default?.(), a = t.value?.container;
38
+ return !e.enabled || !a ? c : h(P, {
39
+ to: a
40
+ }, w(c) ? c : {
41
+ default: () => [c]
42
+ });
43
+ };
44
+ }, {
45
+ name: "LumxPortal",
46
+ props: {
47
+ enabled: {
48
+ type: Boolean,
49
+ default: !0
50
+ }
51
+ }
52
+ }), d = ["mousedown", "touchstart"];
53
+ function k(e, n) {
54
+ return !n.some((o) => o instanceof Node && e.some((t) => o.contains(t)));
55
+ }
56
+ function g(e, n) {
57
+ if (!n)
58
+ return;
59
+ const o = (t) => {
60
+ const r = [t.composedPath?.()[0], t.target].filter((a) => a instanceof Node), c = e();
61
+ k(r, c) && n(t);
62
+ };
63
+ return d.forEach((t) => document.addEventListener(t, o)), () => {
64
+ d.forEach((t) => document.removeEventListener(t, o));
65
+ };
66
+ }
67
+ const m = /* @__PURE__ */ Symbol("LumxClickAway"), F = /* @__PURE__ */ i((e, {
68
+ slots: n
69
+ }) => {
70
+ const o = u(m, null), t = /* @__PURE__ */ new Set(), r = {
71
+ childrenRefs: t,
72
+ addRefs(...a) {
73
+ for (const s of a)
74
+ t.has(s) || t.add(s);
75
+ o && (o.addRefs(...a), e.parentRef && o.addRefs(e.parentRef));
76
+ }
77
+ };
78
+ l(m, r);
79
+ let c;
80
+ return I(() => {
81
+ const a = e.childrenRefs.value;
82
+ a && r.addRefs(...a), c = g(() => Array.from(t).map((s) => s.value).filter((s) => s instanceof HTMLElement), (s) => {
83
+ const f = e.callback;
84
+ typeof f == "function" && f(s);
85
+ });
86
+ }), v(() => {
87
+ c?.();
88
+ }), () => n.default?.();
89
+ }, {
90
+ name: "LumxClickAwayProvider",
91
+ props: {
92
+ callback: {
93
+ type: [Function, Boolean, void 0],
94
+ default: void 0
95
+ },
96
+ childrenRefs: {
97
+ type: Object,
98
+ required: !0
99
+ },
100
+ parentRef: {
101
+ type: Object,
102
+ default: void 0
103
+ }
104
+ }
105
+ }), M = i(
106
+ (e, { slots: n }) => (l(
107
+ "theme",
108
+ y(() => e.value)
109
+ ), () => n.default?.()),
110
+ {
111
+ name: "LumxThemeProvider",
112
+ props: { value: { type: String, default: void 0 } }
113
+ }
114
+ );
115
+ function V(e = { defaultTheme: E.light }) {
116
+ const { defaultTheme: n } = e, o = u("theme", void 0);
117
+ return y(() => x(o) || n);
118
+ }
119
+ function N(e, n, o) {
120
+ const t = new IntersectionObserver((r = []) => {
121
+ r.some((a) => a.isIntersecting) && n();
122
+ }, o);
123
+ return t.observe(e), () => {
124
+ t.unobserve(e);
125
+ };
126
+ }
127
+ const O = "lumx-infinite-scroll-anchor", _ = ({
128
+ ref: e
129
+ }) => (
130
+ // In order to avoid issues when a zoom is added to the browser, we add a small height to the div so that
131
+ // the intersection has a higher chance of working correctly.
132
+ h("div", {
133
+ ref: e,
134
+ "aria-hidden": "true",
135
+ className: O,
136
+ style: {
137
+ height: "4px"
138
+ }
139
+ }, null)
140
+ ), W = /* @__PURE__ */ i((e) => {
141
+ const n = p(null);
142
+ return C((o) => {
143
+ const t = n.value;
144
+ if (!t || !e.callback) return;
145
+ const r = N(t, e.callback, e.options);
146
+ o(r);
147
+ }), () => _({
148
+ ref: n
149
+ });
150
+ }, {
151
+ name: "LumxInfiniteScroll",
152
+ inheritAttrs: !1,
153
+ props: S()("callback", "options")
154
+ });
155
+ export {
156
+ F as C,
157
+ W as I,
158
+ q as P,
159
+ M as T,
160
+ K as a,
161
+ Y as g,
162
+ S as k,
163
+ g as s,
164
+ V as u
165
+ };
166
+ //# sourceMappingURL=CyyFz9NC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyyFz9NC.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","../../../lumx-core/src/js/utils/InfiniteScroll/setupInfiniteScrollObserver.ts","../../../lumx-core/src/js/utils/InfiniteScroll/index.tsx","../../src/utils/InfiniteScroll/InfiniteScroll.tsx"],"sourcesContent":["import type { PropType } from 'vue';\n\nimport { PropsToOverride } from '@lumx/core/js/types';\n\n/**\n * Mirrors the value types accepted by Vue's class binding (and `normalizeClass`):\n * a string, an object mapping class names to booleans, an array of any of the above, or falsy.\n */\nexport type ClassValue = string | number | boolean | null | undefined | ClassValue[] | Record<string, unknown>;\n\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 */\n// A key-remapped mapped type in place of `Omit`: `Omit` drops the known keys of a type with an index signature.\nexport type VueToJSXProps<Props, OmitProps extends keyof Props = never> = {\n [K in keyof Props as K extends PropsToOverride | 'children' | 'className' | OmitProps ? never : K]: Props[K];\n} & {\n /** Class name forwarded to the root element of the component. */\n class?: ClassValue;\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 =\n | 'aria-current'\n | 'aria-expanded'\n | 'aria-haspopup'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-pressed';\n\n/**\n * Build a Vue component `name` from its component name, prefixed with `Lumx`.\n *\n * The prefix avoids collisions with native HTML/SVG tags (e.g. `button`, `dialog`, `link`, `table`,\n * `text`) and namespaces LumX components in Vue devtools / `<KeepAlive>`.\n */\nexport const getName = (componentName: string) => `Lumx${componentName}` as const;\n\n/**\n * Keys of `T` whose value accepts a boolean.\n * The `[unknown] extends [T[K]]` guard excludes props typed `any` or `unknown`.\n * The `number extends NonNullable<T[K]>` guard excludes content unions (`JSXElement`, i.e.\n * `React.ReactNode`) and `ClassValue`: both admit a bare `number` and happen to list `boolean`\n * as one of their members too, but neither is a boolean prop. No boolean prop in this codebase\n * also accepts a bare `number`, so this guard never excludes a real one.\n */\ntype BooleanKey<T> = {\n [K in keyof T]-?: [unknown] extends [T[K]]\n ? never\n : number extends NonNullable<T[K]>\n ? never\n : boolean extends NonNullable<T[K]>\n ? K\n : never;\n}[keyof T];\n\n/** Vue constructors usable in a prop `type` list. */\ntype PropConstructor =\n | BooleanConstructor\n | StringConstructor\n | NumberConstructor\n | ObjectConstructor\n | ArrayConstructor\n | FunctionConstructor;\n\n/** `[name, Boolean, ...constructors]` entry of a `keysOf` list, for a boolean prop. */\ntype BooleanEntry<T> = readonly [BooleanKey<T>, BooleanConstructor, ...PropConstructor[]];\n\n/** One entry of a `keysOf` list: a prop name, or a `BooleanEntry`. */\ntype KeyEntry<T> = keyof T | BooleanEntry<T>;\n\n/** First member of a tuple entry, or the entry itself when it is a plain name. */\ntype NameOf<E> = E extends readonly [infer N, ...unknown[]] ? N : E;\n\n/** Boolean keys given as a plain name in place of a `BooleanEntry`. */\ntype PlainBooleanKey<T, E> = Extract<Exclude<E, readonly unknown[]>, BooleanKey<T>>;\n\ntype KeysOfResult<T, E> = {\n [N in NameOf<E> & keyof T]: N extends NameOf<Extract<E, readonly unknown[]>>\n ? { type: PropType<T[N]>; default: undefined }\n : { required: false };\n};\n\nconst isBooleanEntry = <T>(entry: KeyEntry<T>): entry is BooleanEntry<T> => Array.isArray(entry);\n\n/**\n * Build the Vue `props` object of a component. The type refuses a list that misses a key of `T`.\n *\n * A boolean prop must be a `[name, Boolean]` entry, so that a bare template attribute\n * (`<Button full-width />`) casts to `true` instead of the empty string. Add the other accepted\n * constructors after `Boolean` (`['isChecked', Boolean, String]`): `Boolean` must come first for the cast.\n * `default: undefined` keeps the core `DEFAULT_PROPS` in charge of the value when the prop is\n * absent (Vue otherwise casts a missing boolean prop to `false`).\n */\nexport const keysOf = <T>() => {\n return <K extends readonly KeyEntry<T>[]>(\n ...keys: [keyof T] extends [NameOf<K[number]>]\n ? [PlainBooleanKey<T, K[number]>] extends [never]\n ? K\n : [Error: '❌ Declare boolean keys as [key, Boolean]:', PlainBooleanKey<T, K[number]>]\n : [Error: '❌ Missing keys in your list:', Exclude<keyof T, NameOf<K[number]>>]\n ) => {\n const props: Record<PropertyKey, object> = {};\n for (const entry of keys as readonly KeyEntry<T>[]) {\n if (isBooleanEntry(entry)) {\n const [name, ...constructors] = entry;\n props[name] = { type: constructors.length > 1 ? constructors : Boolean, default: undefined };\n } else {\n // Mark the prop optional so that Vue's type system infers it as optional.\n props[entry] = { required: false };\n }\n }\n return props as KeysOfResult<T, K[number]>;\n };\n};\n\n/**\n * Derive the typed Vue emits map from a runtime `emitSchema` object.\n *\n * @example\n * export const emitSchema = {\n * change: (_newValue?: unknown) => true,\n * search: (_text: string) => true,\n * };\n * export type MyEmits<O> = EmitsOf<typeof emitSchema>\n */\nexport type EmitsOf<S> = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [K in keyof S]: S[K] extends (...args: infer A) => any ? (...args: A) => void : never;\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: Set<Ref<HTMLElement | undefined>>;\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 // Store raw refs so they are resolved lazily at click time (not at mount time).\n // This avoids missing elements that are not yet mounted when addRefs is first called.\n const contextChildrenRefs = new Set<Ref<HTMLElement | undefined>>();\n\n const currentContext: ContextValue = {\n childrenRefs: contextChildrenRefs,\n addRefs(...newChildrenRefs) {\n for (const newRef of newChildrenRefs) {\n if (!contextChildrenRefs.has(newRef)) {\n contextChildrenRefs.add(newRef);\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 // Refs are resolved lazily at click time so late-mounted anchors are included.\n teardown = setupClickAway(\n () =>\n Array.from(contextChildrenRefs)\n .map((r) => r.value)\n .filter((el): el is HTMLElement => el instanceof HTMLElement),\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","type EventCallback = (evt?: Event) => void;\n\n/**\n * Sets up an IntersectionObserver on the given element.\n * Calls `callback` when at least one observed entry is intersecting.\n * Returns a cleanup function that unobserves the element.\n */\nexport function setupInfiniteScrollObserver(\n element: Element,\n callback: EventCallback,\n options?: IntersectionObserverInit,\n): () => void {\n const observer = new IntersectionObserver((entries = []) => {\n const hasIntersection = entries.some((entry) => entry.isIntersecting);\n\n if (!hasIntersection) {\n return;\n }\n\n callback();\n }, options);\n\n observer.observe(element);\n\n return () => {\n observer.unobserve(element);\n };\n}\n","import type { CommonRef } from '../../types';\n\nexport { setupInfiniteScrollObserver } from './setupInfiniteScrollObserver';\n\nexport const INFINITE_SCROLL_CLASSNAME = 'lumx-infinite-scroll-anchor';\n\nexport interface InfiniteScrollProps {\n /**\n * Callback when infinite scroll component is in view.\n * Omit (e.g. while loading) to temporarily disable without changing the callback's\n * identity when re-enabled — keeps the underlying observer stable.\n */\n // eslint-disable-next-line react/no-unused-prop-types\n callback?(evt?: Event): void;\n /** Customize intersection observer option */\n // eslint-disable-next-line react/no-unused-prop-types\n options?: IntersectionObserverInit;\n}\n\n/**\n * Framework-agnostic InfiniteScroll sentinel component.\n *\n * Renders a tiny invisible div that triggers a callback when it enters the viewport\n * (or intersects its root element) via IntersectionObserver.\n *\n * The div has a small height (4px) to avoid issues when a browser zoom is applied,\n * where a zero-height element might not trigger IntersectionObserver reliably.\n */\nexport const InfiniteScroll = ({ ref }: { ref?: CommonRef }) => (\n // In order to avoid issues when a zoom is added to the browser, we add a small height to the div so that\n // the intersection has a higher chance of working correctly.\n <div ref={ref} aria-hidden=\"true\" className={INFINITE_SCROLL_CLASSNAME} style={{ height: '4px' }} />\n);\n","import { defineComponent, ref, watchEffect } from 'vue';\nimport {\n InfiniteScroll as UI,\n type InfiniteScrollProps,\n setupInfiniteScrollObserver,\n} from '@lumx/core/js/utils/InfiniteScroll';\nimport { keysOf } from '../VueToJSX';\n\nexport type { InfiniteScrollProps };\n\n/**\n * Handles basic callback pattern by using intersection observers.\n */\nexport const InfiniteScroll = defineComponent(\n (props: InfiniteScrollProps) => {\n const elementRef = ref<HTMLDivElement | null>(null);\n\n watchEffect((onCleanup) => {\n const element = elementRef.value;\n if (!element || !props.callback) return;\n\n const cleanup = setupInfiniteScrollObserver(element, props.callback, props.options);\n onCleanup(cleanup);\n });\n\n return () => UI({ ref: elementRef });\n },\n {\n name: 'LumxInfiniteScroll',\n inheritAttrs: false,\n props: keysOf<InfiniteScrollProps>()('callback', 'options'),\n },\n);\n\nexport default InfiniteScroll;\n"],"names":["getName","componentName","isBooleanEntry","entry","keysOf","keys","props","name","constructors","PORTAL_KEY","Symbol","defaultPortalInit","container","PortalProvider","slots","provide","value","default","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","Set","currentContext","childrenRefs","addRefs","newChildrenRefs","newRef","has","add","parentRef","onMounted","refs","Array","from","map","r","filter","el","HTMLElement","event","cb","undefined","ThemeProvider","defineComponent","computed","useTheme","options","Theme","defaultTheme","injected","unref","setupInfiniteScrollObserver","observer","entries","INFINITE_SCROLL_CLASSNAME","InfiniteScroll","height","elementRef","watchEffect","onCleanup","cleanup","UI","inheritAttrs"],"mappings":";;AA6CO,MAAMA,IAAU,CAACC,MAA0B,OAAOA,CAAa,IA+ChEC,IAAiB,CAAIC,MAAiD,MAAM,QAAQA,CAAK,GAWlFC,IAAS,MACX,IACAC,MAKF;AACD,QAAMC,IAAqC,CAAA;AAC3C,aAAWH,KAASE;AAChB,QAAIH,EAAeC,CAAK,GAAG;AACvB,YAAM,CAACI,GAAM,GAAGC,CAAY,IAAIL;AAChC,MAAAG,EAAMC,CAAI,IAAI,EAAE,MAAMC,EAAa,SAAS,IAAIA,IAAe,SAAS,SAAS,OAAA;AAAA,IACrF;AAEI,MAAAF,EAAMH,CAAK,IAAI,EAAE,UAAU,GAAA;AAGnC,SAAOG;AACX,GCrHSG,IAAuCC,uBAAO,YAAY,GAE1DC,IAAgCA,OAAO;AAAA,EAAEC,WAAW;AAAO,IAK3DC,sBACT,CAACP,GAA4B;AAAA,EAAEQ,OAAAA;AAAM,OACjCC,EAAQN,GAAYH,EAAMU,KAAK,GACxB,MAAMF,EAAMG,UAAO,IAE9B;AAAA,EACIV,MAAM;AAAA,EACND,OAAO;AAAA,IACHU,OAAO;AAAA,MACHE,MAAMC;AAAAA,MACNC,UAAU;AAAA,IACd;AAAA,EACJ;AACJ,CACJ;ACzBiE,SAAAC,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAA,qBAAA,CAAAK,EAAAL,CAAA;AAAA;MASpDM,sBACT,CAACtB,GAAoB;AA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AAA,IAAA;AAAA,GClBvFD,IAAiBZ,gBAAAA,EACzB3E,CAAAA,MAA+B;AAC5B,QAAMyF,IAAa/D,EAA2B,IAAI;AAElDgE,SAAAA,EAAaC,CAAAA,MAAc;AACvB,UAAMnD,IAAUiD,EAAW/E;AAC3B,QAAI,CAAC8B,KAAW,CAACxC,EAAM4C,SAAU;AAEjC,UAAMgD,IAAUT,EAA4B3C,GAASxC,EAAM4C,UAAU5C,EAAM8E,OAAO;AAClFa,IAAAA,EAAUC,CAAO;AAAA,EACrB,CAAC,GAEM,MAAMC,EAAG;AAAA,IAAEnE,KAAK+D;AAAAA,EAAW,CAAC;AACvC,GACA;AAAA,EACIxF,MAAM;AAAA,EACN6F,cAAc;AAAA,EACd9F,OAAOF,IAA8B,YAAY,SAAS;AAC9D,CACJ;"}
@@ -22,7 +22,10 @@ export declare const emitSchema: {
22
22
  declare const Avatar: import('vue').DefineSetupFnComponent<AvatarProps, {
23
23
  click: (_event?: MouseEvent) => boolean;
24
24
  keypress: (_event?: KeyboardEvent) => boolean;
25
- }, {}, Omit<UIProps, "className" | "image" | import('@lumx/core/js/types').PropsToOverride | "children" | "actions" | "badge"> & {
25
+ }, {}, {
26
+ size?: AvatarSize | undefined;
27
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
28
+ } & {
26
29
  class?: import('../../utils/VueToJSX').ClassValue;
27
30
  } & {
28
31
  /** Image URL. */
@@ -7,7 +7,9 @@ export type BadgeProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const Badge: import('vue').DefineSetupFnComponent<BadgeProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
10
+ declare const Badge: import('vue').DefineSetupFnComponent<BadgeProps, {}, {}, {
11
+ color?: import('@lumx/core/js/constants').ColorPalette | undefined;
12
+ } & {
11
13
  class?: import('../../utils/VueToJSX').ClassValue;
12
14
  } & {}, import('vue').PublicProps>;
13
15
  export default Badge;
@@ -2,7 +2,9 @@ import { BadgeWrapperProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
3
  export type BadgeWrapperProps = VueToJSXProps<UIProps>;
4
4
  export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
- declare const BadgeWrapper: import('vue').DefineSetupFnComponent<BadgeWrapperProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
5
+ declare const BadgeWrapper: import('vue').DefineSetupFnComponent<BadgeWrapperProps, {}, {}, {
6
+ badge?: import('react').ReactNode;
7
+ } & {
6
8
  class?: import('../../utils/VueToJSX').ClassValue;
7
9
  } & {}, import('vue').PublicProps>;
8
10
  export default BadgeWrapper;
@@ -7,7 +7,7 @@ export type ButtonGroupProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
10
+ declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, {} & {
11
11
  class?: import('../../utils/VueToJSX').ClassValue;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default ButtonGroup;
@@ -18,7 +18,9 @@ type CardOwnProps = VueToJSXProps<UIProps, 'as'> & {
18
18
  * @param props Component props.
19
19
  * @return Vue element.
20
20
  */
21
- declare const Card: import('vue').DefineSetupFnComponent<CardOwnProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "as"> & {
21
+ declare const Card: import('vue').DefineSetupFnComponent<CardOwnProps, {}, {}, {
22
+ elevation?: import('@lumx/core/js/types').Elevation | undefined;
23
+ } & {
22
24
  class?: import('../../utils/VueToJSX').ClassValue;
23
25
  } & {
24
26
  as?: CardTag;
@@ -17,7 +17,20 @@ declare const Checkbox: import('vue').DefineSetupFnComponent<CheckboxProps, {
17
17
  change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
18
18
  /** Model update for `v-model:is-checked`. Always a boolean, also when `isChecked` prop is `'intermediate'`. */
19
19
  'update:isChecked': (isChecked: boolean) => boolean;
20
- }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "inputRef" | "inputId"> & {
20
+ }, {}, {
21
+ helper?: string | undefined;
22
+ id?: string | undefined;
23
+ label?: import('react').ReactNode;
24
+ name?: string | undefined;
25
+ value?: string | undefined;
26
+ inputProps?: Record<string, any> | undefined;
27
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
28
+ 'aria-disabled'?: import('@lumx/core/js/types/Booleanish').Booleanish | undefined;
29
+ isDisabled?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ isChecked?: boolean | "intermediate" | undefined;
32
+ checked?: boolean | undefined;
33
+ } & {
21
34
  class?: import('../../utils/VueToJSX').ClassValue;
22
35
  } & {
23
36
  onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
@@ -19,7 +19,18 @@ declare const Chip: import('vue').DefineSetupFnComponent<ChipProps, {
19
19
  afterClick: (event: MouseEvent) => boolean;
20
20
  beforeClick: (event: MouseEvent) => boolean;
21
21
  keydown: (event: KeyboardEvent) => boolean;
22
- }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | ChipPropsToOverride> & {
22
+ }, {}, {
23
+ color?: import('@lumx/core/js/constants').ColorPalette | undefined;
24
+ isClickable?: boolean | undefined;
25
+ isHighlighted?: boolean | undefined;
26
+ isSelected?: boolean | undefined;
27
+ size?: import('@lumx/core/js/components/Chip').ChipSize | undefined;
28
+ href?: string | undefined;
29
+ isDisabled?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
32
+ 'aria-disabled'?: import('@lumx/core/js/types/Booleanish').Booleanish | undefined;
33
+ } & {
23
34
  class?: import('../../utils/VueToJSX').ClassValue;
24
35
  } & {
25
36
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -1,7 +1,9 @@
1
1
  import { ChipGroupProps as UIProps } from '@lumx/core/js/components/Chip/ChipGroup';
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
3
  export type ChipGroupProps = VueToJSXProps<UIProps, never>;
4
- declare const ChipGroup: import('vue').DefineSetupFnComponent<ChipGroupProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
4
+ declare const ChipGroup: import('vue').DefineSetupFnComponent<ChipGroupProps, {}, {}, {
5
+ align?: import('@lumx/core/js/constants').HorizontalAlignment | undefined;
6
+ } & {
5
7
  class?: import('../../utils/VueToJSX').ClassValue;
6
8
  } & {}, import('vue').PublicProps>;
7
9
  export default ChipGroup;
@@ -44,7 +44,16 @@ declare const SelectionChipGroup: import('vue').DefineSetupFnComponent<Selection
44
44
  change: (_newValue?: any[]) => boolean;
45
45
  /** Model update for `v-model:value`. Typed payload restored via `SelectionChipGroupEmits`. */
46
46
  'update:value': (_newValue?: any[]) => boolean;
47
- }, {}, Omit<UIProps<any>, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
47
+ }, {}, {
48
+ getOptionId: import('@lumx/core/js/types').Selector<any>;
49
+ getOptionName?: import('@lumx/core/js/types').Selector<any, string | null | undefined> | undefined;
50
+ value?: any[] | undefined;
51
+ label: string;
52
+ chipRemoveLabel?: string | undefined;
53
+ isDisabled?: boolean | undefined;
54
+ getChipProps?: ((option: any) => Partial<import('@lumx/core/js/components/Chip').ChipProps>) | undefined;
55
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
56
+ } & {
48
57
  class?: import('../../utils/VueToJSX').ClassValue;
49
58
  } & {
50
59
  /** Ref to the associated input element (for focus restoration on backspace) */
@@ -24,7 +24,15 @@ declare const ComboboxButton: import('vue').DefineSetupFnComponent<ComboboxButto
24
24
  select: (option: {
25
25
  value: string;
26
26
  }) => true;
27
- }, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
27
+ }, {}, {
28
+ value?: string | undefined;
29
+ labelDisplayMode?: ComboboxButtonLabelDisplayMode | undefined;
30
+ listboxId?: string | undefined;
31
+ isOpen?: boolean | undefined;
32
+ onSelect?: ((option: {
33
+ value: string;
34
+ }) => void) | undefined;
35
+ } & {
28
36
  class?: import('../../utils/VueToJSX').ClassValue;
29
37
  } & {
30
38
  /** The label for the button (used for ARIA and tooltip). */
@@ -13,7 +13,18 @@ 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 | "isOpen" | "children" | "anchorRef"> & {
16
+ declare const ComboboxPopover: import('vue').DefineSetupFnComponent<ComboboxPopoverProps, {}, {}, {
17
+ placement?: import('@lumx/core/js/components/Popover/constants').Placement | undefined;
18
+ closeOnClickAway?: boolean | undefined;
19
+ closeOnEscape?: boolean | undefined;
20
+ fitToAnchorWidth?: (import('@lumx/core/js/components/Popover/constants').FitAnchorWidth | boolean) | undefined;
21
+ width?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
22
+ minWidth?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
23
+ maxWidth?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
24
+ height?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
25
+ minHeight?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
26
+ maxHeight?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
27
+ } & {
17
28
  class?: import('../../utils/VueToJSX').ClassValue;
18
29
  } & Partial<Omit<PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
19
30
  export { COMPONENT_NAME, CLASSNAME };
@@ -26,7 +26,15 @@ export declare const Combobox: {
26
26
  select: (option: {
27
27
  value: string;
28
28
  }) => true;
29
- }, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
29
+ }, {}, {
30
+ value?: string | undefined;
31
+ labelDisplayMode?: import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonLabelDisplayMode | undefined;
32
+ listboxId?: string | undefined;
33
+ isOpen?: boolean | undefined;
34
+ onSelect?: ((option: {
35
+ value: string;
36
+ }) => void) | undefined;
37
+ } & {
30
38
  class?: import('../../utils/VueToJSX').ClassValue;
31
39
  } & {
32
40
  label: string;
@@ -62,13 +70,20 @@ export declare const Combobox: {
62
70
  "onUpdate:value"?: ((value: string) => any) | undefined;
63
71
  }, import('vue').PublicProps>;
64
72
  /** Listbox container linked to the combobox trigger (must be rendered inside `Combobox.Provider`). */
65
- List: import('vue').DefineSetupFnComponent<import('.').ComboboxListProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxList').ListboxListProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "id" | "aria-busy" | "aria-multiselectable"> & {
73
+ List: import('vue').DefineSetupFnComponent<import('.').ComboboxListProps, {}, {}, {
74
+ type?: import('@lumx/core/js/components/Listbox/ListboxList').ListboxListType | undefined;
75
+ } & {
66
76
  class?: import('../../utils/VueToJSX').ClassValue;
67
77
  } & {}, import('vue').PublicProps>;
68
78
  /** Selectable option item with filtering and keyboard navigation support. */
69
79
  Option: import('vue').DefineSetupFnComponent<import('.').ComboboxOptionProps, {
70
80
  click: () => boolean;
71
- }, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxOption').ListboxOptionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | import('@lumx/core/js/components/Listbox/ListboxOption').ListboxOptionPropsToOverride> & {
81
+ }, {}, {
82
+ description?: string | undefined;
83
+ isDisabled?: boolean | undefined;
84
+ isSelected?: boolean | undefined;
85
+ value?: string | undefined;
86
+ } & {
72
87
  class?: import('../../utils/VueToJSX').ClassValue;
73
88
  } & {
74
89
  tooltipProps?: Partial<import('../tooltip').TooltipProps>;
@@ -83,31 +98,54 @@ export declare const Combobox: {
83
98
  /** Info button on an option that shows a popover on hover or keyboard highlight. */
84
99
  OptionMoreInfo: import('vue').DefineSetupFnComponent<import('.').ComboboxOptionMoreInfoProps, {
85
100
  toggle: (isOpen: boolean) => boolean;
86
- }, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxOptionMoreInfo').ListboxOptionMoreInfoProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | import('@lumx/core/js/components/Listbox/ListboxOptionMoreInfo').ListboxOptionMoreInfoPropsToOverride> & {
101
+ }, {}, {} & {
87
102
  class?: import('../../utils/VueToJSX').ClassValue;
88
103
  } & {
89
104
  onToggle?: ((isOpen: boolean) => any) | undefined;
90
105
  }, import('vue').PublicProps>;
91
106
  /** Loading placeholder skeleton(s) that auto-register loading state with the combobox handle. */
92
- OptionSkeleton: import('vue').DefineSetupFnComponent<import('.').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Listbox/ListboxOptionSkeleton').ListboxOptionSkeletonPropsToOverride> & {
107
+ OptionSkeleton: import('vue').DefineSetupFnComponent<import('.').ComboboxOptionSkeletonProps, {}, {}, {
108
+ hasDescription?: boolean | undefined;
109
+ count?: number | undefined;
110
+ } & {
93
111
  class?: import('../../utils/VueToJSX').ClassValue;
94
112
  } & {}, import('vue').PublicProps>;
95
113
  /** Selection state icon (check circle / radio, or checkbox in multiple lists) for the `after` slot of an option. Reads the option `isSelected` and the list `aria-multiselectable`. */
96
114
  SelectionIcon: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
97
115
  /** 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 | "isOpen" | "children" | "anchorRef"> & {
116
+ Popover: import('vue').DefineSetupFnComponent<import('./ComboboxPopover').ComboboxPopoverProps, {}, {}, {
117
+ placement?: import('@lumx/core/js/components/Popover/constants').Placement | undefined;
118
+ closeOnClickAway?: boolean | undefined;
119
+ closeOnEscape?: boolean | undefined;
120
+ fitToAnchorWidth?: (import('@lumx/core/js/components/Popover/constants').FitAnchorWidth | boolean) | undefined;
121
+ width?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
122
+ minWidth?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
123
+ maxWidth?: import('@lumx/core/js/components/Popover/types').PopoverWidth | undefined;
124
+ height?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
125
+ minHeight?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
126
+ maxHeight?: import('@lumx/core/js/components/Popover/types').PopoverHeight | undefined;
127
+ } & {
99
128
  class?: import('../../utils/VueToJSX').ClassValue;
100
129
  } & Partial<Omit<import('../popover').PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
101
130
  /** Labelled group of options that auto-hides when all its child options are filtered out. */
102
- Section: import('vue').DefineSetupFnComponent<import('.').ComboboxSectionProps, {}, {}, Omit<import('@lumx/core/js/components/Listbox/ListboxSection').ListboxSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
131
+ Section: import('vue').DefineSetupFnComponent<import('.').ComboboxSectionProps, {}, {}, {
132
+ label?: import('react').ReactNode;
133
+ icon?: string | undefined;
134
+ } & {
103
135
  class?: import('../../utils/VueToJSX').ClassValue;
104
136
  } & {}, import('vue').PublicProps>;
105
137
  /** Displays empty, error, and loading state messages for the combobox list. */
106
- State: import('vue').DefineSetupFnComponent<import('.').ComboboxStateProps, {}, {}, Omit<import('@lumx/core/js/components/Composite/CompositeStatus').CompositeStatusProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
138
+ State: import('vue').DefineSetupFnComponent<import('.').ComboboxStateProps, {}, {}, {
139
+ emptyMessage?: string | ((inputValue: string) => string) | undefined;
140
+ nbOptionMessage?: ((optionsLength: number) => string) | undefined;
141
+ errorMessage?: string | undefined;
142
+ errorTryReloadMessage?: string | undefined;
143
+ loadingMessage?: string | undefined;
144
+ } & {
107
145
  class?: import('../../utils/VueToJSX').ClassValue;
108
146
  } & {}, import('vue').PublicProps>;
109
147
  /** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
110
- Divider: import('vue').DefineSetupFnComponent<import('../list').ListDividerProps, {}, {}, Omit<import('@lumx/core/js/components/List/ListDivider').ListDividerProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
148
+ Divider: import('vue').DefineSetupFnComponent<import('../list').ListDividerProps, {}, {}, {} & {
111
149
  class?: import('../../utils/VueToJSX').ClassValue;
112
150
  } & {}, import('vue').PublicProps>;
113
151
  };
@@ -8,7 +8,13 @@ export type CompositeStatusProps = VueToJSXProps<UIProps, 'state'>;
8
8
  * @param props Component props.
9
9
  * @return Vue element.
10
10
  */
11
- declare const CompositeStatus: import('vue').DefineSetupFnComponent<CompositeStatusProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
11
+ declare const CompositeStatus: import('vue').DefineSetupFnComponent<CompositeStatusProps, {}, {}, {
12
+ emptyMessage?: string | ((inputValue: string) => string) | undefined;
13
+ nbOptionMessage?: ((optionsLength: number) => string) | undefined;
14
+ errorMessage?: string | undefined;
15
+ errorTryReloadMessage?: string | undefined;
16
+ loadingMessage?: string | undefined;
17
+ } & {
12
18
  class?: import('../../utils/VueToJSX').ClassValue;
13
19
  } & {}, import('vue').PublicProps>;
14
20
  export { COMPONENT_NAME, CLASSNAME };
@@ -1,3 +1,4 @@
1
+ import { Typography } from '@lumx/core/js/constants';
1
2
  import { HeadingProps } from '../heading/Heading';
2
3
  export type DialogHeadingProps = HeadingProps;
3
4
  /**
@@ -22,7 +23,19 @@ export type DialogHeadingProps = HeadingProps;
22
23
  * }}
23
24
  * </Dialog>
24
25
  */
25
- declare const DialogHeading: import('vue').DefineSetupFnComponent<HeadingProps, {}, {}, Omit<import('@lumx/core/js/components/Heading').HeadingProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
26
+ declare const DialogHeading: import('vue').DefineSetupFnComponent<HeadingProps, {}, {}, {
27
+ as?: import('@lumx/core/js/types').HeadingElement | undefined;
28
+ id?: string | undefined;
29
+ color?: import('@lumx/core/js/constants').ColorWithVariants | undefined;
30
+ colorVariant?: import('@lumx/core/js/constants').ColorVariant | undefined;
31
+ typography?: Typography | undefined;
32
+ truncate?: boolean | {
33
+ lines: number;
34
+ } | undefined;
35
+ noWrap?: boolean | undefined;
36
+ whiteSpace?: import('@lumx/core/js/constants').WhiteSpace | undefined;
37
+ style?: import('react').CSSProperties | undefined;
38
+ } & {
26
39
  class?: import('../../utils/VueToJSX').ClassValue;
27
40
  } & {}, import('vue').PublicProps>;
28
41
  export default DialogHeading;
@@ -8,7 +8,9 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
8
  * @param props Component props.
9
9
  * @return Vue element.
10
10
  */
11
- declare const Divider: import('vue').DefineSetupFnComponent<DividerProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
11
+ declare const Divider: import('vue').DefineSetupFnComponent<DividerProps, {}, {}, {
12
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
13
+ } & {
12
14
  class?: import('../../utils/VueToJSX').ClassValue;
13
15
  } & {}, import('vue').PublicProps>;
14
16
  export default Divider;
@@ -8,7 +8,9 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
8
  * @param props Component props.
9
9
  * @return Vue element.
10
10
  */
11
- declare const DragHandle: import('vue').DefineSetupFnComponent<DragHandleProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
11
+ declare const DragHandle: import('vue').DefineSetupFnComponent<DragHandleProps, {}, {}, {
12
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
13
+ } & {
12
14
  class?: import('../../utils/VueToJSX').ClassValue;
13
15
  } & {}, import('vue').PublicProps>;
14
16
  export default DragHandle;
@@ -27,7 +27,14 @@ declare const ExpansionPanel: import('vue').DefineSetupFnComponent<ExpansionPane
27
27
  toggleOpen: (shouldOpen: boolean, event: MouseEvent) => boolean;
28
28
  /** Model update for `v-model:is-open`. */
29
29
  'update:isOpen': (isOpen: boolean) => boolean;
30
- }, {}, Omit<UIProps, "className" | "footer" | "ref" | "handleClick" | "handleChange" | "handleInput" | "handleKeyPress" | "handleClose" | "handleFocus" | "handleBlur" | "handleBeforeClick" | "handleAfterClick" | "handleMouseEnter" | "handleMouseLeave" | "handleKeyDown" | "children" | "wrapperRef" | "content" | "IconButton" | "toggleButtonProps" | "handleOpen" | "handleToggleOpen" | "headerProps" | "headerContent" | "dragHandle" | "isChildrenVisible"> & {
30
+ }, {}, {
31
+ hasBackground?: boolean | undefined;
32
+ hasHeaderDivider?: boolean | undefined;
33
+ isOpen?: boolean | undefined;
34
+ label?: string | undefined;
35
+ closeMode?: "hide" | "unmount" | undefined;
36
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
37
+ } & {
31
38
  class?: import('../../utils/VueToJSX').ClassValue;
32
39
  } & {
33
40
  /** Props to pass to the toggle button (minus those already set by the ExpansionPanel). */
@@ -7,7 +7,12 @@ export type FlagProps = VueToJSXProps<UIProps, 'Text'>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Text"> & {
10
+ declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, {
11
+ color?: import('@lumx/core/js/constants').ColorPalette | undefined;
12
+ icon?: string | undefined;
13
+ truncate?: boolean | undefined;
14
+ theme?: import('@lumx/core/js/constants').Theme | undefined;
15
+ } & {
11
16
  class?: import('../../utils/VueToJSX').ClassValue;
12
17
  } & {}, import('vue').PublicProps>;
13
18
  export default Flag;
@@ -15,7 +15,14 @@ export { CLASSNAME, COMPONENT_NAME };
15
15
  * @param props Component props.
16
16
  * @return Vue element.
17
17
  */
18
- declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "hAlign" | "vAlign"> & {
18
+ declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, {
19
+ fillSpace?: boolean | undefined;
20
+ gap?: import('@lumx/core/js/components/FlexBox').GapSize | undefined;
21
+ marginAuto?: (import('@lumx/core/js/components/FlexBox').MarginAutoAlignment | import('@lumx/core/js/components/FlexBox').MarginAutoAlignment[]) | undefined;
22
+ noShrink?: boolean | undefined;
23
+ orientation?: import('@lumx/core/js/constants').Orientation | undefined;
24
+ wrap?: boolean | undefined;
25
+ } & {
19
26
  class?: import('../../utils/VueToJSX').ClassValue;
20
27
  } & {
21
28
  /** Customize the root element. */