@typlog/ui 0.5.0 → 0.5.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.
@@ -4,11 +4,12 @@ export interface CardHeadProps extends PrimitiveProps {
4
4
  color?: ColorType;
5
5
  }
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: {
8
9
  default?(_: {}): any;
9
10
  };
10
11
  refs: {};
11
- attrs: Partial<{}>;
12
+ rootEl: any;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
15
  declare const __VLS_component: import('vue').DefineComponent<CardHeadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardHeadProps> & Readonly<{}>, {
@@ -14,5 +14,5 @@ declare const _default: import('vue').DefineComponent<ColorFieldProps, {}, {}, {
14
14
  }>, {
15
15
  variant: "surface" | "soft";
16
16
  size: "1" | "2" | "3";
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
18
  export default _default;
@@ -1,15 +1,24 @@
1
- import { ComboboxInputProps as _ComboboxInputProps } from 'reka-ui';
1
+ import { ComboboxInputProps as _ComboboxInputProps, AcceptableInputValue } from 'reka-ui';
2
2
  import { RadiusType } from './types';
3
3
  export interface ComboboxInputProps extends _ComboboxInputProps {
4
4
  variant?: 'surface' | 'soft';
5
5
  radius?: RadiusType;
6
6
  placeholder?: string;
7
7
  }
8
- declare const _default: import('vue').DefineComponent<ComboboxInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
9
  "update:modelValue": (args_0: string) => any;
10
10
  }, string, import('vue').PublicProps, Readonly<ComboboxInputProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
12
12
  }>, {
13
13
  variant: "surface" | "soft";
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
15
+ item?(_: {
16
+ item: AcceptableInputValue;
17
+ }): any;
18
+ }>;
15
19
  export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -1,7 +1,144 @@
