@huntflow/ui 0.0.59 → 0.1.1

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.
Files changed (61) hide show
  1. package/README.md +0 -2
  2. package/dist/components/index.d.ts +17 -19
  3. package/dist/components/{base-button → ui-button}/button.vue.d.ts +5 -5
  4. package/dist/components/ui-button/index.d.ts +3 -0
  5. package/dist/components/ui-button/types.d.ts +16 -0
  6. package/dist/components/ui-button-icon/button-icon.vue.d.ts +15 -0
  7. package/dist/components/ui-button-icon/index.d.ts +2 -0
  8. package/dist/components/ui-button-icon/types.d.ts +14 -0
  9. package/dist/components/ui-button-link/index.d.ts +2 -0
  10. package/dist/components/ui-icon/icon.vue.d.ts +3 -0
  11. package/dist/components/ui-icon/index.d.ts +4 -0
  12. package/dist/components/{base-icon → ui-icon}/types.d.ts +1 -1
  13. package/dist/components/ui-input/index.d.ts +3 -0
  14. package/dist/components/{base-input → ui-input}/input.vue.d.ts +7 -3
  15. package/dist/components/{base-input → ui-input}/types.d.ts +5 -3
  16. package/dist/components/ui-label/index.d.ts +2 -0
  17. package/dist/components/{base-label → ui-label}/label.vue.d.ts +2 -2
  18. package/dist/components/ui-loader/index.d.ts +3 -0
  19. package/dist/components/ui-loader/loader.vue.d.ts +6 -0
  20. package/dist/components/ui-loader/types.d.ts +6 -0
  21. package/dist/components/ui-plank/index.d.ts +3 -0
  22. package/dist/components/{base-plank/base-plank.vue.d.ts → ui-plank/plank.vue.d.ts} +4 -4
  23. package/dist/components/ui-plank/types.d.ts +7 -0
  24. package/dist/components/ui-text/index.d.ts +3 -0
  25. package/dist/components/{base-text → ui-text}/text.vue.d.ts +2 -2
  26. package/dist/components/{base-text → ui-text}/types.d.ts +1 -1
  27. package/dist/components/ui-title/index.d.ts +3 -0
  28. package/dist/components/{base-title → ui-title}/title.vue.d.ts +2 -2
  29. package/dist/components/{base-title → ui-title}/types.d.ts +2 -1
  30. package/dist/global.css +1 -1
  31. package/dist/sprite-DZhFK9-p.js +4 -0
  32. package/dist/sprite.svg +1 -1
  33. package/dist/ui.es.js +480 -406
  34. package/package.json +25 -14
  35. package/dist/components/base-button/index.d.ts +0 -3
  36. package/dist/components/base-button/types.d.ts +0 -16
  37. package/dist/components/base-checkbox/checkbox.vue.d.ts +0 -33
  38. package/dist/components/base-checkbox/index.d.ts +0 -3
  39. package/dist/components/base-checkbox/types.d.ts +0 -10
  40. package/dist/components/base-icon/icon.vue.d.ts +0 -3
  41. package/dist/components/base-icon/index.d.ts +0 -4
  42. package/dist/components/base-input/index.d.ts +0 -3
  43. package/dist/components/base-label/index.d.ts +0 -2
  44. package/dist/components/base-loader/index.d.ts +0 -3
  45. package/dist/components/base-loader/loader.vue.d.ts +0 -6
  46. package/dist/components/base-loader/types.d.ts +0 -6
  47. package/dist/components/base-plank/index.d.ts +0 -3
  48. package/dist/components/base-plank/types.d.ts +0 -7
  49. package/dist/components/base-select/index.d.ts +0 -3
  50. package/dist/components/base-select/select.vue.d.ts +0 -38
  51. package/dist/components/base-select/types.d.ts +0 -20
  52. package/dist/components/base-text/index.d.ts +0 -3
  53. package/dist/components/base-title/index.d.ts +0 -3
  54. package/dist/components/button-icon/button-icon.vue.d.ts +0 -15
  55. package/dist/components/button-icon/index.d.ts +0 -2
  56. package/dist/components/button-icon/types.d.ts +0 -14
  57. package/dist/components/button-link/index.d.ts +0 -2
  58. package/dist/sprite-CRtOoHbV.js +0 -4
  59. package/dist/sprite-CTNw4BII.cjs +0 -1
  60. package/dist/ui.cjs.js +0 -6
  61. /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.0.59",
5
+ "version": "0.1.1",
6
6
  "author": {
7
7
  "name": "HuntFlow Developer",
8
8
  "nickname": "developer",
@@ -24,7 +24,9 @@
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
- "variables": "npx tsx utils/figma-variables.ts"
27
+ "variables": "npx tsx utils/figma-variables.ts",
28
+ "visual:create": "npx tsx tests/screenshot-create.ts",
29
+ "visual:compare": "npx tsx tests/compare-screenshots.ts"
28
30
  },
29
31
  "publishConfig": {
30
32
  "access": "public"
@@ -44,23 +46,22 @@
44
46
  },
45
47
  "homepage": "https://huntflow.ru/",
46
48
  "dependencies": {
49
+ "reka-ui": "^2.3.0",
47
50
  "vue": "^3.5.13"
48
51
  },
