@lumx/vue 4.19.1-alpha.2 → 4.19.1-alpha.4
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/components/tabs/Tab.d.ts +3 -15
- package/index.js +1818 -1832
- package/index.js.map +1 -1
- package/package.json +3 -3
package/components/tabs/Tab.d.ts
CHANGED
|
@@ -2,24 +2,12 @@ import { SlotsType } from 'vue';
|
|
|
2
2
|
import { TabProps as UIProps, TabPropsToOverride, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Tabs/Tab';
|
|
3
3
|
import { HyphenatedAriaProps, VueToJSXProps } from '../../utils/VueToJSX';
|
|
4
4
|
export type TabProps = Omit<VueToJSXProps<UIProps, TabPropsToOverride>, HyphenatedAriaProps>;
|
|
5
|
-
/**
|
|
6
|
-
* Props exposed to the `action` scoped slot of `<Tab>`. Providing the slot switches the tab
|
|
7
|
-
* into **nav-link mode**, rendering the slot's element (e.g. `<a>` or a router `Link`) instead
|
|
8
|
-
* of a `<button role="tab">`. Spread `actionProps` on the slot root; icon/label render inside it.
|
|
9
|
-
*/
|
|
10
|
-
export interface TabActionSlotProps {
|
|
11
|
-
/** Props to spread on the custom action (link) element. */
|
|
12
|
-
actionProps: Record<string, any>;
|
|
13
|
-
/** Whether the tab is active (drives `aria-current="page"`). */
|
|
14
|
-
isActive: boolean;
|
|
15
|
-
/** Whether the tab is disabled. */
|
|
16
|
-
isDisabled: boolean;
|
|
17
|
-
}
|
|
18
5
|
export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
|
|
19
6
|
/**
|
|
20
7
|
* Tab component.
|
|
21
8
|
*
|
|
22
|
-
* Implements WAI-ARIA `tab` role
|
|
9
|
+
* Implements the WAI-ARIA `tab` role inside a `TabProvider`; renders a plain nav-link
|
|
10
|
+
* (`aria-current`, no tab role) outside one.
|
|
23
11
|
*
|
|
24
12
|
* @param props Component props.
|
|
25
13
|
* @return Vue element.
|
|
@@ -32,7 +20,7 @@ declare const Tab: import('vue').DefineSetupFnComponent<TabProps, {
|
|
|
32
20
|
focus: (_event?: FocusEvent) => boolean;
|
|
33
21
|
keypress: (_event?: KeyboardEvent) => boolean;
|
|
34
22
|
}, SlotsType<{
|
|
35
|
-
action:
|
|
23
|
+
action: void;
|
|
36
24
|
}>, TabProps & {
|
|
37
25
|
onFocus?: ((_event?: FocusEvent | undefined) => any) | undefined;
|
|
38
26
|
onKeypress?: ((_event?: KeyboardEvent | undefined) => any) | undefined;
|