quix-ui 1.2.3 → 1.2.5

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,11 +1,23 @@
1
1
  import { LayoutProps, menuItemsDynamicStyleProps, menuItemsProps, sideMenuProps } from "./types";
2
2
  import './layout.style.css';
3
- export declare function Layout(props: LayoutProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function Layout(props: LayoutProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare function SideMenu(props: {
5
5
  sideMenu: sideMenuProps;
6
6
  top: number;
7
7
  }): import("react/jsx-runtime").JSX.Element;
8
- export declare function MenuItem(item: menuItemsProps, ElementType?: "NavLink" | "Link" | "a" | "div", menuItemsDynamicStyle?: menuItemsDynamicStyleProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function MenuItem({ item, ElementType, menuItemsDynamicStyle, menuItemStyle }: {
9
+ item: menuItemsProps;
10
+ ElementType?: "NavLink" | "Link" | "a" | "div";
11
+ menuItemsDynamicStyle?: menuItemsDynamicStyleProps;
12
+ menuItemStyle?: {
13
+ style?: React.CSSProperties;
14
+ width?: {
15
+ desktop: number | string;
16
+ tablet: number | string;
17
+ mobile: number | string;
18
+ };
19
+ };
20
+ }): import("react/jsx-runtime").JSX.Element;
9
21
  export declare function Header(): import("react/jsx-runtime").JSX.Element;
10
22
  export declare function Content(): import("react/jsx-runtime").JSX.Element;
11
23
  export declare function Footer(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from "@storybook/react-vite";
2
- import { Layout } from "./Layout";
2
+ import Layout from "./Layout";
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof Layout;
@@ -7,17 +7,6 @@ declare const meta: {
7
7
  layout: string;
8
8
  };
9
9
  tags: string[];
10
- argTypes: {
11
- backgroundColor: {
12
- control: "color";
13
- };
14
- layoutStyle: {
15
- control: "text";
16
- };
17
- className: {
18
- control: "text";
19
- };
20
- };
21
10
  };
22
11
  export default meta;
23
12
  type Story = StoryObj<typeof meta>;
@@ -0,0 +1,18 @@
1
+ export default function useElementSize<T extends HTMLElement>(): readonly [import("react").RefObject<T | null>, {
2
+ width: number;
3
+ height: number;
4
+ }];
5
+ export declare class WindowSize {
6
+ size: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ constructor();
11
+ resizeWindow(): void;
12
+ update(): {
13
+ width: number;
14
+ height: number;
15
+ }[];
16
+ destroy(): void;
17
+ }
18
+ export declare const useWindowSize: WindowSize;
@@ -4,13 +4,22 @@ export interface LayoutProps {
4
4
  className?: string;
5
5
  layoutStyle?: React.CSSProperties;
6
6
  sideMenu?: sideMenuProps;
7
- ElementStyle?: React.CSSProperties;
7
+ menuItemStyle?: {
8
+ width: {
9
+ desktop: number | string;
10
+ tablet: number | string;
11
+ mobile: number | string;
12
+ };
13
+ style?: React.CSSProperties;
14
+ };
8
15
  children?: JSX.Element;
9
16
  header?: HeaderProps;
17
+ content?: () => JSX.Element;
10
18
  }
11
19
  export interface HeaderProps {
12
20
  height: number;
13
- style: React.CSSProperties;
21
+ style?: React.CSSProperties;
22
+ children?: () => JSX.Element;
14
23
  }
15
24
  export interface menuItemsProps {
16
25
  label: string;
@@ -27,12 +36,23 @@ export interface menuItemsProps {
27
36
  };
28
37
  }
29
38
  export interface sideMenuProps {
30
- width: number | string;
39
+ width: {
40
+ desktop: number | string;
41
+ tablet: number | string;
42
+ mobile: number | string;
43
+ };
31
44
  height: number | string;
32
45
  sideMenuStyle?: React.CSSProperties;
33
46
  menuItems: menuItemsProps[];
34
47
  ElementType?: "NavLink" | "Link" | "a" | "div";
35
- ElementStyle?: React.CSSProperties;
48
+ menuItemStyle?: {
49
+ width?: {
50
+ desktop: number | string;
51
+ tablet: number | string;
52
+ mobile: number | string;
53
+ };
54
+ style: React.CSSProperties;
55
+ };
36
56
  menuItemsDynamicStyle?: menuItemsDynamicStyleProps;
37
57
  bottomSection?: menuItemsProps[];
38
58
  }
@@ -0,0 +1,24 @@
1
+ export declare const Div: ({ css }: {
2
+ css: string;
3
+ }) => import("storybook/theming").StyledComponent<{
4
+ theme?: import("storybook/theming").Theme;
5
+ as?: React.ElementType;
6
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const P: ({ css }: {
8
+ css: string;
9
+ }) => import("storybook/theming").StyledComponent<{
10
+ theme?: import("storybook/theming").Theme;
11
+ as?: React.ElementType;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
13
+ export declare const Input: ({ css }: {
14
+ css: string;
15
+ }) => import("storybook/theming").StyledComponent<{
16
+ theme?: import("storybook/theming").Theme;
17
+ as?: React.ElementType;
18
+ }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
19
+ export declare const Section: ({ css }: {
20
+ css: string;
21
+ }) => import("storybook/theming").StyledComponent<{
22
+ theme?: import("storybook/theming").Theme;
23
+ as?: React.ElementType;
24
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { default as FlexView } from './view/FlexView';
2
2
  export { default as Buttons } from './components/Buttons/Buttons';
3
+ export { default as Layout } from './components/layout/Layout';