@lumx/vue 4.13.0-next.3 → 4.13.0-next.5
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.
- package/_internal/CO3BhTbu.js.map +1 -1
- package/components/alert-dialog/AlertDialog.d.ts +2 -1
- package/components/avatar/Avatar.d.ts +1 -1
- package/components/badge/Badge.d.ts +1 -1
- package/components/badge/BadgeWrapper.d.ts +1 -1
- package/components/button/ButtonGroup.d.ts +1 -1
- package/components/checkbox/Checkbox.d.ts +1 -1
- package/components/chip/Chip.d.ts +1 -1
- package/components/chip/ChipGroup.d.ts +1 -1
- package/components/chip/SelectionChipGroup.d.ts +1 -1
- package/components/combobox/ComboboxButton.d.ts +1 -1
- package/components/combobox/ComboboxList.d.ts +1 -1
- package/components/combobox/ComboboxOption.d.ts +1 -1
- package/components/combobox/ComboboxOptionMoreInfo.d.ts +1 -1
- package/components/combobox/ComboboxOptionSkeleton.d.ts +1 -1
- package/components/combobox/ComboboxPopover.d.ts +1 -1
- package/components/combobox/ComboboxSection.d.ts +1 -1
- package/components/combobox/ComboboxState.d.ts +1 -1
- package/components/combobox/index.d.ts +9 -9
- package/components/dialog/Dialog.d.ts +3 -2
- package/components/divider/Divider.d.ts +1 -1
- package/components/drag-handle/DragHandle.d.ts +1 -1
- package/components/expansion-panel/ExpansionPanel.d.ts +1 -1
- package/components/flag/Flag.d.ts +1 -1
- package/components/flex-box/FlexBox.d.ts +1 -1
- package/components/generic-block/GenericBlock.d.ts +1 -1
- package/components/grid-column/GridColumn.d.ts +1 -1
- package/components/heading/Heading.d.ts +1 -1
- package/components/icon/Icon.d.ts +1 -1
- package/components/image-block/ImageCaption.d.ts +2 -1
- package/components/inline-list/InlineList.d.ts +1 -1
- package/components/input-helper/InputHelper.d.ts +1 -1
- package/components/input-label/InputLabel.d.ts +1 -1
- package/components/lightbox/Lightbox.d.ts +1 -1
- package/components/link/Link.d.ts +1 -1
- package/components/link-preview/LinkPreview.d.ts +1 -1
- package/components/list/List.d.ts +1 -1
- package/components/list/ListDivider.d.ts +1 -1
- package/components/list/ListItem.d.ts +2 -2
- package/components/list/ListItemAction.d.ts +1 -1
- package/components/list/ListSection.d.ts +1 -1
- package/components/message/Message.d.ts +1 -1
- package/components/mosaic/Mosaic.d.ts +1 -1
- package/components/popover/Popover.d.ts +1 -1
- package/components/popover-dialog/PopoverDialog.d.ts +1 -1
- package/components/popover-dialog/PopoverDialog.test.stories.d.ts +1 -1
- package/components/progress/ProgressCircular.d.ts +1 -1
- package/components/progress/ProgressLinear.d.ts +1 -1
- package/components/radio-button/RadioButton.d.ts +1 -1
- package/components/radio-button/RadioGroup.d.ts +2 -1
- package/components/select-text-field/SelectTextField.d.ts +2 -2
- package/components/select-text-field/index.d.ts +5 -5
- package/components/skeleton/SkeletonCircle.d.ts +1 -1
- package/components/skeleton/SkeletonRectangle.d.ts +1 -1
- package/components/skeleton/SkeletonTypography.d.ts +1 -1
- package/components/switch/Switch.d.ts +1 -1
- package/components/table/Table.d.ts +1 -1
- package/components/table/TableBody.d.ts +1 -1
- package/components/table/TableCell.d.ts +1 -1
- package/components/table/TableHeader.d.ts +1 -1
- package/components/table/TableRow.d.ts +1 -1
- package/components/tabs/Tab.d.ts +1 -1
- package/components/tabs/TabList.d.ts +1 -1
- package/components/tabs/TabPanel.d.ts +1 -1
- package/components/text/Text.d.ts +1 -1
- package/components/text-field/RawInputText.d.ts +1 -1
- package/components/text-field/RawInputTextarea.d.ts +1 -1
- package/components/text-field/TextField.d.ts +1 -1
- package/components/thumbnail/Thumbnail.d.ts +1 -1
- package/components/toolbar/Toolbar.d.ts +1 -1
- package/components/tooltip/Tooltip.d.ts +2 -1
- package/components/uploader/Uploader.d.ts +1 -1
- package/components/user-block/UserBlock.d.ts +1 -1
- package/composables/useClassName.d.ts +2 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/VueToJSX.d.ts +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CO3BhTbu.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 { 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\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: 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","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 /** Callback when infinite scroll component is in view */\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) 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":["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","injected","unref","setupInfiniteScrollObserver","observer","entries","entry","INFINITE_SCROLL_CLASSNAME","InfiniteScroll","height","elementRef","watchEffect","onCleanup","cleanup","UI","inheritAttrs"],"mappings":";;AAwBO,MAAMA,IAAS,MACX,IACAC,MAMIA,EAAK;AAAA,EACR,CAACC,GAAKC,OACFD,EAAIC,CAAgB,IAAI,EAAE,UAAU,GAAA,GAC7BD;AAAA,EAEX,CAAA;AAAC,GChCAE,IAAuCC,uBAAO,YAAY,GAE1DC,IAAgCA,OAAO;AAAA,EAAEC,WAAW;AAAO,IAK3DC,sBACT,CAACC,GAA4B;AAAA,EAAEC,OAAAA;AAAM,OACjCC,EAAQP,GAAYK,EAAMG,KAAK,GACxB,MAAMF,EAAMG,UAAO,IAE9B;AAAA,EACIC,MAAM;AAAA,EACNL,OAAO;AAAA,IACHG,OAAO;AAAA,MACHG,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,CAAChB,GAAoB;AAAA,EAAEC,OAAAA;AAAM,MAAM;AAC/B,QAAMgB,IAAaC,EAAOvB,GAAYE,CAAiB,GACjDsB,IAAUC,EAA0C,IAAI,GAGxDC,IAAmBA,MAAM;AAC3B,IAAIrB,EAAMsB,UACNH,EAAQhB,QAAQc,EAAU,IAE1BE,EAAQhB,QAAQ;AAAA,EA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AC,GAEM,MAAMC,EAAG;AAAA,IAAE5D,KAAKwD;AAAAA,EAAW,CAAC;AACvC,GACA;AAAA,EACIvE,MAAM;AAAA,EACN4E,cAAc;AAAA,EACdjF,OAAOT,IAA8B,YAAY,SAAS;AAC9D,CACJ;"}
|
|
1
|
+
{"version":3,"file":"CO3BhTbu.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 { 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 */\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?: 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 = '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\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: 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","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 /** Callback when infinite scroll component is in view */\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) 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":["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","injected","unref","setupInfiniteScrollObserver","observer","entries","entry","INFINITE_SCROLL_CLASSNAME","InfiniteScroll","height","elementRef","watchEffect","onCleanup","cleanup","UI","inheritAttrs"],"mappings":";;AA+BO,MAAMA,IAAS,MACX,IACAC,MAMIA,EAAK;AAAA,EACR,CAACC,GAAKC,OACFD,EAAIC,CAAgB,IAAI,EAAE,UAAU,GAAA,GAC7BD;AAAA,EAEX,CAAA;AAAC,GCvCAE,IAAuCC,uBAAO,YAAY,GAE1DC,IAAgCA,OAAO;AAAA,EAAEC,WAAW;AAAO,IAK3DC,sBACT,CAACC,GAA4B;AAAA,EAAEC,OAAAA;AAAM,OACjCC,EAAQP,GAAYK,EAAMG,KAAK,GACxB,MAAMF,EAAMG,UAAO,IAE9B;AAAA,EACIC,MAAM;AAAA,EACNL,OAAO;AAAA,IACHG,OAAO;AAAA,MACHG,MAAMC;AAAAA,MACNC,UAAU;AAAA,IACd;AAAA,EACJ;AACJ,CACJ;ACzBiE,SAAAC,EAAAC,GAAA;AAAA,SAAA,OAAAA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AA,IAAM;AAAA,EAAC,GAAA,IAAA;AAAA,GCdvFD,IAAiBb,gBAAAA,EACzB7D,CAAAA,MAA+B;AAC5B,QAAM4E,IAAaxD,EAA2B,IAAI;AAElDyD,SAAAA,EAAaC,CAAAA,MAAc;AACvB,UAAM5C,IAAU0C,EAAWzE;AAC3B,QAAI,CAAC+B,EAAS;AAEd,UAAM6C,IAAUV,EAA4BnC,GAASlC,EAAMsC,UAAUtC,EAAMgE,OAAO;AAClFc,IAAAA,EAAUC,CAAO;AAAA,EACrB,CAAC,GAEM,MAAMC,EAAG;AAAA,IAAE5D,KAAKwD;AAAAA,EAAW,CAAC;AACvC,GACA;AAAA,EACIvE,MAAM;AAAA,EACN4E,cAAc;AAAA,EACdjF,OAAOT,IAA8B,YAAY,SAAS;AAC9D,CACJ;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseAlertDialogProps } from '@lumx/core/js/components/AlertDialog';
|
|
2
2
|
import { DialogSizes } from '@lumx/core/js/components/Dialog';
|
|
3
3
|
import { GenericProps } from '@lumx/core/js/types';
|
|
4
|
+
import { ClassValue } from '../../utils/VueToJSX';
|
|
4
5
|
type ButtonActionProps = {
|
|
5
6
|
label: string;
|
|
6
7
|
onClick?: () => void;
|
|
@@ -8,7 +9,7 @@ type ButtonActionProps = {
|
|
|
8
9
|
};
|
|
9
10
|
export interface AlertDialogProps extends Pick<BaseAlertDialogProps, 'kind' | 'title'> {
|
|
10
11
|
/** Additional class name. */
|
|
11
|
-
class?:
|
|
12
|
+
class?: ClassValue;
|
|
12
13
|
/** Size variant. */
|
|
13
14
|
size?: DialogSizes;
|
|
14
15
|
/** Whether the dialog is open. */
|
|
@@ -16,7 +16,7 @@ export type AvatarProps = VueToJSXProps<UIProps, 'image' | 'actions' | 'badge'>
|
|
|
16
16
|
thumbnailProps?: Omit<ThumbnailProps, 'image' | 'alt' | 'size' | 'theme' | 'aspectRatio'>;
|
|
17
17
|
};
|
|
18
18
|
declare const Avatar: import('vue').DefineSetupFnComponent<AvatarProps, {}, {}, Omit<UIProps, "className" | "image" | import('@lumx/core/js/types').PropsToOverride | "children" | "actions" | "badge"> & {
|
|
19
|
-
class?:
|
|
19
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
20
20
|
} & {
|
|
21
21
|
/** Image URL. */
|
|
22
22
|
image: string;
|
|
@@ -8,6 +8,6 @@ export type BadgeProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const Badge: import('vue').DefineSetupFnComponent<BadgeProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Badge;
|
|
@@ -3,6 +3,6 @@ import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
|
3
3
|
export type BadgeWrapperProps = VueToJSXProps<UIProps>;
|
|
4
4
|
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
5
5
|
declare const BadgeWrapper: import('vue').DefineSetupFnComponent<BadgeWrapperProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
6
|
-
class?:
|
|
6
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
7
7
|
} & {}, import('vue').PublicProps>;
|
|
8
8
|
export default BadgeWrapper;
|
|
@@ -8,6 +8,6 @@ export type ButtonGroupProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default ButtonGroup;
|
|
@@ -14,7 +14,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, INTERMEDIATE_STATE };
|
|
|
14
14
|
declare const Checkbox: import('vue').DefineSetupFnComponent<CheckboxProps, {
|
|
15
15
|
change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
|
|
16
16
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "inputRef" | "inputId"> & {
|
|
17
|
-
class?:
|
|
17
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
18
18
|
} & {
|
|
19
19
|
onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
|
|
20
20
|
}, import('vue').PublicProps>;
|
|
@@ -20,7 +20,7 @@ declare const Chip: import('vue').DefineSetupFnComponent<ChipProps, {
|
|
|
20
20
|
beforeClick: (event: MouseEvent) => boolean;
|
|
21
21
|
keydown: (event: KeyboardEvent) => boolean;
|
|
22
22
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | ChipPropsToOverride> & {
|
|
23
|
-
class?:
|
|
23
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
24
24
|
} & {
|
|
25
25
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -2,6 +2,6 @@ import { ChipGroupProps as UIProps } from '@lumx/core/js/components/Chip/ChipGro
|
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export type ChipGroupProps = VueToJSXProps<UIProps, never>;
|
|
4
4
|
declare const ChipGroup: import('vue').DefineSetupFnComponent<ChipGroupProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
5
|
-
class?:
|
|
5
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
6
6
|
} & {}, import('vue').PublicProps>;
|
|
7
7
|
export default ChipGroup;
|
|
@@ -40,7 +40,7 @@ export interface SelectionChipGroupConstructor {
|
|
|
40
40
|
declare const SelectionChipGroup: import('vue').DefineSetupFnComponent<SelectionChipGroupProps<any>, {
|
|
41
41
|
change: (_newValue?: any[]) => boolean;
|
|
42
42
|
}, {}, Omit<UIProps<any>, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
43
|
-
class?:
|
|
43
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
44
44
|
} & {
|
|
45
45
|
/** Ref to the associated input element (for focus restoration on backspace) */
|
|
46
46
|
inputRef?: HTMLInputElement | null;
|
|
@@ -19,7 +19,7 @@ declare const ComboboxButton: import('vue').DefineSetupFnComponent<ComboboxButto
|
|
|
19
19
|
value: string;
|
|
20
20
|
}) => true;
|
|
21
21
|
}, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
|
|
22
|
-
class?:
|
|
22
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
23
23
|
} & {
|
|
24
24
|
/** The label for the button (used for ARIA and tooltip). */
|
|
25
25
|
label: string;
|
|
@@ -9,7 +9,7 @@ export type ComboboxListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-busy
|
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
11
|
declare const ComboboxList: import('vue').DefineSetupFnComponent<ComboboxListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "children" | "aria-label" | "aria-busy"> & {
|
|
12
|
-
class?:
|
|
12
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export { COMPONENT_NAME, CLASSNAME };
|
|
15
15
|
export default ComboboxList;
|
|
@@ -19,7 +19,7 @@ export declare const emitSchema: {
|
|
|
19
19
|
declare const ComboboxOption: import('vue').DefineSetupFnComponent<ComboboxOptionProps, {
|
|
20
20
|
click: () => boolean;
|
|
21
21
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "hidden" | "descriptionId" | "isGrid" | ComboboxOptionPropsToOverride> & {
|
|
22
|
-
class?:
|
|
22
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
23
23
|
} & {
|
|
24
24
|
/** Props forwarded to a Tooltip wrapping the option trigger element. */
|
|
25
25
|
tooltipProps?: Partial<TooltipProps>;
|
|
@@ -18,7 +18,7 @@ export type ComboboxOptionMoreInfoProps = VueToJSXProps<UIProps, ComboboxOptionM
|
|
|
18
18
|
declare const ComboboxOptionMoreInfo: import('vue').DefineSetupFnComponent<ComboboxOptionMoreInfoProps, {
|
|
19
19
|
toggle: (isOpen: boolean) => boolean;
|
|
20
20
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | ComboboxOptionMoreInfoPropsToOverride> & {
|
|
21
|
-
class?:
|
|
21
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
22
22
|
} & {
|
|
23
23
|
/** Callback when the popover opens or closes. */
|
|
24
24
|
onToggle?: (isOpen: boolean) => void;
|
|
@@ -8,7 +8,7 @@ export type ComboboxOptionSkeletonProps = VueToJSXProps<UIProps, ComboboxOptionS
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ComboboxOptionSkeleton: import('vue').DefineSetupFnComponent<ComboboxOptionSkeletonProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | ComboboxOptionSkeletonPropsToOverride> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export { COMPONENT_NAME, CLASSNAME };
|
|
14
14
|
export default ComboboxOptionSkeleton;
|
|
@@ -14,7 +14,7 @@ export type ComboboxPopoverProps = VueToJSXProps<UIProps, 'isOpen' | 'anchorRef'
|
|
|
14
14
|
* @return Vue element.
|
|
15
15
|
*/
|
|
16
16
|
declare const ComboboxPopover: import('vue').DefineSetupFnComponent<ComboboxPopoverProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "children" | "anchorRef"> & {
|
|
17
|
-
class?:
|
|
17
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
18
18
|
} & Partial<Omit<PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
|
|
19
19
|
export { COMPONENT_NAME, CLASSNAME };
|
|
20
20
|
export default ComboboxPopover;
|
|
@@ -8,7 +8,7 @@ export type ComboboxSectionProps = VueToJSXProps<UIProps, ComboboxSectionPropsTo
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ComboboxSection: import('vue').DefineSetupFnComponent<ComboboxSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-hidden" | "hidden"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export { COMPONENT_NAME, CLASSNAME };
|
|
14
14
|
export default ComboboxSection;
|
|
@@ -8,7 +8,7 @@ export type ComboboxStateProps = VueToJSXProps<UIProps, 'state'>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ComboboxState: import('vue').DefineSetupFnComponent<ComboboxStateProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export { COMPONENT_NAME, CLASSNAME };
|
|
14
14
|
export default ComboboxState;
|
|
@@ -28,7 +28,7 @@ export declare const Combobox: {
|
|
|
28
28
|
value: string;
|
|
29
29
|
}) => true;
|
|
30
30
|
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
|
|
31
|
-
class?:
|
|
31
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
32
32
|
} & {
|
|
33
33
|
label: string;
|
|
34
34
|
value?: string;
|
|
@@ -58,13 +58,13 @@ export declare const Combobox: {
|
|
|
58
58
|
}, import('vue').PublicProps>;
|
|
59
59
|
/** Listbox container that registers with the combobox handle and tracks loading state. */
|
|
60
60
|
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"> & {
|
|
61
|
-
class?:
|
|
61
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
62
62
|
} & {}, import('vue').PublicProps>;
|
|
63
63
|
/** Selectable option item with filtering and keyboard navigation support. */
|
|
64
64
|
Option: import('vue').DefineSetupFnComponent<import('./ComboboxOption').ComboboxOptionProps, {
|
|
65
65
|
click: () => boolean;
|
|
66
66
|
}, {}, 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> & {
|
|
67
|
-
class?:
|
|
67
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
68
68
|
} & {
|
|
69
69
|
tooltipProps?: Partial<import('../tooltip').TooltipProps>;
|
|
70
70
|
actionProps?: Record<string, any>;
|
|
@@ -79,7 +79,7 @@ export declare const Combobox: {
|
|
|
79
79
|
OptionMoreInfo: import('vue').DefineSetupFnComponent<import('./ComboboxOptionMoreInfo').ComboboxOptionMoreInfoProps, {
|
|
80
80
|
toggle: (isOpen: boolean) => boolean;
|
|
81
81
|
}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoProps, "className" | import('@lumx/core/js/types').PropsToOverride | "onMouseEnter" | "onMouseLeave" | "buttonProps" | import('@lumx/core/js/components/Combobox/ComboboxOptionMoreInfo').ComboboxOptionMoreInfoPropsToOverride> & {
|
|
82
|
-
class?:
|
|
82
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
83
83
|
} & {
|
|
84
84
|
onToggle?: (isOpen: boolean) => void;
|
|
85
85
|
} & {
|
|
@@ -87,22 +87,22 @@ export declare const Combobox: {
|
|
|
87
87
|
}, import('vue').PublicProps>;
|
|
88
88
|
/** Loading placeholder skeleton(s) that auto-register loading state with the combobox handle. */
|
|
89
89
|
OptionSkeleton: import('vue').DefineSetupFnComponent<import('./ComboboxOptionSkeleton').ComboboxOptionSkeletonProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonProps, "className" | import('@lumx/core/js/types').PropsToOverride | import('@lumx/core/js/components/Combobox/ComboboxOptionSkeleton').ComboboxOptionSkeletonPropsToOverride> & {
|
|
90
|
-
class?:
|
|
90
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
91
91
|
} & {}, import('vue').PublicProps>;
|
|
92
92
|
/** Floating popover container that auto-binds to the combobox anchor and open/close state. */
|
|
93
93
|
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"> & {
|
|
94
|
-
class?:
|
|
94
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
95
95
|
} & Partial<Omit<import('../popover').PopoverProps, "isOpen" | "class" | "onClose" | "anchorRef">> & {}, import('vue').PublicProps>;
|
|
96
96
|
/** Labelled group of options that auto-hides when all its child options are filtered out. */
|
|
97
97
|
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"> & {
|
|
98
|
-
class?:
|
|
98
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
99
99
|
} & {}, import('vue').PublicProps>;
|
|
100
100
|
/** Displays empty, error, and loading state messages for the combobox list. */
|
|
101
101
|
State: import('vue').DefineSetupFnComponent<import('./ComboboxState').ComboboxStateProps, {}, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxState').ComboboxStateProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
|
|
102
|
-
class?:
|
|
102
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
103
103
|
} & {}, import('vue').PublicProps>;
|
|
104
104
|
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
105
105
|
Divider: import('vue').DefineSetupFnComponent<import('../list').ListDividerProps, {}, {}, Omit<import('@lumx/core/js/components/List/ListDivider').ListDividerProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
106
|
-
class?:
|
|
106
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
107
107
|
} & {}, import('vue').PublicProps>;
|
|
108
108
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { BaseDialogProps, DialogSizes } from '@lumx/core/js/components/Dialog';
|
|
3
3
|
import { GenericProps, HasCloseMode } from '@lumx/core/js/types';
|
|
4
|
+
import { ClassValue } from '../../utils/VueToJSX';
|
|
4
5
|
export type DialogProps = Pick<BaseDialogProps, 'forceFooterDivider' | 'forceHeaderDivider' | 'isLoading'> & HasCloseMode & {
|
|
5
6
|
/** Additional class name. */
|
|
6
|
-
class?:
|
|
7
|
+
class?: ClassValue;
|
|
7
8
|
/** Whether the dialog is open. */
|
|
8
9
|
isOpen?: boolean;
|
|
9
10
|
/** Size variant. */
|
|
@@ -36,7 +37,7 @@ declare const Dialog: import('vue').DefineSetupFnComponent<DialogProps, {
|
|
|
36
37
|
visibilityChange: (isVisible: boolean) => boolean;
|
|
37
38
|
}, {}, Pick<BaseDialogProps, "forceFooterDivider" | "forceHeaderDivider" | "isLoading"> & HasCloseMode & {
|
|
38
39
|
/** Additional class name. */
|
|
39
|
-
class?:
|
|
40
|
+
class?: ClassValue;
|
|
40
41
|
/** Whether the dialog is open. */
|
|
41
42
|
isOpen?: boolean;
|
|
42
43
|
/** Size variant. */
|
|
@@ -9,6 +9,6 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
11
|
declare const Divider: import('vue').DefineSetupFnComponent<DividerProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
|
-
class?:
|
|
12
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export default Divider;
|
|
@@ -9,6 +9,6 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
|
9
9
|
* @return Vue element.
|
|
10
10
|
*/
|
|
11
11
|
declare const DragHandle: import('vue').DefineSetupFnComponent<DragHandleProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
|
-
class?:
|
|
12
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
13
13
|
} & {}, import('vue').PublicProps>;
|
|
14
14
|
export default DragHandle;
|
|
@@ -24,7 +24,7 @@ declare const ExpansionPanel: import('vue').DefineSetupFnComponent<ExpansionPane
|
|
|
24
24
|
close: (event: MouseEvent) => boolean;
|
|
25
25
|
toggleOpen: (shouldOpen: boolean, event: MouseEvent) => boolean;
|
|
26
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
|
-
class?:
|
|
27
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
28
28
|
} & {
|
|
29
29
|
/** Props to pass to the toggle button (minus those already set by the ExpansionPanel). */
|
|
30
30
|
toggleButtonProps?: {
|
|
@@ -8,6 +8,6 @@ export type FlagProps = VueToJSXProps<UIProps, 'Text'>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Text"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Flag;
|
|
@@ -16,7 +16,7 @@ export { CLASSNAME, COMPONENT_NAME };
|
|
|
16
16
|
* @return Vue element.
|
|
17
17
|
*/
|
|
18
18
|
declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "hAlign" | "vAlign"> & {
|
|
19
|
-
class?:
|
|
19
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
20
20
|
} & {
|
|
21
21
|
/** Customize the root element. */
|
|
22
22
|
as?: string;
|
|
@@ -37,7 +37,7 @@ export type GenericBlockProps = VueToJSXProps<UIProps, GenericBlockPropsToOverri
|
|
|
37
37
|
* - `actions` slot => One or more actions to set after the element.
|
|
38
38
|
*/
|
|
39
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
|
-
class?:
|
|
40
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
41
41
|
} & {
|
|
42
42
|
/** Customize the root element tag. */
|
|
43
43
|
as?: string;
|
|
@@ -4,6 +4,6 @@ export type GridColumnProps = VueToJSXProps<UIProps>;
|
|
|
4
4
|
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
5
5
|
export type { GridColumnGapSize };
|
|
6
6
|
declare const GridColumn: import('vue').DefineSetupFnComponent<GridColumnProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
7
|
-
class?:
|
|
7
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
8
8
|
} & {}, import('vue').PublicProps>;
|
|
9
9
|
export default GridColumn;
|
|
@@ -8,6 +8,6 @@ export type HeadingVueProps = VueToJSXProps<HeadingProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Heading;
|
|
@@ -8,6 +8,6 @@ export type IconProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default Icon;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HorizontalAlignment, Theme } from '@lumx/core/js/constants';
|
|
2
|
+
import { ClassValue } from '../../utils/VueToJSX';
|
|
2
3
|
type ImageCaptionProps = {
|
|
3
4
|
as?: 'div' | 'figcaption';
|
|
4
5
|
align?: HorizontalAlignment;
|
|
5
6
|
baseClassName?: string;
|
|
6
7
|
captionStyle?: Record<string, any>;
|
|
7
|
-
class?:
|
|
8
|
+
class?: ClassValue;
|
|
8
9
|
description?: any;
|
|
9
10
|
descriptionProps?: Record<string, any>;
|
|
10
11
|
tags?: any;
|
|
@@ -8,6 +8,6 @@ export type InlineListProps = VueToJSXProps<UIProps, 'items'>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const InlineList: import('vue').DefineSetupFnComponent<InlineListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "items"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default InlineList;
|
|
@@ -8,6 +8,6 @@ export type InputHelperProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default InputHelper;
|
|
@@ -8,6 +8,6 @@ export type InputLabelProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default InputLabel;
|
|
@@ -14,7 +14,7 @@ export declare const emitSchema: {
|
|
|
14
14
|
declare const Lightbox: import('vue').DefineSetupFnComponent<LightboxProps, {
|
|
15
15
|
close: () => boolean;
|
|
16
16
|
}, {}, Omit<BaseLightboxProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "aria-label" | "theme" | "aria-labelledby"> & {
|
|
17
|
-
class?:
|
|
17
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
18
18
|
} & {
|
|
19
19
|
/** Reference to the element that triggered lightbox opening (gets focus back on close). */
|
|
20
20
|
parentElement?: HTMLElement;
|
|
@@ -13,7 +13,7 @@ export declare const emitSchema: {
|
|
|
13
13
|
declare const Link: import('vue').DefineSetupFnComponent<LinkProps, {
|
|
14
14
|
click: (event: MouseEvent) => boolean;
|
|
15
15
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
16
|
-
class?:
|
|
16
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
17
17
|
} & {
|
|
18
18
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
19
|
}, import('vue').PublicProps>;
|
|
@@ -12,7 +12,7 @@ export { COMPONENT_NAME };
|
|
|
12
12
|
* @return Vue element.
|
|
13
13
|
*/
|
|
14
14
|
declare const LinkPreview: import('vue').DefineSetupFnComponent<LinkPreviewProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Thumbnail" | "Link" | "TitleHeading"> & {
|
|
15
|
-
class?:
|
|
15
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
16
16
|
} & {
|
|
17
17
|
/** Customize the title heading tag. */
|
|
18
18
|
titleHeading?: string;
|
|
@@ -8,6 +8,6 @@ export type ListProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const List: import('vue').DefineSetupFnComponent<ListProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default List;
|
|
@@ -8,6 +8,6 @@ export type ListDividerProps = VueToJSXProps<UIProps>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ListDivider: import('vue').DefineSetupFnComponent<ListDividerProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default ListDivider;
|
|
@@ -8,14 +8,14 @@ export declare const emitSchema: {
|
|
|
8
8
|
declare const _default: import('vue').DefineSetupFnComponent<ListItemProps, {
|
|
9
9
|
click: (event: MouseEvent) => boolean;
|
|
10
10
|
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "before" | "after" | "linkRef"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {
|
|
13
13
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
14
14
|
}, import('vue').PublicProps> & {
|
|
15
15
|
Action: import('vue').DefineSetupFnComponent<import('./ListItemAction').ListItemActionProps, {
|
|
16
16
|
click: (event: MouseEvent) => boolean;
|
|
17
17
|
}, {}, Omit<import('@lumx/core/js/components/RawClickable').BaseClickableProps & import('@lumx/core/js/types').HasClassName, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
18
|
-
class?:
|
|
18
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
19
19
|
} & {
|
|
20
20
|
as?: import('@lumx/core/js/components/RawClickable').ClickableElement;
|
|
21
21
|
href?: string;
|
|
@@ -19,7 +19,7 @@ export declare const emitSchema: {
|
|
|
19
19
|
declare const ListItemAction: import('vue').DefineSetupFnComponent<ListItemActionProps, {
|
|
20
20
|
click: (event: MouseEvent) => boolean;
|
|
21
21
|
}, {}, Omit<BaseClickableProps & HasClassName, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
22
|
-
class?:
|
|
22
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
23
23
|
} & {
|
|
24
24
|
/** Customize the rendered element. */
|
|
25
25
|
as?: ClickableElement;
|
|
@@ -8,6 +8,6 @@ export type ListSectionProps = VueToJSXProps<UIProps, 'id' | 'Text'>;
|
|
|
8
8
|
* @return Vue element.
|
|
9
9
|
*/
|
|
10
10
|
declare const ListSection: import('vue').DefineSetupFnComponent<ListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "id" | "children" | "Text"> & {
|
|
11
|
-
class?:
|
|
11
|
+
class?: import('../../utils/VueToJSX').ClassValue;
|
|
12
12
|
} & {}, import('vue').PublicProps>;
|
|
13
13
|
export default ListSection;
|