ropav 0.0.2
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/README.md +31 -0
- package/dist/_plugin-vue_export-helper.js +18 -0
- package/dist/_plugin-vue_export-helper.js.map +1 -0
- package/dist/base.css +147 -0
- package/dist/button.css +66 -0
- package/dist/button.js +62 -0
- package/dist/button.js.map +1 -0
- package/dist/checkbox.css +60 -0
- package/dist/checkbox.js +132 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/components/_internal/icons/CheckIcon.d.ts +18 -0
- package/dist/components/_internal/icons/ChevronDownIcon.d.ts +18 -0
- package/dist/components/_internal/icons/MinusIcon.d.ts +18 -0
- package/dist/components/_internal/icons/index.d.ts +3 -0
- package/dist/components/_internal/optionList.d.ts +9 -0
- package/dist/components/button/button.d.ts +25 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/button/types.d.ts +6 -0
- package/dist/components/checkbox/checkbox.d.ts +23 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/checkbox/types.d.ts +12 -0
- package/dist/components/checkbox/useCheckbox.d.ts +6 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/input.d.ts +21 -0
- package/dist/components/input/types.d.ts +14 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.js +2 -0
- package/dist/components/radio/radio-group.d.ts +23 -0
- package/dist/components/radio/radio.d.ts +21 -0
- package/dist/components/radio/types.d.ts +24 -0
- package/dist/components/radio/useRadio.d.ts +12 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.d.ts +23 -0
- package/dist/components/select/types.d.ts +18 -0
- package/dist/components/select/useSelect.d.ts +21 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/switch/switch.d.ts +23 -0
- package/dist/components/switch/types.d.ts +11 -0
- package/dist/components/switch/useSwitch.d.ts +6 -0
- package/dist/components/tabs/index.d.ts +5 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tabs/tab-panel.d.ts +21 -0
- package/dist/components/tabs/tabs-list.d.ts +20 -0
- package/dist/components/tabs/tabs-trigger.d.ts +21 -0
- package/dist/components/tabs/tabs.d.ts +23 -0
- package/dist/components/tabs/types.d.ts +18 -0
- package/dist/components/tabs/useTabs.d.ts +19 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/textarea/types.d.ts +14 -0
- package/dist/components/textarea/useTextarea.d.ts +6 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/tooltip.d.ts +23 -0
- package/dist/components/tooltip/types.d.ts +5 -0
- package/dist/components/tooltip/useTooltip.d.ts +8 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/input.css +51 -0
- package/dist/input.js +79 -0
- package/dist/input.js.map +1 -0
- package/dist/radio.css +66 -0
- package/dist/radio.js +160 -0
- package/dist/radio.js.map +1 -0
- package/dist/select.css +122 -0
- package/dist/select.js +362 -0
- package/dist/select.js.map +1 -0
- package/dist/switch.css +70 -0
- package/dist/switch.js +94 -0
- package/dist/switch.js.map +1 -0
- package/dist/tabs.css +45 -0
- package/dist/tabs.js +205 -0
- package/dist/tabs.js.map +1 -0
- package/dist/textarea.css +46 -0
- package/dist/textarea.js +91 -0
- package/dist/textarea.js.map +1 -0
- package/dist/tooltip.css +78 -0
- package/dist/tooltip.js +112 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/useControlState.js +38 -0
- package/dist/useControlState.js.map +1 -0
- package/dist/useRequiredInject.js +11 -0
- package/dist/useRequiredInject.js.map +1 -0
- package/package.json +110 -0
- package/src/styles/_mixins.scss +128 -0
- package/src/styles/_tokens.scss +184 -0
- package/src/styles/_variables.scss +112 -0
- package/src/styles/base.scss +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<CheckboxProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: boolean) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
export declare function useCheckbox(props: Readonly<CheckboxProps>, emitUpdate: (value: boolean) => void): {
|
|
3
|
+
control: import('../../composables/useControlState').ControlState;
|
|
4
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
5
|
+
onChange: (e: Event) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InputProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<InputProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "update:modelValue", value: string) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface InputProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
describedby?: string;
|
|
13
|
+
labelledby?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RadioGroupProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioGroupProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: string | number | null) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RadioProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<RadioProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface RadioProps {
|
|
3
|
+
value: string | number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface RadioGroupProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
modelValue: string | number | null;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
describedby?: string;
|
|
15
|
+
labelledby?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface RadioGroupContext {
|
|
18
|
+
modelValue: string | number | null;
|
|
19
|
+
name: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
select: (value: string | number) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const radioGroupKey: InjectionKey<RadioGroupContext>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RadioGroupContext, RadioGroupProps, RadioProps } from './types';
|
|
2
|
+
export declare function useRadio(props: Readonly<RadioProps>): {
|
|
3
|
+
group: RadioGroupContext;
|
|
4
|
+
isChecked: import('vue').ComputedRef<boolean>;
|
|
5
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
6
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function useRadioGroup(props: Readonly<RadioGroupProps>, emitUpdate: (value: string | number | null) => void): {
|
|
10
|
+
control: import('../../composables/useControlState').ControlState;
|
|
11
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SelectProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<SelectProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
empty?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: string | number | null) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SelectOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface SelectProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
modelValue: string | number | null;
|
|
10
|
+
options?: SelectOption[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
invalid?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
describedby?: string;
|
|
17
|
+
labelledby?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SelectOption, SelectProps } from './types';
|
|
2
|
+
type SelectValue = string | number | null;
|
|
3
|
+
export declare function useSelect(props: Readonly<SelectProps>, emitUpdate: (value: SelectValue) => void): {
|
|
4
|
+
selectRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
5
|
+
triggerRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
6
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
selectId: string;
|
|
8
|
+
listboxId: string;
|
|
9
|
+
control: import('../../composables/useControlState').ControlState;
|
|
10
|
+
visibleOptions: import('vue').ComputedRef<SelectOption[]>;
|
|
11
|
+
focusedIndex: import('vue').Ref<number, number>;
|
|
12
|
+
activeDescendantId: import('vue').ComputedRef<string | undefined>;
|
|
13
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
14
|
+
hasValue: import('vue').ComputedRef<boolean>;
|
|
15
|
+
displayLabel: import('vue').ComputedRef<string>;
|
|
16
|
+
toggle: () => void;
|
|
17
|
+
selectOption: (option: SelectOption) => void;
|
|
18
|
+
onOptionMouseenter: (option: SelectOption, index: number) => void;
|
|
19
|
+
onTriggerKeydown: (e: KeyboardEvent) => void;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SwitchProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<SwitchProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: boolean) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SwitchProps } from './types';
|
|
2
|
+
export declare function useSwitch(props: Readonly<SwitchProps>, emitUpdate: (value: boolean) => void): {
|
|
3
|
+
control: import('../../composables/useControlState').ControlState;
|
|
4
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
5
|
+
onChange: (e: Event) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Tabs } from './tabs';
|
|
2
|
+
export { default as TabsList } from './tabs-list';
|
|
3
|
+
export { default as TabsTrigger } from './tabs-trigger';
|
|
4
|
+
export { default as TabPanel } from './tab-panel';
|
|
5
|
+
export type { TabsProps, TabsTriggerProps, TabPanelProps } from './types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabPanelProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<TabPanelProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
+
props: import('vue').PublicProps & (typeof globalThis extends {
|
|
3
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
4
|
+
} ? P : {});
|
|
5
|
+
expose: (exposed: {}) => void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: {
|
|
8
|
+
default?: (props: {}) => any;
|
|
9
|
+
};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} : {
|
|
19
|
+
[K in keyof T as K]: T[K];
|
|
20
|
+
}) & {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabsTriggerProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<TabsTriggerProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TabsProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<TabsProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: (evt: "update:modelValue", value: string) => void;
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface TabsProps {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TabPanelProps {
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsTriggerProps {
|
|
9
|
+
value: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface TabsContext {
|
|
13
|
+
activeTab: string;
|
|
14
|
+
select: (value: string) => void;
|
|
15
|
+
getTriggerId: (value: string) => string;
|
|
16
|
+
getPanelId: (value: string) => string;
|
|
17
|
+
}
|
|
18
|
+
export declare const tabsKey: InjectionKey<TabsContext>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TabPanelProps, TabsContext, TabsProps, TabsTriggerProps } from './types';
|
|
2
|
+
export declare function useTabs(props: Readonly<TabsProps>, tabsId: string, emitUpdate: (value: string) => void): {
|
|
3
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
4
|
+
};
|
|
5
|
+
export declare function useTabsList(): {
|
|
6
|
+
listRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
7
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
8
|
+
onKeydown: (e: KeyboardEvent) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function useTabsTrigger(props: Readonly<TabsTriggerProps>): {
|
|
11
|
+
tabs: TabsContext;
|
|
12
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
13
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
14
|
+
select: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function useTabPanel(props: Readonly<TabPanelProps>): {
|
|
17
|
+
tabs: TabsContext;
|
|
18
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TextareaProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<TextareaProps & {
|
|
4
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "update:modelValue", value: string) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface TextareaProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
rows?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
describedby?: string;
|
|
13
|
+
labelledby?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextareaProps } from './types';
|
|
2
|
+
export declare function useTextarea(props: Readonly<TextareaProps>, emitUpdate: (value: string) => void): {
|
|
3
|
+
control: import('../../composables/useControlState').ControlState;
|
|
4
|
+
rootClass: import('vue').ComputedRef<string[]>;
|
|
5
|
+
onInput: (e: Event) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TooltipProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<TooltipProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
} & {
|
|
11
|
+
content?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
emit: {};
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TooltipProps } from './types';
|
|
2
|
+
export declare function useTooltip(props: Readonly<TooltipProps>): {
|
|
3
|
+
tooltipId: string;
|
|
4
|
+
isVisible: import('vue').Ref<boolean, boolean>;
|
|
5
|
+
tipClass: import('vue').ComputedRef<string[]>;
|
|
6
|
+
onShow: () => void;
|
|
7
|
+
onHide: () => void;
|
|
8
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/button';
|
|
2
|
+
export * from './components/checkbox';
|
|
3
|
+
export * from './components/input';
|
|
4
|
+
export * from './components/radio';
|
|
5
|
+
export * from './components/select';
|
|
6
|
+
export * from './components/switch';
|
|
7
|
+
export * from './components/tabs';
|
|
8
|
+
export * from './components/textarea';
|
|
9
|
+
export * from './components/tooltip';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as button_default } from "./button.js";
|
|
2
|
+
import { t as checkbox_default } from "./checkbox.js";
|
|
3
|
+
import { t as select_default } from "./select.js";
|
|
4
|
+
import { t as input_default } from "./input.js";
|
|
5
|
+
import { n as radio_default, t as radio_group_default } from "./radio.js";
|
|
6
|
+
import { t as switch_default } from "./switch.js";
|
|
7
|
+
import { i as tabs_default, n as tabs_trigger_default, r as tabs_list_default, t as tab_panel_default } from "./tabs.js";
|
|
8
|
+
import { t as textarea_default } from "./textarea.js";
|
|
9
|
+
import { t as tooltip_default } from "./tooltip.js";
|
|
10
|
+
export { button_default as Button, checkbox_default as Checkbox, input_default as Input, radio_default as Radio, radio_group_default as RadioGroup, select_default as Select, switch_default as Switch, tab_panel_default as TabPanel, tabs_default as Tabs, tabs_list_default as TabsList, tabs_trigger_default as TabsTrigger, textarea_default as Textarea, tooltip_default as Tooltip };
|