haya-select 1.0.102 → 1.0.106
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/build/select/index.d.ts +55 -6
- package/build/select/index.d.ts.map +1 -1
- package/build/select/index.js +258 -81
- package/build/select/option-group.d.ts +1 -1
- package/build/select/option.d.ts +14 -1
- package/build/select/option.d.ts.map +1 -1
- package/build/select/option.js +31 -11
- package/build/select/pagination-page-button.d.ts +1 -1
- package/build/system-test-helpers.d.ts +13 -0
- package/build/system-test-helpers.d.ts.map +1 -1
- package/build/system-test-helpers.js +55 -27
- package/package.json +9 -9
package/build/select/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: React.
|
|
1
|
+
declare const _default: React.NamedExoticComponent<HayaSelectProps>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export type HayaSelectToggleOption = {
|
|
4
4
|
icon: string;
|
|
@@ -33,7 +33,7 @@ export type HayaSelectProps = {
|
|
|
33
33
|
debug?: boolean | undefined;
|
|
34
34
|
id?: import("react").ReactNode;
|
|
35
35
|
model?: object;
|
|
36
|
-
multiple
|
|
36
|
+
multiple?: boolean | undefined;
|
|
37
37
|
name?: string | undefined;
|
|
38
38
|
noOptionsText?: (() => import("react").ReactNode) | undefined;
|
|
39
39
|
onBlur?: ((arg0?: import("react").SyntheticEvent | undefined) => void) | undefined;
|
|
@@ -48,18 +48,67 @@ export type HayaSelectProps = {
|
|
|
48
48
|
}) => void) | undefined;
|
|
49
49
|
optionContent?: ((arg0: object) => import("react").ReactNode) | undefined;
|
|
50
50
|
options: Array<HayaSelectOption> | (() => (Array<HayaSelectOption> | HayaSelectOptionsResult));
|
|
51
|
-
optionsAbsolute
|
|
52
|
-
optionsPortal
|
|
51
|
+
optionsAbsolute?: boolean | undefined;
|
|
52
|
+
optionsPortal?: boolean | undefined;
|
|
53
53
|
optionsWidth?: number | undefined;
|
|
54
54
|
placeholder?: import("react").ReactNode;
|
|
55
55
|
selectedBackgroundColor?: string | undefined;
|
|
56
56
|
selectedHoverBackgroundColor?: string | undefined;
|
|
57
|
-
search
|
|
57
|
+
search?: boolean | undefined;
|
|
58
58
|
styles?: object;
|
|
59
59
|
toggled?: object;
|
|
60
60
|
toggleOptions?: HayaSelectToggleOption[] | undefined;
|
|
61
|
-
transparent
|
|
61
|
+
transparent?: boolean | undefined;
|
|
62
62
|
values?: (string | number)[] | undefined;
|
|
63
63
|
};
|
|
64
|
+
export type HayaSelectState = {
|
|
65
|
+
currentOptions: Array<HayaSelectOption>;
|
|
66
|
+
selectContainerLayout: object | null;
|
|
67
|
+
endOfSelectLayout: object | null;
|
|
68
|
+
height: number | null;
|
|
69
|
+
loadedOptions: Array<HayaSelectOption> | undefined;
|
|
70
|
+
loadOptionsAppliedRequestId: number;
|
|
71
|
+
loadOptionsRequestId: number;
|
|
72
|
+
page: number;
|
|
73
|
+
pageInputFocused: boolean;
|
|
74
|
+
pageInputValue: string;
|
|
75
|
+
pageSize: number | null;
|
|
76
|
+
opened: boolean;
|
|
77
|
+
optionsContainerLayout: object | null;
|
|
78
|
+
optionsPlacement: "above" | "below" | undefined;
|
|
79
|
+
optionsTop: number | undefined;
|
|
80
|
+
optionsVisibility: "hidden" | "visible" | undefined;
|
|
81
|
+
optionsWidth: number | undefined | null;
|
|
82
|
+
scrollLeft: number | null;
|
|
83
|
+
scrollTop: number | null;
|
|
84
|
+
totalCount: number | null;
|
|
85
|
+
toggled: Record<string | number, string>;
|
|
86
|
+
};
|
|
87
|
+
export type HayaSelectLayout = {
|
|
88
|
+
top?: number | undefined;
|
|
89
|
+
left?: number | undefined;
|
|
90
|
+
width?: number | undefined;
|
|
91
|
+
height?: number | undefined;
|
|
92
|
+
};
|
|
93
|
+
export type HayaSelectOptionRenderContext = {
|
|
94
|
+
icon: string | undefined;
|
|
95
|
+
mode: "current" | "option";
|
|
96
|
+
option: HayaSelectOption;
|
|
97
|
+
selected: boolean;
|
|
98
|
+
toggleOption: HayaSelectToggleOption | undefined;
|
|
99
|
+
toggleValue: string | undefined;
|
|
100
|
+
toggled: Record<string | number, string>;
|
|
101
|
+
};
|
|
102
|
+
export type HayaSelectOnChangePayload = {
|
|
103
|
+
event: import("react").SyntheticEvent;
|
|
104
|
+
options: Array<HayaSelectOption>;
|
|
105
|
+
toggles: Record<string | number, string>;
|
|
106
|
+
};
|
|
107
|
+
export type HayaSelectStylingContext = {
|
|
108
|
+
opened: boolean;
|
|
109
|
+
optionsPlacement: "above" | "below" | undefined;
|
|
110
|
+
state: HayaSelectState;
|
|
111
|
+
style: Record<string, any>;
|
|
112
|
+
};
|
|
64
113
|
import React from "react";
|
|
65
114
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.jsx"],"names":[],"mappings":";;;UA0Bc,MAAM;WACN,MAAM;WACN,MAAM;;;WAKN,MAAM,GAAC,MAAM;WACb,OAAO,OAAO,EAAE,SAAS;qBACb,OAAO,OAAO,EAAE,SAAS;4BACzB,OAAO,OAAO,EAAE,SAAS;;;;;;YAGrC,OAAO,OAAO,EAAE,SAAS;;;aAOzB,KAAK,CAAC,gBAAgB,CAAC;;;;;;;;qBAUvB,MAAM;;;;;SAKN,OAAO,OAAO,EAAE,SAAS;YACzB,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.jsx"],"names":[],"mappings":";;;UA0Bc,MAAM;WACN,MAAM;WACN,MAAM;;;WAKN,MAAM,GAAC,MAAM;WACb,OAAO,OAAO,EAAE,SAAS;qBACb,OAAO,OAAO,EAAE,SAAS;4BACzB,OAAO,OAAO,EAAE,SAAS;;;;;;YAGrC,OAAO,OAAO,EAAE,SAAS;;;aAOzB,KAAK,CAAC,gBAAgB,CAAC;;;;;;;;qBAUvB,MAAM;;;;;SAKN,OAAO,OAAO,EAAE,SAAS;YACzB,MAAM;;;2BAGM,OAAO,OA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