49
52
  "devDependencies": {
50
53
  "@antfu/eslint-config": "^4.2.0",
51
- "@chromatic-com/storybook": "^3.2.6",
54
+ "@chromatic-com/storybook": "^4.0.0-next.16",
52
55
  "@eslint/js": "^9.17.0",
53
56
  "@huntflow/eslint-config": "^1.1.1",
54
- "@storybook/addon-essentials": "^8.6.12",
55
- "@storybook/addon-interactions": "^8.6.12",
56
- "@storybook/addon-links": "^8.6.12",
57
- "@storybook/addon-onboarding": "^8.6.12",
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",
57
+ "@storybook/addon-docs": "^9.1.0-alpha.0",
58
+ "@storybook/addon-links": "^9.1.0-alpha.0",
59
+ "@storybook/addon-onboarding": "^9.1.0-alpha.0",
60
+ "@storybook/vue3-vite": "^9.1.0-alpha.0",
62
61
  "@types/eslint": "^9.6.1",
63
- "@types/node": "^22.10.1",
62
+ "@types/glob": "^8.1.0",
63
+ "@types/node": "^22.15.3",
64
+ "@types/pngjs": "^6.0.5",
64
65
  "@typescript-eslint/eslint-plugin": "^8.18.1",
65
66
  "@typescript-eslint/parser": "^8.18.1",
66
67
  "@vitejs/plugin-vue": "^5.2.3",
@@ -73,11 +74,18 @@
73
74
  "eslint-import-resolver-alias": "^1.1.2",
74
75
  "eslint-plugin-import-x": "^4.6.1",
75
76
  "eslint-plugin-jest": "^28.11.0",
77
+ "eslint-plugin-storybook": "^9.1.0-alpha.0",
78
+ "glob": "^11.0.2",
79
+ "node-fetch": "^3.3.2",
80
+ "pixelmatch": "^7.1.0",
81
+ "pngjs": "^7.0.0",
76
82
  "postcss": "^8.4.49",
77
83
  "postcss-loader": "^8.1.1",
78
84
  "postcss-nesting": "^13.0.1",
79
- "storybook": "^8.6.12",
80
- "storybook-addon-pseudo-states": "^4.0.3",
85
+ "puppeteer": "^24.7.2",
86
+ "sharp": "^0.34.1",
87
+ "storybook": "^9.1.0-alpha.0",
88
+ "storybook-addon-pseudo-states": "^9.1.0-alpha.0",
81
89
  "stylelint": "^16.12.0",
82
90
  "stylelint-config-recommended": "^14.0.1",
83
91
  "tsx": "^4.19.2",
@@ -88,5 +96,8 @@
88
96
  "vite-plugin-eslint2": "^5.0.3",
89
97
  "vite-svg-sprite-wrapper": "^1.4.1",
90
98
  "vue-tsc": "^2.1.8"
99
+ },
100
+ "overrides": {
101
+ "storybook": "$storybook"
91
102
  }
92
103
  }
@@ -1,3 +0,0 @@
1
- import { default as BaseButton } from './button.vue';
2
- export type { BaseButtonProps } from './types';
3
- export { BaseButton };
@@ -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 { default as BaseCheckbox } from './checkbox.vue';
2
- export type { BaseCheckboxProps } from './types';
3
- export { BaseCheckbox };
@@ -1,10 +0,0 @@
1
- export type BaseCheckboxProps = {
2
- className?: string;
3
- type?: BaseCheckboxType;
4
- block?: boolean;
5
- disabled?: boolean;
6
- loading?: boolean;
7
- name?: string;
8
- bordered?: boolean;
9
- };
10
- export type BaseCheckboxType = 'primary' | 'danger' | 'default';
@@ -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,4 +0,0 @@
1
- import { default as BaseIcon } from './icon.vue';
2
- export type { BaseIconProps, IconType } from './types';
3
- declare const injectSvgSprite: () => Promise<void>;
4
- export { BaseIcon, injectSvgSprite };
@@ -1,3 +0,0 @@
1
- import { default as BaseInput } from './input.vue';
2
- export type { BaseInputProps } from './types';
3
- export { BaseInput };
@@ -1,2 +0,0 @@
1
- import { default as BaseLabel } from './label.vue';
2
- export { BaseLabel };
@@ -1,3 +0,0 @@
1
- import { default as BaseLoader } from './loader.vue';
2
- export type { BaseLoaderSize } from './types';
3
- export { BaseLoader };
@@ -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,6 +0,0 @@
1
- export type BaseLoaderProps = {
2
- className?: string;
3
- size: BaseLoaderSize;
4
- color?: 'white' | 'black';
5
- };
6
- export type BaseLoaderSize = 's' | 'm' | 'l';
@@ -1,3 +0,0 @@
1
- import { default as BasePlank } from './base-plank.vue';
2
- export type { BasePlankProps } from './types.ts';
3
- export { BasePlank };
@@ -1,7 +0,0 @@
1
- import { IconType } from '../index';
2
- export type BasePlankProps = {
3
- type?: BasePlankType;
4
- icon?: IconType;
5
- label?: string;
6
- };
7
- export type BasePlankType = 'default' | 'accent' | 'danger';
@@ -1,3 +0,0 @@
1
- import { default as BaseSelect } from './select.vue';
2
- export type { BaseSelectProps } from './types';
3
- export { BaseSelect };
@@ -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,3 +0,0 @@
1
- import { default as BaseText } from './text.vue';
2
- export type { BaseTextProps } from './types';
3
- export { BaseText };
@@ -1,3 +0,0 @@
1
- import { default as BaseTitle } from './title.vue';
2
- export type { BaseTitleProps } from './types';
3
- export { BaseTitle };
@@ -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,2 +0,0 @@
1
- import { default as ButtonIcon } from './button-icon.vue';
2
- export { ButtonIcon };
@@ -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';
@@ -1,2 +0,0 @@
1
- import { default as ButtonLink } from './button-link.vue';
2
- export { ButtonLink };