@toife/vue 3.3.9 → 3.3.11
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/action/action.composable.d.ts +5 -5
- package/dist/components/action/action.vue.d.ts +2 -2
- package/dist/components/app/app.vue.d.ts +3 -3
- package/dist/components/avatar/avatar.vue.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -3
- package/dist/components/cable/cable.vue.d.ts +1 -1
- package/dist/components/card/card/card.vue.d.ts +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +3 -3
- package/dist/components/collapse/collapse.vue.d.ts +1 -1
- package/dist/components/decision-modal/decision-modal.composable.d.ts +5 -5
- package/dist/components/decision-modal/decision-modal.vue.d.ts +2 -2
- package/dist/components/divider/divider.vue.d.ts +2 -2
- package/dist/components/dropdown/dropdown.vue.d.ts +4 -4
- package/dist/components/field/field.vue.d.ts +5 -5
- package/dist/components/form-group/form-group.vue.d.ts +2 -2
- package/dist/components/gesture-indicator/gesture-indicator.vue.d.ts +1 -1
- package/dist/components/image/image.vue.d.ts +1 -1
- package/dist/components/layout/flex/flex.vue.d.ts +2 -2
- package/dist/components/layout/flex-item/flex-item.vue.d.ts +2 -2
- package/dist/components/layout/grid/grid.vue.d.ts +2 -2
- package/dist/components/layout/grid-item/grid-item.vue.d.ts +2 -2
- package/dist/components/modal/modal.vue.d.ts +1 -1
- package/dist/components/present/present.vue.d.ts +2 -2
- package/dist/components/radio/radio/radio.vue.d.ts +2 -2
- package/dist/components/radio/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/components/refresher/refresher.vue.d.ts +4 -4
- package/dist/components/route/route-navigator/route-navigator.vue.d.ts +2 -2
- package/dist/components/route/route-provider/route-provider.vue.d.ts +1 -1
- package/dist/components/route/route-wrapper/route-wrapper.composable.d.ts +1 -1
- package/dist/components/route/route-wrapper/route-wrapper.vue.d.ts +1 -1
- package/dist/components/route/route.util.d.ts +1 -1
- package/dist/components/segmented-field/segmented-field.vue.d.ts +4 -4
- package/dist/components/select/select.vue.d.ts +4 -4
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -1
- package/dist/components/slide-range/slide-range.vue.d.ts +1 -1
- package/dist/components/switch/switch.vue.d.ts +2 -2
- package/dist/components/tabs/tab/tab.vue.d.ts +1 -1
- package/dist/components/tabs/tabs/tabs.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +3 -3
- package/dist/components/toast/toast/toast.vue.d.ts +2 -2
- package/dist/components/toast/toast-content/toast-content.vue.d.ts +2 -2
- package/dist/components/toast/toast.composable.d.ts +5 -5
- package/dist/components/toolbar/toolbar.vue.d.ts +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +3 -3
- package/dist/core/features/action/action.constants.d.ts +11 -0
- package/dist/core/features/action/action.logic.d.ts +8 -0
- package/dist/core/features/action/action.type.d.ts +46 -0
- package/dist/core/features/action/index.d.ts +3 -0
- package/dist/core/features/app/app.constants.d.ts +16 -0
- package/dist/core/features/app/app.logic.d.ts +4 -0
- package/dist/core/features/app/app.type.d.ts +36 -0
- package/dist/core/features/app/index.d.ts +3 -0
- package/dist/core/features/avatar/avatar.constants.d.ts +9 -0
- package/dist/core/features/avatar/avatar.logic.d.ts +10 -0
- package/dist/core/features/avatar/avatar.type.d.ts +14 -0
- package/dist/core/features/avatar/index.d.ts +3 -0
- package/dist/core/features/button/button.constants.d.ts +10 -0
- package/dist/core/features/button/button.logic.d.ts +11 -0
- package/dist/core/features/button/button.type.d.ts +20 -0
- package/dist/core/features/button/index.d.ts +3 -0
- package/dist/core/features/cable/cable.constants.d.ts +5 -0
- package/dist/core/features/cable/cable.logic.d.ts +4 -0
- package/dist/core/features/cable/cable.type.d.ts +10 -0
- package/dist/core/features/cable/index.d.ts +3 -0
- package/dist/core/features/card/card-body.logic.d.ts +3 -0
- package/dist/core/features/card/card-footer.logic.d.ts +6 -0
- package/dist/core/features/card/card-header.logic.d.ts +6 -0
- package/dist/core/features/card/card.constants.d.ts +6 -0
- package/dist/core/features/card/card.logic.d.ts +6 -0
- package/dist/core/features/card/card.type.d.ts +21 -0
- package/dist/core/features/card/index.d.ts +6 -0
- package/dist/core/features/checkbox/checkbox.constants.d.ts +11 -0
- package/dist/core/features/checkbox/checkbox.logic.d.ts +13 -0
- package/dist/core/features/checkbox/checkbox.type.d.ts +28 -0
- package/dist/core/features/checkbox/index.d.ts +3 -0
- package/dist/core/features/collapse/collapse.constants.d.ts +9 -0
- package/dist/core/features/collapse/collapse.logic.d.ts +21 -0
- package/dist/core/features/collapse/collapse.type.d.ts +23 -0
- package/dist/core/features/collapse/index.d.ts +3 -0
- package/dist/core/features/container/container.logic.d.ts +3 -0
- package/dist/core/features/container/index.d.ts +1 -0
- package/dist/core/features/decision-modal/decision-modal.constants.d.ts +12 -0
- package/dist/core/features/decision-modal/decision-modal.logic.d.ts +16 -0
- package/dist/core/features/decision-modal/decision-modal.type.d.ts +39 -0
- package/dist/core/features/decision-modal/index.d.ts +3 -0
- package/dist/core/features/divider/divider.constants.d.ts +6 -0
- package/dist/core/features/divider/divider.logic.d.ts +6 -0
- package/dist/core/features/divider/divider.type.d.ts +9 -0
- package/dist/core/features/divider/index.d.ts +3 -0
- package/dist/core/features/dropdown/dropdown.constants.d.ts +13 -0
- package/dist/core/features/dropdown/dropdown.logic.d.ts +11 -0
- package/dist/core/features/dropdown/dropdown.type.d.ts +29 -0
- package/dist/core/features/dropdown/index.d.ts +3 -0
- package/dist/core/features/field/field.constants.d.ts +19 -0
- package/dist/core/features/field/field.logic.d.ts +21 -0
- package/dist/core/features/field/field.type.d.ts +47 -0
- package/dist/core/features/field/index.d.ts +3 -0
- package/dist/core/features/form-group/form-group.constants.d.ts +6 -0
- package/dist/core/features/form-group/form-group.logic.d.ts +4 -0
- package/dist/core/features/form-group/form-group.type.d.ts +7 -0
- package/dist/core/features/form-group/index.d.ts +3 -0
- package/dist/core/features/gesture-indicator/gesture-indicator.constants.d.ts +7 -0
- package/dist/core/features/gesture-indicator/gesture-indicator.logic.d.ts +4 -0
- package/dist/core/features/gesture-indicator/gesture-indicator.type.d.ts +8 -0
- package/dist/core/features/gesture-indicator/index.d.ts +3 -0
- package/dist/core/features/image/image.type.d.ts +4 -0
- package/dist/core/features/image/index.d.ts +1 -0
- package/dist/core/features/index.d.ts +33 -0
- package/dist/core/features/layout/flex-item.constants.d.ts +6 -0
- package/dist/core/features/layout/flex-item.logic.d.ts +7 -0
- package/dist/core/features/layout/flex-item.type.d.ts +10 -0
- package/dist/core/features/layout/flex.constants.d.ts +6 -0
- package/dist/core/features/layout/flex.logic.d.ts +7 -0
- package/dist/core/features/layout/flex.type.d.ts +12 -0
- package/dist/core/features/layout/grid-item.constants.d.ts +6 -0
- package/dist/core/features/layout/grid-item.logic.d.ts +7 -0
- package/dist/core/features/layout/grid-item.type.d.ts +12 -0
- package/dist/core/features/layout/grid.constants.d.ts +6 -0
- package/dist/core/features/layout/grid.logic.d.ts +7 -0
- package/dist/core/features/layout/grid.type.d.ts +10 -0
- package/dist/core/features/layout/index.d.ts +12 -0
- package/dist/core/features/modal/index.d.ts +3 -0
- package/dist/core/features/modal/modal.constants.d.ts +16 -0
- package/dist/core/features/modal/modal.logic.d.ts +5 -0
- package/dist/core/features/modal/modal.type.d.ts +26 -0
- package/dist/core/features/page/index.d.ts +1 -0
- package/dist/core/features/page/page.logic.d.ts +3 -0
- package/dist/core/features/present/index.d.ts +3 -0
- package/dist/core/features/present/present.constants.d.ts +18 -0
- package/dist/core/features/present/present.logic.d.ts +13 -0
- package/dist/core/features/present/present.type.d.ts +43 -0
- package/dist/core/features/radio/index.d.ts +6 -0
- package/dist/core/features/radio/radio-group.constants.d.ts +8 -0
- package/dist/core/features/radio/radio-group.logic.d.ts +4 -0
- package/dist/core/features/radio/radio-group.type.d.ts +28 -0
- package/dist/core/features/radio/radio.constants.d.ts +8 -0
- package/dist/core/features/radio/radio.logic.d.ts +13 -0
- package/dist/core/features/radio/radio.type.d.ts +24 -0
- package/dist/core/features/refresher/index.d.ts +2 -0
- package/dist/core/features/refresher/refresher.logic.d.ts +3 -0
- package/dist/core/features/refresher/refresher.type.d.ts +10 -0
- package/dist/core/features/route/index.d.ts +8 -0
- package/dist/core/features/route/route-navigator.constants.d.ts +9 -0
- package/dist/core/features/route/route-navigator.logic.d.ts +19 -0
- package/dist/core/features/route/route-navigator.type.d.ts +52 -0
- package/dist/core/features/route/route-provider.constants.d.ts +4 -0
- package/dist/core/features/route/route-provider.type.d.ts +7 -0
- package/dist/core/features/route/route-wrapper.constants.d.ts +6 -0
- package/dist/core/features/route/route-wrapper.type.d.ts +3 -0
- package/dist/core/features/route/route.type.d.ts +5 -0
- package/dist/core/features/segmented-field/index.d.ts +3 -0
- package/dist/core/features/segmented-field/segmented-field.constants.d.ts +17 -0
- package/dist/core/features/segmented-field/segmented-field.logic.d.ts +12 -0
- package/dist/core/features/segmented-field/segmented-field.type.d.ts +35 -0
- package/dist/core/features/select/index.d.ts +3 -0
- package/dist/core/features/select/select.constants.d.ts +15 -0
- package/dist/core/features/select/select.logic.d.ts +15 -0
- package/dist/core/features/select/select.type.d.ts +39 -0
- package/dist/core/features/skeleton/index.d.ts +3 -0
- package/dist/core/features/skeleton/skeleton.constants.d.ts +7 -0
- package/dist/core/features/skeleton/skeleton.logic.d.ts +7 -0
- package/dist/core/features/skeleton/skeleton.type.d.ts +12 -0
- package/dist/core/features/slide-range/index.d.ts +3 -0
- package/dist/core/features/slide-range/slide-range.constants.d.ts +13 -0
- package/dist/core/features/slide-range/slide-range.logic.d.ts +42 -0
- package/dist/core/features/slide-range/slide-range.type.d.ts +33 -0
- package/dist/core/features/switch/index.d.ts +3 -0
- package/dist/core/features/switch/switch.constants.d.ts +10 -0
- package/dist/core/features/switch/switch.logic.d.ts +27 -0
- package/dist/core/features/switch/switch.type.d.ts +28 -0
- package/dist/core/features/tabs/index.d.ts +6 -0
- package/dist/core/features/tabs/tab.constants.d.ts +6 -0
- package/dist/core/features/tabs/tab.logic.d.ts +9 -0
- package/dist/core/features/tabs/tab.type.d.ts +11 -0
- package/dist/core/features/tabs/tabs.constants.d.ts +9 -0
- package/dist/core/features/tabs/tabs.logic.d.ts +10 -0
- package/dist/core/features/tabs/tabs.type.d.ts +55 -0
- package/dist/core/features/tag/index.d.ts +3 -0
- package/dist/core/features/tag/tag.constants.d.ts +7 -0
- package/dist/core/features/tag/tag.logic.d.ts +4 -0
- package/dist/core/features/tag/tag.type.d.ts +14 -0
- package/dist/core/features/toast/index.d.ts +5 -0
- package/dist/core/features/toast/toast-content.constants.d.ts +8 -0
- package/dist/core/features/toast/toast-content.logic.d.ts +6 -0
- package/dist/core/features/toast/toast.constants.d.ts +6 -0
- package/dist/core/features/toast/toast.logic.d.ts +4 -0
- package/dist/core/features/toast/toast.type.d.ts +26 -0
- package/dist/core/features/toolbar/index.d.ts +3 -0
- package/dist/core/features/toolbar/toolbar.constants.d.ts +8 -0
- package/dist/core/features/toolbar/toolbar.logic.d.ts +7 -0
- package/dist/core/features/toolbar/toolbar.type.d.ts +12 -0
- package/dist/core/features/tooltip/index.d.ts +3 -0
- package/dist/core/features/tooltip/tooltip.constants.d.ts +8 -0
- package/dist/core/features/tooltip/tooltip.logic.d.ts +12 -0
- package/dist/core/features/tooltip/tooltip.type.d.ts +18 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/utils/element.d.ts +8 -0
- package/dist/core/utils/events.d.ts +4 -0
- package/dist/core/utils/index.d.ts +3 -0
- package/dist/core/utils/style.d.ts +20 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type RouteNavigatorVariant = "none" | "swipe" | "fade";
|
|
2
|
+
/**
|
|
3
|
+
* Route Navigator Props Type
|
|
4
|
+
*/
|
|
5
|
+
export type RouteNavigatorProps = {
|
|
6
|
+
direction?: "left" | "right" | "up" | "down";
|
|
7
|
+
variant?: RouteNavigatorVariant;
|
|
8
|
+
keepalive?: boolean;
|
|
9
|
+
gesture?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Route Navigator Gesture Type
|
|
14
|
+
*/
|
|
15
|
+
export type RouteNavigatorGesture = {
|
|
16
|
+
deltaX: number;
|
|
17
|
+
deltaY: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Route Navigator Event Type
|
|
21
|
+
*/
|
|
22
|
+
export type RouteNavigatorEvent = {
|
|
23
|
+
(e: "transform", value: RouteNavigatorTransformState): void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Route Navigator Transform State Type
|
|
27
|
+
*/
|
|
28
|
+
export type RouteNavigatorTransformState = {
|
|
29
|
+
back: number;
|
|
30
|
+
prepare: number;
|
|
31
|
+
active: number;
|
|
32
|
+
backdrop: number;
|
|
33
|
+
duration: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
export type RouteNavigatorAttrOptions = {
|
|
36
|
+
direction: string;
|
|
37
|
+
variant: RouteNavigatorVariant;
|
|
38
|
+
moving: boolean;
|
|
39
|
+
transform: {
|
|
40
|
+
back: number;
|
|
41
|
+
prepare: number;
|
|
42
|
+
active: number;
|
|
43
|
+
backdrop: number;
|
|
44
|
+
duration?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type RouteNavigatorComponentAttrOptions = {
|
|
48
|
+
direction: string;
|
|
49
|
+
};
|
|
50
|
+
export type RouteNavigatorBackdropAttrOptions = {
|
|
51
|
+
zIndex: number;
|
|
52
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Segmented Field Default Props
|
|
3
|
+
*/
|
|
4
|
+
export declare const SEGMENTED_FIELD_DEFAULT_PROPS: {
|
|
5
|
+
readonly modelValue: undefined;
|
|
6
|
+
readonly value: undefined;
|
|
7
|
+
readonly direction: undefined;
|
|
8
|
+
readonly length: 6;
|
|
9
|
+
readonly variant: "outline";
|
|
10
|
+
readonly size: "standard";
|
|
11
|
+
readonly disabled: false;
|
|
12
|
+
readonly readonly: false;
|
|
13
|
+
readonly type: "text";
|
|
14
|
+
readonly shadow: undefined;
|
|
15
|
+
readonly message: "";
|
|
16
|
+
readonly pattern: () => string[];
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SegmentedFieldAttrOptions } from './segmented-field.type';
|
|
2
|
+
export declare const getSegmentedFieldWrapperAttrs: (options: SegmentedFieldAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
};
|
|
7
|
+
export declare const getSegmentedFieldContentAttrs: () => {
|
|
8
|
+
class: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const getSegmentedFieldMessageAttrs: () => {
|
|
11
|
+
class: string[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AppDirection } from '../app/app.type';
|
|
2
|
+
import { FieldVariant, FieldSize } from '../field/field.type';
|
|
3
|
+
export type SegmentedFieldVariant = FieldVariant;
|
|
4
|
+
export type SegmentedFieldSize = FieldSize;
|
|
5
|
+
export type SegmentedFieldProps = {
|
|
6
|
+
modelValue?: string[];
|
|
7
|
+
value?: string[];
|
|
8
|
+
length?: number;
|
|
9
|
+
variant?: SegmentedFieldVariant;
|
|
10
|
+
size?: SegmentedFieldSize;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
type?: string;
|
|
14
|
+
role?: string;
|
|
15
|
+
shape?: string;
|
|
16
|
+
shadow?: boolean;
|
|
17
|
+
message?: string;
|
|
18
|
+
pattern?: string[];
|
|
19
|
+
direction?: AppDirection;
|
|
20
|
+
};
|
|
21
|
+
export type SegmentedFieldEvent = {
|
|
22
|
+
(e: "update:modelValue", value: string[]): void;
|
|
23
|
+
(e: "complete", value: string[]): void;
|
|
24
|
+
(e: "focus", ev: FocusEvent): void;
|
|
25
|
+
(e: "blur", ev: FocusEvent): void;
|
|
26
|
+
(e: "input", value: string[]): void;
|
|
27
|
+
};
|
|
28
|
+
export type SegmentedFieldAttrOptions = {
|
|
29
|
+
role: string;
|
|
30
|
+
shape: string;
|
|
31
|
+
direction: string;
|
|
32
|
+
variant: SegmentedFieldVariant;
|
|
33
|
+
size: string;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SelectOption } from './select.type';
|
|
2
|
+
/**
|
|
3
|
+
* Select Default Props
|
|
4
|
+
*/
|
|
5
|
+
export declare const SELECT_DEFAULT_PROPS: {
|
|
6
|
+
readonly modelValue: "";
|
|
7
|
+
readonly size: "standard";
|
|
8
|
+
readonly disabled: false;
|
|
9
|
+
readonly message: "";
|
|
10
|
+
readonly variant: "outline";
|
|
11
|
+
readonly placeholder: "";
|
|
12
|
+
readonly shadow: undefined;
|
|
13
|
+
readonly direction: undefined;
|
|
14
|
+
readonly options: () => Array<SelectOption>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SelectAttrOptions } from './select.type';
|
|
2
|
+
export declare const getSelectAttrs: (options: SelectAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
};
|
|
7
|
+
export declare const getSelectIconAttrs: () => {
|
|
8
|
+
class: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const getSelectOptionAttrs: () => {
|
|
11
|
+
class: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare const getSelectMessageAttrs: () => {
|
|
14
|
+
class: string[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FieldSize, FieldVariant } from '../field';
|
|
2
|
+
import { AppDirection } from '../app/app.type';
|
|
3
|
+
export type SelectVariant = FieldVariant;
|
|
4
|
+
export type SelectSize = FieldSize;
|
|
5
|
+
export type SelectOption = {
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type SelectProps = {
|
|
11
|
+
modelValue?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
variant?: FieldVariant;
|
|
14
|
+
role?: string;
|
|
15
|
+
shape?: string;
|
|
16
|
+
size?: FieldSize;
|
|
17
|
+
shadow?: boolean;
|
|
18
|
+
direction?: AppDirection;
|
|
19
|
+
id?: string;
|
|
20
|
+
value?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
autocomplete?: string;
|
|
24
|
+
tabindex?: number | string;
|
|
25
|
+
line?: number | string;
|
|
26
|
+
maxLine?: number | string;
|
|
27
|
+
message?: string;
|
|
28
|
+
options: Array<SelectOption>;
|
|
29
|
+
};
|
|
30
|
+
export type SelectEvent = {
|
|
31
|
+
(e: "update:modelValue", value: string): void;
|
|
32
|
+
(e: "select", option: SelectOption): void;
|
|
33
|
+
};
|
|
34
|
+
export type SelectAttrOptions = {
|
|
35
|
+
role: string;
|
|
36
|
+
direction: string;
|
|
37
|
+
size: string;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slide Range Default Props
|
|
3
|
+
*/
|
|
4
|
+
export declare const SLIDE_RANGE_DEFAULT_PROPS: {
|
|
5
|
+
readonly modelValue: "";
|
|
6
|
+
readonly min: 0;
|
|
7
|
+
readonly max: 100;
|
|
8
|
+
readonly step: 1;
|
|
9
|
+
readonly unit: "";
|
|
10
|
+
readonly disabled: false;
|
|
11
|
+
readonly readonly: false;
|
|
12
|
+
readonly tick: false;
|
|
13
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SlideRangeAttrOptions, SlideRangeTrackFrontAttrOptions, SlideRangeThumbAttrOptions, SlideRangeTickAttrOptions } from './slide-range.type';
|
|
2
|
+
export declare const getSlideRangeAttrs: (options: SlideRangeAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
})[];
|
|
7
|
+
};
|
|
8
|
+
export declare const getSlideRangeTrackContainerAttrs: () => {
|
|
9
|
+
class: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const getSlideRangeTrackBodyAttrs: () => {
|
|
12
|
+
class: string[];
|
|
13
|
+
};
|
|
14
|
+
export declare const getSlideRangeTrackBackAttrs: () => {
|
|
15
|
+
class: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare const getSlideRangeTrackFrontAttrs: (options: SlideRangeTrackFrontAttrOptions) => {
|
|
18
|
+
class: string[];
|
|
19
|
+
style: {
|
|
20
|
+
[x: string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const getSlideRangeThumbAttrs: (options: SlideRangeThumbAttrOptions) => {
|
|
24
|
+
class: string[];
|
|
25
|
+
style: {
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const getSlideRangeThumbInnerAttrs: () => {
|
|
30
|
+
class: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare const getSlideRangeTooltipAttrs: () => {
|
|
33
|
+
class: string[];
|
|
34
|
+
};
|
|
35
|
+
export declare const getSlideRangeTickAttrs: (options: SlideRangeTickAttrOptions) => {
|
|
36
|
+
class: (string | {
|
|
37
|
+
active: boolean;
|
|
38
|
+
})[];
|
|
39
|
+
style: {
|
|
40
|
+
[x: string]: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type SlideRangeValue = string | number;
|
|
2
|
+
export type SlideRangeProps = {
|
|
3
|
+
modelValue?: SlideRangeValue;
|
|
4
|
+
min?: SlideRangeValue;
|
|
5
|
+
max?: SlideRangeValue;
|
|
6
|
+
step?: SlideRangeValue;
|
|
7
|
+
unit?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
role?: string;
|
|
11
|
+
shape?: string;
|
|
12
|
+
tick?: boolean | SlideRangeValue;
|
|
13
|
+
};
|
|
14
|
+
export type SlideRangeEvent = {
|
|
15
|
+
(e: "update:modelValue", value: SlideRangeValue): void;
|
|
16
|
+
(e: "change", value: SlideRangeValue): void;
|
|
17
|
+
};
|
|
18
|
+
export type SlideRangeAttrOptions = {
|
|
19
|
+
role: string;
|
|
20
|
+
shape: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type SlideRangeTrackFrontAttrOptions = {
|
|
25
|
+
percent: number;
|
|
26
|
+
};
|
|
27
|
+
export type SlideRangeThumbAttrOptions = {
|
|
28
|
+
percent: number;
|
|
29
|
+
};
|
|
30
|
+
export type SlideRangeTickAttrOptions = {
|
|
31
|
+
active: boolean;
|
|
32
|
+
percent: number;
|
|
33
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SwitchAttrOptions, SwitchWrapperAttrOptions } from './switch.type';
|
|
2
|
+
export declare const getSwitchWrapperAttrs: (options: SwitchWrapperAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
shadow: boolean;
|
|
7
|
+
focus: boolean;
|
|
8
|
+
on: boolean;
|
|
9
|
+
transition?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
transition: boolean;
|
|
12
|
+
disabled?: undefined;
|
|
13
|
+
readonly?: undefined;
|
|
14
|
+
shadow?: undefined;
|
|
15
|
+
focus?: undefined;
|
|
16
|
+
on?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
style: {
|
|
19
|
+
[x: string]: string | number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const getSwitchAttrs: (options: SwitchAttrOptions) => {
|
|
23
|
+
class: string[];
|
|
24
|
+
};
|
|
25
|
+
export declare const getSwitchIconAttrs: () => {
|
|
26
|
+
class: string[];
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type SwitchSize = string;
|
|
2
|
+
export type SwitchProps = {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
role?: string;
|
|
5
|
+
size?: SwitchSize;
|
|
6
|
+
shape?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
shadow?: boolean;
|
|
10
|
+
bounce?: number | string;
|
|
11
|
+
};
|
|
12
|
+
export type SwitchEvent = {
|
|
13
|
+
(e: "update:modelValue", value: boolean): void;
|
|
14
|
+
};
|
|
15
|
+
export type SwitchWrapperAttrOptions = {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
shadow: boolean;
|
|
19
|
+
focus: boolean;
|
|
20
|
+
modelValue: boolean;
|
|
21
|
+
transition: boolean;
|
|
22
|
+
bounce: number | string;
|
|
23
|
+
};
|
|
24
|
+
export type SwitchAttrOptions = {
|
|
25
|
+
role: string;
|
|
26
|
+
shape: string;
|
|
27
|
+
size: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabAttrOptions, TabButtonAttrOptions } from './tab.type';
|
|
2
|
+
export declare const getTabAttrs: (options: TabAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
active: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
};
|
|
7
|
+
export declare const getTabButtonAttrs: (options: TabButtonAttrOptions) => {
|
|
8
|
+
class: string[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const TABS_PROVIDER_STATE_KEY = "tabs-state";
|
|
2
|
+
export declare const TABS_DEFAULT_PROPS: {
|
|
3
|
+
readonly placement: "top-start";
|
|
4
|
+
readonly variant: "fill";
|
|
5
|
+
readonly margin: () => number[];
|
|
6
|
+
readonly border: () => number[];
|
|
7
|
+
readonly transition: true;
|
|
8
|
+
readonly size: "standard";
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TabsAttrOptions, TabsHighlightPosition, TabsHighlightPositionOptions, TabsHighlightStyleOptions } from './tabs.type';
|
|
2
|
+
export declare const getTabsAttrs: (options: TabsAttrOptions) => {
|
|
3
|
+
class: (string | {
|
|
4
|
+
transition: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
};
|
|
7
|
+
export declare const getTabsHighlightPosition: (options: TabsHighlightPositionOptions) => TabsHighlightPosition;
|
|
8
|
+
export declare const getTabsHighlightStyle: (options: TabsHighlightStyleOptions) => {
|
|
9
|
+
[x: string]: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type TabsVariant = "fill" | "underline" | "text";
|
|
2
|
+
export type TabsSize = string;
|
|
3
|
+
export type TabsPlacement = "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
4
|
+
export type TabsProps = {
|
|
5
|
+
placement?: TabsPlacement;
|
|
6
|
+
variant?: TabsVariant;
|
|
7
|
+
role?: string;
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
border?: number[];
|
|
10
|
+
margin?: number[];
|
|
11
|
+
shape?: string;
|
|
12
|
+
transition?: boolean;
|
|
13
|
+
size?: TabsSize;
|
|
14
|
+
};
|
|
15
|
+
export type TabsEvent = {
|
|
16
|
+
(e: "update:modelValue", value: string): void;
|
|
17
|
+
};
|
|
18
|
+
export type TabsProviderState = {
|
|
19
|
+
activeValue: string;
|
|
20
|
+
role: string;
|
|
21
|
+
shape: string;
|
|
22
|
+
size: TabsSize;
|
|
23
|
+
setValue: (val: string) => void;
|
|
24
|
+
};
|
|
25
|
+
export type TabsAttrOptions = {
|
|
26
|
+
role: string;
|
|
27
|
+
shape: string;
|
|
28
|
+
placement: TabsPlacement;
|
|
29
|
+
variant: TabsVariant;
|
|
30
|
+
transition: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type TabsHighlightPositionOptions = {
|
|
33
|
+
top: number;
|
|
34
|
+
left: number;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
margin: number[];
|
|
38
|
+
border: number[];
|
|
39
|
+
variant: TabsVariant;
|
|
40
|
+
placement: TabsPlacement;
|
|
41
|
+
};
|
|
42
|
+
export type TabsHighlightPosition = {
|
|
43
|
+
top: number;
|
|
44
|
+
left: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
};
|
|
48
|
+
export type TabsHighlightStyleOptions = {
|
|
49
|
+
top: number | string;
|
|
50
|
+
left: number | string;
|
|
51
|
+
width: number | string;
|
|
52
|
+
height: number | string;
|
|
53
|
+
marginX: number;
|
|
54
|
+
marginY: number;
|
|
55
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TagVariant = "fill" | "outline" | "text";
|
|
2
|
+
export type TagSize = string;
|
|
3
|
+
export type TagProps = {
|
|
4
|
+
role?: string;
|
|
5
|
+
size?: TagSize;
|
|
6
|
+
shape?: string;
|
|
7
|
+
variant?: TagVariant;
|
|
8
|
+
};
|
|
9
|
+
export type TagAttrOptions = {
|
|
10
|
+
role: string;
|
|
11
|
+
shape: string;
|
|
12
|
+
size: string;
|
|
13
|
+
variant: TagVariant;
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ToastPlacement = "bottom-start" | "bottom-center" | "bottom-end" | "top-start" | "top-center" | "top-end";
|
|
2
|
+
export type ToastContentVariant = "fill" | "text";
|
|
3
|
+
export type ToastProps = {
|
|
4
|
+
placement: ToastPlacement;
|
|
5
|
+
};
|
|
6
|
+
export type ToastContentProps = {
|
|
7
|
+
id?: number;
|
|
8
|
+
message: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
role?: string;
|
|
11
|
+
variant?: ToastContentVariant;
|
|
12
|
+
placement?: ToastPlacement;
|
|
13
|
+
shape?: string;
|
|
14
|
+
};
|
|
15
|
+
export type ToastContentEvent = {
|
|
16
|
+
(e: "close"): void;
|
|
17
|
+
};
|
|
18
|
+
export type ToastAttrOptions = {
|
|
19
|
+
placement: string;
|
|
20
|
+
};
|
|
21
|
+
export type ToastContentAttrOptions = {
|
|
22
|
+
role: string;
|
|
23
|
+
shape: string;
|
|
24
|
+
variant: ToastContentVariant;
|
|
25
|
+
closing: boolean;
|
|
26
|
+
};
|