@typlog/ui 0.4.0 → 0.5.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/ComboboxContent.d.ts +43 -0
- package/dist/components/ComboboxInput.d.ts +15 -0
- package/dist/components/ComboboxItem.d.ts +10 -0
- package/dist/components/ComboboxLabel.d.ts +10 -0
- package/dist/components/ComboboxRoot.d.ts +41 -0
- package/dist/components/SelectContent.d.ts +1 -3
- package/dist/components/SelectRoot.d.ts +10 -0
- package/dist/components/SelectTrigger.d.ts +1 -2
- package/dist/components/index.d.ts +20 -15
- package/dist/index.js +1112 -843
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/tailwind/index.ts +1 -1
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ComboboxContentProps as _ComboboxContentProps } from 'reka-ui';
|
2
|
+
export interface ComboboxContentProps extends _ComboboxContentProps {
|
3
|
+
to?: string | HTMLElement;
|
4
|
+
variant?: 'solid' | 'soft';
|
5
|
+
}
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
8
|
+
pointerDownOutside: (event: CustomEvent<{
|
9
|
+
originalEvent: PointerEvent;
|
10
|
+
}>) => any;
|
11
|
+
focusOutside: (event: CustomEvent<{
|
12
|
+
originalEvent: FocusEvent;
|
13
|
+
}>) => any;
|
14
|
+
interactOutside: (event: CustomEvent<{
|
15
|
+
originalEvent: PointerEvent;
|
16
|
+
}> | CustomEvent<{
|
17
|
+
originalEvent: FocusEvent;
|
18
|
+
}>) => any;
|
19
|
+
}, string, import('vue').PublicProps, Readonly<ComboboxContentProps> & Readonly<{
|
20
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
21
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
22
|
+
originalEvent: PointerEvent;
|
23
|
+
}>) => any) | undefined;
|
24
|
+
onFocusOutside?: ((event: CustomEvent<{
|
25
|
+
originalEvent: FocusEvent;
|
26
|
+
}>) => any) | undefined;
|
27
|
+
onInteractOutside?: ((event: CustomEvent<{
|
28
|
+
originalEvent: PointerEvent;
|
29
|
+
}> | CustomEvent<{
|
30
|
+
originalEvent: FocusEvent;
|
31
|
+
}>) => any) | undefined;
|
32
|
+
}>, {
|
33
|
+
variant: "solid" | "soft";
|
34
|
+
position: "inline" | "popper";
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
36
|
+
default?(_: {}): any;
|
37
|
+
}>;
|
38
|
+
export default _default;
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
40
|
+
new (): {
|
41
|
+
$slots: S;
|
42
|
+
};
|
43
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ComboboxInputProps as _ComboboxInputProps } from 'reka-ui';
|
2
|
+
import { RadiusType } from './types';
|
3
|
+
export interface ComboboxInputProps extends _ComboboxInputProps {
|
4
|
+
variant?: 'surface' | 'soft';
|
5
|
+
radius?: RadiusType;
|
6
|
+
placeholder?: string;
|
7
|
+
}
|
8
|
+
declare const _default: import('vue').DefineComponent<ComboboxInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
9
|
+
"update:modelValue": (args_0: string) => any;
|
10
|
+
}, string, import('vue').PublicProps, Readonly<ComboboxInputProps> & Readonly<{
|
11
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
12
|
+
}>, {
|
13
|
+
variant: "surface" | "soft";
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,10 @@
|
|
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
|
+
}>;
|
5
|
+
export default _default;
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
7
|
+
new (): {
|
8
|
+
$slots: S;
|
9
|
+
};
|
10
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ComboboxLabelProps } from 'reka-ui';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ComboboxLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
3
|
+
default?(_: {}): any;
|
4
|
+
}>;
|
5
|
+
export default _default;
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
7
|
+
new (): {
|
8
|
+
$slots: S;
|
9
|
+
};
|
10
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { ComboboxRootProps as _ComboboxRootProps, AcceptableValue } from 'reka-ui';
|
3
|
+
import { ColorType } from './types';
|
4
|
+
export interface ComboboxRootProps extends _ComboboxRootProps {
|
5
|
+
size?: '1' | '2' | '3';
|
6
|
+
color?: ColorType;
|
7
|
+
highContrast?: boolean;
|
8
|
+
displayValue?: (value: AcceptableValue) => string;
|
9
|
+
}
|
10
|
+
interface ComboboxRootContext {
|
11
|
+
size: Ref<string>;
|
12
|
+
color: Ref<ColorType | undefined>;
|
13
|
+
highContrast: Ref<boolean>;
|
14
|
+
displayValue?: (value: AcceptableValue) => string;
|
15
|
+
}
|
16
|
+
export declare const injectComboboxRootContext: <T extends ComboboxRootContext | null | undefined = ComboboxRootContext>(fallback?: T | undefined) => T extends null ? ComboboxRootContext | null : ComboboxRootContext, provideComboboxRootContext: (contextValue: ComboboxRootContext) => ComboboxRootContext;
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
18
|
+
"update:modelValue": (value: AcceptableValue) => any;
|
19
|
+
"update:open": (value: boolean) => any;
|
20
|
+
highlight: (payload: {
|
21
|
+
ref: HTMLElement;
|
22
|
+
value: AcceptableValue;
|
23
|
+
} | undefined) => any;
|
24
|
+
}, string, import('vue').PublicProps, Readonly<ComboboxRootProps> & Readonly<{
|
25
|
+
"onUpdate:modelValue"?: ((value: AcceptableValue) => any) | undefined;
|
26
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
27
|
+
onHighlight?: ((payload: {
|
28
|
+
ref: HTMLElement;
|
29
|
+
value: AcceptableValue;
|
30
|
+
} | undefined) => any) | undefined;
|
31
|
+
}>, {
|
32
|
+
size: "1" | "2" | "3";
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
34
|
+
default?(_: {}): any;
|
35
|
+
}>;
|
36
|
+
export default _default;
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
38
|
+
new (): {
|
39
|
+
$slots: S;
|
40
|
+
};
|
41
|
+
};
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { SelectContentProps as _SelectContentProps } from 'reka-ui';
|
2
|
-
import { ColorType } from './types';
|
3
2
|
export interface SelectContentProps extends _SelectContentProps {
|
3
|
+
to?: string | HTMLElement;
|
4
4
|
variant?: 'solid' | 'soft';
|
5
|
-
color?: ColorType;
|
6
|
-
highContrast?: boolean;
|
7
5
|
}
|
8
6
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SelectContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SelectContentProps> & Readonly<{}>, {
|
9
7
|
variant: "solid" | "soft";
|
@@ -1,7 +1,17 @@
|
|
1
|
+
import { Ref } from 'vue';
|
1
2
|
import { SelectRootProps as _SelectRootProps } from 'reka-ui';
|
3
|
+
import { ColorType } from './types';
|
2
4
|
export interface SelectRootProps extends _SelectRootProps {
|
3
5
|
size?: '1' | '2' | '3';
|
6
|
+
color?: ColorType;
|
7
|
+
highContrast?: boolean;
|
4
8
|
}
|
9
|
+
interface SelectRootContext {
|
10
|
+
size: Ref<string>;
|
11
|
+
color: Ref<ColorType | undefined>;
|
12
|
+
highContrast: Ref<boolean>;
|
13
|
+
}
|
14
|
+
export declare const injectSelectRootContext: <T extends SelectRootContext | null | undefined = SelectRootContext>(fallback?: T | undefined) => T extends null ? SelectRootContext | null : SelectRootContext, provideSelectRootContext: (contextValue: SelectRootContext) => SelectRootContext;
|
5
15
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SelectRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
6
16
|
"update:modelValue": (value: import('reka-ui').AcceptableValue) => any;
|
7
17
|
"update:open": (value: boolean) => any;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { SelectTriggerProps as _SelectTriggerProps } from 'reka-ui';
|
2
|
-
import {
|
2
|
+
import { RadiusType } from './types';
|
3
3
|
export interface SelectTriggerProps extends _SelectTriggerProps {
|
4
4
|
variant?: 'surface' | 'soft' | 'ghost';
|
5
|
-
color?: ColorType;
|
6
5
|
radius?: RadiusType;
|
7
6
|
placeholder?: string;
|
8
7
|
}
|
@@ -3,41 +3,49 @@ export { default as Avatar, type AvatarProps, } from './Avatar';
|
|
3
3
|
export { default as Badge, type BadgeProps, } from './Badge';
|
4
4
|
export { default as Button, type ButtonProps, } from './Button';
|
5
5
|
export { default as IconButton, } from './IconButton';
|
6
|
-
export { default as Checkbox, type CheckboxProps, } from './Checkbox';
|
7
|
-
export { default as CheckboxGroupRoot, } from './CheckboxGroupRoot';
|
8
|
-
export { default as CheckboxGroupItem, } from './CheckboxGroupItem';
|
9
|
-
export { default as CheckboxGroupControl, } from './CheckboxGroupControl';
|
10
6
|
export { default as Card, type CardProps, } from './Card';
|
11
7
|
export { default as CardHead, type CardHeadProps, } from './CardHead';
|
12
|
-
export { default as
|
13
|
-
export {
|
8
|
+
export { default as ScrollArea, type ScrollAreaProps, } from './ScrollArea';
|
9
|
+
export { default as Separator, type SeparatorProps, } from './Separator';
|
10
|
+
export { default as Inset, type InsetProps, } from './Inset';
|
11
|
+
export { default as SavingIndicator, type SavingStatus, type SavingIndicatorProps, } from './SavingIndicator';
|
12
|
+
export { AlertDialogRoot, AlertDialogTrigger, AlertDialogCancel, AlertDialogAction, AlertDialogTitle, AlertDialogDescription, DialogRoot, DialogTrigger, DialogClose, DialogTitle, DialogDescription, PopoverRoot, PopoverTrigger, PopoverClose, DropdownMenuRoot, DropdownMenuTrigger, } from 'reka-ui';
|
14
13
|
export { default as AlertDialogContent, type AlertDialogContentProps, } from './AlertDialogContent';
|
15
14
|
export { default as DialogContent, type DialogContentProps, } from './DialogContent';
|
16
15
|
export { default as DialogHead, } from './DialogHead';
|
17
16
|
export { default as PopoverContent, type PopoverContentProps, } from './PopoverContent';
|
18
17
|
export { default as DropdownMenuContent, type DropdownMenuContentProps, } from './DropdownMenuContent';
|
19
18
|
export { default as DropdownMenuItem, type DropdownMenuItemProps, } from './DropdownMenuItem';
|
20
|
-
export { default as Separator, type SeparatorProps, } from './Separator';
|
21
|
-
export { default as Inset, type InsetProps, } from './Inset';
|
22
|
-
export { default as SavingIndicator, type SavingStatus, type SavingIndicatorProps, } from './SavingIndicator';
|
23
19
|
export { default as Switch, type SwitchProps, } from './Switch';
|
24
20
|
export { default as Radio, type RadioProps, } from './Radio';
|
25
21
|
export { default as RadioGroupRoot, default as RadioCardsRoot, type RadioGroupRootProps, } from './RadioGroupRoot';
|
26
22
|
export { default as RadioGroupItem, } from './RadioGroupItem';
|
27
23
|
export { type RadioGroupItemProps, } from 'reka-ui';
|
28
24
|
export { default as RadioCardsItem, } from './RadioCardsItem';
|
25
|
+
export { default as Checkbox, type CheckboxProps, } from './Checkbox';
|
26
|
+
export { default as CheckboxGroupRoot, } from './CheckboxGroupRoot';
|
27
|
+
export { default as CheckboxGroupItem, } from './CheckboxGroupItem';
|
28
|
+
export { default as CheckboxGroupControl, } from './CheckboxGroupControl';
|
29
29
|
export { default as TextField, type TextFieldProps, } from './TextField';
|
30
30
|
export { default as TextArea, type TextAreaProps, } from './TextArea';
|
31
|
-
export { default as
|
31
|
+
export { default as ColorField, type ColorFieldProps, } from './ColorField';
|
32
|
+
export { default as Toggle, type ToggleProps, } from './Toggle';
|
33
|
+
export { default as ToggleGroupRoot, type ToggleGroupRootProps, } from './ToggleGroupRoot';
|
34
|
+
export { default as ToggleGroupItem, } from './ToggleGroupItem';
|
32
35
|
export { default as SelectRoot, type SelectRootProps, } from './SelectRoot';
|
33
36
|
export { default as SelectContent, type SelectContentProps, } from './SelectContent';
|
34
37
|
export { default as SelectTrigger, type SelectTriggerProps, } from './SelectTrigger';
|
35
38
|
export { default as SelectItem, } from './SelectItem';
|
36
|
-
export { type SelectItemProps, } from 'reka-ui';
|
37
39
|
export { default as SelectLabel, } from './SelectLabel';
|
38
|
-
export { type SelectLabelProps, } from 'reka-ui';
|
40
|
+
export { type SelectItemProps, type SelectLabelProps, } from 'reka-ui';
|
39
41
|
export { default as SelectSeparator, } from './SelectSeparator';
|
40
42
|
export { SelectGroup } from 'reka-ui';
|
43
|
+
export { default as ComboboxRoot, type ComboboxRootProps, } from './ComboboxRoot';
|
44
|
+
export { default as ComboboxInput, } from './ComboboxInput';
|
45
|
+
export { default as ComboboxContent, } from './ComboboxContent';
|
46
|
+
export { default as ComboboxItem, } from './ComboboxItem';
|
47
|
+
export { default as ComboboxLabel, } from './ComboboxLabel';
|
48
|
+
export { ComboboxGroup, ComboboxEmpty, } from 'reka-ui';
|
41
49
|
export { default as Table, type TableProps, } from './Table';
|
42
50
|
export { default as Tooltip, type TooltipProps, } from './Tooltip';
|
43
51
|
export { TabsRoot, TabsContent, } from 'reka-ui';
|
@@ -49,7 +57,4 @@ export { default as Turnstile, type TurnstileProps, } from './Turnstile';
|
|
49
57
|
export { default as Quota, type QuotaProps, } from './Quota';
|
50
58
|
export { default as Spinner, } from './Spinner';
|
51
59
|
export { default as IconCircle, type IconCircleProps, } from './IconCircle';
|
52
|
-
export { default as Toggle, type ToggleProps, } from './Toggle';
|
53
|
-
export { default as ToggleGroupRoot, type ToggleGroupRootProps, } from './ToggleGroupRoot';
|
54
|
-
export { default as ToggleGroupItem, } from './ToggleGroupItem';
|
55
60
|
export { Icon };
|