@lumx/vue 4.3.2-alpha.8 → 4.4.0

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/components/badge/Badge.d.ts +1 -1
  2. package/components/badge/Badge.stories.d.ts +34 -0
  3. package/components/badge/BadgeWrapper.d.ts +1 -1
  4. package/components/badge/BadgeWrapper.stories.d.ts +18 -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 +1 -1
  10. package/components/flag/Flag.d.ts +1 -1
  11. package/components/flag/Flag.stories.d.ts +108 -0
  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 +6 -7
  21. package/components/link/Link.stories.d.ts +268 -0
  22. package/components/link/index.d.ts +3 -2
  23. package/components/message/Message.d.ts +1 -1
  24. package/components/progress/ProgressCircular.d.ts +9 -0
  25. package/components/progress/ProgressCircular.stories.d.ts +22 -0
  26. package/components/progress/ProgressLinear.d.ts +8 -0
  27. package/components/progress/index.d.ts +6 -0
  28. package/components/radio-button/RadioButton.d.ts +1 -1
  29. package/components/skeleton/SkeletonCircle.d.ts +1 -1
  30. package/components/skeleton/SkeletonRectangle.d.ts +1 -1
  31. package/components/skeleton/SkeletonTypography.d.ts +1 -1
  32. package/components/switch/Switch.d.ts +1 -1
  33. package/components/table/Table.d.ts +1 -1
  34. package/components/table/TableBody.d.ts +1 -1
  35. package/components/table/TableCell.d.ts +2 -2
  36. package/components/table/TableHeader.d.ts +1 -1
  37. package/components/table/TableRow.d.ts +1 -1
  38. package/components/text/Text.d.ts +1 -1
  39. package/components/thumbnail/Thumbnail.d.ts +2 -2
  40. package/components/thumbnail/Thumbnail.stories.d.ts +18 -10
  41. package/components/toolbar/Toolbar.d.ts +8 -0
  42. package/components/toolbar/Toolbar.stories.d.ts +19 -0
  43. package/components/toolbar/index.d.ts +3 -0
  44. package/composables/useHasEventListener.d.ts +7 -0
  45. package/index.d.ts +3 -0
  46. package/index.js +1861 -1603
  47. package/index.js.map +1 -1
  48. package/package.json +11 -6
  49. package/stories/decorators/withResizableBox.d.ts +2 -2
  50. package/stories/utils/CustomLink.vue.d.ts +29 -0
  51. package/utils/VueToJSX.d.ts +2 -1
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "vite build",
13
13
  "type-check": "vue-tsc",
14
- "start:storybook": "storybook dev -p 9000",
14
+ "start:storybook": "storybook dev -p 9001",
15
15
  "build:storybook": "storybook build",
16
16
  "test": "vitest run --run",
17
17
  "test:storybook": "vitest -c .storybook/vitest.config.mts run --run"
@@ -20,11 +20,17 @@
20
20
  "module": "index.js",
21
21
  "main": "index.js",
22
22
  "types": "index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./index.d.ts",
26
+ "default": "./index.js"
27
+ }
28
+ },
23
29
  "sideEffects": false,
24
- "version": "4.3.2-alpha.8",
30
+ "version": "4.4.0",
25
31
  "dependencies": {
26
- "@lumx/core": "^4.3.2-alpha.8",
27
- "@lumx/icons": "^4.3.2-alpha.8",
32
+ "@lumx/core": "^4.4.0",
33
+ "@lumx/icons": "^4.4.0",
28
34
  "@vueuse/core": "^14.1.0"
29
35
  },
30
36
  "peerDependencies": {
@@ -58,6 +64,5 @@
58
64
  "vitest": "^4.0.18",
59
65
  "vue": "^3.5.27",
60
66
  "vue-tsc": "^3.2.4"
61
- },
62
- "stableVersion": "4.3.1"
67
+ }
63
68
  }
@@ -1,7 +1,7 @@
1
1
  /** Storybook decorator wrapping story in a resizable box */
2
2
  export declare const withResizableBox: ({ width, height, ...style }?: {
3
- width?: number | string;
4
- height?: number | string;
3
+ width?: string;
4
+ height?: string;
5
5
  [key: string]: any;
6
6
  }) => (story: any, context: any) => {
7
7
  setup(): {
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Example custom link that can be used in linkAs props.
3
+ */
4
+ type __VLS_Props = {
5
+ to?: string;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {
13
+ linkRef: HTMLAnchorElement;
14
+ };
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
19
+ linkRef: import('vue').Ref<HTMLAnchorElement | undefined, HTMLAnchorElement | undefined>;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ linkRef: HTMLAnchorElement;
22
+ }, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -1,3 +1,4 @@
1
+ import { PropsToOverride } from '@lumx/core/js/types';
1
2
  /**
2
3
  * Props interface for components wrapped with VueToJSX.
3
4
  * It omits JSX-specific props like `children` and `className` and adds Vue's `class`.
@@ -5,7 +6,7 @@
5
6
  * @template Props - The base props type
6
7
  * @template OmitProps - Additional props to omit beyond the defaults (children, className, ref)
7
8
  */
8
- export type VueToJSXProps<Props, OmitProps extends keyof Props = never> = Omit<Props, 'children' | 'className' | 'ref' | 'onClick' | 'onChange' | OmitProps> & {
9
+ export type VueToJSXProps<Props, OmitProps extends keyof Props = never> = Omit<Props, PropsToOverride | 'children' | 'className' | OmitProps> & {
9
10
  /** Class name forwarded to the root element of the component. */
10
11
  class?: string;
11
12
  };