@lumx/vue 4.3.2-alpha.0 → 4.3.2-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 (51) hide show
  1. package/CONTRIBUTING.md +0 -12
  2. package/components/badge/Badge.d.ts +13 -0
  3. package/components/badge/BadgeWrapper.d.ts +8 -0
  4. package/components/badge/index.d.ts +4 -0
  5. package/components/button/Button.d.ts +1 -1
  6. package/components/button/ButtonGroup.d.ts +1 -1
  7. package/components/button/IconButton.d.ts +1 -1
  8. package/components/checkbox/Checkbox.d.ts +1 -1
  9. package/components/divider/Divider.d.ts +14 -0
  10. package/components/divider/index.d.ts +2 -0
  11. package/components/flag/Flag.d.ts +1 -1
  12. package/components/flex-box/FlexBox.d.ts +1 -1
  13. package/components/grid-column/GridColumn.d.ts +9 -0
  14. package/components/grid-column/GridColumn.stories.d.ts +42 -0
  15. package/components/grid-column/index.d.ts +3 -0
  16. package/components/heading/Heading.d.ts +1 -1
  17. package/components/icon/Icon.d.ts +1 -1
  18. package/components/input-helper/InputHelper.d.ts +1 -1
  19. package/components/input-label/InputLabel.d.ts +1 -1
  20. package/components/link/Link.d.ts +21 -0
  21. package/components/link/index.d.ts +2 -0
  22. package/components/message/Message.d.ts +1 -1
  23. package/components/radio-button/RadioButton.d.ts +21 -0
  24. package/components/radio-button/RadioGroup.d.ts +14 -0
  25. package/components/radio-button/index.d.ts +4 -0
  26. package/components/skeleton/SkeletonCircle.d.ts +14 -0
  27. package/components/skeleton/SkeletonRectangle.d.ts +14 -0
  28. package/components/skeleton/SkeletonTypography.d.ts +14 -0
  29. package/components/skeleton/index.d.ts +10 -0
  30. package/components/switch/Switch.d.ts +21 -0
  31. package/components/switch/index.d.ts +3 -0
  32. package/components/table/Table.d.ts +7 -0
  33. package/components/table/TableBody.d.ts +7 -0
  34. package/components/table/TableCell.d.ts +16 -0
  35. package/components/table/TableHeader.d.ts +7 -0
  36. package/components/table/TableRow.d.ts +13 -0
  37. package/components/table/index.d.ts +10 -0
  38. package/components/text/Text.d.ts +1 -1
  39. package/components/thumbnail/Stories/ThumbnailClickable.vue.d.ts +20 -0
  40. package/components/thumbnail/Thumbnail.d.ts +35 -0
  41. package/components/thumbnail/Thumbnail.stories.d.ts +161 -0
  42. package/components/thumbnail/index.d.ts +4 -0
  43. package/components/thumbnail/useFocusPointStyle.d.ts +20 -0
  44. package/components/thumbnail/useImageLoad.d.ts +10 -0
  45. package/composables/useTheme.d.ts +4 -3
  46. package/index.d.ts +9 -0
  47. package/index.js +2145 -956
  48. package/index.js.map +1 -1
  49. package/package.json +12 -7
  50. package/stories/utils/useAttrsWithoutHandlers.d.ts +1 -1
  51. package/utils/VueToJSX.d.ts +3 -1
