@huntflow/ui 0.2.47 → 0.2.49

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.
@@ -35,5 +35,7 @@ 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 { UiTabs } from './ui-tabs';
39
+ export type { UiTabsProps, UiTabsValue, UiTabsItem } from './ui-tabs';
38
40
  export { UiPaginationDots } from './ui-pagination-dots';
39
41
  export type { UiPaginationDotsProps } from './ui-pagination-dots';
@@ -6,7 +6,7 @@ export type UiCheckboxProps = {
6
6
  label?: string;
7
7
  subtitle?: string;
8
8
  required?: boolean;
9
- value?: string;
9
+ value?: string | number;
10
10
  name?: string;
11
11
  lock?: boolean;
12
12
  ellipsis?: boolean;
@@ -0,0 +1,3 @@
1
+ import { default as UiTabs } from './tabs.vue';
2
+ export type { UiTabsProps, UiTabsEmits, UiTabsValue, UiTabsItem } from './types';
3
+ export { UiTabs };
@@ -0,0 +1 @@
1
+ export declare const tabsCodeSnippet = "\n<script setup lang=\"ts\">\nimport { ref } from \"vue\";\nimport { UiTabs } from \"@huntflow/ui\";\n\nconst model = ref(\"account\");\n\nconst items = [\n {\n label: \"\u0410\u043A\u043A\u0430\u0443\u043D\u0442\",\n value: \"account\"\n },\n {\n label: \"\u041F\u0430\u0440\u043E\u043B\u044C\",\n value: \"password\"\n }\n];\n</script>\n\n<template>\n <ui-tabs\n v-model=\"model\"\n :items=\"items\"\n :indicator=\"true\"\n >\n <template #account>\n \u041A\u043E\u043D\u0442\u0435\u043D\u0442 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430\n </template>\n\n <template #password>\n \u041A\u043E\u043D\u0442\u0435\u043D\u0442 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u043F\u0430\u0440\u043E\u043B\u044F\n </template>\n </ui-tabs>\n</template>\n";
@@ -0,0 +1,30 @@
1
+ import { UiTabsItem, UiTabsProps } from './types';
2
+ declare const _default: <Item extends UiTabsItem = UiTabsItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
6
+ modelValue?: Item["value"];
7
+ } & UiTabsProps<Item>) & Partial<{}>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: Readonly<{
11
+ item?: (props: {
12
+ item: Item;
13
+ }) => any;
14
+ } & { [K in Item["value"]]?: (() => any) | undefined; } & {
15
+ [key: string]: unknown;
16
+ }> & {
17
+ item?: (props: {
18
+ item: Item;
19
+ }) => any;
20
+ } & { [K in Item["value"]]?: (() => any) | undefined; } & {
21
+ [key: string]: unknown;
22
+ };
23
+ emit: ((evt: "update:modelValue", value: Item["value"]) => void) & ((evt: "update:modelValue", value: Item["value"]) => void);
24
+ }>) => import('vue').VNode & {
25
+ __ctx?: Awaited<typeof __VLS_setup>;
26
+ };
27
+ export default _default;
28
+ type __VLS_PrettifyLocal<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1,15 @@
1
+ export type UiTabsValue = string;
2
+ export type UiTabsItem = {
3
+ label: string;
4
+ value: UiTabsValue;
5
+ };
6
+ export type UiTabsProps<Item extends UiTabsItem = UiTabsItem> = {
7
+ modelValue?: Item['value'];
8
+ listAriaLabel?: string;
9
+ size?: 'fit' | 'full';
10
+ indicator?: boolean;
11
+ items: Item[];
12
+ };
13
+ export type UiTabsEmits<Item extends UiTabsItem = UiTabsItem> = {
14
+ 'update:modelValue': [value: Item['value']];
15
+ };