@huntflow/ui 0.3.40 → 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` | Лейбл для полей форм |
@@ -49,5 +49,7 @@ export { UiPaginationDots } from './ui-pagination-dots';
49
49
  export type { UiPaginationDotsProps } from './ui-pagination-dots';
50
50
  export { UiBadge } from './ui-badge';
51
51
  export type { UiBadgeProps } from './ui-badge';
52
+ export { UiBadgeCounter } from './ui-badge-counter';
53
+ export type { UiBadgeCounterProps, UiBadgeCounterColor } from './ui-badge-counter';
52
54
  export { UiTag } from './ui-tag';
53
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
+ };