@huntflow/ui 0.3.28 → 0.3.30
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/components/index.d.ts +2 -0
- package/dist/components/ui-tag/index.d.ts +3 -0
- package/dist/components/ui-tag/tag-code-snippet.d.ts +1 -0
- package/dist/components/ui-tag/tag.vue.d.ts +18 -0
- package/dist/components/ui-tag/types.d.ts +9 -0
- package/dist/global.css +1 -1
- package/dist/ui.es.js +1412 -1385
- package/package.json +1 -1
|
@@ -45,3 +45,5 @@ export { UiPaginationDots } from './ui-pagination-dots';
|
|
|
45
45
|
export type { UiPaginationDotsProps } from './ui-pagination-dots';
|
|
46
46
|
export { UiBadge } from './ui-badge';
|
|
47
47
|
export type { UiBadgeProps } from './ui-badge';
|
|
48
|
+
export { UiTag } from './ui-tag';
|
|
49
|
+
export type { UiTagProps, UiTagVariant } from './ui-tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tagCodeSnippet = "<script setup lang=\"ts\">\nimport { UiTag } from '@huntflow/ui';\n</script>\n\n<template>\n <ui-tag color=\"#2965ff\">\n \u0420\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\n </ui-tag>\n</template>";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UiTagProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLButtonElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<UiTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiTagProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UiTagVariant = 'default' | 'add';
|
|
2
|
+
export type UiTagProps = {
|
|
3
|
+
/** CSS-цвет фона */
|
|
4
|
+
color?: string;
|
|
5
|
+
/** Обрезает текст многоточием. Не меняет максимальную ширину метки. */
|
|
6
|
+
ellipsis?: boolean;
|
|
7
|
+
/** Обычная метка или кнопка добавления. */
|
|
8
|
+
variant?: UiTagVariant;
|
|
9
|
+
};
|