quix-ui 1.2.0 → 1.2.2
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.
- package/dist/Provider/FormContext.d.ts +2 -0
- package/dist/Provider/QuixProvider.d.ts +5 -0
- package/dist/Provider/form.types.d.ts +13 -0
- package/dist/Provider/hooks/FormHook/UseForm.d.ts +6 -0
- package/dist/Provider/hooks/FormHook/useFormContext.d.ts +1 -0
- package/dist/Provider/types.d.ts +25 -0
- package/dist/components/Buttons/Buttons.stories.d.ts +3 -0
- package/dist/components/Buttons/types.d.ts +2 -0
- package/dist/components/forms/Forms.d.ts +8 -0
- package/dist/components/forms/Items.d.ts +11 -0
- package/dist/components/forms/index.d.ts +2 -0
- package/dist/components/forms/store/form.store.d.ts +12 -0
- package/dist/components/forms/utils.d.ts +2 -0
- package/dist/components/layout/Layout.d.ts +8 -0
- package/dist/components/layout/Layout.stories.d.ts +24 -0
- package/dist/components/layout/types.d.ts +40 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2131 -15
- package/dist/view/FlexView.d.ts +3 -0
- package/dist/view/Layout.stories.d.ts +31 -12
- package/dist/view/types.d.ts +18 -7
- package/package.json +6 -12
- package/dist/view/ViewContainer.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import
|
|
2
|
+
import ViewContainer from './FlexView';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof ViewContainer;
|
|
@@ -20,30 +20,24 @@ declare const meta: {
|
|
|
20
20
|
height: {
|
|
21
21
|
control: "number";
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
layout: {
|
|
24
24
|
options: string[];
|
|
25
25
|
};
|
|
26
|
+
gap: {
|
|
27
|
+
control: "number";
|
|
28
|
+
};
|
|
26
29
|
direction: {
|
|
27
30
|
options: string[];
|
|
28
31
|
};
|
|
29
32
|
isScrollable: {
|
|
30
33
|
control: "boolean";
|
|
31
34
|
};
|
|
32
|
-
alignItems: {
|
|
33
|
-
options: string[];
|
|
34
|
-
};
|
|
35
|
-
justifyContent: {
|
|
36
|
-
options: string[];
|
|
37
|
-
};
|
|
38
35
|
paddingX: {
|
|
39
36
|
control: "number";
|
|
40
37
|
};
|
|
41
38
|
paddingY: {
|
|
42
39
|
control: "number";
|
|
43
40
|
};
|
|
44
|
-
children: {
|
|
45
|
-
control: "text";
|
|
46
|
-
};
|
|
47
41
|
rounded: {
|
|
48
42
|
topLeft: {
|
|
49
43
|
control: string;
|
|
@@ -58,14 +52,39 @@ declare const meta: {
|
|
|
58
52
|
control: string;
|
|
59
53
|
};
|
|
60
54
|
};
|
|
55
|
+
mah: {
|
|
56
|
+
control: "number";
|
|
57
|
+
};
|
|
58
|
+
maw: {
|
|
59
|
+
control: "number";
|
|
60
|
+
};
|
|
61
|
+
borderColor: {
|
|
62
|
+
control: "color";
|
|
63
|
+
};
|
|
64
|
+
borderWidth: {
|
|
65
|
+
control: "number";
|
|
66
|
+
};
|
|
67
|
+
borderType: {
|
|
68
|
+
options: string[];
|
|
69
|
+
};
|
|
70
|
+
style: {
|
|
71
|
+
control: "text";
|
|
72
|
+
};
|
|
61
73
|
className: {
|
|
62
74
|
control: "text";
|
|
63
75
|
};
|
|
76
|
+
tooltip: {
|
|
77
|
+
position: {
|
|
78
|
+
control: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
64
81
|
};
|
|
65
82
|
args: {
|
|
66
83
|
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
84
|
+
onRightClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
67
85
|
};
|
|
68
86
|
};
|
|
69
87
|
export default meta;
|
|
70
88
|
type Story = StoryObj<typeof meta>;
|
|
71
|
-
export declare const
|
|
89
|
+
export declare const FlexView: Story;
|
|
90
|
+
export declare const ScrollableFlexView: Story;
|
package/dist/view/types.d.ts
CHANGED
|
@@ -1,22 +1,33 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
1
2
|
export interface ViewProps {
|
|
2
|
-
display?: "block" | "flex" | "inline-block" | "inline-flex";
|
|
3
3
|
isScrollable?: boolean;
|
|
4
4
|
direction?: "row" | "column" | "row-reverse" | "column-reverse";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
5
|
+
width?: number | string;
|
|
6
|
+
height?: number | string;
|
|
9
7
|
backgroundColor?: string;
|
|
10
8
|
paddingX?: number;
|
|
11
9
|
paddingY?: number;
|
|
12
10
|
textColor?: string;
|
|
13
|
-
children?: React.ReactNode | string;
|
|
11
|
+
children?: React.ReactNode | string | React.ReactNode[];
|
|
14
12
|
rounded?: {
|
|
15
13
|
topLeft?: number;
|
|
16
14
|
topRight?: number;
|
|
17
15
|
bottomLeft?: number;
|
|
18
16
|
bottomRight?: number;
|
|
19
17
|
} | number;
|
|
18
|
+
gap?: number;
|
|
19
|
+
mah?: number | string;
|
|
20
|
+
maw?: number | string;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
borderWidth?: number;
|
|
23
|
+
borderType?: "solid" | "rige" | "dashed" | "dotted" | "double" | "groove";
|
|
24
|
+
style?: React.CSSProperties;
|
|
20
25
|
className?: string;
|
|
21
|
-
|
|
26
|
+
layout: "flex-center" | "flex-start" | "flex-end" | "flex-between" | "";
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
28
|
+
onRightClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
29
|
+
tooltip?: {
|
|
30
|
+
component: ReactNode;
|
|
31
|
+
position: "left" | "right" | "top" | "bottom";
|
|
32
|
+
};
|
|
22
33
|
}
|
package/package.json
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quix-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "This is a react component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/index.js",
|
|
12
|
-
"require": "./dist/index.js",
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
9
|
"files": [
|
|
17
10
|
"dist"
|
|
18
11
|
],
|
|
19
12
|
"scripts": {
|
|
20
13
|
"build": "vite build",
|
|
21
|
-
"rollup": "rollup -c",
|
|
14
|
+
"rollup": " rimraf dist && rollup -c",
|
|
22
15
|
"test": "jest --watchAll --verbose",
|
|
23
|
-
"
|
|
16
|
+
"ui": "storybook dev -p 6006",
|
|
24
17
|
"build-storybook": "storybook build",
|
|
25
18
|
"prepare": "husky",
|
|
26
19
|
"lint": "eslint ./src/ --ext .ts,.tsx",
|
|
27
20
|
"lint:fix": "eslint ./src --ext .ts,.tsx --fix",
|
|
28
21
|
"release": "standard-version",
|
|
29
|
-
"compile": "rimraf dist
|
|
22
|
+
"compile": "rimraf dist && tsc && tsc --build tsconfig.json"
|
|
30
23
|
},
|
|
31
24
|
"repository": {
|
|
32
25
|
"type": "git",
|
|
@@ -80,9 +73,10 @@
|
|
|
80
73
|
"jest": "^30.2.0",
|
|
81
74
|
"jest-environment-jsdom": "^30.2.0",
|
|
82
75
|
"jiti": "^2.6.1",
|
|
83
|
-
"quix-ui": "^1.1
|
|
76
|
+
"quix-ui": "^1.2.1",
|
|
84
77
|
"react": "^18.3.1",
|
|
85
78
|
"react-dom": "^18.3.1",
|
|
79
|
+
"react-router-dom": "^7.12.0",
|
|
86
80
|
"rimraf": "^6.1.2",
|
|
87
81
|
"rollup": "^4.55.1",
|
|
88
82
|
"rollup-plugin-babel": "^4.4.0",
|