@lumx/vue 4.2.1-alpha.1 → 4.2.1-alpha.10

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 (40) hide show
  1. package/components/button/Button.d.ts +21 -0
  2. package/components/button/ButtonGroup.d.ts +13 -0
  3. package/components/button/IconButton.d.ts +20 -0
  4. package/components/button/index.d.ts +3 -4
  5. package/components/flag/Flag.d.ts +13 -0
  6. package/components/flag/index.d.ts +1 -1
  7. package/components/flex-box/FlexBox.d.ts +20 -0
  8. package/components/flex-box/index.d.ts +2 -2
  9. package/components/heading/Heading.d.ts +13 -0
  10. package/components/heading/HeadingLevelProvider.d.ts +12 -0
  11. package/components/heading/index.d.ts +2 -2
  12. package/components/icon/Icon.d.ts +13 -0
  13. package/components/icon/index.d.ts +1 -1
  14. package/components/input-helper/InputHelper.d.ts +13 -0
  15. package/components/input-helper/index.d.ts +1 -2
  16. package/components/input-label/InputLabel.d.ts +13 -0
  17. package/components/input-label/index.d.ts +1 -2
  18. package/components/message/Message.d.ts +25 -0
  19. package/components/message/index.d.ts +1 -2
  20. package/components/text/Text.d.ts +13 -0
  21. package/components/text/index.d.ts +1 -1
  22. package/composables/useDisableStateProps.d.ts +4 -3
  23. package/index.js +1128 -1197
  24. package/index.js.map +1 -1
  25. package/package.json +3 -3
  26. package/utils/VueToJSX.d.ts +5 -12
  27. package/utils/VueToJSXProps.d.ts +11 -0
  28. package/components/button/Button.vue.d.ts +0 -9
  29. package/components/button/ButtonGroup.vue.d.ts +0 -17
  30. package/components/button/IconButton.vue.d.ts +0 -9
  31. package/components/flag/Flag.vue.d.ts +0 -17
  32. package/components/flex-box/FlexBox.vue.d.ts +0 -17
  33. package/components/flex-box/types.d.ts +0 -5
  34. package/components/heading/Heading.vue.d.ts +0 -17
  35. package/components/heading/HeadingLevelProvider.vue.d.ts +0 -21
  36. package/components/icon/Icon.vue.d.ts +0 -2
  37. package/components/input-helper/InputHelper.vue.d.ts +0 -17
  38. package/components/input-label/InputLabel.vue.d.ts +0 -17
  39. package/components/message/Message.vue.d.ts +0 -17
  40. package/components/text/Text.vue.d.ts +0 -4
