@central-design-system/components 3.0.0-beta.10 → 3.0.0-beta.12

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.
@@ -1,5 +1,6 @@
1
- import type { PropType } from 'vue';
2
- import { CSSProperties, Ref } from 'vue';
1
+ import { CSSProperties } from 'vue';
2
+ import { ILayoutContextProps } from '../components/CdsLayout/context';
3
+ import type { PropType, Ref, ComputedRef } from 'vue';
3
4
  export interface ILayoutProps {
4
5
  modelValue: boolean;
5
6
  reveal: boolean;
@@ -8,6 +9,22 @@ export interface ILayoutProps {
8
9
  elevated: boolean;
9
10
  height: string | number;
10
11
  }
12
+ export interface IUseLayout {
13
+ layout: ILayoutContextProps;
14
+ size: Ref<number>;
15
+ revealed: Ref<boolean>;
16
+ fixed: Ref<boolean>;
17
+ windowHeight: Ref<number>;
18
+ containerHeight: ComputedRef<number>;
19
+ offset: ComputedRef<number>;
20
+ hidden: ComputedRef<boolean>;
21
+ revealOnFocus: ComputedRef<boolean>;
22
+ classes: ComputedRef<Record<string, boolean>>;
23
+ style: Ref<CSSProperties>;
24
+ updateLocal: (prop: Ref, value: any) => void;
25
+ updateRevealed: () => void;
26
+ onResize: (rect: Pick<DOMRectReadOnly, 'width' | 'height'>) => void;
27
+ }
11
28
  export declare const makeLayoutProps: <Defaults extends {
12
29
  modelValue?: unknown;
13
30
  reveal?: unknown;
@@ -59,21 +76,4 @@ export declare const makeLayoutProps: <Defaults extends {
59
76
  default: number;
60
77
  };
61
78
  }, Defaults>;
62
- export declare function useLayout(props: ILayoutProps, componentName: string, view?: 'H' | 'F'): {
63
- layout: import("../components/CdsLayout/context").ILayoutContextProps;
64
- size: Ref<number>;
65
- revealed: Ref<boolean>;
66
- fixed: import("vue").ComputedRef<boolean>;
67
- windowHeight: Ref<number>;
68
- containerHeight: import("vue").ComputedRef<number>;
69
- offset: import("vue").ComputedRef<number>;
70
- hidden: import("vue").ComputedRef<boolean>;
71
- revealOnFocus: import("vue").ComputedRef<boolean>;
72
- classes: import("vue").ComputedRef<{
73
- [x: string]: boolean;
74
- }>;
75
- style: import("vue").ComputedRef<CSSProperties>;
76
- updateLocal: (prop: Ref, value: any) => void;
77
- updateRevealed: () => void;
78
- onResize: ({ height }: Pick<DOMRectReadOnly, 'width' | 'height'>) => void;
79
- };
79
+ export declare function useLayout(props: ILayoutProps, componentName: string, view?: 'H' | 'F'): IUseLayout;
package/dist/create.d.ts CHANGED
@@ -20,5 +20,8 @@ interface NuxtApp {
20
20
  export declare function createCds(options?: ICdsOptions): {
21
21
  install: (app: App & NuxtApp) => void;
22
22
  display: import("./composable").IDisplayInstance;
23
+ theme: import("./composable").ThemeInstance & {
24
+ install: (app: App<any>) => void;
25
+ };
23
26
  };
24
27
  export {};
@@ -2,7 +2,7 @@ declare const _default: Readonly<{
2
2
  red: Readonly<{
3
3
  lighten10: "#faecec";
4
4
  lighten50: "#fdcfcf";
5
- lighten100: "ffb2b2";
5
+ lighten100: "#ffb2b2";
6
6
  lighten200: "#ff6666";
7
7
  lighten300: "#f23838";
8
8
  lighten400: "#eb0000";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-design-system/components",
3
- "version": "3.0.0-beta.10",
3
+ "version": "3.0.0-beta.12",
4
4
  "description": "Central Design System on the Vue 3.0 and TypeScript",
5
5
  "author": "magersoft",
6
6
  "license": "ISC",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Automatically generated by CDS CLI
3
- * Generated on 1/18/2024, 2:08:21 PM
3
+ * Generated on 2/1/2024, 3:36:05 PM
4
4
  **/
5
5
 
6
6
  /**