@huntflow/ui 0.3.39 → 0.3.41

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 CHANGED
@@ -114,6 +114,7 @@ npm run tokens:convert
114
114
  | `UiButtonIcon` | Кнопка только с иконкой, без текста |
115
115
  | `UiButtonLink` | Кнопка в виде ссылки, с опциональной иконкой и замочком |
116
116
  | `UiIcon` | Иконка из SVG-спрайта |
117
+ | `UiBadgeCounter` | Счётчик с четырьмя цветовыми вариантами и неактивным состоянием |
117
118
  | `UiInput` | Инпут |
118
119
  | `UiTextarea` | Многострочное поле ввода |
119
120
  | `UiLabel` | Лейбл для полей форм |
@@ -38,6 +38,8 @@ export type { UiDropzoneProps } from './ui-dropzone';
38
38
  export { UiDropdown } from './ui-dropdown';
39
39
  export type { UiDropdownProps, UiDropdownSide, UiDropdownAlign } from './ui-dropdown';
40
40
  export { UiModal, UiModalLayout, UiModalRow } from './ui-modal';
41
+ export { UiPromoModal } from './ui-promo-modal';
42
+ export type { UiPromoModalProps } from './ui-promo-modal';
41
43
  export type { UiModalLayoutProps, UiModalPadding, UiModalProps, UiModalRowProps } from './ui-modal';
42
44
  export { UiTooltip, UiTooltipProvider, tooltipPortalTargetKey } from './ui-tooltip';
43
45
  export type { UiTooltipProps, UiTooltipSide, UiTooltipAlign, UiTooltipPlacement, UiTooltipTheme } from './ui-tooltip';
@@ -47,5 +49,7 @@ export { UiPaginationDots } from './ui-pagination-dots';
47
49
  export type { UiPaginationDotsProps } from './ui-pagination-dots';
48
50
  export { UiBadge } from './ui-badge';
49
51
  export type { UiBadgeProps } from './ui-badge';
52
+ export { UiBadgeCounter } from './ui-badge-counter';
53
+ export type { UiBadgeCounterProps, UiBadgeCounterColor } from './ui-badge-counter';
50
54
  export { UiTag } from './ui-tag';
51
55
  export type { UiTagProps, UiTagVariant } from './ui-tag';
@@ -0,0 +1 @@
1
+ export declare const badgeCounterCodeSnippet = "<script setup lang=\"ts\">\nimport { UiBadgeCounter } from '@huntflow/ui';\n</script>\n\n<template>\n <ui-badge-counter :count=\"15\" color=\"cyan\" />\n</template>";
@@ -0,0 +1,3 @@
1
+ import { UiBadgeCounterProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<UiBadgeCounterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiBadgeCounterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as UiBadgeCounter } from './badge-counter.vue';
2
+ export type { UiBadgeCounterProps, UiBadgeCounterColor } from './types';
3
+ export { UiBadgeCounter };
@@ -0,0 +1,11 @@
1
+ export type UiBadgeCounterColor = 'grey' | 'cyan' | 'light-cyan' | 'red';
2
+ export type UiBadgeCounterProps = {
3
+ /** Значение счётчика. Числа и строки отображаются целиком, включая 0. */
4
+ count: number | string;
5
+ /** Цвет счётчика. */
6
+ color?: UiBadgeCounterColor;
7
+ /** Неактивное состояние с серым текстом и фоном. */
8
+ disabled?: boolean;
9
+ /** Тег, которым будет отрендерен счётчик. */
10
+ tagName?: string;
11
+ };
@@ -11,6 +11,8 @@ export type UiInputProps = {
11
11
  disabled?: boolean;
12
12
  /** Основной текст label. */
13
13
  title?: string;
14
+ /** Насыщенность основного текста label: regular — 400, medium — 500. */
15
+ labelWeight?: 'regular' | 'medium';
14
16
  /** Дополнительный заголовок внутри label. */
15
17
  header?: string;
16
18
  /** Описание под основным текстом label. */
@@ -1,3 +1,6 @@
1
+ type __VLS_Props = {
2
+ weight?: 'regular' | 'medium';
3
+ };
1
4
  declare function __VLS_template(): {
2
5
  attrs: Partial<{}>;
3
6
  slots: {
@@ -10,11 +13,11 @@ declare function __VLS_template(): {
10
13
  rootEl: HTMLDivElement;
11
14
  };
12
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
17
  click: () => any;
15
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
19
  onClick?: (() => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
22
  export default _default;
20
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,3 @@
1
+ import { default as UiPromoModal } from './promo-modal.vue';
2
+ export type { UiPromoModalProps } from './types';
3
+ export { UiPromoModal };
@@ -0,0 +1,44 @@
1
+ import { UiPromoModalProps } from './types';
2
+ type __VLS_Props = UiPromoModalProps;
3
+ type __VLS_PublicProps = {
4
+ 'open'?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ open: boolean;
11
+ setDirty: (value: boolean) => void;
12
+ isDismissing: boolean;
13
+ resolveDismissing: (value: boolean) => void;
14
+ dismiss: () => Promise<void>;
15
+ hide: () => void;
16
+ }): any;
17
+ confirm?(_: {
18
+ open: boolean;
19
+ setDirty: (value: boolean) => void;
20
+ isDismissing: boolean;
21
+ resolveDismissing: (value: boolean) => void;
22
+ dismiss: () => Promise<void>;
23
+ hide: () => void;
24
+ }): any;
25
+ 'floating-root'?(_: {
26
+ setFloatingRoot: (value: HTMLElement | undefined) => void;
27
+ }): any;
28
+ };
29
+ refs: {};
30
+ rootEl: any;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ "update:open": (value: boolean) => any;
35
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
37
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ export default _default;
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,2 @@
1
+ import { UiModalProps } from '../ui-modal';
2
+ export type UiPromoModalProps = Pick<UiModalProps, 'open' | 'beforeClose' | 'dirty' | 'confirmationText' | 'unmountOnHide'>;