@@ -0,0 +1,21 @@
1
+ import { ButtonProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Button/Button';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ButtonProps = VueToJSXProps<UIProps>;
4
+ export declare const emitSchema: {
5
+ click: (event: MouseEvent) => boolean;
6
+ };
7
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
+ /**
9
+ * Button component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const Button: import('vue').DefineSetupFnComponent<ButtonProps, {
15
+ click: (event: MouseEvent) => boolean;
16
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
17
+ class?: string;
18
+ } & {
19
+ onClick?: ((event: MouseEvent) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default Button;
@@ -0,0 +1,13 @@
1
+ import { ButtonGroupProps as UIProps } from '@lumx/core/js/components/Button/ButtonGroup';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ButtonGroupProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * ButtonGroup component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default ButtonGroup;
@@ -0,0 +1,20 @@
1
+ import { IconButtonProps as UIProps } from '@lumx/core/js/components/Button/IconButton';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type IconButtonProps = VueToJSXProps<UIProps>;
4
+ export declare const emitSchema: {
5
+ click: (event: MouseEvent) => boolean;
6
+ };
7
+ /**
8
+ * IconButton component.
9
+ *
10
+ * @param props Component props.
11
+ * @return Vue element.
12
+ */
13
+ declare const IconButton: import('vue').DefineSetupFnComponent<IconButtonProps, {
14
+ click: (event: MouseEvent) => boolean;
15
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
16
+ class?: string;
17
+ } & {
18
+ onClick?: ((event: MouseEvent) => any) | undefined;
19
+ }, import('vue').PublicProps>;
20
+ export default IconButton;
@@ -1,8 +1,7 @@
1
- import { ButtonProps } from '@lumx/core/js/components/Button/Button';
2
1
  import { IconButtonProps } from '@lumx/core/js/components/Button/IconButton';
3
2
  import { ButtonGroupProps } from '@lumx/core/js/components/Button/ButtonGroup';
4
- import { default as Button } from './Button.vue';
5
- import { default as IconButton } from './IconButton.vue';
6
- import { default as ButtonGroup } from './ButtonGroup.vue';
3
+ import { default as Button, ButtonProps } from './Button';
4
+ import { default as IconButton } from './IconButton';
5
+ import { default as ButtonGroup } from './ButtonGroup';
7
6
  export { Button, ButtonGroup, IconButton };
8
7
  export type { ButtonProps, ButtonGroupProps, IconButtonProps };
@@ -0,0 +1,13 @@
1
+ import { FlagProps as UIProps } from '@lumx/core/js/components/Flag';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type FlagProps = VueToJSXProps<UIProps, 'Text'>;
4
+ /**
5
+ * Flag component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "Text"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default Flag;
@@ -1,4 +1,4 @@
1
1
  import { FlagProps } from '@lumx/core/js/components/Flag';
2
- import { default as Flag } from './Flag.vue';
2
+ import { default as Flag } from './Flag';
3
3
  export { Flag };
4
4
  export type { FlagProps };
@@ -0,0 +1,20 @@
1
+ import { FlexBoxProps as UIProps, CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/FlexBox';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type FlexBoxProps = VueToJSXProps<UIProps> & {
4
+ /** Customize the root element. */
5
+ as?: string;
6
+ };
7
+ export { CLASSNAME, COMPONENT_NAME };
8
+ /**
9
+ * FlexBox component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
15
+ class?: string;
16
+ } & {
17
+ /** Customize the root element. */
18
+ as?: string;
19
+ } & {}, import('vue').PublicProps>;
20
+ export default FlexBox;
@@ -1,4 +1,4 @@
1
- import { default as FlexBox } from './FlexBox.vue';
1
+ import { default as FlexBox } from './FlexBox';
2
2
  export { FlexBox };
3
- export type { FlexBoxProps } from './types';
3
+ export type { FlexBoxProps } from './FlexBox';
4
4
  export type { MarginAutoAlignment, GapSize, FlexVerticalAlignment, FlexHorizontalAlignment, } from '@lumx/core/js/components/FlexBox';