1
- import { ComboboxItemProps } from 'reka-ui';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxItemProps<import('reka-ui').AcceptableValue>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ComboboxItemProps<import('reka-ui').AcceptableValue>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
3
- default?(_: {}): any;
4
- }>;
1
+ import { ComponentPublicInstance } from 'vue';
2
+ import { Icon } from '@iconify/vue';
3
+ import { ComboboxItem, ComboboxItemIndicator, ComboboxItemProps } from 'reka-ui';
4
+ type __VLS_Props = ComboboxItemProps;
5
+ declare const forwarded: import('vue').ComputedRef<import('vue').DefineProps<import('@vue/shared').LooseRequired<__VLS_Props>, "asChild" | "disabled">>;
6
+ declare const primitiveElement: import('vue').Ref<ComponentPublicInstance | undefined, ComponentPublicInstance | undefined>;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {
13
+ primitiveElement: ({
14
+ $: import('vue').ComponentInternalInstance;
15
+ $data: {};
16
+ $props: {
17
+ readonly textValue?: string | undefined;
18
+ readonly value: import('reka-ui').AcceptableValue;
19
+ readonly disabled?: boolean | undefined;
20
+ readonly asChild?: boolean | undefined;
21
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
22
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
23
+ $attrs: {
24
+ [x: string]: unknown;
25
+ };
26
+ $refs: {
27
+ [x: string]: unknown;
28
+ };
29
+ $slots: Readonly<{
30
+ [name: string]: import('vue').Slot<any> | undefined;
31
+ }>;
32
+ $root: ComponentPublicInstance | null;
33
+ $parent: ComponentPublicInstance | null;
34
+ $host: Element | null;
35
+ $emit: (event: string, ...args: any[]) => void;
36
+ $el: any;
37
+ $options: import('vue').ComponentOptionsBase<Readonly<__VLS_Props> & Readonly<{}>, {
38
+ Icon: typeof Icon;
39
+ ComboboxItem: typeof ComboboxItem;
40
+ ComboboxItemIndicator: typeof ComboboxItemIndicator;
41
+ forwarded: typeof forwarded;
42
+ primitiveElement: typeof primitiveElement;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
44
+ beforeCreate?: (() => void) | (() => void)[];
45
+ created?: (() => void) | (() => void)[];
46
+ beforeMount?: (() => void) | (() => void)[];
47
+ mounted?: (() => void) | (() => void)[];
48
+ beforeUpdate?: (() => void) | (() => void)[];
49
+ updated?: (() => void) | (() => void)[];
50
+ activated?: (() => void) | (() => void)[];
51
+ deactivated?: (() => void) | (() => void)[];
52
+ beforeDestroy?: (() => void) | (() => void)[];
53
+ beforeUnmount?: (() => void) | (() => void)[];
54
+ destroyed?: (() => void) | (() => void)[];
55
+ unmounted?: (() => void) | (() => void)[];
56
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
57
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
58
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
59
+ };
60
+ $forceUpdate: () => void;
61
+ $nextTick: typeof import('vue').nextTick;
62
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
63
+ } & Readonly<{}> & Omit<Readonly<__VLS_Props> & Readonly<{}>, "forwarded" | "Icon" | "ComboboxItem" | "ComboboxItemIndicator" | "primitiveElement"> & import('vue').ShallowUnwrapRef<{
64
+ Icon: typeof Icon;
65
+ ComboboxItem: typeof ComboboxItem;
66
+ ComboboxItemIndicator: typeof ComboboxItemIndicator;
67
+ forwarded: typeof forwarded;
68
+ primitiveElement: typeof primitiveElement;
69
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
70
+ $slots: {
71
+ default?(_: {}): any;
72
+ };
73
+ }) | null;
74
+ };
75
+ rootEl: any;
76
+ };
77
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
78
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
79
+ primitiveElement: ({
80
+ $: import('vue').ComponentInternalInstance;
81
+ $data: {};
82
+ $props: {
83
+ readonly textValue?: string | undefined;
84
+ readonly value: import('reka-ui').AcceptableValue;
85
+ readonly disabled?: boolean | undefined;
86
+ readonly asChild?: boolean | undefined;
87
+ readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
88
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
89
+ $attrs: {
90
+ [x: string]: unknown;
91
+ };
92
+ $refs: {
93
+ [x: string]: unknown;
94
+ };
95
+ $slots: Readonly<{
96
+ [name: string]: import('vue').Slot<any> | undefined;
97
+ }>;
98
+ $root: ComponentPublicInstance | null;
99
+ $parent: ComponentPublicInstance | null;
100
+ $host: Element | null;
101
+ $emit: (event: string, ...args: any[]) => void;
102
+ $el: any;
103
+ $options: import('vue').ComponentOptionsBase<Readonly<__VLS_Props> & Readonly<{}>, {
104
+ Icon: typeof Icon;
105
+ ComboboxItem: typeof ComboboxItem;
106
+ ComboboxItemIndicator: typeof ComboboxItemIndicator;
107
+ forwarded: typeof forwarded;
108
+ primitiveElement: typeof primitiveElement;
109
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
110
+ beforeCreate?: (() => void) | (() => void)[];
111
+ created?: (() => void) | (() => void)[];
112
+ beforeMount?: (() => void) | (() => void)[];
113
+ mounted?: (() => void) | (() => void)[];
114
+ beforeUpdate?: (() => void) | (() => void)[];
115
+ updated?: (() => void) | (() => void)[];
116
+ activated?: (() => void) | (() => void)[];
117
+ deactivated?: (() => void) | (() => void)[];
118
+ beforeDestroy?: (() => void) | (() => void)[];
119
+ beforeUnmount?: (() => void) | (() => void)[];
120
+ destroyed?: (() => void) | (() => void)[];
121
+ unmounted?: (() => void) | (() => void)[];
122
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
123
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
124
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
125
+ };
126
+ $forceUpdate: () => void;
127
+ $nextTick: typeof import('vue').nextTick;
128
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
129
+ } & Readonly<{}> & Omit<Readonly<__VLS_Props> & Readonly<{}>, "forwarded" | "Icon" | "ComboboxItem" | "ComboboxItemIndicator" | "primitiveElement"> & import('vue').ShallowUnwrapRef<{
130
+ Icon: typeof Icon;
131
+ ComboboxItem: typeof ComboboxItem;
132
+ ComboboxItemIndicator: typeof ComboboxItemIndicator;
133
+ forwarded: typeof forwarded;
134
+ primitiveElement: typeof primitiveElement;
135
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
136
+ $slots: {
137
+ default?(_: {}): any;
138
+ };
139
+ }) | null;
140
+ }, any>;
141
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
142
  export default _default;
