@tb-dev/vue-components 4.1.0 → 5.0.1

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.
Files changed (46) hide show
  1. package/dist/components/__base/input/Input.vue.d.ts +3 -2
  2. package/dist/components/__base/textarea/Textarea.vue.d.ts +3 -2
  3. package/dist/components/card/index.d.ts +1 -3
  4. package/dist/components/checkbox/index.d.ts +1 -4
  5. package/dist/components/index.d.ts +1 -5
  6. package/dist/components/input/index.d.ts +1 -3
  7. package/dist/components/number-field/index.d.ts +1 -0
  8. package/dist/components/select/index.d.ts +1 -4
  9. package/dist/components/switch/index.d.ts +1 -3
  10. package/dist/components/table/Table.vue.d.ts +0 -6
  11. package/dist/components/table/index.d.ts +1 -2
  12. package/dist/components/table/types.d.ts +0 -13
  13. package/dist/components/textarea/index.d.ts +1 -3
  14. package/dist/index.js +631 -1289
  15. package/package.json +4 -4
  16. package/dist/components/button-icon/ButtonIcon.vue.d.ts +0 -19
  17. package/dist/components/button-icon/index.d.ts +0 -3
  18. package/dist/components/button-icon/types.d.ts +0 -9
  19. package/dist/components/button-link/ButtonLink.vue.d.ts +0 -19
  20. package/dist/components/button-link/ButtonLinkInner.vue.d.ts +0 -21
  21. package/dist/components/button-link/index.d.ts +0 -3
  22. package/dist/components/button-link/types.d.ts +0 -14
  23. package/dist/components/card/Card.vue.d.ts +0 -29
  24. package/dist/components/card/types.d.ts +0 -10
  25. package/dist/components/checkbox/Checkbox.vue.d.ts +0 -11
  26. package/dist/components/checkbox/types.d.ts +0 -6
  27. package/dist/components/checkbox/utils.d.ts +0 -3
  28. package/dist/components/dialog/types.d.ts +0 -8
  29. package/dist/components/input/Input.vue.d.ts +0 -39
  30. package/dist/components/input/types.d.ts +0 -19
  31. package/dist/components/input-number/InputNumber.vue.d.ts +0 -9
  32. package/dist/components/input-number/index.d.ts +0 -3
  33. package/dist/components/input-number/types.d.ts +0 -18
  34. package/dist/components/input-text/InputText.vue.d.ts +0 -70
  35. package/dist/components/input-text/index.d.ts +0 -3
  36. package/dist/components/input-text/types.d.ts +0 -16
  37. package/dist/components/link/Link.vue.d.ts +0 -19
  38. package/dist/components/link/index.d.ts +0 -3
  39. package/dist/components/link/types.d.ts +0 -4
  40. package/dist/components/select/Select.vue.d.ts +0 -27
  41. package/dist/components/select/types.d.ts +0 -14
  42. package/dist/components/switch/Switch.vue.d.ts +0 -31
  43. package/dist/components/switch/types.d.ts +0 -3
  44. package/dist/components/table/TableLink.vue.d.ts +0 -19
  45. package/dist/components/textarea/Textarea.vue.d.ts +0 -37
  46. package/dist/components/textarea/types.d.ts +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue-components",
3
- "version": "4.1.0",
3
+ "version": "5.0.1",
4
4
  "description": "Vue components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,16 +41,16 @@
41
41
  "devDependencies": {
42
42
  "@tailwindcss/vite": "^4.1.11",
43
43
  "@tb-dev/eslint-config": "^8.0.0",
44
- "@types/node": "^24.0.12",
44
+ "@types/node": "^24.0.14",
45
45
  "@vitejs/plugin-vue": "^6.0.0",
46
- "eslint": "^9.30.1",
46
+ "eslint": "^9.31.0",
47
47
  "prettier": "^3.6.2",
48
48
  "prettier-plugin-css-order": "^2.1.2",
49
49
  "prettier-plugin-tailwindcss": "^0.6.14",
50
50
  "tailwindcss": "^4.1.11",
51
51
  "tslib": "^2.8.1",
52
52
  "typescript": "~5.8.3",
53
- "vite": "^7.0.3",
53
+ "vite": "^7.0.4",
54
54
  "vite-plugin-dts": "^4.5.4",
55
55
  "vue-tsc": "~3.0.1"
56
56
  },
