@typlog/ui 0.7.2 → 0.8.0
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/accordion/AccordionContent.d.ts +18 -0
- package/dist/components/accordion/AccordionItem.d.ts +18 -0
- package/dist/components/accordion/AccordionRoot.d.ts +19 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +15 -0
- package/dist/components/accordion/index.d.ts +5 -0
- package/dist/components/addons/index.d.ts +1 -1
- package/dist/components/button/Button.d.ts +2 -2
- package/dist/components/button/SocialButton.d.ts +21 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/checkbox/CheckboxGroupRoot.d.ts +8 -10
- package/dist/components/collapsible/CollapsibleContent.d.ts +18 -0
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/combobox/ComboboxRoot.d.ts +1 -0
- package/dist/components/icon/ChevronIcon.d.ts +7 -0
- package/dist/components/icon/PlusMinusIcon.d.ts +10 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- 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 +9 -6
- package/dist/components/radio/Radio.d.ts +8 -5
- package/dist/components/select/SelectTrigger.d.ts +1 -1
- package/dist/components/tabs/TabsList.d.ts +0 -2
- package/dist/index.js +1190 -1023
- package/dist/style.css +1 -1
- package/package.json +5 -6
- package/dist/components/collapsible/CollapsibleChevron.d.ts +0 -6
- /package/dist/components/addons/{IconifyCollection.d.ts → iconify-collection/IconifyCollection.d.ts} +0 -0
- /package/dist/components/addons/{IconifySample.d.ts → iconify-collection/IconifySample.d.ts} +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import { AccordionContentProps } from 'reka-ui';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
rootEl: any;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<AccordionContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
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,18 @@
|
|
1
|
+
import { AccordionItemProps } from 'reka-ui';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
rootEl: any;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<AccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
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,19 @@
|
|
1
|
+
import { AccordionRootProps as _AccordionRootProps } from 'reka-ui';
|
2
|
+
export interface AccordionRootProps extends _AccordionRootProps {
|
3
|
+
size?: '1' | '2' | '3';
|
4
|
+
}
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AccordionRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
6
|
+
"update:modelValue": (value: string | string[] | undefined) => any;
|
7
|
+
}, string, import('vue').PublicProps, Readonly<AccordionRootProps> & Readonly<{
|
8
|
+
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
9
|
+
}>, {
|
10
|
+
size: "1" | "2" | "3";
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
12
|
+
default?(_: {}): any;
|
13
|
+
}>;
|
14
|
+
export default _default;
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
16
|
+
new (): {
|
17
|
+
$slots: S;
|
18
|
+
};
|
19
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { AccordionTriggerProps as _AccordionTriggerProps } from 'reka-ui';
|
2
|
+
export interface AccordionTriggerProps extends _AccordionTriggerProps {
|
3
|
+
indicator?: 'plus-minus' | 'chevron';
|
4
|
+
}
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<AccordionTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionTriggerProps> & Readonly<{}>, {
|
6
|
+
indicator: "plus-minus" | "chevron";
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
8
|
+
default?(_: {}): any;
|
9
|
+
}>;
|
10
|
+
export default _default;
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
12
|
+
new (): {
|
13
|
+
$slots: S;
|
14
|
+
};
|
15
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { type AccordionItemProps, type AccordionContentProps, } from 'reka-ui';
|
2
|
+
export { default as AccordionRoot, type AccordionRootProps, } from './AccordionRoot';
|
3
|
+
export { default as AccordionItem, } from './AccordionItem';
|
4
|
+
export { default as AccordionContent, } from './AccordionContent';
|
5
|
+
export { default as AccordionTrigger, } from './AccordionTrigger';
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { default as Turnstile, type TurnstileProps, } from './Turnstile';
|
2
|
-
export { default as IconifyCollection, } from './IconifyCollection';
|
2
|
+
export { default as IconifyCollection, } from './iconify-collection/IconifyCollection';
|
@@ -3,13 +3,13 @@ import { ColorType, RadiusType } from '../types';
|
|
3
3
|
export interface ButtonProps extends PrimitiveProps {
|
4
4
|
color?: ColorType;
|
5
5
|
radius?: RadiusType;
|
6
|
-
variant?: 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';
|
6
|
+
variant?: 'classic' | 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';
|
7
7
|
size?: '1' | '2' | '3' | '4';
|
8
8
|
highContrast?: boolean;
|
9
9
|
disabled?: boolean;
|
10
10
|
}
|
11
11
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
12
|
-
variant: "solid" | "soft" | "surface" | "outline" | "ghost";
|
12
|
+
variant: "classic" | "solid" | "soft" | "surface" | "outline" | "ghost";
|
13
13
|
size: "1" | "2" | "3" | "4";
|
14
14
|
as: import('reka-ui').AsTag | import('vue').Component;
|
15
15
|
highContrast: boolean;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { PrimitiveProps } from 'reka-ui';
|
2
|
+
import { RadiusType } from '../types';
|
3
|
+
type BrandType = 'google' | 'facebook' | 'x' | 'github' | 'apple' | 'slack' | 'figma';
|
4
|
+
export interface ButtonProps extends PrimitiveProps {
|
5
|
+
brand: BrandType;
|
6
|
+
radius?: RadiusType;
|
7
|
+
size?: '1' | '2' | '3' | '4';
|
8
|
+
disabled?: boolean;
|
9
|
+
}
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
11
|
+
size: "1" | "2" | "3" | "4";
|
12
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
14
|
+
default?(_: {}): any;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
18
|
+
new (): {
|
19
|
+
$slots: S;
|
20
|
+
};
|
21
|
+
};
|
@@ -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
|
}>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { CollapsibleContentProps } from 'reka-ui';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
default?(_: {}): any;
|
6
|
+
};
|
7
|
+
refs: {};
|
8
|
+
rootEl: any;
|
9
|
+
};
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<CollapsibleContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CollapsibleContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
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
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { CollapsibleRoot,
|
2
|
-
export { default as
|
1
|
+
export { CollapsibleRoot, CollapsibleTrigger, } from 'reka-ui';
|
2
|
+
export { default as CollapsibleContent, } from './CollapsibleContent';
|
@@ -28,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
|
|
28
28
|
} | undefined) => any) | undefined;
|
29
29
|
}>, {
|
30
30
|
size: "1" | "2" | "3";
|
31
|
+
multiple: boolean;
|
31
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
32
33
|
default?(_: {}): any;
|
33
34
|
}>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export interface ChevronIconProps {
|
2
|
+
arrowTransform?: 'right-down' | 'right-up' | 'up-down' | 'down-up';
|
3
|
+
}
|
4
|
+
declare const _default: import('vue').DefineComponent<ChevronIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChevronIconProps> & Readonly<{}>, {
|
5
|
+
arrowTransform: "right-down" | "right-up" | "up-down" | "down-up";
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
7
|
+
export default _default;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ColorType } from '../types';
|
2
|
+
export interface PlusMinusIconProps {
|
3
|
+
color?: ColorType;
|
4
|
+
size?: '1' | '2' | '3' | '4';
|
5
|
+
}
|
6
|
+
declare const _default: import('vue').DefineComponent<PlusMinusIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PlusMinusIconProps> & Readonly<{}>, {
|
7
|
+
color: ColorType;
|
8
|
+
size: "1" | "2" | "3" | "4";
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
10
|
+
export default _default;
|
@@ -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,16 +1,19 @@
|
|
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
|
-
variant: "solid" | "soft" | "surface" | "outline" | "ghost";
|
16
|
+
variant: "classic" | "solid" | "soft" | "surface" | "outline" | "ghost";
|
14
17
|
size: "1" | "2" | "3" | "4";
|
15
18
|
perpage: number;
|
16
19
|
edge: number;
|
@@ -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;
|