@typlog/ui 0.7.2 → 0.7.3
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/checkbox/CheckboxGroupRoot.d.ts +8 -10
- package/dist/components/combobox/ComboboxInput.d.ts +8 -4
- package/dist/components/inputs/ColorField.d.ts +8 -5
- package/dist/components/inputs/TextArea.d.ts +8 -5
- package/dist/components/inputs/TextField.d.ts +8 -5
- package/dist/components/pagination/Pagination.d.ts +8 -5
- package/dist/components/radio/Radio.d.ts +8 -5
- package/dist/components/select/SelectTrigger.d.ts +1 -1
- package/dist/index.js +932 -916
- package/dist/style.css +1 -1
- package/package.json +4 -5
@@ -1,15 +1,9 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { PrimitiveProps } from 'reka-ui';
|
3
3
|
export interface CheckboxGroupRootProps extends PrimitiveProps {
|
4
|
-
modelValue?: string[];
|
5
|
-
defaultValue?: string[];
|
6
4
|
disabled?: boolean;
|
7
5
|
name?: string;
|
8
6
|
}
|
9
|
-
export type CheckboxGroupRootEmits = {
|
10
|
-
/** Event handler called when the radio group value changes */
|
11
|
-
'update:modelValue': [payload: string[]];
|
12
|
-
};
|
13
7
|
interface CheckboxGroupRootContext {
|
14
8
|
selected: Ref<string[]>;
|
15
9
|
checked: Ref<boolean | 'indeterminate'>;
|
@@ -22,10 +16,14 @@ interface CheckboxGroupRootContext {
|
|
22
16
|
name?: string;
|
23
17
|
}
|
24
18
|
export declare const injectCheckboxGroupRootContext: <T extends CheckboxGroupRootContext | null | undefined = CheckboxGroupRootContext>(fallback?: T | undefined) => T extends null ? CheckboxGroupRootContext | null : CheckboxGroupRootContext, provideCheckboxGroupRootContext: (contextValue: CheckboxGroupRootContext) => CheckboxGroupRootContext;
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
26
|
-
|
27
|
-
},
|
28
|
-
"
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
20
|
+
modelValue?: any[];
|
21
|
+
} & CheckboxGroupRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
22
|
+
"update:modelValue": (value: any[]) => any;
|
23
|
+
}, string, import('vue').PublicProps, Readonly<{
|
24
|
+
modelValue?: any[];
|
25
|
+
} & CheckboxGroupRootProps> & Readonly<{
|
26
|
+
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
29
27
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
30
28
|
default?(_: {}): any;
|
31
29
|
}>;
|
@@ -5,10 +5,14 @@ export interface ComboboxInputProps extends _ComboboxInputProps {
|
|
5
5
|
radius?: RadiusType;
|
6
6
|
placeholder?: string;
|
7
7
|
}
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
9
|
-
|
10
|
-
},
|
11
|
-
"
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
9
|
+
modelValue?: string;
|
10
|
+
} & ComboboxInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: unknown[]) => any;
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
13
|
+
modelValue?: string;
|
14
|
+
} & ComboboxInputProps> & Readonly<{
|
15
|
+
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
12
16
|
}>, {
|
13
17
|
variant: "surface" | "soft";
|
14
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
@@ -1,15 +1,18 @@
|
|
1
1
|
import { RadiusType } from '../types';
|
2
2
|
export interface ColorFieldProps {
|
3
3
|
id?: string;
|
4
|
-
modelValue?: string;
|
5
4
|
variant?: 'solid' | 'outline';
|
6
5
|
size?: '1' | '2' | '3';
|
7
6
|
radius?: RadiusType;
|
8
7
|
}
|
9
|
-
declare const _default: import('vue').DefineComponent<
|
10
|
-
|
11
|
-
},
|
12
|
-
"
|
8
|
+
declare const _default: import('vue').DefineComponent<{
|
9
|
+
modelValue?: string;
|
10
|
+
} & ColorFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (value: string) => any;
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
13
|
+
modelValue?: string;
|
14
|
+
} & ColorFieldProps> & Readonly<{
|
15
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
13
16
|
}>, {
|
14
17
|
variant: "solid" | "outline";
|
15
18
|
size: "1" | "2" | "3";
|
@@ -1,17 +1,20 @@
|
|
1
1
|
import { ColorType, RadiusType } from '../types';
|
2
2
|
export interface TextAreaProps {
|
3
3
|
class?: string;
|
4
|
-
modelValue?: string;
|
5
4
|
size?: '1' | '2' | '3';
|
6
5
|
variant?: 'surface' | 'soft';
|
7
6
|
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
8
7
|
color?: ColorType;
|
9
8
|
radius?: RadiusType;
|
10
9
|
}
|
11
|
-
declare const _default: import('vue').DefineComponent<
|
12
|
-
|
13
|
-
},
|
14
|
-
"
|
10
|
+
declare const _default: import('vue').DefineComponent<{
|
11
|
+
modelValue?: string;
|
12
|
+
} & TextAreaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
13
|
+
"update:modelValue": (value: string) => any;
|
14
|
+
}, string, import('vue').PublicProps, Readonly<{
|
15
|
+
modelValue?: string;
|
16
|
+
} & TextAreaProps> & Readonly<{
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
15
18
|
}>, {
|
16
19
|
variant: "surface" | "soft";
|
17
20
|
size: "1" | "2" | "3";
|
@@ -2,17 +2,20 @@ import { ColorType, RadiusType } from '../types';
|
|
2
2
|
export interface TextFieldProps {
|
3
3
|
id?: string;
|
4
4
|
class?: string;
|
5
|
-
modelValue?: string | number;
|
6
5
|
size?: '1' | '2' | '3';
|
7
6
|
variant?: 'surface' | 'soft';
|
8
7
|
color?: ColorType;
|
9
8
|
radius?: RadiusType;
|
10
9
|
type?: 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'file';
|
11
10
|
}
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
13
|
-
|
14
|
-
},
|
15
|
-
"
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
12
|
+
modelValue?: any;
|
13
|
+
} & TextFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
14
|
+
"update:modelValue": (value: any) => any;
|
15
|
+
}, string, import('vue').PublicProps, Readonly<{
|
16
|
+
modelValue?: any;
|
17
|
+
} & TextFieldProps> & Readonly<{
|
18
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
16
19
|
}>, {
|
17
20
|
variant: "surface" | "soft";
|
18
21
|
size: "1" | "2" | "3";
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import { ButtonProps } from '../button/Button';
|
2
2
|
export interface PaginationProps extends ButtonProps {
|
3
3
|
total: number;
|
4
|
-
page: number;
|
5
4
|
perpage?: number;
|
6
5
|
edge?: number;
|
7
6
|
}
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
9
|
-
|
10
|
-
},
|
11
|
-
"
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
8
|
+
page: number;
|
9
|
+
} & PaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
10
|
+
"update:page": (value: number) => any;
|
11
|
+
}, string, import('vue').PublicProps, Readonly<{
|
12
|
+
page: number;
|
13
|
+
} & PaginationProps> & Readonly<{
|
14
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
12
15
|
}>, {
|
13
16
|
variant: "solid" | "soft" | "surface" | "outline" | "ghost";
|
14
17
|
size: "1" | "2" | "3" | "4";
|
@@ -1,15 +1,18 @@
|
|
1
1
|
import { ColorType } from '../types';
|
2
2
|
export interface RadioProps {
|
3
|
-
modelValue?: string;
|
4
3
|
color?: ColorType;
|
5
4
|
size?: '1' | '2' | '3';
|
6
5
|
variant?: 'surface' | 'soft';
|
7
6
|
highContrast?: boolean;
|
8
7
|
}
|
9
|
-
declare const _default: import('vue').DefineComponent<
|
10
|
-
|
11
|
-
},
|
12
|
-
"
|
8
|
+
declare const _default: import('vue').DefineComponent<{
|
9
|
+
modelValue?: any;
|
10
|
+
} & RadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (value: any) => any;
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
13
|
+
modelValue?: any;
|
14
|
+
} & RadioProps> & Readonly<{
|
15
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
13
16
|
}>, {
|
14
17
|
variant: "surface" | "soft";
|
15
18
|
size: "1" | "2" | "3";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SelectTriggerProps as _SelectTriggerProps } from 'reka-ui';
|
2
|
-
import { RadiusType } from '
|
2
|
+
import { RadiusType } from '../types';
|
3
3
|
export interface SelectTriggerProps extends _SelectTriggerProps {
|
4
4
|
variant?: 'surface' | 'soft' | 'ghost';
|
5
5
|
radius?: RadiusType;
|