@@ -0,0 +1,13 @@
1
+ import { HeadingProps } from '@lumx/core/js/components/Heading';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type HeadingVueProps = VueToJSXProps<HeadingProps>;
4
+ /**
5
+ * Heading component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default Heading;
@@ -0,0 +1,12 @@
1
+ export interface HeadingLevelProviderProps {
2
+ /** The heading level to start at. If left undefined, the parent context will be used, if any. */
3
+ level?: number;
4
+ }
5
+ /**
6
+ * HeadingLevelProvider component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const HeadingLevelProvider: import('vue').DefineSetupFnComponent<HeadingLevelProviderProps, {}, {}, HeadingLevelProviderProps & {}, import('vue').PublicProps>;
12
+ export default HeadingLevelProvider;
@@ -1,6 +1,6 @@
1
1
  import { HeadingProps } from '@lumx/core/js/components/Heading';
2
- import { default as Heading } from './Heading.vue';
3
- import { default as HeadingLevelProvider } from './HeadingLevelProvider.vue';
2
+ import { default as Heading } from './Heading';
3
+ import { default as HeadingLevelProvider } from './HeadingLevelProvider';
4
4
  import { useHeadingLevel } from './useHeadingLevel';
5
5
  export { Heading, HeadingLevelProvider, useHeadingLevel };
6
6
  export type { HeadingProps };
@@ -0,0 +1,13 @@
1
+ import { IconProps as UIProps } from '@lumx/core/js/components/Icon';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type IconProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * Icon component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default Icon;
@@ -1,4 +1,4 @@
1
1
  import { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
2
- import { default as Icon } from './Icon.vue';
2
+ import { default as Icon } from './Icon';
3
3
  export { Icon };
4
4
  export type { IconProps, IconSizes };
@@ -0,0 +1,13 @@
1
+ import { InputHelperProps as UIProps } from '@lumx/core/js/components/InputHelper';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type InputHelperProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * InputHelper component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default InputHelper;
@@ -1,4 +1,3 @@
1
- import { InputHelperProps } from '@lumx/core/js/components/InputHelper';
2
- import { default as InputHelper } from './InputHelper.vue';
1
+ import { default as InputHelper, InputHelperProps } from './InputHelper';
3
2
  export { InputHelper };
4
3
  export type { InputHelperProps };
@@ -0,0 +1,13 @@
1
+ import { InputLabelProps as UIProps } from '@lumx/core/js/components/InputLabel';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type InputLabelProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * InputLabel component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default InputLabel;
@@ -1,4 +1,3 @@
1
- import { InputLabelProps } from '@lumx/core/js/components/InputLabel';
2
- import { default as InputLabel } from './InputLabel.vue';
1
+ import { default as InputLabel, InputLabelProps } from './InputLabel';
3
2
  export { InputLabel };
4
3
  export type { InputLabelProps };
@@ -0,0 +1,25 @@
1
+ import { MessageProps as UIProps } from '@lumx/core/js/components/Message';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type MessageProps = VueToJSXProps<Omit<UIProps, 'closeButtonProps'>> & {
4
+ /** label to be used for the close button */
5
+ closeButtonLabel?: string;
6
+ };
7
+ export interface MessageEmits {
8
+ /** event emited when the Message is closed through the Close Button */
9
+ close: [];
10
+ }
11
+ /**
12
+ * Message component.
13
+ *
14
+ * @param props Component props.
15
+ * @return Vue element.
16
+ */
17
+ declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "children" | "ref" | "onChange" | "onClick"> & {
18
+ class?: string;
19
+ } & {
20
+ /** label to be used for the close button */
21
+ closeButtonLabel?: string;
22
+ } & {
23
+ onClose?: ((...args: any[]) => any) | undefined;
24
+ }, import('vue').PublicProps>;
25
+ export default Message;
@@ -1,4 +1,3 @@
1
- import { MessageProps } from '@lumx/core/js/components/Message';
2
- import { default as Message } from './Message.vue';
1
+ import { default as Message, MessageProps } from './Message';
3
2
  export { Message };
4
3
  export type { MessageProps };
@@ -0,0 +1,13 @@
1
+ import { TextProps } from '@lumx/core/js/components/Text';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TextVueProps = VueToJSXProps<TextProps>;
4
+ /**
5
+ * Text component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const Text: import('vue').DefineSetupFnComponent<TextVueProps, {}, {}, Omit<TextProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default Text;
@@ -1,4 +1,4 @@
1
1
  import { TextProps } from '@lumx/core/js/components/Text';
2
- import { default as Text } from './Text.vue';
2
+ import { default as Text } from './Text';
3
3
  export { Text };
4
4
  export type { TextProps };
@@ -1,9 +1,10 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { GenericProps, DisabledState } from '@lumx/core/js/utils/disabledState';
3
- interface Output {
3
+ interface Output<TProps extends GenericProps> {
4
4
  /** Is disabled or aria-disabled */
5
- isAnyDisabled: ComputedRef<boolean>;
5
+ isAnyDisabled: ComputedRef<boolean | undefined>;
6
6
  disabledStateProps: ComputedRef<DisabledState>;
7
+ otherProps: ComputedRef<Omit<TProps, 'disabled' | 'isDisabled' | 'aria-disabled' | 'ariaDisabled'>>;
7
8
  }
8
9
  /**
9
10
  * Resolve disabled state from props.
@@ -11,5 +12,5 @@ interface Output {
11
12
  *
12
13
  * @params component props
13
14
  */
14
- export declare function useDisableStateProps(props: GenericProps | ComputedRef<GenericProps> | (() => GenericProps)): Output;
15
+ export declare function useDisableStateProps<TProps extends GenericProps>(props: TProps | ComputedRef<TProps> | (() => TProps)): Output<TProps>;
15
16
  export {};