@@ -1,19 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { ButtonIconProps } from './types';
3
- declare const _default: <T extends string>(__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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ButtonIconProps<T> & Partial<{}>> & import('vue').PublicProps;
5
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
- attrs: any;
7
- slots: Readonly<{
8
- default?: () => VNode;
9
- }> & {
10
- default?: () => VNode;
11
- };
12
- emit: {};
13
- }>) => import('vue').VNode & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
@@ -1,3 +0,0 @@
1
- import { default as ButtonIcon } from './ButtonIcon.vue';
2
- export type * from './types';
3
- export { ButtonIcon };
@@ -1,9 +0,0 @@
1
- import { Component, HTMLAttributes } from 'vue';
2
- export interface ButtonIconProps<T extends string> {
3
- buttonClass?: HTMLAttributes['class'];
4
- class?: HTMLAttributes['class'];
5
- icon: Component;
6
- iconClass?: HTMLAttributes['class'];
7
- iconSize?: number;
8
- to?: T;
9
- }
@@ -1,19 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { ButtonLinkProps } from './types';
3
- declare const _default: <T extends string>(__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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ButtonLinkProps<T> & Partial<{}>> & import('vue').PublicProps;
5
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
- attrs: any;
7
- slots: Readonly<{
8
- default?: () => VNode;
9
- }> & {
10
- default?: () => VNode;
11
- };
12
- emit: {};
13
- }>) => import('vue').VNode & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
@@ -1,21 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { ButtonLinkInnerProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: () => VNode;
7
- }> & {
8
- default?: () => VNode;
9
- };
10
- refs: {};
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import('vue').DefineComponent<ButtonLinkInnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonLinkInnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
- export default _default;
17
- type __VLS_WithTemplateSlots<T, S> = T & {
18
- new (): {
19
- $slots: S;
20
- };
21
- };
@@ -1,3 +0,0 @@
1
- import { default as ButtonLink } from './ButtonLink.vue';
2
- export type * from './types';
3
- export { ButtonLink };
@@ -1,14 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- import { Option } from '@tb-dev/utils';
3
- import { ButtonSize, ButtonVariant } from '../button';
4
- export interface ButtonLinkInnerProps {
5
- buttonClass?: HTMLAttributes['class'];
6
- disabled?: Option<boolean>;
7
- label?: Option<string>;
8
- size?: ButtonSize;
9
- style?: HTMLAttributes['style'];
10
- variant?: ButtonVariant;
11
- }
12
- export interface ButtonLinkProps<T extends string> extends ButtonLinkInnerProps {
13
- to: T;
14
- }
@@ -1,29 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { CardProps } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- default?: () => VNode;
7
- description?: () => VNode;
8
- footer?: () => VNode;
9
- title?: () => VNode;
10
- }> & {
11
- default?: () => VNode;
12
- description?: () => VNode;
13
- footer?: () => VNode;
14
- title?: () => VNode;
15
- };
16
- refs: {};
17
- rootEl: HTMLDivElement;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
21
- scrollAreaHeight: number | string;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
- export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
26
- new (): {
27
- $slots: S;
28
- };
29
- };
@@ -1,10 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- export interface CardProps {
3
- contentClass?: HTMLAttributes['class'];
4
- descriptionClass?: HTMLAttributes['class'];
5
- footerClass?: HTMLAttributes['class'];
6
- headerClass?: HTMLAttributes['class'];
7
- scrollAreaClass?: HTMLAttributes['class'];
8
- scrollAreaHeight?: number | string;
9
- titleClass?: HTMLAttributes['class'];
10
- }
@@ -1,11 +0,0 @@
1
- import { CheckboxProps, CheckboxValue } from './types';
2
- type __VLS_Props = CheckboxProps;
3
- type __VLS_PublicProps = {
4
- modelValue?: CheckboxValue;
5
- } & __VLS_Props;
6
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: boolean | "indeterminate" | null | undefined) => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
- "onUpdate:modelValue"?: ((value: boolean | "indeterminate" | null | undefined) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
- export default _default;
@@ -1,6 +0,0 @@
1
- import { CheckboxRootProps } from 'reka-ui';
2
- export type CheckboxValue = CheckboxRootProps['modelValue'];
3
- export interface CheckboxProps {
4
- defaultValue?: CheckboxRootProps['defaultValue'];
5
- disabled?: CheckboxRootProps['disabled'];
6
- }
@@ -1,3 +0,0 @@
1
- import { Option } from '@tb-dev/utils';
2
- import { CheckboxValue } from './types';
3
- export declare function toBooleanCheckboxValue(value: Option<CheckboxValue>): boolean;
@@ -1,8 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- export interface DialogProps {
3
- contentClass?: HTMLAttributes['class'];
4
- descriptionClass?: HTMLAttributes['class'];
5
- footerClass?: HTMLAttributes['class'];
6
- headerClass?: HTMLAttributes['class'];
7
- titleClass?: HTMLAttributes['class'];
8
- }
@@ -1,39 +0,0 @@
1
- import { InputProps } from './types';
2
- import { Option } from '@tb-dev/utils';
3
- declare function focus(): void;
4
- declare function blur(): void;
5
- declare function select(): void;
6
- declare const _default: import('vue').DefineComponent<InputProps, {
7
- inputEl: import('vue').ComputedRef<Option<HTMLInputElement>>;
8
- focus: typeof focus;
9
- blur: typeof blur;
10
- select: typeof select;
11
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- "update:modelValue": (value: string | null) => any;
13
- }, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
14
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
- inputComponent: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
17
- defaultValue?: string | number;
18
- modelValue?: string | number;
19
- class?: import('vue').HTMLAttributes["class"];
20
- }> & Readonly<{
21
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
22
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
- "update:modelValue": (payload: string | number) => any;
24
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLInputElement, import('vue').ComponentProvideOptions, {
25
- P: {};
26
- B: {};
27
- D: {};
28
- C: {};
29
- M: {};
30
- Defaults: {};
31
- }, Readonly<{
32
- defaultValue?: string | number;
33
- modelValue?: string | number;
34
- class?: import('vue').HTMLAttributes["class"];
35
- }> & Readonly<{
36
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
37
- }>, {}, {}, {}, {}, {}> | null;
38
- }, HTMLInputElement>;
39
- export default _default;
@@ -1,19 +0,0 @@
1
- import { Option } from '@tb-dev/utils';
2
- import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
- export interface InputProps {
4
- autocomplete?: InputHTMLAttributes['autocomplete'];
5
- autofocus?: InputHTMLAttributes['autofocus'];
6
- class?: HTMLAttributes['class'];
7
- disabled?: InputHTMLAttributes['disabled'];
8
- max?: InputHTMLAttributes['maxlength'];
9
- min?: InputHTMLAttributes['minlength'];
10
- modelValue: Option<string>;
11
- onBlur?: () => void;
12
- placeholder?: InputHTMLAttributes['placeholder'];
13
- readonly?: InputHTMLAttributes['readonly'];
14
- required?: InputHTMLAttributes['required'];
15
- size?: InputHTMLAttributes['size'];
16
- spellcheck?: InputHTMLAttributes['spellcheck'];
17
- style?: HTMLAttributes['style'];
18
- type?: InputHTMLAttributes['type'];
19
- }
@@ -1,9 +0,0 @@
1
- import { InputNumberProps } from './types';
2
- declare const _default: import('vue').DefineComponent<InputNumberProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
- "update:modelValue": (value: number | null) => any;
4
- }, string, import('vue').PublicProps, Readonly<InputNumberProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
6
- }>, {
7
- formatOptions: Intl.NumberFormatOptions;
8
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as InputNumber } from './InputNumber.vue';
2
- export type * from './types';
3
- export { InputNumber };
@@ -1,18 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- import { Option } from '@tb-dev/utils';
3
- import { NumberFieldRootProps } from 'reka-ui';
4
- export interface InputNumberProps {
5
- class?: HTMLAttributes['class'];
6
- defaultValue?: number;
7
- disabled?: boolean;
8
- disableDecrement?: boolean;
9
- disableIncrement?: boolean;
10
- disableWheelChange?: NumberFieldRootProps['disableWheelChange'];
11
- formatOptions?: NumberFieldRootProps['formatOptions'];
12
- max?: NumberFieldRootProps['max'];
13
- min?: NumberFieldRootProps['min'];
14
- modelValue: Option<number>;
15
- step?: NumberFieldRootProps['step'];
16
- stepSnapping?: NumberFieldRootProps['stepSnapping'];
17
- style?: HTMLAttributes['style'];
18
- }
@@ -1,70 +0,0 @@
1
- import { Option } from '@tb-dev/utils';
2
- import { InputTextProps } from './types';
3
- type __VLS_Props = InputTextProps;
4
- declare function focus(): void;
5
- declare function blur(): void;
6
- declare function select(): void;
7
- type __VLS_PublicProps = {
8
- modelValue: Option<string>;
9
- } & __VLS_Props;
10
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
11
- inputEl: import('vue').ComputedRef<Option<HTMLInputElement>>;
12
- focus: typeof focus;
13
- blur: typeof blur;
14
- select: typeof select;
15
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
- "update:modelValue": (value: Option<string>) => any;
17
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
- "onUpdate:modelValue"?: ((value: Option<string>) => any) | undefined;
19
- }>, {
20
- spellcheck: boolean | "true" | "false";
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
- inputComponent: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').InputProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
24
- }>, {
25
- inputEl: import('vue').ComputedRef<Option<HTMLInputElement>>;
26
- focus: () => void;
27
- blur: () => void;
28
- select: () => void;
29
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
- "update:modelValue": (value: string | null) => any;
31
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
- inputComponent: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
33
- defaultValue?: string | number;
34
- modelValue?: string | number;
35
- class?: import('vue').HTMLAttributes["class"];
36
- }> & Readonly<{
37
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
38
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
39
- "update:modelValue": (payload: string | number) => any;
40
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLInputElement, import('vue').ComponentProvideOptions, {
41
- P: {};
42
- B: {};
43
- D: {};
44
- C: {};
45
- M: {};
46
- Defaults: {};
47
- }, Readonly<{
48
- defaultValue?: string | number;
49
- modelValue?: string | number;
50
- class?: import('vue').HTMLAttributes["class"];
51
- }> & Readonly<{
52
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
53
- }>, {}, {}, {}, {}, {}> | null;
54
- }, HTMLInputElement, import('vue').ComponentProvideOptions, {
55
- P: {};
56
- B: {};
57
- D: {};
58
- C: {};
59
- M: {};
60
- Defaults: {};
61
- }, Readonly<import('..').InputProps> & Readonly<{
62
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
63
- }>, {
64
- inputEl: import('vue').ComputedRef<Option<HTMLInputElement>>;
65
- focus: () => void;
66
- blur: () => void;
67
- select: () => void;
68
- }, {}, {}, {}, {}> | null;
69
- }, HTMLInputElement>;
70
- export default _default;
@@ -1,3 +0,0 @@
1
- import { default as InputText } from './InputText.vue';
2
- export type * from './types';
3
- export { InputText };
@@ -1,16 +0,0 @@
1
- import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
- export interface InputTextProps {
3
- autocomplete?: InputHTMLAttributes['autocomplete'];
4
- autofocus?: InputHTMLAttributes['autofocus'];
5
- class?: HTMLAttributes['class'];
6
- disabled?: InputHTMLAttributes['disabled'];
7
- max?: InputHTMLAttributes['maxlength'];
8
- min?: InputHTMLAttributes['minlength'];
9
- onBlur?: () => void;
10
- placeholder?: InputHTMLAttributes['placeholder'];
11
- readonly?: InputHTMLAttributes['readonly'];
12
- required?: InputHTMLAttributes['required'];
13
- size?: InputHTMLAttributes['size'];
14
- spellcheck?: InputHTMLAttributes['spellcheck'];
15
- style?: HTMLAttributes['style'];
16
- }
@@ -1,19 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { LinkProps } from './types';
3
- declare const _default: <T extends string>(__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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & LinkProps<T> & Partial<{}>> & import('vue').PublicProps;
5
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
- attrs: any;
7
- slots: Readonly<{
8
- default?: () => VNode;
9
- }> & {
10
- default?: () => VNode;
11
- };
12
- emit: {};
13
- }>) => import('vue').VNode & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
@@ -1,3 +0,0 @@
1
- import { default as Link } from './Link.vue';
2
- export type * from './types';
3
- export { Link };
@@ -1,4 +0,0 @@
1
- export interface LinkProps<T extends string> {
2
- label?: string;
3
- to: T;
4
- }
@@ -1,27 +0,0 @@
1
- import { SelectProps } from './types';
2
- import { VNode } from 'vue';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Readonly<{
6
- action?: () => VNode;
7
- default?: () => VNode;
8
- }> & {
9
- action?: () => VNode;
10
- default?: () => VNode;
11
- };
12
- refs: {};
13
- rootEl: HTMLDivElement;
14
- };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<SelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- "update:modelValue": (value: string | null) => any;
18
- }, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
- export default _default;
23
- type __VLS_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
@@ -1,14 +0,0 @@
1
- import { Option } from '@tb-dev/utils';
2
- import { HTMLAttributes, SelectHTMLAttributes } from 'vue';
3
- export interface SelectProps {
4
- autocomplete?: SelectHTMLAttributes['autocomplete'];
5
- autofocus?: SelectHTMLAttributes['autofocus'];
6
- contentClass?: HTMLAttributes['class'];
7
- disabled?: boolean;
8
- modelValue: Option<string>;
9
- placeholder?: string;
10
- required?: boolean;
11
- selectClass?: HTMLAttributes['class'];
12
- selectStyle?: HTMLAttributes['style'];
13
- triggerClass?: HTMLAttributes['class'];
14
- }
@@ -1,31 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { SwitchProps } from './types';
3
- type __VLS_Props = SwitchProps;
4
- type __VLS_PublicProps = {
5
- modelValue: boolean;
6
- } & __VLS_Props;
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: Readonly<{
10
- label?: () => VNode;
11
- thumb?: () => VNode;
12
- }> & {
13
- label?: () => VNode;
14
- thumb?: () => VNode;
15
- };
16
- refs: {};
17
- rootEl: any;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- "update:modelValue": (value: boolean) => any;
22
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,3 +0,0 @@
1
- export interface SwitchProps {
2
- disabled?: boolean;
3
- }
@@ -1,19 +0,0 @@
1
- import { VNode } from 'vue';
2
- import { TableLinkProps } from './types';
3
- declare const _default: <T extends string>(__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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & TableLinkProps<T> & Partial<{}>> & import('vue').PublicProps;
5
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
- attrs: any;
7
- slots: Readonly<{
8
- default?: () => VNode;
9
- }> & {
10
- default?: () => VNode;
11
- };
12
- emit: {};
13
- }>) => import('vue').VNode & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
16
- export default _default;
17
- type __VLS_PrettifyLocal<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
@@ -1,37 +0,0 @@
1
- import { TextareaProps } from './types';
2
- import { Option } from '@tb-dev/utils';
3
- declare const _default: import('vue').DefineComponent<TextareaProps, {
4
- textareaEl: import('vue').ComputedRef<Option<HTMLTextAreaElement>>;
5
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: string | null) => any;
7
- }, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
9
- }>, {
10
- autocomplete: string;
11
- spellcheck: boolean | "true" | "false";
12
- autocorrect: string;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
- textareaComponent: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
15
- class?: import('vue').HTMLAttributes["class"];
16
- defaultValue?: string | number;
17
- modelValue?: string | number;
18
- }> & Readonly<{
19
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
20
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
- "update:modelValue": (payload: string | number) => any;
22
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLTextAreaElement, import('vue').ComponentProvideOptions, {
23
- P: {};
24
- B: {};
25
- D: {};
26
- C: {};
27
- M: {};
28
- Defaults: {};
29
- }, Readonly<{
30
- class?: import('vue').HTMLAttributes["class"];
31
- defaultValue?: string | number;
32
- modelValue?: string | number;
33
- }> & Readonly<{
34
- "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
35
- }>, {}, {}, {}, {}, {}> | null;
36
- }, any>;
37
- export default _default;
@@ -1,22 +0,0 @@
1
- import { Option } from '@tb-dev/utils';
2
- import { HTMLAttributes, TextareaHTMLAttributes } from 'vue';
3
- export interface TextareaProps {
4
- autocapitalize?: TextareaHTMLAttributes['autocapitalize'];
5
- autocomplete?: TextareaHTMLAttributes['autocomplete'];
6
- autocorrect?: TextareaHTMLAttributes['autocorrect'];
7
- autofocus?: TextareaHTMLAttributes['autofocus'];
8
- class?: HTMLAttributes['class'];
9
- cols?: TextareaHTMLAttributes['cols'];
10
- disabled?: boolean;
11
- height?: number | string;
12
- max?: TextareaHTMLAttributes['maxlength'];
13
- min?: TextareaHTMLAttributes['minlength'];
14
- modelValue: Option<string>;
15
- onBlur?: () => void;
16
- placeholder?: TextareaHTMLAttributes['placeholder'];
17
- readonly?: TextareaHTMLAttributes['readonly'];
18
- required?: TextareaHTMLAttributes['required'];
19
- rows?: TextareaHTMLAttributes['rows'];
20
- spellcheck?: TextareaHTMLAttributes['spellcheck'];
21
- style?: HTMLAttributes['style'];
22
- }