@huntflow/ui 0.0.60 → 0.1.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/README.md +0 -2
- package/dist/components/index.d.ts +17 -19
- package/dist/components/{base-button → ui-button}/button.vue.d.ts +5 -5
- package/dist/components/ui-button/index.d.ts +3 -0
- package/dist/components/ui-button/types.d.ts +16 -0
- package/dist/components/ui-button-icon/button-icon.vue.d.ts +15 -0
- package/dist/components/ui-button-icon/index.d.ts +2 -0
- package/dist/components/ui-button-icon/types.d.ts +14 -0
- package/dist/components/ui-button-link/index.d.ts +2 -0
- package/dist/components/ui-icon/icon-list.d.ts +1 -0
- package/dist/components/ui-icon/icon.vue.d.ts +3 -0
- package/dist/components/ui-icon/index.d.ts +4 -0
- package/dist/components/ui-icon/types.d.ts +7 -0
- package/dist/components/ui-input/index.d.ts +3 -0
- package/dist/components/{base-input → ui-input}/input.vue.d.ts +7 -3
- package/dist/components/{base-input → ui-input}/types.d.ts +6 -3
- package/dist/components/ui-label/index.d.ts +2 -0
- package/dist/components/{base-label → ui-label}/label.vue.d.ts +2 -2
- package/dist/components/ui-loader/index.d.ts +3 -0
- package/dist/components/ui-loader/loader.vue.d.ts +6 -0
- package/dist/components/ui-loader/types.d.ts +6 -0
- package/dist/components/ui-plank/index.d.ts +3 -0
- package/dist/components/{base-plank/base-plank.vue.d.ts → ui-plank/plank.vue.d.ts} +4 -4
- package/dist/components/ui-plank/types.d.ts +7 -0
- package/dist/components/ui-text/index.d.ts +3 -0
- package/dist/components/{base-text → ui-text}/text.vue.d.ts +2 -2
- package/dist/components/{base-text → ui-text}/types.d.ts +1 -1
- package/dist/components/ui-title/index.d.ts +3 -0
- package/dist/components/{base-title → ui-title}/title.vue.d.ts +2 -2
- package/dist/components/{base-title → ui-title}/types.d.ts +1 -1
- package/dist/global.css +1 -1
- package/dist/sprite-DZhFK9-p.js +4 -0
- package/dist/sprite.svg +1 -1
- package/dist/ui.es.js +500 -429
- package/package.json +26 -14
- package/dist/components/base-button/index.d.ts +0 -3
- package/dist/components/base-button/types.d.ts +0 -16
- package/dist/components/base-checkbox/checkbox.vue.d.ts +0 -33
- package/dist/components/base-checkbox/index.d.ts +0 -3
- package/dist/components/base-checkbox/types.d.ts +0 -10
- package/dist/components/base-icon/icon.vue.d.ts +0 -3
- package/dist/components/base-icon/index.d.ts +0 -4
- package/dist/components/base-icon/types.d.ts +0 -7
- package/dist/components/base-input/index.d.ts +0 -3
- package/dist/components/base-label/index.d.ts +0 -2
- package/dist/components/base-loader/index.d.ts +0 -3
- package/dist/components/base-loader/loader.vue.d.ts +0 -6
- package/dist/components/base-loader/types.d.ts +0 -6
- package/dist/components/base-plank/index.d.ts +0 -3
- package/dist/components/base-plank/types.d.ts +0 -7
- package/dist/components/base-select/index.d.ts +0 -3
- package/dist/components/base-select/select.vue.d.ts +0 -38
- package/dist/components/base-select/types.d.ts +0 -20
- package/dist/components/base-text/index.d.ts +0 -3
- package/dist/components/base-title/index.d.ts +0 -3
- package/dist/components/button-icon/button-icon.vue.d.ts +0 -15
- package/dist/components/button-icon/index.d.ts +0 -2
- package/dist/components/button-icon/types.d.ts +0 -14
- package/dist/components/button-link/index.d.ts +0 -2
- package/dist/sprite-CRtOoHbV.js +0 -4
- package/dist/sprite-CTNw4BII.cjs +0 -1
- package/dist/ui.cjs.js +0 -6
- /package/dist/components/{button-link → ui-button-link}/button-link.vue.d.ts +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@huntflow/ui",
|
|
3
3
|
"description": "HuntFlow UiKit, icons, utils library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.1.2",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "HuntFlow Developer",
|
|
8
8
|
"nickname": "developer",
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"build-storybook": "storybook build",
|
|
25
25
|
"lint": "eslint './src/**/*.{js,vue,ts}' --quiet",
|
|
26
26
|
"icons": "npx tsx utils/figma-icons.ts",
|
|
27
|
-
"
|
|
27
|
+
"icons:update-list": "npx tsx utils/icon-list.ts",
|
|
28
|
+
"variables": "npx tsx utils/figma-variables.ts",
|
|
29
|
+
"visual:create": "npx tsx tests/screenshot-create.ts",
|
|
30
|
+
"visual:compare": "npx tsx tests/compare-screenshots.ts"
|
|
28
31
|
},
|
|
29
32
|
"publishConfig": {
|
|
30
33
|
"access": "public"
|
|
@@ -44,23 +47,22 @@
|
|
|
44
47
|
},
|
|
45
48
|
"homepage": "https://huntflow.ru/",
|
|
46
49
|
"dependencies": {
|
|
50
|
+
"reka-ui": "^2.3.0",
|
|
47
51
|
"vue": "^3.5.13"
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@antfu/eslint-config": "^4.2.0",
|
|
51
|
-
"@chromatic-com/storybook": "^
|
|
55
|
+
"@chromatic-com/storybook": "^4.0.0-next.16",
|
|
52
56
|
"@eslint/js": "^9.17.0",
|
|
53
57
|
"@huntflow/eslint-config": "^1.1.1",
|
|
54
|
-
"@storybook/addon-
|
|
55
|
-
"@storybook/addon-
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/
|
|
58
|
-
"@storybook/blocks": "^8.6.12",
|
|
59
|
-
"@storybook/test": "^8.6.12",
|
|
60
|
-
"@storybook/vue3": "^8.6.12",
|
|
61
|
-
"@storybook/vue3-vite": "^8.6.12",
|
|
58
|
+
"@storybook/addon-docs": "^9.1.0-alpha.0",
|
|
59
|
+
"@storybook/addon-links": "^9.1.0-alpha.0",
|
|
60
|
+
"@storybook/addon-onboarding": "^9.1.0-alpha.0",
|
|
61
|
+
"@storybook/vue3-vite": "^9.1.0-alpha.0",
|
|
62
62
|
"@types/eslint": "^9.6.1",
|
|
63
|
-
"@types/
|
|
63
|
+
"@types/glob": "^8.1.0",
|
|
64
|
+
"@types/node": "^22.15.3",
|
|
65
|
+
"@types/pngjs": "^6.0.5",
|
|
64
66
|
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
65
67
|
"@typescript-eslint/parser": "^8.18.1",
|
|
66
68
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
@@ -73,11 +75,18 @@
|
|
|
73
75
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
74
76
|
"eslint-plugin-import-x": "^4.6.1",
|
|
75
77
|
"eslint-plugin-jest": "^28.11.0",
|
|
78
|
+
"eslint-plugin-storybook": "^9.1.0-alpha.0",
|
|
79
|
+
"glob": "^11.0.2",
|
|
80
|
+
"node-fetch": "^3.3.2",
|
|
81
|
+
"pixelmatch": "^7.1.0",
|
|
82
|
+
"pngjs": "^7.0.0",
|
|
76
83
|
"postcss": "^8.4.49",
|
|
77
84
|
"postcss-loader": "^8.1.1",
|
|
78
85
|
"postcss-nesting": "^13.0.1",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
86
|
+
"puppeteer": "^24.7.2",
|
|
87
|
+
"sharp": "^0.34.1",
|
|
88
|
+
"storybook": "^9.1.0-alpha.0",
|
|
89
|
+
"storybook-addon-pseudo-states": "^9.1.0-alpha.0",
|
|
81
90
|
"stylelint": "^16.12.0",
|
|
82
91
|
"stylelint-config-recommended": "^14.0.1",
|
|
83
92
|
"tsx": "^4.19.2",
|
|
@@ -88,5 +97,8 @@
|
|
|
88
97
|
"vite-plugin-eslint2": "^5.0.3",
|
|
89
98
|
"vite-svg-sprite-wrapper": "^1.4.1",
|
|
90
99
|
"vue-tsc": "^2.1.8"
|
|
100
|
+
},
|
|
101
|
+
"overrides": {
|
|
102
|
+
"storybook": "$storybook"
|
|
91
103
|
}
|
|
92
104
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type BaseButtonProps = {
|
|
2
|
-
size?: BaseButtonSize;
|
|
3
|
-
className?: string;
|
|
4
|
-
type?: BaseButtonType;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
dropdown?: boolean;
|
|
8
|
-
active?: boolean;
|
|
9
|
-
name?: string;
|
|
10
|
-
circle?: boolean;
|
|
11
|
-
bordered?: boolean;
|
|
12
|
-
htmlType?: BaseButtonHTMLType;
|
|
13
|
-
};
|
|
14
|
-
export type BaseButtonSize = 's' | 'xs' | 'm' | 'l';
|
|
15
|
-
export type BaseButtonType = 'primary' | 'secondary' | 'accent' | 'danger' | 'jobsites' | 'ghost' | 'ghost-danger';
|
|
16
|
-
export type BaseButtonHTMLType = 'button' | 'submit' | 'reset';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
id?: string;
|
|
3
|
-
name?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
label?: string;
|
|
6
|
-
error?: string | null | void;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_Props = Props;
|
|
10
|
-
type __VLS_PublicProps = {
|
|
11
|
-
'checked'?: boolean;
|
|
12
|
-
} & __VLS_Props;
|
|
13
|
-
declare function __VLS_template(): {
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: HTMLDivElement;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
"update:checked": (value: boolean) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
-
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { BaseIconProps } from './types.ts';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<BaseIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
3
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseLoaderProps } from './types.ts';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<BaseLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseLoaderProps> & Readonly<{}>, {
|
|
3
|
-
size: import('./types.ts').BaseLoaderSize;
|
|
4
|
-
color: "white" | "black";
|
|
5
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
6
|
-
export default _default;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BaseSelectProps } from './types.ts';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
icon?(_: {
|
|
6
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}>;
|
|
9
|
-
}): any;
|
|
10
|
-
icon?(_: {
|
|
11
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {
|
|
17
|
-
'base-select': HTMLDivElement;
|
|
18
|
-
};
|
|
19
|
-
rootEl: HTMLDivElement;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<BaseSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
-
"update:value": (value: string | number) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<BaseSelectProps> & Readonly<{
|
|
25
|
-
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
size: import('./types.ts').BaseSelectSize;
|
|
28
|
-
placeholder: string;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
-
'base-select': HTMLDivElement;
|
|
31
|
-
}, HTMLDivElement>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
|
-
export type BaseSelectProps = {
|
|
3
|
-
value?: number | string | null;
|
|
4
|
-
name?: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
size?: BaseSelectSize;
|
|
8
|
-
className?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
options?: BaseSelectOption[];
|
|
12
|
-
};
|
|
13
|
-
export type BaseSelectOption = {
|
|
14
|
-
id: number;
|
|
15
|
-
title: VNode;
|
|
16
|
-
icon?: VNode;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
value: number | string;
|
|
19
|
-
};
|
|
20
|
-
export type BaseSelectSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ButtonIconProps } from './types';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ButtonIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
click: () => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<ButtonIconProps> & Readonly<{
|
|
5
|
-
onClick?: (() => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
size: import('./types').ButtonIconSize;
|
|
8
|
-
circle: boolean;
|
|
9
|
-
type: import('./types').ButtonIconType;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
active: boolean;
|
|
13
|
-
bordered: boolean;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
15
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type ButtonIconProps = {
|
|
2
|
-
icon: string;
|
|
3
|
-
size?: ButtonIconSize;
|
|
4
|
-
className?: string;
|
|
5
|
-
type?: ButtonIconType;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
active?: boolean;
|
|
9
|
-
name?: string;
|
|
10
|
-
circle?: boolean;
|
|
11
|
-
bordered?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type ButtonIconSize = 's' | 'xs' | 'm' | 'l';
|
|
14
|
-
export type ButtonIconType = 'primary' | 'secondary' | 'accent' | 'danger';
|