toku-ui 2.16.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TSelect/TSelect.d.ts.map +1 -1
- package/dist/components/TSelect/TSelect.styles.d.ts.map +1 -1
- package/dist/components/TSelect/TSelect.utils.d.ts +12 -0
- package/dist/components/TSelect/TSelect.utils.d.ts.map +1 -1
- package/dist/components/TSelect/TSelectOption/TSelectOption.d.ts +18 -0
- package/dist/components/TSelect/TSelectOption/TSelectOption.d.ts.map +1 -0
- package/dist/components/TSelect/TSelectOption/TSelectOption.styles.d.ts +2 -0
- package/dist/components/TSelect/TSelectOption/TSelectOption.styles.d.ts.map +1 -0
- package/dist/components/TSelect/TSelectOption/TSelectOption.types.d.ts +8 -0
- package/dist/components/TSelect/TSelectOption/TSelectOption.types.d.ts.map +1 -0
- package/dist/components/TSelect/TSelectOption/index.d.ts +3 -0
- package/dist/components/TSelect/TSelectOption/index.d.ts.map +1 -0
- package/dist/components/TSelect/useSelectDropdown.d.ts +21 -0
- package/dist/components/TSelect/useSelectDropdown.d.ts.map +1 -0
- package/dist/components/TTag/TTag.styles.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/scrollbarThumb.d.ts +18 -0
- package/dist/composables/scrollbarThumb.d.ts.map +1 -0
- package/dist/index.es.js +3379 -3044
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +18 -18
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSelect.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"TSelect.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAiBpC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA0PlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,yCAgKrB,CAAC"}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import type { RendererElement, RendererNode, VNode } from 'vue';
|
|
2
|
+
import type { TSelectProps } from './TSelect.types';
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
value: TSelectProps['value'];
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
2
8
|
type Slot = VNode<RendererNode, RendererElement, {
|
|
3
9
|
[key: string]: any;
|
|
4
10
|
}>;
|
|
11
|
+
export declare const getTextFromSlotChildren: (children: unknown) => string;
|
|
5
12
|
export declare const getOptionsFromSlots: (slots: Slot[], results?: Slot[]) => Slot[];
|
|
13
|
+
export declare const buildSelectOptions: (slotVNodes: Slot[]) => SelectOption[];
|
|
14
|
+
export declare const isOptionValueEqual: (a: unknown, b: unknown) => boolean;
|
|
15
|
+
export declare const getInitialHighlightedIndex: (options: SelectOption[], currentValue: unknown) => number;
|
|
16
|
+
export declare const resolveLeftIcon: (props: Record<string, unknown>) => string;
|
|
17
|
+
export declare const getLeftIconName: (icon: string, iconSet: string) => string;
|
|
6
18
|
export {};
|
|
7
19
|
//# sourceMappingURL=TSelect.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSelect.utils.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"TSelect.utils.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/TSelect.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,IAAI,GAAG,KAAK,CACf,YAAY,EACZ,eAAe,EACf;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CACF,CAAC;AAEF,eAAO,MAAM,uBAAuB,aAAc,OAAO,KAAG,MAc3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,IAAI,EAAE,YAAW,IAAI,EAAE,WAUjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,IAAI,EAAE,KAAG,YAAY,EAOnE,CAAC;AAEF,eAAO,MAAM,kBAAkB,MAAO,OAAO,KAAK,OAAO,KAAG,OAY3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC5B,YAAY,EAAE,gBACT,OAAO,KACpB,MAOF,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,KAAG,MAIhE,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,WAAW,MAAM,KAAG,MAG/D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export declare const TSelectOption: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: PropType<string | undefined>;
|
|
4
|
+
selected: PropType<boolean | undefined>;
|
|
5
|
+
highlighted: PropType<boolean | undefined>;
|
|
6
|
+
disabled: PropType<boolean | undefined>;
|
|
7
|
+
withSeparator: PropType<boolean | undefined>;
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "hover")[], "select" | "hover", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
label: PropType<string | undefined>;
|
|
10
|
+
selected: PropType<boolean | undefined>;
|
|
11
|
+
highlighted: PropType<boolean | undefined>;
|
|
12
|
+
disabled: PropType<boolean | undefined>;
|
|
13
|
+
withSeparator: PropType<boolean | undefined>;
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
//# sourceMappingURL=TSelectOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TSelectOption.d.ts","sourceRoot":"","sources":["../../../../src/components/TSelect/TSelectOption/TSelectOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAKpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;iFA+CxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TSelectOption.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/TSelect/TSelectOption/TSelectOption.styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,yCAyCrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TSelectOption.types.d.ts","sourceRoot":"","sources":["../../../../src/components/TSelect/TSelectOption/TSelectOption.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TSelect/TSelectOption/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComputedRef, WritableComputedRef } from 'vue';
|
|
2
|
+
import type { Nullable } from '../../types';
|
|
3
|
+
import type { SelectOption } from './TSelect.utils';
|
|
4
|
+
export declare function useSelectDropdown(options: ComputedRef<SelectOption[]>, internalValue: WritableComputedRef<SelectOption['value']>, disabled: ComputedRef<boolean>): {
|
|
5
|
+
menuOpen: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
highlightedIndex: import("vue").Ref<number, number>;
|
|
7
|
+
wrapperRef: import("vue").Ref<Nullable<HTMLDivElement>, Nullable<HTMLDivElement>>;
|
|
8
|
+
triggerRef: import("vue").Ref<Nullable<HTMLButtonElement>, Nullable<HTMLButtonElement>>;
|
|
9
|
+
menuRef: import("vue").Ref<Nullable<HTMLUListElement>, Nullable<HTMLUListElement>>;
|
|
10
|
+
menuHovered: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
isInteractingWithMenu: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
openMenu: () => void;
|
|
13
|
+
closeMenu: () => void;
|
|
14
|
+
selectOption: (option: SelectOption) => void;
|
|
15
|
+
handleClickTrigger: () => void;
|
|
16
|
+
handleBlur: () => void;
|
|
17
|
+
handleMenuInteractionStart: () => void;
|
|
18
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
19
|
+
scrollMenuBy: (direction: 1 | -1) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useSelectDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/TSelect/useSelectDropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAMpD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,CAAC,YAAY,EAAE,CAAC,EACpC,aAAa,EAAE,mBAAmB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,EACzD,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC;;;;;;;;;;2BAgCA,YAAY;;;;2BAuBZ,aAAa;8BA7BV,CAAC,GAAG,CAAC,CAAC;EA2ExC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TTag.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TTag/TTag.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TTag.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TTag/TTag.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,yCA6GrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface UseScrollbarThumbOptions {
|
|
3
|
+
railTopInset?: number;
|
|
4
|
+
railBottomInset?: number;
|
|
5
|
+
minThumbHeight?: number;
|
|
6
|
+
thumbHeightFactor?: number;
|
|
7
|
+
onDragStart?: () => void;
|
|
8
|
+
onDragEnd?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useScrollbarThumb(containerRef: Ref<HTMLElement | null>, options?: UseScrollbarThumbOptions): {
|
|
11
|
+
thumbHeight: Ref<number, number>;
|
|
12
|
+
thumbOffset: Ref<number, number>;
|
|
13
|
+
isScrollable: import("vue").ComputedRef<boolean>;
|
|
14
|
+
isDragging: Ref<boolean, boolean>;
|
|
15
|
+
update: () => void;
|
|
16
|
+
onThumbMouseDown: (event: MouseEvent) => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=scrollbarThumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollbarThumb.d.ts","sourceRoot":"","sources":["../../src/composables/scrollbarThumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AASD,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EACrC,OAAO,GAAE,wBAA6B;;;;;;8BA+EL,UAAU;EAyB5C"}
|