@huntflow/ui 0.3.22 → 0.3.23
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-tooltip/index.d.ts +5 -0
- package/dist/components/ui-tooltip/portal-target.d.ts +2 -0
- package/dist/components/ui-tooltip/tooltip-code-snippet.d.ts +1 -0
- package/dist/components/ui-tooltip/tooltip.vue.d.ts +23 -0
- package/dist/components/ui-tooltip/types.d.ts +31 -0
- package/dist/global.css +1 -1
- package/dist/ui.es.js +3485 -2653
- package/package.json +1 -1
|
@@ -35,6 +35,8 @@ export { UiDropzone } from './ui-dropzone';
|
|
|
35
35
|
export type { UiDropzoneProps } from './ui-dropzone';
|
|
36
36
|
export { UiDropdown } from './ui-dropdown';
|
|
37
37
|
export type { UiDropdownProps, UiDropdownSide, UiDropdownAlign } from './ui-dropdown';
|
|
38
|
+
export { UiTooltip, UiTooltipProvider, tooltipPortalTargetKey } from './ui-tooltip';
|
|
39
|
+
export type { UiTooltipProps, UiTooltipSide, UiTooltipAlign, UiTooltipPlacement, UiTooltipTheme } from './ui-tooltip';
|
|
38
40
|
export { UiModal } from './ui-modal';
|
|
39
41
|
export type { UiModalProps } from './ui-modal';
|
|
40
42
|
export { UiTabs } from './ui-tabs';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as UiTooltip } from './tooltip.vue';
|
|
2
|
+
export type { UiTooltipProps, UiTooltipSide, UiTooltipAlign, UiTooltipPlacement, UiTooltipTheme } from './types';
|
|
3
|
+
export { UiTooltip };
|
|
4
|
+
export { tooltipPortalTargetKey } from './portal-target';
|
|
5
|
+
export { TooltipProvider as UiTooltipProvider } from 'reka-ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tooltipCodeSnippet = "<script setup lang=\"ts\">\nimport { UiButtonIcon, UiTooltip } from '@huntflow/ui';\n</script>\n\n<template>\n <ui-tooltip text=\"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C Cmd+P\" placement=\"bottom\">\n <ui-button-icon\n icon=\"print\"\n type=\"secondary\"\n size=\"xs\"\n />\n </ui-tooltip>\n</template>";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UiTooltipProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
content?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<UiTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:shown": (value: boolean) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<UiTooltipProps> & Readonly<{
|
|
15
|
+
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export type UiTooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export type UiTooltipAlign = 'start' | 'center' | 'end';
|
|
4
|
+
export type UiTooltipPlacement = UiTooltipSide | `${UiTooltipSide}-${UiTooltipAlign}`;
|
|
5
|
+
export type UiTooltipTheme = 'dark' | 'light';
|
|
6
|
+
export type UiTooltipProps = {
|
|
7
|
+
/** Контейнер портала */
|
|
8
|
+
to?: string | HTMLElement;
|
|
9
|
+
/** Состояние открытия tooltip. Используется с v-model:shown. */
|
|
10
|
+
shown?: boolean;
|
|
11
|
+
/** Текст подсказки для простого сценария. */
|
|
12
|
+
text?: string;
|
|
13
|
+
/** Отключает tooltip. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Положение tooltip относительно trigger. */
|
|
16
|
+
placement?: UiTooltipPlacement;
|
|
17
|
+
/** Отступ от trigger в пикселях. */
|
|
18
|
+
distance?: number;
|
|
19
|
+
/** Смещение по оси выравнивания в пикселях. */
|
|
20
|
+
shift?: number;
|
|
21
|
+
/** Дополнительный класс для контента tooltip. */
|
|
22
|
+
contentClass?: HTMLAttributes['class'];
|
|
23
|
+
/** Визуальная тема подсказки. */
|
|
24
|
+
theme?: UiTooltipTheme;
|
|
25
|
+
/** Позволяет удерживать tooltip открытым при наведении на контент. */
|
|
26
|
+
interactive?: boolean;
|
|
27
|
+
/** Задержка открытия в миллисекундах. */
|
|
28
|
+
showDelay?: number;
|
|
29
|
+
/** Скрывает tooltip при клике на trigger. */
|
|
30
|
+
hideOnClick?: boolean;
|
|
31
|
+
};
|