@anguszhu/kroma-ui 0.1.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/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/core/focusTrap.d.ts +3 -0
- package/dist/core/toastTimer.d.ts +13 -0
- package/dist/core/types.d.ts +35 -0
- package/dist/kroma-react.cjs +2 -0
- package/dist/kroma-react.cjs.map +1 -0
- package/dist/kroma-react.d.ts +2 -0
- package/dist/kroma-react.js +600 -0
- package/dist/kroma-react.js.map +1 -0
- package/dist/kroma-ui.css +804 -0
- package/dist/kroma-vue.cjs +2 -0
- package/dist/kroma-vue.cjs.map +1 -0
- package/dist/kroma-vue.d.ts +2 -0
- package/dist/kroma-vue.js +706 -0
- package/dist/kroma-vue.js.map +1 -0
- package/dist/kroma.css +804 -0
- package/dist/react/components/KrButton.d.ts +7 -0
- package/dist/react/components/KrChevron.d.ts +3 -0
- package/dist/react/components/KrDialog.d.ts +14 -0
- package/dist/react/components/KrEmpty.d.ts +7 -0
- package/dist/react/components/KrMenuItem.d.ts +7 -0
- package/dist/react/components/KrOverlay.d.ts +11 -0
- package/dist/react/components/KrSearchInput.d.ts +11 -0
- package/dist/react/components/KrSection.d.ts +6 -0
- package/dist/react/components/KrSelectGroup.d.ts +21 -0
- package/dist/react/components/KrSelectItem.d.ts +17 -0
- package/dist/react/components/KrSwitch.d.ts +7 -0
- package/dist/react/components/KrTextField.d.ts +10 -0
- package/dist/react/components/KrToast.d.ts +15 -0
- package/dist/react/components/KrToggleRow.d.ts +10 -0
- package/dist/react/hooks/useCssTransition.d.ts +12 -0
- package/dist/react/index.d.ts +28 -0
- package/dist/react/utils/cx.d.ts +1 -0
- package/dist/vue/components/KrButton.vue.d.ts +20 -0
- package/dist/vue/components/KrChevron.vue.d.ts +3 -0
- package/dist/vue/components/KrDialog.vue.d.ts +34 -0
- package/dist/vue/components/KrEmpty.vue.d.ts +17 -0
- package/dist/vue/components/KrMenuItem.vue.d.ts +15 -0
- package/dist/vue/components/KrOverlay.vue.d.ts +28 -0
- package/dist/vue/components/KrSearchInput.vue.d.ts +30 -0
- package/dist/vue/components/KrSection.vue.d.ts +17 -0
- package/dist/vue/components/KrSelectGroup.vue.d.ts +44 -0
- package/dist/vue/components/KrSelectItem.vue.d.ts +25 -0
- package/dist/vue/components/KrSwitch.vue.d.ts +12 -0
- package/dist/vue/components/KrTextField.vue.d.ts +13 -0
- package/dist/vue/components/KrToast.vue.d.ts +32 -0
- package/dist/vue/components/KrToggleRow.vue.d.ts +18 -0
- package/dist/vue/index.d.ts +20 -0
- package/package.json +92 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { KrButtonType } from '../../core/types';
|
|
3
|
+
export type { KrButtonType };
|
|
4
|
+
export interface KrButtonProps extends Omit<ComponentPropsWithoutRef<'button'>, 'type'> {
|
|
5
|
+
type?: KrButtonType;
|
|
6
|
+
}
|
|
7
|
+
export declare function KrButton({ type, className, children, ...rest }: KrButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KrDialogAction } from '../../core/types';
|
|
3
|
+
export type { KrDialogAction };
|
|
4
|
+
export interface KrDialogProps {
|
|
5
|
+
show?: boolean;
|
|
6
|
+
onShowChange?: (show: boolean) => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
actions?: KrDialogAction[];
|
|
10
|
+
cancelText?: string;
|
|
11
|
+
hideCancel?: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function KrDialog({ show, onShowChange, title, text, actions, cancelText, hideCancel, children, }: KrDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface KrEmptyProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function KrEmpty({ title, description, icon, className, ...rest }: KrEmptyProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { KrMenuItemData } from '../../core/types';
|
|
3
|
+
export type { KrMenuItemData };
|
|
4
|
+
export interface KrMenuItemProps extends KrMenuItemData, Omit<ComponentPropsWithoutRef<'button'>, 'type' | 'value' | 'title'> {
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function KrMenuItem({ title, value: _value, disabled, type, icon, className, ...rest }: KrMenuItemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface KrOverlayProps {
|
|
3
|
+
show: boolean;
|
|
4
|
+
onShowChange?: (show: boolean) => void;
|
|
5
|
+
centered?: boolean;
|
|
6
|
+
background?: string;
|
|
7
|
+
contentStyle?: CSSProperties;
|
|
8
|
+
contentTransition?: 'fade-in' | 'fade-in-up';
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function KrOverlay({ show, onShowChange, centered, background, contentStyle, contentTransition, children, }: KrOverlayProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface KrSearchInputProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onValueChange?: (value: string) => void;
|
|
5
|
+
autofocus?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
clearLabel?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
clearIcon?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function KrSearchInput({ value, onValueChange, autofocus, label, clearLabel, icon, clearIcon, }: KrSearchInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface KrSectionProps extends ComponentPropsWithoutRef<'section'> {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function KrSection({ title, subtitle, className, children, ...rest }: KrSectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { KrSelectShape, KrSelectVariant, KrSelectItemData } from '../../core/types';
|
|
3
|
+
export type { KrSelectItemData };
|
|
4
|
+
export interface KrSelectGroupProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
items: KrSelectItemData[];
|
|
8
|
+
showItemLabel?: boolean;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
value: string | number;
|
|
11
|
+
onValueChange?: (value: string | number) => void;
|
|
12
|
+
hideSeparator?: boolean;
|
|
13
|
+
columns?: number | 'auto';
|
|
14
|
+
gap?: string;
|
|
15
|
+
variant?: KrSelectVariant;
|
|
16
|
+
shape?: KrSelectShape;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
renderItem?: (item: KrSelectItemData, selected: boolean, setSelected: (value: string | number) => void) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function KrSelectGroup({ title, subtitle, items, showItemLabel, showTooltip, value, onValueChange, hideSeparator, columns, gap, variant, shape, className, style, renderItem, }: KrSelectGroupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KrSelectVariant, KrSelectShape, KrSelectItemProps } from '../../core/types';
|
|
3
|
+
export type { KrSelectVariant, KrSelectShape, KrSelectItemProps };
|
|
4
|
+
export interface KrSelectGroupContextValue {
|
|
5
|
+
value: string | number;
|
|
6
|
+
variant?: KrSelectVariant;
|
|
7
|
+
shape?: KrSelectShape;
|
|
8
|
+
showItemLabel: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
onSelect: (value: string | number) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const KrSelectGroupContext: import('react').Context<KrSelectGroupContextValue | null>;
|
|
13
|
+
export interface KrSelectItemComponentProps extends KrSelectItemProps {
|
|
14
|
+
onSelect?: (value: string | number) => void;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function KrSelectItem({ value, label, title, selected, disabled, variant, shape, circle, stretch, showItemLabel, onSelect, children, }: KrSelectItemComponentProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface KrSwitchProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
inset?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function KrSwitch({ checked, disabled, inset, className, ...rest }: KrSwitchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface KrTextFieldProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'value' | 'onChange' | 'className' | 'autoFocus'> {
|
|
3
|
+
value?: string;
|
|
4
|
+
onValueChange?: (value: string) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
autofocus?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function KrTextField({ value, onValueChange, label, error, autofocus, className, ...rest }: KrTextFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KrToastIcon } from '../../core/types';
|
|
3
|
+
export type { KrToastIcon };
|
|
4
|
+
export interface KrToastProps {
|
|
5
|
+
show?: boolean;
|
|
6
|
+
onShowChange?: (show: boolean) => void;
|
|
7
|
+
text?: string;
|
|
8
|
+
icon?: KrToastIcon;
|
|
9
|
+
iconContent?: ReactNode;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
actionText?: string;
|
|
12
|
+
onAction?: () => void;
|
|
13
|
+
showCountdown?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function KrToast({ show, onShowChange, text, icon, iconContent, timeout, actionText, onAction, showCountdown, }: KrToastProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface KrToggleRowProps extends Omit<ComponentPropsWithoutRef<'label'>, 'title'> {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hideSeparator?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function KrToggleRow({ checked, onCheckedChange, title, subtitle, disabled, hideSeparator, className, ...rest }: KrToggleRowProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reproduces Vue's <Transition> enter/leave class sequencing (name-enter-active
|
|
3
|
+
* / name-enter-from / name-leave-active / name-leave-to) for a single root
|
|
4
|
+
* element, so React can reuse the exact same transition CSS Kroma already
|
|
5
|
+
* ships for the Vue components. No animation library — just the class
|
|
6
|
+
* toggling Vue's compiler would otherwise generate.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useCssTransition(show: boolean, name: string): {
|
|
9
|
+
shouldRender: boolean;
|
|
10
|
+
transitionClassName: string | undefined;
|
|
11
|
+
ref: import('react').RefObject<HTMLElement | null>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { KrChevron } from './components/KrChevron';
|
|
2
|
+
export type { KrChevronProps } from './components/KrChevron';
|
|
3
|
+
export { KrEmpty } from './components/KrEmpty';
|
|
4
|
+
export type { KrEmptyProps } from './components/KrEmpty';
|
|
5
|
+
export { KrSection } from './components/KrSection';
|
|
6
|
+
export type { KrSectionProps } from './components/KrSection';
|
|
7
|
+
export { KrMenuItem } from './components/KrMenuItem';
|
|
8
|
+
export type { KrMenuItemProps, KrMenuItemData } from './components/KrMenuItem';
|
|
9
|
+
export { KrButton } from './components/KrButton';
|
|
10
|
+
export type { KrButtonProps, KrButtonType } from './components/KrButton';
|
|
11
|
+
export { KrSwitch } from './components/KrSwitch';
|
|
12
|
+
export type { KrSwitchProps } from './components/KrSwitch';
|
|
13
|
+
export { KrToggleRow } from './components/KrToggleRow';
|
|
14
|
+
export type { KrToggleRowProps } from './components/KrToggleRow';
|
|
15
|
+
export { KrTextField } from './components/KrTextField';
|
|
16
|
+
export type { KrTextFieldProps } from './components/KrTextField';
|
|
17
|
+
export { KrSearchInput } from './components/KrSearchInput';
|
|
18
|
+
export type { KrSearchInputProps } from './components/KrSearchInput';
|
|
19
|
+
export { KrSelectItem, KrSelectGroupContext } from './components/KrSelectItem';
|
|
20
|
+
export type { KrSelectItemComponentProps, KrSelectItemProps, KrSelectVariant, KrSelectShape, KrSelectGroupContextValue, } from './components/KrSelectItem';
|
|
21
|
+
export { KrSelectGroup } from './components/KrSelectGroup';
|
|
22
|
+
export type { KrSelectGroupProps, KrSelectItemData } from './components/KrSelectGroup';
|
|
23
|
+
export { KrOverlay } from './components/KrOverlay';
|
|
24
|
+
export type { KrOverlayProps } from './components/KrOverlay';
|
|
25
|
+
export { KrToast } from './components/KrToast';
|
|
26
|
+
export type { KrToastProps, KrToastIcon } from './components/KrToast';
|
|
27
|
+
export { KrDialog } from './components/KrDialog';
|
|
28
|
+
export type { KrDialogProps, KrDialogAction } from './components/KrDialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cx(...classes: Array<string | false | null | undefined>): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KrButtonType } from '../../core/types';
|
|
2
|
+
export type { KrButtonType };
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
type?: KrButtonType;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
type: KrButtonType;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { KrDialogAction } from '../../core/types';
|
|
2
|
+
export type { KrDialogAction };
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
actions?: KrDialogAction[];
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
hideCancel?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_8: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_8) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:show": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
text: string;
|
|
21
|
+
title: string;
|
|
22
|
+
show: boolean;
|
|
23
|
+
actions: KrDialogAction[];
|
|
24
|
+
cancelText: string;
|
|
25
|
+
hideCancel: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KrMenuItemData } from '../../core/types';
|
|
2
|
+
export type { KrMenuItemData };
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<KrMenuItemData, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KrMenuItemData> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
centered?: boolean;
|
|
5
|
+
background?: string;
|
|
6
|
+
contentStyle?: StyleValue;
|
|
7
|
+
contentTransition?: 'fade-in' | 'fade-in-up';
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_7: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_7) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
"update:modelValue": (value: boolean) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
centered: boolean;
|
|
19
|
+
contentTransition: "fade-in" | "fade-in-up";
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
autofocus?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
clearLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'clear-icon'?: (props: typeof __VLS_3) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
label: string;
|
|
19
|
+
modelValue: string;
|
|
20
|
+
autofocus: boolean;
|
|
21
|
+
clearLabel: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { KrSelectShape, KrSelectVariant, KrSelectItemData } from '../../core/types';
|
|
2
|
+
export type { KrSelectItemData };
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
items: KrSelectItemData[];
|
|
7
|
+
showItemLabel?: boolean;
|
|
8
|
+
showTooltip?: boolean;
|
|
9
|
+
modelValue: string | number;
|
|
10
|
+
hideSeparator?: boolean;
|
|
11
|
+
columns?: number | 'auto';
|
|
12
|
+
gap?: string;
|
|
13
|
+
variant?: KrSelectVariant;
|
|
14
|
+
shape?: KrSelectShape;
|
|
15
|
+
};
|
|
16
|
+
declare function handleSelect(value: string | number): void;
|
|
17
|
+
declare var __VLS_1: {
|
|
18
|
+
item: KrSelectItemData;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
setSelected: typeof handleSelect;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
item?: (props: typeof __VLS_1) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (value: string | number) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
variant: KrSelectVariant;
|
|
31
|
+
shape: KrSelectShape;
|
|
32
|
+
showItemLabel: boolean;
|
|
33
|
+
showTooltip: boolean;
|
|
34
|
+
columns: number | "auto";
|
|
35
|
+
gap: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { KrSelectVariant, KrSelectShape, KrSelectItemProps } from '../../core/types';
|
|
2
|
+
export type { KrSelectVariant, KrSelectShape, KrSelectItemProps };
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<KrSelectItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
select: (value: string | number) => any;
|
|
9
|
+
"update:selected": (value: string | number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<KrSelectItemProps> & Readonly<{
|
|
11
|
+
onSelect?: ((value: string | number) => any) | undefined;
|
|
12
|
+
"onUpdate:selected"?: ((value: string | number) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
variant: KrSelectVariant;
|
|
15
|
+
shape: KrSelectShape;
|
|
16
|
+
showItemLabel: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
inset?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
inset: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
autofocus?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { KrToastIcon } from '../../core/types';
|
|
2
|
+
export type { KrToastIcon };
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: KrToastIcon;
|
|
7
|
+
timeout?: number;
|
|
8
|
+
actionText?: string;
|
|
9
|
+
showCountdown?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_7: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
icon?: (props: typeof __VLS_7) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:show": (value: boolean) => any;
|
|
17
|
+
action: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
onAction?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
show: boolean;
|
|
23
|
+
timeout: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hideSeparator?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
modelValue: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
hideSeparator: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as KrButton } from './components/KrButton.vue';
|
|
2
|
+
export type { KrButtonType } from './components/KrButton.vue';
|
|
3
|
+
export { default as KrOverlay } from './components/KrOverlay.vue';
|
|
4
|
+
export { default as KrSection } from './components/KrSection.vue';
|
|
5
|
+
export { default as KrSelectGroup } from './components/KrSelectGroup.vue';
|
|
6
|
+
export type { KrSelectItemData } from './components/KrSelectGroup.vue';
|
|
7
|
+
export { default as KrSelectItem } from './components/KrSelectItem.vue';
|
|
8
|
+
export type { KrSelectItemProps, KrSelectVariant, KrSelectShape } from './components/KrSelectItem.vue';
|
|
9
|
+
export { default as KrSwitch } from './components/KrSwitch.vue';
|
|
10
|
+
export { default as KrToggleRow } from './components/KrToggleRow.vue';
|
|
11
|
+
export { default as KrTextField } from './components/KrTextField.vue';
|
|
12
|
+
export { default as KrSearchInput } from './components/KrSearchInput.vue';
|
|
13
|
+
export { default as KrToast } from './components/KrToast.vue';
|
|
14
|
+
export type { KrToastIcon } from './components/KrToast.vue';
|
|
15
|
+
export { default as KrEmpty } from './components/KrEmpty.vue';
|
|
16
|
+
export { default as KrMenuItem } from './components/KrMenuItem.vue';
|
|
17
|
+
export type { KrMenuItemData } from './components/KrMenuItem.vue';
|
|
18
|
+
export { default as KrDialog } from './components/KrDialog.vue';
|
|
19
|
+
export type { KrDialogAction } from './components/KrDialog.vue';
|
|
20
|
+
export { default as KrChevron } from './components/KrChevron.vue';
|