@lumx/vue 4.3.2-alpha.2 → 4.3.2-alpha.21

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 (48) 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 +1 -1
  10. package/components/flag/Flag.d.ts +1 -1
  11. package/components/flex-box/FlexBox.d.ts +1 -1
  12. package/components/grid-column/GridColumn.d.ts +9 -0
  13. package/components/grid-column/GridColumn.stories.d.ts +42 -0
  14. package/components/grid-column/index.d.ts +3 -0
  15. package/components/heading/Heading.d.ts +1 -1
  16. package/components/icon/Icon.d.ts +1 -1
  17. package/components/input-helper/InputHelper.d.ts +1 -1
  18. package/components/input-label/InputLabel.d.ts +1 -1
  19. package/components/link/Link.d.ts +1 -1
  20. package/components/message/Message.d.ts +1 -1
  21. package/components/radio-button/RadioButton.d.ts +1 -1
  22. package/components/skeleton/SkeletonCircle.d.ts +1 -1
  23. package/components/skeleton/SkeletonRectangle.d.ts +1 -1
  24. package/components/skeleton/SkeletonTypography.d.ts +1 -1
  25. package/components/skeleton/index.d.ts +10 -7
  26. package/components/switch/Switch.d.ts +1 -1
  27. package/components/table/Table.d.ts +7 -0
  28. package/components/table/TableBody.d.ts +7 -0
  29. package/components/table/TableCell.d.ts +16 -0
  30. package/components/table/TableHeader.d.ts +7 -0
  31. package/components/table/TableRow.d.ts +13 -0
  32. package/components/table/index.d.ts +10 -0
  33. package/components/text/Text.d.ts +1 -1
  34. package/components/thumbnail/Stories/ThumbnailClickable.vue.d.ts +20 -0
  35. package/components/thumbnail/Thumbnail.d.ts +35 -0
  36. package/components/thumbnail/Thumbnail.stories.d.ts +161 -0
  37. package/components/thumbnail/index.d.ts +4 -0
  38. package/components/thumbnail/useFocusPointStyle.d.ts +20 -0
  39. package/components/thumbnail/useImageLoad.d.ts +10 -0
  40. package/components/toolbar/Toolbar.d.ts +8 -0
  41. package/components/toolbar/index.d.ts +3 -0
  42. package/composables/useTheme.d.ts +4 -3
  43. package/index.d.ts +5 -0
  44. package/index.js +2216 -1452
  45. package/index.js.map +1 -1
  46. package/package.json +17 -6
  47. package/stories/utils/useAttrsWithoutHandlers.d.ts +1 -1
  48. package/utils/VueToJSX.d.ts +3 -1
@@ -0,0 +1,20 @@
1
+ import { Ref, ComputedRef, CSSProperties } from 'vue';
2
+ import { AspectRatio } from '@lumx/core/js/constants';
3
+ import { FocusPoint } from '@lumx/core/js/components/Thumbnail/types';
4
+ interface FocusPointStyleParams {
5
+ image: Ref<string>;
6
+ aspectRatio: Ref<AspectRatio | undefined>;
7
+ focusPoint: Ref<FocusPoint | undefined>;
8
+ width: Ref<number | undefined>;
9
+ height: Ref<number | undefined>;
10
+ element: Ref<HTMLImageElement | undefined>;
11
+ isLoaded: Ref<boolean>;
12
+ }
13
+ /**
14
+ * Vue composable to compute CSS properties for focus point positioning.
15
+ *
16
+ * @param params - Focus point style parameters
17
+ * @returns Computed CSS properties for the image
18
+ */
19
+ export declare function useFocusPointStyle(params: FocusPointStyleParams): ComputedRef<CSSProperties>;
20
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'vue';
2
+ import { LoadingState } from '@lumx/core/js/components/Thumbnail/types';
3
+ /**
4
+ * Vue composable to track image loading state.
5
+ *
6
+ * @param imageURL - The URL of the image to track
7
+ * @param imgRef - Reference to the HTML image element
8
+ * @returns The current loading state ('hasError', 'isLoading', or 'isLoaded')
9
+ */
10
+ export declare function useImageLoad(imageURL: Ref<string>, imgRef: Ref<HTMLImageElement | undefined>): Ref<LoadingState>;
@@ -0,0 +1,8 @@
1
+ import { ToolbarProps as UIProps, CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS } from '@lumx/core/js/components/Toolbar';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type ToolbarProps = VueToJSXProps<UIProps, 'ref' | 'label' | 'after' | 'before'>;
4
+ export { CLASSNAME, TOOLBAR_NAME, DEFAULT_PROPS };
5
+ declare const Toolbar: import('vue').DefineSetupFnComponent<ToolbarProps, {}, {}, Omit<UIProps, "className" | "label" | "children" | "ref" | "onChange" | "onClick" | "after" | "before"> & {
6
+ class?: string;
7
+ } & {}, import('vue').PublicProps>;
8
+ export default Toolbar;
@@ -0,0 +1,3 @@
1
+ export { default as Toolbar } from './Toolbar';
2
+ export type { ToolbarProps } from './Toolbar';
3
+ export { TOOLBAR_NAME } from './Toolbar';
@@ -1,9 +1,10 @@
1
+ import { ComputedRef } from 'vue';
1
2
  import { Theme } from '@lumx/core/js/constants';
2
3
  export interface UseTheme {
3
4
  defaultTheme?: Theme;
4
5
  }
5
6
  /**
6
- * Retrives the globally applied theme.
7
- * @returns theme
7
+ * Retrieves the globally applied theme.
8
+ * @returns computed theme value (auto-updates when the provided theme changes)
8
9
  */
9
- export declare function useTheme(options?: UseTheme): Theme | undefined;
10
+ export declare function useTheme(options?: UseTheme): ComputedRef<Theme | undefined>;
package/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  export * from '@lumx/core/js/constants';
2
2
  export * from '@lumx/core/js/types';
3
+ export * from './components/badge';
3
4
  export * from './components/button';
4
5
  export * from './components/checkbox';
5
6
  export * from './components/divider';
6
7
  export * from './components/flag';
7
8
  export * from './components/flex-box';
9
+ export * from './components/grid-column';
8
10
  export * from './components/heading';
9
11
  export * from './components/icon';
10
12
  export * from './components/input-helper';
@@ -14,4 +16,7 @@ export * from './components/message';
14
16
  export * from './components/radio-button';
15
17
  export * from './components/skeleton';
16
18
  export * from './components/switch';
19
+ export * from './components/table';
17
20
  export * from './components/text';
21
+ export * from './components/thumbnail';
22
+ export * from './components/toolbar';