@lumx/vue 4.1.1-alpha.3 → 4.1.1-alpha.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.
@@ -0,0 +1,9 @@
1
+ export declare const emitSchema: {
2
+ click: (event: MouseEvent) => boolean;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ click: (event: MouseEvent) => void;
6
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
+ onClick?: ((event: MouseEvent) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '@lumx/core/js/components/Button/Button';
2
+ import { ButtonGroupProps } from '@lumx/core/js/components/Button/ButtonGroup';
3
+ import { default as Button } from './Button.vue';
4
+ import { default as ButtonGroup } from './ButtonGroup.vue';
5
+ export { Button, ButtonGroup };
6
+ export type { ButtonProps, ButtonGroupProps };
@@ -1,4 +1,4 @@
1
- import { IconProps, IconSizes } from '../../../../lumx-core/src/js/components/Icon';
1
+ import { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
2
2
  import { default as Icon } from './Icon.vue';
3
3
  export { Icon };
4
4
  export type { IconProps, IconSizes };
@@ -1,2 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
12
  export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,4 +1,4 @@
1
- import { InputHelperProps } from '../../../../lumx-core/src/js/components/InputHelper';
1
+ import { InputHelperProps } from '@lumx/core/js/components/InputHelper';
2
2
  import { default as InputHelper } from './InputHelper.vue';
3
3
  export { InputHelper };
4
4
  export type { InputHelperProps };
@@ -1,2 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
12
  export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,4 +1,4 @@
1
- import { InputLabelProps } from '../../../../lumx-core/src/js/components/InputLabel';
1
+ import { InputLabelProps } from '@lumx/core/js/components/InputLabel';
2
2
  import { default as InputLabel } from './InputLabel.vue';
3
3
  export { InputLabel };
4
4
  export type { InputLabelProps };
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
2
+ 'tooltip-label': unknown;
3
+ }, any>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { TextProps } from '@lumx/core/js/components/Text';
2
+ import { default as Text } from './Text.vue';
3
+ export { Text };
4
+ export type { TextProps };
@@ -0,0 +1,15 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { GenericProps, DisabledState } from '@lumx/core/js/utils/disabledState';
3
+ interface Output {
4
+ /** Is disabled or aria-disabled */
5
+ isAnyDisabled: ComputedRef<boolean>;
6
+ disabledStateProps: ComputedRef<DisabledState>;
7
+ }
8
+ /**
9
+ * Resolve disabled state from props.
10
+ * (handles `disabled`, `isDisabled` and `aria-disabled`)
11
+ *
12
+ * @params component props
13
+ */
14
+ export declare function useDisableStateProps(props: GenericProps | ComputedRef<GenericProps> | (() => GenericProps)): Output;
15
+ export {};
@@ -0,0 +1,3 @@
1
+ import { DisabledStateContextValue } from '@lumx/core/js/utils/disabledState';
2
+ export declare function useDisabledStateContext(): DisabledStateContextValue;
3
+ export declare function provideDisabledState(value: DisabledStateContextValue): void;
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * Compute a tooltip label based on a label element `innerText` if the text overflows.
4
+ */
5
+ export declare function useOverflowTooltipLabel(labelRef: Ref<HTMLElement | null | undefined>): {
6
+ tooltipLabel: Ref<string | undefined, string | undefined>;
7
+ };
@@ -1,6 +1,6 @@
1
- import { JSXElement } from '../../../lumx-core/src/js/types';
1
+ import { JSXElement } from '@lumx/core/js/types';
2
2
  /**
3
3
  * Returns the slot casted as a JSXElement
4
4
  * @returns () => JSXElement | null
5
5
  */
6
- export declare const useSlot: (slot?: string) => () => JSXElement | null;
6
+ export declare const useSlot: (slot?: string) => <T = JSXElement>() => T | null;
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../../lumx-core/src/js/constants';
1
+ import { Theme } from '@lumx/core/js/constants';
2
2
  export interface UseTheme {
3
3
  defaultTheme?: Theme;
4
4
  }
package/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export * from '../../lumx-core/src/js/constants';
2
- export * from '../../lumx-core/src/js/types';
1
+ export * from '@lumx/core/js/constants';
2
+ export * from '@lumx/core/js/types';
3
3
  export * from './components/input-helper';
4
4
  export * from './components/input-label';
5
+ export * from './components/button';
5
6
  export * from './components/icon';
7
+ export * from './components/text';