6
143
  type __VLS_WithTemplateSlots<T, S> = T & {
7
144
  new (): {
@@ -1,17 +1,16 @@
1
1
  import { Ref } from 'vue';
2
- import { ComboboxRootProps as _ComboboxRootProps, AcceptableValue } from 'reka-ui';
2
+ import { AcceptableValue, ComboboxRootProps as _ComboboxRootProps } from 'reka-ui';
3
3
  import { ColorType } from './types';
4
4
  export interface ComboboxRootProps extends _ComboboxRootProps {
5
5
  size?: '1' | '2' | '3';
6
6
  color?: ColorType;
7
7
  highContrast?: boolean;
8
- displayValue?: (value: AcceptableValue) => string;
9
8
  }
10
9
  interface ComboboxRootContext {
11
10
  size: Ref<string>;
12
11
  color: Ref<ColorType | undefined>;
13
12
  highContrast: Ref<boolean>;
14
- displayValue?: (value: AcceptableValue) => string;
13
+ items: Ref<Map<AcceptableValue, string>>;
15
14
  }
16
15
  export declare const injectComboboxRootContext: <T extends ComboboxRootContext | null | undefined = ComboboxRootContext>(fallback?: T | undefined) => T extends null ? ComboboxRootContext | null : ComboboxRootContext, provideComboboxRootContext: (contextValue: ComboboxRootContext) => ComboboxRootContext;
17
16
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1,6 +1,5 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ type __VLS_Props = {
2
2
  title: string;
3
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
- title: string;
5
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
5
  export default _default;
@@ -1,10 +1,11 @@
1
1
  import { ButtonProps } from './Button';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
7
- attrs: Partial<{}>;
8
+ rootEl: any;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -8,5 +8,5 @@ export interface IconCircleProps {
8
8
  declare const _default: import('vue').DefineComponent<IconCircleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconCircleProps> & Readonly<{}>, {
9
9
  variant: "solid" | "soft" | "outline" | "glow";
10
10
  size: number | string;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
12
12
  export default _default;
@@ -5,7 +5,7 @@ export interface InsetProps {
5
5
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InsetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<InsetProps> & Readonly<{}>, {
6
6
  side: "all" | "x" | "y" | "top" | "bottom" | "left" | "right";
7
7
  clip: "border-box" | "padding-box";
8
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
9
9
  default?(_: {}): any;
10
10
  }>;
11
11
  export default _default;
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<RadioProps, {}, {}, {}, {}
13
13
  }>, {
14
14
  variant: "surface" | "soft";
15
15
  size: "1" | "2" | "3";
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
17
17
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { RadioGroupItemProps } from 'reka-ui';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>, {
3
3
  default?(_: {}): any;
4
4
  }>;
5
5
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
2
  export default _default;
@@ -6,7 +6,7 @@ export interface TableProps {
6
6
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TableProps> & Readonly<{}>, {
7
7
  variant: "surface" | "ghost";
8
8
  size: "1" | "2" | "3";
9
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
10
10
  default?(_: {}): any;
11
11
  }>;
12
12
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import { TabsTriggerProps } from 'reka-ui';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  default?(_: {}): any;
6
7
  };
7
8
  refs: {};
8
- attrs: Partial<{}>;
9
+ rootEl: any;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
12
  declare const __VLS_component: import('vue').DefineComponent<TabsTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -17,7 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Te
17
17
  variant: "surface" | "soft";
18
18
  size: "1" | "2" | "3";
19
19
  type: "date" | "datetime-local" | "email" | "hidden" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week" | "file";
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ inputRef: HTMLInputElement;
22
+ }, any>, {
21
23
  left?(_: {}): any;
22
24
  right?(_: {}): any;
23
25
  }>;
@@ -1,10 +1,11 @@
1
1
  import { ToggleGroupItemProps } from 'reka-ui';
2
2
  declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
3
4
  slots: {
4
5
  default?(_: {}): any;
5
6
  };
6
7
  refs: {};
7
- attrs: Partial<{}>;
8
+ rootEl: any;
8
9
  };
9
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
11
  declare const __VLS_component: import('vue').DefineComponent<ToggleGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -26,5 +26,7 @@ declare const _default: import('vue').DefineComponent<TurnstileProps, {}, {}, {}
26
26
  action: string;
27
27
  appearance: "always" | "execute" | "interaction-only";
28
28
  renderOnMount: boolean;
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
+ element: HTMLDivElement;
31
+ }, HTMLDivElement>;
30
32
  export default _default;