package/CONTRIBUTING.md CHANGED
@@ -41,18 +41,6 @@ Before opening a Pull Request, please see the Submission Guidelines below.
41
41
  You can request a new feature by submitting an issue to our [GitHub Repository](https://github.com/lumapps/design-system/issues).
42
42
  If you would like to implement a new feature then consider what kind of change it is, discuss it with us before hand in your issue, so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
43
43
 
44
- ## <a name="create-a-new-react-component-"></a> Want to create a new React Component?
45
-
46
- The first step to create a new React component is to run:
47
-
48
- ```
49
- yarn scaffold
50
- ```
51
-
52
- This script will generate a TSX file for the component code, a TSX file for the component tests and an MDX file to demo this component.
53
-
54
- To export your component into the `@lumx/react` NPM package, you also have to make sure to update the `src/index.tsx` file.
55
-
56
44
  ## <a name="submission-guidelines"></a> Submission guidelines
57
45
 
58
46
  ### Submitting an issue
@@ -0,0 +1,13 @@
1
+ import { BadgeProps as UIProps } from '@lumx/core/js/components/Badge';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type BadgeProps = VueToJSXProps<UIProps>;
4
+ /**
5
+ * Badge component.
6
+ *
7
+ * @param props Component props.
8
+ * @return Vue element.
9
+ */
10
+ declare const Badge: import('vue').DefineSetupFnComponent<BadgeProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
+ class?: string;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default Badge;
@@ -0,0 +1,8 @@
1
+ import { BadgeWrapperProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Badge/BadgeWrapper';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type BadgeWrapperProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ declare const BadgeWrapper: import('vue').DefineSetupFnComponent<BadgeWrapperProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
6
+ class?: string;
7
+ } & {}, import('vue').PublicProps>;
8
+ export default BadgeWrapper;
@@ -0,0 +1,4 @@
1
+ import { default as Badge, BadgeProps } from './Badge';
2
+ import { default as BadgeWrapper, BadgeWrapperProps } from './BadgeWrapper';
3
+ export { Badge, BadgeWrapper };
4
+ export type { BadgeProps, BadgeWrapperProps };
@@ -13,7 +13,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
13
13
  */
14
14
  declare const Button: import('vue').DefineSetupFnComponent<ButtonProps, {
15
15
  click: (event: MouseEvent) => boolean;
16
- }, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
16
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
17
17
  class?: string;
18
18
  } & {
19
19
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -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" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const ButtonGroup: import('vue').DefineSetupFnComponent<ButtonGroupProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default ButtonGroup;
@@ -12,7 +12,7 @@ export declare const emitSchema: {
12
12
  */
13
13
  declare const IconButton: import('vue').DefineSetupFnComponent<IconButtonProps, {
14
14
  click: (event: MouseEvent) => boolean;
15
- }, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
15
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
16
16
  class?: string;
17
17
  } & {
18
18
  onClick?: ((event: MouseEvent) => any) | undefined;
@@ -13,7 +13,7 @@ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS, INTERMEDIATE_STATE };
13
13
  */
14
14
  declare const Checkbox: import('vue').DefineSetupFnComponent<CheckboxProps, {
15
15
  change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
16
- }, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange" | "inputRef" | "inputId"> & {
16
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "inputRef" | "inputId"> & {
17
17
  class?: string;
18
18
  } & {
19
19
  onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
@@ -0,0 +1,14 @@
1
+ import { DividerProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Divider';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type DividerProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ /**
6
+ * Divider component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const Divider: import('vue').DefineSetupFnComponent<DividerProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
12
+ class?: string;
13
+ } & {}, import('vue').PublicProps>;
14
+ export default Divider;
@@ -0,0 +1,2 @@
1
+ export { default as Divider } from './Divider';
2
+ export type { DividerProps } from './Divider';
@@ -7,7 +7,7 @@ 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" | "ref" | "children" | "onClick" | "onChange" | "Text"> & {
10
+ declare const Flag: import('vue').DefineSetupFnComponent<FlagProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "Text"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default Flag;
@@ -11,7 +11,7 @@ export { CLASSNAME, COMPONENT_NAME };
11
11
  * @param props Component props.
12
12
  * @return Vue element.
13
13
  */
14
- declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
14
+ declare const FlexBox: import('vue').DefineSetupFnComponent<FlexBoxProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
15
15
  class?: string;
16
16
  } & {
17
17
  /** Customize the root element. */
@@ -0,0 +1,9 @@
1
+ import { GridColumnProps as UIProps, GridColumnGapSize, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/GridColumn';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type GridColumnProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ export type { GridColumnGapSize };
6
+ declare const GridColumn: import('vue').DefineSetupFnComponent<GridColumnProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
7
+ class?: string;
8
+ } & {}, import('vue').PublicProps>;
9
+ export default GridColumn;
@@ -0,0 +1,42 @@
1
+ declare const _default: {
2
+ component: any;
3
+ render: any;
4
+ argTypes: {
5
+ nbItems: {
6
+ control: string;
7
+ };
8
+ gap: {
9
+ control: {
10
+ type: "select" | "inline-radio";
11
+ };
12
+ options: (import('../..').GridColumnGapSize | undefined)[];
13
+ mapping: Record<string, import('../..').GridColumnGapSize | undefined> | undefined;
14
+ };
15
+ itemMinWidth: {
16
+ control: string;
17
+ };
18
+ maxColumns: {
19
+ control: string;
20
+ };
21
+ };
22
+ args: {
23
+ nbItems: number;
24
+ as?: any;
25
+ children?: import('react').ReactNode;
26
+ gap?: import('../..').GridColumnGapSize | undefined;
27
+ maxColumns?: number | undefined;
28
+ itemMinWidth?: number | undefined;
29
+ style?: any;
30
+ ref?: import('../..').CommonRef;
31
+ className?: string | undefined;
32
+ };
33
+ title: string;
34
+ };
35
+ export default _default;
36
+ export declare const Default: {};
37
+ export declare const Columns: {
38
+ args: {
39
+ maxColumns: number;
40
+ itemMinWidth: number;
41
+ };
42
+ };
@@ -0,0 +1,3 @@
1
+ export { default as GridColumn } from './GridColumn';
2
+ export type { GridColumnProps, GridColumnGapSize } from './GridColumn';
3
+ export { CLASSNAME as GRID_COLUMN_CLASSNAME, COMPONENT_NAME as GRID_COLUMN_COMPONENT_NAME } from './GridColumn';
@@ -7,7 +7,7 @@ export type HeadingVueProps = VueToJSXProps<HeadingProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const Heading: import('vue').DefineSetupFnComponent<HeadingVueProps, {}, {}, Omit<HeadingProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default Heading;
@@ -7,7 +7,7 @@ export type IconProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const Icon: import('vue').DefineSetupFnComponent<IconProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default Icon;
@@ -7,7 +7,7 @@ export type InputHelperProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const InputHelper: import('vue').DefineSetupFnComponent<InputHelperProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default InputHelper;
@@ -7,7 +7,7 @@ export type InputLabelProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const InputLabel: import('vue').DefineSetupFnComponent<InputLabelProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default InputLabel;
@@ -0,0 +1,21 @@
1
+ import { LinkProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Link';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type LinkProps = VueToJSXProps<UIProps, 'label'>;
4
+ export declare const emitSchema: {
5
+ click: (event: Event) => boolean;
6
+ };
7
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
+ /**
9
+ * Link component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const Link: import('vue').DefineSetupFnComponent<LinkProps, {
15
+ click: (event: Event) => boolean;
16
+ }, {}, Omit<UIProps, "className" | "label" | "children" | "ref" | "onChange" | "onClick"> & {
17
+ class?: string;
18
+ } & {
19
+ onClick?: ((event: Event) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default Link;
@@ -0,0 +1,2 @@
1
+ export { default as Link } from './Link';
2
+ export type { LinkProps } from './Link';
@@ -14,7 +14,7 @@ export interface MessageEmits {
14
14
  * @param props Component props.
15
15
  * @return Vue element.
16
16
  */
17
- declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "ref" | "children" | "onClick" | "onChange"> & {
17
+ declare const Message: import('vue').DefineSetupFnComponent<MessageProps, "close"[], {}, Omit<Omit<UIProps, "closeButtonProps">, "className" | "children" | "ref" | "onChange" | "onClick"> & {
18
18
  class?: string;
19
19
  } & {
20
20
  /** label to be used for the close button */
@@ -0,0 +1,21 @@
1
+ import { RadioButtonProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/RadioButton';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type RadioButtonProps = VueToJSXProps<UIProps, 'inputId' | 'inputRef'>;
4
+ export declare const emitSchema: {
5
+ change: (value?: string, name?: string, event?: Event) => event is Event;
6
+ };
7
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
+ /**
9
+ * RadioButton component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const RadioButton: import('vue').DefineSetupFnComponent<RadioButtonProps, {
15
+ change: (value?: string, name?: string, event?: Event) => event is Event;
16
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "inputRef" | "inputId"> & {
17
+ class?: string;
18
+ } & {
19
+ onChange?: ((value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default RadioButton;
@@ -0,0 +1,14 @@
1
+ import { CLASSNAME, COMPONENT_NAME } from '@lumx/core/js/components/RadioGroup';
2
+ export interface RadioGroupProps {
3
+ /** CSS class name */
4
+ class?: string;
5
+ }
6
+ export { CLASSNAME, COMPONENT_NAME };
7
+ /**
8
+ * RadioGroup component.
9
+ *
10
+ * @param props Component props.
11
+ * @return Vue element.
12
+ */
13
+ declare const RadioGroup: import('vue').DefineSetupFnComponent<RadioGroupProps, {}, {}, RadioGroupProps & {}, import('vue').PublicProps>;
14
+ export default RadioGroup;
@@ -0,0 +1,4 @@
1
+ export { default as RadioButton } from './RadioButton';
2
+ export { default as RadioGroup } from './RadioGroup';
3
+ export type { RadioButtonProps } from './RadioButton';
4
+ export type { RadioGroupProps } from './RadioGroup';
@@ -0,0 +1,14 @@
1
+ import { SkeletonCircleProps as UIProps, SKELETON_CIRCLE_CLASSNAME as CLASSNAME, SKELETON_CIRCLE_COMPONENT_NAME as COMPONENT_NAME, SKELETON_CIRCLE_DEFAULT_PROPS as DEFAULT_PROPS } from '@lumx/core/js/components/Skeleton';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type SkeletonCircleProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ /**
6
+ * SkeletonCircle component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const SkeletonCircle: import('vue').DefineSetupFnComponent<SkeletonCircleProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
12
+ class?: string;
13
+ } & {}, import('vue').PublicProps>;
14
+ export default SkeletonCircle;
@@ -0,0 +1,14 @@
1
+ import { SkeletonRectangleProps as UIProps, SkeletonRectangleVariant, SKELETON_RECTANGLE_CLASSNAME as CLASSNAME, SKELETON_RECTANGLE_COMPONENT_NAME as COMPONENT_NAME, SKELETON_RECTANGLE_DEFAULT_PROPS as DEFAULT_PROPS } from '@lumx/core/js/components/Skeleton';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type SkeletonRectangleProps = VueToJSXProps<UIProps>;
4
+ export { SkeletonRectangleVariant, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ /**
6
+ * SkeletonRectangle component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const SkeletonRectangle: import('vue').DefineSetupFnComponent<SkeletonRectangleProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
12
+ class?: string;
13
+ } & {}, import('vue').PublicProps>;
14
+ export default SkeletonRectangle;
@@ -0,0 +1,14 @@
1
+ import { SkeletonTypographyProps as UIProps, SKELETON_TYPOGRAPHY_CLASSNAME as CLASSNAME, SKELETON_TYPOGRAPHY_COMPONENT_NAME as COMPONENT_NAME, SKELETON_TYPOGRAPHY_DEFAULT_PROPS as DEFAULT_PROPS } from '@lumx/core/js/components/Skeleton';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type SkeletonTypographyProps = VueToJSXProps<UIProps>;
4
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
5
+ /**
6
+ * SkeletonTypography component.
7
+ *
8
+ * @param props Component props.
9
+ * @return Vue element.
10
+ */
11
+ declare const SkeletonTypography: import('vue').DefineSetupFnComponent<SkeletonTypographyProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
12
+ class?: string;
13
+ } & {}, import('vue').PublicProps>;
14
+ export default SkeletonTypography;
@@ -0,0 +1,10 @@
1
+ import { default as SkeletonCircle, SkeletonCircleProps } from './SkeletonCircle';
2
+ import { default as SkeletonRectangle, SkeletonRectangleProps, SkeletonRectangleVariant } from './SkeletonRectangle';
3
+ import { default as SkeletonTypography, SkeletonTypographyProps } from './SkeletonTypography';
4
+ export { SkeletonCircle };
5
+ export type { SkeletonCircleProps };
6
+ export { SkeletonRectangle };
7
+ export type { SkeletonRectangleProps };
8
+ export { SkeletonRectangleVariant };
9
+ export { SkeletonTypography };
10
+ export type { SkeletonTypographyProps };
@@ -0,0 +1,21 @@
1
+ import { SwitchProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Switch';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type SwitchProps = VueToJSXProps<UIProps, 'inputId' | 'inputRef'>;
4
+ export declare const emitSchema: {
5
+ change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
6
+ };
7
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
8
+ /**
9
+ * Switch component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const Switch: import('vue').DefineSetupFnComponent<SwitchProps, {
15
+ change: (isChecked: boolean, value?: string, name?: string, event?: Event) => boolean;
16
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "inputRef" | "inputId"> & {
17
+ class?: string;
18
+ } & {
19
+ onChange?: ((isChecked: boolean, value?: string | undefined, name?: string | undefined, event?: Event | undefined) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default Switch;
@@ -0,0 +1,3 @@
1
+ export { default as Switch } from './Switch';
2
+ export type { SwitchProps } from './Switch';
3
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from './Switch';
@@ -0,0 +1,7 @@
1
+ import { TableProps as UIProps } from '@lumx/core/js/components/Table';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TableProps = VueToJSXProps<UIProps>;
4
+ declare const Table: import('vue').DefineSetupFnComponent<TableProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
5
+ class?: string;
6
+ } & {}, import('vue').PublicProps>;
7
+ export default Table;
@@ -0,0 +1,7 @@
1
+ import { TableBodyProps as UIProps } from '@lumx/core/js/components/Table/TableBody';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TableBodyProps = VueToJSXProps<UIProps>;
4
+ declare const TableBody: import('vue').DefineSetupFnComponent<TableBodyProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
5
+ class?: string;
6
+ } & {}, import('vue').PublicProps>;
7
+ export default TableBody;
@@ -0,0 +1,16 @@
1
+ import { TableCellProps as UIProps, ThOrder, TableCellVariant } from '@lumx/core/js/components/Table/TableCell';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export { ThOrder, TableCellVariant };
4
+ export type { ThOrder as ThOrderType, TableCellVariant as TableCellVariantType, } from '@lumx/core/js/components/Table/TableCell';
5
+ export type TableCellProps = VueToJSXProps<UIProps, 'onHeaderClick'>;
6
+ export declare const emitSchema: {
7
+ headerClick: () => boolean;
8
+ };
9
+ declare const TableCell: import('vue').DefineSetupFnComponent<TableCellProps, {
10
+ headerClick: () => boolean;
11
+ }, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "onHeaderClick"> & {
12
+ class?: string;
13
+ } & {
14
+ onHeaderClick?: (() => any) | undefined;
15
+ }, import('vue').PublicProps>;
16
+ export default TableCell;
@@ -0,0 +1,7 @@
1
+ import { TableHeaderProps as UIProps } from '@lumx/core/js/components/Table/TableHeader';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TableHeaderProps = VueToJSXProps<UIProps>;
4
+ declare const TableHeader: import('vue').DefineSetupFnComponent<TableHeaderProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
5
+ class?: string;
6
+ } & {}, import('vue').PublicProps>;
7
+ export default TableHeader;
@@ -0,0 +1,13 @@
1
+ import { TableRowProps as UIProps } from '@lumx/core/js/components/Table/TableRow';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TableRowProps = VueToJSXProps<UIProps, 'tabIndex' | 'aria-disabled'> & {
4
+ /** Whether the component is disabled or not. */
5
+ isDisabled?: boolean;
6
+ };
7
+ declare const TableRow: import('vue').DefineSetupFnComponent<TableRowProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick" | "aria-disabled" | "tabIndex"> & {
8
+ class?: string;
9
+ } & {
10
+ /** Whether the component is disabled or not. */
11
+ isDisabled?: boolean;
12
+ } & {}, import('vue').PublicProps>;
13
+ export default TableRow;
@@ -0,0 +1,10 @@
1
+ export { default as Table } from './Table';
2
+ export * from './Table';
3
+ export { default as TableBody } from './TableBody';
4
+ export * from './TableBody';
5
+ export { default as TableCell } from './TableCell';
6
+ export * from './TableCell';
7
+ export { default as TableHeader } from './TableHeader';
8
+ export * from './TableHeader';
9
+ export { default as TableRow } from './TableRow';
10
+ export * from './TableRow';
@@ -7,7 +7,7 @@ export type TextProps = VueToJSXProps<UIProps>;
7
7
  * @param props Component props.
8
8
  * @return Vue element.
9
9
  */
10
- declare const Text: import('vue').DefineSetupFnComponent<TextProps, {}, {}, Omit<UIProps, "className" | "ref" | "children" | "onClick" | "onChange"> & {
10
+ declare const Text: import('vue').DefineSetupFnComponent<TextProps, {}, {}, Omit<UIProps, "className" | "children" | "ref" | "onChange" | "onClick"> & {
11
11
  class?: string;
12
12
  } & {}, import('vue').PublicProps>;
13
13
  export default Text;
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ onClick?: (event: Event) => any;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ badge?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,35 @@
1
+ import { ThumbnailProps as UIProps, CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Thumbnail';
2
+ import { FocusPoint } from '@lumx/core/js/components/Thumbnail/types';
3
+ import { VueToJSXProps } from '../../utils/VueToJSX';
4
+ export type ThumbnailProps = VueToJSXProps<Omit<UIProps, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge' | 'imgRef' | 'onKeyPress' | 'fallback'>> & {
5
+ /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
6
+ focusPoint?: FocusPoint;
7
+ /** ARIA disabled state */
8
+ 'aria-disabled'?: boolean | 'true' | 'false';
9
+ };
10
+ export declare const emitSchema: {
11
+ click: (event: Event) => boolean;
12
+ keyPress: (event: Event) => boolean;
13
+ };
14
+ export { CLASSNAME, COMPONENT_NAME, DEFAULT_PROPS };
15
+ /**
16
+ * Thumbnail component.
17
+ *
18
+ * @param props Component props.
19
+ * @return Vue element.
20
+ */
21
+ declare const Thumbnail: import('vue').DefineSetupFnComponent<ThumbnailProps, {
22
+ click: (event: Event) => boolean;
23
+ keyPress: (event: Event) => boolean;
24
+ }, {}, Omit<Omit<UIProps, "badge" | "isAnyDisabled" | "disabledStateProps" | "fallback" | "loadingState" | "imgRef" | "onKeyPress" | "focusPointStyle">, "className" | "children" | "ref" | "onChange" | "onClick"> & {
25
+ class?: string;
26
+ } & {
27
+ /** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
28
+ focusPoint?: FocusPoint;
29
+ /** ARIA disabled state */
30
+ 'aria-disabled'?: boolean | "true" | "false";
31
+ } & {
32
+ onClick?: ((event: Event) => any) | undefined;
33
+ onKeyPress?: ((event: Event) => any) | undefined;
34
+ }, import('vue').PublicProps>;
35
+ export default Thumbnail;