quix-ui 1.2.1 → 1.2.3
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 +5 -0
- package/dist/components/layout/Layout.d.ts +11 -0
- package/dist/components/layout/Layout.stories.d.ts +24 -0
- package/dist/components/layout/types.d.ts +46 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2398 -38
- package/dist/view/FlexView.d.ts +3 -0
- package/dist/view/Layout.stories.d.ts +33 -14
- package/dist/view/types.d.ts +18 -7
- package/package.json +7 -5
- 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;
|
|
@@ -15,35 +15,29 @@ declare const meta: {
|
|
|
15
15
|
control: "color";
|
|
16
16
|
};
|
|
17
17
|
width: {
|
|
18
|
-
control: "
|
|
18
|
+
control: "text";
|
|
19
19
|
};
|
|
20
20
|
height: {
|
|
21
|
-
control: "
|
|
21
|
+
control: "text";
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quix-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "This is a react component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"rollup": " rimraf dist && rollup -c",
|
|
15
15
|
"test": "jest --watchAll --verbose",
|
|
16
|
-
"
|
|
16
|
+
"ui": "storybook dev -p 6006",
|
|
17
17
|
"build-storybook": "storybook build",
|
|
18
18
|
"prepare": "husky",
|
|
19
19
|
"lint": "eslint ./src/ --ext .ts,.tsx",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"@eslint/js": "^9.39.2",
|
|
56
56
|
"@figma/eslint-plugin-figma-plugins": "^1.0.0",
|
|
57
57
|
"@figma/plugin-typings": "^1.122.0",
|
|
58
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
58
59
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
59
60
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
60
61
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"@types/jest": "^30.0.0",
|
|
66
67
|
"@types/react": "^19.2.8",
|
|
67
68
|
"@vitejs/plugin-react": "^5.1.2",
|
|
69
|
+
"antd": "^6.2.2",
|
|
68
70
|
"axios": "^1.13.2",
|
|
69
71
|
"babel-loader": "^10.0.0",
|
|
70
72
|
"eslint": "^9.39.2",
|
|
@@ -73,16 +75,16 @@
|
|
|
73
75
|
"jest": "^30.2.0",
|
|
74
76
|
"jest-environment-jsdom": "^30.2.0",
|
|
75
77
|
"jiti": "^2.6.1",
|
|
76
|
-
"quix-ui": "^1.1
|
|
78
|
+
"quix-ui": "^1.2.1",
|
|
77
79
|
"react": "^18.3.1",
|
|
78
80
|
"react-dom": "^18.3.1",
|
|
81
|
+
"react-router-dom": "^7.12.0",
|
|
79
82
|
"rimraf": "^6.1.2",
|
|
80
83
|
"rollup": "^4.55.1",
|
|
81
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
82
84
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
83
85
|
"rollup-plugin-postcss": "^4.0.2",
|
|
84
86
|
"storybook": "^10.1.11",
|
|
85
|
-
"styled-components": "^6.3.
|
|
87
|
+
"styled-components": "^6.3.8",
|
|
86
88
|
"tslib": "^2.8.1",
|
|
87
89
|
"typescript": "^5.9.3",
|
|
88
90
|
"typescript-eslint": "^8.53.0"
|